Class: Google::Apis::GenomicsV1::VariantSetMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/genomics_v1/classes.rb,
generated/google/apis/genomics_v1/representations.rb,
generated/google/apis/genomics_v1/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::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VariantSetMetadata

Returns a new instance of VariantSetMetadata



2180
2181
2182
# File 'generated/google/apis/genomics_v1/classes.rb', line 2180

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


2166
2167
2168
# File 'generated/google/apis/genomics_v1/classes.rb', line 2166

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)


2150
2151
2152
# File 'generated/google/apis/genomics_v1/classes.rb', line 2150

def id
  @id
end

#infoHash<String,Array<Object>>

Remaining structured metadata key-value pairs. This must be of the form map (string key mapping to a list of string values). Corresponds to the JSON property info

Returns:

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


2172
2173
2174
# File 'generated/google/apis/genomics_v1/classes.rb', line 2172

def info
  @info
end

#keyString

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

Returns:

  • (String)


2161
2162
2163
# File 'generated/google/apis/genomics_v1/classes.rb', line 2161

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)


2156
2157
2158
# File 'generated/google/apis/genomics_v1/classes.rb', line 2156

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)


2178
2179
2180
# File 'generated/google/apis/genomics_v1/classes.rb', line 2178

def type
  @type
end

#valueString

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

Returns:

  • (String)


2143
2144
2145
# File 'generated/google/apis/genomics_v1/classes.rb', line 2143

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2185
2186
2187
2188
2189
2190
2191
2192
2193
# File 'generated/google/apis/genomics_v1/classes.rb', line 2185

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