github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/cmd/usage/proto/usage.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: cmd/usage/proto/usage.proto 3 4 package usage 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23 type Usage struct { 24 // service name 25 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 26 // version of service 27 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 28 // unique service id 29 Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` 30 // unix timestamp of report 31 Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 32 // window of report in seconds 33 Window uint64 `protobuf:"varint,5,opt,name=window,proto3" json:"window,omitempty"` 34 // usage metrics 35 Metrics *Metrics `protobuf:"bytes,6,opt,name=metrics,proto3" json:"metrics,omitempty"` 36 XXX_NoUnkeyedLiteral struct{} `json:"-"` 37 XXX_unrecognized []byte `json:"-"` 38 XXX_sizecache int32 `json:"-"` 39 } 40 41 func (m *Usage) Reset() { *m = Usage{} } 42 func (m *Usage) String() string { return proto.CompactTextString(m) } 43 func (*Usage) ProtoMessage() {} 44 func (*Usage) Descriptor() ([]byte, []int) { 45 return fileDescriptor_d6c20769c80f20f4, []int{0} 46 } 47 48 func (m *Usage) XXX_Unmarshal(b []byte) error { 49 return xxx_messageInfo_Usage.Unmarshal(m, b) 50 } 51 func (m *Usage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 52 return xxx_messageInfo_Usage.Marshal(b, m, deterministic) 53 } 54 func (m *Usage) XXX_Merge(src proto.Message) { 55 xxx_messageInfo_Usage.Merge(m, src) 56 } 57 func (m *Usage) XXX_Size() int { 58 return xxx_messageInfo_Usage.Size(m) 59 } 60 func (m *Usage) XXX_DiscardUnknown() { 61 xxx_messageInfo_Usage.DiscardUnknown(m) 62 } 63 64 var xxx_messageInfo_Usage proto.InternalMessageInfo 65 66 func (m *Usage) GetService() string { 67 if m != nil { 68 return m.Service 69 } 70 return "" 71 } 72 73 func (m *Usage) GetVersion() string { 74 if m != nil { 75 return m.Version 76 } 77 return "" 78 } 79 80 func (m *Usage) GetId() string { 81 if m != nil { 82 return m.Id 83 } 84 return "" 85 } 86 87 func (m *Usage) GetTimestamp() uint64 { 88 if m != nil { 89 return m.Timestamp 90 } 91 return 0 92 } 93 94 func (m *Usage) GetWindow() uint64 { 95 if m != nil { 96 return m.Window 97 } 98 return 0 99 } 100 101 func (m *Usage) GetMetrics() *Metrics { 102 if m != nil { 103 return m.Metrics 104 } 105 return nil 106 } 107 108 type Metrics struct { 109 // counts such as requests, services, etc 110 Count map[string]uint64 `protobuf:"bytes,1,rep,name=count,proto3" json:"count,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 111 XXX_NoUnkeyedLiteral struct{} `json:"-"` 112 XXX_unrecognized []byte `json:"-"` 113 XXX_sizecache int32 `json:"-"` 114 } 115 116 func (m *Metrics) Reset() { *m = Metrics{} } 117 func (m *Metrics) String() string { return proto.CompactTextString(m) } 118 func (*Metrics) ProtoMessage() {} 119 func (*Metrics) Descriptor() ([]byte, []int) { 120 return fileDescriptor_d6c20769c80f20f4, []int{1} 121 } 122 123 func (m *Metrics) XXX_Unmarshal(b []byte) error { 124 return xxx_messageInfo_Metrics.Unmarshal(m, b) 125 } 126 func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 127 return xxx_messageInfo_Metrics.Marshal(b, m, deterministic) 128 } 129 func (m *Metrics) XXX_Merge(src proto.Message) { 130 xxx_messageInfo_Metrics.Merge(m, src) 131 } 132 func (m *Metrics) XXX_Size() int { 133 return xxx_messageInfo_Metrics.Size(m) 134 } 135 func (m *Metrics) XXX_DiscardUnknown() { 136 xxx_messageInfo_Metrics.DiscardUnknown(m) 137 } 138 139 var xxx_messageInfo_Metrics proto.InternalMessageInfo 140 141 func (m *Metrics) GetCount() map[string]uint64 { 142 if m != nil { 143 return m.Count 144 } 145 return nil 146 } 147 148 func init() { 149 proto.RegisterType((*Usage)(nil), "Usage") 150 proto.RegisterType((*Metrics)(nil), "Metrics") 151 proto.RegisterMapType((map[string]uint64)(nil), "Metrics.CountEntry") 152 } 153 154 func init() { proto.RegisterFile("cmd/usage/proto/usage.proto", fileDescriptor_d6c20769c80f20f4) } 155 156 var fileDescriptor_d6c20769c80f20f4 = []byte{ 157 // 233 bytes of a gzipped FileDescriptorProto 158 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x90, 0xcd, 0x4a, 0xc4, 0x30, 159 0x14, 0x85, 0x49, 0x7f, 0x9d, 0x3b, 0x20, 0x12, 0x45, 0x2e, 0xea, 0xa2, 0x74, 0x55, 0x37, 0x1d, 160 0x18, 0x37, 0x83, 0x5b, 0x71, 0xe9, 0x26, 0xe0, 0x03, 0xd4, 0xf6, 0x22, 0x41, 0x9b, 0x0c, 0x49, 161 0xda, 0x61, 0x1e, 0xc8, 0xf7, 0x94, 0x26, 0x29, 0xb3, 0x3b, 0xdf, 0x77, 0xee, 0xe6, 0x5c, 0x78, 162 0xec, 0xc7, 0x61, 0x37, 0xd9, 0xee, 0x9b, 0x76, 0x47, 0xa3, 0x9d, 0x0e, 0xb9, 0xf5, 0xb9, 0xfe, 163 0x63, 0x90, 0x7f, 0x2e, 0xcc, 0x11, 0x4a, 0x4b, 0x66, 0x96, 0x3d, 0x21, 0xab, 0x58, 0xb3, 0x11, 164 0x2b, 0x2e, 0xcd, 0x4c, 0xc6, 0x4a, 0xad, 0x30, 0x09, 0x4d, 0x44, 0x7e, 0x0d, 0x89, 0x1c, 0x30, 165 0xf5, 0x32, 0x91, 0x03, 0x7f, 0x82, 0x8d, 0x93, 0x23, 0x59, 0xd7, 0x8d, 0x47, 0xcc, 0x2a, 0xd6, 166 0x64, 0xe2, 0x22, 0xf8, 0x3d, 0x14, 0x27, 0xa9, 0x06, 0x7d, 0xc2, 0xdc, 0x57, 0x91, 0x78, 0x0d, 167 0xe5, 0x48, 0xce, 0xc8, 0xde, 0x62, 0x51, 0xb1, 0x66, 0xbb, 0xbf, 0x6a, 0x3f, 0x02, 0x8b, 0xb5, 168 0xa8, 0x15, 0x94, 0xd1, 0xf1, 0x67, 0xc8, 0x7b, 0x3d, 0x29, 0x87, 0xac, 0x4a, 0x9b, 0xed, 0xfe, 169 0x76, 0x3d, 0x6e, 0xdf, 0x16, 0xfb, 0xae, 0x9c, 0x39, 0x8b, 0x70, 0xf1, 0x70, 0x00, 0xb8, 0x48, 170 0x7e, 0x03, 0xe9, 0x0f, 0x9d, 0xe3, 0xba, 0x25, 0xf2, 0x3b, 0xc8, 0xe7, 0xee, 0x77, 0x22, 0xbf, 171 0x2b, 0x13, 0x01, 0x5e, 0x93, 0x03, 0xfb, 0x2a, 0xfc, 0x7b, 0x5e, 0xfe, 0x03, 0x00, 0x00, 0xff, 172 0xff, 0xe4, 0x89, 0x4c, 0x0e, 0x3d, 0x01, 0x00, 0x00, 173 }