Package com.google.cloud.translate.v3
Class Dataset.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Dataset.Builder>
com.google.cloud.translate.v3.Dataset.Builder
- All Implemented Interfaces:
DatasetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Dataset
public static final class Dataset.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Dataset.Builder>
implements DatasetOrBuilder
A dataset that hosts the examples (sentence pairs) used for translation models.Protobuf type
google.cloud.translation.v3.Dataset-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.The name of the dataset to show in the interface.Output only.The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`The BCP-47 language code of the source language.The BCP-47 language code of the target language.Output only.Output only.Output only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name of the dataset to show in the interface.com.google.protobuf.ByteStringThe name of the dataset to show in the interface.intOutput only.getName()The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`com.google.protobuf.ByteStringThe resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`The BCP-47 language code of the source language.com.google.protobuf.ByteStringThe BCP-47 language code of the source language.The BCP-47 language code of the target language.com.google.protobuf.ByteStringThe BCP-47 language code of the target language.intOutput only.intOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.intOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDisplayName(String value) The name of the dataset to show in the interface.setDisplayNameBytes(com.google.protobuf.ByteString value) The name of the dataset to show in the interface.setExampleCount(int value) Output only.The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`setNameBytes(com.google.protobuf.ByteString value) The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`setSourceLanguageCode(String value) The BCP-47 language code of the source language.setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) The BCP-47 language code of the source language.setTargetLanguageCode(String value) The BCP-47 language code of the target language.setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) The BCP-47 language code of the target language.setTestExampleCount(int value) Output only.setTrainExampleCount(int value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setValidateExampleCount(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Dataset.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Dataset.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Dataset.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Dataset.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Dataset.Builder>
-
mergeFrom
public Dataset.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Dataset.Builder>- Throws:
IOException
-
getName
The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`string name = 1;- Specified by:
getNamein interfaceDatasetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`string name = 1;- Specified by:
getNameBytesin interfaceDatasetOrBuilder- Returns:
- The bytes for name.
-
setName
The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
The name of the dataset 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;- Specified by:
getDisplayNamein interfaceDatasetOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The name of the dataset 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;- Specified by:
getDisplayNameBytesin interfaceDatasetOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
The name of the dataset 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;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
The name of the dataset 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;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
The name of the dataset 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;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getSourceLanguageCode
The BCP-47 language code of the source language.
string source_language_code = 3;- Specified by:
getSourceLanguageCodein interfaceDatasetOrBuilder- Returns:
- The sourceLanguageCode.
-
getSourceLanguageCodeBytes
public com.google.protobuf.ByteString getSourceLanguageCodeBytes()The BCP-47 language code of the source language.
string source_language_code = 3;- Specified by:
getSourceLanguageCodeBytesin interfaceDatasetOrBuilder- Returns:
- The bytes for sourceLanguageCode.
-
setSourceLanguageCode
The BCP-47 language code of the source language.
string source_language_code = 3;- Parameters:
value- The sourceLanguageCode to set.- Returns:
- This builder for chaining.
-
clearSourceLanguageCode
The BCP-47 language code of the source language.
string source_language_code = 3;- Returns:
- This builder for chaining.
-
setSourceLanguageCodeBytes
The BCP-47 language code of the source language.
string source_language_code = 3;- Parameters:
value- The bytes for sourceLanguageCode to set.- Returns:
- This builder for chaining.
-
getTargetLanguageCode
The BCP-47 language code of the target language.
string target_language_code = 4;- Specified by:
getTargetLanguageCodein interfaceDatasetOrBuilder- Returns:
- The targetLanguageCode.
-
getTargetLanguageCodeBytes
public com.google.protobuf.ByteString getTargetLanguageCodeBytes()The BCP-47 language code of the target language.
string target_language_code = 4;- Specified by:
getTargetLanguageCodeBytesin interfaceDatasetOrBuilder- Returns:
- The bytes for targetLanguageCode.
-
setTargetLanguageCode
The BCP-47 language code of the target language.
string target_language_code = 4;- Parameters:
value- The targetLanguageCode to set.- Returns:
- This builder for chaining.
-
clearTargetLanguageCode
The BCP-47 language code of the target language.
string target_language_code = 4;- Returns:
- This builder for chaining.
-
setTargetLanguageCodeBytes
The BCP-47 language code of the target language.
string target_language_code = 4;- Parameters:
value- The bytes for targetLanguageCode to set.- Returns:
- This builder for chaining.
-
getExampleCount
public int getExampleCount()Output only. The number of examples in the dataset.
int32 example_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExampleCountin interfaceDatasetOrBuilder- Returns:
- The exampleCount.
-
setExampleCount
Output only. The number of examples in the dataset.
int32 example_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The exampleCount to set.- Returns:
- This builder for chaining.
-
clearExampleCount
Output only. The number of examples in the dataset.
int32 example_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getTrainExampleCount
public int getTrainExampleCount()Output only. Number of training examples (sentence pairs).
int32 train_example_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTrainExampleCountin interfaceDatasetOrBuilder- Returns:
- The trainExampleCount.
-
setTrainExampleCount
Output only. Number of training examples (sentence pairs).
int32 train_example_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The trainExampleCount to set.- Returns:
- This builder for chaining.
-
clearTrainExampleCount
Output only. Number of training examples (sentence pairs).
int32 train_example_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getValidateExampleCount
public int getValidateExampleCount()Output only. Number of validation examples (sentence pairs).
int32 validate_example_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getValidateExampleCountin interfaceDatasetOrBuilder- Returns:
- The validateExampleCount.
-
setValidateExampleCount
Output only. Number of validation examples (sentence pairs).
int32 validate_example_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The validateExampleCount to set.- Returns:
- This builder for chaining.
-
clearValidateExampleCount
Output only. Number of validation examples (sentence pairs).
int32 validate_example_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getTestExampleCount
public int getTestExampleCount()Output only. Number of test examples (sentence pairs).
int32 test_example_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTestExampleCountin interfaceDatasetOrBuilder- Returns:
- The testExampleCount.
-
setTestExampleCount
Output only. Number of test examples (sentence pairs).
int32 test_example_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The testExampleCount to set.- Returns:
- This builder for chaining.
-
clearTestExampleCount
Output only. Number of test examples (sentence pairs).
int32 test_example_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Timestamp when this dataset was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceDatasetOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Timestamp when this dataset was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceDatasetOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Timestamp when this dataset was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Timestamp when this dataset was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Timestamp when this dataset was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Timestamp when this dataset was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Timestamp when this dataset was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Timestamp when this dataset was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceDatasetOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Timestamp when this dataset was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceDatasetOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Timestamp when this dataset was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceDatasetOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Timestamp when this dataset was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. Timestamp when this dataset was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Timestamp when this dataset was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Timestamp when this dataset was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Timestamp when this dataset was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Timestamp when this dataset was last updated.
.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceDatasetOrBuilder
-