Class: Google::Cloud::Speech::V2::Speech::Client::Configuration::Rpcs

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/speech/v2/speech/client.rb

Overview

Configuration RPC class for the Speech 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.
    • :jitter (type: Numeric) - The jitter in seconds. Default: 1.0.
    • :retry_codes (type: Array<String>) - The error codes that should trigger a retry.

Instance Attribute Summary collapse

Instance Attribute Details

#batch_recognize::Gapic::Config::Method (readonly)

RPC-specific configuration for batch_recognize

Returns:

  • (::Gapic::Config::Method)


2794
2795
2796
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2794

def batch_recognize
  @batch_recognize
end

#create_custom_class::Gapic::Config::Method (readonly)

RPC-specific configuration for create_custom_class

Returns:

  • (::Gapic::Config::Method)


2809
2810
2811
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2809

def create_custom_class
  @create_custom_class
end

#create_phrase_set::Gapic::Config::Method (readonly)

RPC-specific configuration for create_phrase_set

Returns:

  • (::Gapic::Config::Method)


2839
2840
2841
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2839

def create_phrase_set
  @create_phrase_set
end

#create_recognizer::Gapic::Config::Method (readonly)

RPC-specific configuration for create_recognizer

Returns:

  • (::Gapic::Config::Method)


2754
2755
2756
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2754

def create_recognizer
  @create_recognizer
end

#delete_custom_class::Gapic::Config::Method (readonly)

RPC-specific configuration for delete_custom_class

Returns:

  • (::Gapic::Config::Method)


2829
2830
2831
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2829

def delete_custom_class
  @delete_custom_class
end

#delete_phrase_set::Gapic::Config::Method (readonly)

RPC-specific configuration for delete_phrase_set

Returns:

  • (::Gapic::Config::Method)


2859
2860
2861
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2859

def delete_phrase_set
  @delete_phrase_set
end

#delete_recognizer::Gapic::Config::Method (readonly)

RPC-specific configuration for delete_recognizer

Returns:

  • (::Gapic::Config::Method)


2774
2775
2776
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2774

def delete_recognizer
  @delete_recognizer
end

#get_config::Gapic::Config::Method (readonly)

RPC-specific configuration for get_config

Returns:

  • (::Gapic::Config::Method)


2799
2800
2801
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2799

def get_config
  @get_config
end

#get_custom_class::Gapic::Config::Method (readonly)

RPC-specific configuration for get_custom_class

Returns:

  • (::Gapic::Config::Method)


2819
2820
2821
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2819

def get_custom_class
  @get_custom_class
end

#get_phrase_set::Gapic::Config::Method (readonly)

RPC-specific configuration for get_phrase_set

Returns:

  • (::Gapic::Config::Method)


2849
2850
2851
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2849

def get_phrase_set
  @get_phrase_set
end

#get_recognizer::Gapic::Config::Method (readonly)

RPC-specific configuration for get_recognizer

Returns:

  • (::Gapic::Config::Method)


2764
2765
2766
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2764

def get_recognizer
  @get_recognizer
end

#list_custom_classes::Gapic::Config::Method (readonly)

RPC-specific configuration for list_custom_classes

Returns:

  • (::Gapic::Config::Method)


2814
2815
2816
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2814

def list_custom_classes
  @list_custom_classes
end

#list_phrase_sets::Gapic::Config::Method (readonly)

RPC-specific configuration for list_phrase_sets

Returns:

  • (::Gapic::Config::Method)


2844
2845
2846
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2844

def list_phrase_sets
  @list_phrase_sets
end

#list_recognizers::Gapic::Config::Method (readonly)

RPC-specific configuration for list_recognizers

Returns:

  • (::Gapic::Config::Method)


2759
2760
2761
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2759

def list_recognizers
  @list_recognizers
end

#recognize::Gapic::Config::Method (readonly)

RPC-specific configuration for recognize

Returns:

  • (::Gapic::Config::Method)


2784
2785
2786
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2784

def recognize
  @recognize
end

#streaming_recognize::Gapic::Config::Method (readonly)

RPC-specific configuration for streaming_recognize

Returns:

  • (::Gapic::Config::Method)


2789
2790
2791
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2789

def streaming_recognize
  @streaming_recognize
end

#undelete_custom_class::Gapic::Config::Method (readonly)

RPC-specific configuration for undelete_custom_class

Returns:

  • (::Gapic::Config::Method)


2834
2835
2836
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2834

def undelete_custom_class
  @undelete_custom_class
end

#undelete_phrase_set::Gapic::Config::Method (readonly)

RPC-specific configuration for undelete_phrase_set

Returns:

  • (::Gapic::Config::Method)


2864
2865
2866
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2864

def undelete_phrase_set
  @undelete_phrase_set
end

#undelete_recognizer::Gapic::Config::Method (readonly)

RPC-specific configuration for undelete_recognizer

Returns:

  • (::Gapic::Config::Method)


2779
2780
2781
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2779

def undelete_recognizer
  @undelete_recognizer
end

#update_config::Gapic::Config::Method (readonly)

RPC-specific configuration for update_config

Returns:

  • (::Gapic::Config::Method)


2804
2805
2806
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2804

def update_config
  @update_config
end

#update_custom_class::Gapic::Config::Method (readonly)

RPC-specific configuration for update_custom_class

Returns:

  • (::Gapic::Config::Method)


2824
2825
2826
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2824

def update_custom_class
  @update_custom_class
end

#update_phrase_set::Gapic::Config::Method (readonly)

RPC-specific configuration for update_phrase_set

Returns:

  • (::Gapic::Config::Method)


2854
2855
2856
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2854

def update_phrase_set
  @update_phrase_set
end

#update_recognizer::Gapic::Config::Method (readonly)

RPC-specific configuration for update_recognizer

Returns:

  • (::Gapic::Config::Method)


2769
2770
2771
# File 'lib/google/cloud/speech/v2/speech/client.rb', line 2769

def update_recognizer
  @update_recognizer
end