Package com.google.cloud.language.v1
Class AnalyzeEntitiesResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnalyzeEntitiesResponse.Builder>
com.google.cloud.language.v1.AnalyzeEntitiesResponse.Builder
- All Implemented Interfaces:
AnalyzeEntitiesResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnalyzeEntitiesResponse
public static final class AnalyzeEntitiesResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnalyzeEntitiesResponse.Builder>
implements AnalyzeEntitiesResponseOrBuilder
The entity analysis response message.Protobuf type
google.cloud.language.v1.AnalyzeEntitiesResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllEntities(Iterable<? extends Entity> values) The recognized entities in the input document.addEntities(int index, Entity value) The recognized entities in the input document.addEntities(int index, Entity.Builder builderForValue) The recognized entities in the input document.addEntities(Entity value) The recognized entities in the input document.addEntities(Entity.Builder builderForValue) The recognized entities in the input document.The recognized entities in the input document.addEntitiesBuilder(int index) The recognized entities in the input document.build()clear()The recognized entities in the input document.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.getEntitiesBuilder(int index) The recognized entities in the input document.The recognized entities in the input document.intThe recognized entities in the input document.The recognized entities in the input document.getEntitiesOrBuilder(int index) The recognized entities in the input document.List<? extends EntityOrBuilder>The recognized entities in the input document.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(AnalyzeEntitiesResponse other) mergeFrom(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.setEntities(int index, Entity value) The recognized entities in the input document.setEntities(int index, Entity.Builder builderForValue) The recognized entities in the input document.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<AnalyzeEntitiesResponse.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<AnalyzeEntitiesResponse.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<AnalyzeEntitiesResponse.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<AnalyzeEntitiesResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnalyzeEntitiesResponse.Builder>
-
mergeFrom
public AnalyzeEntitiesResponse.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<AnalyzeEntitiesResponse.Builder>- Throws:
IOException
-
getEntitiesList
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;- Specified by:
getEntitiesListin interfaceAnalyzeEntitiesResponseOrBuilder
-
getEntitiesCount
public int getEntitiesCount()The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;- Specified by:
getEntitiesCountin interfaceAnalyzeEntitiesResponseOrBuilder
-
getEntities
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;- Specified by:
getEntitiesin interfaceAnalyzeEntitiesResponseOrBuilder
-
setEntities
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
setEntities
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
addEntities
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
addEntities
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
addEntities
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
addEntities
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
addAllEntities
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
clearEntities
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
removeEntities
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
getEntitiesBuilder
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
getEntitiesOrBuilder
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;- Specified by:
getEntitiesOrBuilderin interfaceAnalyzeEntitiesResponseOrBuilder
-
getEntitiesOrBuilderList
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;- Specified by:
getEntitiesOrBuilderListin interfaceAnalyzeEntitiesResponseOrBuilder
-
addEntitiesBuilder
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
addEntitiesBuilder
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1; -
getEntitiesBuilderList
The recognized entities in the input document.
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 interfaceAnalyzeEntitiesResponseOrBuilder- 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 interfaceAnalyzeEntitiesResponseOrBuilder- 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
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.
-