Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Dataset

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

Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1Dataset

Returns a new instance of GoogleCloudDatalabelingV1beta1Dataset.



1671
1672
1673
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1671

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

Instance Attribute Details

#blocking_resourcesArray<String>

Output only. The names of any related resources that are blocking changes to the dataset. Corresponds to the JSON property blockingResources

Returns:

  • (Array<String>)


1628
1629
1630
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1628

def blocking_resources
  @blocking_resources
end

#create_timeString

Output only. Time the dataset is created. Corresponds to the JSON property createTime

Returns:

  • (String)


1633
1634
1635
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1633

def create_time
  @create_time
end

#data_item_countFixnum

Output only. The number of data items in the dataset. Corresponds to the JSON property dataItemCount

Returns:

  • (Fixnum)


1638
1639
1640
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1638

def data_item_count
  @data_item_count
end

#descriptionString

Optional. User-provided description of the annotation specification set. The description can be up to 10000 characters long. Corresponds to the JSON property description

Returns:

  • (String)


1644
1645
1646
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1644

def description
  @description
end

#display_nameString

Required. The display name of the dataset. Maximum of 64 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


1649
1650
1651
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1649

def display_name
  @display_name
end

#input_configsArray<Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1InputConfig>

Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset. Corresponds to the JSON property inputConfigs



1656
1657
1658
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1656

def input_configs
  @input_configs
end

#last_migrate_timeString

Last time that the Dataset is migrated to AI Platform V2. If any of the AnnotatedDataset is migrated, the last_migration_time in Dataset is also updated. Corresponds to the JSON property lastMigrateTime

Returns:

  • (String)


1663
1664
1665
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1663

def last_migrate_time
  @last_migrate_time
end

#nameString

Output only. Dataset resource name, format is: projects/project_id/datasets/ dataset_id Corresponds to the JSON property name

Returns:

  • (String)


1669
1670
1671
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1669

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1676

def update!(**args)
  @blocking_resources = args[:blocking_resources] if args.key?(:blocking_resources)
  @create_time = args[:create_time] if args.key?(:create_time)
  @data_item_count = args[:data_item_count] if args.key?(:data_item_count)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @input_configs = args[:input_configs] if args.key?(:input_configs)
  @last_migrate_time = args[:last_migrate_time] if args.key?(:last_migrate_time)
  @name = args[:name] if args.key?(:name)
end