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