Class PackageServiceOuterClass.TopologyStateFilter.Builder

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

public static final class PackageServiceOuterClass.TopologyStateFilter.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder> implements PackageServiceOuterClass.TopologyStateFilterOrBuilder
 Filter the vetted packages by the participant and synchronizer that they are
 hosted on.

 Empty fields are ignored, such that a ``TopologyStateFilter`` without
 participant_ids and without synchronizer_ids matches a vetted package hosted
 on any participant and synchronizer.

 Non-empty fields specify candidate values of which at least one must match.
 If both fields are set then at least one candidate value must match from each
 field.
 
Protobuf type com.daml.ledger.api.v2.TopologyStateFilter
  • 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<PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.Builder>
    • getDefaultInstanceForType

      public PackageServiceOuterClass.TopologyStateFilter 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<PackageServiceOuterClass.TopologyStateFilter.Builder>
    • setField

      public PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.Builder>
    • clearField

      public PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.Builder>
    • clearOneof

      public PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.Builder>
    • setRepeatedField

      public PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.Builder>
    • addRepeatedField

      public PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.Builder>
    • mergeFrom

      public PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.Builder>
    • mergeFrom

      public PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.Builder>
      Throws:
      IOException
    • getParticipantIdsList

      public com.google.protobuf.ProtocolStringList getParticipantIdsList()
       If this list is non-empty, only vetted packages hosted on participants
       listed in this field match the filter.
       Query the current Ledger API's participant's ID via the public
       ``GetParticipantId`` command in ``PartyManagementService``.
      
       Optional: can be empty
       
      repeated string participant_ids = 1;
      Specified by:
      getParticipantIdsList in interface PackageServiceOuterClass.TopologyStateFilterOrBuilder
      Returns:
      A list containing the participantIds.
    • getParticipantIdsCount

      public int getParticipantIdsCount()
       If this list is non-empty, only vetted packages hosted on participants
       listed in this field match the filter.
       Query the current Ledger API's participant's ID via the public
       ``GetParticipantId`` command in ``PartyManagementService``.
      
       Optional: can be empty
       
      repeated string participant_ids = 1;
      Specified by:
      getParticipantIdsCount in interface PackageServiceOuterClass.TopologyStateFilterOrBuilder
      Returns:
      The count of participantIds.
    • getParticipantIds

      public String getParticipantIds(int index)
       If this list is non-empty, only vetted packages hosted on participants
       listed in this field match the filter.
       Query the current Ledger API's participant's ID via the public
       ``GetParticipantId`` command in ``PartyManagementService``.
      
       Optional: can be empty
       
      repeated string participant_ids = 1;
      Specified by:
      getParticipantIds in interface PackageServiceOuterClass.TopologyStateFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The participantIds at the given index.
    • getParticipantIdsBytes

      public com.google.protobuf.ByteString getParticipantIdsBytes(int index)
       If this list is non-empty, only vetted packages hosted on participants
       listed in this field match the filter.
       Query the current Ledger API's participant's ID via the public
       ``GetParticipantId`` command in ``PartyManagementService``.
      
       Optional: can be empty
       
      repeated string participant_ids = 1;
      Specified by:
      getParticipantIdsBytes in interface PackageServiceOuterClass.TopologyStateFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the participantIds at the given index.
    • setParticipantIds

      public PackageServiceOuterClass.TopologyStateFilter.Builder setParticipantIds(int index, String value)
       If this list is non-empty, only vetted packages hosted on participants
       listed in this field match the filter.
       Query the current Ledger API's participant's ID via the public
       ``GetParticipantId`` command in ``PartyManagementService``.
      
       Optional: can be empty
       
      repeated string participant_ids = 1;
      Parameters:
      index - The index to set the value at.
      value - The participantIds to set.
      Returns:
      This builder for chaining.
    • addParticipantIds

       If this list is non-empty, only vetted packages hosted on participants
       listed in this field match the filter.
       Query the current Ledger API's participant's ID via the public
       ``GetParticipantId`` command in ``PartyManagementService``.
      
       Optional: can be empty
       
      repeated string participant_ids = 1;
      Parameters:
      value - The participantIds to add.
      Returns:
      This builder for chaining.
    • addAllParticipantIds

       If this list is non-empty, only vetted packages hosted on participants
       listed in this field match the filter.
       Query the current Ledger API's participant's ID via the public
       ``GetParticipantId`` command in ``PartyManagementService``.
      
       Optional: can be empty
       
      repeated string participant_ids = 1;
      Parameters:
      values - The participantIds to add.
      Returns:
      This builder for chaining.
    • clearParticipantIds

       If this list is non-empty, only vetted packages hosted on participants
       listed in this field match the filter.
       Query the current Ledger API's participant's ID via the public
       ``GetParticipantId`` command in ``PartyManagementService``.
      
       Optional: can be empty
       
      repeated string participant_ids = 1;
      Returns:
      This builder for chaining.
    • addParticipantIdsBytes

      public PackageServiceOuterClass.TopologyStateFilter.Builder addParticipantIdsBytes(com.google.protobuf.ByteString value)
       If this list is non-empty, only vetted packages hosted on participants
       listed in this field match the filter.
       Query the current Ledger API's participant's ID via the public
       ``GetParticipantId`` command in ``PartyManagementService``.
      
       Optional: can be empty
       
      repeated string participant_ids = 1;
      Parameters:
      value - The bytes of the participantIds to add.
      Returns:
      This builder for chaining.
    • getSynchronizerIdsList

      public com.google.protobuf.ProtocolStringList getSynchronizerIdsList()
       If this list is non-empty, only vetted packages from the topology state of
       the synchronizers in this list match the filter.
      
       Optional: can be empty
       
      repeated string synchronizer_ids = 2;
      Specified by:
      getSynchronizerIdsList in interface PackageServiceOuterClass.TopologyStateFilterOrBuilder
      Returns:
      A list containing the synchronizerIds.
    • getSynchronizerIdsCount

      public int getSynchronizerIdsCount()
       If this list is non-empty, only vetted packages from the topology state of
       the synchronizers in this list match the filter.
      
       Optional: can be empty
       
      repeated string synchronizer_ids = 2;
      Specified by:
      getSynchronizerIdsCount in interface PackageServiceOuterClass.TopologyStateFilterOrBuilder
      Returns:
      The count of synchronizerIds.
    • getSynchronizerIds

      public String getSynchronizerIds(int index)
       If this list is non-empty, only vetted packages from the topology state of
       the synchronizers in this list match the filter.
      
       Optional: can be empty
       
      repeated string synchronizer_ids = 2;
      Specified by:
      getSynchronizerIds in interface PackageServiceOuterClass.TopologyStateFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The synchronizerIds at the given index.
    • getSynchronizerIdsBytes

      public com.google.protobuf.ByteString getSynchronizerIdsBytes(int index)
       If this list is non-empty, only vetted packages from the topology state of
       the synchronizers in this list match the filter.
      
       Optional: can be empty
       
      repeated string synchronizer_ids = 2;
      Specified by:
      getSynchronizerIdsBytes in interface PackageServiceOuterClass.TopologyStateFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the synchronizerIds at the given index.
    • setSynchronizerIds

      public PackageServiceOuterClass.TopologyStateFilter.Builder setSynchronizerIds(int index, String value)
       If this list is non-empty, only vetted packages from the topology state of
       the synchronizers in this list match the filter.
      
       Optional: can be empty
       
      repeated string synchronizer_ids = 2;
      Parameters:
      index - The index to set the value at.
      value - The synchronizerIds to set.
      Returns:
      This builder for chaining.
    • addSynchronizerIds

       If this list is non-empty, only vetted packages from the topology state of
       the synchronizers in this list match the filter.
      
       Optional: can be empty
       
      repeated string synchronizer_ids = 2;
      Parameters:
      value - The synchronizerIds to add.
      Returns:
      This builder for chaining.
    • addAllSynchronizerIds

       If this list is non-empty, only vetted packages from the topology state of
       the synchronizers in this list match the filter.
      
       Optional: can be empty
       
      repeated string synchronizer_ids = 2;
      Parameters:
      values - The synchronizerIds to add.
      Returns:
      This builder for chaining.
    • clearSynchronizerIds

       If this list is non-empty, only vetted packages from the topology state of
       the synchronizers in this list match the filter.
      
       Optional: can be empty
       
      repeated string synchronizer_ids = 2;
      Returns:
      This builder for chaining.
    • addSynchronizerIdsBytes

      public PackageServiceOuterClass.TopologyStateFilter.Builder addSynchronizerIdsBytes(com.google.protobuf.ByteString value)
       If this list is non-empty, only vetted packages from the topology state of
       the synchronizers in this list match the filter.
      
       Optional: can be empty
       
      repeated string synchronizer_ids = 2;
      Parameters:
      value - The bytes of the synchronizerIds to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.Builder>
    • mergeUnknownFields

      public final PackageServiceOuterClass.TopologyStateFilter.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<PackageServiceOuterClass.TopologyStateFilter.Builder>