Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelTextRequest

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

Request message for LabelText.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1LabelTextRequest

Returns a new instance of GoogleCloudDatalabelingV1beta1LabelTextRequest.



3299
3300
3301
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3299

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

Instance Attribute Details

#basic_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1HumanAnnotationConfig

Configuration for how human labeling task should be done. Corresponds to the JSON property basicConfig



3282
3283
3284
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3282

def basic_config
  @basic_config
end

#featureString

Required. The type of text labeling task. Corresponds to the JSON property feature

Returns:

  • (String)


3287
3288
3289
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3287

def feature
  @feature
end

#text_classification_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextClassificationConfig

Config for text classification human labeling task. Corresponds to the JSON property textClassificationConfig



3292
3293
3294
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3292

def text_classification_config
  @text_classification_config
end

#text_entity_extraction_configGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig

Config for text entity extraction human labeling task. Corresponds to the JSON property textEntityExtractionConfig



3297
3298
3299
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3297

def text_entity_extraction_config
  @text_entity_extraction_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3304
3305
3306
3307
3308
3309
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 3304

def update!(**args)
  @basic_config = args[:basic_config] if args.key?(:basic_config)
  @feature = args[:feature] if args.key?(:feature)
  @text_classification_config = args[:text_classification_config] if args.key?(:text_classification_config)
  @text_entity_extraction_config = args[:text_entity_extraction_config] if args.key?(:text_entity_extraction_config)
end