Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb

Overview

Annotation spec set with the setting of allowing multi labels or not.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig

Returns a new instance of GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig.



1072
1073
1074
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1072

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_multi_labelBoolean Also known as: allow_multi_label?

Optional. If allow_multi_label is true, contributors are able to choose multiple labels from one annotation spec set. Corresponds to the JSON property allowMultiLabel

Returns:

  • (Boolean)


1064
1065
1066
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1064

def allow_multi_label
  @allow_multi_label
end

#annotation_spec_setString

Required. Annotation spec set resource name. Corresponds to the JSON property annotationSpecSet

Returns:

  • (String)


1070
1071
1072
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1070

def annotation_spec_set
  @annotation_spec_set
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1077
1078
1079
1080
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1077

def update!(**args)
  @allow_multi_label = args[:allow_multi_label] if args.key?(:allow_multi_label)
  @annotation_spec_set = args[:annotation_spec_set] if args.key?(:annotation_spec_set)
end