Class SentimentInsightSummary.Builder

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

public static final class SentimentInsightSummary.Builder extends com.google.protobuf.GeneratedMessage.Builder<SentimentInsightSummary.Builder> implements SentimentInsightSummaryOrBuilder
 A summary of the sentiment for content related to a brand. Summaries are only
 generated for positive and negative sentiment, not neutral. The summary is
 generated by AI models.
 
Protobuf type google.ads.googleads.v25.services.SentimentInsightSummary
  • 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<SentimentInsightSummary.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<SentimentInsightSummary.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<SentimentInsightSummary.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SentimentInsightSummary.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<SentimentInsightSummary.Builder>
      Throws:
      IOException
    • getSentimentValue

      public int getSentimentValue()
       The sentiment for this summary.
       
      .google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;
      Specified by:
      getSentimentValue in interface SentimentInsightSummaryOrBuilder
      Returns:
      The enum numeric value on the wire for sentiment.
    • setSentimentValue

      public SentimentInsightSummary.Builder setSentimentValue(int value)
       The sentiment for this summary.
       
      .google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;
      Parameters:
      value - The enum numeric value on the wire for sentiment to set.
      Returns:
      This builder for chaining.
    • getSentiment

      public SentimentEnum.Sentiment getSentiment()
       The sentiment for this summary.
       
      .google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;
      Specified by:
      getSentiment in interface SentimentInsightSummaryOrBuilder
      Returns:
      The sentiment.
    • setSentiment

       The sentiment for this summary.
       
      .google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;
      Parameters:
      value - The sentiment to set.
      Returns:
      This builder for chaining.
    • clearSentiment

      public SentimentInsightSummary.Builder clearSentiment()
       The sentiment for this summary.
       
      .google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;
      Returns:
      This builder for chaining.
    • getSummary

      public String getSummary()
       A summary of what was positive or negative about content related to the
       brand.
       
      string summary = 2;
      Specified by:
      getSummary in interface SentimentInsightSummaryOrBuilder
      Returns:
      The summary.
    • getSummaryBytes

      public com.google.protobuf.ByteString getSummaryBytes()
       A summary of what was positive or negative about content related to the
       brand.
       
      string summary = 2;
      Specified by:
      getSummaryBytes in interface SentimentInsightSummaryOrBuilder
      Returns:
      The bytes for summary.
    • setSummary

      public SentimentInsightSummary.Builder setSummary(String value)
       A summary of what was positive or negative about content related to the
       brand.
       
      string summary = 2;
      Parameters:
      value - The summary to set.
      Returns:
      This builder for chaining.
    • clearSummary

      public SentimentInsightSummary.Builder clearSummary()
       A summary of what was positive or negative about content related to the
       brand.
       
      string summary = 2;
      Returns:
      This builder for chaining.
    • setSummaryBytes

      public SentimentInsightSummary.Builder setSummaryBytes(com.google.protobuf.ByteString value)
       A summary of what was positive or negative about content related to the
       brand.
       
      string summary = 2;
      Parameters:
      value - The bytes for summary to set.
      Returns:
      This builder for chaining.
    • getSampleVideosList

      public List<AudienceInsightsAttributeMetadata> getSampleVideosList()
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
      Specified by:
      getSampleVideosList in interface SentimentInsightSummaryOrBuilder
    • getSampleVideosCount

      public int getSampleVideosCount()
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
      Specified by:
      getSampleVideosCount in interface SentimentInsightSummaryOrBuilder
    • getSampleVideos

      public AudienceInsightsAttributeMetadata getSampleVideos(int index)
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
      Specified by:
      getSampleVideos in interface SentimentInsightSummaryOrBuilder
    • setSampleVideos

      public SentimentInsightSummary.Builder setSampleVideos(int index, AudienceInsightsAttributeMetadata value)
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • setSampleVideos

      public SentimentInsightSummary.Builder setSampleVideos(int index, AudienceInsightsAttributeMetadata.Builder builderForValue)
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • addSampleVideos

       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • addSampleVideos

      public SentimentInsightSummary.Builder addSampleVideos(int index, AudienceInsightsAttributeMetadata value)
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • addSampleVideos

       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • addSampleVideos

      public SentimentInsightSummary.Builder addSampleVideos(int index, AudienceInsightsAttributeMetadata.Builder builderForValue)
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • addAllSampleVideos

      public SentimentInsightSummary.Builder addAllSampleVideos(Iterable<? extends AudienceInsightsAttributeMetadata> values)
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • clearSampleVideos

      public SentimentInsightSummary.Builder clearSampleVideos()
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • removeSampleVideos

      public SentimentInsightSummary.Builder removeSampleVideos(int index)
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • getSampleVideosBuilder

      public AudienceInsightsAttributeMetadata.Builder getSampleVideosBuilder(int index)
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • getSampleVideosOrBuilder

      public AudienceInsightsAttributeMetadataOrBuilder getSampleVideosOrBuilder(int index)
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
      Specified by:
      getSampleVideosOrBuilder in interface SentimentInsightSummaryOrBuilder
    • getSampleVideosOrBuilderList

      public List<? extends AudienceInsightsAttributeMetadataOrBuilder> getSampleVideosOrBuilderList()
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
      Specified by:
      getSampleVideosOrBuilderList in interface SentimentInsightSummaryOrBuilder
    • addSampleVideosBuilder

      public AudienceInsightsAttributeMetadata.Builder addSampleVideosBuilder()
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • addSampleVideosBuilder

      public AudienceInsightsAttributeMetadata.Builder addSampleVideosBuilder(int index)
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
    • getSampleVideosBuilderList

      public List<AudienceInsightsAttributeMetadata.Builder> getSampleVideosBuilderList()
       Sample videos that correspond to the sentiment.
       
      repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;