Package com.daml.ledger.api.v2
Interface ValueOuterClass.ValueOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ValueOuterClass.Value
,ValueOuterClass.Value.Builder
- Enclosing class:
- ValueOuterClass
public static interface ValueOuterClass.ValueOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBool()
True or false.Identifier of an on-ledger contract.com.google.protobuf.ByteString
Identifier of an on-ledger contract.int
getDate()
Days since the unix epoch.getEnum()
The Enum typeThe Enum typeThe GenMap typeThe GenMap typelong
getInt64()
sint64 int64 = 3 [json_name = "int64", jstype = JS_STRING];
getList()
Represents a homogeneous list of values.Represents a homogeneous list of values.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
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 Optional type, None or SomeThe Optional type, None or SomegetParty()
An agent operating on the ledger.com.google.protobuf.ByteString
An agent operating on the ledger..com.daml.ledger.api.v2.Record record = 14 [json_name = "record"];
.com.daml.ledger.api.v2.Record record = 14 [json_name = "record"];
getText()
A string.com.google.protobuf.ByteString
A string.The TextMap typeThe TextMap typelong
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
This value is used for example for choices that don't take any arguments..com.daml.ledger.api.v2.Variant variant = 15 [json_name = "variant"];
.com.daml.ledger.api.v2.Variant variant = 15 [json_name = "variant"];
boolean
hasBool()
True or false.boolean
Identifier of an on-ledger contract.boolean
hasDate()
Days since the unix epoch.boolean
hasEnum()
The Enum typeboolean
The GenMap typeboolean
hasInt64()
sint64 int64 = 3 [json_name = "int64", jstype = JS_STRING];
boolean
hasList()
Represents a homogeneous list of values.boolean
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).boolean
The Optional type, None or Someboolean
hasParty()
An agent operating on the ledger.boolean
.com.daml.ledger.api.v2.Record record = 14 [json_name = "record"];
boolean
hasText()
A string.boolean
The TextMap typeboolean
Microseconds since the UNIX epoch.boolean
hasUnit()
This value is used for example for choices that don't take any arguments.boolean
.com.daml.ledger.api.v2.Variant variant = 15 [json_name = "variant"];
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
-
hasUnit
boolean hasUnit()This value is used for example for choices that don't take any arguments.
.google.protobuf.Empty unit = 1 [json_name = "unit"];
- Returns:
- Whether the unit field is set.
-
getUnit
com.google.protobuf.Empty getUnit()This value is used for example for choices that don't take any arguments.
.google.protobuf.Empty unit = 1 [json_name = "unit"];
- Returns:
- The unit.
-
getUnitOrBuilder
com.google.protobuf.EmptyOrBuilder getUnitOrBuilder()This value is used for example for choices that don't take any arguments.
.google.protobuf.Empty unit = 1 [json_name = "unit"];
-
hasBool
boolean hasBool()True or false.
bool bool = 2 [json_name = "bool"];
- Returns:
- Whether the bool field is set.
-
getBool
boolean getBool()True or false.
bool bool = 2 [json_name = "bool"];
- Returns:
- The bool.
-
hasInt64
boolean hasInt64()sint64 int64 = 3 [json_name = "int64", jstype = JS_STRING];
- Returns:
- Whether the int64 field is set.
-
getInt64
long getInt64()sint64 int64 = 3 [json_name = "int64", jstype = JS_STRING];
- Returns:
- The int64.
-
hasDate
boolean hasDate()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 = 4 [json_name = "date"];
- Returns:
- Whether the date field is set.
-
getDate
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 = 4 [json_name = "date"];
- Returns:
- The date.
-
hasTimestamp
boolean hasTimestamp()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 = 5 [json_name = "timestamp", jstype = JS_STRING];
- Returns:
- Whether the timestamp field is set.
-
getTimestamp
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 = 5 [json_name = "timestamp", jstype = JS_STRING];
- Returns:
- The timestamp.
-
hasNumeric
boolean hasNumeric()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 .. code-block:: none [+-]?\d{1,38}(.\d{0,37})? and should be representable by a Numeric without loss of precision.
string numeric = 6 [json_name = "numeric"];
- Returns:
- Whether the numeric field is set.
-
getNumeric
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 .. code-block:: none [+-]?\d{1,38}(.\d{0,37})? and should be representable by a Numeric without loss of precision.
string numeric = 6 [json_name = "numeric"];
- Returns:
- The numeric.
-
getNumericBytes
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 .. code-block:: none [+-]?\d{1,38}(.\d{0,37})? and should be representable by a Numeric without loss of precision.
string numeric = 6 [json_name = "numeric"];
- Returns:
- The bytes for numeric.
-
hasParty
boolean hasParty()An agent operating on the ledger. Must be a valid PartyIdString.
string party = 7 [json_name = "party"];
- Returns:
- Whether the party field is set.
-
getParty
String getParty()An agent operating on the ledger. Must be a valid PartyIdString.
string party = 7 [json_name = "party"];
- Returns:
- The party.
-
getPartyBytes
com.google.protobuf.ByteString getPartyBytes()An agent operating on the ledger. Must be a valid PartyIdString.
string party = 7 [json_name = "party"];
- Returns:
- The bytes for party.
-
hasText
boolean hasText()A string.
string text = 8 [json_name = "text"];
- Returns:
- Whether the text field is set.
-
getText
String getText()A string.
string text = 8 [json_name = "text"];
- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()A string.
string text = 8 [json_name = "text"];
- Returns:
- The bytes for text.
-
hasContractId
boolean hasContractId()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 = 9 [json_name = "contractId"];
- Returns:
- Whether the contractId field is set.
-
getContractId
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 = 9 [json_name = "contractId"];
- Returns:
- The contractId.
-
getContractIdBytes
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 = 9 [json_name = "contractId"];
- Returns:
- The bytes for contractId.
-
hasOptional
boolean hasOptional()The Optional type, None or Some
.com.daml.ledger.api.v2.Optional optional = 10 [json_name = "optional"];
- Returns:
- Whether the optional field is set.
-
getOptional
ValueOuterClass.Optional getOptional()The Optional type, None or Some
.com.daml.ledger.api.v2.Optional optional = 10 [json_name = "optional"];
- Returns:
- The optional.
-
getOptionalOrBuilder
ValueOuterClass.OptionalOrBuilder getOptionalOrBuilder()The Optional type, None or Some
.com.daml.ledger.api.v2.Optional optional = 10 [json_name = "optional"];
-
hasList
boolean hasList()Represents a homogeneous list of values.
.com.daml.ledger.api.v2.List list = 11 [json_name = "list"];
- Returns:
- Whether the list field is set.
-
getList
ValueOuterClass.List getList()Represents a homogeneous list of values.
.com.daml.ledger.api.v2.List list = 11 [json_name = "list"];
- Returns:
- The list.
-
getListOrBuilder
ValueOuterClass.ListOrBuilder getListOrBuilder()Represents a homogeneous list of values.
.com.daml.ledger.api.v2.List list = 11 [json_name = "list"];
-
hasTextMap
boolean hasTextMap()The TextMap type
.com.daml.ledger.api.v2.TextMap text_map = 12 [json_name = "textMap"];
- Returns:
- Whether the textMap field is set.
-
getTextMap
ValueOuterClass.TextMap getTextMap()The TextMap type
.com.daml.ledger.api.v2.TextMap text_map = 12 [json_name = "textMap"];
- Returns:
- The textMap.
-
getTextMapOrBuilder
ValueOuterClass.TextMapOrBuilder getTextMapOrBuilder()The TextMap type
.com.daml.ledger.api.v2.TextMap text_map = 12 [json_name = "textMap"];
-
hasGenMap
boolean hasGenMap()The GenMap type
.com.daml.ledger.api.v2.GenMap gen_map = 13 [json_name = "genMap"];
- Returns:
- Whether the genMap field is set.
-
getGenMap
ValueOuterClass.GenMap getGenMap()The GenMap type
.com.daml.ledger.api.v2.GenMap gen_map = 13 [json_name = "genMap"];
- Returns:
- The genMap.
-
getGenMapOrBuilder
ValueOuterClass.GenMapOrBuilder getGenMapOrBuilder()The GenMap type
.com.daml.ledger.api.v2.GenMap gen_map = 13 [json_name = "genMap"];
-
hasRecord
boolean hasRecord().com.daml.ledger.api.v2.Record record = 14 [json_name = "record"];
- Returns:
- Whether the record field is set.
-
getRecord
ValueOuterClass.Record getRecord().com.daml.ledger.api.v2.Record record = 14 [json_name = "record"];
- Returns:
- The record.
-
getRecordOrBuilder
ValueOuterClass.RecordOrBuilder getRecordOrBuilder().com.daml.ledger.api.v2.Record record = 14 [json_name = "record"];
-
hasVariant
boolean hasVariant().com.daml.ledger.api.v2.Variant variant = 15 [json_name = "variant"];
- Returns:
- Whether the variant field is set.
-
getVariant
ValueOuterClass.Variant getVariant().com.daml.ledger.api.v2.Variant variant = 15 [json_name = "variant"];
- Returns:
- The variant.
-
getVariantOrBuilder
ValueOuterClass.VariantOrBuilder getVariantOrBuilder().com.daml.ledger.api.v2.Variant variant = 15 [json_name = "variant"];
-
hasEnum
boolean hasEnum()The Enum type
.com.daml.ledger.api.v2.Enum enum = 16 [json_name = "enum"];
- Returns:
- Whether the enum field is set.
-
getEnum
ValueOuterClass.Enum getEnum()The Enum type
.com.daml.ledger.api.v2.Enum enum = 16 [json_name = "enum"];
- Returns:
- The enum.
-
getEnumOrBuilder
ValueOuterClass.EnumOrBuilder getEnumOrBuilder()The Enum type
.com.daml.ledger.api.v2.Enum enum = 16 [json_name = "enum"];
-
getSumCase
ValueOuterClass.Value.SumCase getSumCase()
-