Class PlannedProductReachForecast.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PlannedProductReachForecast.Builder>
com.google.ads.googleads.v18.services.PlannedProductReachForecast.Builder
All Implemented Interfaces:
PlannedProductReachForecastOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PlannedProductReachForecast

public static final class PlannedProductReachForecast.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PlannedProductReachForecast.Builder> implements PlannedProductReachForecastOrBuilder
 The forecasted allocation and traffic metrics for a specific product
 at a point on the reach curve.
 
Protobuf type google.ads.googleads.v18.services.PlannedProductReachForecast
  • 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<PlannedProductReachForecast.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<PlannedProductReachForecast.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<PlannedProductReachForecast.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PlannedProductReachForecast buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<PlannedProductReachForecast.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public PlannedProductReachForecast.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<PlannedProductReachForecast.Builder>
      Throws:
      IOException
    • getPlannableProductCode

      public String getPlannableProductCode()
       Selected product for planning. The product codes returned are within the
       set of the ones returned by ListPlannableProducts when using the same
       location ID.
       
      string plannable_product_code = 1;
      Specified by:
      getPlannableProductCode in interface PlannedProductReachForecastOrBuilder
      Returns:
      The plannableProductCode.
    • getPlannableProductCodeBytes

      public com.google.protobuf.ByteString getPlannableProductCodeBytes()
       Selected product for planning. The product codes returned are within the
       set of the ones returned by ListPlannableProducts when using the same
       location ID.
       
      string plannable_product_code = 1;
      Specified by:
      getPlannableProductCodeBytes in interface PlannedProductReachForecastOrBuilder
      Returns:
      The bytes for plannableProductCode.
    • setPlannableProductCode

      public PlannedProductReachForecast.Builder setPlannableProductCode(String value)
       Selected product for planning. The product codes returned are within the
       set of the ones returned by ListPlannableProducts when using the same
       location ID.
       
      string plannable_product_code = 1;
      Parameters:
      value - The plannableProductCode to set.
      Returns:
      This builder for chaining.
    • clearPlannableProductCode

      public PlannedProductReachForecast.Builder clearPlannableProductCode()
       Selected product for planning. The product codes returned are within the
       set of the ones returned by ListPlannableProducts when using the same
       location ID.
       
      string plannable_product_code = 1;
      Returns:
      This builder for chaining.
    • setPlannableProductCodeBytes

      public PlannedProductReachForecast.Builder setPlannableProductCodeBytes(com.google.protobuf.ByteString value)
       Selected product for planning. The product codes returned are within the
       set of the ones returned by ListPlannableProducts when using the same
       location ID.
       
      string plannable_product_code = 1;
      Parameters:
      value - The bytes for plannableProductCode to set.
      Returns:
      This builder for chaining.
    • getCostMicros

      public long getCostMicros()
       The cost in micros. This may differ from the product's input allocation
       if one or more planned products cannot fulfill the budget because of
       limited inventory.
       
      int64 cost_micros = 2;
      Specified by:
      getCostMicros in interface PlannedProductReachForecastOrBuilder
      Returns:
      The costMicros.
    • setCostMicros

      public PlannedProductReachForecast.Builder setCostMicros(long value)
       The cost in micros. This may differ from the product's input allocation
       if one or more planned products cannot fulfill the budget because of
       limited inventory.
       
      int64 cost_micros = 2;
      Parameters:
      value - The costMicros to set.
      Returns:
      This builder for chaining.
    • clearCostMicros

      public PlannedProductReachForecast.Builder clearCostMicros()
       The cost in micros. This may differ from the product's input allocation
       if one or more planned products cannot fulfill the budget because of
       limited inventory.
       
      int64 cost_micros = 2;
      Returns:
      This builder for chaining.
    • hasPlannedProductForecast

      public boolean hasPlannedProductForecast()
       Forecasted traffic metrics for this product.
       
      .google.ads.googleads.v18.services.PlannedProductForecast planned_product_forecast = 3;
      Specified by:
      hasPlannedProductForecast in interface PlannedProductReachForecastOrBuilder
      Returns:
      Whether the plannedProductForecast field is set.
    • getPlannedProductForecast

      public PlannedProductForecast getPlannedProductForecast()
       Forecasted traffic metrics for this product.
       
      .google.ads.googleads.v18.services.PlannedProductForecast planned_product_forecast = 3;
      Specified by:
      getPlannedProductForecast in interface PlannedProductReachForecastOrBuilder
      Returns:
      The plannedProductForecast.
    • setPlannedProductForecast

      public PlannedProductReachForecast.Builder setPlannedProductForecast(PlannedProductForecast value)
       Forecasted traffic metrics for this product.
       
      .google.ads.googleads.v18.services.PlannedProductForecast planned_product_forecast = 3;
    • setPlannedProductForecast

      public PlannedProductReachForecast.Builder setPlannedProductForecast(PlannedProductForecast.Builder builderForValue)
       Forecasted traffic metrics for this product.
       
      .google.ads.googleads.v18.services.PlannedProductForecast planned_product_forecast = 3;
    • mergePlannedProductForecast

      public PlannedProductReachForecast.Builder mergePlannedProductForecast(PlannedProductForecast value)
       Forecasted traffic metrics for this product.
       
      .google.ads.googleads.v18.services.PlannedProductForecast planned_product_forecast = 3;
    • clearPlannedProductForecast

      public PlannedProductReachForecast.Builder clearPlannedProductForecast()
       Forecasted traffic metrics for this product.
       
      .google.ads.googleads.v18.services.PlannedProductForecast planned_product_forecast = 3;
    • getPlannedProductForecastBuilder

      public PlannedProductForecast.Builder getPlannedProductForecastBuilder()
       Forecasted traffic metrics for this product.
       
      .google.ads.googleads.v18.services.PlannedProductForecast planned_product_forecast = 3;
    • getPlannedProductForecastOrBuilder

      public PlannedProductForecastOrBuilder getPlannedProductForecastOrBuilder()
       Forecasted traffic metrics for this product.
       
      .google.ads.googleads.v18.services.PlannedProductForecast planned_product_forecast = 3;
      Specified by:
      getPlannedProductForecastOrBuilder in interface PlannedProductReachForecastOrBuilder
    • setUnknownFields

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

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