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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ValueOuterClass.Value.SumCase getSumCase()
getSumCase in interface ValueOuterClass.ValueOrBuilderpublic boolean hasRecord()
.com.daml.ledger.api.v1.Record record = 1[json_name = "record"];hasRecord in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.Record getRecord()
.com.daml.ledger.api.v1.Record record = 1[json_name = "record"];getRecord in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.RecordOrBuilder getRecordOrBuilder()
.com.daml.ledger.api.v1.Record record = 1[json_name = "record"];getRecordOrBuilder in interface ValueOuterClass.ValueOrBuilderpublic boolean hasVariant()
.com.daml.ledger.api.v1.Variant variant = 2[json_name = "variant"];hasVariant in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.Variant getVariant()
.com.daml.ledger.api.v1.Variant variant = 2[json_name = "variant"];getVariant in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.VariantOrBuilder getVariantOrBuilder()
.com.daml.ledger.api.v1.Variant variant = 2[json_name = "variant"];getVariantOrBuilder in interface ValueOuterClass.ValueOrBuilderpublic 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.ValueOrBuilderpublic 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.ValueOrBuilderpublic boolean hasList()
Represents a homogeneous list of values.
.com.daml.ledger.api.v1.List list = 4[json_name = "list"];hasList in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.List getList()
Represents a homogeneous list of values.
.com.daml.ledger.api.v1.List list = 4[json_name = "list"];getList in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.ListOrBuilder getListOrBuilder()
Represents a homogeneous list of values.
.com.daml.ledger.api.v1.List list = 4[json_name = "list"];getListOrBuilder in interface ValueOuterClass.ValueOrBuilderpublic long getInt64()
sint64 int64 = 5[json_name = "int64", jstype = JS_STRING];getInt64 in interface ValueOuterClass.ValueOrBuilderpublic 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.ValueOrBuilderpublic 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.ValueOrBuilderpublic java.lang.String getText()
A string.
string text = 8[json_name = "text"];getText in interface ValueOuterClass.ValueOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
A string.
string text = 8[json_name = "text"];getTextBytes in interface ValueOuterClass.ValueOrBuilderpublic 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.ValueOrBuilderpublic 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.ValueOrBuilderpublic 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.ValueOrBuilderpublic boolean getBool()
True or false.
bool bool = 12[json_name = "bool"];getBool in interface ValueOuterClass.ValueOrBuilderpublic 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.ValueOrBuilderpublic 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.ValueOrBuilderpublic 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.ValueOrBuilderpublic 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.ValueOrBuilderpublic boolean hasOptional()
The Optional type, None or Some
.com.daml.ledger.api.v1.Optional optional = 15[json_name = "optional"];hasOptional in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.Optional getOptional()
The Optional type, None or Some
.com.daml.ledger.api.v1.Optional optional = 15[json_name = "optional"];getOptional in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.OptionalOrBuilder getOptionalOrBuilder()
The Optional type, None or Some
.com.daml.ledger.api.v1.Optional optional = 15[json_name = "optional"];getOptionalOrBuilder in interface ValueOuterClass.ValueOrBuilderpublic boolean hasMap()
The Map type
.com.daml.ledger.api.v1.Map map = 16[json_name = "map"];hasMap in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.Map getMap()
The Map type
.com.daml.ledger.api.v1.Map map = 16[json_name = "map"];getMap in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.MapOrBuilder getMapOrBuilder()
The Map type
.com.daml.ledger.api.v1.Map map = 16[json_name = "map"];getMapOrBuilder in interface ValueOuterClass.ValueOrBuilderpublic boolean hasEnum()
The Enum type
.com.daml.ledger.api.v1.Enum enum = 17[json_name = "enum"];hasEnum in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.Enum getEnum()
The Enum type
.com.daml.ledger.api.v1.Enum enum = 17[json_name = "enum"];getEnum in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.EnumOrBuilder getEnumOrBuilder()
The Enum type
.com.daml.ledger.api.v1.Enum enum = 17[json_name = "enum"];getEnumOrBuilder in interface ValueOuterClass.ValueOrBuilderpublic boolean hasGenMap()
The GenMap type
.com.daml.ledger.api.v1.GenMap gen_map = 18[json_name = "genMap"];hasGenMap in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.GenMap getGenMap()
The GenMap type
.com.daml.ledger.api.v1.GenMap gen_map = 18[json_name = "genMap"];getGenMap in interface ValueOuterClass.ValueOrBuilderpublic ValueOuterClass.GenMapOrBuilder getGenMapOrBuilder()
The GenMap type
.com.daml.ledger.api.v1.GenMap gen_map = 18[json_name = "genMap"];getGenMapOrBuilder in interface ValueOuterClass.ValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ValueOuterClass.Value parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValueOuterClass.Value parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValueOuterClass.Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValueOuterClass.Value parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValueOuterClass.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValueOuterClass.Value parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ValueOuterClass.Value parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ValueOuterClass.Value parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ValueOuterClass.Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ValueOuterClass.Value parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ValueOuterClass.Value parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ValueOuterClass.Value parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ValueOuterClass.Value.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ValueOuterClass.Value.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public 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.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ValueOuterClass.Value getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder