Package com.daml.ledger.api.v1
Class CommandsOuterClass.CreateAndExerciseCommand.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CommandsOuterClass.CreateAndExerciseCommand.Builder>
-
- com.daml.ledger.api.v1.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
,java.lang.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 typecom.daml.ledger.api.v1.CreateAndExerciseCommand
-
-
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.CreateAndExerciseCommand.Builder>
-
clear
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
getDefaultInstanceForType
public CommandsOuterClass.CreateAndExerciseCommand getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommandsOuterClass.CreateAndExerciseCommand build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommandsOuterClass.CreateAndExerciseCommand buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
setField
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
clearField
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
clearOneof
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
setRepeatedField
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
addRepeatedField
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
mergeFrom
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
mergeFrom
public CommandsOuterClass.CreateAndExerciseCommand.Builder mergeFrom(CommandsOuterClass.CreateAndExerciseCommand other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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 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.CreateAndExerciseCommand.Builder>
- Throws:
java.io.IOException
-
hasTemplateId
public boolean hasTemplateId()
The template of the contract the client wants to create. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
- Specified by:
hasTemplateId
in interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
- Returns:
- Whether the templateId field is set.
-
getTemplateId
public ValueOuterClass.Identifier getTemplateId()
The template of the contract the client wants to create. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
- Specified by:
getTemplateId
in interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
- Returns:
- The templateId.
-
setTemplateId
public CommandsOuterClass.CreateAndExerciseCommand.Builder setTemplateId(ValueOuterClass.Identifier value)
The template of the contract the client wants to create. Required
.com.daml.ledger.api.v1.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. Required
.com.daml.ledger.api.v1.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. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
clearTemplateId
public CommandsOuterClass.CreateAndExerciseCommand.Builder clearTemplateId()
The template of the contract the client wants to create. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
getTemplateIdBuilder
public ValueOuterClass.Identifier.Builder getTemplateIdBuilder()
The template of the contract the client wants to create. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
-
getTemplateIdOrBuilder
public ValueOuterClass.IdentifierOrBuilder getTemplateIdOrBuilder()
The template of the contract the client wants to create. Required
.com.daml.ledger.api.v1.Identifier template_id = 1 [json_name = "templateId"];
- Specified by:
getTemplateIdOrBuilder
in interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
-
hasCreateArguments
public boolean hasCreateArguments()
The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v1.Record create_arguments = 2 [json_name = "createArguments"];
- Specified by:
hasCreateArguments
in interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
- Returns:
- Whether the createArguments field is set.
-
getCreateArguments
public ValueOuterClass.Record getCreateArguments()
The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v1.Record create_arguments = 2 [json_name = "createArguments"];
- Specified by:
getCreateArguments
in 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.v1.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.v1.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.v1.Record create_arguments = 2 [json_name = "createArguments"];
-
clearCreateArguments
public CommandsOuterClass.CreateAndExerciseCommand.Builder clearCreateArguments()
The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v1.Record create_arguments = 2 [json_name = "createArguments"];
-
getCreateArgumentsBuilder
public ValueOuterClass.Record.Builder getCreateArgumentsBuilder()
The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v1.Record create_arguments = 2 [json_name = "createArguments"];
-
getCreateArgumentsOrBuilder
public ValueOuterClass.RecordOrBuilder getCreateArgumentsOrBuilder()
The arguments required for creating a contract from this template. Required
.com.daml.ledger.api.v1.Record create_arguments = 2 [json_name = "createArguments"];
- Specified by:
getCreateArgumentsOrBuilder
in interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
-
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:
getChoice
in 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:
getChoiceBytes
in interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
- Returns:
- The bytes for choice.
-
setChoice
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.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.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.v1.Value choice_argument = 4 [json_name = "choiceArgument"];
- Specified by:
hasChoiceArgument
in interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
- 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:
getChoiceArgument
in interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
- Returns:
- The choiceArgument.
-
setChoiceArgument
public CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.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.CreateAndExerciseCommand.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.CreateAndExerciseCommand.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:
getChoiceArgumentOrBuilder
in interfaceCommandsOuterClass.CreateAndExerciseCommandOrBuilder
-
setUnknownFields
public final CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
mergeUnknownFields
public final CommandsOuterClass.CreateAndExerciseCommand.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.CreateAndExerciseCommand.Builder>
-
-