public static final class AnalyzeEntitiesResponse.Builder extends GeneratedMessageV3.Builder<AnalyzeEntitiesResponse.Builder> implements AnalyzeEntitiesResponseOrBuilder
The entity analysis response message.
Protobuf type google.cloud.language.v2.AnalyzeEntitiesResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
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.v2.Entity entities = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.language.v2.Entity>
|
addEntities(Entity value)
public AnalyzeEntitiesResponse.Builder addEntities(Entity value)
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
Parameter |
Name |
Description |
value |
Entity
|
addEntities(Entity.Builder builderForValue)
public AnalyzeEntitiesResponse.Builder addEntities(Entity.Builder builderForValue)
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
addEntities(int index, Entity value)
public AnalyzeEntitiesResponse.Builder addEntities(int index, Entity value)
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Entity
|
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.v2.Entity entities = 1;
addEntitiesBuilder()
public Entity.Builder addEntitiesBuilder()
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
addEntitiesBuilder(int index)
public Entity.Builder addEntitiesBuilder(int index)
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnalyzeEntitiesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AnalyzeEntitiesResponse build()
buildPartial()
public AnalyzeEntitiesResponse buildPartial()
clear()
public AnalyzeEntitiesResponse.Builder clear()
Overrides
clearEntities()
public AnalyzeEntitiesResponse.Builder clearEntities()
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
clearField(Descriptors.FieldDescriptor field)
public AnalyzeEntitiesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLanguageCode()
public AnalyzeEntitiesResponse.Builder clearLanguageCode()
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_code = 2;
clearLanguageSupported()
public AnalyzeEntitiesResponse.Builder clearLanguageSupported()
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort
basis.
bool language_supported = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public AnalyzeEntitiesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public AnalyzeEntitiesResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public AnalyzeEntitiesResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEntities(int index)
public Entity getEntities(int index)
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
Entity |
|
getEntitiesBuilder(int index)
public Entity.Builder getEntitiesBuilder(int index)
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
Parameter |
Name |
Description |
index |
int
|
getEntitiesBuilderList()
public List<Entity.Builder> getEntitiesBuilderList()
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
getEntitiesCount()
public int getEntitiesCount()
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
Returns |
Type |
Description |
int |
|
getEntitiesList()
public List<Entity> getEntitiesList()
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
getEntitiesOrBuilder(int index)
public EntityOrBuilder getEntitiesOrBuilder(int index)
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
Parameter |
Name |
Description |
index |
int
|
getEntitiesOrBuilderList()
public List<? extends EntityOrBuilder> getEntitiesOrBuilderList()
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.language.v2.EntityOrBuilder> |
|
getLanguageCode()
public String getLanguageCode()
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_code = 2;
Returns |
Type |
Description |
String |
The languageCode.
|
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
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_code = 2;
Returns |
Type |
Description |
ByteString |
The bytes for languageCode.
|
getLanguageSupported()
public boolean getLanguageSupported()
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort
basis.
bool language_supported = 3;
Returns |
Type |
Description |
boolean |
The languageSupported.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AnalyzeEntitiesResponse other)
public AnalyzeEntitiesResponse.Builder mergeFrom(AnalyzeEntitiesResponse other)
public AnalyzeEntitiesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AnalyzeEntitiesResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeEntitiesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeEntities(int index)
public AnalyzeEntitiesResponse.Builder removeEntities(int index)
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
Parameter |
Name |
Description |
index |
int
|
setEntities(int index, Entity value)
public AnalyzeEntitiesResponse.Builder setEntities(int index, Entity value)
The recognized entities in the input document.
repeated .google.cloud.language.v2.Entity entities = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Entity
|
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.v2.Entity entities = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public AnalyzeEntitiesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLanguageCode(String value)
public AnalyzeEntitiesResponse.Builder setLanguageCode(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_code = 2;
Parameter |
Name |
Description |
value |
String
The languageCode to set.
|
setLanguageCodeBytes(ByteString value)
public AnalyzeEntitiesResponse.Builder setLanguageCodeBytes(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_code = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for languageCode to set.
|
setLanguageSupported(boolean value)
public AnalyzeEntitiesResponse.Builder setLanguageSupported(boolean value)
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort
basis.
bool language_supported = 3;
Parameter |
Name |
Description |
value |
boolean
The languageSupported to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnalyzeEntitiesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AnalyzeEntitiesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides