- 2.79.0 (latest)
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.71.0
- 2.69.0
- 2.68.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.3.4
- 2.2.0
- 2.1.10
public static final class AnnotateTextRequest.Features.Builder extends GeneratedMessageV3.Builder<AnnotateTextRequest.Features.Builder> implements AnnotateTextRequest.FeaturesOrBuilderAll available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.
Protobuf type google.cloud.language.v1.AnnotateTextRequest.Features
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnnotateTextRequest.Features.BuilderImplements
AnnotateTextRequest.FeaturesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnnotateTextRequest.Features.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
build()
public AnnotateTextRequest.Features build()| Type | Description |
| AnnotateTextRequest.Features |
buildPartial()
public AnnotateTextRequest.Features buildPartial()| Type | Description |
| AnnotateTextRequest.Features |
clear()
public AnnotateTextRequest.Features.Builder clear()| Type | Description |
| AnnotateTextRequest.Features.Builder |
clearClassificationModelOptions()
public AnnotateTextRequest.Features.Builder clearClassificationModelOptions() The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text is set to true.
.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 10;
| Type | Description |
| AnnotateTextRequest.Features.Builder |
clearClassifyText()
public AnnotateTextRequest.Features.Builder clearClassifyText()Classify the full document into categories.
bool classify_text = 6;
| Type | Description |
| AnnotateTextRequest.Features.Builder | This builder for chaining. |
clearExtractDocumentSentiment()
public AnnotateTextRequest.Features.Builder clearExtractDocumentSentiment()Extract document-level sentiment.
bool extract_document_sentiment = 3;
| Type | Description |
| AnnotateTextRequest.Features.Builder | This builder for chaining. |
clearExtractEntities()
public AnnotateTextRequest.Features.Builder clearExtractEntities()Extract entities.
bool extract_entities = 2;
| Type | Description |
| AnnotateTextRequest.Features.Builder | This builder for chaining. |
clearExtractEntitySentiment()
public AnnotateTextRequest.Features.Builder clearExtractEntitySentiment()Extract entities and their associated sentiment.
bool extract_entity_sentiment = 4;
| Type | Description |
| AnnotateTextRequest.Features.Builder | This builder for chaining. |
clearExtractSyntax()
public AnnotateTextRequest.Features.Builder clearExtractSyntax()Extract syntax information.
bool extract_syntax = 1;
| Type | Description |
| AnnotateTextRequest.Features.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AnnotateTextRequest.Features.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AnnotateTextRequest.Features.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
clone()
public AnnotateTextRequest.Features.Builder clone()| Type | Description |
| AnnotateTextRequest.Features.Builder |
getClassificationModelOptions()
public ClassificationModelOptions getClassificationModelOptions() The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text is set to true.
.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 10;
| Type | Description |
| ClassificationModelOptions | The classificationModelOptions. |
getClassificationModelOptionsBuilder()
public ClassificationModelOptions.Builder getClassificationModelOptionsBuilder() The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text is set to true.
.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 10;
| Type | Description |
| ClassificationModelOptions.Builder |
getClassificationModelOptionsOrBuilder()
public ClassificationModelOptionsOrBuilder getClassificationModelOptionsOrBuilder() The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text is set to true.
.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 10;
| Type | Description |
| ClassificationModelOptionsOrBuilder |
getClassifyText()
public boolean getClassifyText()Classify the full document into categories.
bool classify_text = 6;
| Type | Description |
| boolean | The classifyText. |
getDefaultInstanceForType()
public AnnotateTextRequest.Features getDefaultInstanceForType()| Type | Description |
| AnnotateTextRequest.Features |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getExtractDocumentSentiment()
public boolean getExtractDocumentSentiment()Extract document-level sentiment.
bool extract_document_sentiment = 3;
| Type | Description |
| boolean | The extractDocumentSentiment. |
getExtractEntities()
public boolean getExtractEntities()Extract entities.
bool extract_entities = 2;
| Type | Description |
| boolean | The extractEntities. |
getExtractEntitySentiment()
public boolean getExtractEntitySentiment()Extract entities and their associated sentiment.
bool extract_entity_sentiment = 4;
| Type | Description |
| boolean | The extractEntitySentiment. |
getExtractSyntax()
public boolean getExtractSyntax()Extract syntax information.
bool extract_syntax = 1;
| Type | Description |
| boolean | The extractSyntax. |
hasClassificationModelOptions()
public boolean hasClassificationModelOptions() The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text is set to true.
.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 10;
| Type | Description |
| boolean | Whether the classificationModelOptions field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeClassificationModelOptions(ClassificationModelOptions value)
public AnnotateTextRequest.Features.Builder mergeClassificationModelOptions(ClassificationModelOptions value) The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text is set to true.
.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 10;
| Name | Description |
| value | ClassificationModelOptions |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
mergeFrom(AnnotateTextRequest.Features other)
public AnnotateTextRequest.Features.Builder mergeFrom(AnnotateTextRequest.Features other)| Name | Description |
| other | AnnotateTextRequest.Features |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AnnotateTextRequest.Features.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public AnnotateTextRequest.Features.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateTextRequest.Features.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
setClassificationModelOptions(ClassificationModelOptions value)
public AnnotateTextRequest.Features.Builder setClassificationModelOptions(ClassificationModelOptions value) The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text is set to true.
.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 10;
| Name | Description |
| value | ClassificationModelOptions |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
setClassificationModelOptions(ClassificationModelOptions.Builder builderForValue)
public AnnotateTextRequest.Features.Builder setClassificationModelOptions(ClassificationModelOptions.Builder builderForValue) The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text is set to true.
.google.cloud.language.v1.ClassificationModelOptions classification_model_options = 10;
| Name | Description |
| builderForValue | ClassificationModelOptions.Builder |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
setClassifyText(boolean value)
public AnnotateTextRequest.Features.Builder setClassifyText(boolean value)Classify the full document into categories.
bool classify_text = 6;
| Name | Description |
| value | booleanThe classifyText to set. |
| Type | Description |
| AnnotateTextRequest.Features.Builder | This builder for chaining. |
setExtractDocumentSentiment(boolean value)
public AnnotateTextRequest.Features.Builder setExtractDocumentSentiment(boolean value)Extract document-level sentiment.
bool extract_document_sentiment = 3;
| Name | Description |
| value | booleanThe extractDocumentSentiment to set. |
| Type | Description |
| AnnotateTextRequest.Features.Builder | This builder for chaining. |
setExtractEntities(boolean value)
public AnnotateTextRequest.Features.Builder setExtractEntities(boolean value)Extract entities.
bool extract_entities = 2;
| Name | Description |
| value | booleanThe extractEntities to set. |
| Type | Description |
| AnnotateTextRequest.Features.Builder | This builder for chaining. |
setExtractEntitySentiment(boolean value)
public AnnotateTextRequest.Features.Builder setExtractEntitySentiment(boolean value)Extract entities and their associated sentiment.
bool extract_entity_sentiment = 4;
| Name | Description |
| value | booleanThe extractEntitySentiment to set. |
| Type | Description |
| AnnotateTextRequest.Features.Builder | This builder for chaining. |
setExtractSyntax(boolean value)
public AnnotateTextRequest.Features.Builder setExtractSyntax(boolean value)Extract syntax information.
bool extract_syntax = 1;
| Name | Description |
| value | booleanThe extractSyntax to set. |
| Type | Description |
| AnnotateTextRequest.Features.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AnnotateTextRequest.Features.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnnotateTextRequest.Features.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| AnnotateTextRequest.Features.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateTextRequest.Features.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| AnnotateTextRequest.Features.Builder |