Class Dataset.Builder (2.2.3)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Dataset.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Dataset.Builder
Overrides

build()

public Dataset build()
Returns
TypeDescription
Dataset

buildPartial()

public Dataset buildPartial()
Returns
TypeDescription
Dataset

clear()

public Dataset.Builder clear()
Returns
TypeDescription
Dataset.Builder
Overrides

clearCreateTime()

public Dataset.Builder clearCreateTime()

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Returns
TypeDescription
Dataset.Builder

clearDatasetMetadata()

public Dataset.Builder clearDatasetMetadata()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Dataset.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Dataset.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Dataset.Builder

clearLabels()

public Dataset.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
Dataset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Dataset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Dataset.Builder

clearTranslationDatasetMetadata()

public Dataset.Builder clearTranslationDatasetMetadata()

Metadata for a dataset used for translation.

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

Returns
TypeDescription
Dataset.Builder

clone()

public Dataset.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Returns
TypeDescription
TimestampOrBuilder

getDatasetMetadataCase()

public Dataset.DatasetMetadataCase getDatasetMetadataCase()
Returns
TypeDescription
Dataset.DatasetMetadataCase

getDefaultInstanceForType()

public Dataset getDefaultInstanceForType()
Returns
TypeDescription
Dataset

getDescription()

public String getDescription()

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

string description = 3;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for etag.

getExampleCount()

public int getExampleCount()

Output only. The number of examples in the dataset.

int32 example_count = 21;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ImageObjectDetectionDatasetMetadataOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TextClassificationDatasetMetadataOrBuilder

getTextExtractionDatasetMetadata()

public TextExtractionDatasetMetadata getTextExtractionDatasetMetadata()

Metadata for a dataset used for text extraction.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TextExtractionDatasetMetadataOrBuilder

getTextSentimentDatasetMetadata()

public TextSentimentDatasetMetadata getTextSentimentDatasetMetadata()

Metadata for a dataset used for text sentiment.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TextSentimentDatasetMetadataOrBuilder

getTranslationDatasetMetadata()

public TranslationDatasetMetadata getTranslationDatasetMetadata()

Metadata for a dataset used for translation.

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

Returns
TypeDescription
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
TypeDescription
TranslationDatasetMetadata.Builder

getTranslationDatasetMetadataOrBuilder()

public TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder()

Metadata for a dataset used for translation.

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

Returns
TypeDescription
TranslationDatasetMetadataOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when this dataset was created.

.google.protobuf.Timestamp create_time = 14;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the translationDatasetMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Dataset.Builder

mergeFrom(Dataset other)

public Dataset.Builder mergeFrom(Dataset other)
Parameter
NameDescription
otherDataset
Returns
TypeDescription
Dataset.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Dataset.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Dataset.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Dataset.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueImageClassificationDatasetMetadata
Returns
TypeDescription
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
NameDescription
valueImageObjectDetectionDatasetMetadata
Returns
TypeDescription
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
NameDescription
valueTextClassificationDatasetMetadata
Returns
TypeDescription
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
NameDescription
valueTextExtractionDatasetMetadata
Returns
TypeDescription
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
NameDescription
valueTextSentimentDatasetMetadata
Returns
TypeDescription
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
NameDescription
valueTranslationDatasetMetadata
Returns
TypeDescription
Dataset.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Dataset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
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
NameDescription
valueint

The exampleCount to set.

Returns
TypeDescription
Dataset.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Dataset.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueImageClassificationDatasetMetadata
Returns
TypeDescription
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
NameDescription
builderForValueImageClassificationDatasetMetadata.Builder
Returns
TypeDescription
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
NameDescription
valueImageObjectDetectionDatasetMetadata
Returns
TypeDescription
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
NameDescription
builderForValueImageObjectDetectionDatasetMetadata.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTextClassificationDatasetMetadata
Returns
TypeDescription
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
NameDescription
builderForValueTextClassificationDatasetMetadata.Builder
Returns
TypeDescription
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
NameDescription
valueTextExtractionDatasetMetadata
Returns
TypeDescription
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
NameDescription
builderForValueTextExtractionDatasetMetadata.Builder
Returns
TypeDescription
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
NameDescription
valueTextSentimentDatasetMetadata
Returns
TypeDescription
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
NameDescription
builderForValueTextSentimentDatasetMetadata.Builder
Returns
TypeDescription
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
NameDescription
valueTranslationDatasetMetadata
Returns
TypeDescription
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
NameDescription
builderForValueTranslationDatasetMetadata.Builder
Returns
TypeDescription
Dataset.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Dataset.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Dataset.Builder
Overrides