Class ImageClassificationConfig.Builder (0.123.3)

See more code actions.
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 Overrides

build()

public ImageClassificationConfig build()
Returns

buildPartial()

public ImageClassificationConfig buildPartial()
Returns

clear()

public ImageClassificationConfig.Builder clear()
Returns 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 Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ImageClassificationConfig.Builder clone()
Returns 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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setUnknownFields(UnknownFieldSet unknownFields)

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