Class BrandSentimentInsight.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BrandSentimentInsight.Builder>
com.google.ads.googleads.v25.services.BrandSentimentInsight.Builder
- All Implemented Interfaces:
BrandSentimentInsightOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BrandSentimentInsight
public static final class BrandSentimentInsight.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BrandSentimentInsight.Builder>
implements BrandSentimentInsightOrBuilder
Brand sentiment for a specific month. Measuring brand sentiment involves using AI models to analyze YouTube video content related to the brand, categorizing the sentiment as positive, negative, or neutral. Only the video content itself is analyzed; user comments are not included. The AI models are powered by Gemini and can make mistakes.Protobuf type
google.ads.googleads.v25.services.BrandSentimentInsight-
Method Summary
Modifier and TypeMethodDescriptionaddAllSentimentDistributions(Iterable<? extends SentimentInsightDistribution> values) Distribution of sentiment between positive, negative, and neutral.addAllSentimentSummaries(Iterable<? extends SentimentInsightSummary> values) A summary of what was positive and negative about content related to the brand.addSentimentDistributions(int index, SentimentInsightDistribution value) Distribution of sentiment between positive, negative, and neutral.addSentimentDistributions(int index, SentimentInsightDistribution.Builder builderForValue) Distribution of sentiment between positive, negative, and neutral.Distribution of sentiment between positive, negative, and neutral.addSentimentDistributions(SentimentInsightDistribution.Builder builderForValue) Distribution of sentiment between positive, negative, and neutral.Distribution of sentiment between positive, negative, and neutral.addSentimentDistributionsBuilder(int index) Distribution of sentiment between positive, negative, and neutral.addSentimentSummaries(int index, SentimentInsightSummary value) A summary of what was positive and negative about content related to the brand.addSentimentSummaries(int index, SentimentInsightSummary.Builder builderForValue) A summary of what was positive and negative about content related to the brand.A summary of what was positive and negative about content related to the brand.addSentimentSummaries(SentimentInsightSummary.Builder builderForValue) A summary of what was positive and negative about content related to the brand.A summary of what was positive and negative about content related to the brand.addSentimentSummariesBuilder(int index) A summary of what was positive and negative about content related to the brand.build()clear()When true, there is insufficient data to calculate the brand sentiment.The month that the brand sentiment represents in the string format "YYYY-MM".Distribution of sentiment between positive, negative, and neutral.A summary of what was positive and negative about content related to the brand.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhen true, there is insufficient data to calculate the brand sentiment.getMonth()The month that the brand sentiment represents in the string format "YYYY-MM".com.google.protobuf.ByteStringThe month that the brand sentiment represents in the string format "YYYY-MM".getSentimentDistributions(int index) Distribution of sentiment between positive, negative, and neutral.getSentimentDistributionsBuilder(int index) Distribution of sentiment between positive, negative, and neutral.Distribution of sentiment between positive, negative, and neutral.intDistribution of sentiment between positive, negative, and neutral.Distribution of sentiment between positive, negative, and neutral.getSentimentDistributionsOrBuilder(int index) Distribution of sentiment between positive, negative, and neutral.List<? extends SentimentInsightDistributionOrBuilder>Distribution of sentiment between positive, negative, and neutral.getSentimentSummaries(int index) A summary of what was positive and negative about content related to the brand.getSentimentSummariesBuilder(int index) A summary of what was positive and negative about content related to the brand.A summary of what was positive and negative about content related to the brand.intA summary of what was positive and negative about content related to the brand.A summary of what was positive and negative about content related to the brand.getSentimentSummariesOrBuilder(int index) A summary of what was positive and negative about content related to the brand.List<? extends SentimentInsightSummaryOrBuilder>A summary of what was positive and negative about content related to the brand.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(BrandSentimentInsight other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeSentimentDistributions(int index) Distribution of sentiment between positive, negative, and neutral.removeSentimentSummaries(int index) A summary of what was positive and negative about content related to the brand.setHasInsufficientData(boolean value) When true, there is insufficient data to calculate the brand sentiment.The month that the brand sentiment represents in the string format "YYYY-MM".setMonthBytes(com.google.protobuf.ByteString value) The month that the brand sentiment represents in the string format "YYYY-MM".setSentimentDistributions(int index, SentimentInsightDistribution value) Distribution of sentiment between positive, negative, and neutral.setSentimentDistributions(int index, SentimentInsightDistribution.Builder builderForValue) Distribution of sentiment between positive, negative, and neutral.setSentimentSummaries(int index, SentimentInsightSummary value) A summary of what was positive and negative about content related to the brand.setSentimentSummaries(int index, SentimentInsightSummary.Builder builderForValue) A summary of what was positive and negative about content related to the brand.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BrandSentimentInsight.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BrandSentimentInsight.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BrandSentimentInsight.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BrandSentimentInsight.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BrandSentimentInsight.Builder>
-
mergeFrom
public BrandSentimentInsight.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BrandSentimentInsight.Builder>- Throws:
IOException
-
getMonth
The month that the brand sentiment represents in the string format "YYYY-MM".
string month = 1;- Specified by:
getMonthin interfaceBrandSentimentInsightOrBuilder- Returns:
- The month.
-
getMonthBytes
public com.google.protobuf.ByteString getMonthBytes()The month that the brand sentiment represents in the string format "YYYY-MM".
string month = 1;- Specified by:
getMonthBytesin interfaceBrandSentimentInsightOrBuilder- Returns:
- The bytes for month.
-
setMonth
The month that the brand sentiment represents in the string format "YYYY-MM".
string month = 1;- Parameters:
value- The month to set.- Returns:
- This builder for chaining.
-
clearMonth
The month that the brand sentiment represents in the string format "YYYY-MM".
string month = 1;- Returns:
- This builder for chaining.
-
setMonthBytes
The month that the brand sentiment represents in the string format "YYYY-MM".
string month = 1;- Parameters:
value- The bytes for month to set.- Returns:
- This builder for chaining.
-
getHasInsufficientData
public boolean getHasInsufficientData()When true, there is insufficient data to calculate the brand sentiment.
bool has_insufficient_data = 2;- Specified by:
getHasInsufficientDatain interfaceBrandSentimentInsightOrBuilder- Returns:
- The hasInsufficientData.
-
setHasInsufficientData
When true, there is insufficient data to calculate the brand sentiment.
bool has_insufficient_data = 2;- Parameters:
value- The hasInsufficientData to set.- Returns:
- This builder for chaining.
-
clearHasInsufficientData
When true, there is insufficient data to calculate the brand sentiment.
bool has_insufficient_data = 2;- Returns:
- This builder for chaining.
-
getSentimentDistributionsList
Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3;- Specified by:
getSentimentDistributionsListin interfaceBrandSentimentInsightOrBuilder
-
getSentimentDistributionsCount
public int getSentimentDistributionsCount()Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3;- Specified by:
getSentimentDistributionsCountin interfaceBrandSentimentInsightOrBuilder
-
getSentimentDistributions
Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3;- Specified by:
getSentimentDistributionsin interfaceBrandSentimentInsightOrBuilder
-
setSentimentDistributions
public BrandSentimentInsight.Builder setSentimentDistributions(int index, SentimentInsightDistribution value) Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
setSentimentDistributions
public BrandSentimentInsight.Builder setSentimentDistributions(int index, SentimentInsightDistribution.Builder builderForValue) Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
addSentimentDistributions
Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
addSentimentDistributions
public BrandSentimentInsight.Builder addSentimentDistributions(int index, SentimentInsightDistribution value) Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
addSentimentDistributions
public BrandSentimentInsight.Builder addSentimentDistributions(SentimentInsightDistribution.Builder builderForValue) Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
addSentimentDistributions
public BrandSentimentInsight.Builder addSentimentDistributions(int index, SentimentInsightDistribution.Builder builderForValue) Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
addAllSentimentDistributions
public BrandSentimentInsight.Builder addAllSentimentDistributions(Iterable<? extends SentimentInsightDistribution> values) Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
clearSentimentDistributions
Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
removeSentimentDistributions
Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
getSentimentDistributionsBuilder
Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
getSentimentDistributionsOrBuilder
Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3;- Specified by:
getSentimentDistributionsOrBuilderin interfaceBrandSentimentInsightOrBuilder
-
getSentimentDistributionsOrBuilderList
public List<? extends SentimentInsightDistributionOrBuilder> getSentimentDistributionsOrBuilderList()Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3;- Specified by:
getSentimentDistributionsOrBuilderListin interfaceBrandSentimentInsightOrBuilder
-
addSentimentDistributionsBuilder
Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
addSentimentDistributionsBuilder
Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
getSentimentDistributionsBuilderList
Distribution of sentiment between positive, negative, and neutral.
repeated .google.ads.googleads.v25.services.SentimentInsightDistribution sentiment_distributions = 3; -
getSentimentSummariesList
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4;- Specified by:
getSentimentSummariesListin interfaceBrandSentimentInsightOrBuilder
-
getSentimentSummariesCount
public int getSentimentSummariesCount()A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4;- Specified by:
getSentimentSummariesCountin interfaceBrandSentimentInsightOrBuilder
-
getSentimentSummaries
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4;- Specified by:
getSentimentSummariesin interfaceBrandSentimentInsightOrBuilder
-
setSentimentSummaries
public BrandSentimentInsight.Builder setSentimentSummaries(int index, SentimentInsightSummary value) A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
setSentimentSummaries
public BrandSentimentInsight.Builder setSentimentSummaries(int index, SentimentInsightSummary.Builder builderForValue) A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
addSentimentSummaries
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
addSentimentSummaries
public BrandSentimentInsight.Builder addSentimentSummaries(int index, SentimentInsightSummary value) A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
addSentimentSummaries
public BrandSentimentInsight.Builder addSentimentSummaries(SentimentInsightSummary.Builder builderForValue) A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
addSentimentSummaries
public BrandSentimentInsight.Builder addSentimentSummaries(int index, SentimentInsightSummary.Builder builderForValue) A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
addAllSentimentSummaries
public BrandSentimentInsight.Builder addAllSentimentSummaries(Iterable<? extends SentimentInsightSummary> values) A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
clearSentimentSummaries
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
removeSentimentSummaries
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
getSentimentSummariesBuilder
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
getSentimentSummariesOrBuilder
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4;- Specified by:
getSentimentSummariesOrBuilderin interfaceBrandSentimentInsightOrBuilder
-
getSentimentSummariesOrBuilderList
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4;- Specified by:
getSentimentSummariesOrBuilderListin interfaceBrandSentimentInsightOrBuilder
-
addSentimentSummariesBuilder
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
addSentimentSummariesBuilder
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4; -
getSentimentSummariesBuilderList
A summary of what was positive and negative about content related to the brand. No summaries are generated for neutral sentiment. The summary is generated by AI models.
repeated .google.ads.googleads.v25.services.SentimentInsightSummary sentiment_summaries = 4;
-