Class: Google::Gax::CallOptions
- Inherits:
-
Object
- Object
- Google::Gax::CallOptions
- Defined in:
- lib/google/gax.rb
Overview
Encapsulates the overridable settings for a particular API call
Instance Attribute Summary collapse
- #is_page_streaming ⇒ true, ... readonly
- #retry_options ⇒ RetryOptions, :OPTION_INHERIT readonly
- #timeout ⇒ Numeric, :OPTION_INHERIT readonly
Instance Method Summary collapse
-
#initialize(timeout: :OPTION_INHERIT, retry_options: :OPTION_INHERIT, is_page_streaming: :OPTION_INHERIT) ⇒ CallOptions
constructor
A new instance of CallOptions.
Constructor Details
#initialize(timeout: :OPTION_INHERIT, retry_options: :OPTION_INHERIT, is_page_streaming: :OPTION_INHERIT) ⇒ CallOptions
136 137 138 139 140 141 142 143 |
# File 'lib/google/gax.rb', line 136 def initialize( timeout: :OPTION_INHERIT, retry_options: :OPTION_INHERIT, is_page_streaming: :OPTION_INHERIT) @timeout = timeout = @is_page_streaming = is_page_streaming end |
Instance Attribute Details
#is_page_streaming ⇒ true, ... (readonly)
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/google/gax.rb', line 125 class CallOptions attr_reader :timeout, :retry_options, :is_page_streaming # @param timeout [Numeric, :OPTION_INHERIT] # The client-side timeout for API calls. # @param retry_options [RetryOptions, :OPTION_INHERIT] # The configuration for retrying upon transient error. # If set to nil, this call will not retry. # @param is_page_streaming [true, false, :OPTION_INHERIT] # If set and the call is configured for page streaming, page streaming # is performed. def initialize( timeout: :OPTION_INHERIT, retry_options: :OPTION_INHERIT, is_page_streaming: :OPTION_INHERIT) @timeout = timeout = @is_page_streaming = is_page_streaming end end |
#retry_options ⇒ RetryOptions, :OPTION_INHERIT (readonly)
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/google/gax.rb', line 125 class CallOptions attr_reader :timeout, :retry_options, :is_page_streaming # @param timeout [Numeric, :OPTION_INHERIT] # The client-side timeout for API calls. # @param retry_options [RetryOptions, :OPTION_INHERIT] # The configuration for retrying upon transient error. # If set to nil, this call will not retry. # @param is_page_streaming [true, false, :OPTION_INHERIT] # If set and the call is configured for page streaming, page streaming # is performed. def initialize( timeout: :OPTION_INHERIT, retry_options: :OPTION_INHERIT, is_page_streaming: :OPTION_INHERIT) @timeout = timeout = @is_page_streaming = is_page_streaming end end |
#timeout ⇒ Numeric, :OPTION_INHERIT (readonly)
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/google/gax.rb', line 125 class CallOptions attr_reader :timeout, :retry_options, :is_page_streaming # @param timeout [Numeric, :OPTION_INHERIT] # The client-side timeout for API calls. # @param retry_options [RetryOptions, :OPTION_INHERIT] # The configuration for retrying upon transient error. # If set to nil, this call will not retry. # @param is_page_streaming [true, false, :OPTION_INHERIT] # If set and the call is configured for page streaming, page streaming # is performed. def initialize( timeout: :OPTION_INHERIT, retry_options: :OPTION_INHERIT, is_page_streaming: :OPTION_INHERIT) @timeout = timeout = @is_page_streaming = is_page_streaming end end |