mirror of
https://github.com/status-im/consul.git
synced 2025-01-20 18:50:04 +00:00
df5e55fc50
This ensures that if someone does include some extension Consul does not currently make use of, that extension is actually usable. Without linking these envoy protobufs into the main binary it can't round trip the escape hatches to send them down to envoy. Whenenver the go-control-plane library is upgraded next we just have to re-run 'make envoy-library'.
132 lines
4.9 KiB
Go
132 lines
4.9 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: envoy/admin/v3/metrics.proto
|
|
|
|
package envoy_admin_v3
|
|
|
|
import (
|
|
fmt "fmt"
|
|
_ "github.com/cncf/udpa/go/udpa/annotations"
|
|
proto "github.com/golang/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type SimpleMetric_Type int32
|
|
|
|
const (
|
|
SimpleMetric_COUNTER SimpleMetric_Type = 0
|
|
SimpleMetric_GAUGE SimpleMetric_Type = 1
|
|
)
|
|
|
|
var SimpleMetric_Type_name = map[int32]string{
|
|
0: "COUNTER",
|
|
1: "GAUGE",
|
|
}
|
|
|
|
var SimpleMetric_Type_value = map[string]int32{
|
|
"COUNTER": 0,
|
|
"GAUGE": 1,
|
|
}
|
|
|
|
func (x SimpleMetric_Type) String() string {
|
|
return proto.EnumName(SimpleMetric_Type_name, int32(x))
|
|
}
|
|
|
|
func (SimpleMetric_Type) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_f43fd25d8f6d2cfd, []int{0, 0}
|
|
}
|
|
|
|
type SimpleMetric struct {
|
|
Type SimpleMetric_Type `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.admin.v3.SimpleMetric_Type" json:"type,omitempty"`
|
|
Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SimpleMetric) Reset() { *m = SimpleMetric{} }
|
|
func (m *SimpleMetric) String() string { return proto.CompactTextString(m) }
|
|
func (*SimpleMetric) ProtoMessage() {}
|
|
func (*SimpleMetric) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f43fd25d8f6d2cfd, []int{0}
|
|
}
|
|
|
|
func (m *SimpleMetric) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SimpleMetric.Unmarshal(m, b)
|
|
}
|
|
func (m *SimpleMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SimpleMetric.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SimpleMetric) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SimpleMetric.Merge(m, src)
|
|
}
|
|
func (m *SimpleMetric) XXX_Size() int {
|
|
return xxx_messageInfo_SimpleMetric.Size(m)
|
|
}
|
|
func (m *SimpleMetric) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SimpleMetric.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SimpleMetric proto.InternalMessageInfo
|
|
|
|
func (m *SimpleMetric) GetType() SimpleMetric_Type {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return SimpleMetric_COUNTER
|
|
}
|
|
|
|
func (m *SimpleMetric) GetValue() uint64 {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SimpleMetric) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("envoy.admin.v3.SimpleMetric_Type", SimpleMetric_Type_name, SimpleMetric_Type_value)
|
|
proto.RegisterType((*SimpleMetric)(nil), "envoy.admin.v3.SimpleMetric")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("envoy/admin/v3/metrics.proto", fileDescriptor_f43fd25d8f6d2cfd) }
|
|
|
|
var fileDescriptor_f43fd25d8f6d2cfd = []byte{
|
|
// 274 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcd, 0x2b, 0xcb,
|
|
0xaf, 0xd4, 0x4f, 0x4c, 0xc9, 0xcd, 0xcc, 0xd3, 0x2f, 0x33, 0xd6, 0xcf, 0x4d, 0x2d, 0x29, 0xca,
|
|
0x4c, 0x2e, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x03, 0xcb, 0xea, 0x81, 0x65, 0xf5,
|
|
0xca, 0x8c, 0xa5, 0x64, 0x4b, 0x53, 0x0a, 0x12, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b,
|
|
0x32, 0xf3, 0xf3, 0x8a, 0xf5, 0x8b, 0x4b, 0x12, 0x4b, 0x4a, 0xa1, 0xca, 0xa5, 0x14, 0x31, 0xa4,
|
|
0xcb, 0x52, 0x8b, 0x8a, 0x33, 0xf3, 0xf3, 0x32, 0xf3, 0xd2, 0x21, 0x4a, 0x94, 0x76, 0x30, 0x72,
|
|
0xf1, 0x04, 0x67, 0xe6, 0x16, 0xe4, 0xa4, 0xfa, 0x82, 0x6d, 0x12, 0x32, 0xe5, 0x62, 0x29, 0xa9,
|
|
0x2c, 0x48, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x33, 0x52, 0xd4, 0x43, 0xb5, 0x51, 0x0f, 0x59,
|
|
0xad, 0x5e, 0x48, 0x65, 0x41, 0x6a, 0x10, 0x58, 0xb9, 0x90, 0x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