Package com.daml.ledger.api.v2.admin
Class PartyManagementServiceOuterClass.AllocatePartyRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
com.daml.ledger.api.v2.admin.PartyManagementServiceOuterClass.AllocatePartyRequest.Builder
- All Implemented Interfaces:
PartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PartyManagementServiceOuterClass.AllocatePartyRequest
public static final class PartyManagementServiceOuterClass.AllocatePartyRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
implements PartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder
Required authorization: ``HasRight(ParticipantAdmin) OR IsAuthenticatedIdentityProviderAdmin(identity_provider_id)``Protobuf type
com.daml.ledger.api.v2.admin.AllocatePartyRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The id of the ``Identity Provider`` Optional, if not set, assume the party is managed by the default identity provider or party is not hosted by the participant.Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A hint to the participant which party ID to allocate.The synchronizer, on which the party should be allocated.The user who will get the act_as rights to the newly allocated party.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe id of the ``Identity Provider`` Optional, if not set, assume the party is managed by the default identity provider or party is not hosted by the participant.com.google.protobuf.ByteStringThe id of the ``Identity Provider`` Optional, if not set, assume the party is managed by the default identity provider or party is not hosted by the participant.Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party.Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party.Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party.A hint to the participant which party ID to allocate.com.google.protobuf.ByteStringA hint to the participant which party ID to allocate.The synchronizer, on which the party should be allocated.com.google.protobuf.ByteStringThe synchronizer, on which the party should be allocated.The user who will get the act_as rights to the newly allocated party.com.google.protobuf.ByteStringThe user who will get the act_as rights to the newly allocated party.booleanParticipant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setIdentityProviderId(String value) The id of the ``Identity Provider`` Optional, if not set, assume the party is managed by the default identity provider or party is not hosted by the participant.setIdentityProviderIdBytes(com.google.protobuf.ByteString value) The id of the ``Identity Provider`` Optional, if not set, assume the party is managed by the default identity provider or party is not hosted by the participant.Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party.setLocalMetadata(ObjectMetaOuterClass.ObjectMeta.Builder builderForValue) Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party.setPartyIdHint(String value) A hint to the participant which party ID to allocate.setPartyIdHintBytes(com.google.protobuf.ByteString value) A hint to the participant which party ID to allocate.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSynchronizerId(String value) The synchronizer, on which the party should be allocated.setSynchronizerIdBytes(com.google.protobuf.ByteString value) The synchronizer, on which the party should be allocated.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The user who will get the act_as rights to the newly allocated party.setUserIdBytes(com.google.protobuf.ByteString value) The user who will get the act_as rights to the newly allocated party.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<PartyManagementServiceOuterClass.AllocatePartyRequest.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<PartyManagementServiceOuterClass.AllocatePartyRequest.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<PartyManagementServiceOuterClass.AllocatePartyRequest.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<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
-
setField
public PartyManagementServiceOuterClass.AllocatePartyRequest.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<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
-
clearField
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
-
clearOneof
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
-
setRepeatedField
public PartyManagementServiceOuterClass.AllocatePartyRequest.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<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
-
addRepeatedField
public PartyManagementServiceOuterClass.AllocatePartyRequest.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<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
-
mergeFrom
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
-
mergeFrom
public PartyManagementServiceOuterClass.AllocatePartyRequest.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<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>- Throws:
IOException
-
getPartyIdHint
A hint to the participant which party ID to allocate. It can be ignored. Must be a valid PartyIdString (as described in ``value.proto``). Optional
string party_id_hint = 1 [json_name = "partyIdHint"];- Specified by:
getPartyIdHintin interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder- Returns:
- The partyIdHint.
-
getPartyIdHintBytes
public com.google.protobuf.ByteString getPartyIdHintBytes()A hint to the participant which party ID to allocate. It can be ignored. Must be a valid PartyIdString (as described in ``value.proto``). Optional
string party_id_hint = 1 [json_name = "partyIdHint"];- Specified by:
getPartyIdHintBytesin interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder- Returns:
- The bytes for partyIdHint.
-
setPartyIdHint
A hint to the participant which party ID to allocate. It can be ignored. Must be a valid PartyIdString (as described in ``value.proto``). Optional
string party_id_hint = 1 [json_name = "partyIdHint"];- Parameters:
value- The partyIdHint to set.- Returns:
- This builder for chaining.
-
clearPartyIdHint
A hint to the participant which party ID to allocate. It can be ignored. Must be a valid PartyIdString (as described in ``value.proto``). Optional
string party_id_hint = 1 [json_name = "partyIdHint"];- Returns:
- This builder for chaining.
-
setPartyIdHintBytes
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder setPartyIdHintBytes(com.google.protobuf.ByteString value) A hint to the participant which party ID to allocate. It can be ignored. Must be a valid PartyIdString (as described in ``value.proto``). Optional
string party_id_hint = 1 [json_name = "partyIdHint"];- Parameters:
value- The bytes for partyIdHint to set.- Returns:
- This builder for chaining.
-
hasLocalMetadata
public boolean hasLocalMetadata()Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party. Optional
.com.daml.ledger.api.v2.admin.ObjectMeta local_metadata = 3 [json_name = "localMetadata"];- Specified by:
hasLocalMetadatain interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder- Returns:
- Whether the localMetadata field is set.
-
getLocalMetadata
Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party. Optional
.com.daml.ledger.api.v2.admin.ObjectMeta local_metadata = 3 [json_name = "localMetadata"];- Specified by:
getLocalMetadatain interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder- Returns:
- The localMetadata.
-
setLocalMetadata
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder setLocalMetadata(ObjectMetaOuterClass.ObjectMeta value) Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party. Optional
.com.daml.ledger.api.v2.admin.ObjectMeta local_metadata = 3 [json_name = "localMetadata"]; -
setLocalMetadata
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder setLocalMetadata(ObjectMetaOuterClass.ObjectMeta.Builder builderForValue) Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party. Optional
.com.daml.ledger.api.v2.admin.ObjectMeta local_metadata = 3 [json_name = "localMetadata"]; -
mergeLocalMetadata
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder mergeLocalMetadata(ObjectMetaOuterClass.ObjectMeta value) Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party. Optional
.com.daml.ledger.api.v2.admin.ObjectMeta local_metadata = 3 [json_name = "localMetadata"]; -
clearLocalMetadata
Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party. Optional
.com.daml.ledger.api.v2.admin.ObjectMeta local_metadata = 3 [json_name = "localMetadata"]; -
getLocalMetadataBuilder
Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party. Optional
.com.daml.ledger.api.v2.admin.ObjectMeta local_metadata = 3 [json_name = "localMetadata"]; -
getLocalMetadataOrBuilder
Participant-local metadata to be stored in the ``PartyDetails`` of this newly allocated party. Optional
.com.daml.ledger.api.v2.admin.ObjectMeta local_metadata = 3 [json_name = "localMetadata"];- Specified by:
getLocalMetadataOrBuilderin interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder
-
getIdentityProviderId
The id of the ``Identity Provider`` Optional, if not set, assume the party is managed by the default identity provider or party is not hosted by the participant.
string identity_provider_id = 4 [json_name = "identityProviderId"];- Specified by:
getIdentityProviderIdin interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder- Returns:
- The identityProviderId.
-
getIdentityProviderIdBytes
public com.google.protobuf.ByteString getIdentityProviderIdBytes()The id of the ``Identity Provider`` Optional, if not set, assume the party is managed by the default identity provider or party is not hosted by the participant.
string identity_provider_id = 4 [json_name = "identityProviderId"];- Specified by:
getIdentityProviderIdBytesin interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder- Returns:
- The bytes for identityProviderId.
-
setIdentityProviderId
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder setIdentityProviderId(String value) The id of the ``Identity Provider`` Optional, if not set, assume the party is managed by the default identity provider or party is not hosted by the participant.
string identity_provider_id = 4 [json_name = "identityProviderId"];- Parameters:
value- The identityProviderId to set.- Returns:
- This builder for chaining.
-
clearIdentityProviderId
The id of the ``Identity Provider`` Optional, if not set, assume the party is managed by the default identity provider or party is not hosted by the participant.
string identity_provider_id = 4 [json_name = "identityProviderId"];- Returns:
- This builder for chaining.
-
setIdentityProviderIdBytes
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder setIdentityProviderIdBytes(com.google.protobuf.ByteString value) The id of the ``Identity Provider`` Optional, if not set, assume the party is managed by the default identity provider or party is not hosted by the participant.
string identity_provider_id = 4 [json_name = "identityProviderId"];- Parameters:
value- The bytes for identityProviderId to set.- Returns:
- This builder for chaining.
-
getSynchronizerId
The synchronizer, on which the party should be allocated. For backwards compatibility, this field may be omitted, if the participant is connected to only one synchronizer. Otherwise a synchronizer must be specified. Optional
string synchronizer_id = 5 [json_name = "synchronizerId"];- Specified by:
getSynchronizerIdin interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder- Returns:
- The synchronizerId.
-
getSynchronizerIdBytes
public com.google.protobuf.ByteString getSynchronizerIdBytes()The synchronizer, on which the party should be allocated. For backwards compatibility, this field may be omitted, if the participant is connected to only one synchronizer. Otherwise a synchronizer must be specified. Optional
string synchronizer_id = 5 [json_name = "synchronizerId"];- Specified by:
getSynchronizerIdBytesin interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder- Returns:
- The bytes for synchronizerId.
-
setSynchronizerId
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder setSynchronizerId(String value) The synchronizer, on which the party should be allocated. For backwards compatibility, this field may be omitted, if the participant is connected to only one synchronizer. Otherwise a synchronizer must be specified. Optional
string synchronizer_id = 5 [json_name = "synchronizerId"];- Parameters:
value- The synchronizerId to set.- Returns:
- This builder for chaining.
-
clearSynchronizerId
The synchronizer, on which the party should be allocated. For backwards compatibility, this field may be omitted, if the participant is connected to only one synchronizer. Otherwise a synchronizer must be specified. Optional
string synchronizer_id = 5 [json_name = "synchronizerId"];- Returns:
- This builder for chaining.
-
setSynchronizerIdBytes
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder setSynchronizerIdBytes(com.google.protobuf.ByteString value) The synchronizer, on which the party should be allocated. For backwards compatibility, this field may be omitted, if the participant is connected to only one synchronizer. Otherwise a synchronizer must be specified. Optional
string synchronizer_id = 5 [json_name = "synchronizerId"];- Parameters:
value- The bytes for synchronizerId to set.- Returns:
- This builder for chaining.
-
getUserId
The user who will get the act_as rights to the newly allocated party. If set to an empty string (the default), no user will get rights to the party. Optional
string user_id = 6 [json_name = "userId"];- Specified by:
getUserIdin interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder- Returns:
- The userId.
-
getUserIdBytes
public com.google.protobuf.ByteString getUserIdBytes()The user who will get the act_as rights to the newly allocated party. If set to an empty string (the default), no user will get rights to the party. Optional
string user_id = 6 [json_name = "userId"];- Specified by:
getUserIdBytesin interfacePartyManagementServiceOuterClass.AllocatePartyRequestOrBuilder- Returns:
- The bytes for userId.
-
setUserId
The user who will get the act_as rights to the newly allocated party. If set to an empty string (the default), no user will get rights to the party. Optional
string user_id = 6 [json_name = "userId"];- Parameters:
value- The userId to set.- Returns:
- This builder for chaining.
-
clearUserId
The user who will get the act_as rights to the newly allocated party. If set to an empty string (the default), no user will get rights to the party. Optional
string user_id = 6 [json_name = "userId"];- Returns:
- This builder for chaining.
-
setUserIdBytes
public PartyManagementServiceOuterClass.AllocatePartyRequest.Builder setUserIdBytes(com.google.protobuf.ByteString value) The user who will get the act_as rights to the newly allocated party. If set to an empty string (the default), no user will get rights to the party. Optional
string user_id = 6 [json_name = "userId"];- Parameters:
value- The bytes for userId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PartyManagementServiceOuterClass.AllocatePartyRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
-
mergeUnknownFields
public final PartyManagementServiceOuterClass.AllocatePartyRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PartyManagementServiceOuterClass.AllocatePartyRequest.Builder>
-