Class TrendInsight.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TrendInsight.Builder>
com.google.ads.googleads.v22.services.TrendInsight.Builder
All Implemented Interfaces:
TrendInsightOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TrendInsight

public static final class TrendInsight.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TrendInsight.Builder> implements TrendInsightOrBuilder
 A trend insight for a given attribute.
 
Protobuf type google.ads.googleads.v22.services.TrendInsight
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TrendInsight.Builder>
    • clear

      public TrendInsight.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<TrendInsight.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<TrendInsight.Builder>
    • getDefaultInstanceForType

      public TrendInsight getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

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

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

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

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

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

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

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

      public TrendInsight.Builder mergeFrom(TrendInsight other)
    • isInitialized

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

      public TrendInsight.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<TrendInsight.Builder>
      Throws:
      IOException
    • hasTrendAttribute

      public boolean hasTrendAttribute()
       The attribute this trend is for.
       
      .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata trend_attribute = 1;
      Specified by:
      hasTrendAttribute in interface TrendInsightOrBuilder
      Returns:
      Whether the trendAttribute field is set.
    • getTrendAttribute

      public AudienceInsightsAttributeMetadata getTrendAttribute()
       The attribute this trend is for.
       
      .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata trend_attribute = 1;
      Specified by:
      getTrendAttribute in interface TrendInsightOrBuilder
      Returns:
      The trendAttribute.
    • setTrendAttribute

      public TrendInsight.Builder setTrendAttribute(AudienceInsightsAttributeMetadata value)
       The attribute this trend is for.
       
      .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata trend_attribute = 1;
    • setTrendAttribute

      public TrendInsight.Builder setTrendAttribute(AudienceInsightsAttributeMetadata.Builder builderForValue)
       The attribute this trend is for.
       
      .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata trend_attribute = 1;
    • mergeTrendAttribute

      public TrendInsight.Builder mergeTrendAttribute(AudienceInsightsAttributeMetadata value)
       The attribute this trend is for.
       
      .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata trend_attribute = 1;
    • clearTrendAttribute

      public TrendInsight.Builder clearTrendAttribute()
       The attribute this trend is for.
       
      .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata trend_attribute = 1;
    • getTrendAttributeBuilder

      public AudienceInsightsAttributeMetadata.Builder getTrendAttributeBuilder()
       The attribute this trend is for.
       
      .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata trend_attribute = 1;
    • getTrendAttributeOrBuilder

      public AudienceInsightsAttributeMetadataOrBuilder getTrendAttributeOrBuilder()
       The attribute this trend is for.
       
      .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata trend_attribute = 1;
      Specified by:
      getTrendAttributeOrBuilder in interface TrendInsightOrBuilder
    • hasTrendMetrics

      public boolean hasTrendMetrics()
       Metrics associated with this trend.
       
      .google.ads.googleads.v22.services.TrendInsightMetrics trend_metrics = 2;
      Specified by:
      hasTrendMetrics in interface TrendInsightOrBuilder
      Returns:
      Whether the trendMetrics field is set.
    • getTrendMetrics

      public TrendInsightMetrics getTrendMetrics()
       Metrics associated with this trend.
       
      .google.ads.googleads.v22.services.TrendInsightMetrics trend_metrics = 2;
      Specified by:
      getTrendMetrics in interface TrendInsightOrBuilder
      Returns:
      The trendMetrics.
    • setTrendMetrics

      public TrendInsight.Builder setTrendMetrics(TrendInsightMetrics value)
       Metrics associated with this trend.
       
      .google.ads.googleads.v22.services.TrendInsightMetrics trend_metrics = 2;
    • setTrendMetrics

      public TrendInsight.Builder setTrendMetrics(TrendInsightMetrics.Builder builderForValue)
       Metrics associated with this trend.
       
      .google.ads.googleads.v22.services.TrendInsightMetrics trend_metrics = 2;
    • mergeTrendMetrics

      public TrendInsight.Builder mergeTrendMetrics(TrendInsightMetrics value)
       Metrics associated with this trend.
       
      .google.ads.googleads.v22.services.TrendInsightMetrics trend_metrics = 2;
    • clearTrendMetrics

      public TrendInsight.Builder clearTrendMetrics()
       Metrics associated with this trend.
       
      .google.ads.googleads.v22.services.TrendInsightMetrics trend_metrics = 2;
    • getTrendMetricsBuilder

      public TrendInsightMetrics.Builder getTrendMetricsBuilder()
       Metrics associated with this trend.
       
      .google.ads.googleads.v22.services.TrendInsightMetrics trend_metrics = 2;
    • getTrendMetricsOrBuilder

      public TrendInsightMetricsOrBuilder getTrendMetricsOrBuilder()
       Metrics associated with this trend.
       
      .google.ads.googleads.v22.services.TrendInsightMetrics trend_metrics = 2;
      Specified by:
      getTrendMetricsOrBuilder in interface TrendInsightOrBuilder
    • getTrendValue

      public int getTrendValue()
       The direction of trend (such as RISING or DECLINING).
       
      .google.ads.googleads.v22.enums.InsightsTrendEnum.InsightsTrend trend = 3;
      Specified by:
      getTrendValue in interface TrendInsightOrBuilder
      Returns:
      The enum numeric value on the wire for trend.
    • setTrendValue

      public TrendInsight.Builder setTrendValue(int value)
       The direction of trend (such as RISING or DECLINING).
       
      .google.ads.googleads.v22.enums.InsightsTrendEnum.InsightsTrend trend = 3;
      Parameters:
      value - The enum numeric value on the wire for trend to set.
      Returns:
      This builder for chaining.
    • getTrend

       The direction of trend (such as RISING or DECLINING).
       
      .google.ads.googleads.v22.enums.InsightsTrendEnum.InsightsTrend trend = 3;
      Specified by:
      getTrend in interface TrendInsightOrBuilder
      Returns:
      The trend.
    • setTrend

       The direction of trend (such as RISING or DECLINING).
       
      .google.ads.googleads.v22.enums.InsightsTrendEnum.InsightsTrend trend = 3;
      Parameters:
      value - The trend to set.
      Returns:
      This builder for chaining.
    • clearTrend

      public TrendInsight.Builder clearTrend()
       The direction of trend (such as RISING or DECLINING).
       
      .google.ads.googleads.v22.enums.InsightsTrendEnum.InsightsTrend trend = 3;
      Returns:
      This builder for chaining.
    • getRelatedVideosList

      public List<AudienceInsightsAttributeMetadata> getRelatedVideosList()
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
      Specified by:
      getRelatedVideosList in interface TrendInsightOrBuilder
    • getRelatedVideosCount

      public int getRelatedVideosCount()
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
      Specified by:
      getRelatedVideosCount in interface TrendInsightOrBuilder
    • getRelatedVideos

      public AudienceInsightsAttributeMetadata getRelatedVideos(int index)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
      Specified by:
      getRelatedVideos in interface TrendInsightOrBuilder
    • setRelatedVideos

      public TrendInsight.Builder setRelatedVideos(int index, AudienceInsightsAttributeMetadata value)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • setRelatedVideos

      public TrendInsight.Builder setRelatedVideos(int index, AudienceInsightsAttributeMetadata.Builder builderForValue)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • addRelatedVideos

       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • addRelatedVideos

      public TrendInsight.Builder addRelatedVideos(int index, AudienceInsightsAttributeMetadata value)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • addRelatedVideos

      public TrendInsight.Builder addRelatedVideos(AudienceInsightsAttributeMetadata.Builder builderForValue)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • addRelatedVideos

      public TrendInsight.Builder addRelatedVideos(int index, AudienceInsightsAttributeMetadata.Builder builderForValue)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • addAllRelatedVideos

      public TrendInsight.Builder addAllRelatedVideos(Iterable<? extends AudienceInsightsAttributeMetadata> values)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • clearRelatedVideos

      public TrendInsight.Builder clearRelatedVideos()
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • removeRelatedVideos

      public TrendInsight.Builder removeRelatedVideos(int index)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • getRelatedVideosBuilder

      public AudienceInsightsAttributeMetadata.Builder getRelatedVideosBuilder(int index)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • getRelatedVideosOrBuilder

      public AudienceInsightsAttributeMetadataOrBuilder getRelatedVideosOrBuilder(int index)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
      Specified by:
      getRelatedVideosOrBuilder in interface TrendInsightOrBuilder
    • getRelatedVideosOrBuilderList

      public List<? extends AudienceInsightsAttributeMetadataOrBuilder> getRelatedVideosOrBuilderList()
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
      Specified by:
      getRelatedVideosOrBuilderList in interface TrendInsightOrBuilder
    • addRelatedVideosBuilder

      public AudienceInsightsAttributeMetadata.Builder addRelatedVideosBuilder()
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • addRelatedVideosBuilder

      public AudienceInsightsAttributeMetadata.Builder addRelatedVideosBuilder(int index)
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • getRelatedVideosBuilderList

      public List<AudienceInsightsAttributeMetadata.Builder> getRelatedVideosBuilderList()
       Related videos for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.common.AudienceInsightsAttributeMetadata related_videos = 4;
    • getRelatedCreatorsList

      public List<YouTubeCreatorInsights> getRelatedCreatorsList()
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
      Specified by:
      getRelatedCreatorsList in interface TrendInsightOrBuilder
    • getRelatedCreatorsCount

      public int getRelatedCreatorsCount()
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
      Specified by:
      getRelatedCreatorsCount in interface TrendInsightOrBuilder
    • getRelatedCreators

      public YouTubeCreatorInsights getRelatedCreators(int index)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
      Specified by:
      getRelatedCreators in interface TrendInsightOrBuilder
    • setRelatedCreators

      public TrendInsight.Builder setRelatedCreators(int index, YouTubeCreatorInsights value)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • setRelatedCreators

      public TrendInsight.Builder setRelatedCreators(int index, YouTubeCreatorInsights.Builder builderForValue)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • addRelatedCreators

      public TrendInsight.Builder addRelatedCreators(YouTubeCreatorInsights value)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • addRelatedCreators

      public TrendInsight.Builder addRelatedCreators(int index, YouTubeCreatorInsights value)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • addRelatedCreators

      public TrendInsight.Builder addRelatedCreators(YouTubeCreatorInsights.Builder builderForValue)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • addRelatedCreators

      public TrendInsight.Builder addRelatedCreators(int index, YouTubeCreatorInsights.Builder builderForValue)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • addAllRelatedCreators

      public TrendInsight.Builder addAllRelatedCreators(Iterable<? extends YouTubeCreatorInsights> values)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • clearRelatedCreators

      public TrendInsight.Builder clearRelatedCreators()
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • removeRelatedCreators

      public TrendInsight.Builder removeRelatedCreators(int index)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • getRelatedCreatorsBuilder

      public YouTubeCreatorInsights.Builder getRelatedCreatorsBuilder(int index)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • getRelatedCreatorsOrBuilder

      public YouTubeCreatorInsightsOrBuilder getRelatedCreatorsOrBuilder(int index)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
      Specified by:
      getRelatedCreatorsOrBuilder in interface TrendInsightOrBuilder
    • getRelatedCreatorsOrBuilderList

      public List<? extends YouTubeCreatorInsightsOrBuilder> getRelatedCreatorsOrBuilderList()
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
      Specified by:
      getRelatedCreatorsOrBuilderList in interface TrendInsightOrBuilder
    • addRelatedCreatorsBuilder

      public YouTubeCreatorInsights.Builder addRelatedCreatorsBuilder()
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • addRelatedCreatorsBuilder

      public YouTubeCreatorInsights.Builder addRelatedCreatorsBuilder(int index)
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • getRelatedCreatorsBuilderList

      public List<YouTubeCreatorInsights.Builder> getRelatedCreatorsBuilderList()
       Related creators for this topic. Only populated for trends using
       search_topics.
       
      repeated .google.ads.googleads.v22.services.YouTubeCreatorInsights related_creators = 5;
    • setUnknownFields

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

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