Class TranslationDatasetMetadata (2.37.0)

public final class TranslationDatasetMetadata extends GeneratedMessageV3 implements TranslationDatasetMetadataOrBuilder

Dataset metadata that is specific to translation.

Protobuf type google.cloud.automl.v1.TranslationDatasetMetadata

Static Fields

SOURCE_LANGUAGE_CODE_FIELD_NUMBER

public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_LANGUAGE_CODE_FIELD_NUMBER

public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TranslationDatasetMetadata getDefaultInstance()
Returns
TypeDescription
TranslationDatasetMetadata

getDescriptor()

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

newBuilder()

public static TranslationDatasetMetadata.Builder newBuilder()
Returns
TypeDescription
TranslationDatasetMetadata.Builder

newBuilder(TranslationDatasetMetadata prototype)

public static TranslationDatasetMetadata.Builder newBuilder(TranslationDatasetMetadata prototype)
Parameter
NameDescription
prototypeTranslationDatasetMetadata
Returns
TypeDescription
TranslationDatasetMetadata.Builder

parseDelimitedFrom(InputStream input)

public static TranslationDatasetMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationDatasetMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TranslationDatasetMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TranslationDatasetMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TranslationDatasetMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TranslationDatasetMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TranslationDatasetMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationDatasetMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TranslationDatasetMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationDatasetMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TranslationDatasetMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TranslationDatasetMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationDatasetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TranslationDatasetMetadata> parser()
Returns
TypeDescription
Parser<TranslationDatasetMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TranslationDatasetMetadata getDefaultInstanceForType()
Returns
TypeDescription
TranslationDatasetMetadata

getParserForType()

public Parser<TranslationDatasetMetadata> getParserForType()
Returns
TypeDescription
Parser<TranslationDatasetMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TranslationDatasetMetadata.Builder newBuilderForType()
Returns
TypeDescription
TranslationDatasetMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TranslationDatasetMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TranslationDatasetMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TranslationDatasetMetadata.Builder toBuilder()
Returns
TypeDescription
TranslationDatasetMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException