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 Summary
Modifier and TypeMethodDescriptionaddAllSampleVideos(Iterable<? extends AudienceInsightsAttributeMetadata> values) Sample videos that correspond to the sentiment.addSampleVideos(int index, AudienceInsightsAttributeMetadata value) Sample videos that correspond to the sentiment.addSampleVideos(int index, AudienceInsightsAttributeMetadata.Builder builderForValue) Sample videos that correspond to the sentiment.Sample videos that correspond to the sentiment.addSampleVideos(AudienceInsightsAttributeMetadata.Builder builderForValue) Sample videos that correspond to the sentiment.Sample videos that correspond to the sentiment.addSampleVideosBuilder(int index) Sample videos that correspond to the sentiment.build()clear()Sample videos that correspond to the sentiment.The sentiment for this summary.A summary of what was positive or negative about content related to the brand.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSampleVideos(int index) Sample videos that correspond to the sentiment.getSampleVideosBuilder(int index) Sample videos that correspond to the sentiment.Sample videos that correspond to the sentiment.intSample videos that correspond to the sentiment.Sample videos that correspond to the sentiment.getSampleVideosOrBuilder(int index) Sample videos that correspond to the sentiment.List<? extends AudienceInsightsAttributeMetadataOrBuilder>Sample videos that correspond to the sentiment.The sentiment for this summary.intThe sentiment for this summary.A summary of what was positive or negative about content related to the brand.com.google.protobuf.ByteStringA summary of what was positive or negative about content related to the brand.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SentimentInsightSummary other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeSampleVideos(int index) Sample videos that correspond to the sentiment.setSampleVideos(int index, AudienceInsightsAttributeMetadata value) Sample videos that correspond to the sentiment.setSampleVideos(int index, AudienceInsightsAttributeMetadata.Builder builderForValue) Sample videos that correspond to the sentiment.The sentiment for this summary.setSentimentValue(int value) The sentiment for this summary.setSummary(String value) A summary of what was positive or negative about content related to the brand.setSummaryBytes(com.google.protobuf.ByteString value) A summary of what was positive or 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<SentimentInsightSummary.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<SentimentInsightSummary.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<SentimentInsightSummary.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<SentimentInsightSummary.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getSentimentValuein interfaceSentimentInsightSummaryOrBuilder- Returns:
- The enum numeric value on the wire for sentiment.
-
setSentimentValue
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
The sentiment for this summary.
.google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;- Specified by:
getSentimentin interfaceSentimentInsightSummaryOrBuilder- 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
The sentiment for this summary.
.google.ads.googleads.v25.enums.SentimentEnum.Sentiment sentiment = 1;- Returns:
- This builder for chaining.
-
getSummary
A summary of what was positive or negative about content related to the brand.
string summary = 2;- Specified by:
getSummaryin interfaceSentimentInsightSummaryOrBuilder- 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:
getSummaryBytesin interfaceSentimentInsightSummaryOrBuilder- Returns:
- The bytes for summary.
-
setSummary
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
A summary of what was positive or negative about content related to the brand.
string summary = 2;- Returns:
- This builder for chaining.
-
setSummaryBytes
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
Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;- Specified by:
getSampleVideosListin interfaceSentimentInsightSummaryOrBuilder
-
getSampleVideosCount
public int getSampleVideosCount()Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;- Specified by:
getSampleVideosCountin interfaceSentimentInsightSummaryOrBuilder
-
getSampleVideos
Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;- Specified by:
getSampleVideosin interfaceSentimentInsightSummaryOrBuilder
-
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
public SentimentInsightSummary.Builder addSampleVideos(AudienceInsightsAttributeMetadata.Builder builderForValue) 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
Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3; -
removeSampleVideos
Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3; -
getSampleVideosBuilder
Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3; -
getSampleVideosOrBuilder
Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;- Specified by:
getSampleVideosOrBuilderin interfaceSentimentInsightSummaryOrBuilder
-
getSampleVideosOrBuilderList
Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;- Specified by:
getSampleVideosOrBuilderListin interfaceSentimentInsightSummaryOrBuilder
-
addSampleVideosBuilder
Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3; -
addSampleVideosBuilder
Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3; -
getSampleVideosBuilderList
Sample videos that correspond to the sentiment.
repeated .google.ads.googleads.v25.common.AudienceInsightsAttributeMetadata sample_videos = 3;
-