Class SentimentInsightDistribution.Builder

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

public static final class SentimentInsightDistribution.Builder extends com.google.protobuf.GeneratedMessage.Builder<SentimentInsightDistribution.Builder> implements SentimentInsightDistributionOrBuilder
 The distribution of sentiment for a brand. The distribution is calculated as
 the proportion of views for videos that correspond to the brand with each
 sentiment. Example: positive sentiment share of 0.49 means that 49% of views
 about this brand were on content with positive sentiment.
 
Protobuf type google.ads.googleads.v25.services.SentimentInsightDistribution
  • 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<SentimentInsightDistribution.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<SentimentInsightDistribution.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<SentimentInsightDistribution.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SentimentInsightDistribution.Builder setSentimentValue(int value)
       The sentiment for this distribution.
       
      .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 distribution.
       
      .google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;
      Specified by:
      getSentiment in interface SentimentInsightDistributionOrBuilder
      Returns:
      The sentiment.
    • setSentiment

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

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

      public double getSentimentShare()
       The proportion (between 0 and 1) of views for videos that correspond to the
       brand with this sentiment.
       
      double sentiment_share = 2;
      Specified by:
      getSentimentShare in interface SentimentInsightDistributionOrBuilder
      Returns:
      The sentimentShare.
    • setSentimentShare

      public SentimentInsightDistribution.Builder setSentimentShare(double value)
       The proportion (between 0 and 1) of views for videos that correspond to the
       brand with this sentiment.
       
      double sentiment_share = 2;
      Parameters:
      value - The sentimentShare to set.
      Returns:
      This builder for chaining.
    • clearSentimentShare

      public SentimentInsightDistribution.Builder clearSentimentShare()
       The proportion (between 0 and 1) of views for videos that correspond to the
       brand with this sentiment.
       
      double sentiment_share = 2;
      Returns:
      This builder for chaining.