Class AnalyzeEntitiesRequest.Builder (2.47.0)

public static final class AnalyzeEntitiesRequest.Builder extends GeneratedMessageV3.Builder<AnalyzeEntitiesRequest.Builder> implements AnalyzeEntitiesRequestOrBuilder

The entity analysis request message.

Protobuf type google.cloud.language.v1beta2.AnalyzeEntitiesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeEntitiesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides

build()

public AnalyzeEntitiesRequest build()
Returns
Type Description
AnalyzeEntitiesRequest

buildPartial()

public AnalyzeEntitiesRequest buildPartial()
Returns
Type Description
AnalyzeEntitiesRequest

clear()

public AnalyzeEntitiesRequest.Builder clear()
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides

clearDocument()

public AnalyzeEntitiesRequest.Builder clearDocument()

Required. Input document.

.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AnalyzeEntitiesRequest.Builder

clearEncodingType()

public AnalyzeEntitiesRequest.Builder clearEncodingType()

The encoding type used by the API to calculate offsets.

.google.cloud.language.v1beta2.EncodingType encoding_type = 2;

Returns
Type Description
AnalyzeEntitiesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnalyzeEntitiesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeEntitiesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides

clone()

public AnalyzeEntitiesRequest.Builder clone()
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides

getDefaultInstanceForType()

public AnalyzeEntitiesRequest getDefaultInstanceForType()
Returns
Type Description
AnalyzeEntitiesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDocument()

public Document getDocument()

Required. Input document.

.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Document

The document.

getDocumentBuilder()

public Document.Builder getDocumentBuilder()

Required. Input document.

.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Document.Builder

getDocumentOrBuilder()

public DocumentOrBuilder getDocumentOrBuilder()

Required. Input document.

.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DocumentOrBuilder

getEncodingType()

public EncodingType getEncodingType()

The encoding type used by the API to calculate offsets.

.google.cloud.language.v1beta2.EncodingType encoding_type = 2;

Returns
Type Description
EncodingType

The encodingType.

getEncodingTypeValue()

public int getEncodingTypeValue()

The encoding type used by the API to calculate offsets.

.google.cloud.language.v1beta2.EncodingType encoding_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for encodingType.

hasDocument()

public boolean hasDocument()

Required. Input document.

.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the document field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDocument(Document value)

public AnalyzeEntitiesRequest.Builder mergeDocument(Document value)

Required. Input document.

.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Document
Returns
Type Description
AnalyzeEntitiesRequest.Builder

mergeFrom(AnalyzeEntitiesRequest other)

public AnalyzeEntitiesRequest.Builder mergeFrom(AnalyzeEntitiesRequest other)
Parameter
Name Description
other AnalyzeEntitiesRequest
Returns
Type Description
AnalyzeEntitiesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzeEntitiesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnalyzeEntitiesRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeEntitiesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides

setDocument(Document value)

public AnalyzeEntitiesRequest.Builder setDocument(Document value)

Required. Input document.

.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Document
Returns
Type Description
AnalyzeEntitiesRequest.Builder

setDocument(Document.Builder builderForValue)

public AnalyzeEntitiesRequest.Builder setDocument(Document.Builder builderForValue)

Required. Input document.

.google.cloud.language.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Document.Builder
Returns
Type Description
AnalyzeEntitiesRequest.Builder

setEncodingType(EncodingType value)

public AnalyzeEntitiesRequest.Builder setEncodingType(EncodingType value)

The encoding type used by the API to calculate offsets.

.google.cloud.language.v1beta2.EncodingType encoding_type = 2;

Parameter
Name Description
value EncodingType

The encodingType to set.

Returns
Type Description
AnalyzeEntitiesRequest.Builder

This builder for chaining.

setEncodingTypeValue(int value)

public AnalyzeEntitiesRequest.Builder setEncodingTypeValue(int value)

The encoding type used by the API to calculate offsets.

.google.cloud.language.v1beta2.EncodingType encoding_type = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for encodingType to set.

Returns
Type Description
AnalyzeEntitiesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeEntitiesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides

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

public AnalyzeEntitiesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeEntitiesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzeEntitiesRequest.Builder
Overrides