public static final class AnnotateTextRequest.Features.Builder extends GeneratedMessage.Builder<AnnotateTextRequest.Features.Builder> implements AnnotateTextRequest.FeaturesOrBuilderAll available features. Setting each one to true will enable that specific analysis for the input.
Protobuf type google.cloud.language.v2.AnnotateTextRequest.Features
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AnnotateTextRequest.Features.BuilderImplements
AnnotateTextRequest.FeaturesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AnnotateTextRequest.Features build()| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features |
|
buildPartial()
public AnnotateTextRequest.Features buildPartial()| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features |
|
clear()
public AnnotateTextRequest.Features.Builder clear()| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
|
clearClassifyText()
public AnnotateTextRequest.Features.Builder clearClassifyText()Optional. Classify the full document into categories.
bool classify_text = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
This builder for chaining. |
clearExtractDocumentSentiment()
public AnnotateTextRequest.Features.Builder clearExtractDocumentSentiment()Optional. Extract document-level sentiment.
bool extract_document_sentiment = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
This builder for chaining. |
clearExtractEntities()
public AnnotateTextRequest.Features.Builder clearExtractEntities()Optional. Extract entities.
bool extract_entities = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
This builder for chaining. |
clearModerateText()
public AnnotateTextRequest.Features.Builder clearModerateText()Optional. Moderate the document for harmful and sensitive categories.
bool moderate_text = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
This builder for chaining. |
getClassifyText()
public boolean getClassifyText()Optional. Classify the full document into categories.
bool classify_text = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The classifyText. |
getDefaultInstanceForType()
public AnnotateTextRequest.Features getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExtractDocumentSentiment()
public boolean getExtractDocumentSentiment()Optional. Extract document-level sentiment.
bool extract_document_sentiment = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The extractDocumentSentiment. |
getExtractEntities()
public boolean getExtractEntities()Optional. Extract entities.
bool extract_entities = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The extractEntities. |
getModerateText()
public boolean getModerateText()Optional. Moderate the document for harmful and sensitive categories.
bool moderate_text = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The moderateText. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AnnotateTextRequest.Features other)
public AnnotateTextRequest.Features.Builder mergeFrom(AnnotateTextRequest.Features other)| Parameter | |
|---|---|
| Name | Description |
other |
AnnotateTextRequest.Features |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AnnotateTextRequest.Features.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AnnotateTextRequest.Features.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
|
setClassifyText(boolean value)
public AnnotateTextRequest.Features.Builder setClassifyText(boolean value)Optional. Classify the full document into categories.
bool classify_text = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe classifyText to set. |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
This builder for chaining. |
setExtractDocumentSentiment(boolean value)
public AnnotateTextRequest.Features.Builder setExtractDocumentSentiment(boolean value)Optional. Extract document-level sentiment.
bool extract_document_sentiment = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe extractDocumentSentiment to set. |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
This builder for chaining. |
setExtractEntities(boolean value)
public AnnotateTextRequest.Features.Builder setExtractEntities(boolean value)Optional. Extract entities.
bool extract_entities = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe extractEntities to set. |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
This builder for chaining. |
setModerateText(boolean value)
public AnnotateTextRequest.Features.Builder setModerateText(boolean value)Optional. Moderate the document for harmful and sensitive categories.
bool moderate_text = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe moderateText to set. |
| Returns | |
|---|---|
| Type | Description |
AnnotateTextRequest.Features.Builder |
This builder for chaining. |