github.com/google/cloudprober@v0.11.3/metrics/proto/dist.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.26.0 4 // protoc v3.17.3 5 // source: github.com/google/cloudprober/metrics/proto/dist.proto 6 7 package proto 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // Dist defines a Distribution data type. 24 type Dist struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 // Types that are assignable to Buckets: 30 // *Dist_ExplicitBuckets 31 // *Dist_ExponentialBuckets 32 Buckets isDist_Buckets `protobuf_oneof:"buckets"` 33 } 34 35 func (x *Dist) Reset() { 36 *x = Dist{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_github_com_google_cloudprober_metrics_proto_dist_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *Dist) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*Dist) ProtoMessage() {} 49 50 func (x *Dist) ProtoReflect() protoreflect.Message { 51 mi := &file_github_com_google_cloudprober_metrics_proto_dist_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use Dist.ProtoReflect.Descriptor instead. 63 func (*Dist) Descriptor() ([]byte, []int) { 64 return file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (m *Dist) GetBuckets() isDist_Buckets { 68 if m != nil { 69 return m.Buckets 70 } 71 return nil 72 } 73 74 func (x *Dist) GetExplicitBuckets() string { 75 if x, ok := x.GetBuckets().(*Dist_ExplicitBuckets); ok { 76 return x.ExplicitBuckets 77 } 78 return "" 79 } 80 81 func (x *Dist) GetExponentialBuckets() *ExponentialBuckets { 82 if x, ok := x.GetBuckets().(*Dist_ExponentialBuckets); ok { 83 return x.ExponentialBuckets 84 } 85 return nil 86 } 87 88 type isDist_Buckets interface { 89 isDist_Buckets() 90 } 91 92 type Dist_ExplicitBuckets struct { 93 // Comma-separated list of lower bounds, where each lower bound is a float 94 // value. Example: 0.5,1,2,4,8. 95 ExplicitBuckets string `protobuf:"bytes,1,opt,name=explicit_buckets,json=explicitBuckets,oneof"` 96 } 97 98 type Dist_ExponentialBuckets struct { 99 // Exponentially growing buckets 100 ExponentialBuckets *ExponentialBuckets `protobuf:"bytes,2,opt,name=exponential_buckets,json=exponentialBuckets,oneof"` 101 } 102 103 func (*Dist_ExplicitBuckets) isDist_Buckets() {} 104 105 func (*Dist_ExponentialBuckets) isDist_Buckets() {} 106 107 // ExponentialBucket defines a set of num_buckets+2 buckets: 108 // bucket[0] covers (−Inf, 0) 109 // bucket[1] covers [0, scale_factor) 110 // bucket[2] covers [scale_factor, scale_factor*base) 111 // ... 112 // bucket[i] covers [scale_factor*base^(i−2), scale_factor*base^(i−1)) 113 // ... 114 // bucket[num_buckets+1] covers [scale_factor*base^(num_buckets−1), +Inf) 115 // NB: Base must be at least 1.01. 116 type ExponentialBuckets struct { 117 state protoimpl.MessageState 118 sizeCache protoimpl.SizeCache 119 unknownFields protoimpl.UnknownFields 120 121 ScaleFactor *float32 `protobuf:"fixed32,1,opt,name=scale_factor,json=scaleFactor,def=1" json:"scale_factor,omitempty"` 122 Base *float32 `protobuf:"fixed32,2,opt,name=base,def=2" json:"base,omitempty"` 123 NumBuckets *uint32 `protobuf:"varint,3,opt,name=num_buckets,json=numBuckets,def=20" json:"num_buckets,omitempty"` 124 } 125 126 // Default values for ExponentialBuckets fields. 127 const ( 128 Default_ExponentialBuckets_ScaleFactor = float32(1) 129 Default_ExponentialBuckets_Base = float32(2) 130 Default_ExponentialBuckets_NumBuckets = uint32(20) 131 ) 132 133 func (x *ExponentialBuckets) Reset() { 134 *x = ExponentialBuckets{} 135 if protoimpl.UnsafeEnabled { 136 mi := &file_github_com_google_cloudprober_metrics_proto_dist_proto_msgTypes[1] 137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 138 ms.StoreMessageInfo(mi) 139 } 140 } 141 142 func (x *ExponentialBuckets) String() string { 143 return protoimpl.X.MessageStringOf(x) 144 } 145 146 func (*ExponentialBuckets) ProtoMessage() {} 147 148 func (x *ExponentialBuckets) ProtoReflect() protoreflect.Message { 149 mi := &file_github_com_google_cloudprober_metrics_proto_dist_proto_msgTypes[1] 150 if protoimpl.UnsafeEnabled && x != nil { 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 if ms.LoadMessageInfo() == nil { 153 ms.StoreMessageInfo(mi) 154 } 155 return ms 156 } 157 return mi.MessageOf(x) 158 } 159 160 // Deprecated: Use ExponentialBuckets.ProtoReflect.Descriptor instead. 161 func (*ExponentialBuckets) Descriptor() ([]byte, []int) { 162 return file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDescGZIP(), []int{1} 163 } 164 165 func (x *ExponentialBuckets) GetScaleFactor() float32 { 166 if x != nil && x.ScaleFactor != nil { 167 return *x.ScaleFactor 168 } 169 return Default_ExponentialBuckets_ScaleFactor 170 } 171 172 func (x *ExponentialBuckets) GetBase() float32 { 173 if x != nil && x.Base != nil { 174 return *x.Base 175 } 176 return Default_ExponentialBuckets_Base 177 } 178 179 func (x *ExponentialBuckets) GetNumBuckets() uint32 { 180 if x != nil && x.NumBuckets != nil { 181 return *x.NumBuckets 182 } 183 return Default_ExponentialBuckets_NumBuckets 184 } 185 186 var File_github_com_google_cloudprober_metrics_proto_dist_proto protoreflect.FileDescriptor 187 188 var file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDesc = []byte{ 189 0x0a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 190 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 191 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x64, 0x69, 192 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 193 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x9a, 0x01, 194 0x0a, 0x04, 0x44, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 195 0x69, 0x74, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 196 0x48, 0x00, 0x52, 0x0f, 0x65, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, 0x42, 0x75, 0x63, 0x6b, 197 0x65, 0x74, 0x73, 0x12, 0x5a, 0x0a, 0x13, 0x65, 0x78, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 198 0x61, 0x6c, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 199 0x32, 0x27, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x6d, 200 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 201 0x61, 0x6c, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x48, 0x00, 0x52, 0x12, 0x65, 0x78, 0x70, 202 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x42, 203 0x09, 0x0a, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x22, 0x76, 0x0a, 0x12, 0x45, 0x78, 204 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 205 0x12, 0x24, 0x0a, 0x0c, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 206 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x3a, 0x01, 0x31, 0x52, 0x0b, 0x73, 0x63, 0x61, 0x6c, 0x65, 207 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x04, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 208 0x20, 0x01, 0x28, 0x02, 0x3a, 0x01, 0x32, 0x52, 0x04, 0x62, 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 209 0x0b, 0x6e, 0x75, 0x6d, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 210 0x28, 0x0d, 0x3a, 0x02, 0x32, 0x30, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x42, 0x75, 0x63, 0x6b, 0x65, 211 0x74, 0x73, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 212 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 213 0x62, 0x65, 0x72, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 214 0x6f, 215 } 216 217 var ( 218 file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDescOnce sync.Once 219 file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDescData = file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDesc 220 ) 221 222 func file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDescGZIP() []byte { 223 file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDescOnce.Do(func() { 224 file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDescData) 225 }) 226 return file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDescData 227 } 228 229 var file_github_com_google_cloudprober_metrics_proto_dist_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 230 var file_github_com_google_cloudprober_metrics_proto_dist_proto_goTypes = []interface{}{ 231 (*Dist)(nil), // 0: cloudprober.metrics.Dist 232 (*ExponentialBuckets)(nil), // 1: cloudprober.metrics.ExponentialBuckets 233 } 234 var file_github_com_google_cloudprober_metrics_proto_dist_proto_depIdxs = []int32{ 235 1, // 0: cloudprober.metrics.Dist.exponential_buckets:type_name -> cloudprober.metrics.ExponentialBuckets 236 1, // [1:1] is the sub-list for method output_type 237 1, // [1:1] is the sub-list for method input_type 238 1, // [1:1] is the sub-list for extension type_name 239 1, // [1:1] is the sub-list for extension extendee 240 0, // [0:1] is the sub-list for field type_name 241 } 242 243 func init() { file_github_com_google_cloudprober_metrics_proto_dist_proto_init() } 244 func file_github_com_google_cloudprober_metrics_proto_dist_proto_init() { 245 if File_github_com_google_cloudprober_metrics_proto_dist_proto != nil { 246 return 247 } 248 if !protoimpl.UnsafeEnabled { 249 file_github_com_google_cloudprober_metrics_proto_dist_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 250 switch v := v.(*Dist); i { 251 case 0: 252 return &v.state 253 case 1: 254 return &v.sizeCache 255 case 2: 256 return &v.unknownFields 257 default: 258 return nil 259 } 260 } 261 file_github_com_google_cloudprober_metrics_proto_dist_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 262 switch v := v.(*ExponentialBuckets); i { 263 case 0: 264 return &v.state 265 case 1: 266 return &v.sizeCache 267 case 2: 268 return &v.unknownFields 269 default: 270 return nil 271 } 272 } 273 } 274 file_github_com_google_cloudprober_metrics_proto_dist_proto_msgTypes[0].OneofWrappers = []interface{}{ 275 (*Dist_ExplicitBuckets)(nil), 276 (*Dist_ExponentialBuckets)(nil), 277 } 278 type x struct{} 279 out := protoimpl.TypeBuilder{ 280 File: protoimpl.DescBuilder{ 281 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 282 RawDescriptor: file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDesc, 283 NumEnums: 0, 284 NumMessages: 2, 285 NumExtensions: 0, 286 NumServices: 0, 287 }, 288 GoTypes: file_github_com_google_cloudprober_metrics_proto_dist_proto_goTypes, 289 DependencyIndexes: file_github_com_google_cloudprober_metrics_proto_dist_proto_depIdxs, 290 MessageInfos: file_github_com_google_cloudprober_metrics_proto_dist_proto_msgTypes, 291 }.Build() 292 File_github_com_google_cloudprober_metrics_proto_dist_proto = out.File 293 file_github_com_google_cloudprober_metrics_proto_dist_proto_rawDesc = nil 294 file_github_com_google_cloudprober_metrics_proto_dist_proto_goTypes = nil 295 file_github_com_google_cloudprober_metrics_proto_dist_proto_depIdxs = nil 296 }