- 2.78.0 (latest)
 - 2.76.0
 - 2.75.0
 - 2.74.0
 - 2.73.0
 - 2.72.0
 - 2.70.0
 - 2.68.0
 - 2.67.0
 - 2.64.0
 - 2.63.0
 - 2.62.0
 - 2.60.0
 - 2.59.0
 - 2.58.0
 - 2.57.0
 - 2.56.0
 - 2.55.0
 - 2.54.0
 - 2.53.0
 - 2.52.0
 - 2.51.0
 - 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 TranslationModelMetadataOrBuilderModel metadata that is specific to translation.
 Protobuf type google.cloud.automl.v1beta1.TranslationModelMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TranslationModelMetadata.BuilderImplements
TranslationModelMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslationModelMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        |
build()
public TranslationModelMetadata build()| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata | 
        |
buildPartial()
public TranslationModelMetadata buildPartial()| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata | 
        |
clear()
public TranslationModelMetadata.Builder clear()| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        This builder for chaining.  | 
      
clearField(Descriptors.FieldDescriptor field)
public TranslationModelMetadata.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        |
clearOneof(Descriptors.OneofDescriptor oneof)
public TranslationModelMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        |
clearSourceLanguageCode()
public TranslationModelMetadata.Builder clearSourceLanguageCode()Output only. Inferred from the dataset. The source languge (The BCP-47 language code) that is used for training.
 string source_language_code = 2;
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        This builder for chaining.  | 
      
clearTargetLanguageCode()
public TranslationModelMetadata.Builder clearTargetLanguageCode()Output only. The target languge (The BCP-47 language code) that is used for training.
 string target_language_code = 3;
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        This builder for chaining.  | 
      
clone()
public TranslationModelMetadata.Builder clone()| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for baseModel.  | 
      
getDefaultInstanceForType()
public TranslationModelMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getSourceLanguageCode()
public String getSourceLanguageCode()Output only. Inferred from the dataset. The source languge (The BCP-47 language code) that is used for training.
 string source_language_code = 2;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The sourceLanguageCode.  | 
      
getSourceLanguageCodeBytes()
public ByteString getSourceLanguageCodeBytes()Output only. Inferred from the dataset. The source languge (The BCP-47 language code) that is used for training.
 string source_language_code = 2;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for sourceLanguageCode.  | 
      
getTargetLanguageCode()
public String getTargetLanguageCode()Output only. The target languge (The BCP-47 language code) that is used for training.
 string target_language_code = 3;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The targetLanguageCode.  | 
      
getTargetLanguageCodeBytes()
public ByteString getTargetLanguageCodeBytes()Output only. The target languge (The BCP-47 language code) that is used for training.
 string target_language_code = 3;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for targetLanguageCode.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(TranslationModelMetadata other)
public TranslationModelMetadata.Builder mergeFrom(TranslationModelMetadata other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        TranslationModelMetadata | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TranslationModelMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public TranslationModelMetadata.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranslationModelMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe baseModel to set.  | 
      
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for baseModel to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        This builder for chaining.  | 
      
setField(Descriptors.FieldDescriptor field, Object value)
public TranslationModelMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranslationModelMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        |
setSourceLanguageCode(String value)
public TranslationModelMetadata.Builder setSourceLanguageCode(String value)Output only. Inferred from the dataset. The source languge (The BCP-47 language code) that is used for training.
 string source_language_code = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe sourceLanguageCode to set.  | 
      
| Returns | |
|---|---|
| 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 languge (The BCP-47 language code) that is used for training.
 string source_language_code = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for sourceLanguageCode to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        This builder for chaining.  | 
      
setTargetLanguageCode(String value)
public TranslationModelMetadata.Builder setTargetLanguageCode(String value)Output only. The target languge (The BCP-47 language code) that is used for training.
 string target_language_code = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe targetLanguageCode to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        This builder for chaining.  | 
      
setTargetLanguageCodeBytes(ByteString value)
public TranslationModelMetadata.Builder setTargetLanguageCodeBytes(ByteString value)Output only. The target languge (The BCP-47 language code) that is used for training.
 string target_language_code = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for targetLanguageCode to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final TranslationModelMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
TranslationModelMetadata.Builder | 
        |