public final class TextClassificationConfig extends GeneratedMessageV3 implements TextClassificationConfigOrBuilder
Config for text classification human labeling task.
Protobuf type google.cloud.datalabeling.v1beta1.TextClassificationConfig
Static Fields
ALLOW_MULTI_LABEL_FIELD_NUMBER
public static final int ALLOW_MULTI_LABEL_FIELD_NUMBER
Field Value
ANNOTATION_SPEC_SET_FIELD_NUMBER
public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER
Field Value
SENTIMENT_CONFIG_FIELD_NUMBER
public static final int SENTIMENT_CONFIG_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static TextClassificationConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TextClassificationConfig.Builder newBuilder()
Returns
newBuilder(TextClassificationConfig prototype)
public static TextClassificationConfig.Builder newBuilder(TextClassificationConfig prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static TextClassificationConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TextClassificationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TextClassificationConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TextClassificationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TextClassificationConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TextClassificationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static TextClassificationConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TextClassificationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static TextClassificationConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TextClassificationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TextClassificationConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TextClassificationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TextClassificationConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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
getParserForType()
public Parser<TextClassificationConfig> getParserForType()
Returns
Overrides
getSentimentConfig()
public SentimentConfig getSentimentConfig()
Optional. Configs for sentiment selection.
.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getSentimentConfigOrBuilder()
public SentimentConfigOrBuilder getSentimentConfigOrBuilder()
Optional. Configs for sentiment selection.
.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TextClassificationConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TextClassificationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TextClassificationConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions