Class: Google::Cloud::VisionAI::V1::Warehouse::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::VisionAI::V1::Warehouse::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/vision_ai/v1/warehouse/client.rb
Overview
Configuration class for the Warehouse API.
This class represents the configuration for Warehouse, 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.
Defined Under Namespace
Classes: Rpcs
Instance Attribute Summary collapse
-
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel.
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port.
-
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging.
-
#logger ⇒ ::Logger, ...
A custom logger to use for request/response debug logging, or the value
:default
(the default) to construct a default logger, ornil
to explicitly disable logging. -
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional gRPC headers to be sent with the call.
-
#quota_project ⇒ ::String
A separate project against which to charge quota.
-
#retry_policy ⇒ ::Hash
The retry policy.
-
#scope ⇒ ::Array<::String>
The OAuth scopes.
-
#timeout ⇒ ::Numeric
The call timeout in seconds.
-
#universe_domain ⇒ ::String?
The universe domain within which to make requests.
Instance Method Summary collapse
-
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool.
-
#rpcs ⇒ Rpcs
Configurations for individual RPCs.
Instance Attribute Details
#channel_args ⇒ ::Hash
Extra parameters passed to the gRPC channel. Note: this is ignored if a
GRPC::Core::Channel
object is provided as the credential.
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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 |
#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) - (
GRPC::Core::Channel
) a gRPC channel with included credentials - (
GRPC::Core::ChannelCredentials
) a gRPC credentails object - (
nil
) indicating no credentials
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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.
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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 |
#interceptors ⇒ ::Array<::GRPC::ClientInterceptor>
An array of interceptors that are run before calls are executed.
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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.
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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 gRPC headers to be sent with the call.
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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.
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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.
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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.
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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).
6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6430 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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC 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(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, 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 for the channel pool # @return [::Gapic::ServiceStub::ChannelPool::Configuration] # def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new 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 gRPC 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 `ingest_asset` # @return [::Gapic::Config::Method] # attr_reader :ingest_asset ## # 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 ingest_asset_config = parent_rpcs.ingest_asset if parent_rpcs.respond_to? :ingest_asset @ingest_asset = ::Gapic::Config::Method.new ingest_asset_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
#channel_pool ⇒ ::Gapic::ServiceStub::ChannelPool::Configuration
Configuration for the channel pool
6478 6479 6480 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6478 def channel_pool @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new end |
#rpcs ⇒ Rpcs
Configurations for individual RPCs
6466 6467 6468 6469 6470 6471 6472 |
# File 'lib/google/cloud/vision_ai/v1/warehouse/client.rb', line 6466 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 |