Class: Google::Apis::CloudsearchV1::EventAnnotation

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventAnnotation

Returns a new instance of EventAnnotation.



7575
7576
7577
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7575

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

Instance Attribute Details

#typeFixnum

Corresponds to the JSON property type

Returns:

  • (Fixnum)


7568
7569
7570
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7568

def type
  @type
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


7573
7574
7575
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7573

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7580
7581
7582
7583
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7580

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