Class: Google::Cloud::VisionAI::V1::Warehouse::Rest::Client::Configuration

Inherits:
Object
  • Object
show all
Extended by:
Gapic::Config
Defined in:
lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb

Overview

Configuration class for the Warehouse REST API.

This class represents the configuration for Warehouse 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_asset to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Cloud::VisionAI::V1::Warehouse::Rest::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.create_asset.timeout = 20.0
end

# Apply the above configuration only to a new client.
client = ::Google::Cloud::VisionAI::V1::Warehouse::Rest::Client.new do |config|
  config.timeout = 10.0
  config.rpcs.create_asset.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

Returns:

  • (::Object)


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_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)


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_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)


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_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})


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_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.
  • :retry_codes (type: Array<String>) - The error codes that should trigger a retry.

Returns:

  • (::Hash)


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_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)


5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5892

class Configuration
  extend ::Gapic::Config

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

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::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 Warehouse 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.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `create_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_asset
    ##
    # RPC-specific configuration for `update_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_asset
    ##
    # RPC-specific configuration for `get_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_asset
    ##
    # RPC-specific configuration for `list_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_assets
    ##
    # RPC-specific configuration for `delete_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_asset
    ##
    # RPC-specific configuration for `upload_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :upload_asset
    ##
    # RPC-specific configuration for `generate_retrieval_url`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_retrieval_url
    ##
    # RPC-specific configuration for `analyze_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_asset
    ##
    # RPC-specific configuration for `index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :index_asset
    ##
    # RPC-specific configuration for `remove_index_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_index_asset
    ##
    # RPC-specific configuration for `view_indexed_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_indexed_assets
    ##
    # RPC-specific configuration for `create_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index
    ##
    # RPC-specific configuration for `update_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index
    ##
    # RPC-specific configuration for `get_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index
    ##
    # RPC-specific configuration for `list_indexes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_indexes
    ##
    # RPC-specific configuration for `delete_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index
    ##
    # RPC-specific configuration for `create_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_corpus
    ##
    # RPC-specific configuration for `get_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_corpus
    ##
    # RPC-specific configuration for `update_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_corpus
    ##
    # RPC-specific configuration for `list_corpora`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_corpora
    ##
    # RPC-specific configuration for `delete_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_corpus
    ##
    # RPC-specific configuration for `analyze_corpus`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :analyze_corpus
    ##
    # RPC-specific configuration for `create_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_data_schema
    ##
    # RPC-specific configuration for `update_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_data_schema
    ##
    # RPC-specific configuration for `get_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_schema
    ##
    # RPC-specific configuration for `delete_data_schema`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_data_schema
    ##
    # RPC-specific configuration for `list_data_schemas`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_schemas
    ##
    # RPC-specific configuration for `create_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation
    ##
    # RPC-specific configuration for `get_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation
    ##
    # RPC-specific configuration for `list_annotations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotations
    ##
    # RPC-specific configuration for `update_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_annotation
    ##
    # RPC-specific configuration for `delete_annotation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation
    ##
    # RPC-specific configuration for `clip_asset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :clip_asset
    ##
    # RPC-specific configuration for `generate_hls_uri`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :generate_hls_uri
    ##
    # RPC-specific configuration for `import_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_assets
    ##
    # RPC-specific configuration for `create_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_config
    ##
    # RPC-specific configuration for `update_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_config
    ##
    # RPC-specific configuration for `get_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_config
    ##
    # RPC-specific configuration for `delete_search_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_config
    ##
    # RPC-specific configuration for `list_search_configs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_configs
    ##
    # RPC-specific configuration for `create_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_search_hypernym
    ##
    # RPC-specific configuration for `update_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_search_hypernym
    ##
    # RPC-specific configuration for `get_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_search_hypernym
    ##
    # RPC-specific configuration for `delete_search_hypernym`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_search_hypernym
    ##
    # RPC-specific configuration for `list_search_hypernyms`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_search_hypernyms
    ##
    # RPC-specific configuration for `search_assets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_assets
    ##
    # RPC-specific configuration for `search_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_index_endpoint
    ##
    # RPC-specific configuration for `create_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_index_endpoint
    ##
    # RPC-specific configuration for `get_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_index_endpoint
    ##
    # RPC-specific configuration for `list_index_endpoints`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_index_endpoints
    ##
    # RPC-specific configuration for `update_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_index_endpoint
    ##
    # RPC-specific configuration for `delete_index_endpoint`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_index_endpoint
    ##
    # RPC-specific configuration for `deploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :deploy_index
    ##
    # RPC-specific configuration for `undeploy_index`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :undeploy_index
    ##
    # RPC-specific configuration for `create_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_collection
    ##
    # RPC-specific configuration for `delete_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_collection
    ##
    # RPC-specific configuration for `get_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_collection
    ##
    # RPC-specific configuration for `update_collection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_collection
    ##
    # RPC-specific configuration for `list_collections`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_collections
    ##
    # RPC-specific configuration for `add_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_collection_item
    ##
    # RPC-specific configuration for `remove_collection_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_collection_item
    ##
    # RPC-specific configuration for `view_collection_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :view_collection_items

    # @private
    def initialize parent_rpcs = nil
      create_asset_config = parent_rpcs.create_asset if parent_rpcs.respond_to? :create_asset
      @create_asset = ::Gapic::Config::Method.new create_asset_config
      update_asset_config = parent_rpcs.update_asset if parent_rpcs.respond_to? :update_asset
      @update_asset = ::Gapic::Config::Method.new update_asset_config
      get_asset_config = parent_rpcs.get_asset if parent_rpcs.respond_to? :get_asset
      @get_asset = ::Gapic::Config::Method.new get_asset_config
      list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
      @list_assets = ::Gapic::Config::Method.new list_assets_config
      delete_asset_config = parent_rpcs.delete_asset if parent_rpcs.respond_to? :delete_asset
      @delete_asset = ::Gapic::Config::Method.new delete_asset_config
      upload_asset_config = parent_rpcs.upload_asset if parent_rpcs.respond_to? :upload_asset
      @upload_asset = ::Gapic::Config::Method.new upload_asset_config
      generate_retrieval_url_config = parent_rpcs.generate_retrieval_url if parent_rpcs.respond_to? :generate_retrieval_url
      @generate_retrieval_url = ::Gapic::Config::Method.new generate_retrieval_url_config
      analyze_asset_config = parent_rpcs.analyze_asset if parent_rpcs.respond_to? :analyze_asset
      @analyze_asset = ::Gapic::Config::Method.new analyze_asset_config
      index_asset_config = parent_rpcs.index_asset if parent_rpcs.respond_to? :index_asset
      @index_asset = ::Gapic::Config::Method.new index_asset_config
      remove_index_asset_config = parent_rpcs.remove_index_asset if parent_rpcs.respond_to? :remove_index_asset
      @remove_index_asset = ::Gapic::Config::Method.new remove_index_asset_config
      view_indexed_assets_config = parent_rpcs.view_indexed_assets if parent_rpcs.respond_to? :view_indexed_assets
      @view_indexed_assets = ::Gapic::Config::Method.new view_indexed_assets_config
      create_index_config = parent_rpcs.create_index if parent_rpcs.respond_to? :create_index
      @create_index = ::Gapic::Config::Method.new create_index_config
      update_index_config = parent_rpcs.update_index if parent_rpcs.respond_to? :update_index
      @update_index = ::Gapic::Config::Method.new update_index_config
      get_index_config = parent_rpcs.get_index if parent_rpcs.respond_to? :get_index
      @get_index = ::Gapic::Config::Method.new get_index_config
      list_indexes_config = parent_rpcs.list_indexes if parent_rpcs.respond_to? :list_indexes
      @list_indexes = ::Gapic::Config::Method.new list_indexes_config
      delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
      @delete_index = ::Gapic::Config::Method.new delete_index_config
      create_corpus_config = parent_rpcs.create_corpus if parent_rpcs.respond_to? :create_corpus
      @create_corpus = ::Gapic::Config::Method.new create_corpus_config
      get_corpus_config = parent_rpcs.get_corpus if parent_rpcs.respond_to? :get_corpus
      @get_corpus = ::Gapic::Config::Method.new get_corpus_config
      update_corpus_config = parent_rpcs.update_corpus if parent_rpcs.respond_to? :update_corpus
      @update_corpus = ::Gapic::Config::Method.new update_corpus_config
      list_corpora_config = parent_rpcs.list_corpora if parent_rpcs.respond_to? :list_corpora
      @list_corpora = ::Gapic::Config::Method.new list_corpora_config
      delete_corpus_config = parent_rpcs.delete_corpus if parent_rpcs.respond_to? :delete_corpus
      @delete_corpus = ::Gapic::Config::Method.new delete_corpus_config
      analyze_corpus_config = parent_rpcs.analyze_corpus if parent_rpcs.respond_to? :analyze_corpus
      @analyze_corpus = ::Gapic::Config::Method.new analyze_corpus_config
      create_data_schema_config = parent_rpcs.create_data_schema if parent_rpcs.respond_to? :create_data_schema
      @create_data_schema = ::Gapic::Config::Method.new create_data_schema_config
      update_data_schema_config = parent_rpcs.update_data_schema if parent_rpcs.respond_to? :update_data_schema
      @update_data_schema = ::Gapic::Config::Method.new update_data_schema_config
      get_data_schema_config = parent_rpcs.get_data_schema if parent_rpcs.respond_to? :get_data_schema
      @get_data_schema = ::Gapic::Config::Method.new get_data_schema_config
      delete_data_schema_config = parent_rpcs.delete_data_schema if parent_rpcs.respond_to? :delete_data_schema
      @delete_data_schema = ::Gapic::Config::Method.new delete_data_schema_config
      list_data_schemas_config = parent_rpcs.list_data_schemas if parent_rpcs.respond_to? :list_data_schemas
      @list_data_schemas = ::Gapic::Config::Method.new list_data_schemas_config
      create_annotation_config = parent_rpcs.create_annotation if parent_rpcs.respond_to? :create_annotation
      @create_annotation = ::Gapic::Config::Method.new create_annotation_config
      get_annotation_config = parent_rpcs.get_annotation if parent_rpcs.respond_to? :get_annotation
      @get_annotation = ::Gapic::Config::Method.new get_annotation_config
      list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
      @list_annotations = ::Gapic::Config::Method.new list_annotations_config
      update_annotation_config = parent_rpcs.update_annotation if parent_rpcs.respond_to? :update_annotation
      @update_annotation = ::Gapic::Config::Method.new update_annotation_config
      delete_annotation_config = parent_rpcs.delete_annotation if parent_rpcs.respond_to? :delete_annotation
      @delete_annotation = ::Gapic::Config::Method.new delete_annotation_config
      clip_asset_config = parent_rpcs.clip_asset if parent_rpcs.respond_to? :clip_asset
      @clip_asset = ::Gapic::Config::Method.new clip_asset_config
      generate_hls_uri_config = parent_rpcs.generate_hls_uri if parent_rpcs.respond_to? :generate_hls_uri
      @generate_hls_uri = ::Gapic::Config::Method.new generate_hls_uri_config
      import_assets_config = parent_rpcs.import_assets if parent_rpcs.respond_to? :import_assets
      @import_assets = ::Gapic::Config::Method.new import_assets_config
      create_search_config_config = parent_rpcs.create_search_config if parent_rpcs.respond_to? :create_search_config
      @create_search_config = ::Gapic::Config::Method.new create_search_config_config
      update_search_config_config = parent_rpcs.update_search_config if parent_rpcs.respond_to? :update_search_config
      @update_search_config = ::Gapic::Config::Method.new update_search_config_config
      get_search_config_config = parent_rpcs.get_search_config if parent_rpcs.respond_to? :get_search_config
      @get_search_config = ::Gapic::Config::Method.new get_search_config_config
      delete_search_config_config = parent_rpcs.delete_search_config if parent_rpcs.respond_to? :delete_search_config
      @delete_search_config = ::Gapic::Config::Method.new delete_search_config_config
      list_search_configs_config = parent_rpcs.list_search_configs if parent_rpcs.respond_to? :list_search_configs
      @list_search_configs = ::Gapic::Config::Method.new list_search_configs_config
      create_search_hypernym_config = parent_rpcs.create_search_hypernym if parent_rpcs.respond_to? :create_search_hypernym
      @create_search_hypernym = ::Gapic::Config::Method.new create_search_hypernym_config
      update_search_hypernym_config = parent_rpcs.update_search_hypernym if parent_rpcs.respond_to? :update_search_hypernym
      @update_search_hypernym = ::Gapic::Config::Method.new update_search_hypernym_config
      get_search_hypernym_config = parent_rpcs.get_search_hypernym if parent_rpcs.respond_to? :get_search_hypernym
      @get_search_hypernym = ::Gapic::Config::Method.new get_search_hypernym_config
      delete_search_hypernym_config = parent_rpcs.delete_search_hypernym if parent_rpcs.respond_to? :delete_search_hypernym
      @delete_search_hypernym = ::Gapic::Config::Method.new delete_search_hypernym_config
      list_search_hypernyms_config = parent_rpcs.list_search_hypernyms if parent_rpcs.respond_to? :list_search_hypernyms
      @list_search_hypernyms = ::Gapic::Config::Method.new list_search_hypernyms_config
      search_assets_config = parent_rpcs.search_assets if parent_rpcs.respond_to? :search_assets
      @search_assets = ::Gapic::Config::Method.new search_assets_config
      search_index_endpoint_config = parent_rpcs.search_index_endpoint if parent_rpcs.respond_to? :search_index_endpoint
      @search_index_endpoint = ::Gapic::Config::Method.new search_index_endpoint_config
      create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
      @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
      get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
      @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
      list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
      @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
      update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
      @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
      delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
      @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
      deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
      @deploy_index = ::Gapic::Config::Method.new deploy_index_config
      undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
      @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
      create_collection_config = parent_rpcs.create_collection if parent_rpcs.respond_to? :create_collection
      @create_collection = ::Gapic::Config::Method.new create_collection_config
      delete_collection_config = parent_rpcs.delete_collection if parent_rpcs.respond_to? :delete_collection
      @delete_collection = ::Gapic::Config::Method.new delete_collection_config
      get_collection_config = parent_rpcs.get_collection if parent_rpcs.respond_to? :get_collection
      @get_collection = ::Gapic::Config::Method.new get_collection_config
      update_collection_config = parent_rpcs.update_collection if parent_rpcs.respond_to? :update_collection
      @update_collection = ::Gapic::Config::Method.new update_collection_config
      list_collections_config = parent_rpcs.list_collections if parent_rpcs.respond_to? :list_collections
      @list_collections = ::Gapic::Config::Method.new list_collections_config
      add_collection_item_config = parent_rpcs.add_collection_item if parent_rpcs.respond_to? :add_collection_item
      @add_collection_item = ::Gapic::Config::Method.new add_collection_item_config
      remove_collection_item_config = parent_rpcs.remove_collection_item if parent_rpcs.respond_to? :remove_collection_item
      @remove_collection_item = ::Gapic::Config::Method.new remove_collection_item_config
      view_collection_items_config = parent_rpcs.view_collection_items if parent_rpcs.respond_to? :view_collection_items
      @view_collection_items = ::Gapic::Config::Method.new view_collection_items_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#rpcsRpcs

Configurations for individual RPCs

Returns:



5925
5926
5927
5928
5929
5930
5931
# File 'lib/google/cloud/vision_ai/v1/warehouse/rest/client.rb', line 5925

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