Class TextEntityExtractionConfig.Builder (0.153.0)

public static final class TextEntityExtractionConfig.Builder extends GeneratedMessageV3.Builder<TextEntityExtractionConfig.Builder> implements TextEntityExtractionConfigOrBuilder

Config for text entity extraction human labeling task.

Protobuf type google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextEntityExtractionConfig build()
Returns
TypeDescription
TextEntityExtractionConfig

buildPartial()

public TextEntityExtractionConfig buildPartial()
Returns
TypeDescription
TextEntityExtractionConfig

clear()

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

clearAnnotationSpecSet()

public TextEntityExtractionConfig.Builder clearAnnotationSpecSet()

Required. Annotation spec set resource name.

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

Returns
TypeDescription
TextEntityExtractionConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnnotationSpecSet()

public String getAnnotationSpecSet()

Required. Annotation spec set resource name.

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

Returns
TypeDescription
String

The annotationSpecSet.

getAnnotationSpecSetBytes()

public ByteString getAnnotationSpecSetBytes()

Required. Annotation spec set resource name.

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

Returns
TypeDescription
ByteString

The bytes for annotationSpecSet.

getDefaultInstanceForType()

public TextEntityExtractionConfig getDefaultInstanceForType()
Returns
TypeDescription
TextEntityExtractionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextEntityExtractionConfig other)

public TextEntityExtractionConfig.Builder mergeFrom(TextEntityExtractionConfig other)
Parameter
NameDescription
otherTextEntityExtractionConfig
Returns
TypeDescription
TextEntityExtractionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnnotationSpecSet(String value)

public TextEntityExtractionConfig.Builder setAnnotationSpecSet(String value)

Required. Annotation spec set resource name.

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

Parameter
NameDescription
valueString

The annotationSpecSet to set.

Returns
TypeDescription
TextEntityExtractionConfig.Builder

This builder for chaining.

setAnnotationSpecSetBytes(ByteString value)

public TextEntityExtractionConfig.Builder setAnnotationSpecSetBytes(ByteString value)

Required. Annotation spec set resource name.

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

Parameter
NameDescription
valueByteString

The bytes for annotationSpecSet to set.

Returns
TypeDescription
TextEntityExtractionConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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