class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSet

An AnnotationSpecSet is a collection of label definitions. For example, in image classification tasks, you define a set of possible labels for images as an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation.

Attributes

annotation_specs[RW]

Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task. Corresponds to the JSON property `annotationSpecs` @return [Array<Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec>]

blocking_resources[RW]

Output only. The names of any related resources that are blocking changes to the annotation spec set. Corresponds to the JSON property `blockingResources` @return [Array<String>]

description[RW]

Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long. Corresponds to the JSON property `description` @return [String]

display_name[RW]

Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters. Corresponds to the JSON property `displayName` @return [String]

name[RW]

Output only. The AnnotationSpecSet resource name in the following format: “ projects/`project_id`/annotationSpecSets/`annotation_spec_set_id`” Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 1042
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 1047
def update!(**args)
  @annotation_specs = args[:annotation_specs] if args.key?(:annotation_specs)
  @blocking_resources = args[:blocking_resources] if args.key?(:blocking_resources)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
end