public final class Dataset extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
EXAMPLE_COUNT_FIELD_NUMBER
public static final int EXAMPLE_COUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int IMAGE_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int IMAGE_OBJECT_DETECTION_DATASET_METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TEXT_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER
public static final int TEXT_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TEXT_EXTRACTION_DATASET_METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TEXT_SENTIMENT_DATASET_METADATA_FIELD_NUMBER
public static final int TEXT_SENTIMENT_DATASET_METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TRANSLATION_DATASET_METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Dataset getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Dataset.Builder newBuilder()
newBuilder(Dataset prototype)
public static Dataset.Builder newBuilder(Dataset prototype)
Parameter |
---|
Name | Description |
prototype | Dataset
|
public static Dataset parseDelimitedFrom(InputStream input)
public static Dataset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Dataset parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Dataset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Dataset parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Dataset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Dataset parseFrom(CodedInputStream input)
public static Dataset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Dataset parseFrom(InputStream input)
public static Dataset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Dataset parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Dataset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Dataset> parser()
Methods
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
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getCreateTime()
public Timestamp getCreateTime()
Output only. Timestamp when this dataset was created.
.google.protobuf.Timestamp create_time = 14;
Returns |
---|
Type | Description |
Timestamp | The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when this dataset was created.
.google.protobuf.Timestamp create_time = 14;
public Dataset.DatasetMetadataCase getDatasetMetadataCase()
getDefaultInstanceForType()
public Dataset getDefaultInstanceForType()
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.
|
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()
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.
|
public ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata()
Metadata for a dataset used for image classification.
.google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;
public ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder()
Metadata for a dataset used for image classification.
.google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;
public ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata()
Metadata for a dataset used for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;
public ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder()
Metadata for a dataset used for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;
getLabels()
public Map<String,String> getLabels()
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;
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;
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
|
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.
|
getParserForType()
public Parser<Dataset> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getTextClassificationDatasetMetadata()
public TextClassificationDatasetMetadata getTextClassificationDatasetMetadata()
Metadata for a dataset used for text classification.
.google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;
getTextClassificationDatasetMetadataOrBuilder()
public TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder()
Metadata for a dataset used for text classification.
.google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;
public TextExtractionDatasetMetadata getTextExtractionDatasetMetadata()
Metadata for a dataset used for text extraction.
.google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;
public TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder()
Metadata for a dataset used for text extraction.
.google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;
getTextSentimentDatasetMetadata()
public TextSentimentDatasetMetadata getTextSentimentDatasetMetadata()
Metadata for a dataset used for text sentiment.
.google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;
getTextSentimentDatasetMetadataOrBuilder()
public TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder()
Metadata for a dataset used for text sentiment.
.google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;
public TranslationDatasetMetadata getTranslationDatasetMetadata()
Metadata for a dataset used for translation.
.google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;
public TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder()
Metadata for a dataset used for translation.
.google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
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.
|
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.
|
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.
|
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.
|
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.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Dataset.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Dataset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Dataset.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides