Class PriceAsset.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PriceAsset.Builder>
com.google.ads.googleads.v18.common.PriceAsset.Builder
All Implemented Interfaces:
PriceAssetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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.v18.common.PriceAsset
  • Method Details

    • 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, 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, 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, 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>
    • mergeFrom

      public PriceAsset.Builder mergeFrom(PriceAsset other)
    • 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 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:
      IOException
    • getTypeValue

      public int getTypeValue()
       Required. The type of the price asset.
       
      .google.ads.googleads.v18.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.v18.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.
    • getType

       Required. The type of the price asset.
       
      .google.ads.googleads.v18.enums.PriceExtensionTypeEnum.PriceExtensionType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface PriceAssetOrBuilder
      Returns:
      The type.
    • setType

       Required. The type of the price asset.
       
      .google.ads.googleads.v18.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.v18.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.v18.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.v18.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2;
      Parameters:
      value - The enum numeric value on the wire for priceQualifier to set.
      Returns:
      This builder for chaining.
    • getPriceQualifier

       The price qualifier of the price asset.
       
      .google.ads.googleads.v18.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2;
      Specified by:
      getPriceQualifier in interface PriceAssetOrBuilder
      Returns:
      The priceQualifier.
    • setPriceQualifier

       The price qualifier of the price asset.
       
      .google.ads.googleads.v18.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2;
      Parameters:
      value - The priceQualifier to set.
      Returns:
      This builder for chaining.
    • clearPriceQualifier

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

      public 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(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 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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.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.v18.common.PriceOffering price_offerings = 4;
    • addAllPriceOfferings

      public PriceAsset.Builder addAllPriceOfferings(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.v18.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.v18.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.v18.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.v18.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.v18.common.PriceOffering price_offerings = 4;
      Specified by:
      getPriceOfferingsOrBuilder in interface PriceAssetOrBuilder
    • getPriceOfferingsOrBuilderList

      public 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.v18.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.v18.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.v18.common.PriceOffering price_offerings = 4;
    • getPriceOfferingsBuilderList

      public 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.v18.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>