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



3772
3773
3774
# File 'generated/google/apis/genomics_v1/classes.rb', line 3772

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


3735
3736
3737
# File 'generated/google/apis/genomics_v1/classes.rb', line 3735

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)


3742
3743
3744
# File 'generated/google/apis/genomics_v1/classes.rb', line 3742

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>>)


3748
3749
3750
# File 'generated/google/apis/genomics_v1/classes.rb', line 3748

def info
  @info
end

#keyString

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

Returns:

  • (String)


3753
3754
3755
# File 'generated/google/apis/genomics_v1/classes.rb', line 3753

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)


3759
3760
3761
# File 'generated/google/apis/genomics_v1/classes.rb', line 3759

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)


3765
3766
3767
# File 'generated/google/apis/genomics_v1/classes.rb', line 3765

def type
  @type
end

#valueString

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

Returns:

  • (String)


3770
3771
3772
# File 'generated/google/apis/genomics_v1/classes.rb', line 3770

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3777
3778
3779
3780
3781
3782
3783
3784
3785
# File 'generated/google/apis/genomics_v1/classes.rb', line 3777

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