Class: GrpcKit::MethodConfig
- Inherits:
-
Struct
- Object
- Struct
- GrpcKit::MethodConfig
- Defined in:
- lib/grpc_kit/method_config.rb
Instance Attribute Summary collapse
-
#codec ⇒ Object
Returns the value of attribute codec.
-
#compressor_type ⇒ Object
Returns the value of attribute compressor_type.
-
#interceptor ⇒ Object
Returns the value of attribute interceptor.
-
#max_receive_message_size ⇒ Object
Returns the value of attribute max_receive_message_size.
-
#max_send_message_size ⇒ Object
Returns the value of attribute max_send_message_size.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#ruby_style_method_name ⇒ Object
Returns the value of attribute ruby_style_method_name.
-
#service_name ⇒ Object
Returns the value of attribute service_name.
Class Method Summary collapse
- .build_for_client(path:, ruby_style_method_name:, codec:, service_name:, method_name:, interceptor:, max_receive_message_size: MAX_CLIENT_RECEIVE_MESSAGE_SIZE, max_send_message_size: MAX_CLIENT_SEND_MESSAGE_SIZE, compressor_type: '') ⇒ Object
- .build_for_server(path:, ruby_style_method_name:, codec:, service_name:, method_name:, interceptor:, max_receive_message_size: MAX_SERVER_RECEIVE_MESSAGE_SIZE, max_send_message_size: MAX_SERVER_SEND_MESSAGE_SIZE, compressor_type: '') ⇒ Object
Instance Attribute Details
#codec ⇒ Object
Returns the value of attribute codec
9 10 11 |
# File 'lib/grpc_kit/method_config.rb', line 9 def codec @codec end |
#compressor_type ⇒ Object
Returns the value of attribute compressor_type
9 10 11 |
# File 'lib/grpc_kit/method_config.rb', line 9 def compressor_type @compressor_type end |
#interceptor ⇒ Object
Returns the value of attribute interceptor
9 10 11 |
# File 'lib/grpc_kit/method_config.rb', line 9 def interceptor @interceptor end |
#max_receive_message_size ⇒ Object
Returns the value of attribute max_receive_message_size
9 10 11 |
# File 'lib/grpc_kit/method_config.rb', line 9 def @max_receive_message_size end |
#max_send_message_size ⇒ Object
Returns the value of attribute max_send_message_size
9 10 11 |
# File 'lib/grpc_kit/method_config.rb', line 9 def @max_send_message_size end |
#method_name ⇒ Object
Returns the value of attribute method_name
9 10 11 |
# File 'lib/grpc_kit/method_config.rb', line 9 def method_name @method_name end |
#path ⇒ Object
Returns the value of attribute path
9 10 11 |
# File 'lib/grpc_kit/method_config.rb', line 9 def path @path end |
#ruby_style_method_name ⇒ Object
Returns the value of attribute ruby_style_method_name
9 10 11 |
# File 'lib/grpc_kit/method_config.rb', line 9 def ruby_style_method_name @ruby_style_method_name end |
#service_name ⇒ Object
Returns the value of attribute service_name
9 10 11 |
# File 'lib/grpc_kit/method_config.rb', line 9 def service_name @service_name end |
Class Method Details
.build_for_client(path:, ruby_style_method_name:, codec:, service_name:, method_name:, interceptor:, max_receive_message_size: MAX_CLIENT_RECEIVE_MESSAGE_SIZE, max_send_message_size: MAX_CLIENT_SEND_MESSAGE_SIZE, compressor_type: '') ⇒ Object
27 28 29 30 31 32 |
# File 'lib/grpc_kit/method_config.rb', line 27 def self.build_for_client( path:, ruby_style_method_name:, codec:, service_name:, method_name:, interceptor:, max_receive_message_size: MAX_CLIENT_RECEIVE_MESSAGE_SIZE, max_send_message_size: MAX_CLIENT_SEND_MESSAGE_SIZE, compressor_type: '' ) new(path, ruby_style_method_name, codec, interceptor, service_name, method_name, , , compressor_type) end |
.build_for_server(path:, ruby_style_method_name:, codec:, service_name:, method_name:, interceptor:, max_receive_message_size: MAX_SERVER_RECEIVE_MESSAGE_SIZE, max_send_message_size: MAX_SERVER_SEND_MESSAGE_SIZE, compressor_type: '') ⇒ Object
20 21 22 23 24 25 |
# File 'lib/grpc_kit/method_config.rb', line 20 def self.build_for_server( path:, ruby_style_method_name:, codec:, service_name:, method_name:, interceptor:, max_receive_message_size: MAX_SERVER_RECEIVE_MESSAGE_SIZE, max_send_message_size: MAX_SERVER_SEND_MESSAGE_SIZE, compressor_type: '' ) new(path, ruby_style_method_name, codec, interceptor, service_name, method_name, , , compressor_type) end |