Class KeywordPlanForecastPeriod.Builder

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

public static final class KeywordPlanForecastPeriod.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanForecastPeriod.Builder> implements KeywordPlanForecastPeriodOrBuilder
 The forecasting period associated with the keyword plan.
 
Protobuf type google.ads.googleads.v18.resources.KeywordPlanForecastPeriod
  • 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<KeywordPlanForecastPeriod.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<KeywordPlanForecastPeriod.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<KeywordPlanForecastPeriod.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public KeywordPlanForecastPeriod.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<KeywordPlanForecastPeriod.Builder>
      Throws:
      IOException
    • getIntervalCase

      public KeywordPlanForecastPeriod.IntervalCase getIntervalCase()
      Specified by:
      getIntervalCase in interface KeywordPlanForecastPeriodOrBuilder
    • clearInterval

      public KeywordPlanForecastPeriod.Builder clearInterval()
    • hasDateInterval

      public boolean hasDateInterval()
       A future date range relative to the current date used for forecasting.
       
      .google.ads.googleads.v18.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval date_interval = 1;
      Specified by:
      hasDateInterval in interface KeywordPlanForecastPeriodOrBuilder
      Returns:
      Whether the dateInterval field is set.
    • getDateIntervalValue

      public int getDateIntervalValue()
       A future date range relative to the current date used for forecasting.
       
      .google.ads.googleads.v18.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval date_interval = 1;
      Specified by:
      getDateIntervalValue in interface KeywordPlanForecastPeriodOrBuilder
      Returns:
      The enum numeric value on the wire for dateInterval.
    • setDateIntervalValue

      public KeywordPlanForecastPeriod.Builder setDateIntervalValue(int value)
       A future date range relative to the current date used for forecasting.
       
      .google.ads.googleads.v18.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval date_interval = 1;
      Parameters:
      value - The enum numeric value on the wire for dateInterval to set.
      Returns:
      This builder for chaining.
    • getDateInterval

       A future date range relative to the current date used for forecasting.
       
      .google.ads.googleads.v18.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval date_interval = 1;
      Specified by:
      getDateInterval in interface KeywordPlanForecastPeriodOrBuilder
      Returns:
      The dateInterval.
    • setDateInterval

       A future date range relative to the current date used for forecasting.
       
      .google.ads.googleads.v18.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval date_interval = 1;
      Parameters:
      value - The dateInterval to set.
      Returns:
      This builder for chaining.
    • clearDateInterval

      public KeywordPlanForecastPeriod.Builder clearDateInterval()
       A future date range relative to the current date used for forecasting.
       
      .google.ads.googleads.v18.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval date_interval = 1;
      Returns:
      This builder for chaining.
    • hasDateRange

      public boolean hasDateRange()
       The custom date range used for forecasting. It cannot be greater than
       a year.
       The start and end dates must be in the future. Otherwise, an error will
       be returned when the forecasting action is performed.
       The start and end dates are inclusive.
       
      .google.ads.googleads.v18.common.DateRange date_range = 2;
      Specified by:
      hasDateRange in interface KeywordPlanForecastPeriodOrBuilder
      Returns:
      Whether the dateRange field is set.
    • getDateRange

      public DateRange getDateRange()
       The custom date range used for forecasting. It cannot be greater than
       a year.
       The start and end dates must be in the future. Otherwise, an error will
       be returned when the forecasting action is performed.
       The start and end dates are inclusive.
       
      .google.ads.googleads.v18.common.DateRange date_range = 2;
      Specified by:
      getDateRange in interface KeywordPlanForecastPeriodOrBuilder
      Returns:
      The dateRange.
    • setDateRange

      public KeywordPlanForecastPeriod.Builder setDateRange(DateRange value)
       The custom date range used for forecasting. It cannot be greater than
       a year.
       The start and end dates must be in the future. Otherwise, an error will
       be returned when the forecasting action is performed.
       The start and end dates are inclusive.
       
      .google.ads.googleads.v18.common.DateRange date_range = 2;
    • setDateRange

      public KeywordPlanForecastPeriod.Builder setDateRange(DateRange.Builder builderForValue)
       The custom date range used for forecasting. It cannot be greater than
       a year.
       The start and end dates must be in the future. Otherwise, an error will
       be returned when the forecasting action is performed.
       The start and end dates are inclusive.
       
      .google.ads.googleads.v18.common.DateRange date_range = 2;
    • mergeDateRange

      public KeywordPlanForecastPeriod.Builder mergeDateRange(DateRange value)
       The custom date range used for forecasting. It cannot be greater than
       a year.
       The start and end dates must be in the future. Otherwise, an error will
       be returned when the forecasting action is performed.
       The start and end dates are inclusive.
       
      .google.ads.googleads.v18.common.DateRange date_range = 2;
    • clearDateRange

      public KeywordPlanForecastPeriod.Builder clearDateRange()
       The custom date range used for forecasting. It cannot be greater than
       a year.
       The start and end dates must be in the future. Otherwise, an error will
       be returned when the forecasting action is performed.
       The start and end dates are inclusive.
       
      .google.ads.googleads.v18.common.DateRange date_range = 2;
    • getDateRangeBuilder

      public DateRange.Builder getDateRangeBuilder()
       The custom date range used for forecasting. It cannot be greater than
       a year.
       The start and end dates must be in the future. Otherwise, an error will
       be returned when the forecasting action is performed.
       The start and end dates are inclusive.
       
      .google.ads.googleads.v18.common.DateRange date_range = 2;
    • getDateRangeOrBuilder

      public DateRangeOrBuilder getDateRangeOrBuilder()
       The custom date range used for forecasting. It cannot be greater than
       a year.
       The start and end dates must be in the future. Otherwise, an error will
       be returned when the forecasting action is performed.
       The start and end dates are inclusive.
       
      .google.ads.googleads.v18.common.DateRange date_range = 2;
      Specified by:
      getDateRangeOrBuilder in interface KeywordPlanForecastPeriodOrBuilder
    • setUnknownFields

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

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