Class TranslationDatasetMetadata.Builder (2.37.0)

public static final class TranslationDatasetMetadata.Builder extends GeneratedMessageV3.Builder<TranslationDatasetMetadata.Builder> implements TranslationDatasetMetadataOrBuilder

Dataset metadata that is specific to translation.

Protobuf type google.cloud.automl.v1.TranslationDatasetMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TranslationDatasetMetadata build()
Returns
TypeDescription
TranslationDatasetMetadata

buildPartial()

public TranslationDatasetMetadata buildPartial()
Returns
TypeDescription
TranslationDatasetMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceLanguageCode()

public TranslationDatasetMetadata.Builder clearSourceLanguageCode()

Required. The BCP-47 language code of the source language.

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

Returns
TypeDescription
TranslationDatasetMetadata.Builder

This builder for chaining.

clearTargetLanguageCode()

public TranslationDatasetMetadata.Builder clearTargetLanguageCode()

Required. The BCP-47 language code of the target language.

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

Returns
TypeDescription
TranslationDatasetMetadata.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TranslationDatasetMetadata getDefaultInstanceForType()
Returns
TypeDescription
TranslationDatasetMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSourceLanguageCode()

public String getSourceLanguageCode()

Required. The BCP-47 language code of the source language.

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

Returns
TypeDescription
String

The sourceLanguageCode.

getSourceLanguageCodeBytes()

public ByteString getSourceLanguageCodeBytes()

Required. The BCP-47 language code of the source language.

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

Returns
TypeDescription
ByteString

The bytes for sourceLanguageCode.

getTargetLanguageCode()

public String getTargetLanguageCode()

Required. The BCP-47 language code of the target language.

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

Returns
TypeDescription
String

The targetLanguageCode.

getTargetLanguageCodeBytes()

public ByteString getTargetLanguageCodeBytes()

Required. The BCP-47 language code of the target language.

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

Returns
TypeDescription
ByteString

The bytes for targetLanguageCode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TranslationDatasetMetadata other)

public TranslationDatasetMetadata.Builder mergeFrom(TranslationDatasetMetadata other)
Parameter
NameDescription
otherTranslationDatasetMetadata
Returns
TypeDescription
TranslationDatasetMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSourceLanguageCode(String value)

public TranslationDatasetMetadata.Builder setSourceLanguageCode(String value)

Required. The BCP-47 language code of the source language.

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

Parameter
NameDescription
valueString

The sourceLanguageCode to set.

Returns
TypeDescription
TranslationDatasetMetadata.Builder

This builder for chaining.

setSourceLanguageCodeBytes(ByteString value)

public TranslationDatasetMetadata.Builder setSourceLanguageCodeBytes(ByteString value)

Required. The BCP-47 language code of the source language.

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

Parameter
NameDescription
valueByteString

The bytes for sourceLanguageCode to set.

Returns
TypeDescription
TranslationDatasetMetadata.Builder

This builder for chaining.

setTargetLanguageCode(String value)

public TranslationDatasetMetadata.Builder setTargetLanguageCode(String value)

Required. The BCP-47 language code of the target language.

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

Parameter
NameDescription
valueString

The targetLanguageCode to set.

Returns
TypeDescription
TranslationDatasetMetadata.Builder

This builder for chaining.

setTargetLanguageCodeBytes(ByteString value)

public TranslationDatasetMetadata.Builder setTargetLanguageCodeBytes(ByteString value)

Required. The BCP-47 language code of the target language.

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

Parameter
NameDescription
valueByteString

The bytes for targetLanguageCode to set.

Returns
TypeDescription
TranslationDatasetMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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