Class AnalyzeEntitiesResponse (2.13.0)

public final class AnalyzeEntitiesResponse extends GeneratedMessageV3 implements AnalyzeEntitiesResponseOrBuilder

The entity analysis response message.

Protobuf type google.cloud.language.v1beta2.AnalyzeEntitiesResponse

Static Fields

ENTITIES_FIELD_NUMBER

public static final int ENTITIES_FIELD_NUMBER
Field Value
TypeDescription
int

LANGUAGE_FIELD_NUMBER

public static final int LANGUAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnalyzeEntitiesResponse getDefaultInstance()
Returns
TypeDescription
AnalyzeEntitiesResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AnalyzeEntitiesResponse.Builder newBuilder()
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

newBuilder(AnalyzeEntitiesResponse prototype)

public static AnalyzeEntitiesResponse.Builder newBuilder(AnalyzeEntitiesResponse prototype)
Parameter
NameDescription
prototypeAnalyzeEntitiesResponse
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

parseDelimitedFrom(InputStream input)

public static AnalyzeEntitiesResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AnalyzeEntitiesResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnalyzeEntitiesResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnalyzeEntitiesResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AnalyzeEntitiesResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AnalyzeEntitiesResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnalyzeEntitiesResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeEntitiesResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AnalyzeEntitiesResponse> parser()
Returns
TypeDescription
Parser<AnalyzeEntitiesResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AnalyzeEntitiesResponse getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeEntitiesResponse

getEntities(int index)

public Entity getEntities(int index)

The recognized entities in the input document.

repeated .google.cloud.language.v1beta2.Entity entities = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Entity

getEntitiesCount()

public int getEntitiesCount()

The recognized entities in the input document.

repeated .google.cloud.language.v1beta2.Entity entities = 1;

Returns
TypeDescription
int

getEntitiesList()

public List<Entity> getEntitiesList()

The recognized entities in the input document.

repeated .google.cloud.language.v1beta2.Entity entities = 1;

Returns
TypeDescription
List<Entity>

getEntitiesOrBuilder(int index)

public EntityOrBuilder getEntitiesOrBuilder(int index)

The recognized entities in the input document.

repeated .google.cloud.language.v1beta2.Entity entities = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityOrBuilder

getEntitiesOrBuilderList()

public List<? extends EntityOrBuilder> getEntitiesOrBuilderList()

The recognized entities in the input document.

repeated .google.cloud.language.v1beta2.Entity entities = 1;

Returns
TypeDescription
List<? extends com.google.cloud.language.v1beta2.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
TypeDescription
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
TypeDescription
ByteString

The bytes for language.

getParserForType()

public Parser<AnalyzeEntitiesResponse> getParserForType()
Returns
TypeDescription
Parser<AnalyzeEntitiesResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AnalyzeEntitiesResponse.Builder newBuilderForType()
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnalyzeEntitiesResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AnalyzeEntitiesResponse.Builder toBuilder()
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException