Class CurrencyConstant.Builder

  • All Implemented Interfaces:
    CurrencyConstantOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    CurrencyConstant

    public static final class CurrencyConstant.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
    implements CurrencyConstantOrBuilder
     A currency constant.
     
    Protobuf type google.ads.googleads.v10.resources.CurrencyConstant
    • 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<CurrencyConstant.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public CurrencyConstant.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CurrencyConstant.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CurrencyConstant.Builder>
      • mergeFrom

        public CurrencyConstant.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<CurrencyConstant.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Output only. The resource name of the currency constant.
         Currency constant resource names have the form:
         `currencyConstants/{code}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface CurrencyConstantOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Output only. The resource name of the currency constant.
         Currency constant resource names have the form:
         `currencyConstants/{code}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface CurrencyConstantOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public CurrencyConstant.Builder setResourceName​(java.lang.String value)
         Output only. The resource name of the currency constant.
         Currency constant resource names have the form:
         `currencyConstants/{code}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public CurrencyConstant.Builder clearResourceName()
         Output only. The resource name of the currency constant.
         Currency constant resource names have the form:
         `currencyConstants/{code}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public CurrencyConstant.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the currency constant.
         Currency constant resource names have the form:
         `currencyConstants/{code}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • hasCode

        public boolean hasCode()
         Output only. ISO 4217 three-letter currency code, e.g. "USD"
         
        optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCode in interface CurrencyConstantOrBuilder
        Returns:
        Whether the code field is set.
      • getCode

        public java.lang.String getCode()
         Output only. ISO 4217 three-letter currency code, e.g. "USD"
         
        optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCode in interface CurrencyConstantOrBuilder
        Returns:
        The code.
      • getCodeBytes

        public com.google.protobuf.ByteString getCodeBytes()
         Output only. ISO 4217 three-letter currency code, e.g. "USD"
         
        optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCodeBytes in interface CurrencyConstantOrBuilder
        Returns:
        The bytes for code.
      • setCode

        public CurrencyConstant.Builder setCode​(java.lang.String value)
         Output only. ISO 4217 three-letter currency code, e.g. "USD"
         
        optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The code to set.
        Returns:
        This builder for chaining.
      • clearCode

        public CurrencyConstant.Builder clearCode()
         Output only. ISO 4217 three-letter currency code, e.g. "USD"
         
        optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setCodeBytes

        public CurrencyConstant.Builder setCodeBytes​(com.google.protobuf.ByteString value)
         Output only. ISO 4217 three-letter currency code, e.g. "USD"
         
        optional string code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for code to set.
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
         Output only. Full English name of the currency.
         
        optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasName in interface CurrencyConstantOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
         Output only. Full English name of the currency.
         
        optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface CurrencyConstantOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Full English name of the currency.
         
        optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface CurrencyConstantOrBuilder
        Returns:
        The bytes for name.
      • setName

        public CurrencyConstant.Builder setName​(java.lang.String value)
         Output only. Full English name of the currency.
         
        optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public CurrencyConstant.Builder clearName()
         Output only. Full English name of the currency.
         
        optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public CurrencyConstant.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. Full English name of the currency.
         
        optional string name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasSymbol

        public boolean hasSymbol()
         Output only. Standard symbol for describing this currency, e.g. '$' for US Dollars.
         
        optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasSymbol in interface CurrencyConstantOrBuilder
        Returns:
        Whether the symbol field is set.
      • getSymbol

        public java.lang.String getSymbol()
         Output only. Standard symbol for describing this currency, e.g. '$' for US Dollars.
         
        optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSymbol in interface CurrencyConstantOrBuilder
        Returns:
        The symbol.
      • getSymbolBytes

        public com.google.protobuf.ByteString getSymbolBytes()
         Output only. Standard symbol for describing this currency, e.g. '$' for US Dollars.
         
        optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSymbolBytes in interface CurrencyConstantOrBuilder
        Returns:
        The bytes for symbol.
      • setSymbol

        public CurrencyConstant.Builder setSymbol​(java.lang.String value)
         Output only. Standard symbol for describing this currency, e.g. '$' for US Dollars.
         
        optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The symbol to set.
        Returns:
        This builder for chaining.
      • clearSymbol

        public CurrencyConstant.Builder clearSymbol()
         Output only. Standard symbol for describing this currency, e.g. '$' for US Dollars.
         
        optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setSymbolBytes

        public CurrencyConstant.Builder setSymbolBytes​(com.google.protobuf.ByteString value)
         Output only. Standard symbol for describing this currency, e.g. '$' for US Dollars.
         
        optional string symbol = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for symbol to set.
        Returns:
        This builder for chaining.
      • hasBillableUnitMicros

        public boolean hasBillableUnitMicros()
         Output only. The billable unit for this currency. Billed amounts should be multiples of
         this value.
         
        optional int64 billable_unit_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasBillableUnitMicros in interface CurrencyConstantOrBuilder
        Returns:
        Whether the billableUnitMicros field is set.
      • getBillableUnitMicros

        public long getBillableUnitMicros()
         Output only. The billable unit for this currency. Billed amounts should be multiples of
         this value.
         
        optional int64 billable_unit_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getBillableUnitMicros in interface CurrencyConstantOrBuilder
        Returns:
        The billableUnitMicros.
      • setBillableUnitMicros

        public CurrencyConstant.Builder setBillableUnitMicros​(long value)
         Output only. The billable unit for this currency. Billed amounts should be multiples of
         this value.
         
        optional int64 billable_unit_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The billableUnitMicros to set.
        Returns:
        This builder for chaining.
      • clearBillableUnitMicros

        public CurrencyConstant.Builder clearBillableUnitMicros()
         Output only. The billable unit for this currency. Billed amounts should be multiples of
         this value.
         
        optional int64 billable_unit_micros = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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