Class 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 type com.daml.ledger.api.v1.Enum
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
      • clear

        public ValueOuterClass.Enum.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
      • getDefaultInstanceForType

        public ValueOuterClass.Enum getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ValueOuterClass.Enum build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ValueOuterClass.Enum buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ValueOuterClass.Enum.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
      • clearField

        public ValueOuterClass.Enum.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
      • clearOneof

        public ValueOuterClass.Enum.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface ValueOuterClass.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 interface ValueOuterClass.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"];
      • 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"];
      • 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 interface ValueOuterClass.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 interface ValueOuterClass.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>
      • mergeUnknownFields

        public final ValueOuterClass.Enum.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ValueOuterClass.Enum.Builder>