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