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.ByteStringThe contract id Requiredcom.google.protobuf.ByteStringOpaque 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.Descriptorcom.google.protobuf.Descriptors.DescriptorThe ID of the synchronizer where the contract is currently assigned Optionalcom.google.protobuf.ByteStringThe 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.booleanThe template id of the contract.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(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, 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<CommandsOuterClass.DisclosedContract.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<CommandsOuterClass.DisclosedContract.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<CommandsOuterClass.DisclosedContract.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<CommandsOuterClass.DisclosedContract.Builder>
-
setField
public CommandsOuterClass.DisclosedContract.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<CommandsOuterClass.DisclosedContract.Builder>
-
clearField
public CommandsOuterClass.DisclosedContract.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
clearOneof
public CommandsOuterClass.DisclosedContract.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
addRepeatedField
public CommandsOuterClass.DisclosedContract.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<CommandsOuterClass.DisclosedContract.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
mergeFrom
public CommandsOuterClass.DisclosedContract.Builder mergeFrom(CommandsOuterClass.DisclosedContract other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasTemplateIdin 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:
getTemplateIdin 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:
getTemplateIdOrBuilderin interfaceCommandsOuterClass.DisclosedContractOrBuilder
-
getContractId
The contract id Required
string contract_id = 2 [json_name = "contractId"];- Specified by:
getContractIdin 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:
getContractIdBytesin 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:
getCreatedEventBlobin 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:
getSynchronizerIdin 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:
getSynchronizerIdBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
mergeUnknownFields
public final CommandsOuterClass.DisclosedContract.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-