Package com.daml.ledger.api.v2
Class CommandsOuterClass.DisclosedContract.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
com.daml.ledger.api.v2.CommandsOuterClass.DisclosedContract.Builder
- All Implemented Interfaces:
CommandsOuterClass.DisclosedContractOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CommandsOuterClass.DisclosedContract
public static final class CommandsOuterClass.DisclosedContract.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
implements CommandsOuterClass.DisclosedContractOrBuilder
An additional contract that is used to resolve contract & contract key lookups.Protobuf type
com.daml.ledger.api.v2.DisclosedContract
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The contract id RequiredOpaque byte string containing the complete payload required by the Daml engine to reconstruct a contract not known to the receiving participant.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The ID of the synchronizer where the contract is currently assigned OptionalThe template id of the contract.clone()
The contract id Requiredcom.google.protobuf.ByteString
The contract id Requiredcom.google.protobuf.ByteString
Opaque byte string containing the complete payload required by the Daml engine to reconstruct a contract not known to the receiving participant.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The ID of the synchronizer where the contract is currently assigned Optionalcom.google.protobuf.ByteString
The ID of the synchronizer where the contract is currently assigned OptionalThe template id of the contract.The template id of the contract.The template id of the contract.boolean
The template id of the contract.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) The template id of the contract.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setContractId
(String value) The contract id RequiredsetContractIdBytes
(com.google.protobuf.ByteString value) The contract id RequiredsetCreatedEventBlob
(com.google.protobuf.ByteString value) Opaque byte string containing the complete payload required by the Daml engine to reconstruct a contract not known to the receiving participant.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSynchronizerId
(String value) The ID of the synchronizer where the contract is currently assigned OptionalsetSynchronizerIdBytes
(com.google.protobuf.ByteString value) The ID of the synchronizer where the contract is currently assigned OptionalThe template id of the contract.setTemplateId
(ValueOuterClass.Identifier.Builder builderForValue) The template id of the contract.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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
setField
public CommandsOuterClass.DisclosedContract.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
clearField
public CommandsOuterClass.DisclosedContract.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
clearOneof
public CommandsOuterClass.DisclosedContract.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
setRepeatedField
public CommandsOuterClass.DisclosedContract.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
addRepeatedField
public CommandsOuterClass.DisclosedContract.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
mergeFrom
public CommandsOuterClass.DisclosedContract.Builder mergeFrom(CommandsOuterClass.DisclosedContract other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
mergeFrom
public CommandsOuterClass.DisclosedContract.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommandsOuterClass.DisclosedContract.Builder>
- Throws:
IOException
-
hasTemplateId
public boolean hasTemplateId()The template id of the contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
- Specified by:
hasTemplateId
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- Whether the templateId field is set.
-
getTemplateId
The template id of the contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
- Specified by:
getTemplateId
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- The templateId.
-
setTemplateId
The template id of the contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
-
setTemplateId
public CommandsOuterClass.DisclosedContract.Builder setTemplateId(ValueOuterClass.Identifier.Builder builderForValue) The template id of the contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
-
mergeTemplateId
public CommandsOuterClass.DisclosedContract.Builder mergeTemplateId(ValueOuterClass.Identifier value) The template id of the contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
-
clearTemplateId
The template id of the contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
-
getTemplateIdBuilder
The template id of the contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
-
getTemplateIdOrBuilder
The template id of the contract. The identifier uses the package-id reference format. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];
- Specified by:
getTemplateIdOrBuilder
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
-
getContractId
The contract id Required
string contract_id = 2 [json_name = "contractId"];
- Specified by:
getContractId
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- The contractId.
-
getContractIdBytes
public com.google.protobuf.ByteString getContractIdBytes()The contract id Required
string contract_id = 2 [json_name = "contractId"];
- Specified by:
getContractIdBytes
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- The bytes for contractId.
-
setContractId
The contract id Required
string contract_id = 2 [json_name = "contractId"];
- Parameters:
value
- The contractId to set.- Returns:
- This builder for chaining.
-
clearContractId
The contract id Required
string contract_id = 2 [json_name = "contractId"];
- Returns:
- This builder for chaining.
-
setContractIdBytes
public CommandsOuterClass.DisclosedContract.Builder setContractIdBytes(com.google.protobuf.ByteString value) The contract id Required
string contract_id = 2 [json_name = "contractId"];
- Parameters:
value
- The bytes for contractId to set.- Returns:
- This builder for chaining.
-
getCreatedEventBlob
public com.google.protobuf.ByteString getCreatedEventBlob()Opaque byte string containing the complete payload required by the Daml engine to reconstruct a contract not known to the receiving participant. Required
bytes created_event_blob = 3 [json_name = "createdEventBlob"];
- Specified by:
getCreatedEventBlob
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- The createdEventBlob.
-
setCreatedEventBlob
public CommandsOuterClass.DisclosedContract.Builder setCreatedEventBlob(com.google.protobuf.ByteString value) Opaque byte string containing the complete payload required by the Daml engine to reconstruct a contract not known to the receiving participant. Required
bytes created_event_blob = 3 [json_name = "createdEventBlob"];
- Parameters:
value
- The createdEventBlob to set.- Returns:
- This builder for chaining.
-
clearCreatedEventBlob
Opaque byte string containing the complete payload required by the Daml engine to reconstruct a contract not known to the receiving participant. Required
bytes created_event_blob = 3 [json_name = "createdEventBlob"];
- Returns:
- This builder for chaining.
-
getSynchronizerId
The ID of the synchronizer where the contract is currently assigned Optional
string synchronizer_id = 4 [json_name = "synchronizerId"];
- Specified by:
getSynchronizerId
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- The synchronizerId.
-
getSynchronizerIdBytes
public com.google.protobuf.ByteString getSynchronizerIdBytes()The ID of the synchronizer where the contract is currently assigned Optional
string synchronizer_id = 4 [json_name = "synchronizerId"];
- Specified by:
getSynchronizerIdBytes
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- The bytes for synchronizerId.
-
setSynchronizerId
The ID of the synchronizer where the contract is currently assigned Optional
string synchronizer_id = 4 [json_name = "synchronizerId"];
- Parameters:
value
- The synchronizerId to set.- Returns:
- This builder for chaining.
-
clearSynchronizerId
The ID of the synchronizer where the contract is currently assigned Optional
string synchronizer_id = 4 [json_name = "synchronizerId"];
- Returns:
- This builder for chaining.
-
setSynchronizerIdBytes
public CommandsOuterClass.DisclosedContract.Builder setSynchronizerIdBytes(com.google.protobuf.ByteString value) The ID of the synchronizer where the contract is currently assigned Optional
string synchronizer_id = 4 [json_name = "synchronizerId"];
- Parameters:
value
- The bytes for synchronizerId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CommandsOuterClass.DisclosedContract.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
mergeUnknownFields
public final CommandsOuterClass.DisclosedContract.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-