Package com.daml.ledger.api.v2
Interface ValueOuterClass.VariantOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ValueOuterClass.Variant
,ValueOuterClass.Variant.Builder
- Enclosing class:
- ValueOuterClass
public static interface ValueOuterClass.VariantOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionDetermines which of the Variant's alternatives is encoded in this message.com.google.protobuf.ByteString
Determines which of the Variant's alternatives is encoded in this message.getValue()
The value encoded within the Variant.The value encoded within the Variant.Omitted from the transaction stream when verbose streaming is not enabled.Omitted from the transaction stream when verbose streaming is not enabled.boolean
hasValue()
The value encoded within the Variant.boolean
Omitted from the transaction stream when verbose streaming is not enabled.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasVariantId
boolean hasVariantId()Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v2.Identifier variant_id = 1 [json_name = "variantId"];
- Returns:
- Whether the variantId field is set.
-
getVariantId
ValueOuterClass.Identifier getVariantId()Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v2.Identifier variant_id = 1 [json_name = "variantId"];
- Returns:
- The variantId.
-
getVariantIdOrBuilder
ValueOuterClass.IdentifierOrBuilder getVariantIdOrBuilder()Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v2.Identifier variant_id = 1 [json_name = "variantId"];
-
getConstructor
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"];
- Returns:
- The constructor.
-
getConstructorBytes
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"];
- Returns:
- The bytes for constructor.
-
hasValue
boolean hasValue()The value encoded within the Variant. Required
.com.daml.ledger.api.v2.Value value = 3 [json_name = "value"];
- Returns:
- Whether the value field is set.
-
getValue
ValueOuterClass.Value getValue()The value encoded within the Variant. Required
.com.daml.ledger.api.v2.Value value = 3 [json_name = "value"];
- Returns:
- The value.
-
getValueOrBuilder
ValueOuterClass.ValueOrBuilder getValueOrBuilder()The value encoded within the Variant. Required
.com.daml.ledger.api.v2.Value value = 3 [json_name = "value"];
-