Class LabelTextRequest.Builder (0.137.0)

public static final class LabelTextRequest.Builder extends GeneratedMessageV3.Builder<LabelTextRequest.Builder> implements LabelTextRequestOrBuilder

Request message for LabelText.

Protobuf type google.cloud.datalabeling.v1beta1.LabelTextRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LabelTextRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LabelTextRequest.Builder
Overrides

build()

public LabelTextRequest build()
Returns
TypeDescription
LabelTextRequest

buildPartial()

public LabelTextRequest buildPartial()
Returns
TypeDescription
LabelTextRequest

clear()

public LabelTextRequest.Builder clear()
Returns
TypeDescription
LabelTextRequest.Builder
Overrides

clearBasicConfig()

public LabelTextRequest.Builder clearBasicConfig()

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LabelTextRequest.Builder

clearFeature()

public LabelTextRequest.Builder clearFeature()

Required. The type of text labeling task.

.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LabelTextRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LabelTextRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LabelTextRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LabelTextRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LabelTextRequest.Builder
Overrides

clearParent()

public LabelTextRequest.Builder clearParent()

Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
LabelTextRequest.Builder

This builder for chaining.

clearRequestConfig()

public LabelTextRequest.Builder clearRequestConfig()
Returns
TypeDescription
LabelTextRequest.Builder

clearTextClassificationConfig()

public LabelTextRequest.Builder clearTextClassificationConfig()

Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4;

Returns
TypeDescription
LabelTextRequest.Builder

clearTextEntityExtractionConfig()

public LabelTextRequest.Builder clearTextEntityExtractionConfig()

Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5;

Returns
TypeDescription
LabelTextRequest.Builder

clone()

public LabelTextRequest.Builder clone()
Returns
TypeDescription
LabelTextRequest.Builder
Overrides

getBasicConfig()

public HumanAnnotationConfig getBasicConfig()

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
HumanAnnotationConfig

The basicConfig.

getBasicConfigBuilder()

public HumanAnnotationConfig.Builder getBasicConfigBuilder()

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
HumanAnnotationConfig.Builder

getBasicConfigOrBuilder()

public HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder()

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
HumanAnnotationConfigOrBuilder

getDefaultInstanceForType()

public LabelTextRequest getDefaultInstanceForType()
Returns
TypeDescription
LabelTextRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFeature()

public LabelTextRequest.Feature getFeature()

Required. The type of text labeling task.

.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LabelTextRequest.Feature

The feature.

getFeatureValue()

public int getFeatureValue()

Required. The type of text labeling task.

.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for feature.

getParent()

public String getParent()

Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getRequestConfigCase()

public LabelTextRequest.RequestConfigCase getRequestConfigCase()
Returns
TypeDescription
LabelTextRequest.RequestConfigCase

getTextClassificationConfig()

public TextClassificationConfig getTextClassificationConfig()

Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4;

Returns
TypeDescription
TextClassificationConfig

The textClassificationConfig.

getTextClassificationConfigBuilder()

public TextClassificationConfig.Builder getTextClassificationConfigBuilder()

Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4;

Returns
TypeDescription
TextClassificationConfig.Builder

getTextClassificationConfigOrBuilder()

public TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder()

Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4;

Returns
TypeDescription
TextClassificationConfigOrBuilder

getTextEntityExtractionConfig()

public TextEntityExtractionConfig getTextEntityExtractionConfig()

Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5;

Returns
TypeDescription
TextEntityExtractionConfig

The textEntityExtractionConfig.

getTextEntityExtractionConfigBuilder()

public TextEntityExtractionConfig.Builder getTextEntityExtractionConfigBuilder()

Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5;

Returns
TypeDescription
TextEntityExtractionConfig.Builder

getTextEntityExtractionConfigOrBuilder()

public TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder()

Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5;

Returns
TypeDescription
TextEntityExtractionConfigOrBuilder

hasBasicConfig()

public boolean hasBasicConfig()

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the basicConfig field is set.

hasTextClassificationConfig()

public boolean hasTextClassificationConfig()

Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4;

Returns
TypeDescription
boolean

Whether the textClassificationConfig field is set.

hasTextEntityExtractionConfig()

public boolean hasTextEntityExtractionConfig()

Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5;

Returns
TypeDescription
boolean

Whether the textEntityExtractionConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBasicConfig(HumanAnnotationConfig value)

public LabelTextRequest.Builder mergeBasicConfig(HumanAnnotationConfig value)

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueHumanAnnotationConfig
Returns
TypeDescription
LabelTextRequest.Builder

mergeFrom(LabelTextRequest other)

public LabelTextRequest.Builder mergeFrom(LabelTextRequest other)
Parameter
NameDescription
otherLabelTextRequest
Returns
TypeDescription
LabelTextRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LabelTextRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LabelTextRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LabelTextRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LabelTextRequest.Builder
Overrides

mergeTextClassificationConfig(TextClassificationConfig value)

public LabelTextRequest.Builder mergeTextClassificationConfig(TextClassificationConfig value)

Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4;

Parameter
NameDescription
valueTextClassificationConfig
Returns
TypeDescription
LabelTextRequest.Builder

mergeTextEntityExtractionConfig(TextEntityExtractionConfig value)

public LabelTextRequest.Builder mergeTextEntityExtractionConfig(TextEntityExtractionConfig value)

Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5;

Parameter
NameDescription
valueTextEntityExtractionConfig
Returns
TypeDescription
LabelTextRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LabelTextRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LabelTextRequest.Builder
Overrides

setBasicConfig(HumanAnnotationConfig value)

public LabelTextRequest.Builder setBasicConfig(HumanAnnotationConfig value)

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueHumanAnnotationConfig
Returns
TypeDescription
LabelTextRequest.Builder

setBasicConfig(HumanAnnotationConfig.Builder builderForValue)

public LabelTextRequest.Builder setBasicConfig(HumanAnnotationConfig.Builder builderForValue)

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueHumanAnnotationConfig.Builder
Returns
TypeDescription
LabelTextRequest.Builder

setFeature(LabelTextRequest.Feature value)

public LabelTextRequest.Builder setFeature(LabelTextRequest.Feature value)

Required. The type of text labeling task.

.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueLabelTextRequest.Feature

The feature to set.

Returns
TypeDescription
LabelTextRequest.Builder

This builder for chaining.

setFeatureValue(int value)

public LabelTextRequest.Builder setFeatureValue(int value)

Required. The type of text labeling task.

.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for feature to set.

Returns
TypeDescription
LabelTextRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LabelTextRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LabelTextRequest.Builder
Overrides

setParent(String value)

public LabelTextRequest.Builder setParent(String value)

Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
LabelTextRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public LabelTextRequest.Builder setParentBytes(ByteString value)

Required. Name of the data set to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
LabelTextRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LabelTextRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LabelTextRequest.Builder
Overrides

setTextClassificationConfig(TextClassificationConfig value)

public LabelTextRequest.Builder setTextClassificationConfig(TextClassificationConfig value)

Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4;

Parameter
NameDescription
valueTextClassificationConfig
Returns
TypeDescription
LabelTextRequest.Builder

setTextClassificationConfig(TextClassificationConfig.Builder builderForValue)

public LabelTextRequest.Builder setTextClassificationConfig(TextClassificationConfig.Builder builderForValue)

Configuration for text classification task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4;

Parameter
NameDescription
builderForValueTextClassificationConfig.Builder
Returns
TypeDescription
LabelTextRequest.Builder

setTextEntityExtractionConfig(TextEntityExtractionConfig value)

public LabelTextRequest.Builder setTextEntityExtractionConfig(TextEntityExtractionConfig value)

Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5;

Parameter
NameDescription
valueTextEntityExtractionConfig
Returns
TypeDescription
LabelTextRequest.Builder

setTextEntityExtractionConfig(TextEntityExtractionConfig.Builder builderForValue)

public LabelTextRequest.Builder setTextEntityExtractionConfig(TextEntityExtractionConfig.Builder builderForValue)

Configuration for entity extraction task. One of text_classification_config and text_entity_extraction_config is required.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5;

Parameter
NameDescription
builderForValueTextEntityExtractionConfig.Builder
Returns
TypeDescription
LabelTextRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final LabelTextRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LabelTextRequest.Builder
Overrides