Class ImageClassificationDatasetMetadata.Builder (2.43.0)

public static final class ImageClassificationDatasetMetadata.Builder extends GeneratedMessageV3.Builder<ImageClassificationDatasetMetadata.Builder> implements ImageClassificationDatasetMetadataOrBuilder

Dataset metadata that is specific to image classification.

Protobuf type google.cloud.automl.v1.ImageClassificationDatasetMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageClassificationDatasetMetadata build()
Returns
Type Description
ImageClassificationDatasetMetadata

buildPartial()

public ImageClassificationDatasetMetadata buildPartial()
Returns
Type Description
ImageClassificationDatasetMetadata

clear()

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

clearClassificationType()

public ImageClassificationDatasetMetadata.Builder clearClassificationType()

Required. Type of the classification problem.

.google.cloud.automl.v1.ClassificationType classification_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImageClassificationDatasetMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getClassificationType()

public ClassificationType getClassificationType()

Required. Type of the classification problem.

.google.cloud.automl.v1.ClassificationType classification_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ClassificationType

The classificationType.

getClassificationTypeValue()

public int getClassificationTypeValue()

Required. Type of the classification problem.

.google.cloud.automl.v1.ClassificationType classification_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for classificationType.

getDefaultInstanceForType()

public ImageClassificationDatasetMetadata getDefaultInstanceForType()
Returns
Type Description
ImageClassificationDatasetMetadata

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImageClassificationDatasetMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClassificationType(ClassificationType value)

public ImageClassificationDatasetMetadata.Builder setClassificationType(ClassificationType value)

Required. Type of the classification problem.

.google.cloud.automl.v1.ClassificationType classification_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ClassificationType

The classificationType to set.

Returns
Type Description
ImageClassificationDatasetMetadata.Builder

This builder for chaining.

setClassificationTypeValue(int value)

public ImageClassificationDatasetMetadata.Builder setClassificationTypeValue(int value)

Required. Type of the classification problem.

.google.cloud.automl.v1.ClassificationType classification_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for classificationType to set.

Returns
Type Description
ImageClassificationDatasetMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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