go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cipd/api/config/v1/config.pb.go (about)

     1  // Copyright 2019 The LUCI Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.31.0
    18  // 	protoc        v3.21.7
    19  // source: go.chromium.org/luci/cipd/api/config/v1/config.proto
    20  
    21  package api
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	reflect "reflect"
    27  	sync "sync"
    28  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  // Defines a client whose requests should be monitored.
    38  type ClientMonitoringConfig struct {
    39  	state         protoimpl.MessageState
    40  	sizeCache     protoimpl.SizeCache
    41  	unknownFields protoimpl.UnknownFields
    42  
    43  	// Name of an IP whitelist in the auth service. If a request is received from
    44  	// an IP matching this whitelist, it will be reported.
    45  	IpWhitelist string `protobuf:"bytes,1,opt,name=ip_whitelist,json=ipWhitelist,proto3" json:"ip_whitelist,omitempty"`
    46  	// Monitoring label to apply when reporting metrics for this client.
    47  	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
    48  }
    49  
    50  func (x *ClientMonitoringConfig) Reset() {
    51  	*x = ClientMonitoringConfig{}
    52  	if protoimpl.UnsafeEnabled {
    53  		mi := &file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[0]
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		ms.StoreMessageInfo(mi)
    56  	}
    57  }
    58  
    59  func (x *ClientMonitoringConfig) String() string {
    60  	return protoimpl.X.MessageStringOf(x)
    61  }
    62  
    63  func (*ClientMonitoringConfig) ProtoMessage() {}
    64  
    65  func (x *ClientMonitoringConfig) ProtoReflect() protoreflect.Message {
    66  	mi := &file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[0]
    67  	if protoimpl.UnsafeEnabled && x != nil {
    68  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    69  		if ms.LoadMessageInfo() == nil {
    70  			ms.StoreMessageInfo(mi)
    71  		}
    72  		return ms
    73  	}
    74  	return mi.MessageOf(x)
    75  }
    76  
    77  // Deprecated: Use ClientMonitoringConfig.ProtoReflect.Descriptor instead.
    78  func (*ClientMonitoringConfig) Descriptor() ([]byte, []int) {
    79  	return file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescGZIP(), []int{0}
    80  }
    81  
    82  func (x *ClientMonitoringConfig) GetIpWhitelist() string {
    83  	if x != nil {
    84  		return x.IpWhitelist
    85  	}
    86  	return ""
    87  }
    88  
    89  func (x *ClientMonitoringConfig) GetLabel() string {
    90  	if x != nil {
    91  		return x.Label
    92  	}
    93  	return ""
    94  }
    95  
    96  // A schema for the monitoring.cfg config file.
    97  //
    98  // It defines a list of clients whose requests should be monitored.
    99  type ClientMonitoringWhitelist struct {
   100  	state         protoimpl.MessageState
   101  	sizeCache     protoimpl.SizeCache
   102  	unknownFields protoimpl.UnknownFields
   103  
   104  	// A list of configurations for clients to monitor. When a request is
   105  	// received, the list is traversed in order and the first match is the
   106  	// monitoring config to use. If none of the configs match the request is
   107  	// unmonitored.
   108  	ClientMonitoringConfig []*ClientMonitoringConfig `protobuf:"bytes,1,rep,name=client_monitoring_config,json=clientMonitoringConfig,proto3" json:"client_monitoring_config,omitempty"`
   109  }
   110  
   111  func (x *ClientMonitoringWhitelist) Reset() {
   112  	*x = ClientMonitoringWhitelist{}
   113  	if protoimpl.UnsafeEnabled {
   114  		mi := &file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[1]
   115  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   116  		ms.StoreMessageInfo(mi)
   117  	}
   118  }
   119  
   120  func (x *ClientMonitoringWhitelist) String() string {
   121  	return protoimpl.X.MessageStringOf(x)
   122  }
   123  
   124  func (*ClientMonitoringWhitelist) ProtoMessage() {}
   125  
   126  func (x *ClientMonitoringWhitelist) ProtoReflect() protoreflect.Message {
   127  	mi := &file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[1]
   128  	if protoimpl.UnsafeEnabled && x != nil {
   129  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   130  		if ms.LoadMessageInfo() == nil {
   131  			ms.StoreMessageInfo(mi)
   132  		}
   133  		return ms
   134  	}
   135  	return mi.MessageOf(x)
   136  }
   137  
   138  // Deprecated: Use ClientMonitoringWhitelist.ProtoReflect.Descriptor instead.
   139  func (*ClientMonitoringWhitelist) Descriptor() ([]byte, []int) {
   140  	return file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescGZIP(), []int{1}
   141  }
   142  
   143  func (x *ClientMonitoringWhitelist) GetClientMonitoringConfig() []*ClientMonitoringConfig {
   144  	if x != nil {
   145  		return x.ClientMonitoringConfig
   146  	}
   147  	return nil
   148  }
   149  
   150  // A schema for the bootstrap.cfg config file.
   151  //
   152  // It defines a list of packages that contain executables that should be
   153  // accessible via direct download URLs.
   154  type BootstrapConfigFile struct {
   155  	state         protoimpl.MessageState
   156  	sizeCache     protoimpl.SizeCache
   157  	unknownFields protoimpl.UnknownFields
   158  
   159  	// A list of all known bootstrap packages, will be scanned in order.
   160  	BootstrapConfig []*BootstrapConfig `protobuf:"bytes,1,rep,name=bootstrap_config,json=bootstrapConfig,proto3" json:"bootstrap_config,omitempty"`
   161  }
   162  
   163  func (x *BootstrapConfigFile) Reset() {
   164  	*x = BootstrapConfigFile{}
   165  	if protoimpl.UnsafeEnabled {
   166  		mi := &file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[2]
   167  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   168  		ms.StoreMessageInfo(mi)
   169  	}
   170  }
   171  
   172  func (x *BootstrapConfigFile) String() string {
   173  	return protoimpl.X.MessageStringOf(x)
   174  }
   175  
   176  func (*BootstrapConfigFile) ProtoMessage() {}
   177  
   178  func (x *BootstrapConfigFile) ProtoReflect() protoreflect.Message {
   179  	mi := &file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[2]
   180  	if protoimpl.UnsafeEnabled && x != nil {
   181  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   182  		if ms.LoadMessageInfo() == nil {
   183  			ms.StoreMessageInfo(mi)
   184  		}
   185  		return ms
   186  	}
   187  	return mi.MessageOf(x)
   188  }
   189  
   190  // Deprecated: Use BootstrapConfigFile.ProtoReflect.Descriptor instead.
   191  func (*BootstrapConfigFile) Descriptor() ([]byte, []int) {
   192  	return file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescGZIP(), []int{2}
   193  }
   194  
   195  func (x *BootstrapConfigFile) GetBootstrapConfig() []*BootstrapConfig {
   196  	if x != nil {
   197  		return x.BootstrapConfig
   198  	}
   199  	return nil
   200  }
   201  
   202  // BootstrapConfig defines a set of bootstrap packages under a single prefix.
   203  //
   204  // Each package should contain exactly one file (presumable an executable). It
   205  // will be extracted and put into the storage, to allow the CIPD backend to
   206  // generate direct download URLs to it. This is useful to allow clients to
   207  // directly download such binaries.
   208  type BootstrapConfig struct {
   209  	state         protoimpl.MessageState
   210  	sizeCache     protoimpl.SizeCache
   211  	unknownFields protoimpl.UnknownFields
   212  
   213  	// The package prefix of matching packages e.g. "infra/tools/my-tool".
   214  	Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
   215  }
   216  
   217  func (x *BootstrapConfig) Reset() {
   218  	*x = BootstrapConfig{}
   219  	if protoimpl.UnsafeEnabled {
   220  		mi := &file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[3]
   221  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   222  		ms.StoreMessageInfo(mi)
   223  	}
   224  }
   225  
   226  func (x *BootstrapConfig) String() string {
   227  	return protoimpl.X.MessageStringOf(x)
   228  }
   229  
   230  func (*BootstrapConfig) ProtoMessage() {}
   231  
   232  func (x *BootstrapConfig) ProtoReflect() protoreflect.Message {
   233  	mi := &file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[3]
   234  	if protoimpl.UnsafeEnabled && x != nil {
   235  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   236  		if ms.LoadMessageInfo() == nil {
   237  			ms.StoreMessageInfo(mi)
   238  		}
   239  		return ms
   240  	}
   241  	return mi.MessageOf(x)
   242  }
   243  
   244  // Deprecated: Use BootstrapConfig.ProtoReflect.Descriptor instead.
   245  func (*BootstrapConfig) Descriptor() ([]byte, []int) {
   246  	return file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescGZIP(), []int{3}
   247  }
   248  
   249  func (x *BootstrapConfig) GetPrefix() string {
   250  	if x != nil {
   251  		return x.Prefix
   252  	}
   253  	return ""
   254  }
   255  
   256  var File_go_chromium_org_luci_cipd_api_config_v1_config_proto protoreflect.FileDescriptor
   257  
   258  var file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDesc = []byte{
   259  	0x0a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   260  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x69, 0x70, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f,
   261  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   262  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x63, 0x69, 0x70, 0x64, 0x2e, 0x63, 0x6f, 0x6e,
   263  	0x66, 0x69, 0x67, 0x22, 0x51, 0x0a, 0x16, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x6e,
   264  	0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a,
   265  	0x0c, 0x69, 0x70, 0x5f, 0x77, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20,
   266  	0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x70, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74,
   267  	0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   268  	0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x7a, 0x0a, 0x19, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
   269  	0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c,
   270  	0x69, 0x73, 0x74, 0x12, 0x5d, 0x0a, 0x18, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x6f,
   271  	0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,
   272  	0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x69, 0x70, 0x64, 0x2e, 0x63, 0x6f, 0x6e,
   273  	0x66, 0x69, 0x67, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f,
   274  	0x72, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x16, 0x63, 0x6c, 0x69, 0x65,
   275  	0x6e, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66,
   276  	0x69, 0x67, 0x22, 0x5e, 0x0a, 0x13, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x43,
   277  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x47, 0x0a, 0x10, 0x62, 0x6f, 0x6f,
   278  	0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20,
   279  	0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x69, 0x70, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69,
   280  	0x67, 0x2e, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   281  	0x67, 0x52, 0x0f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66,
   282  	0x69, 0x67, 0x22, 0x29, 0x0a, 0x0f, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x43,
   283  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18,
   284  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x42, 0x2d, 0x5a,
   285  	0x2b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
   286  	0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x69, 0x70, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
   287  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72,
   288  	0x6f, 0x74, 0x6f, 0x33,
   289  }
   290  
   291  var (
   292  	file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescOnce sync.Once
   293  	file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescData = file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDesc
   294  )
   295  
   296  func file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescGZIP() []byte {
   297  	file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescOnce.Do(func() {
   298  		file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescData)
   299  	})
   300  	return file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDescData
   301  }
   302  
   303  var file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   304  var file_go_chromium_org_luci_cipd_api_config_v1_config_proto_goTypes = []interface{}{
   305  	(*ClientMonitoringConfig)(nil),    // 0: cipd.config.ClientMonitoringConfig
   306  	(*ClientMonitoringWhitelist)(nil), // 1: cipd.config.ClientMonitoringWhitelist
   307  	(*BootstrapConfigFile)(nil),       // 2: cipd.config.BootstrapConfigFile
   308  	(*BootstrapConfig)(nil),           // 3: cipd.config.BootstrapConfig
   309  }
   310  var file_go_chromium_org_luci_cipd_api_config_v1_config_proto_depIdxs = []int32{
   311  	0, // 0: cipd.config.ClientMonitoringWhitelist.client_monitoring_config:type_name -> cipd.config.ClientMonitoringConfig
   312  	3, // 1: cipd.config.BootstrapConfigFile.bootstrap_config:type_name -> cipd.config.BootstrapConfig
   313  	2, // [2:2] is the sub-list for method output_type
   314  	2, // [2:2] is the sub-list for method input_type
   315  	2, // [2:2] is the sub-list for extension type_name
   316  	2, // [2:2] is the sub-list for extension extendee
   317  	0, // [0:2] is the sub-list for field type_name
   318  }
   319  
   320  func init() { file_go_chromium_org_luci_cipd_api_config_v1_config_proto_init() }
   321  func file_go_chromium_org_luci_cipd_api_config_v1_config_proto_init() {
   322  	if File_go_chromium_org_luci_cipd_api_config_v1_config_proto != nil {
   323  		return
   324  	}
   325  	if !protoimpl.UnsafeEnabled {
   326  		file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   327  			switch v := v.(*ClientMonitoringConfig); i {
   328  			case 0:
   329  				return &v.state
   330  			case 1:
   331  				return &v.sizeCache
   332  			case 2:
   333  				return &v.unknownFields
   334  			default:
   335  				return nil
   336  			}
   337  		}
   338  		file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   339  			switch v := v.(*ClientMonitoringWhitelist); i {
   340  			case 0:
   341  				return &v.state
   342  			case 1:
   343  				return &v.sizeCache
   344  			case 2:
   345  				return &v.unknownFields
   346  			default:
   347  				return nil
   348  			}
   349  		}
   350  		file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   351  			switch v := v.(*BootstrapConfigFile); i {
   352  			case 0:
   353  				return &v.state
   354  			case 1:
   355  				return &v.sizeCache
   356  			case 2:
   357  				return &v.unknownFields
   358  			default:
   359  				return nil
   360  			}
   361  		}
   362  		file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   363  			switch v := v.(*BootstrapConfig); i {
   364  			case 0:
   365  				return &v.state
   366  			case 1:
   367  				return &v.sizeCache
   368  			case 2:
   369  				return &v.unknownFields
   370  			default:
   371  				return nil
   372  			}
   373  		}
   374  	}
   375  	type x struct{}
   376  	out := protoimpl.TypeBuilder{
   377  		File: protoimpl.DescBuilder{
   378  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   379  			RawDescriptor: file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDesc,
   380  			NumEnums:      0,
   381  			NumMessages:   4,
   382  			NumExtensions: 0,
   383  			NumServices:   0,
   384  		},
   385  		GoTypes:           file_go_chromium_org_luci_cipd_api_config_v1_config_proto_goTypes,
   386  		DependencyIndexes: file_go_chromium_org_luci_cipd_api_config_v1_config_proto_depIdxs,
   387  		MessageInfos:      file_go_chromium_org_luci_cipd_api_config_v1_config_proto_msgTypes,
   388  	}.Build()
   389  	File_go_chromium_org_luci_cipd_api_config_v1_config_proto = out.File
   390  	file_go_chromium_org_luci_cipd_api_config_v1_config_proto_rawDesc = nil
   391  	file_go_chromium_org_luci_cipd_api_config_v1_config_proto_goTypes = nil
   392  	file_go_chromium_org_luci_cipd_api_config_v1_config_proto_depIdxs = nil
   393  }