Package com.daml.ledger.api.v1
Class ValueOuterClass.Enum.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
- com.daml.ledger.api.v1.ValueOuterClass.Enum.Builder
-
- All Implemented Interfaces:
ValueOuterClass.EnumOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- ValueOuterClass.Enum
public static final class ValueOuterClass.Enum.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder> implements ValueOuterClass.EnumOrBuilder
A value with finite set of alternative representations.
Protobuf typecom.daml.ledger.api.v1.Enum
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueOuterClass.Enum.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ValueOuterClass.Enum
build()
ValueOuterClass.Enum
buildPartial()
ValueOuterClass.Enum.Builder
clear()
ValueOuterClass.Enum.Builder
clearConstructor()
Determines which of the Variant's alternatives is encoded in this message.ValueOuterClass.Enum.Builder
clearEnumId()
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.Enum.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ValueOuterClass.Enum.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ValueOuterClass.Enum.Builder
clone()
java.lang.String
getConstructor()
Determines which of the Variant's alternatives is encoded in this message.com.google.protobuf.ByteString
getConstructorBytes()
Determines which of the Variant's alternatives is encoded in this message.ValueOuterClass.Enum
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ValueOuterClass.Identifier
getEnumId()
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.Identifier.Builder
getEnumIdBuilder()
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.IdentifierOrBuilder
getEnumIdOrBuilder()
Omitted from the transaction stream when verbose streaming is not enabled.boolean
hasEnumId()
Omitted from the transaction stream when verbose streaming is not enabled.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ValueOuterClass.Enum.Builder
mergeEnumId(ValueOuterClass.Identifier value)
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.Enum.Builder
mergeFrom(ValueOuterClass.Enum other)
ValueOuterClass.Enum.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ValueOuterClass.Enum.Builder
mergeFrom(com.google.protobuf.Message other)
ValueOuterClass.Enum.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ValueOuterClass.Enum.Builder
setConstructor(java.lang.String value)
Determines which of the Variant's alternatives is encoded in this message.ValueOuterClass.Enum.Builder
setConstructorBytes(com.google.protobuf.ByteString value)
Determines which of the Variant's alternatives is encoded in this message.ValueOuterClass.Enum.Builder
setEnumId(ValueOuterClass.Identifier value)
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.Enum.Builder
setEnumId(ValueOuterClass.Identifier.Builder builderForValue)
Omitted from the transaction stream when verbose streaming is not enabled.ValueOuterClass.Enum.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ValueOuterClass.Enum.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ValueOuterClass.Enum.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
clear
public ValueOuterClass.Enum.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
getDefaultInstanceForType
public ValueOuterClass.Enum getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ValueOuterClass.Enum build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ValueOuterClass.Enum buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ValueOuterClass.Enum.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
setField
public ValueOuterClass.Enum.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
clearField
public ValueOuterClass.Enum.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
clearOneof
public ValueOuterClass.Enum.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
setRepeatedField
public ValueOuterClass.Enum.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
addRepeatedField
public ValueOuterClass.Enum.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
mergeFrom
public ValueOuterClass.Enum.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ValueOuterClass.Enum.Builder>
-
mergeFrom
public ValueOuterClass.Enum.Builder mergeFrom(ValueOuterClass.Enum other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
mergeFrom
public ValueOuterClass.Enum.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ValueOuterClass.Enum.Builder>
- Throws:
java.io.IOException
-
hasEnumId
public boolean hasEnumId()
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier enum_id = 1 [json_name = "enumId"];
- Specified by:
hasEnumId
in interfaceValueOuterClass.EnumOrBuilder
- Returns:
- Whether the enumId field is set.
-
getEnumId
public ValueOuterClass.Identifier getEnumId()
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier enum_id = 1 [json_name = "enumId"];
- Specified by:
getEnumId
in interfaceValueOuterClass.EnumOrBuilder
- Returns:
- The enumId.
-
setEnumId
public ValueOuterClass.Enum.Builder setEnumId(ValueOuterClass.Identifier value)
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier enum_id = 1 [json_name = "enumId"];
-
setEnumId
public ValueOuterClass.Enum.Builder setEnumId(ValueOuterClass.Identifier.Builder builderForValue)
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier enum_id = 1 [json_name = "enumId"];
-
mergeEnumId
public ValueOuterClass.Enum.Builder mergeEnumId(ValueOuterClass.Identifier value)
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier enum_id = 1 [json_name = "enumId"];
-
clearEnumId
public ValueOuterClass.Enum.Builder clearEnumId()
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier enum_id = 1 [json_name = "enumId"];
-
getEnumIdBuilder
public ValueOuterClass.Identifier.Builder getEnumIdBuilder()
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier enum_id = 1 [json_name = "enumId"];
-
getEnumIdOrBuilder
public ValueOuterClass.IdentifierOrBuilder getEnumIdOrBuilder()
Omitted from the transaction stream when verbose streaming is not enabled. Optional when submitting commands.
.com.daml.ledger.api.v1.Identifier enum_id = 1 [json_name = "enumId"];
- Specified by:
getEnumIdOrBuilder
in interfaceValueOuterClass.EnumOrBuilder
-
getConstructor
public java.lang.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"];
- Specified by:
getConstructor
in interfaceValueOuterClass.EnumOrBuilder
- Returns:
- The constructor.
-
getConstructorBytes
public 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"];
- Specified by:
getConstructorBytes
in interfaceValueOuterClass.EnumOrBuilder
- Returns:
- The bytes for constructor.
-
setConstructor
public ValueOuterClass.Enum.Builder setConstructor(java.lang.String value)
Determines which of the Variant's alternatives is encoded in this message. Must be a valid NameString. Required
string constructor = 2 [json_name = "constructor"];
- Parameters:
value
- The constructor to set.- Returns:
- This builder for chaining.
-
clearConstructor
public ValueOuterClass.Enum.Builder clearConstructor()
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:
- This builder for chaining.
-
setConstructorBytes
public ValueOuterClass.Enum.Builder setConstructorBytes(com.google.protobuf.ByteString value)
Determines which of the Variant's alternatives is encoded in this message. Must be a valid NameString. Required
string constructor = 2 [json_name = "constructor"];
- Parameters:
value
- The bytes for constructor to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ValueOuterClass.Enum.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
mergeUnknownFields
public final ValueOuterClass.Enum.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
-
-