Class: Google::Apps::Chat::V1::ChatService::Rest::Client::Configuration

Inherits:
Object
  • Object
show all
Extended by:
Gapic::Config
Defined in:
lib/google/apps/chat/v1/chat_service/rest/client.rb

Overview

Configuration class for the ChatService REST API.

This class represents the configuration for ChatService REST, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.

Configuration can be applied globally to all clients, or to a single client on construction.

Examples:


# Modify the global config, setting the timeout for
# create_message to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Apps::Chat::V1::ChatService::Rest::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.create_message.timeout = 20.0
end

# Apply the above configuration only to a new client.
client = ::Google::Apps::Chat::V1::ChatService::Rest::Client.new do |config|
  config.timeout = 10.0
  config.rpcs.create_message.timeout = 20.0
end

Defined Under Namespace

Classes: Rpcs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#credentials::Object

Credentials to send with calls. You may provide any of the following types:

  • (String) The path to a service account key file in JSON format
  • (Hash) A service account key as a Hash
  • (Google::Auth::Credentials) A googleauth credentials object (see the googleauth docs)
  • (Signet::OAuth2::Client) A signet oauth2 client object (see the signet docs)
  • (nil) indicating no credentials

Warning: If you accept a credential configuration (JSON file or Hash) from an external source for authentication to Google Cloud, you must validate it before providing it to a Google API client library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to Validate credential configurations from external sources.

Returns:

  • (::Object)


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

#endpoint::String?

A custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.

Returns:

  • (::String, nil)


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

#logger::Logger, ...

A custom logger to use for request/response debug logging, or the value :default (the default) to construct a default logger, or nil to explicitly disable logging.

Returns:

  • (::Logger, :default, nil)


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

#metadata::Hash{::Symbol=>::String}

Additional headers to be sent with the call.

Returns:

  • (::Hash{::Symbol=>::String})


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

#retry_policy::Hash

The retry policy. The value is a hash with the following keys:

  • :initial_delay (type: Numeric) - The initial delay in seconds.
  • :max_delay (type: Numeric) - The max delay in seconds.
  • :multiplier (type: Numeric) - The incremental backoff multiplier.
  • :jitter (type: Numeric) - The jitter in seconds. Default: 1.0.
  • :retry_codes (type: Array<String>) - The error codes that should trigger a retry.

Returns:

  • (::Hash)


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

#universe_domain::String?

The universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).

Returns:

  • (::String, nil)


6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6428

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "chat.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil
  config_attr :logger, :default, ::Logger, nil, :default

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the ChatService API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_message
    ##
    # RPC-specific configuration for `list_messages`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_messages
    ##
    # RPC-specific configuration for `list_memberships`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_memberships
    ##
    # RPC-specific configuration for `get_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_membership
    ##
    # RPC-specific configuration for `get_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_message
    ##
    # RPC-specific configuration for `update_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_message
    ##
    # RPC-specific configuration for `delete_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_message
    ##
    # RPC-specific configuration for `get_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_attachment
    ##
    # RPC-specific configuration for `upload_attachment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_attachment
    ##
    # RPC-specific configuration for `list_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_spaces
    ##
    # RPC-specific configuration for `search_spaces`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_spaces
    ##
    # RPC-specific configuration for `get_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space
    ##
    # RPC-specific configuration for `create_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_space
    ##
    # RPC-specific configuration for `set_up_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_up_space
    ##
    # RPC-specific configuration for `update_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space
    ##
    # RPC-specific configuration for `delete_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_space
    ##
    # RPC-specific configuration for `complete_import_space`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :complete_import_space
    ##
    # RPC-specific configuration for `find_direct_message`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_direct_message
    ##
    # RPC-specific configuration for `find_group_chats`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :find_group_chats
    ##
    # RPC-specific configuration for `create_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_membership
    ##
    # RPC-specific configuration for `update_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_membership
    ##
    # RPC-specific configuration for `delete_membership`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_membership
    ##
    # RPC-specific configuration for `create_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_reaction
    ##
    # RPC-specific configuration for `list_reactions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_reactions
    ##
    # RPC-specific configuration for `delete_reaction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_reaction
    ##
    # RPC-specific configuration for `create_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_custom_emoji
    ##
    # RPC-specific configuration for `get_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_custom_emoji
    ##
    # RPC-specific configuration for `list_custom_emojis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_custom_emojis
    ##
    # RPC-specific configuration for `delete_custom_emoji`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_custom_emoji
    ##
    # RPC-specific configuration for `get_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_read_state
    ##
    # RPC-specific configuration for `update_space_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_read_state
    ##
    # RPC-specific configuration for `get_thread_read_state`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_thread_read_state
    ##
    # RPC-specific configuration for `get_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_availability
    ##
    # RPC-specific configuration for `mark_as_active`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_active
    ##
    # RPC-specific configuration for `mark_as_away`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_away
    ##
    # RPC-specific configuration for `mark_as_do_not_disturb`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :mark_as_do_not_disturb
    ##
    # RPC-specific configuration for `update_availability`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_availability
    ##
    # RPC-specific configuration for `get_space_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_event
    ##
    # RPC-specific configuration for `list_space_events`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_space_events
    ##
    # RPC-specific configuration for `get_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_space_notification_setting
    ##
    # RPC-specific configuration for `update_space_notification_setting`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_space_notification_setting
    ##
    # RPC-specific configuration for `create_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_section
    ##
    # RPC-specific configuration for `delete_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_section
    ##
    # RPC-specific configuration for `update_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_section
    ##
    # RPC-specific configuration for `list_sections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_sections
    ##
    # RPC-specific configuration for `position_section`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :position_section
    ##
    # RPC-specific configuration for `list_section_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_section_items
    ##
    # RPC-specific configuration for `move_section_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :move_section_item

    # @private
    def initialize parent_rpcs = nil
      create_message_config = parent_rpcs.create_message if parent_rpcs.respond_to? :create_message
      @create_message = ::Gapic::Config::Method.new create_message_config
      list_messages_config = parent_rpcs.list_messages if parent_rpcs.respond_to? :list_messages
      @list_messages = ::Gapic::Config::Method.new list_messages_config
      list_memberships_config = parent_rpcs.list_memberships if parent_rpcs.respond_to? :list_memberships
      @list_memberships = ::Gapic::Config::Method.new list_memberships_config
      get_membership_config = parent_rpcs.get_membership if parent_rpcs.respond_to? :get_membership
      @get_membership = ::Gapic::Config::Method.new get_membership_config
      get_message_config = parent_rpcs.get_message if parent_rpcs.respond_to? :get_message
      @get_message = ::Gapic::Config::Method.new get_message_config
      update_message_config = parent_rpcs.update_message if parent_rpcs.respond_to? :update_message
      @update_message = ::Gapic::Config::Method.new update_message_config
      delete_message_config = parent_rpcs.delete_message if parent_rpcs.respond_to? :delete_message
      @delete_message = ::Gapic::Config::Method.new delete_message_config
      get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
      @get_attachment = ::Gapic::Config::Method.new get_attachment_config
      upload_attachment_config = parent_rpcs.upload_attachment if parent_rpcs.respond_to? :upload_attachment
      @upload_attachment = ::Gapic::Config::Method.new upload_attachment_config
      list_spaces_config = parent_rpcs.list_spaces if parent_rpcs.respond_to? :list_spaces
      @list_spaces = ::Gapic::Config::Method.new list_spaces_config
      search_spaces_config = parent_rpcs.search_spaces if parent_rpcs.respond_to? :search_spaces
      @search_spaces = ::Gapic::Config::Method.new search_spaces_config
      get_space_config = parent_rpcs.get_space if parent_rpcs.respond_to? :get_space
      @get_space = ::Gapic::Config::Method.new get_space_config
      create_space_config = parent_rpcs.create_space if parent_rpcs.respond_to? :create_space
      @create_space = ::Gapic::Config::Method.new create_space_config
      set_up_space_config = parent_rpcs.set_up_space if parent_rpcs.respond_to? :set_up_space
      @set_up_space = ::Gapic::Config::Method.new set_up_space_config
      update_space_config = parent_rpcs.update_space if parent_rpcs.respond_to? :update_space
      @update_space = ::Gapic::Config::Method.new update_space_config
      delete_space_config = parent_rpcs.delete_space if parent_rpcs.respond_to? :delete_space
      @delete_space = ::Gapic::Config::Method.new delete_space_config
      complete_import_space_config = parent_rpcs.complete_import_space if parent_rpcs.respond_to? :complete_import_space
      @complete_import_space = ::Gapic::Config::Method.new complete_import_space_config
      find_direct_message_config = parent_rpcs.find_direct_message if parent_rpcs.respond_to? :find_direct_message
      @find_direct_message = ::Gapic::Config::Method.new find_direct_message_config
      find_group_chats_config = parent_rpcs.find_group_chats if parent_rpcs.respond_to? :find_group_chats
      @find_group_chats = ::Gapic::Config::Method.new find_group_chats_config
      create_membership_config = parent_rpcs.create_membership if parent_rpcs.respond_to? :create_membership
      @create_membership = ::Gapic::Config::Method.new create_membership_config
      update_membership_config = parent_rpcs.update_membership if parent_rpcs.respond_to? :update_membership
      @update_membership = ::Gapic::Config::Method.new update_membership_config
      delete_membership_config = parent_rpcs.delete_membership if parent_rpcs.respond_to? :delete_membership
      @delete_membership = ::Gapic::Config::Method.new delete_membership_config
      create_reaction_config = parent_rpcs.create_reaction if parent_rpcs.respond_to? :create_reaction
      @create_reaction = ::Gapic::Config::Method.new create_reaction_config
      list_reactions_config = parent_rpcs.list_reactions if parent_rpcs.respond_to? :list_reactions
      @list_reactions = ::Gapic::Config::Method.new list_reactions_config
      delete_reaction_config = parent_rpcs.delete_reaction if parent_rpcs.respond_to? :delete_reaction
      @delete_reaction = ::Gapic::Config::Method.new delete_reaction_config
      create_custom_emoji_config = parent_rpcs.create_custom_emoji if parent_rpcs.respond_to? :create_custom_emoji
      @create_custom_emoji = ::Gapic::Config::Method.new create_custom_emoji_config
      get_custom_emoji_config = parent_rpcs.get_custom_emoji if parent_rpcs.respond_to? :get_custom_emoji
      @get_custom_emoji = ::Gapic::Config::Method.new get_custom_emoji_config
      list_custom_emojis_config = parent_rpcs.list_custom_emojis if parent_rpcs.respond_to? :list_custom_emojis
      @list_custom_emojis = ::Gapic::Config::Method.new list_custom_emojis_config
      delete_custom_emoji_config = parent_rpcs.delete_custom_emoji if parent_rpcs.respond_to? :delete_custom_emoji
      @delete_custom_emoji = ::Gapic::Config::Method.new delete_custom_emoji_config
      get_space_read_state_config = parent_rpcs.get_space_read_state if parent_rpcs.respond_to? :get_space_read_state
      @get_space_read_state = ::Gapic::Config::Method.new get_space_read_state_config
      update_space_read_state_config = parent_rpcs.update_space_read_state if parent_rpcs.respond_to? :update_space_read_state
      @update_space_read_state = ::Gapic::Config::Method.new update_space_read_state_config
      get_thread_read_state_config = parent_rpcs.get_thread_read_state if parent_rpcs.respond_to? :get_thread_read_state
      @get_thread_read_state = ::Gapic::Config::Method.new get_thread_read_state_config
      get_availability_config = parent_rpcs.get_availability if parent_rpcs.respond_to? :get_availability
      @get_availability = ::Gapic::Config::Method.new get_availability_config
      mark_as_active_config = parent_rpcs.mark_as_active if parent_rpcs.respond_to? :mark_as_active
      @mark_as_active = ::Gapic::Config::Method.new mark_as_active_config
      mark_as_away_config = parent_rpcs.mark_as_away if parent_rpcs.respond_to? :mark_as_away
      @mark_as_away = ::Gapic::Config::Method.new mark_as_away_config
      mark_as_do_not_disturb_config = parent_rpcs.mark_as_do_not_disturb if parent_rpcs.respond_to? :mark_as_do_not_disturb
      @mark_as_do_not_disturb = ::Gapic::Config::Method.new mark_as_do_not_disturb_config
      update_availability_config = parent_rpcs.update_availability if parent_rpcs.respond_to? :update_availability
      @update_availability = ::Gapic::Config::Method.new update_availability_config
      get_space_event_config = parent_rpcs.get_space_event if parent_rpcs.respond_to? :get_space_event
      @get_space_event = ::Gapic::Config::Method.new get_space_event_config
      list_space_events_config = parent_rpcs.list_space_events if parent_rpcs.respond_to? :list_space_events
      @list_space_events = ::Gapic::Config::Method.new list_space_events_config
      get_space_notification_setting_config = parent_rpcs.get_space_notification_setting if parent_rpcs.respond_to? :get_space_notification_setting
      @get_space_notification_setting = ::Gapic::Config::Method.new get_space_notification_setting_config
      update_space_notification_setting_config = parent_rpcs.update_space_notification_setting if parent_rpcs.respond_to? :update_space_notification_setting
      @update_space_notification_setting = ::Gapic::Config::Method.new update_space_notification_setting_config
      create_section_config = parent_rpcs.create_section if parent_rpcs.respond_to? :create_section
      @create_section = ::Gapic::Config::Method.new create_section_config
      delete_section_config = parent_rpcs.delete_section if parent_rpcs.respond_to? :delete_section
      @delete_section = ::Gapic::Config::Method.new delete_section_config
      update_section_config = parent_rpcs.update_section if parent_rpcs.respond_to? :update_section
      @update_section = ::Gapic::Config::Method.new update_section_config
      list_sections_config = parent_rpcs.list_sections if parent_rpcs.respond_to? :list_sections
      @list_sections = ::Gapic::Config::Method.new list_sections_config
      position_section_config = parent_rpcs.position_section if parent_rpcs.respond_to? :position_section
      @position_section = ::Gapic::Config::Method.new position_section_config
      list_section_items_config = parent_rpcs.list_section_items if parent_rpcs.respond_to? :list_section_items
      @list_section_items = ::Gapic::Config::Method.new list_section_items_config
      move_section_item_config = parent_rpcs.move_section_item if parent_rpcs.respond_to? :move_section_item
      @move_section_item = ::Gapic::Config::Method.new move_section_item_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#rpcsRpcs

Configurations for individual RPCs

Returns:



6461
6462
6463
6464
6465
6466
6467
# File 'lib/google/apps/chat/v1/chat_service/rest/client.rb', line 6461

def rpcs
  @rpcs ||= begin
    parent_rpcs = nil
    parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
    Rpcs.new parent_rpcs
  end
end