Class: Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client::Configuration

Inherits:
Object
  • Object
show all
Extended by:
Gapic::Config
Defined in:
lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb

Overview

Configuration class for the DataLabelingService API.

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

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

Examples:


# Modify the global config, setting the timeout for
# create_dataset to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.create_dataset.timeout = 20.0
end

# Apply the above configuration only to a new client.
client = ::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new do |config|
  config.timeout = 10.0
  config.rpcs.create_dataset.timeout = 20.0
end

Defined Under Namespace

Classes: Rpcs

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Returns:

  • (::Hash)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_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

Returns:

  • (::Object)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

#endpoint::String?

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

Returns:

  • (::String, nil)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

#interceptors::Array<::GRPC::ClientInterceptor>

An array of interceptors that are run before calls are executed.

Returns:

  • (::Array<::GRPC::ClientInterceptor>)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

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

Additional gRPC headers to be sent with the call.

Returns:

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


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

#retry_policy::Hash

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

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

Returns:

  • (::Hash)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

#universe_domain::String?

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

Returns:

  • (::String, nil)


3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3707

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "datalabeling.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

  # @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 DataLabelingService 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_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_dataset
    ##
    # RPC-specific configuration for `get_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_dataset
    ##
    # RPC-specific configuration for `list_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_datasets
    ##
    # RPC-specific configuration for `delete_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_dataset
    ##
    # RPC-specific configuration for `import_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :import_data
    ##
    # RPC-specific configuration for `export_data`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :export_data
    ##
    # RPC-specific configuration for `get_data_item`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_data_item
    ##
    # RPC-specific configuration for `list_data_items`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_data_items
    ##
    # RPC-specific configuration for `get_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotated_dataset
    ##
    # RPC-specific configuration for `list_annotated_datasets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotated_datasets
    ##
    # RPC-specific configuration for `delete_annotated_dataset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotated_dataset
    ##
    # RPC-specific configuration for `label_image`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_image
    ##
    # RPC-specific configuration for `label_video`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_video
    ##
    # RPC-specific configuration for `label_text`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :label_text
    ##
    # RPC-specific configuration for `get_example`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_example
    ##
    # RPC-specific configuration for `list_examples`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_examples
    ##
    # RPC-specific configuration for `create_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_annotation_spec_set
    ##
    # RPC-specific configuration for `get_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_annotation_spec_set
    ##
    # RPC-specific configuration for `list_annotation_spec_sets`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_annotation_spec_sets
    ##
    # RPC-specific configuration for `delete_annotation_spec_set`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_annotation_spec_set
    ##
    # RPC-specific configuration for `create_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_instruction
    ##
    # RPC-specific configuration for `get_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_instruction
    ##
    # RPC-specific configuration for `list_instructions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_instructions
    ##
    # RPC-specific configuration for `delete_instruction`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_instruction
    ##
    # RPC-specific configuration for `get_evaluation`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation
    ##
    # RPC-specific configuration for `search_evaluations`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_evaluations
    ##
    # RPC-specific configuration for `search_example_comparisons`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :search_example_comparisons
    ##
    # RPC-specific configuration for `create_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_evaluation_job
    ##
    # RPC-specific configuration for `update_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_evaluation_job
    ##
    # RPC-specific configuration for `get_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_evaluation_job
    ##
    # RPC-specific configuration for `pause_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :pause_evaluation_job
    ##
    # RPC-specific configuration for `resume_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume_evaluation_job
    ##
    # RPC-specific configuration for `delete_evaluation_job`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_evaluation_job
    ##
    # RPC-specific configuration for `list_evaluation_jobs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_evaluation_jobs

    # @private
    def initialize parent_rpcs = nil
      create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
      @create_dataset = ::Gapic::Config::Method.new create_dataset_config
      get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
      @get_dataset = ::Gapic::Config::Method.new get_dataset_config
      list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
      @list_datasets = ::Gapic::Config::Method.new list_datasets_config
      delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
      @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
      import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
      @import_data = ::Gapic::Config::Method.new import_data_config
      export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
      @export_data = ::Gapic::Config::Method.new export_data_config
      get_data_item_config = parent_rpcs.get_data_item if parent_rpcs.respond_to? :get_data_item
      @get_data_item = ::Gapic::Config::Method.new get_data_item_config
      list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
      @list_data_items = ::Gapic::Config::Method.new list_data_items_config
      get_annotated_dataset_config = parent_rpcs.get_annotated_dataset if parent_rpcs.respond_to? :get_annotated_dataset
      @get_annotated_dataset = ::Gapic::Config::Method.new get_annotated_dataset_config
      list_annotated_datasets_config = parent_rpcs.list_annotated_datasets if parent_rpcs.respond_to? :list_annotated_datasets
      @list_annotated_datasets = ::Gapic::Config::Method.new list_annotated_datasets_config
      delete_annotated_dataset_config = parent_rpcs.delete_annotated_dataset if parent_rpcs.respond_to? :delete_annotated_dataset
      @delete_annotated_dataset = ::Gapic::Config::Method.new delete_annotated_dataset_config
      label_image_config = parent_rpcs.label_image if parent_rpcs.respond_to? :label_image
      @label_image = ::Gapic::Config::Method.new label_image_config
      label_video_config = parent_rpcs.label_video if parent_rpcs.respond_to? :label_video
      @label_video = ::Gapic::Config::Method.new label_video_config
      label_text_config = parent_rpcs.label_text if parent_rpcs.respond_to? :label_text
      @label_text = ::Gapic::Config::Method.new label_text_config
      get_example_config = parent_rpcs.get_example if parent_rpcs.respond_to? :get_example
      @get_example = ::Gapic::Config::Method.new get_example_config
      list_examples_config = parent_rpcs.list_examples if parent_rpcs.respond_to? :list_examples
      @list_examples = ::Gapic::Config::Method.new list_examples_config
      create_annotation_spec_set_config = parent_rpcs.create_annotation_spec_set if parent_rpcs.respond_to? :create_annotation_spec_set
      @create_annotation_spec_set = ::Gapic::Config::Method.new create_annotation_spec_set_config
      get_annotation_spec_set_config = parent_rpcs.get_annotation_spec_set if parent_rpcs.respond_to? :get_annotation_spec_set
      @get_annotation_spec_set = ::Gapic::Config::Method.new get_annotation_spec_set_config
      list_annotation_spec_sets_config = parent_rpcs.list_annotation_spec_sets if parent_rpcs.respond_to? :list_annotation_spec_sets
      @list_annotation_spec_sets = ::Gapic::Config::Method.new list_annotation_spec_sets_config
      delete_annotation_spec_set_config = parent_rpcs.delete_annotation_spec_set if parent_rpcs.respond_to? :delete_annotation_spec_set
      @delete_annotation_spec_set = ::Gapic::Config::Method.new delete_annotation_spec_set_config
      create_instruction_config = parent_rpcs.create_instruction if parent_rpcs.respond_to? :create_instruction
      @create_instruction = ::Gapic::Config::Method.new create_instruction_config
      get_instruction_config = parent_rpcs.get_instruction if parent_rpcs.respond_to? :get_instruction
      @get_instruction = ::Gapic::Config::Method.new get_instruction_config
      list_instructions_config = parent_rpcs.list_instructions if parent_rpcs.respond_to? :list_instructions
      @list_instructions = ::Gapic::Config::Method.new list_instructions_config
      delete_instruction_config = parent_rpcs.delete_instruction if parent_rpcs.respond_to? :delete_instruction
      @delete_instruction = ::Gapic::Config::Method.new delete_instruction_config
      get_evaluation_config = parent_rpcs.get_evaluation if parent_rpcs.respond_to? :get_evaluation
      @get_evaluation = ::Gapic::Config::Method.new get_evaluation_config
      search_evaluations_config = parent_rpcs.search_evaluations if parent_rpcs.respond_to? :search_evaluations
      @search_evaluations = ::Gapic::Config::Method.new search_evaluations_config
      search_example_comparisons_config = parent_rpcs.search_example_comparisons if parent_rpcs.respond_to? :search_example_comparisons
      @search_example_comparisons = ::Gapic::Config::Method.new search_example_comparisons_config
      create_evaluation_job_config = parent_rpcs.create_evaluation_job if parent_rpcs.respond_to? :create_evaluation_job
      @create_evaluation_job = ::Gapic::Config::Method.new create_evaluation_job_config
      update_evaluation_job_config = parent_rpcs.update_evaluation_job if parent_rpcs.respond_to? :update_evaluation_job
      @update_evaluation_job = ::Gapic::Config::Method.new update_evaluation_job_config
      get_evaluation_job_config = parent_rpcs.get_evaluation_job if parent_rpcs.respond_to? :get_evaluation_job
      @get_evaluation_job = ::Gapic::Config::Method.new get_evaluation_job_config
      pause_evaluation_job_config = parent_rpcs.pause_evaluation_job if parent_rpcs.respond_to? :pause_evaluation_job
      @pause_evaluation_job = ::Gapic::Config::Method.new pause_evaluation_job_config
      resume_evaluation_job_config = parent_rpcs.resume_evaluation_job if parent_rpcs.respond_to? :resume_evaluation_job
      @resume_evaluation_job = ::Gapic::Config::Method.new resume_evaluation_job_config
      delete_evaluation_job_config = parent_rpcs.delete_evaluation_job if parent_rpcs.respond_to? :delete_evaluation_job
      @delete_evaluation_job = ::Gapic::Config::Method.new delete_evaluation_job_config
      list_evaluation_jobs_config = parent_rpcs.list_evaluation_jobs if parent_rpcs.respond_to? :list_evaluation_jobs
      @list_evaluation_jobs = ::Gapic::Config::Method.new list_evaluation_jobs_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#channel_pool::Gapic::ServiceStub::ChannelPool::Configuration

Configuration for the channel pool

Returns:

  • (::Gapic::ServiceStub::ChannelPool::Configuration)


3754
3755
3756
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3754

def channel_pool
  @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
end

#rpcsRpcs

Configurations for individual RPCs

Returns:



3742
3743
3744
3745
3746
3747
3748
# File 'lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb', line 3742

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