Package com.daml.ledger.api.v2
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 Summary
Modifier and TypeMethodDescriptionaddAllParticipantIds(Iterable<String> values) If this list is non-empty, only vetted packages hosted on participants listed in this field match the filter.addAllSynchronizerIds(Iterable<String> values) If this list is non-empty, only vetted packages from the topology state of the synchronizers in this list match the filter.addParticipantIds(String value) If this list is non-empty, only vetted packages hosted on participants listed in this field match the filter.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.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSynchronizerIds(String value) If this list is non-empty, only vetted packages from the topology state of the synchronizers in this list match the filter.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.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If this list is non-empty, only vetted packages hosted on participants listed in this field match the filter.If this list is non-empty, only vetted packages from the topology state of the synchronizers in this list match the filter.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetParticipantIds(int index) If this list is non-empty, only vetted packages hosted on participants listed in this field match the filter.com.google.protobuf.ByteStringgetParticipantIdsBytes(int index) If this list is non-empty, only vetted packages hosted on participants listed in this field match the filter.intIf this list is non-empty, only vetted packages hosted on participants listed in this field match the filter.com.google.protobuf.ProtocolStringListIf this list is non-empty, only vetted packages hosted on participants listed in this field match the filter.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.com.google.protobuf.ByteStringgetSynchronizerIdsBytes(int index) If this list is non-empty, only vetted packages from the topology state of the synchronizers in this list match the filter.intIf this list is non-empty, only vetted packages from the topology state of the synchronizers in this list match the filter.com.google.protobuf.ProtocolStringListIf this list is non-empty, only vetted packages from the topology state of the synchronizers in this list match the filter.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setParticipantIds(int index, String value) If this list is non-empty, only vetted packages hosted on participants listed in this field match the filter.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-
setField
public PackageServiceOuterClass.TopologyStateFilter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-
clearField
public PackageServiceOuterClass.TopologyStateFilter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-
clearOneof
public PackageServiceOuterClass.TopologyStateFilter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-
addRepeatedField
public PackageServiceOuterClass.TopologyStateFilter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-
mergeFrom
public PackageServiceOuterClass.TopologyStateFilter.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-
mergeFrom
public PackageServiceOuterClass.TopologyStateFilter.Builder mergeFrom(PackageServiceOuterClass.TopologyStateFilter other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getParticipantIdsListin interfacePackageServiceOuterClass.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:
getParticipantIdsCountin interfacePackageServiceOuterClass.TopologyStateFilterOrBuilder- Returns:
- The count of participantIds.
-
getParticipantIds
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:
getParticipantIdsin interfacePackageServiceOuterClass.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:
getParticipantIdsBytesin interfacePackageServiceOuterClass.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
public PackageServiceOuterClass.TopologyStateFilter.Builder addAllParticipantIds(Iterable<String> values) 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:
getSynchronizerIdsListin interfacePackageServiceOuterClass.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:
getSynchronizerIdsCountin interfacePackageServiceOuterClass.TopologyStateFilterOrBuilder- Returns:
- The count of synchronizerIds.
-
getSynchronizerIds
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:
getSynchronizerIdsin interfacePackageServiceOuterClass.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:
getSynchronizerIdsBytesin interfacePackageServiceOuterClass.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
public PackageServiceOuterClass.TopologyStateFilter.Builder addAllSynchronizerIds(Iterable<String> values) 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-
mergeUnknownFields
public final PackageServiceOuterClass.TopologyStateFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PackageServiceOuterClass.TopologyStateFilter.Builder>
-