go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/server/quota/quotapb/policy_config.pb.go (about)

     1  // Copyright 2022 The LUCI Authors. All rights reserved.
     2  // Use of this source code is governed under the Apache License, Version 2.0
     3  // that can be found in the LICENSE file.
     4  
     5  // Code generated by protoc-gen-go. DO NOT EDIT.
     6  // versions:
     7  // 	protoc-gen-go v1.31.0
     8  // 	protoc        v3.21.7
     9  // source: go.chromium.org/luci/server/quota/quotapb/policy_config.proto
    10  
    11  package quotapb
    12  
    13  import (
    14  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    16  	reflect "reflect"
    17  	sync "sync"
    18  )
    19  
    20  const (
    21  	// Verify that this generated code is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    23  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    24  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    25  )
    26  
    27  // A PolicyConfig encapsulates a set of quota policies.
    28  type PolicyConfig struct {
    29  	state         protoimpl.MessageState
    30  	sizeCache     protoimpl.SizeCache
    31  	unknownFields protoimpl.UnknownFields
    32  
    33  	Policies []*PolicyConfig_Entry `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
    34  }
    35  
    36  func (x *PolicyConfig) Reset() {
    37  	*x = PolicyConfig{}
    38  	if protoimpl.UnsafeEnabled {
    39  		mi := &file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_msgTypes[0]
    40  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    41  		ms.StoreMessageInfo(mi)
    42  	}
    43  }
    44  
    45  func (x *PolicyConfig) String() string {
    46  	return protoimpl.X.MessageStringOf(x)
    47  }
    48  
    49  func (*PolicyConfig) ProtoMessage() {}
    50  
    51  func (x *PolicyConfig) ProtoReflect() protoreflect.Message {
    52  	mi := &file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_msgTypes[0]
    53  	if protoimpl.UnsafeEnabled && x != nil {
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		if ms.LoadMessageInfo() == nil {
    56  			ms.StoreMessageInfo(mi)
    57  		}
    58  		return ms
    59  	}
    60  	return mi.MessageOf(x)
    61  }
    62  
    63  // Deprecated: Use PolicyConfig.ProtoReflect.Descriptor instead.
    64  func (*PolicyConfig) Descriptor() ([]byte, []int) {
    65  	return file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDescGZIP(), []int{0}
    66  }
    67  
    68  func (x *PolicyConfig) GetPolicies() []*PolicyConfig_Entry {
    69  	if x != nil {
    70  		return x.Policies
    71  	}
    72  	return nil
    73  }
    74  
    75  type PolicyConfig_Entry struct {
    76  	state         protoimpl.MessageState
    77  	sizeCache     protoimpl.SizeCache
    78  	unknownFields protoimpl.UnknownFields
    79  
    80  	Key    *PolicyKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    81  	Policy *Policy    `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
    82  }
    83  
    84  func (x *PolicyConfig_Entry) Reset() {
    85  	*x = PolicyConfig_Entry{}
    86  	if protoimpl.UnsafeEnabled {
    87  		mi := &file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_msgTypes[1]
    88  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    89  		ms.StoreMessageInfo(mi)
    90  	}
    91  }
    92  
    93  func (x *PolicyConfig_Entry) String() string {
    94  	return protoimpl.X.MessageStringOf(x)
    95  }
    96  
    97  func (*PolicyConfig_Entry) ProtoMessage() {}
    98  
    99  func (x *PolicyConfig_Entry) ProtoReflect() protoreflect.Message {
   100  	mi := &file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_msgTypes[1]
   101  	if protoimpl.UnsafeEnabled && x != nil {
   102  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   103  		if ms.LoadMessageInfo() == nil {
   104  			ms.StoreMessageInfo(mi)
   105  		}
   106  		return ms
   107  	}
   108  	return mi.MessageOf(x)
   109  }
   110  
   111  // Deprecated: Use PolicyConfig_Entry.ProtoReflect.Descriptor instead.
   112  func (*PolicyConfig_Entry) Descriptor() ([]byte, []int) {
   113  	return file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDescGZIP(), []int{0, 0}
   114  }
   115  
   116  func (x *PolicyConfig_Entry) GetKey() *PolicyKey {
   117  	if x != nil {
   118  		return x.Key
   119  	}
   120  	return nil
   121  }
   122  
   123  func (x *PolicyConfig_Entry) GetPolicy() *Policy {
   124  	if x != nil {
   125  		return x.Policy
   126  	}
   127  	return nil
   128  }
   129  
   130  var File_go_chromium_org_luci_server_quota_quotapb_policy_config_proto protoreflect.FileDescriptor
   131  
   132  var file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDesc = []byte{
   133  	0x0a, 0x3d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   134  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x71, 0x75,
   135  	0x6f, 0x74, 0x61, 0x2f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x70, 0x62, 0x2f, 0x70, 0x6f, 0x6c, 0x69,
   136  	0x63, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   137  	0x29, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
   138  	0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x71, 0x75, 0x6f,
   139  	0x74, 0x61, 0x2e, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x70, 0x62, 0x1a, 0x33, 0x67, 0x6f, 0x2e, 0x63,
   140  	0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69,
   141  	0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x2f, 0x71, 0x75,
   142  	0x6f, 0x74, 0x61, 0x70, 0x62, 0x2f, 0x69, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   143  	0x36, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
   144  	0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x71, 0x75, 0x6f,
   145  	0x74, 0x61, 0x2f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x70, 0x62, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,
   146  	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x02, 0x0a, 0x0c, 0x50, 0x6f, 0x6c, 0x69,
   147  	0x63, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x59, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69,
   148  	0x63, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x2e,
   149  	0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x75, 0x63,
   150  	0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x2e, 0x71,
   151  	0x75, 0x6f, 0x74, 0x61, 0x70, 0x62, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x43, 0x6f, 0x6e,
   152  	0x66, 0x69, 0x67, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63,
   153  	0x69, 0x65, 0x73, 0x1a, 0x9a, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x46, 0x0a,
   154  	0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x2e,
   155  	0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x75, 0x63,
   156  	0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x2e, 0x71,
   157  	0x75, 0x6f, 0x74, 0x61, 0x70, 0x62, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4b, 0x65, 0x79,
   158  	0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x49, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18,
   159  	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d,
   160  	0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x73, 0x65, 0x72,
   161  	0x76, 0x65, 0x72, 0x2e, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x2e, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x70,
   162  	0x62, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
   163  	0x42, 0x2b, 0x5a, 0x29, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e,
   164  	0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f,
   165  	0x71, 0x75, 0x6f, 0x74, 0x61, 0x2f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x70, 0x62, 0x62, 0x06, 0x70,
   166  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   167  }
   168  
   169  var (
   170  	file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDescOnce sync.Once
   171  	file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDescData = file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDesc
   172  )
   173  
   174  func file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDescGZIP() []byte {
   175  	file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDescOnce.Do(func() {
   176  		file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDescData)
   177  	})
   178  	return file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDescData
   179  }
   180  
   181  var file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   182  var file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_goTypes = []interface{}{
   183  	(*PolicyConfig)(nil),       // 0: go.chromium.org.luci.server.quota.quotapb.PolicyConfig
   184  	(*PolicyConfig_Entry)(nil), // 1: go.chromium.org.luci.server.quota.quotapb.PolicyConfig.Entry
   185  	(*PolicyKey)(nil),          // 2: go.chromium.org.luci.server.quota.quotapb.PolicyKey
   186  	(*Policy)(nil),             // 3: go.chromium.org.luci.server.quota.quotapb.Policy
   187  }
   188  var file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_depIdxs = []int32{
   189  	1, // 0: go.chromium.org.luci.server.quota.quotapb.PolicyConfig.policies:type_name -> go.chromium.org.luci.server.quota.quotapb.PolicyConfig.Entry
   190  	2, // 1: go.chromium.org.luci.server.quota.quotapb.PolicyConfig.Entry.key:type_name -> go.chromium.org.luci.server.quota.quotapb.PolicyKey
   191  	3, // 2: go.chromium.org.luci.server.quota.quotapb.PolicyConfig.Entry.policy:type_name -> go.chromium.org.luci.server.quota.quotapb.Policy
   192  	3, // [3:3] is the sub-list for method output_type
   193  	3, // [3:3] is the sub-list for method input_type
   194  	3, // [3:3] is the sub-list for extension type_name
   195  	3, // [3:3] is the sub-list for extension extendee
   196  	0, // [0:3] is the sub-list for field type_name
   197  }
   198  
   199  func init() { file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_init() }
   200  func file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_init() {
   201  	if File_go_chromium_org_luci_server_quota_quotapb_policy_config_proto != nil {
   202  		return
   203  	}
   204  	file_go_chromium_org_luci_server_quota_quotapb_ids_proto_init()
   205  	file_go_chromium_org_luci_server_quota_quotapb_policy_proto_init()
   206  	if !protoimpl.UnsafeEnabled {
   207  		file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   208  			switch v := v.(*PolicyConfig); i {
   209  			case 0:
   210  				return &v.state
   211  			case 1:
   212  				return &v.sizeCache
   213  			case 2:
   214  				return &v.unknownFields
   215  			default:
   216  				return nil
   217  			}
   218  		}
   219  		file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   220  			switch v := v.(*PolicyConfig_Entry); i {
   221  			case 0:
   222  				return &v.state
   223  			case 1:
   224  				return &v.sizeCache
   225  			case 2:
   226  				return &v.unknownFields
   227  			default:
   228  				return nil
   229  			}
   230  		}
   231  	}
   232  	type x struct{}
   233  	out := protoimpl.TypeBuilder{
   234  		File: protoimpl.DescBuilder{
   235  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   236  			RawDescriptor: file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDesc,
   237  			NumEnums:      0,
   238  			NumMessages:   2,
   239  			NumExtensions: 0,
   240  			NumServices:   0,
   241  		},
   242  		GoTypes:           file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_goTypes,
   243  		DependencyIndexes: file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_depIdxs,
   244  		MessageInfos:      file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_msgTypes,
   245  	}.Build()
   246  	File_go_chromium_org_luci_server_quota_quotapb_policy_config_proto = out.File
   247  	file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_rawDesc = nil
   248  	file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_goTypes = nil
   249  	file_go_chromium_org_luci_server_quota_quotapb_policy_config_proto_depIdxs = nil
   250  }