- 0.203.0 (latest)
- 0.202.0
- 0.201.0
- 0.200.0
- 0.198.0
- 0.196.0
- 0.195.0
- 0.194.0
- 0.193.0
- 0.192.0
- 0.190.0
- 0.188.0
- 0.187.0
- 0.184.0
- 0.183.0
- 0.182.0
- 0.180.0
- 0.179.0
- 0.178.0
- 0.177.0
- 0.176.0
- 0.175.0
- 0.174.0
- 0.173.0
- 0.172.0
- 0.171.0
- 0.169.0
- 0.168.0
- 0.167.0
- 0.166.0
- 0.165.0
- 0.164.0
- 0.163.0
- 0.162.0
- 0.161.0
- 0.160.0
- 0.159.0
- 0.157.0
- 0.156.0
- 0.155.0
- 0.154.0
- 0.153.0
- 0.152.0
- 0.151.0
- 0.150.0
- 0.149.0
- 0.148.0
- 0.147.0
- 0.144.0
- 0.143.0
- 0.142.0
- 0.141.0
- 0.140.0
- 0.139.0
- 0.138.0
- 0.137.0
- 0.136.0
- 0.135.0
- 0.134.0
- 0.133.0
- 0.132.0
- 0.131.0
- 0.129.0
- 0.128.0
- 0.127.0
- 0.126.0
- 0.125.0
- 0.124.0
- 0.123.7
- 0.122.11
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 |
|