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.



8781
8782
8783
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8781

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

Instance Attribute Details

#typeFixnum

Corresponds to the JSON property type

Returns:

  • (Fixnum)


8774
8775
8776
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8774

def type
  @type
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


8779
8780
8781
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8779

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8786
8787
8788
8789
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8786

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