Class AnalyzeEntitiesResponse.Builder (2.34.0)

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

Static Methods

getDescriptor()

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

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
NameDescription
valuesIterable<? extends com.google.cloud.language.v2.Entity>
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

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
NameDescription
valueEntity
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

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;

Parameter
NameDescription
builderForValueEntity.Builder
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

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
NameDescription
indexint
valueEntity
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

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;

Parameters
NameDescription
indexint
builderForValueEntity.Builder
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

addEntitiesBuilder()

public Entity.Builder addEntitiesBuilder()

The recognized entities in the input document.

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

Returns
TypeDescription
Entity.Builder

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
NameDescription
indexint
Returns
TypeDescription
Entity.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeEntitiesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
Overrides

build()

public AnalyzeEntitiesResponse build()
Returns
TypeDescription
AnalyzeEntitiesResponse

buildPartial()

public AnalyzeEntitiesResponse buildPartial()
Returns
TypeDescription
AnalyzeEntitiesResponse

clear()

public AnalyzeEntitiesResponse.Builder clear()
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
Overrides

clearEntities()

public AnalyzeEntitiesResponse.Builder clearEntities()

The recognized entities in the input document.

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

Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public AnalyzeEntitiesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
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;

Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

This builder for chaining.

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;

Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeEntitiesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
Overrides

clone()

public AnalyzeEntitiesResponse.Builder clone()
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
Overrides

getDefaultInstanceForType()

public AnalyzeEntitiesResponse getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeEntitiesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Entity.Builder

getEntitiesBuilderList()

public List<Entity.Builder> getEntitiesBuilderList()

The recognized entities in the input document.

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

Returns
TypeDescription
List<Builder>

getEntitiesCount()

public int getEntitiesCount()

The recognized entities in the input document.

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

Returns
TypeDescription
int

getEntitiesList()

public List<Entity> getEntitiesList()

The recognized entities in the input document.

repeated .google.cloud.language.v2.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.v2.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.v2.Entity entities = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The languageSupported.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AnalyzeEntitiesResponse other)

public AnalyzeEntitiesResponse.Builder mergeFrom(AnalyzeEntitiesResponse other)
Parameter
NameDescription
otherAnalyzeEntitiesResponse
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzeEntitiesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnalyzeEntitiesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeEntitiesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
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
NameDescription
indexint
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

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
NameDescription
indexint
valueEntity
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

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;

Parameters
NameDescription
indexint
builderForValueEntity.Builder
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeEntitiesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
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
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

This builder for chaining.

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
NameDescription
valueboolean

The languageSupported to set.

Returns
TypeDescription
AnalyzeEntitiesResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnalyzeEntitiesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeEntitiesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeEntitiesResponse.Builder
Overrides