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.



1439
1440
1441
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1439

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)


1426
1427
1428
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1426

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)


1432
1433
1434
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1432

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)


1437
1438
1439
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1437

def events_restrict
  @events_restrict
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1444
1445
1446
1447
1448
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1444

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