Class StateServiceOuterClass.GetActiveContractsRequest.Builder

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

public static final class StateServiceOuterClass.GetActiveContractsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StateServiceOuterClass.GetActiveContractsRequest.Builder> implements StateServiceOuterClass.GetActiveContractsRequestOrBuilder
 If the given offset is different than the ledger end, and there are (un)assignments in-flight at the given offset,
 the snapshot may fail with "FAILED_PRECONDITION/PARTICIPANT_PRUNED_DATA_ACCESSED".
 Note that it is ok to request acs snapshots for party migration with offsets other than ledger end, because party
 migration is not concerned with incomplete (un)assignments.
 
Protobuf type com.daml.ledger.api.v2.GetActiveContractsRequest
  • 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.GetActiveContractsRequest.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.GetActiveContractsRequest.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.GetActiveContractsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public long getActiveAtOffset()
       The offset at which the snapshot of the active contracts will be computed.
       Must be no greater than the current ledger end offset.
       Must be greater than or equal to the last pruning offset.
       Must be a valid absolute offset (positive integer) or ledger begin offset (zero).
       If zero, the empty set will be returned.
      
       Required
       
      int64 active_at_offset = 3;
      Specified by:
      getActiveAtOffset in interface StateServiceOuterClass.GetActiveContractsRequestOrBuilder
      Returns:
      The activeAtOffset.
    • setActiveAtOffset

      public StateServiceOuterClass.GetActiveContractsRequest.Builder setActiveAtOffset(long value)
       The offset at which the snapshot of the active contracts will be computed.
       Must be no greater than the current ledger end offset.
       Must be greater than or equal to the last pruning offset.
       Must be a valid absolute offset (positive integer) or ledger begin offset (zero).
       If zero, the empty set will be returned.
      
       Required
       
      int64 active_at_offset = 3;
      Parameters:
      value - The activeAtOffset to set.
      Returns:
      This builder for chaining.
    • clearActiveAtOffset

       The offset at which the snapshot of the active contracts will be computed.
       Must be no greater than the current ledger end offset.
       Must be greater than or equal to the last pruning offset.
       Must be a valid absolute offset (positive integer) or ledger begin offset (zero).
       If zero, the empty set will be returned.
      
       Required
       
      int64 active_at_offset = 3;
      Returns:
      This builder for chaining.
    • hasEventFormat

      public boolean hasEventFormat()
       Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of
       TRANSACTION_SHAPE_ACS_DELTA.
      
       Required
       
      .com.daml.ledger.api.v2.EventFormat event_format = 4;
      Specified by:
      hasEventFormat in interface StateServiceOuterClass.GetActiveContractsRequestOrBuilder
      Returns:
      Whether the eventFormat field is set.
    • getEventFormat

      public TransactionFilterOuterClass.EventFormat getEventFormat()
       Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of
       TRANSACTION_SHAPE_ACS_DELTA.
      
       Required
       
      .com.daml.ledger.api.v2.EventFormat event_format = 4;
      Specified by:
      getEventFormat in interface StateServiceOuterClass.GetActiveContractsRequestOrBuilder
      Returns:
      The eventFormat.
    • setEventFormat

       Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of
       TRANSACTION_SHAPE_ACS_DELTA.
      
       Required
       
      .com.daml.ledger.api.v2.EventFormat event_format = 4;
    • setEventFormat

       Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of
       TRANSACTION_SHAPE_ACS_DELTA.
      
       Required
       
      .com.daml.ledger.api.v2.EventFormat event_format = 4;
    • mergeEventFormat

       Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of
       TRANSACTION_SHAPE_ACS_DELTA.
      
       Required
       
      .com.daml.ledger.api.v2.EventFormat event_format = 4;
    • clearEventFormat

       Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of
       TRANSACTION_SHAPE_ACS_DELTA.
      
       Required
       
      .com.daml.ledger.api.v2.EventFormat event_format = 4;
    • getEventFormatBuilder

      public TransactionFilterOuterClass.EventFormat.Builder getEventFormatBuilder()
       Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of
       TRANSACTION_SHAPE_ACS_DELTA.
      
       Required
       
      .com.daml.ledger.api.v2.EventFormat event_format = 4;
    • getEventFormatOrBuilder

      public TransactionFilterOuterClass.EventFormatOrBuilder getEventFormatOrBuilder()
       Format of the contract_entries in the result. In case of CreatedEvent the presentation will be of
       TRANSACTION_SHAPE_ACS_DELTA.
      
       Required
       
      .com.daml.ledger.api.v2.EventFormat event_format = 4;
      Specified by:
      getEventFormatOrBuilder in interface StateServiceOuterClass.GetActiveContractsRequestOrBuilder
    • hasStreamContinuationToken

      public boolean hasStreamContinuationToken()
       Opaque representation of a continuation token defining a position in the active contracts snapshot.
       The prefix of the active contracts snapshot will be omitted up to and including the element from which
       the continuation token was read.
       To reuse the continuation token from a `GetActiveContractsPageResponse`:
      
       - subsequent request must be executed on the same participant with the same version of canton,
       - subsequent request must have the same active_at_offset,
       - subsequent request must have the same event_format
       - and the participant must not have been pruned after the active_at_offset.
      
       If not specified, the whole active contracts snapshot will be returned.
      
       Optional: can be empty
       
      optional bytes stream_continuation_token = 5;
      Specified by:
      hasStreamContinuationToken in interface StateServiceOuterClass.GetActiveContractsRequestOrBuilder
      Returns:
      Whether the streamContinuationToken field is set.
    • getStreamContinuationToken

      public com.google.protobuf.ByteString getStreamContinuationToken()
       Opaque representation of a continuation token defining a position in the active contracts snapshot.
       The prefix of the active contracts snapshot will be omitted up to and including the element from which
       the continuation token was read.
       To reuse the continuation token from a `GetActiveContractsPageResponse`:
      
       - subsequent request must be executed on the same participant with the same version of canton,
       - subsequent request must have the same active_at_offset,
       - subsequent request must have the same event_format
       - and the participant must not have been pruned after the active_at_offset.
      
       If not specified, the whole active contracts snapshot will be returned.
      
       Optional: can be empty
       
      optional bytes stream_continuation_token = 5;
      Specified by:
      getStreamContinuationToken in interface StateServiceOuterClass.GetActiveContractsRequestOrBuilder
      Returns:
      The streamContinuationToken.
    • setStreamContinuationToken

      public StateServiceOuterClass.GetActiveContractsRequest.Builder setStreamContinuationToken(com.google.protobuf.ByteString value)
       Opaque representation of a continuation token defining a position in the active contracts snapshot.
       The prefix of the active contracts snapshot will be omitted up to and including the element from which
       the continuation token was read.
       To reuse the continuation token from a `GetActiveContractsPageResponse`:
      
       - subsequent request must be executed on the same participant with the same version of canton,
       - subsequent request must have the same active_at_offset,
       - subsequent request must have the same event_format
       - and the participant must not have been pruned after the active_at_offset.
      
       If not specified, the whole active contracts snapshot will be returned.
      
       Optional: can be empty
       
      optional bytes stream_continuation_token = 5;
      Parameters:
      value - The streamContinuationToken to set.
      Returns:
      This builder for chaining.
    • clearStreamContinuationToken

      public StateServiceOuterClass.GetActiveContractsRequest.Builder clearStreamContinuationToken()
       Opaque representation of a continuation token defining a position in the active contracts snapshot.
       The prefix of the active contracts snapshot will be omitted up to and including the element from which
       the continuation token was read.
       To reuse the continuation token from a `GetActiveContractsPageResponse`:
      
       - subsequent request must be executed on the same participant with the same version of canton,
       - subsequent request must have the same active_at_offset,
       - subsequent request must have the same event_format
       - and the participant must not have been pruned after the active_at_offset.
      
       If not specified, the whole active contracts snapshot will be returned.
      
       Optional: can be empty
       
      optional bytes stream_continuation_token = 5;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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