Class Dataset.Builder (2.44.0)

public static final class Dataset.Builder extends GeneratedMessageV3.Builder<Dataset.Builder> implements DatasetOrBuilder

A workspace for solving a single, particular machine learning (ML) problem. A workspace contains examples that may be annotated.

Protobuf type google.cloud.automl.v1.Dataset

Implements

DatasetOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Dataset.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Dataset.Builder
Overrides

build()

public Dataset build()
Returns
Type Description
Dataset

buildPartial()

public Dataset buildPartial()
Returns
Type Description
Dataset

clear()

public Dataset.Builder clear()
Returns
Type Description
Dataset.Builder
Overrides

clearCreateTime()

public Dataset.Builder clearCreateTime()

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Returns
Type Description
Dataset.Builder

clearDatasetMetadata()

public Dataset.Builder clearDatasetMetadata()
Returns
Type Description
Dataset.Builder

clearDescription()

public Dataset.Builder clearDescription()

User-provided description of the dataset. The description can be up to 25000 characters long.

string description = 3;

Returns
Type Description
Dataset.Builder

This builder for chaining.

clearDisplayName()

public Dataset.Builder clearDisplayName()

Required. 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
Type Description
Dataset.Builder

This builder for chaining.

clearEtag()

public Dataset.Builder clearEtag()

Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

string etag = 17;

Returns
Type Description
Dataset.Builder

This builder for chaining.

clearExampleCount()

public Dataset.Builder clearExampleCount()

Output only. The number of examples in the dataset.

int32 example_count = 21;

Returns
Type Description
Dataset.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Dataset.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Dataset.Builder
Overrides

clearImageClassificationDatasetMetadata()

public Dataset.Builder clearImageClassificationDatasetMetadata()

Metadata for a dataset used for image classification.

.google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;

Returns
Type Description
Dataset.Builder

clearImageObjectDetectionDatasetMetadata()

public Dataset.Builder clearImageObjectDetectionDatasetMetadata()

Metadata for a dataset used for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;

Returns
Type Description
Dataset.Builder

clearLabels()

public Dataset.Builder clearLabels()
Returns
Type Description
Dataset.Builder

clearName()

public Dataset.Builder clearName()

Output only. The resource name of the dataset. Form: projects/{project_id}/locations/{location_id}/datasets/{dataset_id}

string name = 1;

Returns
Type Description
Dataset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Dataset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Dataset.Builder
Overrides

clearTextClassificationDatasetMetadata()

public Dataset.Builder clearTextClassificationDatasetMetadata()

Metadata for a dataset used for text classification.

.google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;

Returns
Type Description
Dataset.Builder

clearTextExtractionDatasetMetadata()

public Dataset.Builder clearTextExtractionDatasetMetadata()

Metadata for a dataset used for text extraction.

.google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;

Returns
Type Description
Dataset.Builder

clearTextSentimentDatasetMetadata()

public Dataset.Builder clearTextSentimentDatasetMetadata()

Metadata for a dataset used for text sentiment.

.google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;

Returns
Type Description
Dataset.Builder

clearTranslationDatasetMetadata()

public Dataset.Builder clearTranslationDatasetMetadata()

Metadata for a dataset used for translation.

.google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;

Returns
Type Description
Dataset.Builder

clone()

public Dataset.Builder clone()
Returns
Type Description
Dataset.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. The labels with user-defined metadata to organize your dataset.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

See https://goo.gl/xmQnxf for more information on and examples of labels.

map<string, string> labels = 39;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Returns
Type Description
TimestampOrBuilder

getDatasetMetadataCase()

public Dataset.DatasetMetadataCase getDatasetMetadataCase()
Returns
Type Description
Dataset.DatasetMetadataCase

getDefaultInstanceForType()

public Dataset getDefaultInstanceForType()
Returns
Type Description
Dataset

getDescription()

public String getDescription()

User-provided description of the dataset. The description can be up to 25000 characters long.

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User-provided description of the dataset. The description can be up to 25000 characters long.

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. 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
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. 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
Type Description
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

string etag = 17;

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

string etag = 17;

Returns
Type Description
ByteString

The bytes for etag.

getExampleCount()

public int getExampleCount()

Output only. The number of examples in the dataset.

int32 example_count = 21;

Returns
Type Description
int

The exampleCount.

getImageClassificationDatasetMetadata()

public ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata()

Metadata for a dataset used for image classification.

.google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;

Returns
Type Description
ImageClassificationDatasetMetadata

The imageClassificationDatasetMetadata.

getImageClassificationDatasetMetadataBuilder()

public ImageClassificationDatasetMetadata.Builder getImageClassificationDatasetMetadataBuilder()

Metadata for a dataset used for image classification.

.google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;

Returns
Type Description
ImageClassificationDatasetMetadata.Builder

getImageClassificationDatasetMetadataOrBuilder()

public ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder()

Metadata for a dataset used for image classification.

.google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;

Returns
Type Description
ImageClassificationDatasetMetadataOrBuilder

getImageObjectDetectionDatasetMetadata()

public ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata()

Metadata for a dataset used for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;

Returns
Type Description
ImageObjectDetectionDatasetMetadata

The imageObjectDetectionDatasetMetadata.

getImageObjectDetectionDatasetMetadataBuilder()

public ImageObjectDetectionDatasetMetadata.Builder getImageObjectDetectionDatasetMetadataBuilder()

Metadata for a dataset used for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;

Returns
Type Description
ImageObjectDetectionDatasetMetadata.Builder

getImageObjectDetectionDatasetMetadataOrBuilder()

public ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder()

Metadata for a dataset used for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;

Returns
Type Description
ImageObjectDetectionDatasetMetadataOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. The labels with user-defined metadata to organize your dataset.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

See https://goo.gl/xmQnxf for more information on and examples of labels.

map<string, string> labels = 39;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. The labels with user-defined metadata to organize your dataset.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

See https://goo.gl/xmQnxf for more information on and examples of labels.

map<string, string> labels = 39;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. The labels with user-defined metadata to organize your dataset.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

See https://goo.gl/xmQnxf for more information on and examples of labels.

map<string, string> labels = 39;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. The labels with user-defined metadata to organize your dataset.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

See https://goo.gl/xmQnxf for more information on and examples of labels.

map<string, string> labels = 39;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Output only. The resource name of the dataset. Form: projects/{project_id}/locations/{location_id}/datasets/{dataset_id}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the dataset. Form: projects/{project_id}/locations/{location_id}/datasets/{dataset_id}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getTextClassificationDatasetMetadata()

public TextClassificationDatasetMetadata getTextClassificationDatasetMetadata()

Metadata for a dataset used for text classification.

.google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;

Returns
Type Description
TextClassificationDatasetMetadata

The textClassificationDatasetMetadata.

getTextClassificationDatasetMetadataBuilder()

public TextClassificationDatasetMetadata.Builder getTextClassificationDatasetMetadataBuilder()

Metadata for a dataset used for text classification.

.google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;

Returns
Type Description
TextClassificationDatasetMetadata.Builder

getTextClassificationDatasetMetadataOrBuilder()

public TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder()

Metadata for a dataset used for text classification.

.google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;

Returns
Type Description
TextClassificationDatasetMetadataOrBuilder

getTextExtractionDatasetMetadata()

public TextExtractionDatasetMetadata getTextExtractionDatasetMetadata()

Metadata for a dataset used for text extraction.

.google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;

Returns
Type Description
TextExtractionDatasetMetadata

The textExtractionDatasetMetadata.

getTextExtractionDatasetMetadataBuilder()

public TextExtractionDatasetMetadata.Builder getTextExtractionDatasetMetadataBuilder()

Metadata for a dataset used for text extraction.

.google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;

Returns
Type Description
TextExtractionDatasetMetadata.Builder

getTextExtractionDatasetMetadataOrBuilder()

public TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder()

Metadata for a dataset used for text extraction.

.google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;

Returns
Type Description
TextExtractionDatasetMetadataOrBuilder

getTextSentimentDatasetMetadata()

public TextSentimentDatasetMetadata getTextSentimentDatasetMetadata()

Metadata for a dataset used for text sentiment.

.google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;

Returns
Type Description
TextSentimentDatasetMetadata

The textSentimentDatasetMetadata.

getTextSentimentDatasetMetadataBuilder()

public TextSentimentDatasetMetadata.Builder getTextSentimentDatasetMetadataBuilder()

Metadata for a dataset used for text sentiment.

.google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;

Returns
Type Description
TextSentimentDatasetMetadata.Builder

getTextSentimentDatasetMetadataOrBuilder()

public TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder()

Metadata for a dataset used for text sentiment.

.google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;

Returns
Type Description
TextSentimentDatasetMetadataOrBuilder

getTranslationDatasetMetadata()

public TranslationDatasetMetadata getTranslationDatasetMetadata()

Metadata for a dataset used for translation.

.google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;

Returns
Type Description
TranslationDatasetMetadata

The translationDatasetMetadata.

getTranslationDatasetMetadataBuilder()

public TranslationDatasetMetadata.Builder getTranslationDatasetMetadataBuilder()

Metadata for a dataset used for translation.

.google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;

Returns
Type Description
TranslationDatasetMetadata.Builder

getTranslationDatasetMetadataOrBuilder()

public TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder()

Metadata for a dataset used for translation.

.google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;

Returns
Type Description
TranslationDatasetMetadataOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Returns
Type Description
boolean

Whether the createTime field is set.

hasImageClassificationDatasetMetadata()

public boolean hasImageClassificationDatasetMetadata()

Metadata for a dataset used for image classification.

.google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;

Returns
Type Description
boolean

Whether the imageClassificationDatasetMetadata field is set.

hasImageObjectDetectionDatasetMetadata()

public boolean hasImageObjectDetectionDatasetMetadata()

Metadata for a dataset used for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;

Returns
Type Description
boolean

Whether the imageObjectDetectionDatasetMetadata field is set.

hasTextClassificationDatasetMetadata()

public boolean hasTextClassificationDatasetMetadata()

Metadata for a dataset used for text classification.

.google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;

Returns
Type Description
boolean

Whether the textClassificationDatasetMetadata field is set.

hasTextExtractionDatasetMetadata()

public boolean hasTextExtractionDatasetMetadata()

Metadata for a dataset used for text extraction.

.google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;

Returns
Type Description
boolean

Whether the textExtractionDatasetMetadata field is set.

hasTextSentimentDatasetMetadata()

public boolean hasTextSentimentDatasetMetadata()

Metadata for a dataset used for text sentiment.

.google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;

Returns
Type Description
boolean

Whether the textSentimentDatasetMetadata field is set.

hasTranslationDatasetMetadata()

public boolean hasTranslationDatasetMetadata()

Metadata for a dataset used for translation.

.google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;

Returns
Type Description
boolean

Whether the translationDatasetMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Dataset.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Parameter
Name Description
value Timestamp
Returns
Type Description
Dataset.Builder

mergeFrom(Dataset other)

public Dataset.Builder mergeFrom(Dataset other)
Parameter
Name Description
other Dataset
Returns
Type Description
Dataset.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Dataset.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dataset.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Dataset.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Dataset.Builder
Overrides

mergeImageClassificationDatasetMetadata(ImageClassificationDatasetMetadata value)

public Dataset.Builder mergeImageClassificationDatasetMetadata(ImageClassificationDatasetMetadata value)

Metadata for a dataset used for image classification.

.google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;

Parameter
Name Description
value ImageClassificationDatasetMetadata
Returns
Type Description
Dataset.Builder

mergeImageObjectDetectionDatasetMetadata(ImageObjectDetectionDatasetMetadata value)

public Dataset.Builder mergeImageObjectDetectionDatasetMetadata(ImageObjectDetectionDatasetMetadata value)

Metadata for a dataset used for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;

Parameter
Name Description
value ImageObjectDetectionDatasetMetadata
Returns
Type Description
Dataset.Builder

mergeTextClassificationDatasetMetadata(TextClassificationDatasetMetadata value)

public Dataset.Builder mergeTextClassificationDatasetMetadata(TextClassificationDatasetMetadata value)

Metadata for a dataset used for text classification.

.google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;

Parameter
Name Description
value TextClassificationDatasetMetadata
Returns
Type Description
Dataset.Builder

mergeTextExtractionDatasetMetadata(TextExtractionDatasetMetadata value)

public Dataset.Builder mergeTextExtractionDatasetMetadata(TextExtractionDatasetMetadata value)

Metadata for a dataset used for text extraction.

.google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;

Parameter
Name Description
value TextExtractionDatasetMetadata
Returns
Type Description
Dataset.Builder

mergeTextSentimentDatasetMetadata(TextSentimentDatasetMetadata value)

public Dataset.Builder mergeTextSentimentDatasetMetadata(TextSentimentDatasetMetadata value)

Metadata for a dataset used for text sentiment.

.google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;

Parameter
Name Description
value TextSentimentDatasetMetadata
Returns
Type Description
Dataset.Builder

mergeTranslationDatasetMetadata(TranslationDatasetMetadata value)

public Dataset.Builder mergeTranslationDatasetMetadata(TranslationDatasetMetadata value)

Metadata for a dataset used for translation.

.google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;

Parameter
Name Description
value TranslationDatasetMetadata
Returns
Type Description
Dataset.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Dataset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Dataset.Builder
Overrides

putAllLabels(Map<String,String> values)

public Dataset.Builder putAllLabels(Map<String,String> values)

Optional. The labels with user-defined metadata to organize your dataset.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

See https://goo.gl/xmQnxf for more information on and examples of labels.

map<string, string> labels = 39;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Dataset.Builder

putLabels(String key, String value)

public Dataset.Builder putLabels(String key, String value)

Optional. The labels with user-defined metadata to organize your dataset.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

See https://goo.gl/xmQnxf for more information on and examples of labels.

map<string, string> labels = 39;

Parameters
Name Description
key String
value String
Returns
Type Description
Dataset.Builder

removeLabels(String key)

public Dataset.Builder removeLabels(String key)

Optional. The labels with user-defined metadata to organize your dataset.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

See https://goo.gl/xmQnxf for more information on and examples of labels.

map<string, string> labels = 39;

Parameter
Name Description
key String
Returns
Type Description
Dataset.Builder

setCreateTime(Timestamp value)

public Dataset.Builder setCreateTime(Timestamp value)

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Parameter
Name Description
value Timestamp
Returns
Type Description
Dataset.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Dataset.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Dataset.Builder

setDescription(String value)

public Dataset.Builder setDescription(String value)

User-provided description of the dataset. The description can be up to 25000 characters long.

string description = 3;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Dataset.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Dataset.Builder setDescriptionBytes(ByteString value)

User-provided description of the dataset. The description can be up to 25000 characters long.

string description = 3;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Dataset.Builder

This builder for chaining.

setDisplayName(String value)

public Dataset.Builder setDisplayName(String value)

Required. 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;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Dataset.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Dataset.Builder setDisplayNameBytes(ByteString value)

Required. 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;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Dataset.Builder

This builder for chaining.

setEtag(String value)

public Dataset.Builder setEtag(String value)

Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

string etag = 17;

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Dataset.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Dataset.Builder setEtagBytes(ByteString value)

Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

string etag = 17;

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Dataset.Builder

This builder for chaining.

setExampleCount(int value)

public Dataset.Builder setExampleCount(int value)

Output only. The number of examples in the dataset.

int32 example_count = 21;

Parameter
Name Description
value int

The exampleCount to set.

Returns
Type Description
Dataset.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Dataset.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Dataset.Builder
Overrides

setImageClassificationDatasetMetadata(ImageClassificationDatasetMetadata value)

public Dataset.Builder setImageClassificationDatasetMetadata(ImageClassificationDatasetMetadata value)

Metadata for a dataset used for image classification.

.google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;

Parameter
Name Description
value ImageClassificationDatasetMetadata
Returns
Type Description
Dataset.Builder

setImageClassificationDatasetMetadata(ImageClassificationDatasetMetadata.Builder builderForValue)

public Dataset.Builder setImageClassificationDatasetMetadata(ImageClassificationDatasetMetadata.Builder builderForValue)

Metadata for a dataset used for image classification.

.google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;

Parameter
Name Description
builderForValue ImageClassificationDatasetMetadata.Builder
Returns
Type Description
Dataset.Builder

setImageObjectDetectionDatasetMetadata(ImageObjectDetectionDatasetMetadata value)

public Dataset.Builder setImageObjectDetectionDatasetMetadata(ImageObjectDetectionDatasetMetadata value)

Metadata for a dataset used for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;

Parameter
Name Description
value ImageObjectDetectionDatasetMetadata
Returns
Type Description
Dataset.Builder

setImageObjectDetectionDatasetMetadata(ImageObjectDetectionDatasetMetadata.Builder builderForValue)

public Dataset.Builder setImageObjectDetectionDatasetMetadata(ImageObjectDetectionDatasetMetadata.Builder builderForValue)

Metadata for a dataset used for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;

Parameter
Name Description
builderForValue ImageObjectDetectionDatasetMetadata.Builder
Returns
Type Description
Dataset.Builder

setName(String value)

public Dataset.Builder setName(String value)

Output only. The resource name of the dataset. Form: projects/{project_id}/locations/{location_id}/datasets/{dataset_id}

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Dataset.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Dataset.Builder setNameBytes(ByteString value)

Output only. The resource name of the dataset. Form: projects/{project_id}/locations/{location_id}/datasets/{dataset_id}

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Dataset.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Dataset.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Dataset.Builder
Overrides

setTextClassificationDatasetMetadata(TextClassificationDatasetMetadata value)

public Dataset.Builder setTextClassificationDatasetMetadata(TextClassificationDatasetMetadata value)

Metadata for a dataset used for text classification.

.google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;

Parameter
Name Description
value TextClassificationDatasetMetadata
Returns
Type Description
Dataset.Builder

setTextClassificationDatasetMetadata(TextClassificationDatasetMetadata.Builder builderForValue)

public Dataset.Builder setTextClassificationDatasetMetadata(TextClassificationDatasetMetadata.Builder builderForValue)

Metadata for a dataset used for text classification.

.google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;

Parameter
Name Description
builderForValue TextClassificationDatasetMetadata.Builder
Returns
Type Description
Dataset.Builder

setTextExtractionDatasetMetadata(TextExtractionDatasetMetadata value)

public Dataset.Builder setTextExtractionDatasetMetadata(TextExtractionDatasetMetadata value)

Metadata for a dataset used for text extraction.

.google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;

Parameter
Name Description
value TextExtractionDatasetMetadata
Returns
Type Description
Dataset.Builder

setTextExtractionDatasetMetadata(TextExtractionDatasetMetadata.Builder builderForValue)

public Dataset.Builder setTextExtractionDatasetMetadata(TextExtractionDatasetMetadata.Builder builderForValue)

Metadata for a dataset used for text extraction.

.google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;

Parameter
Name Description
builderForValue TextExtractionDatasetMetadata.Builder
Returns
Type Description
Dataset.Builder

setTextSentimentDatasetMetadata(TextSentimentDatasetMetadata value)

public Dataset.Builder setTextSentimentDatasetMetadata(TextSentimentDatasetMetadata value)

Metadata for a dataset used for text sentiment.

.google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;

Parameter
Name Description
value TextSentimentDatasetMetadata
Returns
Type Description
Dataset.Builder

setTextSentimentDatasetMetadata(TextSentimentDatasetMetadata.Builder builderForValue)

public Dataset.Builder setTextSentimentDatasetMetadata(TextSentimentDatasetMetadata.Builder builderForValue)

Metadata for a dataset used for text sentiment.

.google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;

Parameter
Name Description
builderForValue TextSentimentDatasetMetadata.Builder
Returns
Type Description
Dataset.Builder

setTranslationDatasetMetadata(TranslationDatasetMetadata value)

public Dataset.Builder setTranslationDatasetMetadata(TranslationDatasetMetadata value)

Metadata for a dataset used for translation.

.google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;

Parameter
Name Description
value TranslationDatasetMetadata
Returns
Type Description
Dataset.Builder

setTranslationDatasetMetadata(TranslationDatasetMetadata.Builder builderForValue)

public Dataset.Builder setTranslationDatasetMetadata(TranslationDatasetMetadata.Builder builderForValue)

Metadata for a dataset used for translation.

.google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;

Parameter
Name Description
builderForValue TranslationDatasetMetadata.Builder
Returns
Type Description
Dataset.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Dataset.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Dataset.Builder
Overrides