Class: ConfigureTarget
- Inherits:
-
Grpc::Testing::XdsUpdateClientConfigureService::Service
- Object
- Grpc::Testing::XdsUpdateClientConfigureService::Service
- ConfigureTarget
- Includes:
- Grpc::Testing
- Defined in:
- src/ruby/pb/test/xds_client.rb
Constant Summary
Constants included from Grpc::Testing
Grpc::Testing::BoolValue, Grpc::Testing::ClientConfigureRequest, Grpc::Testing::ClientConfigureResponse, Grpc::Testing::EchoStatus, Grpc::Testing::Empty, Grpc::Testing::EmptyMessage, Grpc::Testing::GaugeRequest, Grpc::Testing::GaugeResponse, Grpc::Testing::GrpclbRouteType, Grpc::Testing::HookRequest, Grpc::Testing::HookResponse, Grpc::Testing::LoadBalancerAccumulatedStatsRequest, Grpc::Testing::LoadBalancerAccumulatedStatsResponse, Grpc::Testing::LoadBalancerStatsRequest, Grpc::Testing::LoadBalancerStatsResponse, Grpc::Testing::MemorySize, Grpc::Testing::Payload, Grpc::Testing::PayloadType, Grpc::Testing::ReconnectInfo, Grpc::Testing::ReconnectParams, Grpc::Testing::ResponseParameters, Grpc::Testing::SetReturnStatusRequest, Grpc::Testing::SimpleRequest, Grpc::Testing::SimpleResponse, Grpc::Testing::StreamingInputCallRequest, Grpc::Testing::StreamingInputCallResponse, Grpc::Testing::StreamingOutputCallRequest, Grpc::Testing::StreamingOutputCallResponse, Grpc::Testing::TestOrcaReport
Instance Method Summary collapse
Methods included from GRPC::GenericService
Instance Method Details
#configure(req, _call) ⇒ Object
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'src/ruby/pb/test/xds_client.rb', line 117 def configure(req, _call) = {} req..each do |m| rpc = m.type if !.key?(rpc) [rpc] = {} end = m.key = m.value [rpc][] = end new_rpc_config = RpcConfig.new new_rpc_config.init(req['types'], , req['timeout_sec']) $rpc_config = new_rpc_config ClientConfigureResponse.new() end |