Class ValueOuterClass.Variant.Builder

    • 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.Variant.Builder>
      • clear

        public ValueOuterClass.Variant.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.Variant.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.Variant.Builder>
      • getDefaultInstanceForType

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

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

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

        public ValueOuterClass.Variant.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.Variant.Builder>
      • setField

        public ValueOuterClass.Variant.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.Variant.Builder>
      • clearField

        public ValueOuterClass.Variant.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.Variant.Builder>
      • clearOneof

        public ValueOuterClass.Variant.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.Variant.Builder>
      • setRepeatedField

        public ValueOuterClass.Variant.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.Variant.Builder>
      • addRepeatedField

        public ValueOuterClass.Variant.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.Variant.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.Variant.Builder>
      • mergeFrom

        public ValueOuterClass.Variant.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.Variant.Builder>
        Throws:
        java.io.IOException
      • hasVariantId

        public boolean hasVariantId()
         Omitted from the transaction stream when verbose streaming is not enabled.
         Optional when submitting commands.
         
        .com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
        Specified by:
        hasVariantId in interface ValueOuterClass.VariantOrBuilder
        Returns:
        Whether the variantId field is set.
      • getVariantId

        public ValueOuterClass.Identifier getVariantId()
         Omitted from the transaction stream when verbose streaming is not enabled.
         Optional when submitting commands.
         
        .com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
        Specified by:
        getVariantId in interface ValueOuterClass.VariantOrBuilder
        Returns:
        The variantId.
      • setVariantId

        public ValueOuterClass.Variant.Builder setVariantId​(ValueOuterClass.Identifier value)
         Omitted from the transaction stream when verbose streaming is not enabled.
         Optional when submitting commands.
         
        .com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
      • mergeVariantId

        public ValueOuterClass.Variant.Builder mergeVariantId​(ValueOuterClass.Identifier value)
         Omitted from the transaction stream when verbose streaming is not enabled.
         Optional when submitting commands.
         
        .com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
      • clearVariantId

        public ValueOuterClass.Variant.Builder clearVariantId()
         Omitted from the transaction stream when verbose streaming is not enabled.
         Optional when submitting commands.
         
        .com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
      • getVariantIdBuilder

        public ValueOuterClass.Identifier.Builder getVariantIdBuilder()
         Omitted from the transaction stream when verbose streaming is not enabled.
         Optional when submitting commands.
         
        .com.daml.ledger.api.v1.Identifier variant_id = 1 [json_name = "variantId"];
      • 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.VariantOrBuilder
        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.VariantOrBuilder
        Returns:
        The bytes for constructor.
      • setConstructor

        public ValueOuterClass.Variant.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.Variant.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.Variant.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.
      • hasValue

        public boolean hasValue()
         The value encoded within the Variant.
         Required
         
        .com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
        Specified by:
        hasValue in interface ValueOuterClass.VariantOrBuilder
        Returns:
        Whether the value field is set.
      • clearValue

        public ValueOuterClass.Variant.Builder clearValue()
         The value encoded within the Variant.
         Required
         
        .com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
      • getValueBuilder

        public ValueOuterClass.Value.Builder getValueBuilder()
         The value encoded within the Variant.
         Required
         
        .com.daml.ledger.api.v1.Value value = 3 [json_name = "value"];
      • setUnknownFields

        public final ValueOuterClass.Variant.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.Variant.Builder>
      • mergeUnknownFields

        public final ValueOuterClass.Variant.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.Variant.Builder>