Class TextMetadata.Builder (0.149.0)

public static final class TextMetadata.Builder extends GeneratedMessageV3.Builder<TextMetadata.Builder> implements TextMetadataOrBuilder

Metadata for the text.

Protobuf type google.cloud.datalabeling.v1beta1.TextMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextMetadata build()
Returns
TypeDescription
TextMetadata

buildPartial()

public TextMetadata buildPartial()
Returns
TypeDescription
TextMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLanguageCode()

public TextMetadata.Builder clearLanguageCode()

The language of this text, as a BCP-47. Default value is en-US.

string language_code = 1;

Returns
TypeDescription
TextMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public TextMetadata getDefaultInstanceForType()
Returns
TypeDescription
TextMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLanguageCode()

public String getLanguageCode()

The language of this text, as a BCP-47. Default value is en-US.

string language_code = 1;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

The language of this text, as a BCP-47. Default value is en-US.

string language_code = 1;

Returns
TypeDescription
ByteString

The bytes for languageCode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextMetadata other)

public TextMetadata.Builder mergeFrom(TextMetadata other)
Parameter
NameDescription
otherTextMetadata
Returns
TypeDescription
TextMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguageCode(String value)

public TextMetadata.Builder setLanguageCode(String value)

The language of this text, as a BCP-47. Default value is en-US.

string language_code = 1;

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
TextMetadata.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public TextMetadata.Builder setLanguageCodeBytes(ByteString value)

The language of this text, as a BCP-47. Default value is en-US.

string language_code = 1;

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
TextMetadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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