Debian Codegraph @

go/udpa/data/orca/v1/orca_load_report.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.10
4 // protoc v5.29.3
5 // source: udpa/data/orca/v1/orca_load_report.proto
6
7 package v1
8
9 import (
10 _ "github.com/envoyproxy/protoc-gen-validate/validate"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
16 )
17
18 const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25 type OrcaLoadReport struct {
26 state protoimpl.MessageState `protogen:"open.v1"`
27 CpuUtilization float64 `protobuf:"fixed64,1,opt,name=cpu_utilization,json=cpuUtilization,proto3" json:"cpu_utilization,omitempty"`
28 MemUtilization float64 `protobuf:"fixed64,2,opt,name=mem_utilization,json=memUtilization,proto3" json:"mem_utilization,omitempty"`
29 Rps uint64 `protobuf:"varint,3,opt,name=rps,proto3" json:"rps,omitempty"`
30 RequestCost map[string]float64 `protobuf:"bytes,4,rep,name=request_cost,json=requestCost,proto3" json:"request_cost,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
31 Utilization map[string]float64 `protobuf:"bytes,5,rep,name=utilization,proto3" json:"utilization,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
32 unknownFields protoimpl.UnknownFields
33 sizeCache protoimpl.SizeCache
34 }
35
36 func (x *OrcaLoadReport) Reset() {
37 *x = OrcaLoadReport{}
38 mi := &file_udpa_data_orca_v1_orca_load_report_proto_msgTypes[0]
39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
40 ms.StoreMessageInfo(mi)
41 }
42
43 func (x *OrcaLoadReport) String() string {
44 return protoimpl.X.MessageStringOf(x)
45 }
46
47 func (*OrcaLoadReport) ProtoMessage() {}
48
49 func (x *OrcaLoadReport) ProtoReflect() protoreflect.Message {
50 mi := &file_udpa_data_orca_v1_orca_load_report_proto_msgTypes[0]
51 if x != nil {
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 if ms.LoadMessageInfo() == nil {
54 ms.StoreMessageInfo(mi)
55 }
56 return ms
57 }
58 return mi.MessageOf(x)
59 }
60
61 // Deprecated: Use OrcaLoadReport.ProtoReflect.Descriptor instead.
62 func (*OrcaLoadReport) Descriptor() ([]byte, []int) {
63 return file_udpa_data_orca_v1_orca_load_report_proto_rawDescGZIP(), []int{0}
64 }
65
66 func (x *OrcaLoadReport) GetCpuUtilization() float64 {
67 if x != nil {
68 return x.CpuUtilization
69 }
70 return 0
71 }
72
73 func (x *OrcaLoadReport) GetMemUtilization() float64 {
74 if x != nil {
75 return x.MemUtilization
76 }
77 return 0
78 }
79
80 func (x *OrcaLoadReport) GetRps() uint64 {
81 if x != nil {
82 return x.Rps
83 }
84 return 0
85 }
86
87 func (x *OrcaLoadReport) GetRequestCost() map[string]float64 {
88 if x != nil {
89 return x.RequestCost
90 }
91 return nil
92 }
93
94 func (x *OrcaLoadReport) GetUtilization() map[string]float64 {
95 if x != nil {
96 return x.Utilization
97 }
98 return nil
99 }
100
101 var File_udpa_data_orca_v1_orca_load_report_proto protoreflect.FileDescriptor
102
103 const file_udpa_data_orca_v1_orca_load_report_proto_rawDesc = "" +
104 "\n" +
105 "(udpa/data/orca/v1/orca_load_report.proto\x12\x11udpa.data.orca.v1\x1a\x17validate/validate.proto\"\xf1\x03\n" +
106 "\x0eOrcaLoadReport\x12@\n" +
107 "\x0fcpu_utilization\x18\x01 \x01(\x01B\x17\xfaB\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00\xf0?)\x00\x00\x00\x00\x00\x00\x00\x00R\x0ecpuUtilization\x12@\n" +
108 "\x0fmem_utilization\x18\x02 \x01(\x01B\x17\xfaB\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00\xf0?)\x00\x00\x00\x00\x00\x00\x00\x00R\x0ememUtilization\x12\x10\n" +
109 "\x03rps\x18\x03 \x01(\x04R\x03rps\x12U\n" +
110 "\frequest_cost\x18\x04 \x03(\v22.udpa.data.orca.v1.OrcaLoadReport.RequestCostEntryR\vrequestCost\x12r\n" +
111 "\vutilization\x18\x05 \x03(\v22.udpa.data.orca.v1.OrcaLoadReport.UtilizationEntryB\x1c\xfaB\x19\x9a\x01\x16*\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00\xf0?)\x00\x00\x00\x00\x00\x00\x00\x00R\vutilization\x1a>\n" +
112 "\x10RequestCostEntry\x12\x10\n" +
113 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
114 "\x05value\x18\x02 \x01(\x01R\x05value:\x028\x01\x1a>\n" +
115 "\x10UtilizationEntry\x12\x10\n" +
116 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
117 "\x05value\x18\x02 \x01(\x01R\x05value:\x028\x01Bd\n" +
118 "!com.github.udpa.udpa.data.orca.v1B\x13OrcaLoadReportProtoP\x01Z(github.com/cncf/xds/go/udpa/data/orca/v1b\x06proto3"
119
120 var (
121 file_udpa_data_orca_v1_orca_load_report_proto_rawDescOnce sync.Once
122 file_udpa_data_orca_v1_orca_load_report_proto_rawDescData []byte
123 )
124
125 func file_udpa_data_orca_v1_orca_load_report_proto_rawDescGZIP() []byte {
126 file_udpa_data_orca_v1_orca_load_report_proto_rawDescOnce.Do(func() {
127 file_udpa_data_orca_v1_orca_load_report_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_udpa_data_orca_v1_orca_load_report_proto_rawDesc), len(file_udpa_data_orca_v1_orca_load_report_proto_rawDesc)))
128 })
129 return file_udpa_data_orca_v1_orca_load_report_proto_rawDescData
130 }
131
132 var file_udpa_data_orca_v1_orca_load_report_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
133 var file_udpa_data_orca_v1_orca_load_report_proto_goTypes = []any{
134 (*OrcaLoadReport)(nil), // 0: udpa.data.orca.v1.OrcaLoadReport
135 nil, // 1: udpa.data.orca.v1.OrcaLoadReport.RequestCostEntry
136 nil, // 2: udpa.data.orca.v1.OrcaLoadReport.UtilizationEntry
137 }
138 var file_udpa_data_orca_v1_orca_load_report_proto_depIdxs = []int32{
139 1, // 0: udpa.data.orca.v1.OrcaLoadReport.request_cost:type_name -> udpa.data.orca.v1.OrcaLoadReport.RequestCostEntry
140 2, // 1: udpa.data.orca.v1.OrcaLoadReport.utilization:type_name -> udpa.data.orca.v1.OrcaLoadReport.UtilizationEntry
141 2, // [2:2] is the sub-list for method output_type
142 2, // [2:2] is the sub-list for method input_type
143 2, // [2:2] is the sub-list for extension type_name
144 2, // [2:2] is the sub-list for extension extendee
145 0, // [0:2] is the sub-list for field type_name
146 }
147
148 func init() { file_udpa_data_orca_v1_orca_load_report_proto_init() }
149 func file_udpa_data_orca_v1_orca_load_report_proto_init() {
150 if File_udpa_data_orca_v1_orca_load_report_proto != nil {
151 return
152 }
153 type x struct{}
154 out := protoimpl.TypeBuilder{
155 File: protoimpl.DescBuilder{
156 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
157 RawDescriptor: unsafe.Slice(unsafe.StringData(file_udpa_data_orca_v1_orca_load_report_proto_rawDesc), len(file_udpa_data_orca_v1_orca_load_report_proto_rawDesc)),
158 NumEnums: 0,
159 NumMessages: 3,
160 NumExtensions: 0,
161 NumServices: 0,
162 },
163 GoTypes: file_udpa_data_orca_v1_orca_load_report_proto_goTypes,
164 DependencyIndexes: file_udpa_data_orca_v1_orca_load_report_proto_depIdxs,
165 MessageInfos: file_udpa_data_orca_v1_orca_load_report_proto_msgTypes,
166 }.Build()
167 File_udpa_data_orca_v1_orca_load_report_proto = out.File
168 file_udpa_data_orca_v1_orca_load_report_proto_goTypes = nil
169 file_udpa_data_orca_v1_orca_load_report_proto_depIdxs = nil
170 }