Class: Google::Apis::GenomicsV1beta2::Metadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
Defined in:
generated/google/apis/genomics_v1beta2/classes.rb,
generated/google/apis/genomics_v1beta2/representations.rb,
generated/google/apis/genomics_v1beta2/representations.rb

Overview

Metadata describes a single piece of variant call metadata. These data include a top level key and either a single value string (value) or a list of key- value pairs (info.) Value and info are mutually exclusive.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Metadata

Returns a new instance of Metadata



1363
1364
1365
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1363

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

Instance Attribute Details

#descriptionString

A textual description of this metadata. Corresponds to the JSON property description

Returns:

  • (String)


1328
1329
1330
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1328

def description
  @description
end

#idString

User-provided ID field, not enforced by this API. Two or more pieces of structured metadata with identical id and key fields are considered equivalent. Corresponds to the JSON property id

Returns:

  • (String)


1334
1335
1336
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1334

def id
  @id
end

#infoHash<String,Array<String>>

A string which maps to an array of values. Corresponds to the JSON property info

Returns:

  • (Hash<String,Array<String>>)


1339
1340
1341
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1339

def info
  @info
end

#keyString

The top-level key. Corresponds to the JSON property key

Returns:

  • (String)


1344
1345
1346
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1344

def key
  @key
end

#numberString

The number of values that can be included in a field described by this metadata. Corresponds to the JSON property number

Returns:

  • (String)


1350
1351
1352
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1350

def number
  @number
end

#typeString

The type of data. Possible types include: Integer, Float, Flag, Character, and String. Corresponds to the JSON property type

Returns:

  • (String)


1356
1357
1358
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1356

def type
  @type
end

#valueString

The value field for simple metadata Corresponds to the JSON property value

Returns:

  • (String)


1361
1362
1363
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1361

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1368
1369
1370
1371
1372
1373
1374
1375
1376
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1368

def update!(**args)
  @description = args[:description] unless args[:description].nil?
  @id = args[:id] unless args[:id].nil?
  @info = args[:info] unless args[:info].nil?
  @key = args[:key] unless args[:key].nil?
  @number = args[:number] unless args[:number].nil?
  @type = args[:type] unless args[:type].nil?
  @value = args[:value] unless args[:value].nil?
end