1# Generated by the protocol buffer compiler. DO NOT EDIT! 2# source: src/proto/grpc/testing/control.proto 3 4require 'google/protobuf' 5 6require 'src/proto/grpc/testing/payloads_pb' 7require 'src/proto/grpc/testing/stats_pb' 8Google::Protobuf::DescriptorPool.generated_pool.build do 9 add_message "grpc.testing.PoissonParams" do 10 optional :offered_load, :double, 1 11 end 12 add_message "grpc.testing.ClosedLoopParams" do 13 end 14 add_message "grpc.testing.LoadParams" do 15 oneof :load do 16 optional :closed_loop, :message, 1, "grpc.testing.ClosedLoopParams" 17 optional :poisson, :message, 2, "grpc.testing.PoissonParams" 18 end 19 end 20 add_message "grpc.testing.SecurityParams" do 21 optional :use_test_ca, :bool, 1 22 optional :server_host_override, :string, 2 23 optional :cred_type, :string, 3 24 end 25 add_message "grpc.testing.ChannelArg" do 26 optional :name, :string, 1 27 oneof :value do 28 optional :str_value, :string, 2 29 optional :int_value, :int32, 3 30 end 31 end 32 add_message "grpc.testing.ClientConfig" do 33 repeated :server_targets, :string, 1 34 optional :client_type, :enum, 2, "grpc.testing.ClientType" 35 optional :security_params, :message, 3, "grpc.testing.SecurityParams" 36 optional :outstanding_rpcs_per_channel, :int32, 4 37 optional :client_channels, :int32, 5 38 optional :async_client_threads, :int32, 7 39 optional :rpc_type, :enum, 8, "grpc.testing.RpcType" 40 optional :load_params, :message, 10, "grpc.testing.LoadParams" 41 optional :payload_config, :message, 11, "grpc.testing.PayloadConfig" 42 optional :histogram_params, :message, 12, "grpc.testing.HistogramParams" 43 repeated :core_list, :int32, 13 44 optional :core_limit, :int32, 14 45 optional :other_client_api, :string, 15 46 repeated :channel_args, :message, 16, "grpc.testing.ChannelArg" 47 optional :threads_per_cq, :int32, 17 48 optional :messages_per_stream, :int32, 18 49 optional :use_coalesce_api, :bool, 19 50 end 51 add_message "grpc.testing.ClientStatus" do 52 optional :stats, :message, 1, "grpc.testing.ClientStats" 53 end 54 add_message "grpc.testing.Mark" do 55 optional :reset, :bool, 1 56 end 57 add_message "grpc.testing.ClientArgs" do 58 oneof :argtype do 59 optional :setup, :message, 1, "grpc.testing.ClientConfig" 60 optional :mark, :message, 2, "grpc.testing.Mark" 61 end 62 end 63 add_message "grpc.testing.ServerConfig" do 64 optional :server_type, :enum, 1, "grpc.testing.ServerType" 65 optional :security_params, :message, 2, "grpc.testing.SecurityParams" 66 optional :port, :int32, 4 67 optional :async_server_threads, :int32, 7 68 optional :core_limit, :int32, 8 69 optional :payload_config, :message, 9, "grpc.testing.PayloadConfig" 70 repeated :core_list, :int32, 10 71 optional :other_server_api, :string, 11 72 optional :threads_per_cq, :int32, 12 73 optional :resource_quota_size, :int32, 1001 74 repeated :channel_args, :message, 1002, "grpc.testing.ChannelArg" 75 end 76 add_message "grpc.testing.ServerArgs" do 77 oneof :argtype do 78 optional :setup, :message, 1, "grpc.testing.ServerConfig" 79 optional :mark, :message, 2, "grpc.testing.Mark" 80 end 81 end 82 add_message "grpc.testing.ServerStatus" do 83 optional :stats, :message, 1, "grpc.testing.ServerStats" 84 optional :port, :int32, 2 85 optional :cores, :int32, 3 86 end 87 add_message "grpc.testing.CoreRequest" do 88 end 89 add_message "grpc.testing.CoreResponse" do 90 optional :cores, :int32, 1 91 end 92 add_message "grpc.testing.Void" do 93 end 94 add_message "grpc.testing.Scenario" do 95 optional :name, :string, 1 96 optional :client_config, :message, 2, "grpc.testing.ClientConfig" 97 optional :num_clients, :int32, 3 98 optional :server_config, :message, 4, "grpc.testing.ServerConfig" 99 optional :num_servers, :int32, 5 100 optional :warmup_seconds, :int32, 6 101 optional :benchmark_seconds, :int32, 7 102 optional :spawn_local_worker_count, :int32, 8 103 end 104 add_message "grpc.testing.Scenarios" do 105 repeated :scenarios, :message, 1, "grpc.testing.Scenario" 106 end 107 add_message "grpc.testing.ScenarioResultSummary" do 108 optional :qps, :double, 1 109 optional :qps_per_server_core, :double, 2 110 optional :server_system_time, :double, 3 111 optional :server_user_time, :double, 4 112 optional :client_system_time, :double, 5 113 optional :client_user_time, :double, 6 114 optional :latency_50, :double, 7 115 optional :latency_90, :double, 8 116 optional :latency_95, :double, 9 117 optional :latency_99, :double, 10 118 optional :latency_999, :double, 11 119 optional :server_cpu_usage, :double, 12 120 optional :successful_requests_per_second, :double, 13 121 optional :failed_requests_per_second, :double, 14 122 optional :client_polls_per_request, :double, 15 123 optional :server_polls_per_request, :double, 16 124 optional :server_queries_per_cpu_sec, :double, 17 125 optional :client_queries_per_cpu_sec, :double, 18 126 end 127 add_message "grpc.testing.ScenarioResult" do 128 optional :scenario, :message, 1, "grpc.testing.Scenario" 129 optional :latencies, :message, 2, "grpc.testing.HistogramData" 130 repeated :client_stats, :message, 3, "grpc.testing.ClientStats" 131 repeated :server_stats, :message, 4, "grpc.testing.ServerStats" 132 repeated :server_cores, :int32, 5 133 optional :summary, :message, 6, "grpc.testing.ScenarioResultSummary" 134 repeated :client_success, :bool, 7 135 repeated :server_success, :bool, 8 136 repeated :request_results, :message, 9, "grpc.testing.RequestResultCount" 137 end 138 add_enum "grpc.testing.ClientType" do 139 value :SYNC_CLIENT, 0 140 value :ASYNC_CLIENT, 1 141 value :OTHER_CLIENT, 2 142 end 143 add_enum "grpc.testing.ServerType" do 144 value :SYNC_SERVER, 0 145 value :ASYNC_SERVER, 1 146 value :ASYNC_GENERIC_SERVER, 2 147 value :OTHER_SERVER, 3 148 end 149 add_enum "grpc.testing.RpcType" do 150 value :UNARY, 0 151 value :STREAMING, 1 152 value :STREAMING_FROM_CLIENT, 2 153 value :STREAMING_FROM_SERVER, 3 154 value :STREAMING_BOTH_WAYS, 4 155 end 156end 157 158module Grpc 159 module Testing 160 PoissonParams = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.PoissonParams").msgclass 161 ClosedLoopParams = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ClosedLoopParams").msgclass 162 LoadParams = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.LoadParams").msgclass 163 SecurityParams = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.SecurityParams").msgclass 164 ChannelArg = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ChannelArg").msgclass 165 ClientConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ClientConfig").msgclass 166 ClientStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ClientStatus").msgclass 167 Mark = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.Mark").msgclass 168 ClientArgs = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ClientArgs").msgclass 169 ServerConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ServerConfig").msgclass 170 ServerArgs = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ServerArgs").msgclass 171 ServerStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ServerStatus").msgclass 172 CoreRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.CoreRequest").msgclass 173 CoreResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.CoreResponse").msgclass 174 Void = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.Void").msgclass 175 Scenario = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.Scenario").msgclass 176 Scenarios = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.Scenarios").msgclass 177 ScenarioResultSummary = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ScenarioResultSummary").msgclass 178 ScenarioResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ScenarioResult").msgclass 179 ClientType = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ClientType").enummodule 180 ServerType = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.ServerType").enummodule 181 RpcType = Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.testing.RpcType").enummodule 182 end 183end 184