public static final class TextClassificationConfig.Builder extends GeneratedMessage.Builder<TextClassificationConfig.Builder> implements TextClassificationConfigOrBuilderConfig for text classification human labeling task.
Protobuf type google.cloud.datalabeling.v1beta1.TextClassificationConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TextClassificationConfig.BuilderImplements
TextClassificationConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TextClassificationConfig build()| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig |
|
buildPartial()
public TextClassificationConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig |
|
clear()
public TextClassificationConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
|
clearAllowMultiLabel()
public TextClassificationConfig.Builder clearAllowMultiLabel()Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.
bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
This builder for chaining. |
clearAnnotationSpecSet()
public TextClassificationConfig.Builder clearAnnotationSpecSet()Required. Annotation spec set resource name.
string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
This builder for chaining. |
clearSentimentConfig()
public TextClassificationConfig.Builder clearSentimentConfig()Optional. Configs for sentiment selection.
.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
|
getAllowMultiLabel()
public boolean getAllowMultiLabel()Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.
bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The allowMultiLabel. |
getAnnotationSpecSet()
public String getAnnotationSpecSet()Required. Annotation spec set resource name.
string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The annotationSpecSet. |
getAnnotationSpecSetBytes()
public ByteString getAnnotationSpecSetBytes()Required. Annotation spec set resource name.
string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for annotationSpecSet. |
getDefaultInstanceForType()
public TextClassificationConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSentimentConfig()
public SentimentConfig getSentimentConfig()Optional. Configs for sentiment selection.
.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SentimentConfig |
The sentimentConfig. |
getSentimentConfigBuilder()
public SentimentConfig.Builder getSentimentConfigBuilder()Optional. Configs for sentiment selection.
.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SentimentConfig.Builder |
|
getSentimentConfigOrBuilder()
public SentimentConfigOrBuilder getSentimentConfigOrBuilder()Optional. Configs for sentiment selection.
.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SentimentConfigOrBuilder |
|
hasSentimentConfig()
public boolean hasSentimentConfig()Optional. Configs for sentiment selection.
.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sentimentConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TextClassificationConfig other)
public TextClassificationConfig.Builder mergeFrom(TextClassificationConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
TextClassificationConfig |
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextClassificationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TextClassificationConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
|
mergeSentimentConfig(SentimentConfig value)
public TextClassificationConfig.Builder mergeSentimentConfig(SentimentConfig value)Optional. Configs for sentiment selection.
.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SentimentConfig |
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
|
setAllowMultiLabel(boolean value)
public TextClassificationConfig.Builder setAllowMultiLabel(boolean value)Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.
bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe allowMultiLabel to set. |
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
This builder for chaining. |
setAnnotationSpecSet(String value)
public TextClassificationConfig.Builder setAnnotationSpecSet(String value)Required. Annotation spec set resource name.
string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe annotationSpecSet to set. |
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
This builder for chaining. |
setAnnotationSpecSetBytes(ByteString value)
public TextClassificationConfig.Builder setAnnotationSpecSetBytes(ByteString value)Required. Annotation spec set resource name.
string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for annotationSpecSet to set. |
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
This builder for chaining. |
setSentimentConfig(SentimentConfig value)
public TextClassificationConfig.Builder setSentimentConfig(SentimentConfig value)Optional. Configs for sentiment selection.
.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SentimentConfig |
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
|
setSentimentConfig(SentimentConfig.Builder builderForValue)
public TextClassificationConfig.Builder setSentimentConfig(SentimentConfig.Builder builderForValue)Optional. Configs for sentiment selection.
.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SentimentConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
TextClassificationConfig.Builder |
|