github.com/cloudwan/edgelq-sdk@v1.15.4/limits/resources/v1alpha2/common/common.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/limits/proto/v1alpha2/common.proto 3 // DO NOT EDIT!!! 4 5 package common 6 7 import ( 8 "fmt" 9 "reflect" 10 "sync" 11 12 "google.golang.org/protobuf/encoding/protojson" 13 "google.golang.org/protobuf/proto" 14 preflect "google.golang.org/protobuf/reflect/protoreflect" 15 "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 // proto imports 19 import ( 20 meta_resource "github.com/cloudwan/edgelq-sdk/meta/resources/v1alpha2/resource" 21 ) 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var ( 25 _ = fmt.Errorf 26 _ = reflect.Method{} 27 _ = sync.Once{} 28 29 _ = protojson.MarshalOptions{} 30 _ = proto.MarshalOptions{} 31 _ = preflect.Value{} 32 _ = protoimpl.DescBuilder{} 33 ) 34 35 // make sure we're using proto imports 36 var ( 37 _ = &meta_resource.Resource{} 38 ) 39 40 const ( 41 // Verify that this generated code is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 43 // Verify that runtime/protoimpl is sufficiently up-to-date. 44 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 45 ) 46 47 // Allowance informs how many instances of resource for given type are 48 // permitted. 49 type Allowance struct { 50 state protoimpl.MessageState 51 sizeCache protoimpl.SizeCache 52 unknownFields protoimpl.UnknownFields 53 // Reference to resource 54 Resource *meta_resource.Reference `protobuf:"bytes,1,opt,customtype=Reference,name=resource,proto3" json:"resource,omitempty"` 55 // Limit or extension for given resource. 56 Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` 57 } 58 59 func (m *Allowance) Reset() { 60 *m = Allowance{} 61 if protoimpl.UnsafeEnabled { 62 mi := &edgelq_limits_proto_v1alpha2_common_proto_msgTypes[0] 63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 64 ms.StoreMessageInfo(mi) 65 } 66 } 67 68 func (m *Allowance) String() string { 69 return protoimpl.X.MessageStringOf(m) 70 } 71 72 func (*Allowance) ProtoMessage() {} 73 74 func (m *Allowance) ProtoReflect() preflect.Message { 75 mi := &edgelq_limits_proto_v1alpha2_common_proto_msgTypes[0] 76 if protoimpl.UnsafeEnabled && m != nil { 77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 78 if ms.LoadMessageInfo() == nil { 79 ms.StoreMessageInfo(mi) 80 } 81 return ms 82 } 83 return mi.MessageOf(m) 84 } 85 86 func (*Allowance) GotenMessage() {} 87 88 // Deprecated, Use Allowance.ProtoReflect.Descriptor instead. 89 func (*Allowance) Descriptor() ([]byte, []int) { 90 return edgelq_limits_proto_v1alpha2_common_proto_rawDescGZIP(), []int{0} 91 } 92 93 func (m *Allowance) Unmarshal(b []byte) error { 94 return proto.Unmarshal(b, m) 95 } 96 97 func (m *Allowance) Marshal() ([]byte, error) { 98 return proto.Marshal(m) 99 } 100 101 func (m *Allowance) MarshalJSON() ([]byte, error) { 102 return protojson.MarshalOptions{}.Marshal(m) 103 } 104 105 func (m *Allowance) UnmarshalJSON(data []byte) error { 106 return protojson.Unmarshal(data, m) 107 } 108 109 func (m *Allowance) GetResource() *meta_resource.Reference { 110 if m != nil { 111 return m.Resource 112 } 113 return nil 114 } 115 116 func (m *Allowance) GetValue() int64 { 117 if m != nil { 118 return m.Value 119 } 120 return int64(0) 121 } 122 123 func (m *Allowance) SetResource(fv *meta_resource.Reference) { 124 if m == nil { 125 panic(fmt.Errorf("can't set %s on nil %s", "Resource", "Allowance")) 126 } 127 m.Resource = fv 128 } 129 130 func (m *Allowance) SetValue(fv int64) { 131 if m == nil { 132 panic(fmt.Errorf("can't set %s on nil %s", "Value", "Allowance")) 133 } 134 m.Value = fv 135 } 136 137 // RegionalDistribution shows distribution of certain resource allowances 138 // across regions. 139 type RegionalDistribution struct { 140 state protoimpl.MessageState 141 sizeCache protoimpl.SizeCache 142 unknownFields protoimpl.UnknownFields 143 // Reference to resource 144 Resource *meta_resource.Reference `protobuf:"bytes,1,opt,customtype=Reference,name=resource,proto3" json:"resource,omitempty"` 145 // Limit per region. 146 LimitsByRegion map[string]int64 `protobuf:"bytes,2,rep,name=limits_by_region,json=limitsByRegion,proto3" json:"limits_by_region,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 147 } 148 149 func (m *RegionalDistribution) Reset() { 150 *m = RegionalDistribution{} 151 if protoimpl.UnsafeEnabled { 152 mi := &edgelq_limits_proto_v1alpha2_common_proto_msgTypes[1] 153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 154 ms.StoreMessageInfo(mi) 155 } 156 } 157 158 func (m *RegionalDistribution) String() string { 159 return protoimpl.X.MessageStringOf(m) 160 } 161 162 func (*RegionalDistribution) ProtoMessage() {} 163 164 func (m *RegionalDistribution) ProtoReflect() preflect.Message { 165 mi := &edgelq_limits_proto_v1alpha2_common_proto_msgTypes[1] 166 if protoimpl.UnsafeEnabled && m != nil { 167 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 168 if ms.LoadMessageInfo() == nil { 169 ms.StoreMessageInfo(mi) 170 } 171 return ms 172 } 173 return mi.MessageOf(m) 174 } 175 176 func (*RegionalDistribution) GotenMessage() {} 177 178 // Deprecated, Use RegionalDistribution.ProtoReflect.Descriptor instead. 179 func (*RegionalDistribution) Descriptor() ([]byte, []int) { 180 return edgelq_limits_proto_v1alpha2_common_proto_rawDescGZIP(), []int{1} 181 } 182 183 func (m *RegionalDistribution) Unmarshal(b []byte) error { 184 return proto.Unmarshal(b, m) 185 } 186 187 func (m *RegionalDistribution) Marshal() ([]byte, error) { 188 return proto.Marshal(m) 189 } 190 191 func (m *RegionalDistribution) MarshalJSON() ([]byte, error) { 192 return protojson.MarshalOptions{}.Marshal(m) 193 } 194 195 func (m *RegionalDistribution) UnmarshalJSON(data []byte) error { 196 return protojson.Unmarshal(data, m) 197 } 198 199 func (m *RegionalDistribution) GetResource() *meta_resource.Reference { 200 if m != nil { 201 return m.Resource 202 } 203 return nil 204 } 205 206 func (m *RegionalDistribution) GetLimitsByRegion() map[string]int64 { 207 if m != nil { 208 return m.LimitsByRegion 209 } 210 return nil 211 } 212 213 func (m *RegionalDistribution) SetResource(fv *meta_resource.Reference) { 214 if m == nil { 215 panic(fmt.Errorf("can't set %s on nil %s", "Resource", "RegionalDistribution")) 216 } 217 m.Resource = fv 218 } 219 220 func (m *RegionalDistribution) SetLimitsByRegion(fv map[string]int64) { 221 if m == nil { 222 panic(fmt.Errorf("can't set %s on nil %s", "LimitsByRegion", "RegionalDistribution")) 223 } 224 m.LimitsByRegion = fv 225 } 226 227 var edgelq_limits_proto_v1alpha2_common_proto preflect.FileDescriptor 228 229 var edgelq_limits_proto_v1alpha2_common_proto_rawDesc = []byte{ 230 0x0a, 0x29, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2f, 231 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x63, 232 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x6e, 0x74, 0x74, 233 0x2e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 234 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 235 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 236 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 237 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 238 0x6f, 0x1a, 0x29, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x70, 239 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 240 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x61, 0x0a, 0x09, 241 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x72, 0x65, 0x73, 242 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xb2, 0xda, 0x21, 243 0x1e, 0x12, 0x1c, 0x0a, 0x18, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 244 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x10, 0x01, 0x52, 245 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 246 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 247 0x82, 0x02, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x44, 0x69, 0x73, 0x74, 248 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 249 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xb2, 0xda, 0x21, 0x1e, 250 0x12, 0x1c, 0x0a, 0x18, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 251 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x10, 0x01, 0x52, 0x08, 252 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x67, 0x0a, 0x10, 0x6c, 0x69, 0x6d, 0x69, 253 0x74, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x03, 254 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2e, 255 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x61, 256 0x6c, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 257 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 258 0x79, 0x52, 0x0e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x67, 0x69, 0x6f, 259 0x6e, 0x1a, 0x41, 0x0a, 0x13, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x67, 260 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 261 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 262 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 263 0x3a, 0x02, 0x38, 0x01, 0x42, 0x73, 0xe8, 0xde, 0x21, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 264 0x6e, 0x74, 0x74, 0x2e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x31, 265 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 266 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 267 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 268 0x71, 0x2f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 269 0x65, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 270 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 271 0x33, 272 } 273 274 var ( 275 edgelq_limits_proto_v1alpha2_common_proto_rawDescOnce sync.Once 276 edgelq_limits_proto_v1alpha2_common_proto_rawDescData = edgelq_limits_proto_v1alpha2_common_proto_rawDesc 277 ) 278 279 func edgelq_limits_proto_v1alpha2_common_proto_rawDescGZIP() []byte { 280 edgelq_limits_proto_v1alpha2_common_proto_rawDescOnce.Do(func() { 281 edgelq_limits_proto_v1alpha2_common_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_limits_proto_v1alpha2_common_proto_rawDescData) 282 }) 283 return edgelq_limits_proto_v1alpha2_common_proto_rawDescData 284 } 285 286 var edgelq_limits_proto_v1alpha2_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 287 var edgelq_limits_proto_v1alpha2_common_proto_goTypes = []interface{}{ 288 (*Allowance)(nil), // 0: ntt.limits.v1alpha2.Allowance 289 (*RegionalDistribution)(nil), // 1: ntt.limits.v1alpha2.RegionalDistribution 290 nil, // 2: ntt.limits.v1alpha2.RegionalDistribution.LimitsByRegionEntry 291 } 292 var edgelq_limits_proto_v1alpha2_common_proto_depIdxs = []int32{ 293 2, // 0: ntt.limits.v1alpha2.RegionalDistribution.limits_by_region:type_name -> ntt.limits.v1alpha2.RegionalDistribution.LimitsByRegionEntry 294 1, // [1:1] is the sub-list for method output_type 295 1, // [1:1] is the sub-list for method input_type 296 1, // [1:1] is the sub-list for extension type_name 297 1, // [1:1] is the sub-list for extension extendee 298 0, // [0:1] is the sub-list for field type_name 299 } 300 301 func init() { edgelq_limits_proto_v1alpha2_common_proto_init() } 302 func edgelq_limits_proto_v1alpha2_common_proto_init() { 303 if edgelq_limits_proto_v1alpha2_common_proto != nil { 304 return 305 } 306 if !protoimpl.UnsafeEnabled { 307 308 edgelq_limits_proto_v1alpha2_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 309 switch v := v.(*Allowance); i { 310 case 0: 311 return &v.state 312 case 1: 313 return &v.sizeCache 314 case 2: 315 return &v.unknownFields 316 default: 317 return nil 318 } 319 } 320 edgelq_limits_proto_v1alpha2_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 321 switch v := v.(*RegionalDistribution); i { 322 case 0: 323 return &v.state 324 case 1: 325 return &v.sizeCache 326 case 2: 327 return &v.unknownFields 328 default: 329 return nil 330 } 331 } 332 } 333 334 type x struct{} 335 out := protoimpl.TypeBuilder{ 336 File: protoimpl.DescBuilder{ 337 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 338 RawDescriptor: edgelq_limits_proto_v1alpha2_common_proto_rawDesc, 339 NumEnums: 0, 340 NumMessages: 3, 341 NumExtensions: 0, 342 NumServices: 0, 343 }, 344 GoTypes: edgelq_limits_proto_v1alpha2_common_proto_goTypes, 345 DependencyIndexes: edgelq_limits_proto_v1alpha2_common_proto_depIdxs, 346 MessageInfos: edgelq_limits_proto_v1alpha2_common_proto_msgTypes, 347 }.Build() 348 edgelq_limits_proto_v1alpha2_common_proto = out.File 349 edgelq_limits_proto_v1alpha2_common_proto_rawDesc = nil 350 edgelq_limits_proto_v1alpha2_common_proto_goTypes = nil 351 edgelq_limits_proto_v1alpha2_common_proto_depIdxs = nil 352 }