public static final class AnnotateTextRequest.Features.Builder extends GeneratedMessageV3.Builder<AnnotateTextRequest.Features.Builder> implements AnnotateTextRequest.FeaturesOrBuilder
All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. Next ID: 12
Protobuf type google.cloud.language.v1beta2.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()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnnotateTextRequest.Features.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
AnnotateTextRequest.Features.Builder |
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 |
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.v1beta2.ClassificationModelOptions classification_model_options = 10;
Returns | |
---|---|
Type | Description |
AnnotateTextRequest.Features.Builder |
clearClassifyText()
public AnnotateTextRequest.Features.Builder clearClassifyText()
Classify the full document into categories. If this is true, the API will use the default model which classifies into a predefined taxonomy.
bool classify_text = 6;
Returns | |
---|---|
Type | Description |
AnnotateTextRequest.Features.Builder | This builder for chaining. |
clearExtractDocumentSentiment()
public AnnotateTextRequest.Features.Builder clearExtractDocumentSentiment()
Extract document-level sentiment.
bool extract_document_sentiment = 3;
Returns | |
---|---|
Type | Description |
AnnotateTextRequest.Features.Builder | This builder for chaining. |
clearExtractEntities()
public AnnotateTextRequest.Features.Builder clearExtractEntities()
Extract entities.
bool extract_entities = 2;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
AnnotateTextRequest.Features.Builder | This builder for chaining. |
clearExtractSyntax()
public AnnotateTextRequest.Features.Builder clearExtractSyntax()
Extract syntax information.
bool extract_syntax = 1;
Returns | |
---|---|
Type | Description |
AnnotateTextRequest.Features.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AnnotateTextRequest.Features.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
AnnotateTextRequest.Features.Builder |
clearModerateText()
public AnnotateTextRequest.Features.Builder clearModerateText()
Moderate the document for harmful and sensitive categories.
bool moderate_text = 11;
Returns | |
---|---|
Type | Description |
AnnotateTextRequest.Features.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AnnotateTextRequest.Features.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
AnnotateTextRequest.Features.Builder |
clone()
public AnnotateTextRequest.Features.Builder clone()
Returns | |
---|---|
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.v1beta2.ClassificationModelOptions classification_model_options = 10;
Returns | |
---|---|
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.v1beta2.ClassificationModelOptions classification_model_options = 10;
Returns | |
---|---|
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.v1beta2.ClassificationModelOptions classification_model_options = 10;
Returns | |
---|---|
Type | Description |
ClassificationModelOptionsOrBuilder |
getClassifyText()
public boolean getClassifyText()
Classify the full document into categories. If this is true, the API will use the default model which classifies into a predefined taxonomy.
bool classify_text = 6;
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()
Extract document-level sentiment.
bool extract_document_sentiment = 3;
Returns | |
---|---|
Type | Description |
boolean | The extractDocumentSentiment. |
getExtractEntities()
public boolean getExtractEntities()
Extract entities.
bool extract_entities = 2;
Returns | |
---|---|
Type | Description |
boolean | The extractEntities. |
getExtractEntitySentiment()
public boolean getExtractEntitySentiment()
Extract entities and their associated sentiment.
bool extract_entity_sentiment = 4;
Returns | |
---|---|
Type | Description |
boolean | The extractEntitySentiment. |