Class AnalyzeEntitiesResponse (2.43.0)

public final class AnalyzeEntitiesResponse extends GeneratedMessageV3 implements AnalyzeEntitiesResponseOrBuilder

The entity analysis response message.

Protobuf type google.cloud.language.v2.AnalyzeEntitiesResponse

Static Fields

ENTITIES_FIELD_NUMBER

public static final int ENTITIES_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_SUPPORTED_FIELD_NUMBER

public static final int LANGUAGE_SUPPORTED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AnalyzeEntitiesResponse getDefaultInstance()
Returns
Type Description
AnalyzeEntitiesResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AnalyzeEntitiesResponse.Builder newBuilder()
Returns
Type Description
AnalyzeEntitiesResponse.Builder

newBuilder(AnalyzeEntitiesResponse prototype)

public static AnalyzeEntitiesResponse.Builder newBuilder(AnalyzeEntitiesResponse prototype)
Parameter
Name Description
prototype AnalyzeEntitiesResponse
Returns
Type Description
AnalyzeEntitiesResponse.Builder

parseDelimitedFrom(InputStream input)

public static AnalyzeEntitiesResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AnalyzeEntitiesResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnalyzeEntitiesResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnalyzeEntitiesResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AnalyzeEntitiesResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AnalyzeEntitiesResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitiesResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AnalyzeEntitiesResponse> parser()
Returns
Type Description
Parser<AnalyzeEntitiesResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AnalyzeEntitiesResponse getDefaultInstanceForType()
Returns
Type Description
AnalyzeEntitiesResponse

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

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;

Returns
Type Description
List<Entity>

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
Returns
Type Description
EntityOrBuilder

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.

getParserForType()

public Parser<AnalyzeEntitiesResponse> getParserForType()
Returns
Type Description
Parser<AnalyzeEntitiesResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AnalyzeEntitiesResponse.Builder newBuilderForType()
Returns
Type Description
AnalyzeEntitiesResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnalyzeEntitiesResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnalyzeEntitiesResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AnalyzeEntitiesResponse.Builder toBuilder()
Returns
Type Description
AnalyzeEntitiesResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException