Package com.daml.ledger.api.v1
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetBool()True or false.java.lang.StringgetContractId()Identifier of an on-ledger contract.com.google.protobuf.ByteStringgetContractIdBytes()Identifier of an on-ledger contract.intgetDate()Days since the unix epoch.ValueOuterClass.EnumgetEnum()The Enum typeValueOuterClass.EnumOrBuildergetEnumOrBuilder()The Enum typeValueOuterClass.GenMapgetGenMap()The GenMap typeValueOuterClass.GenMapOrBuildergetGenMapOrBuilder()The GenMap typelonggetInt64()sint64 int64 = 5 [json_name = "int64", jstype = JS_STRING];ValueOuterClass.ListgetList()Represents a homogeneous list of values.ValueOuterClass.ListOrBuildergetListOrBuilder()Represents a homogeneous list of values.ValueOuterClass.MapgetMap()The Map typeValueOuterClass.MapOrBuildergetMapOrBuilder()The Map typejava.lang.StringgetNumeric()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.ByteStringgetNumericBytes()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.OptionalgetOptional()The Optional type, None or SomeValueOuterClass.OptionalOrBuildergetOptionalOrBuilder()The Optional type, None or Somejava.lang.StringgetParty()An agent operating on the ledger.com.google.protobuf.ByteStringgetPartyBytes()An agent operating on the ledger.ValueOuterClass.RecordgetRecord().com.daml.ledger.api.v1.Record record = 1 [json_name = "record"];ValueOuterClass.RecordOrBuildergetRecordOrBuilder().com.daml.ledger.api.v1.Record record = 1 [json_name = "record"];ValueOuterClass.Value.SumCasegetSumCase()java.lang.StringgetText()A string.com.google.protobuf.ByteStringgetTextBytes()A string.longgetTimestamp()Microseconds since the UNIX epoch.com.google.protobuf.EmptygetUnit()This value is used for example for choices that don't take any arguments.com.google.protobuf.EmptyOrBuildergetUnitOrBuilder()This value is used for example for choices that don't take any arguments.ValueOuterClass.VariantgetVariant().com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"];ValueOuterClass.VariantOrBuildergetVariantOrBuilder().com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"];booleanhasBool()True or false.booleanhasContractId()Identifier of an on-ledger contract.booleanhasDate()Days since the unix epoch.booleanhasEnum()The Enum typebooleanhasGenMap()The GenMap typebooleanhasInt64()sint64 int64 = 5 [json_name = "int64", jstype = JS_STRING];booleanhasList()Represents a homogeneous list of values.booleanhasMap()The Map typebooleanhasNumeric()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).booleanhasOptional()The Optional type, None or SomebooleanhasParty()An agent operating on the ledger.booleanhasRecord().com.daml.ledger.api.v1.Record record = 1 [json_name = "record"];booleanhasText()A string.booleanhasTimestamp()Microseconds since the UNIX epoch.booleanhasUnit()This value is used for example for choices that don't take any arguments.booleanhasVariant().com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"];-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasRecord
boolean hasRecord()
.com.daml.ledger.api.v1.Record record = 1 [json_name = "record"];- Returns:
- Whether the record field is set.
-
getRecord
ValueOuterClass.Record getRecord()
.com.daml.ledger.api.v1.Record record = 1 [json_name = "record"];- Returns:
- The record.
-
getRecordOrBuilder
ValueOuterClass.RecordOrBuilder getRecordOrBuilder()
.com.daml.ledger.api.v1.Record record = 1 [json_name = "record"];
-
hasVariant
boolean hasVariant()
.com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"];- Returns:
- Whether the variant field is set.
-
getVariant
ValueOuterClass.Variant getVariant()
.com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"];- Returns:
- The variant.
-
getVariantOrBuilder
ValueOuterClass.VariantOrBuilder getVariantOrBuilder()
.com.daml.ledger.api.v1.Variant variant = 2 [json_name = "variant"];
-
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 = 3 [json_name = "contractId"];- Returns:
- Whether the contractId field is set.
-
getContractId
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"];- 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 = 3 [json_name = "contractId"];- Returns:
- The bytes for contractId.
-
hasList
boolean hasList()
Represents a homogeneous list of values.
.com.daml.ledger.api.v1.List list = 4 [json_name = "list"];- Returns:
- Whether the list field is set.
-
getList
ValueOuterClass.List getList()
Represents a homogeneous list of values.
.com.daml.ledger.api.v1.List list = 4 [json_name = "list"];- Returns:
- The list.
-
getListOrBuilder
ValueOuterClass.ListOrBuilder getListOrBuilder()
Represents a homogeneous list of values.
.com.daml.ledger.api.v1.List list = 4 [json_name = "list"];
-
hasInt64
boolean hasInt64()
sint64 int64 = 5 [json_name = "int64", jstype = JS_STRING];- Returns:
- Whether the int64 field is set.
-
getInt64
long getInt64()
sint64 int64 = 5 [json_name = "int64", jstype = JS_STRING];- Returns:
- The int64.
-
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 [+-]?\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
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"];- 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 [+-]?\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.
-
hasText
boolean hasText()
A string.
string text = 8 [json_name = "text"];- Returns:
- Whether the text field is set.
-
getText
java.lang.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.
-
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 = 9 [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 = 9 [json_name = "timestamp", jstype = JS_STRING];- Returns:
- The timestamp.
-
hasParty
boolean hasParty()
An agent operating on the ledger. Must be a valid PartyIdString.
string party = 11 [json_name = "party"];- Returns:
- Whether the party field is set.
-
getParty
java.lang.String getParty()
An agent operating on the ledger. Must be a valid PartyIdString.
string party = 11 [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 = 11 [json_name = "party"];- Returns:
- The bytes for party.
-
hasBool
boolean hasBool()
True or false.
bool bool = 12 [json_name = "bool"];- Returns:
- Whether the bool field is set.
-
getBool
boolean getBool()
True or false.
bool bool = 12 [json_name = "bool"];- Returns:
- The bool.
-
hasUnit
boolean hasUnit()
This value is used for example for choices that don't take any arguments.
.google.protobuf.Empty unit = 13 [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 = 13 [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 = 13 [json_name = "unit"];
-
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 = 14 [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 = 14 [json_name = "date"];- Returns:
- The date.
-
hasOptional
boolean hasOptional()
The Optional type, None or Some
.com.daml.ledger.api.v1.Optional optional = 15 [json_name = "optional"];- Returns:
- Whether the optional field is set.
-
getOptional
ValueOuterClass.Optional getOptional()
The Optional type, None or Some
.com.daml.ledger.api.v1.Optional optional = 15 [json_name = "optional"];- Returns:
- The optional.
-
getOptionalOrBuilder
ValueOuterClass.OptionalOrBuilder getOptionalOrBuilder()
The Optional type, None or Some
.com.daml.ledger.api.v1.Optional optional = 15 [json_name = "optional"];
-
hasMap
boolean hasMap()
The Map type
.com.daml.ledger.api.v1.Map map = 16 [json_name = "map"];- Returns:
- Whether the map field is set.
-
getMap
ValueOuterClass.Map getMap()
The Map type
.com.daml.ledger.api.v1.Map map = 16 [json_name = "map"];- Returns:
- The map.
-
getMapOrBuilder
ValueOuterClass.MapOrBuilder getMapOrBuilder()
The Map type
.com.daml.ledger.api.v1.Map map = 16 [json_name = "map"];
-
hasEnum
boolean hasEnum()
The Enum type
.com.daml.ledger.api.v1.Enum enum = 17 [json_name = "enum"];- Returns:
- Whether the enum field is set.
-
getEnum
ValueOuterClass.Enum getEnum()
The Enum type
.com.daml.ledger.api.v1.Enum enum = 17 [json_name = "enum"];- Returns:
- The enum.
-
getEnumOrBuilder
ValueOuterClass.EnumOrBuilder getEnumOrBuilder()
The Enum type
.com.daml.ledger.api.v1.Enum enum = 17 [json_name = "enum"];
-
hasGenMap
boolean hasGenMap()
The GenMap type
.com.daml.ledger.api.v1.GenMap gen_map = 18 [json_name = "genMap"];- Returns:
- Whether the genMap field is set.
-
getGenMap
ValueOuterClass.GenMap getGenMap()
The GenMap type
.com.daml.ledger.api.v1.GenMap gen_map = 18 [json_name = "genMap"];- Returns:
- The genMap.
-
getGenMapOrBuilder
ValueOuterClass.GenMapOrBuilder getGenMapOrBuilder()
The GenMap type
.com.daml.ledger.api.v1.GenMap gen_map = 18 [json_name = "genMap"];
-
getSumCase
ValueOuterClass.Value.SumCase getSumCase()
-
-