github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/admin/v2alpha/metrics.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/admin/v2alpha/metrics.proto 6 7 package envoy_admin_v2alpha 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 proto "github.com/golang/protobuf/proto" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 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 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 type SimpleMetric_Type int32 30 31 const ( 32 SimpleMetric_COUNTER SimpleMetric_Type = 0 33 SimpleMetric_GAUGE SimpleMetric_Type = 1 34 ) 35 36 // Enum value maps for SimpleMetric_Type. 37 var ( 38 SimpleMetric_Type_name = map[int32]string{ 39 0: "COUNTER", 40 1: "GAUGE", 41 } 42 SimpleMetric_Type_value = map[string]int32{ 43 "COUNTER": 0, 44 "GAUGE": 1, 45 } 46 ) 47 48 func (x SimpleMetric_Type) Enum() *SimpleMetric_Type { 49 p := new(SimpleMetric_Type) 50 *p = x 51 return p 52 } 53 54 func (x SimpleMetric_Type) String() string { 55 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 56 } 57 58 func (SimpleMetric_Type) Descriptor() protoreflect.EnumDescriptor { 59 return file_envoy_admin_v2alpha_metrics_proto_enumTypes[0].Descriptor() 60 } 61 62 func (SimpleMetric_Type) Type() protoreflect.EnumType { 63 return &file_envoy_admin_v2alpha_metrics_proto_enumTypes[0] 64 } 65 66 func (x SimpleMetric_Type) Number() protoreflect.EnumNumber { 67 return protoreflect.EnumNumber(x) 68 } 69 70 // Deprecated: Use SimpleMetric_Type.Descriptor instead. 71 func (SimpleMetric_Type) EnumDescriptor() ([]byte, []int) { 72 return file_envoy_admin_v2alpha_metrics_proto_rawDescGZIP(), []int{0, 0} 73 } 74 75 // Proto representation of an Envoy Counter or Gauge value. 76 type SimpleMetric struct { 77 state protoimpl.MessageState 78 sizeCache protoimpl.SizeCache 79 unknownFields protoimpl.UnknownFields 80 81 // Type of the metric represented. 82 Type SimpleMetric_Type `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.admin.v2alpha.SimpleMetric_Type" json:"type,omitempty"` 83 // Current metric value. 84 Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` 85 // Name of the metric. 86 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` 87 } 88 89 func (x *SimpleMetric) Reset() { 90 *x = SimpleMetric{} 91 if protoimpl.UnsafeEnabled { 92 mi := &file_envoy_admin_v2alpha_metrics_proto_msgTypes[0] 93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 94 ms.StoreMessageInfo(mi) 95 } 96 } 97 98 func (x *SimpleMetric) String() string { 99 return protoimpl.X.MessageStringOf(x) 100 } 101 102 func (*SimpleMetric) ProtoMessage() {} 103 104 func (x *SimpleMetric) ProtoReflect() protoreflect.Message { 105 mi := &file_envoy_admin_v2alpha_metrics_proto_msgTypes[0] 106 if protoimpl.UnsafeEnabled && x != nil { 107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 108 if ms.LoadMessageInfo() == nil { 109 ms.StoreMessageInfo(mi) 110 } 111 return ms 112 } 113 return mi.MessageOf(x) 114 } 115 116 // Deprecated: Use SimpleMetric.ProtoReflect.Descriptor instead. 117 func (*SimpleMetric) Descriptor() ([]byte, []int) { 118 return file_envoy_admin_v2alpha_metrics_proto_rawDescGZIP(), []int{0} 119 } 120 121 func (x *SimpleMetric) GetType() SimpleMetric_Type { 122 if x != nil { 123 return x.Type 124 } 125 return SimpleMetric_COUNTER 126 } 127 128 func (x *SimpleMetric) GetValue() uint64 { 129 if x != nil { 130 return x.Value 131 } 132 return 0 133 } 134 135 func (x *SimpleMetric) GetName() string { 136 if x != nil { 137 return x.Name 138 } 139 return "" 140 } 141 142 var File_envoy_admin_v2alpha_metrics_proto protoreflect.FileDescriptor 143 144 var file_envoy_admin_v2alpha_metrics_proto_rawDesc = []byte{ 145 0x0a, 0x21, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x32, 146 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 147 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 148 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 149 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 150 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x0c, 0x53, 0x69, 0x6d, 0x70, 151 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 152 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 153 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x69, 0x6d, 154 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 155 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 156 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 157 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x1e, 158 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x45, 159 0x52, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x41, 0x55, 0x47, 0x45, 0x10, 0x01, 0x42, 0x3b, 160 0x0a, 0x21, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 161 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 162 0x70, 0x68, 0x61, 0x42, 0x0c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x74, 163 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 164 0x74, 0x6f, 0x33, 165 } 166 167 var ( 168 file_envoy_admin_v2alpha_metrics_proto_rawDescOnce sync.Once 169 file_envoy_admin_v2alpha_metrics_proto_rawDescData = file_envoy_admin_v2alpha_metrics_proto_rawDesc 170 ) 171 172 func file_envoy_admin_v2alpha_metrics_proto_rawDescGZIP() []byte { 173 file_envoy_admin_v2alpha_metrics_proto_rawDescOnce.Do(func() { 174 file_envoy_admin_v2alpha_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_admin_v2alpha_metrics_proto_rawDescData) 175 }) 176 return file_envoy_admin_v2alpha_metrics_proto_rawDescData 177 } 178 179 var file_envoy_admin_v2alpha_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 180 var file_envoy_admin_v2alpha_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 181 var file_envoy_admin_v2alpha_metrics_proto_goTypes = []interface{}{ 182 (SimpleMetric_Type)(0), // 0: envoy.admin.v2alpha.SimpleMetric.Type 183 (*SimpleMetric)(nil), // 1: envoy.admin.v2alpha.SimpleMetric 184 } 185 var file_envoy_admin_v2alpha_metrics_proto_depIdxs = []int32{ 186 0, // 0: envoy.admin.v2alpha.SimpleMetric.type:type_name -> envoy.admin.v2alpha.SimpleMetric.Type 187 1, // [1:1] is the sub-list for method output_type 188 1, // [1:1] is the sub-list for method input_type 189 1, // [1:1] is the sub-list for extension type_name 190 1, // [1:1] is the sub-list for extension extendee 191 0, // [0:1] is the sub-list for field type_name 192 } 193 194 func init() { file_envoy_admin_v2alpha_metrics_proto_init() } 195 func file_envoy_admin_v2alpha_metrics_proto_init() { 196 if File_envoy_admin_v2alpha_metrics_proto != nil { 197 return 198 } 199 if !protoimpl.UnsafeEnabled { 200 file_envoy_admin_v2alpha_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 201 switch v := v.(*SimpleMetric); i { 202 case 0: 203 return &v.state 204 case 1: 205 return &v.sizeCache 206 case 2: 207 return &v.unknownFields 208 default: 209 return nil 210 } 211 } 212 } 213 type x struct{} 214 out := protoimpl.TypeBuilder{ 215 File: protoimpl.DescBuilder{ 216 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 217 RawDescriptor: file_envoy_admin_v2alpha_metrics_proto_rawDesc, 218 NumEnums: 1, 219 NumMessages: 1, 220 NumExtensions: 0, 221 NumServices: 0, 222 }, 223 GoTypes: file_envoy_admin_v2alpha_metrics_proto_goTypes, 224 DependencyIndexes: file_envoy_admin_v2alpha_metrics_proto_depIdxs, 225 EnumInfos: file_envoy_admin_v2alpha_metrics_proto_enumTypes, 226 MessageInfos: file_envoy_admin_v2alpha_metrics_proto_msgTypes, 227 }.Build() 228 File_envoy_admin_v2alpha_metrics_proto = out.File 229 file_envoy_admin_v2alpha_metrics_proto_rawDesc = nil 230 file_envoy_admin_v2alpha_metrics_proto_goTypes = nil 231 file_envoy_admin_v2alpha_metrics_proto_depIdxs = nil 232 }