Package com.daml.ledger.api.v1
Class CommandsOuterClass.ExerciseCommand.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
- com.daml.ledger.api.v1.CommandsOuterClass.ExerciseCommand.Builder
-
- All Implemented Interfaces:
CommandsOuterClass.ExerciseCommandOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- CommandsOuterClass.ExerciseCommand
public static final class CommandsOuterClass.ExerciseCommand.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder> implements CommandsOuterClass.ExerciseCommandOrBuilder
Exercise a choice on an existing contract.
Protobuf typecom.daml.ledger.api.v1.ExerciseCommand
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandsOuterClass.ExerciseCommand.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CommandsOuterClass.ExerciseCommandbuild()CommandsOuterClass.ExerciseCommandbuildPartial()CommandsOuterClass.ExerciseCommand.Builderclear()CommandsOuterClass.ExerciseCommand.BuilderclearChoice()The name of the choice the client wants to exercise.CommandsOuterClass.ExerciseCommand.BuilderclearChoiceArgument()The argument for this choice.CommandsOuterClass.ExerciseCommand.BuilderclearContractId()The ID of the contract the client wants to exercise upon.CommandsOuterClass.ExerciseCommand.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CommandsOuterClass.ExerciseCommand.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CommandsOuterClass.ExerciseCommand.BuilderclearTemplateId()The template of contract the client wants to exercise.CommandsOuterClass.ExerciseCommand.Builderclone()java.lang.StringgetChoice()The name of the choice the client wants to exercise.ValueOuterClass.ValuegetChoiceArgument()The argument for this choice.ValueOuterClass.Value.BuildergetChoiceArgumentBuilder()The argument for this choice.ValueOuterClass.ValueOrBuildergetChoiceArgumentOrBuilder()The argument for this choice.com.google.protobuf.ByteStringgetChoiceBytes()The name of the choice the client wants to exercise.java.lang.StringgetContractId()The ID of the contract the client wants to exercise upon.com.google.protobuf.ByteStringgetContractIdBytes()The ID of the contract the client wants to exercise upon.CommandsOuterClass.ExerciseCommandgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ValueOuterClass.IdentifiergetTemplateId()The template of contract the client wants to exercise.ValueOuterClass.Identifier.BuildergetTemplateIdBuilder()The template of contract the client wants to exercise.ValueOuterClass.IdentifierOrBuildergetTemplateIdOrBuilder()The template of contract the client wants to exercise.booleanhasChoiceArgument()The argument for this choice.booleanhasTemplateId()The template of contract the client wants to exercise.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CommandsOuterClass.ExerciseCommand.BuildermergeChoiceArgument(ValueOuterClass.Value value)The argument for this choice.CommandsOuterClass.ExerciseCommand.BuildermergeFrom(CommandsOuterClass.ExerciseCommand other)CommandsOuterClass.ExerciseCommand.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CommandsOuterClass.ExerciseCommand.BuildermergeFrom(com.google.protobuf.Message other)CommandsOuterClass.ExerciseCommand.BuildermergeTemplateId(ValueOuterClass.Identifier value)The template of contract the client wants to exercise.CommandsOuterClass.ExerciseCommand.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CommandsOuterClass.ExerciseCommand.BuildersetChoice(java.lang.String value)The name of the choice the client wants to exercise.CommandsOuterClass.ExerciseCommand.BuildersetChoiceArgument(ValueOuterClass.Value value)The argument for this choice.CommandsOuterClass.ExerciseCommand.BuildersetChoiceArgument(ValueOuterClass.Value.Builder builderForValue)The argument for this choice.CommandsOuterClass.ExerciseCommand.BuildersetChoiceBytes(com.google.protobuf.ByteString value)The name of the choice the client wants to exercise.CommandsOuterClass.ExerciseCommand.BuildersetContractId(java.lang.String value)The ID of the contract the client wants to exercise upon.CommandsOuterClass.ExerciseCommand.BuildersetContractIdBytes(com.google.protobuf.ByteString value)The ID of the contract the client wants to exercise upon.CommandsOuterClass.ExerciseCommand.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CommandsOuterClass.ExerciseCommand.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)CommandsOuterClass.ExerciseCommand.BuildersetTemplateId(ValueOuterClass.Identifier value)The template of contract the client wants to exercise.CommandsOuterClass.ExerciseCommand.BuildersetTemplateId(ValueOuterClass.Identifier.Builder builderForValue)The template of contract the client wants to exercise.CommandsOuterClass.ExerciseCommand.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
clear
public CommandsOuterClass.ExerciseCommand.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.ExerciseCommand.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.ExerciseCommand.Builder>
-
getDefaultInstanceForType
public CommandsOuterClass.ExerciseCommand getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommandsOuterClass.ExerciseCommand build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommandsOuterClass.ExerciseCommand buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommandsOuterClass.ExerciseCommand.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.ExerciseCommand.Builder>
-
setField
public CommandsOuterClass.ExerciseCommand.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
clearField
public CommandsOuterClass.ExerciseCommand.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
clearOneof
public CommandsOuterClass.ExerciseCommand.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
setRepeatedField
public CommandsOuterClass.ExerciseCommand.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
addRepeatedField
public CommandsOuterClass.ExerciseCommand.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
mergeFrom
public CommandsOuterClass.ExerciseCommand.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
mergeFrom
public CommandsOuterClass.ExerciseCommand.Builder mergeFrom(CommandsOuterClass.ExerciseCommand other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
mergeFrom
public CommandsOuterClass.ExerciseCommand.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.ExerciseCommand.Builder>- Throws:
java.io.IOException
-
hasTemplateId
public boolean hasTemplateId()
The template of contract the client wants to exercise. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];- Specified by:
hasTemplateIdin interfaceCommandsOuterClass.ExerciseCommandOrBuilder- Returns:
- Whether the templateId field is set.
-
getTemplateId
public ValueOuterClass.Identifier getTemplateId()
The template of contract the client wants to exercise. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];- Specified by:
getTemplateIdin interfaceCommandsOuterClass.ExerciseCommandOrBuilder- Returns:
- The templateId.
-
setTemplateId
public CommandsOuterClass.ExerciseCommand.Builder setTemplateId(ValueOuterClass.Identifier value)
The template of contract the client wants to exercise. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
setTemplateId
public CommandsOuterClass.ExerciseCommand.Builder setTemplateId(ValueOuterClass.Identifier.Builder builderForValue)
The template of contract the client wants to exercise. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
mergeTemplateId
public CommandsOuterClass.ExerciseCommand.Builder mergeTemplateId(ValueOuterClass.Identifier value)
The template of contract the client wants to exercise. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
clearTemplateId
public CommandsOuterClass.ExerciseCommand.Builder clearTemplateId()
The template of contract the client wants to exercise. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
getTemplateIdBuilder
public ValueOuterClass.Identifier.Builder getTemplateIdBuilder()
The template of contract the client wants to exercise. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
getTemplateIdOrBuilder
public ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder()
The template of contract the client wants to exercise. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];- Specified by:
getTemplateIdOrBuilderin interfaceCommandsOuterClass.ExerciseCommandOrBuilder
-
getContractId
public java.lang.String getContractId()
The ID of the contract the client wants to exercise upon. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 2 [json_name = "contractId"];- Specified by:
getContractIdin interfaceCommandsOuterClass.ExerciseCommandOrBuilder- Returns:
- The contractId.
-
getContractIdBytes
public com.google.protobuf.ByteString getContractIdBytes()
The ID of the contract the client wants to exercise upon. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 2 [json_name = "contractId"];- Specified by:
getContractIdBytesin interfaceCommandsOuterClass.ExerciseCommandOrBuilder- Returns:
- The bytes for contractId.
-
setContractId
public CommandsOuterClass.ExerciseCommand.Builder setContractId(java.lang.String value)
The ID of the contract the client wants to exercise upon. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 2 [json_name = "contractId"];- Parameters:
value- The contractId to set.- Returns:
- This builder for chaining.
-
clearContractId
public CommandsOuterClass.ExerciseCommand.Builder clearContractId()
The ID of the contract the client wants to exercise upon. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 2 [json_name = "contractId"];- Returns:
- This builder for chaining.
-
setContractIdBytes
public CommandsOuterClass.ExerciseCommand.Builder setContractIdBytes(com.google.protobuf.ByteString value)
The ID of the contract the client wants to exercise upon. Must be a valid LedgerString (as described in ``value.proto``). Required
string contract_id = 2 [json_name = "contractId"];- Parameters:
value- The bytes for contractId to set.- Returns:
- This builder for chaining.
-
getChoice
public java.lang.String getChoice()
The name of the choice the client wants to exercise. Must be a valid NameString (as described in ``value.proto``) Required
string choice = 3 [json_name = "choice"];- Specified by:
getChoicein interfaceCommandsOuterClass.ExerciseCommandOrBuilder- Returns:
- The choice.
-
getChoiceBytes
public com.google.protobuf.ByteString getChoiceBytes()
The name of the choice the client wants to exercise. Must be a valid NameString (as described in ``value.proto``) Required
string choice = 3 [json_name = "choice"];- Specified by:
getChoiceBytesin interfaceCommandsOuterClass.ExerciseCommandOrBuilder- Returns:
- The bytes for choice.
-
setChoice
public CommandsOuterClass.ExerciseCommand.Builder setChoice(java.lang.String value)
The name of the choice the client wants to exercise. Must be a valid NameString (as described in ``value.proto``) Required
string choice = 3 [json_name = "choice"];- Parameters:
value- The choice to set.- Returns:
- This builder for chaining.
-
clearChoice
public CommandsOuterClass.ExerciseCommand.Builder clearChoice()
The name of the choice the client wants to exercise. Must be a valid NameString (as described in ``value.proto``) Required
string choice = 3 [json_name = "choice"];- Returns:
- This builder for chaining.
-
setChoiceBytes
public CommandsOuterClass.ExerciseCommand.Builder setChoiceBytes(com.google.protobuf.ByteString value)
The name of the choice the client wants to exercise. Must be a valid NameString (as described in ``value.proto``) Required
string choice = 3 [json_name = "choice"];- Parameters:
value- The bytes for choice to set.- Returns:
- This builder for chaining.
-
hasChoiceArgument
public boolean hasChoiceArgument()
The argument for this choice. Required
.com.daml.ledger.api.v1.Value choice_argument = 4 [json_name = "choiceArgument"];- Specified by:
hasChoiceArgumentin interfaceCommandsOuterClass.ExerciseCommandOrBuilder- Returns:
- Whether the choiceArgument field is set.
-
getChoiceArgument
public ValueOuterClass.Value getChoiceArgument()
The argument for this choice. Required
.com.daml.ledger.api.v1.Value choice_argument = 4 [json_name = "choiceArgument"];- Specified by:
getChoiceArgumentin interfaceCommandsOuterClass.ExerciseCommandOrBuilder- Returns:
- The choiceArgument.
-
setChoiceArgument
public CommandsOuterClass.ExerciseCommand.Builder setChoiceArgument(ValueOuterClass.Value value)
The argument for this choice. Required
.com.daml.ledger.api.v1.Value choice_argument = 4 [json_name = "choiceArgument"];
-
setChoiceArgument
public CommandsOuterClass.ExerciseCommand.Builder setChoiceArgument(ValueOuterClass.Value.Builder builderForValue)
The argument for this choice. Required
.com.daml.ledger.api.v1.Value choice_argument = 4 [json_name = "choiceArgument"];
-
mergeChoiceArgument
public CommandsOuterClass.ExerciseCommand.Builder mergeChoiceArgument(ValueOuterClass.Value value)
The argument for this choice. Required
.com.daml.ledger.api.v1.Value choice_argument = 4 [json_name = "choiceArgument"];
-
clearChoiceArgument
public CommandsOuterClass.ExerciseCommand.Builder clearChoiceArgument()
The argument for this choice. Required
.com.daml.ledger.api.v1.Value choice_argument = 4 [json_name = "choiceArgument"];
-
getChoiceArgumentBuilder
public ValueOuterClass.Value.Builder getChoiceArgumentBuilder()
The argument for this choice. Required
.com.daml.ledger.api.v1.Value choice_argument = 4 [json_name = "choiceArgument"];
-
getChoiceArgumentOrBuilder
public ValueOuterClass.ValueOrBuilder getChoiceArgumentOrBuilder()
The argument for this choice. Required
.com.daml.ledger.api.v1.Value choice_argument = 4 [json_name = "choiceArgument"];- Specified by:
getChoiceArgumentOrBuilderin interfaceCommandsOuterClass.ExerciseCommandOrBuilder
-
setUnknownFields
public final CommandsOuterClass.ExerciseCommand.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
mergeUnknownFields
public final CommandsOuterClass.ExerciseCommand.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.ExerciseCommand.Builder>
-
-