Package com.daml.ledger.api.v1
Class ValueOuterClass.Variant.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
-
- com.daml.ledger.api.v1.ValueOuterClass.Variant.Builder
-
- All Implemented Interfaces:
ValueOuterClass.VariantOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- ValueOuterClass.Variant
public static final class ValueOuterClass.Variant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder> implements ValueOuterClass.VariantOrBuilder
A value with alternative representations.
Protobuf typecom.daml.ledger.api.v1.Variant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueOuterClass.Variant.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ValueOuterClass.Variant
build()
ValueOuterClass.Variant
buildPartial()
ValueOuterClass.Variant.Builder
clear()
ValueOuterClass.Variant.Builder
clearConstructor()
Determines which of the Variant's alternatives is encoded in this message.ValueOuterClass.Variant.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ValueOuterClass.Variant.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ValueOuterClass.Variant.Builder
clearValue()
The value encoded within the Variant.ValueOuterClass.Variant.Builder
clearVariantId()
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.Variant.Builder
clone()
java.lang.String
getConstructor()
Determines which of the Variant's alternatives is encoded in this message.com.google.protobuf.ByteString
getConstructorBytes()
Determines which of the Variant's alternatives is encoded in this message.ValueOuterClass.Variant
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ValueOuterClass.Value
getValue()
The value encoded within the Variant.ValueOuterClass.Value.Builder
getValueBuilder()
The value encoded within the Variant.ValueOuterClass.ValueOrBuilder
getValueOrBuilder()
The value encoded within the Variant.ValueOuterClass.Identifier
getVariantId()
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.Identifier.Builder
getVariantIdBuilder()
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.IdentifierOrBuilder
getVariantIdOrBuilder()
Omitted from the transaction stream when verbose streaming is not enabled.boolean
hasValue()
The value encoded within the Variant.boolean
hasVariantId()
Omitted from the transaction stream when verbose streaming is not enabled.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ValueOuterClass.Variant.Builder
mergeFrom(ValueOuterClass.Variant other)
ValueOuterClass.Variant.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ValueOuterClass.Variant.Builder
mergeFrom(com.google.protobuf.Message other)
ValueOuterClass.Variant.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ValueOuterClass.Variant.Builder
mergeValue(ValueOuterClass.Value value)
The value encoded within the Variant.ValueOuterClass.Variant.Builder
mergeVariantId(ValueOuterClass.Identifier value)
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.Variant.Builder
setConstructor(java.lang.String value)
Determines which of the Variant's alternatives is encoded in this message.ValueOuterClass.Variant.Builder
setConstructorBytes(com.google.protobuf.ByteString value)
Determines which of the Variant's alternatives is encoded in this message.ValueOuterClass.Variant.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ValueOuterClass.Variant.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ValueOuterClass.Variant.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ValueOuterClass.Variant.Builder
setValue(ValueOuterClass.Value value)
The value encoded within the Variant.ValueOuterClass.Variant.Builder
setValue(ValueOuterClass.Value.Builder builderForValue)
The value encoded within the Variant.ValueOuterClass.Variant.Builder
setVariantId(ValueOuterClass.Identifier value)
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.Variant.Builder
setVariantId(ValueOuterClass.Identifier.Builder builderForValue)
Omitted from the transaction stream when verbose streaming is not enabled.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
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<ValueOuterClass.Variant.Builder>
-
clear
public ValueOuterClass.Variant.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<ValueOuterClass.Variant.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<ValueOuterClass.Variant.Builder>
-
getDefaultInstanceForType
public ValueOuterClass.Variant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ValueOuterClass.Variant build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ValueOuterClass.Variant buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ValueOuterClass.Variant.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<ValueOuterClass.Variant.Builder>
-
setField
public ValueOuterClass.Variant.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<ValueOuterClass.Variant.Builder>
-
clearField
public ValueOuterClass.Variant.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<ValueOuterClass.Variant.Builder>
-
clearOneof
public ValueOuterClass.Variant.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<ValueOuterClass.Variant.Builder>
-
setRepeatedField
public ValueOuterClass.Variant.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<ValueOuterClass.Variant.Builder>
-
addRepeatedField
public ValueOuterClass.Variant.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<ValueOuterClass.Variant.Builder>
-
mergeFrom
public ValueOuterClass.Variant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ValueOuterClass.Variant.Builder>
-
mergeFrom
public ValueOuterClass.Variant.Builder mergeFrom(ValueOuterClass.Variant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
-
mergeFrom
public ValueOuterClass.Variant.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<ValueOuterClass.Variant.Builder>
- Throws:
java.io.IOException
-
hasVariantId
public boolean hasVariantId()
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
- Specified by:
hasVariantId
in interfaceValueOuterClass.VariantOrBuilder
- Returns:
- Whether the variantId field is set.
-
getVariantId
public ValueOuterClass.Identifier getVariantId()
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
- Specified by:
getVariantId
in interfaceValueOuterClass.VariantOrBuilder
- Returns:
- The variantId.
-
setVariantId
public ValueOuterClass.Variant.Builder setVariantId(ValueOuterClass.Identifier value)
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
-
setVariantId
public ValueOuterClass.Variant.Builder setVariantId(ValueOuterClass.Identifier.Builder builderForValue)
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
-
mergeVariantId
public ValueOuterClass.Variant.Builder mergeVariantId(ValueOuterClass.Identifier value)
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
-
clearVariantId
public ValueOuterClass.Variant.Builder clearVariantId()
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
-
getVariantIdBuilder
public ValueOuterClass.Identifier.Builder getVariantIdBuilder()
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
-
getVariantIdOrBuilder
public ValueOuterClass.IdentifierOrBuilder getVariantIdOrBuilder()
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
- Specified by:
getVariantIdOrBuilder
in interfaceValueOuterClass.VariantOrBuilder
-
getConstructor
public java.lang.String getConstructor()
Determines which of the Variant's alternatives is encoded in this message. Must be a valid NameString. Required
string constructor = 2 [json_name = "constructor"];
- Specified by:
getConstructor
in interfaceValueOuterClass.VariantOrBuilder
- Returns:
- The constructor.
-
getConstructorBytes
public com.google.protobuf.ByteString getConstructorBytes()
Determines which of the Variant's alternatives is encoded in this message. Must be a valid NameString. Required
string constructor = 2 [json_name = "constructor"];
- Specified by:
getConstructorBytes
in interfaceValueOuterClass.VariantOrBuilder
- Returns:
- The bytes for constructor.
-
setConstructor
public ValueOuterClass.Variant.Builder setConstructor(java.lang.String value)
Determines which of the Variant's alternatives is encoded in this message. Must be a valid NameString. Required
string constructor = 2 [json_name = "constructor"];
- Parameters:
value
- The constructor to set.- Returns:
- This builder for chaining.
-
clearConstructor
public ValueOuterClass.Variant.Builder clearConstructor()
Determines which of the Variant's alternatives is encoded in this message. Must be a valid NameString. Required
string constructor = 2 [json_name = "constructor"];
- Returns:
- This builder for chaining.
-
setConstructorBytes
public ValueOuterClass.Variant.Builder setConstructorBytes(com.google.protobuf.ByteString value)
Determines which of the Variant's alternatives is encoded in this message. Must be a valid NameString. Required
string constructor = 2 [json_name = "constructor"];
- Parameters:
value
- The bytes for constructor to set.- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
- Specified by:
hasValue
in interfaceValueOuterClass.VariantOrBuilder
- Returns:
- Whether the value field is set.
-
getValue
public ValueOuterClass.Value getValue()
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
- Specified by:
getValue
in interfaceValueOuterClass.VariantOrBuilder
- Returns:
- The value.
-
setValue
public ValueOuterClass.Variant.Builder setValue(ValueOuterClass.Value value)
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
-
setValue
public ValueOuterClass.Variant.Builder setValue(ValueOuterClass.Value.Builder builderForValue)
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
-
mergeValue
public ValueOuterClass.Variant.Builder mergeValue(ValueOuterClass.Value value)
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
-
clearValue
public ValueOuterClass.Variant.Builder clearValue()
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
-
getValueBuilder
public ValueOuterClass.Value.Builder getValueBuilder()
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
-
getValueOrBuilder
public ValueOuterClass.ValueOrBuilder getValueOrBuilder()
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
- Specified by:
getValueOrBuilder
in interfaceValueOuterClass.VariantOrBuilder
-
setUnknownFields
public final ValueOuterClass.Variant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
-
mergeUnknownFields
public final ValueOuterClass.Variant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
-
-