Interface TextClassificationConfigOrBuilder (0.154.0)

public interface TextClassificationConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowMultiLabel()

public abstract 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
TypeDescription
boolean

The allowMultiLabel.

getAnnotationSpecSet()

public abstract String getAnnotationSpecSet()

Required. Annotation spec set resource name.

string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The annotationSpecSet.

getAnnotationSpecSetBytes()

public abstract ByteString getAnnotationSpecSetBytes()

Required. Annotation spec set resource name.

string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for annotationSpecSet.

getSentimentConfig()

public abstract SentimentConfig getSentimentConfig()

Optional. Configs for sentiment selection.

.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SentimentConfig

The sentimentConfig.

getSentimentConfigOrBuilder()

public abstract SentimentConfigOrBuilder getSentimentConfigOrBuilder()

Optional. Configs for sentiment selection.

.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SentimentConfigOrBuilder

hasSentimentConfig()

public abstract boolean hasSentimentConfig()

Optional. Configs for sentiment selection.

.google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the sentimentConfig field is set.