Interface TextClassificationConfigOrBuilder (0.171.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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the sentimentConfig field is set.