Class TopologyTransactionOuterClass.TopologyTransaction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
com.daml.ledger.api.v2.TopologyTransactionOuterClass.TopologyTransaction.Builder
All Implemented Interfaces:
TopologyTransactionOuterClass.TopologyTransactionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TopologyTransactionOuterClass.TopologyTransaction

public static final class TopologyTransactionOuterClass.TopologyTransaction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder> implements TopologyTransactionOuterClass.TopologyTransactionOrBuilder
Protobuf type com.daml.ledger.api.v2.TopologyTransaction
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • getDefaultInstanceForType

      public TopologyTransactionOuterClass.TopologyTransaction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • setField

      public TopologyTransactionOuterClass.TopologyTransaction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • clearField

      public TopologyTransactionOuterClass.TopologyTransaction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • clearOneof

      public TopologyTransactionOuterClass.TopologyTransaction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • setRepeatedField

      public TopologyTransactionOuterClass.TopologyTransaction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • addRepeatedField

      public TopologyTransactionOuterClass.TopologyTransaction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • mergeFrom

      public TopologyTransactionOuterClass.TopologyTransaction.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • mergeFrom

      public TopologyTransactionOuterClass.TopologyTransaction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
      Throws:
      IOException
    • getUpdateId

      public String getUpdateId()
       Assigned by the server. Useful for correlating logs.
       Must be a valid LedgerString (as described in ``value.proto``).
       Required
       
      string update_id = 1 [json_name = "updateId"];
      Specified by:
      getUpdateId in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
      Returns:
      The updateId.
    • getUpdateIdBytes

      public com.google.protobuf.ByteString getUpdateIdBytes()
       Assigned by the server. Useful for correlating logs.
       Must be a valid LedgerString (as described in ``value.proto``).
       Required
       
      string update_id = 1 [json_name = "updateId"];
      Specified by:
      getUpdateIdBytes in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
      Returns:
      The bytes for updateId.
    • setUpdateId

       Assigned by the server. Useful for correlating logs.
       Must be a valid LedgerString (as described in ``value.proto``).
       Required
       
      string update_id = 1 [json_name = "updateId"];
      Parameters:
      value - The updateId to set.
      Returns:
      This builder for chaining.
    • clearUpdateId

       Assigned by the server. Useful for correlating logs.
       Must be a valid LedgerString (as described in ``value.proto``).
       Required
       
      string update_id = 1 [json_name = "updateId"];
      Returns:
      This builder for chaining.
    • setUpdateIdBytes

      public TopologyTransactionOuterClass.TopologyTransaction.Builder setUpdateIdBytes(com.google.protobuf.ByteString value)
       Assigned by the server. Useful for correlating logs.
       Must be a valid LedgerString (as described in ``value.proto``).
       Required
       
      string update_id = 1 [json_name = "updateId"];
      Parameters:
      value - The bytes for updateId to set.
      Returns:
      This builder for chaining.
    • getOffset

      public long getOffset()
       The absolute offset. The details of this field are described in ``community/ledger-api/README.md``.
       Required, it is a valid absolute offset (positive integer).
       
      int64 offset = 2 [json_name = "offset"];
      Specified by:
      getOffset in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
      Returns:
      The offset.
    • setOffset

       The absolute offset. The details of this field are described in ``community/ledger-api/README.md``.
       Required, it is a valid absolute offset (positive integer).
       
      int64 offset = 2 [json_name = "offset"];
      Parameters:
      value - The offset to set.
      Returns:
      This builder for chaining.
    • clearOffset

       The absolute offset. The details of this field are described in ``community/ledger-api/README.md``.
       Required, it is a valid absolute offset (positive integer).
       
      int64 offset = 2 [json_name = "offset"];
      Returns:
      This builder for chaining.
    • getSynchronizerId

      public String getSynchronizerId()
       A valid synchronizer id.
       Identifies the synchronizer that synchronized the topology transaction.
       Required
       
      string synchronizer_id = 3 [json_name = "synchronizerId"];
      Specified by:
      getSynchronizerId in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
      Returns:
      The synchronizerId.
    • getSynchronizerIdBytes

      public com.google.protobuf.ByteString getSynchronizerIdBytes()
       A valid synchronizer id.
       Identifies the synchronizer that synchronized the topology transaction.
       Required
       
      string synchronizer_id = 3 [json_name = "synchronizerId"];
      Specified by:
      getSynchronizerIdBytes in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
      Returns:
      The bytes for synchronizerId.
    • setSynchronizerId

       A valid synchronizer id.
       Identifies the synchronizer that synchronized the topology transaction.
       Required
       
      string synchronizer_id = 3 [json_name = "synchronizerId"];
      Parameters:
      value - The synchronizerId to set.
      Returns:
      This builder for chaining.
    • clearSynchronizerId

       A valid synchronizer id.
       Identifies the synchronizer that synchronized the topology transaction.
       Required
       
      string synchronizer_id = 3 [json_name = "synchronizerId"];
      Returns:
      This builder for chaining.
    • setSynchronizerIdBytes

      public TopologyTransactionOuterClass.TopologyTransaction.Builder setSynchronizerIdBytes(com.google.protobuf.ByteString value)
       A valid synchronizer id.
       Identifies the synchronizer that synchronized the topology transaction.
       Required
       
      string synchronizer_id = 3 [json_name = "synchronizerId"];
      Parameters:
      value - The bytes for synchronizerId to set.
      Returns:
      This builder for chaining.
    • hasRecordTime

      public boolean hasRecordTime()
       The time at which the changes in the topology transaction become effective. There is a small delay between a
       topology transaction being sequenced and the changes it contains becoming effective. Topology transactions appear
       in order relative to a synchronizer based on their effective time rather than their sequencing time.
       Required
       
      .google.protobuf.Timestamp record_time = 4 [json_name = "recordTime"];
      Specified by:
      hasRecordTime in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
      Returns:
      Whether the recordTime field is set.
    • getRecordTime

      public com.google.protobuf.Timestamp getRecordTime()
       The time at which the changes in the topology transaction become effective. There is a small delay between a
       topology transaction being sequenced and the changes it contains becoming effective. Topology transactions appear
       in order relative to a synchronizer based on their effective time rather than their sequencing time.
       Required
       
      .google.protobuf.Timestamp record_time = 4 [json_name = "recordTime"];
      Specified by:
      getRecordTime in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
      Returns:
      The recordTime.
    • setRecordTime

      public TopologyTransactionOuterClass.TopologyTransaction.Builder setRecordTime(com.google.protobuf.Timestamp value)
       The time at which the changes in the topology transaction become effective. There is a small delay between a
       topology transaction being sequenced and the changes it contains becoming effective. Topology transactions appear
       in order relative to a synchronizer based on their effective time rather than their sequencing time.
       Required
       
      .google.protobuf.Timestamp record_time = 4 [json_name = "recordTime"];
    • setRecordTime

      public TopologyTransactionOuterClass.TopologyTransaction.Builder setRecordTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time at which the changes in the topology transaction become effective. There is a small delay between a
       topology transaction being sequenced and the changes it contains becoming effective. Topology transactions appear
       in order relative to a synchronizer based on their effective time rather than their sequencing time.
       Required
       
      .google.protobuf.Timestamp record_time = 4 [json_name = "recordTime"];
    • mergeRecordTime

      public TopologyTransactionOuterClass.TopologyTransaction.Builder mergeRecordTime(com.google.protobuf.Timestamp value)
       The time at which the changes in the topology transaction become effective. There is a small delay between a
       topology transaction being sequenced and the changes it contains becoming effective. Topology transactions appear
       in order relative to a synchronizer based on their effective time rather than their sequencing time.
       Required
       
      .google.protobuf.Timestamp record_time = 4 [json_name = "recordTime"];
    • clearRecordTime

       The time at which the changes in the topology transaction become effective. There is a small delay between a
       topology transaction being sequenced and the changes it contains becoming effective. Topology transactions appear
       in order relative to a synchronizer based on their effective time rather than their sequencing time.
       Required
       
      .google.protobuf.Timestamp record_time = 4 [json_name = "recordTime"];
    • getRecordTimeBuilder

      public com.google.protobuf.Timestamp.Builder getRecordTimeBuilder()
       The time at which the changes in the topology transaction become effective. There is a small delay between a
       topology transaction being sequenced and the changes it contains becoming effective. Topology transactions appear
       in order relative to a synchronizer based on their effective time rather than their sequencing time.
       Required
       
      .google.protobuf.Timestamp record_time = 4 [json_name = "recordTime"];
    • getRecordTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRecordTimeOrBuilder()
       The time at which the changes in the topology transaction become effective. There is a small delay between a
       topology transaction being sequenced and the changes it contains becoming effective. Topology transactions appear
       in order relative to a synchronizer based on their effective time rather than their sequencing time.
       Required
       
      .google.protobuf.Timestamp record_time = 4 [json_name = "recordTime"];
      Specified by:
      getRecordTimeOrBuilder in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
    • getEventsList

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
      Specified by:
      getEventsList in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
    • getEventsCount

      public int getEventsCount()
       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
      Specified by:
      getEventsCount in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
    • getEvents

      public TopologyTransactionOuterClass.TopologyEvent getEvents(int index)
       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
      Specified by:
      getEvents in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
    • setEvents

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • setEvents

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • addEvents

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • addEvents

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • addEvents

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • addEvents

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • addAllEvents

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • clearEvents

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • removeEvents

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • getEventsBuilder

      public TopologyTransactionOuterClass.TopologyEvent.Builder getEventsBuilder(int index)
       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • getEventsOrBuilder

      public TopologyTransactionOuterClass.TopologyEventOrBuilder getEventsOrBuilder(int index)
       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
      Specified by:
      getEventsOrBuilder in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
    • getEventsOrBuilderList

      public List<? extends TopologyTransactionOuterClass.TopologyEventOrBuilder> getEventsOrBuilderList()
       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
      Specified by:
      getEventsOrBuilderList in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
    • addEventsBuilder

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • addEventsBuilder

      public TopologyTransactionOuterClass.TopologyEvent.Builder addEventsBuilder(int index)
       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • getEventsBuilderList

       A non-empty list of topology events.
       Required
       
      repeated .com.daml.ledger.api.v2.TopologyEvent events = 5 [json_name = "events"];
    • hasTraceContext

      public boolean hasTraceContext()
       Optional; ledger API trace context
      
       The trace context transported in this message corresponds to the trace context supplied
       by the client application in a HTTP2 header of the original command submission.
       We typically use a header to transfer this type of information. Here we use message
       body, because it is used in gRPC streams which do not support per message headers.
       This field will be populated with the trace context contained in the original submission.
       If that was not provided, a unique ledger-api-server generated trace context will be used
       instead.
       
      .com.daml.ledger.api.v2.TraceContext trace_context = 6 [json_name = "traceContext"];
      Specified by:
      hasTraceContext in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
      Returns:
      Whether the traceContext field is set.
    • getTraceContext

      public TraceContextOuterClass.TraceContext getTraceContext()
       Optional; ledger API trace context
      
       The trace context transported in this message corresponds to the trace context supplied
       by the client application in a HTTP2 header of the original command submission.
       We typically use a header to transfer this type of information. Here we use message
       body, because it is used in gRPC streams which do not support per message headers.
       This field will be populated with the trace context contained in the original submission.
       If that was not provided, a unique ledger-api-server generated trace context will be used
       instead.
       
      .com.daml.ledger.api.v2.TraceContext trace_context = 6 [json_name = "traceContext"];
      Specified by:
      getTraceContext in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
      Returns:
      The traceContext.
    • setTraceContext

       Optional; ledger API trace context
      
       The trace context transported in this message corresponds to the trace context supplied
       by the client application in a HTTP2 header of the original command submission.
       We typically use a header to transfer this type of information. Here we use message
       body, because it is used in gRPC streams which do not support per message headers.
       This field will be populated with the trace context contained in the original submission.
       If that was not provided, a unique ledger-api-server generated trace context will be used
       instead.
       
      .com.daml.ledger.api.v2.TraceContext trace_context = 6 [json_name = "traceContext"];
    • setTraceContext

       Optional; ledger API trace context
      
       The trace context transported in this message corresponds to the trace context supplied
       by the client application in a HTTP2 header of the original command submission.
       We typically use a header to transfer this type of information. Here we use message
       body, because it is used in gRPC streams which do not support per message headers.
       This field will be populated with the trace context contained in the original submission.
       If that was not provided, a unique ledger-api-server generated trace context will be used
       instead.
       
      .com.daml.ledger.api.v2.TraceContext trace_context = 6 [json_name = "traceContext"];
    • mergeTraceContext

       Optional; ledger API trace context
      
       The trace context transported in this message corresponds to the trace context supplied
       by the client application in a HTTP2 header of the original command submission.
       We typically use a header to transfer this type of information. Here we use message
       body, because it is used in gRPC streams which do not support per message headers.
       This field will be populated with the trace context contained in the original submission.
       If that was not provided, a unique ledger-api-server generated trace context will be used
       instead.
       
      .com.daml.ledger.api.v2.TraceContext trace_context = 6 [json_name = "traceContext"];
    • clearTraceContext

       Optional; ledger API trace context
      
       The trace context transported in this message corresponds to the trace context supplied
       by the client application in a HTTP2 header of the original command submission.
       We typically use a header to transfer this type of information. Here we use message
       body, because it is used in gRPC streams which do not support per message headers.
       This field will be populated with the trace context contained in the original submission.
       If that was not provided, a unique ledger-api-server generated trace context will be used
       instead.
       
      .com.daml.ledger.api.v2.TraceContext trace_context = 6 [json_name = "traceContext"];
    • getTraceContextBuilder

      public TraceContextOuterClass.TraceContext.Builder getTraceContextBuilder()
       Optional; ledger API trace context
      
       The trace context transported in this message corresponds to the trace context supplied
       by the client application in a HTTP2 header of the original command submission.
       We typically use a header to transfer this type of information. Here we use message
       body, because it is used in gRPC streams which do not support per message headers.
       This field will be populated with the trace context contained in the original submission.
       If that was not provided, a unique ledger-api-server generated trace context will be used
       instead.
       
      .com.daml.ledger.api.v2.TraceContext trace_context = 6 [json_name = "traceContext"];
    • getTraceContextOrBuilder

      public TraceContextOuterClass.TraceContextOrBuilder getTraceContextOrBuilder()
       Optional; ledger API trace context
      
       The trace context transported in this message corresponds to the trace context supplied
       by the client application in a HTTP2 header of the original command submission.
       We typically use a header to transfer this type of information. Here we use message
       body, because it is used in gRPC streams which do not support per message headers.
       This field will be populated with the trace context contained in the original submission.
       If that was not provided, a unique ledger-api-server generated trace context will be used
       instead.
       
      .com.daml.ledger.api.v2.TraceContext trace_context = 6 [json_name = "traceContext"];
      Specified by:
      getTraceContextOrBuilder in interface TopologyTransactionOuterClass.TopologyTransactionOrBuilder
    • setUnknownFields

      public final TopologyTransactionOuterClass.TopologyTransaction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>
    • mergeUnknownFields

      public final TopologyTransactionOuterClass.TopologyTransaction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TopologyTransactionOuterClass.TopologyTransaction.Builder>