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

     1  // Copyright 2019 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/gce/api/projects/v1/config.proto
    10  
    11  package projects
    12  
    13  import (
    14  	_ "go.chromium.org/luci/common/proto"
    15  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    16  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    17  	reflect "reflect"
    18  	sync "sync"
    19  )
    20  
    21  const (
    22  	// Verify that this generated code is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    24  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    25  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    26  )
    27  
    28  // A config for a GCP project to report GCE quota utilization for.
    29  type Config struct {
    30  	state         protoimpl.MessageState
    31  	sizeCache     protoimpl.SizeCache
    32  	unknownFields protoimpl.UnknownFields
    33  
    34  	// The names of GCE quota metrics to report.
    35  	// https://cloud.google.com/compute/docs/reference/rest/v1/regions/list.
    36  	Metric []string `protobuf:"bytes,1,rep,name=metric,proto3" json:"metric,omitempty"`
    37  	// The name of a GCP project to report GCE quota utilization for.
    38  	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    39  	// The names of GCE regions to report.
    40  	// https://cloud.google.com/compute/docs/reference/rest/v1/regions/list.
    41  	Region []string `protobuf:"bytes,3,rep,name=region,proto3" json:"region,omitempty"`
    42  	// Should only be set by the server. The revision of this config.
    43  	Revision string `protobuf:"bytes,4,opt,name=revision,proto3" json:"revision,omitempty"`
    44  }
    45  
    46  func (x *Config) Reset() {
    47  	*x = Config{}
    48  	if protoimpl.UnsafeEnabled {
    49  		mi := &file_go_chromium_org_luci_gce_api_projects_v1_config_proto_msgTypes[0]
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		ms.StoreMessageInfo(mi)
    52  	}
    53  }
    54  
    55  func (x *Config) String() string {
    56  	return protoimpl.X.MessageStringOf(x)
    57  }
    58  
    59  func (*Config) ProtoMessage() {}
    60  
    61  func (x *Config) ProtoReflect() protoreflect.Message {
    62  	mi := &file_go_chromium_org_luci_gce_api_projects_v1_config_proto_msgTypes[0]
    63  	if protoimpl.UnsafeEnabled && x != nil {
    64  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    65  		if ms.LoadMessageInfo() == nil {
    66  			ms.StoreMessageInfo(mi)
    67  		}
    68  		return ms
    69  	}
    70  	return mi.MessageOf(x)
    71  }
    72  
    73  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    74  func (*Config) Descriptor() ([]byte, []int) {
    75  	return file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDescGZIP(), []int{0}
    76  }
    77  
    78  func (x *Config) GetMetric() []string {
    79  	if x != nil {
    80  		return x.Metric
    81  	}
    82  	return nil
    83  }
    84  
    85  func (x *Config) GetProject() string {
    86  	if x != nil {
    87  		return x.Project
    88  	}
    89  	return ""
    90  }
    91  
    92  func (x *Config) GetRegion() []string {
    93  	if x != nil {
    94  		return x.Region
    95  	}
    96  	return nil
    97  }
    98  
    99  func (x *Config) GetRevision() string {
   100  	if x != nil {
   101  		return x.Revision
   102  	}
   103  	return ""
   104  }
   105  
   106  // A config for several projects to report GCE quota utilization for.
   107  type Configs struct {
   108  	state         protoimpl.MessageState
   109  	sizeCache     protoimpl.SizeCache
   110  	unknownFields protoimpl.UnknownFields
   111  
   112  	// The projects to report GCE quota utilization for.
   113  	Project []*Config `protobuf:"bytes,1,rep,name=project,proto3" json:"project,omitempty"`
   114  }
   115  
   116  func (x *Configs) Reset() {
   117  	*x = Configs{}
   118  	if protoimpl.UnsafeEnabled {
   119  		mi := &file_go_chromium_org_luci_gce_api_projects_v1_config_proto_msgTypes[1]
   120  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   121  		ms.StoreMessageInfo(mi)
   122  	}
   123  }
   124  
   125  func (x *Configs) String() string {
   126  	return protoimpl.X.MessageStringOf(x)
   127  }
   128  
   129  func (*Configs) ProtoMessage() {}
   130  
   131  func (x *Configs) ProtoReflect() protoreflect.Message {
   132  	mi := &file_go_chromium_org_luci_gce_api_projects_v1_config_proto_msgTypes[1]
   133  	if protoimpl.UnsafeEnabled && x != nil {
   134  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   135  		if ms.LoadMessageInfo() == nil {
   136  			ms.StoreMessageInfo(mi)
   137  		}
   138  		return ms
   139  	}
   140  	return mi.MessageOf(x)
   141  }
   142  
   143  // Deprecated: Use Configs.ProtoReflect.Descriptor instead.
   144  func (*Configs) Descriptor() ([]byte, []int) {
   145  	return file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDescGZIP(), []int{1}
   146  }
   147  
   148  func (x *Configs) GetProject() []*Config {
   149  	if x != nil {
   150  		return x.Project
   151  	}
   152  	return nil
   153  }
   154  
   155  var File_go_chromium_org_luci_gce_api_projects_v1_config_proto protoreflect.FileDescriptor
   156  
   157  var file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDesc = []byte{
   158  	0x0a, 0x35, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   159  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
   160  	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
   161  	0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
   162  	0x73, 0x1a, 0x2f, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f,
   163  	0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
   164  	0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
   165  	0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06,
   166  	0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65,
   167  	0x74, 0x72, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18,
   168  	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16,
   169  	0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06,
   170  	0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69,
   171  	0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69,
   172  	0x6f, 0x6e, 0x22, 0x35, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x2a, 0x0a,
   173  	0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10,
   174  	0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   175  	0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x7b, 0xa2, 0xfe, 0x23, 0x44, 0x0a,
   176  	0x42, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
   177  	0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73,
   178  	0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x67, 0x63, 0x65, 0x2d, 0x70, 0x72,
   179  	0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x3a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e,
   180  	0x63, 0x66, 0x67, 0x5a, 0x31, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d,
   181  	0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x63, 0x65, 0x2f, 0x61, 0x70,
   182  	0x69, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x72,
   183  	0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   184  }
   185  
   186  var (
   187  	file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDescOnce sync.Once
   188  	file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDescData = file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDesc
   189  )
   190  
   191  func file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDescGZIP() []byte {
   192  	file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDescOnce.Do(func() {
   193  		file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDescData)
   194  	})
   195  	return file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDescData
   196  }
   197  
   198  var file_go_chromium_org_luci_gce_api_projects_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   199  var file_go_chromium_org_luci_gce_api_projects_v1_config_proto_goTypes = []interface{}{
   200  	(*Config)(nil),  // 0: projects.Config
   201  	(*Configs)(nil), // 1: projects.Configs
   202  }
   203  var file_go_chromium_org_luci_gce_api_projects_v1_config_proto_depIdxs = []int32{
   204  	0, // 0: projects.Configs.project:type_name -> projects.Config
   205  	1, // [1:1] is the sub-list for method output_type
   206  	1, // [1:1] is the sub-list for method input_type
   207  	1, // [1:1] is the sub-list for extension type_name
   208  	1, // [1:1] is the sub-list for extension extendee
   209  	0, // [0:1] is the sub-list for field type_name
   210  }
   211  
   212  func init() { file_go_chromium_org_luci_gce_api_projects_v1_config_proto_init() }
   213  func file_go_chromium_org_luci_gce_api_projects_v1_config_proto_init() {
   214  	if File_go_chromium_org_luci_gce_api_projects_v1_config_proto != nil {
   215  		return
   216  	}
   217  	if !protoimpl.UnsafeEnabled {
   218  		file_go_chromium_org_luci_gce_api_projects_v1_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   219  			switch v := v.(*Config); i {
   220  			case 0:
   221  				return &v.state
   222  			case 1:
   223  				return &v.sizeCache
   224  			case 2:
   225  				return &v.unknownFields
   226  			default:
   227  				return nil
   228  			}
   229  		}
   230  		file_go_chromium_org_luci_gce_api_projects_v1_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   231  			switch v := v.(*Configs); i {
   232  			case 0:
   233  				return &v.state
   234  			case 1:
   235  				return &v.sizeCache
   236  			case 2:
   237  				return &v.unknownFields
   238  			default:
   239  				return nil
   240  			}
   241  		}
   242  	}
   243  	type x struct{}
   244  	out := protoimpl.TypeBuilder{
   245  		File: protoimpl.DescBuilder{
   246  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   247  			RawDescriptor: file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDesc,
   248  			NumEnums:      0,
   249  			NumMessages:   2,
   250  			NumExtensions: 0,
   251  			NumServices:   0,
   252  		},
   253  		GoTypes:           file_go_chromium_org_luci_gce_api_projects_v1_config_proto_goTypes,
   254  		DependencyIndexes: file_go_chromium_org_luci_gce_api_projects_v1_config_proto_depIdxs,
   255  		MessageInfos:      file_go_chromium_org_luci_gce_api_projects_v1_config_proto_msgTypes,
   256  	}.Build()
   257  	File_go_chromium_org_luci_gce_api_projects_v1_config_proto = out.File
   258  	file_go_chromium_org_luci_gce_api_projects_v1_config_proto_rawDesc = nil
   259  	file_go_chromium_org_luci_gce_api_projects_v1_config_proto_goTypes = nil
   260  	file_go_chromium_org_luci_gce_api_projects_v1_config_proto_depIdxs = nil
   261  }