Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1InputConfig

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

The configuration of input data, including data type, location, etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1InputConfig

Returns a new instance of GoogleCloudDatalabelingV1beta1InputConfig.



2847
2848
2849
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2847

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

Instance Attribute Details

#annotation_typeString

Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an EvaluationJob. Corresponds to the JSON property annotationType

Returns:

  • (String)


2818
2819
2820
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2818

def annotation_type
  @annotation_type
end

#bigquery_sourceGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1BigQuerySource

The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version. Corresponds to the JSON property bigquerySource



2825
2826
2827
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2825

def bigquery_source
  @bigquery_source
end

#classification_metadataGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ClassificationMetadata

Metadata for classification annotations. Corresponds to the JSON property classificationMetadata



2830
2831
2832
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2830

def 
  @classification_metadata
end

#data_typeString

Required. Data type must be specifed when user tries to import data. Corresponds to the JSON property dataType

Returns:

  • (String)


2835
2836
2837
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2835

def data_type
  @data_type
end

#gcs_sourceGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1GcsSource

Source of the Cloud Storage file to be imported. Corresponds to the JSON property gcsSource



2840
2841
2842
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2840

def gcs_source
  @gcs_source
end

#text_metadataGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextMetadata

Metadata for the text. Corresponds to the JSON property textMetadata



2845
2846
2847
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2845

def 
  @text_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2852
2853
2854
2855
2856
2857
2858
2859
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 2852

def update!(**args)
  @annotation_type = args[:annotation_type] if args.key?(:annotation_type)
  @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
  @classification_metadata = args[:classification_metadata] if args.key?(:classification_metadata)
  @data_type = args[:data_type] if args.key?(:data_type)
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
  @text_metadata = args[:text_metadata] if args.key?(:text_metadata)
end