public static final class AnalyzeEntitiesResponse.Builder extends GeneratedMessageV3.Builder<AnalyzeEntitiesResponse.Builder> implements AnalyzeEntitiesResponseOrBuilder
The entity analysis response message.
Protobuf type google.cloud.language.v1.AnalyzeEntitiesResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllEntities(Iterable<? extends Entity> values)
public AnalyzeEntitiesResponse.Builder addAllEntities(Iterable<? extends Entity> values)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.language.v1.Entity>
|
Returns
addEntities(Entity value)
public AnalyzeEntitiesResponse.Builder addEntities(Entity value)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter
Returns
addEntities(Entity.Builder builderForValue)
public AnalyzeEntitiesResponse.Builder addEntities(Entity.Builder builderForValue)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter
Returns
addEntities(int index, Entity value)
public AnalyzeEntitiesResponse.Builder addEntities(int index, Entity value)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameters
Returns
addEntities(int index, Entity.Builder builderForValue)
public AnalyzeEntitiesResponse.Builder addEntities(int index, Entity.Builder builderForValue)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameters
Returns
addEntitiesBuilder()
public Entity.Builder addEntitiesBuilder()
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Returns
addEntitiesBuilder(int index)
public Entity.Builder addEntitiesBuilder(int index)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnalyzeEntitiesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AnalyzeEntitiesResponse build()
Returns
buildPartial()
public AnalyzeEntitiesResponse buildPartial()
Returns
clear()
public AnalyzeEntitiesResponse.Builder clear()
Returns
Overrides
clearEntities()
public AnalyzeEntitiesResponse.Builder clearEntities()
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public AnalyzeEntitiesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLanguage()
public AnalyzeEntitiesResponse.Builder 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 field for more details.
string language = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AnalyzeEntitiesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AnalyzeEntitiesResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AnalyzeEntitiesResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEntities(int index)
public Entity getEntities(int index)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter
Returns
getEntitiesBuilder(int index)
public Entity.Builder getEntitiesBuilder(int index)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter
Returns
getEntitiesBuilderList()
public List<Entity.Builder> getEntitiesBuilderList()
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Returns
getEntitiesCount()
public int getEntitiesCount()
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Returns
getEntitiesList()
public List<Entity> getEntitiesList()
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Returns
getEntitiesOrBuilder(int index)
public EntityOrBuilder getEntitiesOrBuilder(int index)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter
Returns
getEntitiesOrBuilderList()
public List<? extends EntityOrBuilder> getEntitiesOrBuilderList()
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Returns
Type | Description |
List<? extends com.google.cloud.language.v1.EntityOrBuilder> | |
getLanguage()
public String 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 field for more details.
string language = 2;
Returns
Type | Description |
String | The language.
|
getLanguageBytes()
public 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 field for more details.
string language = 2;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AnalyzeEntitiesResponse other)
public AnalyzeEntitiesResponse.Builder mergeFrom(AnalyzeEntitiesResponse other)
Parameter
Returns
public AnalyzeEntitiesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AnalyzeEntitiesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeEntitiesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeEntities(int index)
public AnalyzeEntitiesResponse.Builder removeEntities(int index)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameter
Returns
setEntities(int index, Entity value)
public AnalyzeEntitiesResponse.Builder setEntities(int index, Entity value)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameters
Returns
setEntities(int index, Entity.Builder builderForValue)
public AnalyzeEntitiesResponse.Builder setEntities(int index, Entity.Builder builderForValue)
The recognized entities in the input document.
repeated .google.cloud.language.v1.Entity entities = 1;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AnalyzeEntitiesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setLanguage(String value)
public AnalyzeEntitiesResponse.Builder 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.
See Document.language field for more details.
string language = 2;
Parameter
Name | Description |
value | String
The language to set.
|
Returns
setLanguageBytes(ByteString value)
public AnalyzeEntitiesResponse.Builder setLanguageBytes(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 field for more details.
string language = 2;
Parameter
Name | Description |
value | ByteString
The bytes for language to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnalyzeEntitiesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeEntitiesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides