Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickAgendaGroupCardProtoContext

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

Overview

The context that resulted in the generation of the card.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseTopazSidekickAgendaGroupCardProtoContext

Returns a new instance of EnterpriseTopazSidekickAgendaGroupCardProtoContext.



1406
1407
1408
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1406

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

Instance Attribute Details

#contextString

User friendly free text that describes the context of the card (e.g. "Next meeting with Bob"). This is largely only applicable when the card is generated from a query. Corresponds to the JSON property context

Returns:

  • (String)


1393
1394
1395
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1393

def context
  @context
end

#dateString

Localized free text that describes the dates represented by the card. Currently, the card will only represent a single day. Corresponds to the JSON property date

Returns:

  • (String)


1399
1400
1401
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1399

def date
  @date
end

#events_restrictString

Represents restrictions applied to the events requested in the user's query. Corresponds to the JSON property eventsRestrict

Returns:

  • (String)


1404
1405
1406
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1404

def events_restrict
  @events_restrict
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1411
1412
1413
1414
1415
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1411

def update!(**args)
  @context = args[:context] if args.key?(:context)
  @date = args[:date] if args.key?(:date)
  @events_restrict = args[:events_restrict] if args.key?(:events_restrict)
end