Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest

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

Overview

Request message for CreateAnnotationSpecSet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest

Returns a new instance of GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest.



1457
1458
1459
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1457

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

Instance Attribute Details

#annotation_spec_setGoogle::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. Corresponds to the JSON property annotationSpecSet



1455
1456
1457
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1455

def annotation_spec_set
  @annotation_spec_set
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1462
1463
1464
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1462

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