Debian Codegraph @

envoy/service/load_stats/v2/lrs.pb.go

raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.30.0
4 // protoc v5.29.1
5 // source: envoy/service/load_stats/v2/lrs.proto
6
7 package load_statsv2
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
12 endpoint "github.com/envoyproxy/go-control-plane/envoy/api/v2/endpoint"
13 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
14 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
15 durationpb "google.golang.org/protobuf/types/known/durationpb"
16 reflect "reflect"
17 sync "sync"
18 )
19
20 const (
21 // Verify that this generated code is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23 // Verify that runtime/protoimpl is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25 )
26
27 // A load report Envoy sends to the management server.
28 // [#not-implemented-hide:] Not configuration. TBD how to doc proto APIs.
29 type LoadStatsRequest struct {
30 state protoimpl.MessageState
31 sizeCache protoimpl.SizeCache
32 unknownFields protoimpl.UnknownFields
33
34 // Node identifier for Envoy instance.
35 Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
36 // A list of load stats to report.
37 ClusterStats []*endpoint.ClusterStats `protobuf:"bytes,2,rep,name=cluster_stats,json=clusterStats,proto3" json:"cluster_stats,omitempty"`
38 }
39
40 func (x *LoadStatsRequest) Reset() {
41 *x = LoadStatsRequest{}
42 if protoimpl.UnsafeEnabled {
43 mi := &file_envoy_service_load_stats_v2_lrs_proto_msgTypes[0]
44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
45 ms.StoreMessageInfo(mi)
46 }
47 }
48
49 func (x *LoadStatsRequest) String() string {
50 return protoimpl.X.MessageStringOf(x)
51 }
52
53 func (*LoadStatsRequest) ProtoMessage() {}
54
55 func (x *LoadStatsRequest) ProtoReflect() protoreflect.Message {
56 mi := &file_envoy_service_load_stats_v2_lrs_proto_msgTypes[0]
57 if protoimpl.UnsafeEnabled && x != nil {
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 if ms.LoadMessageInfo() == nil {
60 ms.StoreMessageInfo(mi)
61 }
62 return ms
63 }
64 return mi.MessageOf(x)
65 }
66
67 // Deprecated: Use LoadStatsRequest.ProtoReflect.Descriptor instead.
68 func (*LoadStatsRequest) Descriptor() ([]byte, []int) {
69 return file_envoy_service_load_stats_v2_lrs_proto_rawDescGZIP(), []int{0}
70 }
71
72 func (x *LoadStatsRequest) GetNode() *core.Node {
73 if x != nil {
74 return x.Node
75 }
76 return nil
77 }
78
79 func (x *LoadStatsRequest) GetClusterStats() []*endpoint.ClusterStats {
80 if x != nil {
81 return x.ClusterStats
82 }
83 return nil
84 }
85
86 // The management server sends envoy a LoadStatsResponse with all clusters it
87 // is interested in learning load stats about.
88 // [#not-implemented-hide:] Not configuration. TBD how to doc proto APIs.
89 type LoadStatsResponse struct {
90 state protoimpl.MessageState
91 sizeCache protoimpl.SizeCache
92 unknownFields protoimpl.UnknownFields
93
94 // Clusters to report stats for.
95 // Not populated if *send_all_clusters* is true.
96 Clusters []string `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"`
97 // If true, the client should send all clusters it knows about.
98 // Only clients that advertise the "envoy.lrs.supports_send_all_clusters" capability in their
99 // :ref:`client_features<envoy_api_field_core.Node.client_features>` field will honor this field.
100 SendAllClusters bool `protobuf:"varint,4,opt,name=send_all_clusters,json=sendAllClusters,proto3" json:"send_all_clusters,omitempty"`
101 // The minimum interval of time to collect stats over. This is only a minimum for two reasons:
102 // 1. There may be some delay from when the timer fires until stats sampling occurs.
103 // 2. For clusters that were already feature in the previous *LoadStatsResponse*, any traffic
104 // that is observed in between the corresponding previous *LoadStatsRequest* and this
105 // *LoadStatsResponse* will also be accumulated and billed to the cluster. This avoids a period
106 // of inobservability that might otherwise exists between the messages. New clusters are not
107 // subject to this consideration.
108 LoadReportingInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=load_reporting_interval,json=loadReportingInterval,proto3" json:"load_reporting_interval,omitempty"`
109 // Set to *true* if the management server supports endpoint granularity
110 // report.
111 ReportEndpointGranularity bool `protobuf:"varint,3,opt,name=report_endpoint_granularity,json=reportEndpointGranularity,proto3" json:"report_endpoint_granularity,omitempty"`
112 }
113
114 func (x *LoadStatsResponse) Reset() {
115 *x = LoadStatsResponse{}
116 if protoimpl.UnsafeEnabled {
117 mi := &file_envoy_service_load_stats_v2_lrs_proto_msgTypes[1]
118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
119 ms.StoreMessageInfo(mi)
120 }
121 }
122
123 func (x *LoadStatsResponse) String() string {
124 return protoimpl.X.MessageStringOf(x)
125 }
126
127 func (*LoadStatsResponse) ProtoMessage() {}
128
129 func (x *LoadStatsResponse) ProtoReflect() protoreflect.Message {
130 mi := &file_envoy_service_load_stats_v2_lrs_proto_msgTypes[1]
131 if protoimpl.UnsafeEnabled && x != nil {
132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
133 if ms.LoadMessageInfo() == nil {
134 ms.StoreMessageInfo(mi)
135 }
136 return ms
137 }
138 return mi.MessageOf(x)
139 }
140
141 // Deprecated: Use LoadStatsResponse.ProtoReflect.Descriptor instead.
142 func (*LoadStatsResponse) Descriptor() ([]byte, []int) {
143 return file_envoy_service_load_stats_v2_lrs_proto_rawDescGZIP(), []int{1}
144 }
145
146 func (x *LoadStatsResponse) GetClusters() []string {
147 if x != nil {
148 return x.Clusters
149 }
150 return nil
151 }
152
153 func (x *LoadStatsResponse) GetSendAllClusters() bool {
154 if x != nil {
155 return x.SendAllClusters
156 }
157 return false
158 }
159
160 func (x *LoadStatsResponse) GetLoadReportingInterval() *durationpb.Duration {
161 if x != nil {
162 return x.LoadReportingInterval
163 }
164 return nil
165 }
166
167 func (x *LoadStatsResponse) GetReportEndpointGranularity() bool {
168 if x != nil {
169 return x.ReportEndpointGranularity
170 }
171 return false
172 }
173
174 var File_envoy_service_load_stats_v2_lrs_proto protoreflect.FileDescriptor
175
176 var file_envoy_service_load_stats_v2_lrs_proto_rawDesc = []byte{
177 0x0a, 0x25, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
178 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6c, 0x72,
179 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73,
180 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74,
181 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f,
182 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f,
183 0x74, 0x6f, 0x1a, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32,
184 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x72,
185 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
186 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72,
187 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70,
188 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74,
189 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x10, 0x4c,
190 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
191 0x2b, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
192 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72,
193 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x48, 0x0a, 0x0d,
194 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20,
195 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e,
196 0x76, 0x32, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x43, 0x6c, 0x75, 0x73,
197 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65,
198 0x72, 0x53, 0x74, 0x61, 0x74, 0x73, 0x22, 0xee, 0x01, 0x0a, 0x11, 0x4c, 0x6f, 0x61, 0x64, 0x53,
199 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08,
200 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08,
201 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x6e, 0x64,
202 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20,
203 0x01, 0x28, 0x08, 0x52, 0x0f, 0x73, 0x65, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x43, 0x6c, 0x75, 0x73,
204 0x74, 0x65, 0x72, 0x73, 0x12, 0x51, 0x0a, 0x17, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x72, 0x65, 0x70,
205 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18,
206 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
207 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
208 0x52, 0x15, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x49,
209 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x3e, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x6f, 0x72,
210 0x74, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x67, 0x72, 0x61, 0x6e, 0x75,
211 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x72, 0x65,
212 0x70, 0x6f, 0x72, 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x47, 0x72, 0x61, 0x6e,
213 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x32, 0x8e, 0x01, 0x0a, 0x14, 0x4c, 0x6f, 0x61, 0x64,
214 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
215 0x12, 0x76, 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74,
216 0x61, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76,
217 0x69, 0x63, 0x65, 0x2e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76,
218 0x32, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
219 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
220 0x63, 0x65, 0x2e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76, 0x32,
221 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
222 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x90, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06,
223 0x02, 0x10, 0x01, 0x0a, 0x29, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
224 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
225 0x2e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x08,
226 0x4c, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68,
227 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78,
228 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61,
229 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
230 0x2f, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x6c,
231 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f,
232 0x74, 0x6f, 0x33,
233 }
234
235 var (
236 file_envoy_service_load_stats_v2_lrs_proto_rawDescOnce sync.Once
237 file_envoy_service_load_stats_v2_lrs_proto_rawDescData = file_envoy_service_load_stats_v2_lrs_proto_rawDesc
238 )
239
240 func file_envoy_service_load_stats_v2_lrs_proto_rawDescGZIP() []byte {
241 file_envoy_service_load_stats_v2_lrs_proto_rawDescOnce.Do(func() {
242 file_envoy_service_load_stats_v2_lrs_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_load_stats_v2_lrs_proto_rawDescData)
243 })
244 return file_envoy_service_load_stats_v2_lrs_proto_rawDescData
245 }
246
247 var file_envoy_service_load_stats_v2_lrs_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
248 var file_envoy_service_load_stats_v2_lrs_proto_goTypes = []interface{}{
249 (*LoadStatsRequest)(nil), // 0: envoy.service.load_stats.v2.LoadStatsRequest
250 (*LoadStatsResponse)(nil), // 1: envoy.service.load_stats.v2.LoadStatsResponse
251 (*core.Node)(nil), // 2: envoy.api.v2.core.Node
252 (*endpoint.ClusterStats)(nil), // 3: envoy.api.v2.endpoint.ClusterStats
253 (*durationpb.Duration)(nil), // 4: google.protobuf.Duration
254 }
255 var file_envoy_service_load_stats_v2_lrs_proto_depIdxs = []int32{
256 2, // 0: envoy.service.load_stats.v2.LoadStatsRequest.node:type_name -> envoy.api.v2.core.Node
257 3, // 1: envoy.service.load_stats.v2.LoadStatsRequest.cluster_stats:type_name -> envoy.api.v2.endpoint.ClusterStats
258 4, // 2: envoy.service.load_stats.v2.LoadStatsResponse.load_reporting_interval:type_name -> google.protobuf.Duration
259 0, // 3: envoy.service.load_stats.v2.LoadReportingService.StreamLoadStats:input_type -> envoy.service.load_stats.v2.LoadStatsRequest
260 1, // 4: envoy.service.load_stats.v2.LoadReportingService.StreamLoadStats:output_type -> envoy.service.load_stats.v2.LoadStatsResponse
261 4, // [4:5] is the sub-list for method output_type
262 3, // [3:4] is the sub-list for method input_type
263 3, // [3:3] is the sub-list for extension type_name
264 3, // [3:3] is the sub-list for extension extendee
265 0, // [0:3] is the sub-list for field type_name
266 }
267
268 func init() { file_envoy_service_load_stats_v2_lrs_proto_init() }
269 func file_envoy_service_load_stats_v2_lrs_proto_init() {
270 if File_envoy_service_load_stats_v2_lrs_proto != nil {
271 return
272 }
273 if !protoimpl.UnsafeEnabled {
274 file_envoy_service_load_stats_v2_lrs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
275 switch v := v.(*LoadStatsRequest); i {
276 case 0:
277 return &v.state
278 case 1:
279 return &v.sizeCache
280 case 2:
281 return &v.unknownFields
282 default:
283 return nil
284 }
285 }
286 file_envoy_service_load_stats_v2_lrs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
287 switch v := v.(*LoadStatsResponse); i {
288 case 0:
289 return &v.state
290 case 1:
291 return &v.sizeCache
292 case 2:
293 return &v.unknownFields
294 default:
295 return nil
296 }
297 }
298 }
299 type x struct{}
300 out := protoimpl.TypeBuilder{
301 File: protoimpl.DescBuilder{
302 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
303 RawDescriptor: file_envoy_service_load_stats_v2_lrs_proto_rawDesc,
304 NumEnums: 0,
305 NumMessages: 2,
306 NumExtensions: 0,
307 NumServices: 1,
308 },
309 GoTypes: file_envoy_service_load_stats_v2_lrs_proto_goTypes,
310 DependencyIndexes: file_envoy_service_load_stats_v2_lrs_proto_depIdxs,
311 MessageInfos: file_envoy_service_load_stats_v2_lrs_proto_msgTypes,
312 }.Build()
313 File_envoy_service_load_stats_v2_lrs_proto = out.File
314 file_envoy_service_load_stats_v2_lrs_proto_rawDesc = nil
315 file_envoy_service_load_stats_v2_lrs_proto_goTypes = nil
316 file_envoy_service_load_stats_v2_lrs_proto_depIdxs = nil
317 }