Class TrendInsightDataPoint.Builder

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

public static final class TrendInsightDataPoint.Builder extends com.google.protobuf.GeneratedMessage.Builder<TrendInsightDataPoint.Builder> implements TrendInsightDataPointOrBuilder
 Trend data for a specific month.
 
Protobuf type google.ads.googleads.v23.services.TrendInsightDataPoint
  • 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<TrendInsightDataPoint.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<TrendInsightDataPoint.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<TrendInsightDataPoint.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public TrendInsightDataPoint.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<TrendInsightDataPoint.Builder>
      Throws:
      IOException
    • getMonth

      public String getMonth()
       The month that the trend data point represents in the string format
       "YYYY-MM".
       
      string month = 1;
      Specified by:
      getMonth in interface TrendInsightDataPointOrBuilder
      Returns:
      The month.
    • getMonthBytes

      public com.google.protobuf.ByteString getMonthBytes()
       The month that the trend data point represents in the string format
       "YYYY-MM".
       
      string month = 1;
      Specified by:
      getMonthBytes in interface TrendInsightDataPointOrBuilder
      Returns:
      The bytes for month.
    • setMonth

      public TrendInsightDataPoint.Builder setMonth(String value)
       The month that the trend data point represents in the string format
       "YYYY-MM".
       
      string month = 1;
      Parameters:
      value - The month to set.
      Returns:
      This builder for chaining.
    • clearMonth

      public TrendInsightDataPoint.Builder clearMonth()
       The month that the trend data point represents in the string format
       "YYYY-MM".
       
      string month = 1;
      Returns:
      This builder for chaining.
    • setMonthBytes

      public TrendInsightDataPoint.Builder setMonthBytes(com.google.protobuf.ByteString value)
       The month that the trend data point represents in the string format
       "YYYY-MM".
       
      string month = 1;
      Parameters:
      value - The bytes for month to set.
      Returns:
      This builder for chaining.
    • hasTrendMetrics

      public boolean hasTrendMetrics()
       Metrics associated with this trend and month. The comparison period for
       these metrics is 1 month.
       
      .google.ads.googleads.v23.services.TrendInsightMetrics trend_metrics = 2;
      Specified by:
      hasTrendMetrics in interface TrendInsightDataPointOrBuilder
      Returns:
      Whether the trendMetrics field is set.
    • getTrendMetrics

      public TrendInsightMetrics getTrendMetrics()
       Metrics associated with this trend and month. The comparison period for
       these metrics is 1 month.
       
      .google.ads.googleads.v23.services.TrendInsightMetrics trend_metrics = 2;
      Specified by:
      getTrendMetrics in interface TrendInsightDataPointOrBuilder
      Returns:
      The trendMetrics.
    • setTrendMetrics

      public TrendInsightDataPoint.Builder setTrendMetrics(TrendInsightMetrics value)
       Metrics associated with this trend and month. The comparison period for
       these metrics is 1 month.
       
      .google.ads.googleads.v23.services.TrendInsightMetrics trend_metrics = 2;
    • setTrendMetrics

      public TrendInsightDataPoint.Builder setTrendMetrics(TrendInsightMetrics.Builder builderForValue)
       Metrics associated with this trend and month. The comparison period for
       these metrics is 1 month.
       
      .google.ads.googleads.v23.services.TrendInsightMetrics trend_metrics = 2;
    • mergeTrendMetrics

      public TrendInsightDataPoint.Builder mergeTrendMetrics(TrendInsightMetrics value)
       Metrics associated with this trend and month. The comparison period for
       these metrics is 1 month.
       
      .google.ads.googleads.v23.services.TrendInsightMetrics trend_metrics = 2;
    • clearTrendMetrics

      public TrendInsightDataPoint.Builder clearTrendMetrics()
       Metrics associated with this trend and month. The comparison period for
       these metrics is 1 month.
       
      .google.ads.googleads.v23.services.TrendInsightMetrics trend_metrics = 2;
    • getTrendMetricsBuilder

      public TrendInsightMetrics.Builder getTrendMetricsBuilder()
       Metrics associated with this trend and month. The comparison period for
       these metrics is 1 month.
       
      .google.ads.googleads.v23.services.TrendInsightMetrics trend_metrics = 2;
    • getTrendMetricsOrBuilder

      public TrendInsightMetricsOrBuilder getTrendMetricsOrBuilder()
       Metrics associated with this trend and month. The comparison period for
       these metrics is 1 month.
       
      .google.ads.googleads.v23.services.TrendInsightMetrics trend_metrics = 2;
      Specified by:
      getTrendMetricsOrBuilder in interface TrendInsightDataPointOrBuilder