- 2.51.0 (latest)
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.18
- 2.2.3
- 2.1.23
public static final class TranslationModelMetadata.Builder extends GeneratedMessageV3.Builder<TranslationModelMetadata.Builder> implements TranslationModelMetadataOrBuilder
Model metadata that is specific to translation.
Protobuf type google.cloud.automl.v1.TranslationModelMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TranslationModelMetadata.BuilderImplements
TranslationModelMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslationModelMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TranslationModelMetadata.Builder |
build()
public TranslationModelMetadata build()
Type | Description |
TranslationModelMetadata |
buildPartial()
public TranslationModelMetadata buildPartial()
Type | Description |
TranslationModelMetadata |
clear()
public TranslationModelMetadata.Builder clear()
Type | Description |
TranslationModelMetadata.Builder |
clearBaseModel()
public TranslationModelMetadata.Builder clearBaseModel()
The resource name of the model to use as a baseline to train the custom
model. If unset, we use the default base model provided by Google
Translate. Format:
projects/{project_id}/locations/{location_id}/models/{model_id}
string base_model = 1;
Type | Description |
TranslationModelMetadata.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TranslationModelMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TranslationModelMetadata.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TranslationModelMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TranslationModelMetadata.Builder |
clearSourceLanguageCode()
public TranslationModelMetadata.Builder clearSourceLanguageCode()
Output only. Inferred from the dataset. The source language (The BCP-47 language code) that is used for training.
string source_language_code = 2;
Type | Description |
TranslationModelMetadata.Builder | This builder for chaining. |
clearTargetLanguageCode()
public TranslationModelMetadata.Builder clearTargetLanguageCode()
Output only. The target language (The BCP-47 language code) that is used for training.
string target_language_code = 3;
Type | Description |
TranslationModelMetadata.Builder | This builder for chaining. |
clone()
public TranslationModelMetadata.Builder clone()
Type | Description |
TranslationModelMetadata.Builder |
getBaseModel()
public String getBaseModel()
The resource name of the model to use as a baseline to train the custom
model. If unset, we use the default base model provided by Google
Translate. Format:
projects/{project_id}/locations/{location_id}/models/{model_id}
string base_model = 1;
Type | Description |
String | The baseModel. |
getBaseModelBytes()
public ByteString getBaseModelBytes()
The resource name of the model to use as a baseline to train the custom
model. If unset, we use the default base model provided by Google
Translate. Format:
projects/{project_id}/locations/{location_id}/models/{model_id}
string base_model = 1;
Type | Description |
ByteString | The bytes for baseModel. |
getDefaultInstanceForType()
public TranslationModelMetadata getDefaultInstanceForType()
Type | Description |
TranslationModelMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getSourceLanguageCode()
public String getSourceLanguageCode()
Output only. Inferred from the dataset. The source language (The BCP-47 language code) that is used for training.
string source_language_code = 2;
Type | Description |
String | The sourceLanguageCode. |
getSourceLanguageCodeBytes()
public ByteString getSourceLanguageCodeBytes()
Output only. Inferred from the dataset. The source language (The BCP-47 language code) that is used for training.
string source_language_code = 2;
Type | Description |
ByteString | The bytes for sourceLanguageCode. |
getTargetLanguageCode()
public String getTargetLanguageCode()
Output only. The target language (The BCP-47 language code) that is used for training.
string target_language_code = 3;
Type | Description |
String | The targetLanguageCode. |
getTargetLanguageCodeBytes()
public ByteString getTargetLanguageCodeBytes()
Output only. The target language (The BCP-47 language code) that is used for training.
string target_language_code = 3;
Type | Description |
ByteString | The bytes for targetLanguageCode. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(TranslationModelMetadata other)
public TranslationModelMetadata.Builder mergeFrom(TranslationModelMetadata other)
Name | Description |
other | TranslationModelMetadata |
Type | Description |
TranslationModelMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TranslationModelMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TranslationModelMetadata.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TranslationModelMetadata.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TranslationModelMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranslationModelMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TranslationModelMetadata.Builder |
setBaseModel(String value)
public TranslationModelMetadata.Builder setBaseModel(String value)
The resource name of the model to use as a baseline to train the custom
model. If unset, we use the default base model provided by Google
Translate. Format:
projects/{project_id}/locations/{location_id}/models/{model_id}
string base_model = 1;
Name | Description |
value | String The baseModel to set. |
Type | Description |
TranslationModelMetadata.Builder | This builder for chaining. |
setBaseModelBytes(ByteString value)
public TranslationModelMetadata.Builder setBaseModelBytes(ByteString value)
The resource name of the model to use as a baseline to train the custom
model. If unset, we use the default base model provided by Google
Translate. Format:
projects/{project_id}/locations/{location_id}/models/{model_id}
string base_model = 1;
Name | Description |
value | ByteString The bytes for baseModel to set. |
Type | Description |
TranslationModelMetadata.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TranslationModelMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TranslationModelMetadata.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranslationModelMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TranslationModelMetadata.Builder |
setSourceLanguageCode(String value)
public TranslationModelMetadata.Builder setSourceLanguageCode(String value)
Output only. Inferred from the dataset. The source language (The BCP-47 language code) that is used for training.
string source_language_code = 2;
Name | Description |
value | String The sourceLanguageCode to set. |
Type | Description |
TranslationModelMetadata.Builder | This builder for chaining. |
setSourceLanguageCodeBytes(ByteString value)
public TranslationModelMetadata.Builder setSourceLanguageCodeBytes(ByteString value)
Output only. Inferred from the dataset. The source language (The BCP-47 language code) that is used for training.
string source_language_code = 2;
Name | Description |
value | ByteString The bytes for sourceLanguageCode to set. |
Type | Description |
TranslationModelMetadata.Builder | This builder for chaining. |
setTargetLanguageCode(String value)
public TranslationModelMetadata.Builder setTargetLanguageCode(String value)
Output only. The target language (The BCP-47 language code) that is used for training.
string target_language_code = 3;
Name | Description |
value | String The targetLanguageCode to set. |
Type | Description |
TranslationModelMetadata.Builder | This builder for chaining. |
setTargetLanguageCodeBytes(ByteString value)
public TranslationModelMetadata.Builder setTargetLanguageCodeBytes(ByteString value)
Output only. The target language (The BCP-47 language code) that is used for training.
string target_language_code = 3;
Name | Description |
value | ByteString The bytes for targetLanguageCode to set. |
Type | Description |
TranslationModelMetadata.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TranslationModelMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TranslationModelMetadata.Builder |