Class ProductCoreAttributes.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProductCoreAttributes.Builder>
com.google.ads.googleads.v24.services.ProductCoreAttributes.Builder
All Implemented Interfaces:
ProductCoreAttributesOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ProductCoreAttributes

public static final class ProductCoreAttributes.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProductCoreAttributes.Builder> implements ProductCoreAttributesOrBuilder
 A collection of attributes that offer more information about a specific
 product.
 
Protobuf type google.ads.googleads.v24.services.ProductCoreAttributes
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ProductCoreAttributes.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.GeneratedMessage.Builder<ProductCoreAttributes.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.GeneratedMessage.Builder<ProductCoreAttributes.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public ProductCoreAttributes.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<ProductCoreAttributes.Builder>
      Throws:
      IOException
    • hasMarketingObjective

      public boolean hasMarketingObjective()
       A specific, measurable goal that a company wants to achieve through its
       marketing efforts.
       
      optional .google.ads.googleads.v24.enums.ReachPlanMarketingObjectiveEnum.ReachPlanMarketingObjective marketing_objective = 1;
      Specified by:
      hasMarketingObjective in interface ProductCoreAttributesOrBuilder
      Returns:
      Whether the marketingObjective field is set.
    • getMarketingObjectiveValue

      public int getMarketingObjectiveValue()
       A specific, measurable goal that a company wants to achieve through its
       marketing efforts.
       
      optional .google.ads.googleads.v24.enums.ReachPlanMarketingObjectiveEnum.ReachPlanMarketingObjective marketing_objective = 1;
      Specified by:
      getMarketingObjectiveValue in interface ProductCoreAttributesOrBuilder
      Returns:
      The enum numeric value on the wire for marketingObjective.
    • setMarketingObjectiveValue

      public ProductCoreAttributes.Builder setMarketingObjectiveValue(int value)
       A specific, measurable goal that a company wants to achieve through its
       marketing efforts.
       
      optional .google.ads.googleads.v24.enums.ReachPlanMarketingObjectiveEnum.ReachPlanMarketingObjective marketing_objective = 1;
      Parameters:
      value - The enum numeric value on the wire for marketingObjective to set.
      Returns:
      This builder for chaining.
    • getMarketingObjective

       A specific, measurable goal that a company wants to achieve through its
       marketing efforts.
       
      optional .google.ads.googleads.v24.enums.ReachPlanMarketingObjectiveEnum.ReachPlanMarketingObjective marketing_objective = 1;
      Specified by:
      getMarketingObjective in interface ProductCoreAttributesOrBuilder
      Returns:
      The marketingObjective.
    • setMarketingObjective

       A specific, measurable goal that a company wants to achieve through its
       marketing efforts.
       
      optional .google.ads.googleads.v24.enums.ReachPlanMarketingObjectiveEnum.ReachPlanMarketingObjective marketing_objective = 1;
      Parameters:
      value - The marketingObjective to set.
      Returns:
      This builder for chaining.
    • clearMarketingObjective

      public ProductCoreAttributes.Builder clearMarketingObjective()
       A specific, measurable goal that a company wants to achieve through its
       marketing efforts.
       
      optional .google.ads.googleads.v24.enums.ReachPlanMarketingObjectiveEnum.ReachPlanMarketingObjective marketing_objective = 1;
      Returns:
      This builder for chaining.
    • hasCostModel

      public boolean hasCostModel()
       How an advertiser pays for their ad campaign.
       
      optional .google.ads.googleads.v24.enums.ReachPlanCostModelEnum.ReachPlanCostModel cost_model = 2;
      Specified by:
      hasCostModel in interface ProductCoreAttributesOrBuilder
      Returns:
      Whether the costModel field is set.
    • getCostModelValue

      public int getCostModelValue()
       How an advertiser pays for their ad campaign.
       
      optional .google.ads.googleads.v24.enums.ReachPlanCostModelEnum.ReachPlanCostModel cost_model = 2;
      Specified by:
      getCostModelValue in interface ProductCoreAttributesOrBuilder
      Returns:
      The enum numeric value on the wire for costModel.
    • setCostModelValue

      public ProductCoreAttributes.Builder setCostModelValue(int value)
       How an advertiser pays for their ad campaign.
       
      optional .google.ads.googleads.v24.enums.ReachPlanCostModelEnum.ReachPlanCostModel cost_model = 2;
      Parameters:
      value - The enum numeric value on the wire for costModel to set.
      Returns:
      This builder for chaining.
    • getCostModel

       How an advertiser pays for their ad campaign.
       
      optional .google.ads.googleads.v24.enums.ReachPlanCostModelEnum.ReachPlanCostModel cost_model = 2;
      Specified by:
      getCostModel in interface ProductCoreAttributesOrBuilder
      Returns:
      The costModel.
    • setCostModel

       How an advertiser pays for their ad campaign.
       
      optional .google.ads.googleads.v24.enums.ReachPlanCostModelEnum.ReachPlanCostModel cost_model = 2;
      Parameters:
      value - The costModel to set.
      Returns:
      This builder for chaining.
    • clearCostModel

      public ProductCoreAttributes.Builder clearCostModel()
       How an advertiser pays for their ad campaign.
       
      optional .google.ads.googleads.v24.enums.ReachPlanCostModelEnum.ReachPlanCostModel cost_model = 2;
      Returns:
      This builder for chaining.
    • hasBuyingMethod

      public boolean hasBuyingMethod()
       The method of buying this product.
      
       For example, Auction pricing is dynamic and Reservation is booked at a
       fixed price.
       
      optional .google.ads.googleads.v24.enums.ReachPlanBuyingMethodEnum.ReachPlanBuyingMethod buying_method = 3;
      Specified by:
      hasBuyingMethod in interface ProductCoreAttributesOrBuilder
      Returns:
      Whether the buyingMethod field is set.
    • getBuyingMethodValue

      public int getBuyingMethodValue()
       The method of buying this product.
      
       For example, Auction pricing is dynamic and Reservation is booked at a
       fixed price.
       
      optional .google.ads.googleads.v24.enums.ReachPlanBuyingMethodEnum.ReachPlanBuyingMethod buying_method = 3;
      Specified by:
      getBuyingMethodValue in interface ProductCoreAttributesOrBuilder
      Returns:
      The enum numeric value on the wire for buyingMethod.
    • setBuyingMethodValue

      public ProductCoreAttributes.Builder setBuyingMethodValue(int value)
       The method of buying this product.
      
       For example, Auction pricing is dynamic and Reservation is booked at a
       fixed price.
       
      optional .google.ads.googleads.v24.enums.ReachPlanBuyingMethodEnum.ReachPlanBuyingMethod buying_method = 3;
      Parameters:
      value - The enum numeric value on the wire for buyingMethod to set.
      Returns:
      This builder for chaining.
    • getBuyingMethod

       The method of buying this product.
      
       For example, Auction pricing is dynamic and Reservation is booked at a
       fixed price.
       
      optional .google.ads.googleads.v24.enums.ReachPlanBuyingMethodEnum.ReachPlanBuyingMethod buying_method = 3;
      Specified by:
      getBuyingMethod in interface ProductCoreAttributesOrBuilder
      Returns:
      The buyingMethod.
    • setBuyingMethod

       The method of buying this product.
      
       For example, Auction pricing is dynamic and Reservation is booked at a
       fixed price.
       
      optional .google.ads.googleads.v24.enums.ReachPlanBuyingMethodEnum.ReachPlanBuyingMethod buying_method = 3;
      Parameters:
      value - The buyingMethod to set.
      Returns:
      This builder for chaining.
    • clearBuyingMethod

      public ProductCoreAttributes.Builder clearBuyingMethod()
       The method of buying this product.
      
       For example, Auction pricing is dynamic and Reservation is booked at a
       fixed price.
       
      optional .google.ads.googleads.v24.enums.ReachPlanBuyingMethodEnum.ReachPlanBuyingMethod buying_method = 3;
      Returns:
      This builder for chaining.