Class PriceAsset.Builder

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

    public static final class PriceAsset.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PriceAsset.Builder>
    implements PriceAssetOrBuilder
     An asset representing a list of price offers.
     
    Protobuf type google.ads.googleads.v10.common.PriceAsset
    • 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<PriceAsset.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public PriceAsset.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<PriceAsset.Builder>
      • isInitialized

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

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

        public int getTypeValue()
         Required. The type of the price asset.
         
        .google.ads.googleads.v10.enums.PriceExtensionTypeEnum.PriceExtensionType type = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTypeValue in interface PriceAssetOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public PriceAsset.Builder setTypeValue​(int value)
         Required. The type of the price asset.
         
        .google.ads.googleads.v10.enums.PriceExtensionTypeEnum.PriceExtensionType type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public PriceAsset.Builder setType​(PriceExtensionTypeEnum.PriceExtensionType value)
         Required. The type of the price asset.
         
        .google.ads.googleads.v10.enums.PriceExtensionTypeEnum.PriceExtensionType type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public PriceAsset.Builder clearType()
         Required. The type of the price asset.
         
        .google.ads.googleads.v10.enums.PriceExtensionTypeEnum.PriceExtensionType type = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getPriceQualifierValue

        public int getPriceQualifierValue()
         The price qualifier of the price asset.
         
        .google.ads.googleads.v10.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2;
        Specified by:
        getPriceQualifierValue in interface PriceAssetOrBuilder
        Returns:
        The enum numeric value on the wire for priceQualifier.
      • setPriceQualifierValue

        public PriceAsset.Builder setPriceQualifierValue​(int value)
         The price qualifier of the price asset.
         
        .google.ads.googleads.v10.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2;
        Parameters:
        value - The enum numeric value on the wire for priceQualifier to set.
        Returns:
        This builder for chaining.
      • clearPriceQualifier

        public PriceAsset.Builder clearPriceQualifier()
         The price qualifier of the price asset.
         
        .google.ads.googleads.v10.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2;
        Returns:
        This builder for chaining.
      • getLanguageCode

        public java.lang.String getLanguageCode()
         Required. The language of the price asset.
         Represented as BCP 47 language tag.
         
        string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getLanguageCode in interface PriceAssetOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Required. The language of the price asset.
         Represented as BCP 47 language tag.
         
        string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getLanguageCodeBytes in interface PriceAssetOrBuilder
        Returns:
        The bytes for languageCode.
      • setLanguageCode

        public PriceAsset.Builder setLanguageCode​(java.lang.String value)
         Required. The language of the price asset.
         Represented as BCP 47 language tag.
         
        string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The languageCode to set.
        Returns:
        This builder for chaining.
      • clearLanguageCode

        public PriceAsset.Builder clearLanguageCode()
         Required. The language of the price asset.
         Represented as BCP 47 language tag.
         
        string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setLanguageCodeBytes

        public PriceAsset.Builder setLanguageCodeBytes​(com.google.protobuf.ByteString value)
         Required. The language of the price asset.
         Represented as BCP 47 language tag.
         
        string language_code = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for languageCode to set.
        Returns:
        This builder for chaining.
      • getPriceOfferingsList

        public java.util.List<PriceOffering> getPriceOfferingsList()
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
        Specified by:
        getPriceOfferingsList in interface PriceAssetOrBuilder
      • getPriceOfferingsCount

        public int getPriceOfferingsCount()
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
        Specified by:
        getPriceOfferingsCount in interface PriceAssetOrBuilder
      • getPriceOfferings

        public PriceOffering getPriceOfferings​(int index)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
        Specified by:
        getPriceOfferings in interface PriceAssetOrBuilder
      • setPriceOfferings

        public PriceAsset.Builder setPriceOfferings​(int index,
                                                    PriceOffering value)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • setPriceOfferings

        public PriceAsset.Builder setPriceOfferings​(int index,
                                                    PriceOffering.Builder builderForValue)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • addPriceOfferings

        public PriceAsset.Builder addPriceOfferings​(PriceOffering value)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • addPriceOfferings

        public PriceAsset.Builder addPriceOfferings​(int index,
                                                    PriceOffering value)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • addPriceOfferings

        public PriceAsset.Builder addPriceOfferings​(PriceOffering.Builder builderForValue)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • addPriceOfferings

        public PriceAsset.Builder addPriceOfferings​(int index,
                                                    PriceOffering.Builder builderForValue)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • addAllPriceOfferings

        public PriceAsset.Builder addAllPriceOfferings​(java.lang.Iterable<? extends PriceOffering> values)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • clearPriceOfferings

        public PriceAsset.Builder clearPriceOfferings()
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • removePriceOfferings

        public PriceAsset.Builder removePriceOfferings​(int index)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • getPriceOfferingsBuilder

        public PriceOffering.Builder getPriceOfferingsBuilder​(int index)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • getPriceOfferingsOrBuilder

        public PriceOfferingOrBuilder getPriceOfferingsOrBuilder​(int index)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
        Specified by:
        getPriceOfferingsOrBuilder in interface PriceAssetOrBuilder
      • getPriceOfferingsOrBuilderList

        public java.util.List<? extends PriceOfferingOrBuilder> getPriceOfferingsOrBuilderList()
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
        Specified by:
        getPriceOfferingsOrBuilderList in interface PriceAssetOrBuilder
      • addPriceOfferingsBuilder

        public PriceOffering.Builder addPriceOfferingsBuilder()
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • addPriceOfferingsBuilder

        public PriceOffering.Builder addPriceOfferingsBuilder​(int index)
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • getPriceOfferingsBuilderList

        public java.util.List<PriceOffering.Builder> getPriceOfferingsBuilderList()
         The price offerings of the price asset.
         The size of this collection should be between 3 and 8, inclusive.
         
        repeated .google.ads.googleads.v10.common.PriceOffering price_offerings = 4;
      • setUnknownFields

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

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