public static final class Model.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder> implements ModelOrBuilder
A trained translation model.Protobuf type
google.cloud.translation.v3.Model| Modifier and Type | Method and Description |
|---|---|
Model.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Model |
build() |
Model |
buildPartial() |
Model.Builder |
clear() |
Model.Builder |
clearCreateTime()
Output only.
|
Model.Builder |
clearDataset()
The dataset from which the model is trained, in form of
`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
string dataset = 3; |
Model.Builder |
clearDisplayName()
The name of the model to show in the interface.
|
Model.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Model.Builder |
clearName()
The resource name of the model, in form of
`projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
string name = 1; |
Model.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Model.Builder |
clearSourceLanguageCode()
Output only.
|
Model.Builder |
clearTargetLanguageCode()
Output only.
|
Model.Builder |
clearTestExampleCount()
Output only.
|
Model.Builder |
clearTrainExampleCount()
Output only.
|
Model.Builder |
clearUpdateTime()
Output only.
|
Model.Builder |
clearValidateExampleCount()
Output only.
|
Model.Builder |
clone() |
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
String |
getDataset()
The dataset from which the model is trained, in form of
`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
string dataset = 3; |
com.google.protobuf.ByteString |
getDatasetBytes()
The dataset from which the model is trained, in form of
`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
string dataset = 3; |
Model |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
The name of the model to show in the interface.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
The name of the model to show in the interface.
|
String |
getName()
The resource name of the model, in form of
`projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the model, in form of
`projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
string name = 1; |
String |
getSourceLanguageCode()
Output only.
|
com.google.protobuf.ByteString |
getSourceLanguageCodeBytes()
Output only.
|
String |
getTargetLanguageCode()
Output only.
|
com.google.protobuf.ByteString |
getTargetLanguageCodeBytes()
Output only.
|
int |
getTestExampleCount()
Output only.
|
int |
getTrainExampleCount()
Output only.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
int |
getValidateExampleCount()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Model.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Model.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Model.Builder |
mergeFrom(com.google.protobuf.Message other) |
Model.Builder |
mergeFrom(Model other) |
Model.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Model.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
Model.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Model.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Model.Builder |
setDataset(String value)
The dataset from which the model is trained, in form of
`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
string dataset = 3; |
Model.Builder |
setDatasetBytes(com.google.protobuf.ByteString value)
The dataset from which the model is trained, in form of
`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
string dataset = 3; |
Model.Builder |
setDisplayName(String value)
The name of the model to show in the interface.
|
Model.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
The name of the model to show in the interface.
|
Model.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Model.Builder |
setName(String value)
The resource name of the model, in form of
`projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
string name = 1; |
Model.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the model, in form of
`projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
string name = 1; |
Model.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Model.Builder |
setSourceLanguageCode(String value)
Output only.
|
Model.Builder |
setSourceLanguageCodeBytes(com.google.protobuf.ByteString value)
Output only.
|
Model.Builder |
setTargetLanguageCode(String value)
Output only.
|
Model.Builder |
setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
Output only.
|
Model.Builder |
setTestExampleCount(int value)
Output only.
|
Model.Builder |
setTrainExampleCount(int value)
Output only.
|
Model.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Model.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Model.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
Model.Builder |
setValidateExampleCount(int value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public Model.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public Model getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Model build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Model buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Model.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public Model.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public Model.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public Model.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public Model.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public Model.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public Model.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Model.Builder>public Model.Builder mergeFrom(Model other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public Model.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Model.Builder>IOExceptionpublic String getName()
The resource name of the model, in form of
`projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
string name = 1;getName in interface ModelOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The resource name of the model, in form of
`projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
string name = 1;getNameBytes in interface ModelOrBuilderpublic Model.Builder setName(String value)
The resource name of the model, in form of
`projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
string name = 1;value - The name to set.public Model.Builder clearName()
The resource name of the model, in form of
`projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
string name = 1;public Model.Builder setNameBytes(com.google.protobuf.ByteString value)
The resource name of the model, in form of
`projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
string name = 1;value - The bytes for name to set.public String getDisplayName()
The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
string display_name = 2;getDisplayName in interface ModelOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
string display_name = 2;getDisplayNameBytes in interface ModelOrBuilderpublic Model.Builder setDisplayName(String value)
The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
string display_name = 2;value - The displayName to set.public Model.Builder clearDisplayName()
The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
string display_name = 2;public Model.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
string display_name = 2;value - The bytes for displayName to set.public String getDataset()
The dataset from which the model is trained, in form of
`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
string dataset = 3;getDataset in interface ModelOrBuilderpublic com.google.protobuf.ByteString getDatasetBytes()
The dataset from which the model is trained, in form of
`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
string dataset = 3;getDatasetBytes in interface ModelOrBuilderpublic Model.Builder setDataset(String value)
The dataset from which the model is trained, in form of
`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
string dataset = 3;value - The dataset to set.public Model.Builder clearDataset()
The dataset from which the model is trained, in form of
`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
string dataset = 3;public Model.Builder setDatasetBytes(com.google.protobuf.ByteString value)
The dataset from which the model is trained, in form of
`projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
string dataset = 3;value - The bytes for dataset to set.public String getSourceLanguageCode()
Output only. The BCP-47 language code of the source language.
string source_language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getSourceLanguageCode in interface ModelOrBuilderpublic com.google.protobuf.ByteString getSourceLanguageCodeBytes()
Output only. The BCP-47 language code of the source language.
string source_language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getSourceLanguageCodeBytes in interface ModelOrBuilderpublic Model.Builder setSourceLanguageCode(String value)
Output only. The BCP-47 language code of the source language.
string source_language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The sourceLanguageCode to set.public Model.Builder clearSourceLanguageCode()
Output only. The BCP-47 language code of the source language.
string source_language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];public Model.Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value)
Output only. The BCP-47 language code of the source language.
string source_language_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for sourceLanguageCode to set.public String getTargetLanguageCode()
Output only. The BCP-47 language code of the target language.
string target_language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];getTargetLanguageCode in interface ModelOrBuilderpublic com.google.protobuf.ByteString getTargetLanguageCodeBytes()
Output only. The BCP-47 language code of the target language.
string target_language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];getTargetLanguageCodeBytes in interface ModelOrBuilderpublic Model.Builder setTargetLanguageCode(String value)
Output only. The BCP-47 language code of the target language.
string target_language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The targetLanguageCode to set.public Model.Builder clearTargetLanguageCode()
Output only. The BCP-47 language code of the target language.
string target_language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];public Model.Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
Output only. The BCP-47 language code of the target language.
string target_language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for targetLanguageCode to set.public int getTrainExampleCount()
Output only. Number of examples (sentence pairs) used to train the model.
int32 train_example_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getTrainExampleCount in interface ModelOrBuilderpublic Model.Builder setTrainExampleCount(int value)
Output only. Number of examples (sentence pairs) used to train the model.
int32 train_example_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The trainExampleCount to set.public Model.Builder clearTrainExampleCount()
Output only. Number of examples (sentence pairs) used to train the model.
int32 train_example_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];public int getValidateExampleCount()
Output only. Number of examples (sentence pairs) used to validate the model.
int32 validate_example_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];getValidateExampleCount in interface ModelOrBuilderpublic Model.Builder setValidateExampleCount(int value)
Output only. Number of examples (sentence pairs) used to validate the model.
int32 validate_example_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The validateExampleCount to set.public Model.Builder clearValidateExampleCount()
Output only. Number of examples (sentence pairs) used to validate the model.
int32 validate_example_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];public int getTestExampleCount()
Output only. Number of examples (sentence pairs) used to test the model.
int32 test_example_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];getTestExampleCount in interface ModelOrBuilderpublic Model.Builder setTestExampleCount(int value)
Output only. Number of examples (sentence pairs) used to test the model.
int32 test_example_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The testExampleCount to set.public Model.Builder clearTestExampleCount()
Output only. Number of examples (sentence pairs) used to test the model.
int32 test_example_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];public boolean hasCreateTime()
Output only. Timestamp when the model resource was created, which is also when the training started.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface ModelOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Timestamp when the model resource was created, which is also when the training started.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface ModelOrBuilderpublic Model.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp when the model resource was created, which is also when the training started.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Model.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Timestamp when the model resource was created, which is also when the training started.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Model.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp when the model resource was created, which is also when the training started.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Model.Builder clearCreateTime()
Output only. Timestamp when the model resource was created, which is also when the training started.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Timestamp when the model resource was created, which is also when the training started.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when the model resource was created, which is also when the training started.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface ModelOrBuilderpublic boolean hasUpdateTime()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface ModelOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface ModelOrBuilderpublic Model.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Model.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Model.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Model.Builder clearUpdateTime()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface ModelOrBuilderpublic final Model.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>public final Model.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Model.Builder>Copyright © 2024 Google LLC. All rights reserved.