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 type
com.daml.ledger.api.v1.Variant
Modifier and Type | Method and 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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ValueOuterClass.Variant.Builder |
mergeFrom(com.google.protobuf.Message other) |
ValueOuterClass.Variant.Builder |
mergeFrom(ValueOuterClass.Variant 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.Builder builderForValue)
The value encoded within the Variant.
|
ValueOuterClass.Variant.Builder |
setValue(ValueOuterClass.Value value)
The value encoded within the Variant.
|
ValueOuterClass.Variant.Builder |
setVariantId(ValueOuterClass.Identifier.Builder builderForValue)
Omitted from the transaction stream when verbose streaming is not enabled.
|
ValueOuterClass.Variant.Builder |
setVariantId(ValueOuterClass.Identifier value)
Omitted from the transaction stream when verbose streaming is not enabled.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public ValueOuterClass.Variant.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public ValueOuterClass.Variant getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ValueOuterClass.Variant build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ValueOuterClass.Variant buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ValueOuterClass.Variant.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public ValueOuterClass.Variant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public ValueOuterClass.Variant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public ValueOuterClass.Variant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public ValueOuterClass.Variant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public ValueOuterClass.Variant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public ValueOuterClass.Variant.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ValueOuterClass.Variant.Builder>
public ValueOuterClass.Variant.Builder mergeFrom(ValueOuterClass.Variant other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public ValueOuterClass.Variant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ValueOuterClass.Variant.Builder>
java.io.IOException
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"];
hasVariantId
in interface ValueOuterClass.VariantOrBuilder
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"];
getVariantId
in interface ValueOuterClass.VariantOrBuilder
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"];
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"];
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"];
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"];
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"];
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"];
getVariantIdOrBuilder
in interface ValueOuterClass.VariantOrBuilder
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"];
getConstructor
in interface ValueOuterClass.VariantOrBuilder
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"];
getConstructorBytes
in interface ValueOuterClass.VariantOrBuilder
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"];
value
- The constructor to set.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"];
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"];
value
- The bytes for constructor to set.public boolean hasValue()
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3[json_name = "value"];
hasValue
in interface ValueOuterClass.VariantOrBuilder
public ValueOuterClass.Value getValue()
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3[json_name = "value"];
getValue
in interface ValueOuterClass.VariantOrBuilder
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"];
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"];
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"];
public ValueOuterClass.Variant.Builder clearValue()
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3[json_name = "value"];
public ValueOuterClass.Value.Builder getValueBuilder()
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3[json_name = "value"];
public ValueOuterClass.ValueOrBuilder getValueOrBuilder()
The value encoded within the Variant. Required
.com.daml.ledger.api.v1.Value value = 3[json_name = "value"];
getValueOrBuilder
in interface ValueOuterClass.VariantOrBuilder
public final ValueOuterClass.Variant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>
public final ValueOuterClass.Variant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Variant.Builder>