Class: GrpcKit::MethodConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/grpc_kit/method_config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#codecObject

Returns the value of attribute codec

Returns:

  • (Object)

    the current value of codec



9
10
11
# File 'lib/grpc_kit/method_config.rb', line 9

def codec
  @codec
end

#compressor_typeObject

Returns the value of attribute compressor_type

Returns:

  • (Object)

    the current value of compressor_type



9
10
11
# File 'lib/grpc_kit/method_config.rb', line 9

def compressor_type
  @compressor_type
end

#interceptorObject

Returns the value of attribute interceptor

Returns:

  • (Object)

    the current value of interceptor



9
10
11
# File 'lib/grpc_kit/method_config.rb', line 9

def interceptor
  @interceptor
end

#max_receive_message_sizeObject

Returns the value of attribute max_receive_message_size

Returns:

  • (Object)

    the current value of max_receive_message_size



9
10
11
# File 'lib/grpc_kit/method_config.rb', line 9

def max_receive_message_size
  @max_receive_message_size
end

#max_send_message_sizeObject

Returns the value of attribute max_send_message_size

Returns:

  • (Object)

    the current value of max_send_message_size



9
10
11
# File 'lib/grpc_kit/method_config.rb', line 9

def max_send_message_size
  @max_send_message_size
end

#method_nameObject

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name



9
10
11
# File 'lib/grpc_kit/method_config.rb', line 9

def method_name
  @method_name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



9
10
11
# File 'lib/grpc_kit/method_config.rb', line 9

def path
  @path
end

#ruby_style_method_nameObject

Returns the value of attribute ruby_style_method_name

Returns:

  • (Object)

    the current value of 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_nameObject

Returns the value of attribute service_name

Returns:

  • (Object)

    the current value of 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, max_receive_message_size, max_send_message_size, 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, max_receive_message_size, max_send_message_size, compressor_type)
end