Class StateServiceOuterClass.ActiveContract.Builder

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

public static final class StateServiceOuterClass.ActiveContract.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StateServiceOuterClass.ActiveContract.Builder> implements StateServiceOuterClass.ActiveContractOrBuilder
Protobuf type com.daml.ledger.api.v2.ActiveContract
  • 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<StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.Builder>
    • getDefaultInstanceForType

      public StateServiceOuterClass.ActiveContract 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<StateServiceOuterClass.ActiveContract.Builder>
    • setField

      public StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.Builder>
    • clearField

      public StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.Builder>
    • clearOneof

      public StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.Builder>
    • setRepeatedField

      public StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.Builder>
    • addRepeatedField

      public StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.Builder>
    • mergeFrom

      public StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.Builder>
    • mergeFrom

      public StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.Builder>
      Throws:
      IOException
    • hasCreatedEvent

      public boolean hasCreatedEvent()
       Required
       The event as it appeared in the context of its last update (i.e. daml transaction or
       reassignment). In particular, the last offset, node_id pair is preserved.
       The last update is the most recent update created or assigned this contract on synchronizer_id synchronizer.
       The offset of the CreatedEvent might point to an already pruned update, therefore it cannot necessarily be used
       for lookups.
       
      .com.daml.ledger.api.v2.CreatedEvent created_event = 1 [json_name = "createdEvent"];
      Specified by:
      hasCreatedEvent in interface StateServiceOuterClass.ActiveContractOrBuilder
      Returns:
      Whether the createdEvent field is set.
    • getCreatedEvent

      public EventOuterClass.CreatedEvent getCreatedEvent()
       Required
       The event as it appeared in the context of its last update (i.e. daml transaction or
       reassignment). In particular, the last offset, node_id pair is preserved.
       The last update is the most recent update created or assigned this contract on synchronizer_id synchronizer.
       The offset of the CreatedEvent might point to an already pruned update, therefore it cannot necessarily be used
       for lookups.
       
      .com.daml.ledger.api.v2.CreatedEvent created_event = 1 [json_name = "createdEvent"];
      Specified by:
      getCreatedEvent in interface StateServiceOuterClass.ActiveContractOrBuilder
      Returns:
      The createdEvent.
    • setCreatedEvent

       Required
       The event as it appeared in the context of its last update (i.e. daml transaction or
       reassignment). In particular, the last offset, node_id pair is preserved.
       The last update is the most recent update created or assigned this contract on synchronizer_id synchronizer.
       The offset of the CreatedEvent might point to an already pruned update, therefore it cannot necessarily be used
       for lookups.
       
      .com.daml.ledger.api.v2.CreatedEvent created_event = 1 [json_name = "createdEvent"];
    • setCreatedEvent

       Required
       The event as it appeared in the context of its last update (i.e. daml transaction or
       reassignment). In particular, the last offset, node_id pair is preserved.
       The last update is the most recent update created or assigned this contract on synchronizer_id synchronizer.
       The offset of the CreatedEvent might point to an already pruned update, therefore it cannot necessarily be used
       for lookups.
       
      .com.daml.ledger.api.v2.CreatedEvent created_event = 1 [json_name = "createdEvent"];
    • mergeCreatedEvent

       Required
       The event as it appeared in the context of its last update (i.e. daml transaction or
       reassignment). In particular, the last offset, node_id pair is preserved.
       The last update is the most recent update created or assigned this contract on synchronizer_id synchronizer.
       The offset of the CreatedEvent might point to an already pruned update, therefore it cannot necessarily be used
       for lookups.
       
      .com.daml.ledger.api.v2.CreatedEvent created_event = 1 [json_name = "createdEvent"];
    • clearCreatedEvent

       Required
       The event as it appeared in the context of its last update (i.e. daml transaction or
       reassignment). In particular, the last offset, node_id pair is preserved.
       The last update is the most recent update created or assigned this contract on synchronizer_id synchronizer.
       The offset of the CreatedEvent might point to an already pruned update, therefore it cannot necessarily be used
       for lookups.
       
      .com.daml.ledger.api.v2.CreatedEvent created_event = 1 [json_name = "createdEvent"];
    • getCreatedEventBuilder

      public EventOuterClass.CreatedEvent.Builder getCreatedEventBuilder()
       Required
       The event as it appeared in the context of its last update (i.e. daml transaction or
       reassignment). In particular, the last offset, node_id pair is preserved.
       The last update is the most recent update created or assigned this contract on synchronizer_id synchronizer.
       The offset of the CreatedEvent might point to an already pruned update, therefore it cannot necessarily be used
       for lookups.
       
      .com.daml.ledger.api.v2.CreatedEvent created_event = 1 [json_name = "createdEvent"];
    • getCreatedEventOrBuilder

      public EventOuterClass.CreatedEventOrBuilder getCreatedEventOrBuilder()
       Required
       The event as it appeared in the context of its last update (i.e. daml transaction or
       reassignment). In particular, the last offset, node_id pair is preserved.
       The last update is the most recent update created or assigned this contract on synchronizer_id synchronizer.
       The offset of the CreatedEvent might point to an already pruned update, therefore it cannot necessarily be used
       for lookups.
       
      .com.daml.ledger.api.v2.CreatedEvent created_event = 1 [json_name = "createdEvent"];
      Specified by:
      getCreatedEventOrBuilder in interface StateServiceOuterClass.ActiveContractOrBuilder
    • getSynchronizerId

      public String getSynchronizerId()
       A valid synchronizer id
       Required
       
      string synchronizer_id = 2 [json_name = "synchronizerId"];
      Specified by:
      getSynchronizerId in interface StateServiceOuterClass.ActiveContractOrBuilder
      Returns:
      The synchronizerId.
    • getSynchronizerIdBytes

      public com.google.protobuf.ByteString getSynchronizerIdBytes()
       A valid synchronizer id
       Required
       
      string synchronizer_id = 2 [json_name = "synchronizerId"];
      Specified by:
      getSynchronizerIdBytes in interface StateServiceOuterClass.ActiveContractOrBuilder
      Returns:
      The bytes for synchronizerId.
    • setSynchronizerId

      public StateServiceOuterClass.ActiveContract.Builder setSynchronizerId(String value)
       A valid synchronizer id
       Required
       
      string synchronizer_id = 2 [json_name = "synchronizerId"];
      Parameters:
      value - The synchronizerId to set.
      Returns:
      This builder for chaining.
    • clearSynchronizerId

      public StateServiceOuterClass.ActiveContract.Builder clearSynchronizerId()
       A valid synchronizer id
       Required
       
      string synchronizer_id = 2 [json_name = "synchronizerId"];
      Returns:
      This builder for chaining.
    • setSynchronizerIdBytes

      public StateServiceOuterClass.ActiveContract.Builder setSynchronizerIdBytes(com.google.protobuf.ByteString value)
       A valid synchronizer id
       Required
       
      string synchronizer_id = 2 [json_name = "synchronizerId"];
      Parameters:
      value - The bytes for synchronizerId to set.
      Returns:
      This builder for chaining.
    • getReassignmentCounter

      public long getReassignmentCounter()
       Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
       with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
       equals zero.
       This field will be the reassignment_counter of the latest observable activation event on this synchronizer, which is
       before the active_at_offset.
       Required
       
      uint64 reassignment_counter = 3 [json_name = "reassignmentCounter"];
      Specified by:
      getReassignmentCounter in interface StateServiceOuterClass.ActiveContractOrBuilder
      Returns:
      The reassignmentCounter.
    • setReassignmentCounter

      public StateServiceOuterClass.ActiveContract.Builder setReassignmentCounter(long value)
       Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
       with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
       equals zero.
       This field will be the reassignment_counter of the latest observable activation event on this synchronizer, which is
       before the active_at_offset.
       Required
       
      uint64 reassignment_counter = 3 [json_name = "reassignmentCounter"];
      Parameters:
      value - The reassignmentCounter to set.
      Returns:
      This builder for chaining.
    • clearReassignmentCounter

      public StateServiceOuterClass.ActiveContract.Builder clearReassignmentCounter()
       Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases
       with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter
       equals zero.
       This field will be the reassignment_counter of the latest observable activation event on this synchronizer, which is
       before the active_at_offset.
       Required
       
      uint64 reassignment_counter = 3 [json_name = "reassignmentCounter"];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.Builder>
    • mergeUnknownFields

      public final StateServiceOuterClass.ActiveContract.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<StateServiceOuterClass.ActiveContract.Builder>