Package com.daml.ledger.api.v2
Class CommandsOuterClass.CreateAndExerciseCommand.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateAndExerciseCommand.Builder>
com.daml.ledger.api.v2.CommandsOuterClass.CreateAndExerciseCommand.Builder
- All Implemented Interfaces:
CommandsOuterClass.CreateAndExerciseCommandOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CommandsOuterClass.CreateAndExerciseCommand
public static final class CommandsOuterClass.CreateAndExerciseCommand.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateAndExerciseCommand.Builder>
implements CommandsOuterClass.CreateAndExerciseCommandOrBuilder
Create a contract and exercise a choice on it in the same transaction.Protobuf type
com.daml.ledger.api.v2.CreateAndExerciseCommand-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The name of the choice the client wants to exercise.The argument for this choice.The arguments required for creating a contract from this template.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The template of the contract the client wants to create.clone()The name of the choice the client wants to exercise.The argument for this choice.The argument for this choice.The argument for this choice.com.google.protobuf.ByteStringThe name of the choice the client wants to exercise.The arguments required for creating a contract from this template.The arguments required for creating a contract from this template.The arguments required for creating a contract from this template.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe template of the contract the client wants to create.The template of the contract the client wants to create.The template of the contract the client wants to create.booleanThe argument for this choice.booleanThe arguments required for creating a contract from this template.booleanThe template of the contract the client wants to create.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanThe argument for this choice.The arguments required for creating a contract from this template.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The template of the contract the client wants to create.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The name of the choice the client wants to exercise.The argument for this choice.setChoiceArgument(ValueOuterClass.Value.Builder builderForValue) The argument for this choice.setChoiceBytes(com.google.protobuf.ByteString value) The name of the choice the client wants to exercise.The arguments required for creating a contract from this template.setCreateArguments(ValueOuterClass.Record.Builder builderForValue) The arguments required for creating a contract from this template.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The template of the contract the client wants to create.setTemplateId(ValueOuterClass.Identifier.Builder builderForValue) The template of the contract the client wants to create.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.CreateAndExerciseCommand.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.CreateAndExerciseCommand.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.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
setField
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
clearField
public CommandsOuterClass.CreateAndExerciseCommand.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateAndExerciseCommand.Builder>
-
clearOneof
public CommandsOuterClass.CreateAndExerciseCommand.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateAndExerciseCommand.Builder>
-
setRepeatedField
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
addRepeatedField
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
mergeFrom
public CommandsOuterClass.CreateAndExerciseCommand.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommandsOuterClass.CreateAndExerciseCommand.Builder>
-
mergeFrom
public CommandsOuterClass.CreateAndExerciseCommand.Builder mergeFrom(CommandsOuterClass.CreateAndExerciseCommand other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateAndExerciseCommand.Builder>
-
mergeFrom
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>- Throws:
IOException
-
hasTemplateId
public boolean hasTemplateId()The template of the contract the client wants to create. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];- Specified by:
hasTemplateIdin interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder- Returns:
- Whether the templateId field is set.
-
getTemplateId
The template of the contract the client wants to create. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];- Specified by:
getTemplateIdin interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder- Returns:
- The templateId.
-
setTemplateId
public CommandsOuterClass.CreateAndExerciseCommand.Builder setTemplateId(ValueOuterClass.Identifier value) The template of the contract the client wants to create. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"]; -
setTemplateId
public CommandsOuterClass.CreateAndExerciseCommand.Builder setTemplateId(ValueOuterClass.Identifier.Builder builderForValue) The template of the contract the client wants to create. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"]; -
mergeTemplateId
public CommandsOuterClass.CreateAndExerciseCommand.Builder mergeTemplateId(ValueOuterClass.Identifier value) The template of the contract the client wants to create. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"]; -
clearTemplateId
The template of the contract the client wants to create. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"]; -
getTemplateIdBuilder
The template of the contract the client wants to create. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"]; -
getTemplateIdOrBuilder
The template of the contract the client wants to create. Both package-name and package-id reference identifier formats for the template-id are supported. Note: The package-id reference identifier format is deprecated. We plan to end support for this format in version 3.4. Required
.com.daml.ledger.api.v2.Identifier template_id = 1 [json_name = "templateId"];- Specified by:
getTemplateIdOrBuilderin interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
-
hasCreateArguments
public boolean hasCreateArguments()The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];- Specified by:
hasCreateArgumentsin interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder- Returns:
- Whether the createArguments field is set.
-
getCreateArguments
The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];- Specified by:
getCreateArgumentsin interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder- Returns:
- The createArguments.
-
setCreateArguments
public CommandsOuterClass.CreateAndExerciseCommand.Builder setCreateArguments(ValueOuterClass.Record value) The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"]; -
setCreateArguments
public CommandsOuterClass.CreateAndExerciseCommand.Builder setCreateArguments(ValueOuterClass.Record.Builder builderForValue) The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"]; -
mergeCreateArguments
public CommandsOuterClass.CreateAndExerciseCommand.Builder mergeCreateArguments(ValueOuterClass.Record value) The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"]; -
clearCreateArguments
The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"]; -
getCreateArgumentsBuilder
The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"]; -
getCreateArgumentsOrBuilder
The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v2.Record create_arguments = 2 [json_name = "createArguments"];- Specified by:
getCreateArgumentsOrBuilderin interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
-
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.CreateAndExerciseCommandOrBuilder- 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.CreateAndExerciseCommandOrBuilder- Returns:
- The bytes for choice.
-
setChoice
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
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.CreateAndExerciseCommand.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.v2.Value choice_argument = 4 [json_name = "choiceArgument"];- Specified by:
hasChoiceArgumentin interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder- Returns:
- Whether the choiceArgument field is set.
-
getChoiceArgument
The argument for this choice. Required
.com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"];- Specified by:
getChoiceArgumentin interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder- Returns:
- The choiceArgument.
-
setChoiceArgument
public CommandsOuterClass.CreateAndExerciseCommand.Builder setChoiceArgument(ValueOuterClass.Value value) The argument for this choice. Required
.com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"]; -
setChoiceArgument
public CommandsOuterClass.CreateAndExerciseCommand.Builder setChoiceArgument(ValueOuterClass.Value.Builder builderForValue) The argument for this choice. Required
.com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"]; -
mergeChoiceArgument
public CommandsOuterClass.CreateAndExerciseCommand.Builder mergeChoiceArgument(ValueOuterClass.Value value) The argument for this choice. Required
.com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"]; -
clearChoiceArgument
The argument for this choice. Required
.com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"]; -
getChoiceArgumentBuilder
The argument for this choice. Required
.com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"]; -
getChoiceArgumentOrBuilder
The argument for this choice. Required
.com.daml.ledger.api.v2.Value choice_argument = 4 [json_name = "choiceArgument"];- Specified by:
getChoiceArgumentOrBuilderin interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
-
setUnknownFields
public final CommandsOuterClass.CreateAndExerciseCommand.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateAndExerciseCommand.Builder>
-
mergeUnknownFields
public final CommandsOuterClass.CreateAndExerciseCommand.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateAndExerciseCommand.Builder>
-