Class ImageClassificationDatasetMetadata.Builder (2.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageClassificationDatasetMetadata build()
Returns
TypeDescription
ImageClassificationDatasetMetadata

buildPartial()

public ImageClassificationDatasetMetadata buildPartial()
Returns
TypeDescription
ImageClassificationDatasetMetadata

clear()

public ImageClassificationDatasetMetadata.Builder clear()
Returns
TypeDescription
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
TypeDescription
ImageClassificationDatasetMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImageClassificationDatasetMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImageClassificationDatasetMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageClassificationDatasetMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImageClassificationDatasetMetadata.Builder
Overrides

clone()

public ImageClassificationDatasetMetadata.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for classificationType.

getDefaultInstanceForType()

public ImageClassificationDatasetMetadata getDefaultInstanceForType()
Returns
TypeDescription
ImageClassificationDatasetMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImageClassificationDatasetMetadata other)

public ImageClassificationDatasetMetadata.Builder mergeFrom(ImageClassificationDatasetMetadata other)
Parameter
NameDescription
otherImageClassificationDatasetMetadata
Returns
TypeDescription
ImageClassificationDatasetMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ImageClassificationDatasetMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImageClassificationDatasetMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageClassificationDatasetMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueClassificationType

The classificationType to set.

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

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

Returns
TypeDescription
ImageClassificationDatasetMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ImageClassificationDatasetMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImageClassificationDatasetMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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