Package com.google.cloud.language.v1
Class AnalyzeEntitySentimentResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnalyzeEntitySentimentResponse.Builder>
com.google.cloud.language.v1.AnalyzeEntitySentimentResponse.Builder
- All Implemented Interfaces:
AnalyzeEntitySentimentResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnalyzeEntitySentimentResponse
public static final class AnalyzeEntitySentimentResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnalyzeEntitySentimentResponse.Builder>
implements AnalyzeEntitySentimentResponseOrBuilder
The entity-level sentiment analysis response message.Protobuf type
google.cloud.language.v1.AnalyzeEntitySentimentResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllEntities(Iterable<? extends Entity> values) The recognized entities in the input document with associated sentiments.addEntities(int index, Entity value) The recognized entities in the input document with associated sentiments.addEntities(int index, Entity.Builder builderForValue) The recognized entities in the input document with associated sentiments.addEntities(Entity value) The recognized entities in the input document with associated sentiments.addEntities(Entity.Builder builderForValue) The recognized entities in the input document with associated sentiments.The recognized entities in the input document with associated sentiments.addEntitiesBuilder(int index) The recognized entities in the input document with associated sentiments.build()clear()The recognized entities in the input document with associated sentiments.The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEntities(int index) The recognized entities in the input document with associated sentiments.getEntitiesBuilder(int index) The recognized entities in the input document with associated sentiments.The recognized entities in the input document with associated sentiments.intThe recognized entities in the input document with associated sentiments.The recognized entities in the input document with associated sentiments.getEntitiesOrBuilder(int index) The recognized entities in the input document with associated sentiments.List<? extends EntityOrBuilder>The recognized entities in the input document with associated sentiments.The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.com.google.protobuf.ByteStringThe language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeEntities(int index) The recognized entities in the input document with associated sentiments.setEntities(int index, Entity value) The recognized entities in the input document with associated sentiments.setEntities(int index, Entity.Builder builderForValue) The recognized entities in the input document with associated sentiments.setLanguage(String value) The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.setLanguageBytes(com.google.protobuf.ByteString value) The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.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<AnalyzeEntitySentimentResponse.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<AnalyzeEntitySentimentResponse.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<AnalyzeEntitySentimentResponse.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<AnalyzeEntitySentimentResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnalyzeEntitySentimentResponse.Builder>
-
mergeFrom
public AnalyzeEntitySentimentResponse.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<AnalyzeEntitySentimentResponse.Builder>- Throws:
IOException
-
getEntitiesList
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;- Specified by:
getEntitiesListin interfaceAnalyzeEntitySentimentResponseOrBuilder
-
getEntitiesCount
public int getEntitiesCount()The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;- Specified by:
getEntitiesCountin interfaceAnalyzeEntitySentimentResponseOrBuilder
-
getEntities
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;- Specified by:
getEntitiesin interfaceAnalyzeEntitySentimentResponseOrBuilder
-
setEntities
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
setEntities
public AnalyzeEntitySentimentResponse.Builder setEntities(int index, Entity.Builder builderForValue) The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
addEntities
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
addEntities
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
addEntities
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
addEntities
public AnalyzeEntitySentimentResponse.Builder addEntities(int index, Entity.Builder builderForValue) The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
addAllEntities
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
clearEntities
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
removeEntities
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
getEntitiesBuilder
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
getEntitiesOrBuilder
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;- Specified by:
getEntitiesOrBuilderin interfaceAnalyzeEntitySentimentResponseOrBuilder
-
getEntitiesOrBuilderList
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1;- Specified by:
getEntitiesOrBuilderListin interfaceAnalyzeEntitySentimentResponseOrBuilder
-
addEntitiesBuilder
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
addEntitiesBuilder
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
getEntitiesBuilderList
The recognized entities in the input document with associated sentiments.
repeated .google.cloud.language.v1.Entity entities = 1; -
getLanguage
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 2;- Specified by:
getLanguagein interfaceAnalyzeEntitySentimentResponseOrBuilder- Returns:
- The language.
-
getLanguageBytes
public com.google.protobuf.ByteString getLanguageBytes()The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 2;- Specified by:
getLanguageBytesin interfaceAnalyzeEntitySentimentResponseOrBuilder- Returns:
- The bytes for language.
-
setLanguage
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 2;- Parameters:
value- The language to set.- Returns:
- This builder for chaining.
-
clearLanguage
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 2;- Returns:
- This builder for chaining.
-
setLanguageBytes
public AnalyzeEntitySentimentResponse.Builder setLanguageBytes(com.google.protobuf.ByteString value) The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][google.cloud.language.v1.Document.language] field for more details.
string language = 2;- Parameters:
value- The bytes for language to set.- Returns:
- This builder for chaining.
-