Package com.daml.ledger.api.v1
Class CommandsOuterClass.DisclosedContract.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
- com.daml.ledger.api.v1.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
,java.lang.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 typecom.daml.ledger.api.v1.DisclosedContract
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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
public 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
public CommandsOuterClass.DisclosedContract getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommandsOuterClass.DisclosedContract build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommandsOuterClass.DisclosedContract buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommandsOuterClass.DisclosedContract.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, java.lang.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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.DisclosedContract.Builder>
-
mergeFrom
public CommandsOuterClass.DisclosedContract.Builder mergeFrom(com.google.protobuf.Message other)
- 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 java.io.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:
java.io.IOException
-
hasTemplateId
public boolean hasTemplateId()
The template id of the contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
- Specified by:
hasTemplateId
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- Whether the templateId field is set.
-
getTemplateId
public ValueOuterClass.Identifier getTemplateId()
The template id of the contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
- Specified by:
getTemplateId
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- The templateId.
-
setTemplateId
public CommandsOuterClass.DisclosedContract.Builder setTemplateId(ValueOuterClass.Identifier value)
The template id of the contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
setTemplateId
public CommandsOuterClass.DisclosedContract.Builder setTemplateId(ValueOuterClass.Identifier.Builder builderForValue)
The template id of the contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
mergeTemplateId
public CommandsOuterClass.DisclosedContract.Builder mergeTemplateId(ValueOuterClass.Identifier value)
The template id of the contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
clearTemplateId
public CommandsOuterClass.DisclosedContract.Builder clearTemplateId()
The template id of the contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
getTemplateIdBuilder
public ValueOuterClass.Identifier.Builder getTemplateIdBuilder()
The template id of the contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
getTemplateIdOrBuilder
public ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder()
The template id of the contract. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
- Specified by:
getTemplateIdOrBuilder
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
-
getContractId
public java.lang.String 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
public CommandsOuterClass.DisclosedContract.Builder setContractId(java.lang.String value)
The contract id Required
string contract_id = 2 [json_name = "contractId"];
- Parameters:
value
- The contractId to set.- Returns:
- This builder for chaining.
-
clearContractId
public CommandsOuterClass.DisclosedContract.Builder 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.
-
hasArguments
public boolean hasArguments()
The contract arguments Required
.com.daml.ledger.api.v1.Record arguments = 3 [json_name = "arguments"];
- Specified by:
hasArguments
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- Whether the arguments field is set.
-
getArguments
public ValueOuterClass.Record getArguments()
The contract arguments Required
.com.daml.ledger.api.v1.Record arguments = 3 [json_name = "arguments"];
- Specified by:
getArguments
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- The arguments.
-
setArguments
public CommandsOuterClass.DisclosedContract.Builder setArguments(ValueOuterClass.Record value)
The contract arguments Required
.com.daml.ledger.api.v1.Record arguments = 3 [json_name = "arguments"];
-
setArguments
public CommandsOuterClass.DisclosedContract.Builder setArguments(ValueOuterClass.Record.Builder builderForValue)
The contract arguments Required
.com.daml.ledger.api.v1.Record arguments = 3 [json_name = "arguments"];
-
mergeArguments
public CommandsOuterClass.DisclosedContract.Builder mergeArguments(ValueOuterClass.Record value)
The contract arguments Required
.com.daml.ledger.api.v1.Record arguments = 3 [json_name = "arguments"];
-
clearArguments
public CommandsOuterClass.DisclosedContract.Builder clearArguments()
The contract arguments Required
.com.daml.ledger.api.v1.Record arguments = 3 [json_name = "arguments"];
-
getArgumentsBuilder
public ValueOuterClass.Record.Builder getArgumentsBuilder()
The contract arguments Required
.com.daml.ledger.api.v1.Record arguments = 3 [json_name = "arguments"];
-
getArgumentsOrBuilder
public ValueOuterClass.RecordOrBuilder getArgumentsOrBuilder()
The contract arguments Required
.com.daml.ledger.api.v1.Record arguments = 3 [json_name = "arguments"];
- Specified by:
getArgumentsOrBuilder
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
-
hasMetadata
public boolean hasMetadata()
The contract metadata from the create event. Required
.com.daml.ledger.api.v1.ContractMetadata metadata = 4 [json_name = "metadata"];
- Specified by:
hasMetadata
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public ContractMetadataOuterClass.ContractMetadata getMetadata()
The contract metadata from the create event. Required
.com.daml.ledger.api.v1.ContractMetadata metadata = 4 [json_name = "metadata"];
- Specified by:
getMetadata
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
- Returns:
- The metadata.
-
setMetadata
public CommandsOuterClass.DisclosedContract.Builder setMetadata(ContractMetadataOuterClass.ContractMetadata value)
The contract metadata from the create event. Required
.com.daml.ledger.api.v1.ContractMetadata metadata = 4 [json_name = "metadata"];
-
setMetadata
public CommandsOuterClass.DisclosedContract.Builder setMetadata(ContractMetadataOuterClass.ContractMetadata.Builder builderForValue)
The contract metadata from the create event. Required
.com.daml.ledger.api.v1.ContractMetadata metadata = 4 [json_name = "metadata"];
-
mergeMetadata
public CommandsOuterClass.DisclosedContract.Builder mergeMetadata(ContractMetadataOuterClass.ContractMetadata value)
The contract metadata from the create event. Required
.com.daml.ledger.api.v1.ContractMetadata metadata = 4 [json_name = "metadata"];
-
clearMetadata
public CommandsOuterClass.DisclosedContract.Builder clearMetadata()
The contract metadata from the create event. Required
.com.daml.ledger.api.v1.ContractMetadata metadata = 4 [json_name = "metadata"];
-
getMetadataBuilder
public ContractMetadataOuterClass.ContractMetadata.Builder getMetadataBuilder()
The contract metadata from the create event. Required
.com.daml.ledger.api.v1.ContractMetadata metadata = 4 [json_name = "metadata"];
-
getMetadataOrBuilder
public ContractMetadataOuterClass.ContractMetadataOrBuilder getMetadataOrBuilder()
The contract metadata from the create event. Required
.com.daml.ledger.api.v1.ContractMetadata metadata = 4 [json_name = "metadata"];
- Specified by:
getMetadataOrBuilder
in interfaceCommandsOuterClass.DisclosedContractOrBuilder
-
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>
-
-