Class ImageClassificationConfig.Builder (0.123.7)

public static final class ImageClassificationConfig.Builder extends GeneratedMessageV3.Builder<ImageClassificationConfig.Builder> implements ImageClassificationConfigOrBuilder

Config for image classification human labeling task.

Protobuf type google.cloud.datalabeling.v1beta1.ImageClassificationConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageClassificationConfig build()
Returns
TypeDescription
ImageClassificationConfig

buildPartial()

public ImageClassificationConfig buildPartial()
Returns
TypeDescription
ImageClassificationConfig

clear()

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

clearAllowMultiLabel()

public ImageClassificationConfig.Builder clearAllowMultiLabel()

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one image.

bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ImageClassificationConfig.Builder

This builder for chaining.

clearAnnotationSpecSet()

public ImageClassificationConfig.Builder clearAnnotationSpecSet()

Required. Annotation spec set resource name.

string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImageClassificationConfig.Builder

This builder for chaining.

clearAnswerAggregationType()

public ImageClassificationConfig.Builder clearAnswerAggregationType()

Optional. The type of how to aggregate answers.

.google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ImageClassificationConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ImageClassificationConfig.Builder clone()
Returns
TypeDescription
ImageClassificationConfig.Builder
Overrides

getAllowMultiLabel()

public boolean getAllowMultiLabel()

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one image.

bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The allowMultiLabel.

getAnnotationSpecSet()

public String getAnnotationSpecSet()

Required. Annotation spec set resource name.

string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The annotationSpecSet.

getAnnotationSpecSetBytes()

public ByteString getAnnotationSpecSetBytes()

Required. Annotation spec set resource name.

string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for annotationSpecSet.

getAnswerAggregationType()

public StringAggregationType getAnswerAggregationType()

Optional. The type of how to aggregate answers.

.google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StringAggregationType

The answerAggregationType.

getAnswerAggregationTypeValue()

public int getAnswerAggregationTypeValue()

Optional. The type of how to aggregate answers.

.google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for answerAggregationType.

getDefaultInstanceForType()

public ImageClassificationConfig getDefaultInstanceForType()
Returns
TypeDescription
ImageClassificationConfig

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(ImageClassificationConfig other)

public ImageClassificationConfig.Builder mergeFrom(ImageClassificationConfig other)
Parameter
NameDescription
otherImageClassificationConfig
Returns
TypeDescription
ImageClassificationConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageClassificationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageClassificationConfig.Builder
Overrides

setAllowMultiLabel(boolean value)

public ImageClassificationConfig.Builder setAllowMultiLabel(boolean value)

Optional. If allow_multi_label is true, contributors are able to choose multiple labels for one image.

bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The allowMultiLabel to set.

Returns
TypeDescription
ImageClassificationConfig.Builder

This builder for chaining.

setAnnotationSpecSet(String value)

public ImageClassificationConfig.Builder setAnnotationSpecSet(String value)

Required. Annotation spec set resource name.

string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The annotationSpecSet to set.

Returns
TypeDescription
ImageClassificationConfig.Builder

This builder for chaining.

setAnnotationSpecSetBytes(ByteString value)

public ImageClassificationConfig.Builder setAnnotationSpecSetBytes(ByteString value)

Required. Annotation spec set resource name.

string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for annotationSpecSet to set.

Returns
TypeDescription
ImageClassificationConfig.Builder

This builder for chaining.

setAnswerAggregationType(StringAggregationType value)

public ImageClassificationConfig.Builder setAnswerAggregationType(StringAggregationType value)

Optional. The type of how to aggregate answers.

.google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueStringAggregationType

The answerAggregationType to set.

Returns
TypeDescription
ImageClassificationConfig.Builder

This builder for chaining.

setAnswerAggregationTypeValue(int value)

public ImageClassificationConfig.Builder setAnswerAggregationTypeValue(int value)

Optional. The type of how to aggregate answers.

.google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ImageClassificationConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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