class Google::Apis::GenomicsV1beta2::Metadata

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.

Attributes

description[RW]

A textual description of this metadata. Corresponds to the JSON property `description` @return [String]

id[RW]

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` @return [String]

info[RW]

A string which maps to an array of values. Corresponds to the JSON property `info` @return [Hash<String,Array<String>>]

key[RW]

The top-level key. Corresponds to the JSON property `key` @return [String]

number[RW]

The number of values that can be included in a field described by this metadata. Corresponds to the JSON property `number` @return [String]

type[RW]

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

value[RW]

The value field for simple metadata Corresponds to the JSON property `value` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/genomics_v1beta2/classes.rb, line 1363
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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