public static final class ValueOuterClass.Value extends com.google.protobuf.GeneratedMessageV3 implements ValueOuterClass.ValueOrBuilder
Encodes values that the ledger accepts as command arguments and emits as contract arguments. The values encoding use different four classes of strings as identifiers. Those classes are defined as follow: - NameStrings are strings that match the regexp ``[A-Za-z\$_][A-Za-z0-9\$_]*``. - PackageIdStrings are strings that match the regexp ``[A-Za-z0-9\-_ ]+``. - PartyIdStrings are strings that match the regexp ``[A-Za-z0-9:\-_ ]+``. - LedgerStrings are strings that match the regexp ``[A-Za-z0-9#:\-_/ ]+``.Protobuf type
com.daml.ledger.api.v1.Value
Modifier and Type | Class and Description |
---|---|
static class |
ValueOuterClass.Value.Builder
Encodes values that the ledger accepts as command arguments and emits as contract arguments.
|
static class |
ValueOuterClass.Value.SumCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
BOOL_FIELD_NUMBER |
static int |
CONTRACT_ID_FIELD_NUMBER |
static int |
DATE_FIELD_NUMBER |
static int |
ENUM_FIELD_NUMBER |
static int |
GEN_MAP_FIELD_NUMBER |
static int |
INT64_FIELD_NUMBER |
static int |
LIST_FIELD_NUMBER |
static int |
MAP_FIELD_NUMBER |
static int |
NUMERIC_FIELD_NUMBER |
static int |
OPTIONAL_FIELD_NUMBER |
static int |
PARTY_FIELD_NUMBER |
static int |
RECORD_FIELD_NUMBER |
static int |
TEXT_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
UNIT_FIELD_NUMBER |
static int |
VARIANT_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBool()
True or false.
|
java.lang.String |
getContractId()
Identifier of an on-ledger contract.
|
com.google.protobuf.ByteString |
getContractIdBytes()
Identifier of an on-ledger contract.
|
int |
getDate()
Days since the unix epoch.
|
static ValueOuterClass.Value |
getDefaultInstance() |
ValueOuterClass.Value |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ValueOuterClass.Enum |
getEnum()
The Enum type
|
ValueOuterClass.EnumOrBuilder |
getEnumOrBuilder()
The Enum type
|
ValueOuterClass.GenMap |
getGenMap()
The GenMap type
|
ValueOuterClass.GenMapOrBuilder |
getGenMapOrBuilder()
The GenMap type
|
long |
getInt64()
sint64 int64 = 5 [json_name = "int64", jstype = JS_STRING]; |
ValueOuterClass.List |
getList()
Represents a homogeneous list of values.
|
ValueOuterClass.ListOrBuilder |
getListOrBuilder()
Represents a homogeneous list of values.
|
ValueOuterClass.Map |
getMap()
The Map type
|
ValueOuterClass.MapOrBuilder |
getMapOrBuilder()
The Map type
|
java.lang.String |
getNumeric()
A Numeric, that is a decimal value with precision 38 (at most 38 significant digits) and a
scale between 0 and 37 (significant digits on the right of the decimal point).
|
com.google.protobuf.ByteString |
getNumericBytes()
A Numeric, that is a decimal value with precision 38 (at most 38 significant digits) and a
scale between 0 and 37 (significant digits on the right of the decimal point).
|
ValueOuterClass.Optional |
getOptional()
The Optional type, None or Some
|
ValueOuterClass.OptionalOrBuilder |
getOptionalOrBuilder()
The Optional type, None or Some
|
com.google.protobuf.Parser<ValueOuterClass.Value> |
getParserForType() |
java.lang.String |
getParty()
An agent operating on the ledger.
|
com.google.protobuf.ByteString |
getPartyBytes()
An agent operating on the ledger.
|
ValueOuterClass.Record |
getRecord()
.com.daml.ledger.api.v1.Record record = 1 [json_name = "record"]; |
ValueOuterClass.RecordOrBuilder |
getRecordOrBuilder()
.com.daml.ledger.api.v1.Record record = 1 [json_name = "record"]; |
int |
getSerializedSize() |
ValueOuterClass.Value.SumCase |
getSumCase() |
java.lang.String |
getText()
A string.
|
com.google.protobuf.ByteString |
getTextBytes()
A string.
|
long |
getTimestamp()
Microseconds since the UNIX epoch.
|
com.google.protobuf.Empty |
getUnit()
This value is used for example for choices that don't take any arguments.
|
com.google.protobuf.EmptyOrBuilder |
getUnitOrBuilder()
This value is used for example for choices that don't take any arguments.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
ValueOuterClass.Variant |
getVariant()
.com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"]; |
ValueOuterClass.VariantOrBuilder |
getVariantOrBuilder()
.com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"]; |
boolean |
hasEnum()
The Enum type
|
boolean |
hasGenMap()
The GenMap type
|
int |
hashCode() |
boolean |
hasList()
Represents a homogeneous list of values.
|
boolean |
hasMap()
The Map type
|
boolean |
hasOptional()
The Optional type, None or Some
|
boolean |
hasRecord()
.com.daml.ledger.api.v1.Record record = 1 [json_name = "record"]; |
boolean |
hasUnit()
This value is used for example for choices that don't take any arguments.
|
boolean |
hasVariant()
.com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"]; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ValueOuterClass.Value.Builder |
newBuilder() |
static ValueOuterClass.Value.Builder |
newBuilder(ValueOuterClass.Value prototype) |
ValueOuterClass.Value.Builder |
newBuilderForType() |
protected ValueOuterClass.Value.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ValueOuterClass.Value |
parseDelimitedFrom(java.io.InputStream input) |
static ValueOuterClass.Value |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValueOuterClass.Value |
parseFrom(byte[] data) |
static ValueOuterClass.Value |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValueOuterClass.Value |
parseFrom(java.nio.ByteBuffer data) |
static ValueOuterClass.Value |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValueOuterClass.Value |
parseFrom(com.google.protobuf.ByteString data) |
static ValueOuterClass.Value |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValueOuterClass.Value |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ValueOuterClass.Value |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ValueOuterClass.Value |
parseFrom(java.io.InputStream input) |
static ValueOuterClass.Value |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ValueOuterClass.Value> |
parser() |
ValueOuterClass.Value.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int RECORD_FIELD_NUMBER
public static final int VARIANT_FIELD_NUMBER
public static final int CONTRACT_ID_FIELD_NUMBER
public static final int LIST_FIELD_NUMBER
public static final int INT64_FIELD_NUMBER
public static final int NUMERIC_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public static final int PARTY_FIELD_NUMBER
public static final int BOOL_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER
public static final int DATE_FIELD_NUMBER
public static final int OPTIONAL_FIELD_NUMBER
public static final int MAP_FIELD_NUMBER
public static final int ENUM_FIELD_NUMBER
public static final int GEN_MAP_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public ValueOuterClass.Value.SumCase getSumCase()
getSumCase
in interface ValueOuterClass.ValueOrBuilder
public boolean hasRecord()
.com.daml.ledger.api.v1.Record record = 1 [json_name = "record"];
hasRecord
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.Record getRecord()
.com.daml.ledger.api.v1.Record record = 1 [json_name = "record"];
getRecord
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.RecordOrBuilder getRecordOrBuilder()
.com.daml.ledger.api.v1.Record record = 1 [json_name = "record"];
getRecordOrBuilder
in interface ValueOuterClass.ValueOrBuilder
public boolean hasVariant()
.com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"];
hasVariant
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.Variant getVariant()
.com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"];
getVariant
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.VariantOrBuilder getVariantOrBuilder()
.com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"];
getVariantOrBuilder
in interface ValueOuterClass.ValueOrBuilder
public java.lang.String getContractId()
Identifier of an on-ledger contract. Commands which reference an unknown or already archived contract ID will fail. Must be a valid LedgerString.
string contract_id = 3 [json_name = "contractId"];
getContractId
in interface ValueOuterClass.ValueOrBuilder
public com.google.protobuf.ByteString getContractIdBytes()
Identifier of an on-ledger contract. Commands which reference an unknown or already archived contract ID will fail. Must be a valid LedgerString.
string contract_id = 3 [json_name = "contractId"];
getContractIdBytes
in interface ValueOuterClass.ValueOrBuilder
public boolean hasList()
Represents a homogeneous list of values.
.com.daml.ledger.api.v1.List list = 4 [json_name = "list"];
hasList
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.List getList()
Represents a homogeneous list of values.
.com.daml.ledger.api.v1.List list = 4 [json_name = "list"];
getList
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.ListOrBuilder getListOrBuilder()
Represents a homogeneous list of values.
.com.daml.ledger.api.v1.List list = 4 [json_name = "list"];
getListOrBuilder
in interface ValueOuterClass.ValueOrBuilder
public long getInt64()
sint64 int64 = 5 [json_name = "int64", jstype = JS_STRING];
getInt64
in interface ValueOuterClass.ValueOrBuilder
public java.lang.String getNumeric()
A Numeric, that is a decimal value with precision 38 (at most 38 significant digits) and a scale between 0 and 37 (significant digits on the right of the decimal point). The field has to match the regex [+-]?\d{1,38}(.\d{0,37})? and should be representable by a Numeric without loss of precision.
string numeric = 6 [json_name = "numeric"];
getNumeric
in interface ValueOuterClass.ValueOrBuilder
public com.google.protobuf.ByteString getNumericBytes()
A Numeric, that is a decimal value with precision 38 (at most 38 significant digits) and a scale between 0 and 37 (significant digits on the right of the decimal point). The field has to match the regex [+-]?\d{1,38}(.\d{0,37})? and should be representable by a Numeric without loss of precision.
string numeric = 6 [json_name = "numeric"];
getNumericBytes
in interface ValueOuterClass.ValueOrBuilder
public java.lang.String getText()
A string.
string text = 8 [json_name = "text"];
getText
in interface ValueOuterClass.ValueOrBuilder
public com.google.protobuf.ByteString getTextBytes()
A string.
string text = 8 [json_name = "text"];
getTextBytes
in interface ValueOuterClass.ValueOrBuilder
public long getTimestamp()
Microseconds since the UNIX epoch. Can go backwards. Fixed since the vast majority of values will be greater than 2^28, since currently the number of microseconds since the epoch is greater than that. Range: 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999Z, so that we can convert to/from https://www.ietf.org/rfc/rfc3339.txt
sfixed64 timestamp = 9 [json_name = "timestamp", jstype = JS_STRING];
getTimestamp
in interface ValueOuterClass.ValueOrBuilder
public java.lang.String getParty()
An agent operating on the ledger. Must be a valid PartyIdString.
string party = 11 [json_name = "party"];
getParty
in interface ValueOuterClass.ValueOrBuilder
public com.google.protobuf.ByteString getPartyBytes()
An agent operating on the ledger. Must be a valid PartyIdString.
string party = 11 [json_name = "party"];
getPartyBytes
in interface ValueOuterClass.ValueOrBuilder
public boolean getBool()
True or false.
bool bool = 12 [json_name = "bool"];
getBool
in interface ValueOuterClass.ValueOrBuilder
public boolean hasUnit()
This value is used for example for choices that don't take any arguments.
.google.protobuf.Empty unit = 13 [json_name = "unit"];
hasUnit
in interface ValueOuterClass.ValueOrBuilder
public com.google.protobuf.Empty getUnit()
This value is used for example for choices that don't take any arguments.
.google.protobuf.Empty unit = 13 [json_name = "unit"];
getUnit
in interface ValueOuterClass.ValueOrBuilder
public com.google.protobuf.EmptyOrBuilder getUnitOrBuilder()
This value is used for example for choices that don't take any arguments.
.google.protobuf.Empty unit = 13 [json_name = "unit"];
getUnitOrBuilder
in interface ValueOuterClass.ValueOrBuilder
public int getDate()
Days since the unix epoch. Can go backwards. Limited from 0001-01-01 to 9999-12-31, also to be compatible with https://www.ietf.org/rfc/rfc3339.txt
int32 date = 14 [json_name = "date"];
getDate
in interface ValueOuterClass.ValueOrBuilder
public boolean hasOptional()
The Optional type, None or Some
.com.daml.ledger.api.v1.Optional optional = 15 [json_name = "optional"];
hasOptional
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.Optional getOptional()
The Optional type, None or Some
.com.daml.ledger.api.v1.Optional optional = 15 [json_name = "optional"];
getOptional
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.OptionalOrBuilder getOptionalOrBuilder()
The Optional type, None or Some
.com.daml.ledger.api.v1.Optional optional = 15 [json_name = "optional"];
getOptionalOrBuilder
in interface ValueOuterClass.ValueOrBuilder
public boolean hasMap()
The Map type
.com.daml.ledger.api.v1.Map map = 16 [json_name = "map"];
hasMap
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.Map getMap()
The Map type
.com.daml.ledger.api.v1.Map map = 16 [json_name = "map"];
getMap
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.MapOrBuilder getMapOrBuilder()
The Map type
.com.daml.ledger.api.v1.Map map = 16 [json_name = "map"];
getMapOrBuilder
in interface ValueOuterClass.ValueOrBuilder
public boolean hasEnum()
The Enum type
.com.daml.ledger.api.v1.Enum enum = 17 [json_name = "enum"];
hasEnum
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.Enum getEnum()
The Enum type
.com.daml.ledger.api.v1.Enum enum = 17 [json_name = "enum"];
getEnum
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.EnumOrBuilder getEnumOrBuilder()
The Enum type
.com.daml.ledger.api.v1.Enum enum = 17 [json_name = "enum"];
getEnumOrBuilder
in interface ValueOuterClass.ValueOrBuilder
public boolean hasGenMap()
The GenMap type
.com.daml.ledger.api.v1.GenMap gen_map = 18 [json_name = "genMap"];
hasGenMap
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.GenMap getGenMap()
The GenMap type
.com.daml.ledger.api.v1.GenMap gen_map = 18 [json_name = "genMap"];
getGenMap
in interface ValueOuterClass.ValueOrBuilder
public ValueOuterClass.GenMapOrBuilder getGenMapOrBuilder()
The GenMap type
.com.daml.ledger.api.v1.GenMap gen_map = 18 [json_name = "genMap"];
getGenMapOrBuilder
in interface ValueOuterClass.ValueOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static ValueOuterClass.Value parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValueOuterClass.Value parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValueOuterClass.Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValueOuterClass.Value parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValueOuterClass.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValueOuterClass.Value parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ValueOuterClass.Value parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ValueOuterClass.Value parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ValueOuterClass.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ValueOuterClass.Value parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ValueOuterClass.Value parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static ValueOuterClass.Value parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public ValueOuterClass.Value.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ValueOuterClass.Value.Builder newBuilder()
public static ValueOuterClass.Value.Builder newBuilder(ValueOuterClass.Value prototype)
public ValueOuterClass.Value.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ValueOuterClass.Value.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static ValueOuterClass.Value getDefaultInstance()
public static com.google.protobuf.Parser<ValueOuterClass.Value> parser()
public com.google.protobuf.Parser<ValueOuterClass.Value> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public ValueOuterClass.Value getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder