go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/gce/api/projects/v1/service.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/service.proto
    10  
    11  package projects
    12  
    13  import prpc "go.chromium.org/luci/grpc/prpc"
    14  
    15  import (
    16  	context "context"
    17  	grpc "google.golang.org/grpc"
    18  	codes "google.golang.org/grpc/codes"
    19  	status "google.golang.org/grpc/status"
    20  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    21  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    22  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    23  	reflect "reflect"
    24  	sync "sync"
    25  )
    26  
    27  const (
    28  	// Verify that this generated code is sufficiently up-to-date.
    29  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    30  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    31  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    32  )
    33  
    34  // A request to delete a project.
    35  type DeleteRequest struct {
    36  	state         protoimpl.MessageState
    37  	sizeCache     protoimpl.SizeCache
    38  	unknownFields protoimpl.UnknownFields
    39  
    40  	// The id of the project to delete.
    41  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    42  }
    43  
    44  func (x *DeleteRequest) Reset() {
    45  	*x = DeleteRequest{}
    46  	if protoimpl.UnsafeEnabled {
    47  		mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[0]
    48  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    49  		ms.StoreMessageInfo(mi)
    50  	}
    51  }
    52  
    53  func (x *DeleteRequest) String() string {
    54  	return protoimpl.X.MessageStringOf(x)
    55  }
    56  
    57  func (*DeleteRequest) ProtoMessage() {}
    58  
    59  func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
    60  	mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[0]
    61  	if protoimpl.UnsafeEnabled && x != nil {
    62  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    63  		if ms.LoadMessageInfo() == nil {
    64  			ms.StoreMessageInfo(mi)
    65  		}
    66  		return ms
    67  	}
    68  	return mi.MessageOf(x)
    69  }
    70  
    71  // Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
    72  func (*DeleteRequest) Descriptor() ([]byte, []int) {
    73  	return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP(), []int{0}
    74  }
    75  
    76  func (x *DeleteRequest) GetId() string {
    77  	if x != nil {
    78  		return x.Id
    79  	}
    80  	return ""
    81  }
    82  
    83  // A request to create or update a project.
    84  type EnsureRequest struct {
    85  	state         protoimpl.MessageState
    86  	sizeCache     protoimpl.SizeCache
    87  	unknownFields protoimpl.UnknownFields
    88  
    89  	// The id of the project to ensure.
    90  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    91  	// The project.
    92  	Project *Config `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
    93  }
    94  
    95  func (x *EnsureRequest) Reset() {
    96  	*x = EnsureRequest{}
    97  	if protoimpl.UnsafeEnabled {
    98  		mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[1]
    99  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   100  		ms.StoreMessageInfo(mi)
   101  	}
   102  }
   103  
   104  func (x *EnsureRequest) String() string {
   105  	return protoimpl.X.MessageStringOf(x)
   106  }
   107  
   108  func (*EnsureRequest) ProtoMessage() {}
   109  
   110  func (x *EnsureRequest) ProtoReflect() protoreflect.Message {
   111  	mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[1]
   112  	if protoimpl.UnsafeEnabled && x != nil {
   113  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   114  		if ms.LoadMessageInfo() == nil {
   115  			ms.StoreMessageInfo(mi)
   116  		}
   117  		return ms
   118  	}
   119  	return mi.MessageOf(x)
   120  }
   121  
   122  // Deprecated: Use EnsureRequest.ProtoReflect.Descriptor instead.
   123  func (*EnsureRequest) Descriptor() ([]byte, []int) {
   124  	return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP(), []int{1}
   125  }
   126  
   127  func (x *EnsureRequest) GetId() string {
   128  	if x != nil {
   129  		return x.Id
   130  	}
   131  	return ""
   132  }
   133  
   134  func (x *EnsureRequest) GetProject() *Config {
   135  	if x != nil {
   136  		return x.Project
   137  	}
   138  	return nil
   139  }
   140  
   141  // A request to get an existing project.
   142  type GetRequest struct {
   143  	state         protoimpl.MessageState
   144  	sizeCache     protoimpl.SizeCache
   145  	unknownFields protoimpl.UnknownFields
   146  
   147  	// The id of the project to get.
   148  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   149  }
   150  
   151  func (x *GetRequest) Reset() {
   152  	*x = GetRequest{}
   153  	if protoimpl.UnsafeEnabled {
   154  		mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[2]
   155  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   156  		ms.StoreMessageInfo(mi)
   157  	}
   158  }
   159  
   160  func (x *GetRequest) String() string {
   161  	return protoimpl.X.MessageStringOf(x)
   162  }
   163  
   164  func (*GetRequest) ProtoMessage() {}
   165  
   166  func (x *GetRequest) ProtoReflect() protoreflect.Message {
   167  	mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[2]
   168  	if protoimpl.UnsafeEnabled && x != nil {
   169  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   170  		if ms.LoadMessageInfo() == nil {
   171  			ms.StoreMessageInfo(mi)
   172  		}
   173  		return ms
   174  	}
   175  	return mi.MessageOf(x)
   176  }
   177  
   178  // Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
   179  func (*GetRequest) Descriptor() ([]byte, []int) {
   180  	return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP(), []int{2}
   181  }
   182  
   183  func (x *GetRequest) GetId() string {
   184  	if x != nil {
   185  		return x.Id
   186  	}
   187  	return ""
   188  }
   189  
   190  // A request to list existing projects.
   191  type ListRequest struct {
   192  	state         protoimpl.MessageState
   193  	sizeCache     protoimpl.SizeCache
   194  	unknownFields protoimpl.UnknownFields
   195  
   196  	// The value of next_page_token received in a ListResponse. Used to get the
   197  	// next page of projects. If empty, gets the first page.
   198  	PageToken string `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
   199  	// The maximum number of results to include in the response.
   200  	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
   201  }
   202  
   203  func (x *ListRequest) Reset() {
   204  	*x = ListRequest{}
   205  	if protoimpl.UnsafeEnabled {
   206  		mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[3]
   207  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   208  		ms.StoreMessageInfo(mi)
   209  	}
   210  }
   211  
   212  func (x *ListRequest) String() string {
   213  	return protoimpl.X.MessageStringOf(x)
   214  }
   215  
   216  func (*ListRequest) ProtoMessage() {}
   217  
   218  func (x *ListRequest) ProtoReflect() protoreflect.Message {
   219  	mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[3]
   220  	if protoimpl.UnsafeEnabled && x != nil {
   221  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   222  		if ms.LoadMessageInfo() == nil {
   223  			ms.StoreMessageInfo(mi)
   224  		}
   225  		return ms
   226  	}
   227  	return mi.MessageOf(x)
   228  }
   229  
   230  // Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
   231  func (*ListRequest) Descriptor() ([]byte, []int) {
   232  	return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP(), []int{3}
   233  }
   234  
   235  func (x *ListRequest) GetPageToken() string {
   236  	if x != nil {
   237  		return x.PageToken
   238  	}
   239  	return ""
   240  }
   241  
   242  func (x *ListRequest) GetPageSize() int32 {
   243  	if x != nil {
   244  		return x.PageSize
   245  	}
   246  	return 0
   247  }
   248  
   249  // A response to a request to list projects.
   250  type ListResponse struct {
   251  	state         protoimpl.MessageState
   252  	sizeCache     protoimpl.SizeCache
   253  	unknownFields protoimpl.UnknownFields
   254  
   255  	// The projects.
   256  	Projects []*Config `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
   257  	// The value to use as the page_token in a ListRequest to get the next page of
   258  	// projects. If empty, there are no more projects.
   259  	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
   260  }
   261  
   262  func (x *ListResponse) Reset() {
   263  	*x = ListResponse{}
   264  	if protoimpl.UnsafeEnabled {
   265  		mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[4]
   266  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   267  		ms.StoreMessageInfo(mi)
   268  	}
   269  }
   270  
   271  func (x *ListResponse) String() string {
   272  	return protoimpl.X.MessageStringOf(x)
   273  }
   274  
   275  func (*ListResponse) ProtoMessage() {}
   276  
   277  func (x *ListResponse) ProtoReflect() protoreflect.Message {
   278  	mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[4]
   279  	if protoimpl.UnsafeEnabled && x != nil {
   280  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   281  		if ms.LoadMessageInfo() == nil {
   282  			ms.StoreMessageInfo(mi)
   283  		}
   284  		return ms
   285  	}
   286  	return mi.MessageOf(x)
   287  }
   288  
   289  // Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
   290  func (*ListResponse) Descriptor() ([]byte, []int) {
   291  	return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP(), []int{4}
   292  }
   293  
   294  func (x *ListResponse) GetProjects() []*Config {
   295  	if x != nil {
   296  		return x.Projects
   297  	}
   298  	return nil
   299  }
   300  
   301  func (x *ListResponse) GetNextPageToken() string {
   302  	if x != nil {
   303  		return x.NextPageToken
   304  	}
   305  	return ""
   306  }
   307  
   308  var File_go_chromium_org_luci_gce_api_projects_v1_service_proto protoreflect.FileDescriptor
   309  
   310  var file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDesc = []byte{
   311  	0x0a, 0x36, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   312  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
   313  	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
   314  	0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
   315  	0x74, 0x73, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   316  	0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   317  	0x35, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
   318  	0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72,
   319  	0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   320  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
   321  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
   322  	0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x0d, 0x45, 0x6e, 0x73, 0x75, 0x72,
   323  	0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
   324  	0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a,
   325  	0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x6a,
   326  	0x65, 0x63, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x70, 0x72, 0x6f,
   327  	0x6a, 0x65, 0x63, 0x74, 0x22, 0x1c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
   328  	0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
   329  	0x69, 0x64, 0x22, 0x49, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   330  	0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
   331  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
   332  	0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20,
   333  	0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x64, 0x0a,
   334  	0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a,
   335  	0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
   336  	0x10, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   337  	0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,
   338  	0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
   339  	0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,
   340  	0x6b, 0x65, 0x6e, 0x32, 0xe0, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
   341  	0x12, 0x39, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f,
   342  	0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
   343  	0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
   344  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x33, 0x0a, 0x06, 0x45,
   345  	0x6e, 0x73, 0x75, 0x72, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
   346  	0x2e, 0x45, 0x6e, 0x73, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10,
   347  	0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   348  	0x12, 0x2d, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
   349  	0x74, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e,
   350  	0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
   351  	0x35, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
   352  	0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,
   353  	0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
   354  	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72,
   355  	0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67,
   356  	0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
   357  	0x76, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
   358  	0x74, 0x6f, 0x33,
   359  }
   360  
   361  var (
   362  	file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescOnce sync.Once
   363  	file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescData = file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDesc
   364  )
   365  
   366  func file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP() []byte {
   367  	file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescOnce.Do(func() {
   368  		file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescData)
   369  	})
   370  	return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescData
   371  }
   372  
   373  var file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   374  var file_go_chromium_org_luci_gce_api_projects_v1_service_proto_goTypes = []interface{}{
   375  	(*DeleteRequest)(nil), // 0: projects.DeleteRequest
   376  	(*EnsureRequest)(nil), // 1: projects.EnsureRequest
   377  	(*GetRequest)(nil),    // 2: projects.GetRequest
   378  	(*ListRequest)(nil),   // 3: projects.ListRequest
   379  	(*ListResponse)(nil),  // 4: projects.ListResponse
   380  	(*Config)(nil),        // 5: projects.Config
   381  	(*emptypb.Empty)(nil), // 6: google.protobuf.Empty
   382  }
   383  var file_go_chromium_org_luci_gce_api_projects_v1_service_proto_depIdxs = []int32{
   384  	5, // 0: projects.EnsureRequest.project:type_name -> projects.Config
   385  	5, // 1: projects.ListResponse.projects:type_name -> projects.Config
   386  	0, // 2: projects.Projects.Delete:input_type -> projects.DeleteRequest
   387  	1, // 3: projects.Projects.Ensure:input_type -> projects.EnsureRequest
   388  	2, // 4: projects.Projects.Get:input_type -> projects.GetRequest
   389  	3, // 5: projects.Projects.List:input_type -> projects.ListRequest
   390  	6, // 6: projects.Projects.Delete:output_type -> google.protobuf.Empty
   391  	5, // 7: projects.Projects.Ensure:output_type -> projects.Config
   392  	5, // 8: projects.Projects.Get:output_type -> projects.Config
   393  	4, // 9: projects.Projects.List:output_type -> projects.ListResponse
   394  	6, // [6:10] is the sub-list for method output_type
   395  	2, // [2:6] is the sub-list for method input_type
   396  	2, // [2:2] is the sub-list for extension type_name
   397  	2, // [2:2] is the sub-list for extension extendee
   398  	0, // [0:2] is the sub-list for field type_name
   399  }
   400  
   401  func init() { file_go_chromium_org_luci_gce_api_projects_v1_service_proto_init() }
   402  func file_go_chromium_org_luci_gce_api_projects_v1_service_proto_init() {
   403  	if File_go_chromium_org_luci_gce_api_projects_v1_service_proto != nil {
   404  		return
   405  	}
   406  	file_go_chromium_org_luci_gce_api_projects_v1_config_proto_init()
   407  	if !protoimpl.UnsafeEnabled {
   408  		file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   409  			switch v := v.(*DeleteRequest); i {
   410  			case 0:
   411  				return &v.state
   412  			case 1:
   413  				return &v.sizeCache
   414  			case 2:
   415  				return &v.unknownFields
   416  			default:
   417  				return nil
   418  			}
   419  		}
   420  		file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   421  			switch v := v.(*EnsureRequest); i {
   422  			case 0:
   423  				return &v.state
   424  			case 1:
   425  				return &v.sizeCache
   426  			case 2:
   427  				return &v.unknownFields
   428  			default:
   429  				return nil
   430  			}
   431  		}
   432  		file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   433  			switch v := v.(*GetRequest); i {
   434  			case 0:
   435  				return &v.state
   436  			case 1:
   437  				return &v.sizeCache
   438  			case 2:
   439  				return &v.unknownFields
   440  			default:
   441  				return nil
   442  			}
   443  		}
   444  		file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   445  			switch v := v.(*ListRequest); i {
   446  			case 0:
   447  				return &v.state
   448  			case 1:
   449  				return &v.sizeCache
   450  			case 2:
   451  				return &v.unknownFields
   452  			default:
   453  				return nil
   454  			}
   455  		}
   456  		file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   457  			switch v := v.(*ListResponse); i {
   458  			case 0:
   459  				return &v.state
   460  			case 1:
   461  				return &v.sizeCache
   462  			case 2:
   463  				return &v.unknownFields
   464  			default:
   465  				return nil
   466  			}
   467  		}
   468  	}
   469  	type x struct{}
   470  	out := protoimpl.TypeBuilder{
   471  		File: protoimpl.DescBuilder{
   472  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   473  			RawDescriptor: file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDesc,
   474  			NumEnums:      0,
   475  			NumMessages:   5,
   476  			NumExtensions: 0,
   477  			NumServices:   1,
   478  		},
   479  		GoTypes:           file_go_chromium_org_luci_gce_api_projects_v1_service_proto_goTypes,
   480  		DependencyIndexes: file_go_chromium_org_luci_gce_api_projects_v1_service_proto_depIdxs,
   481  		MessageInfos:      file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes,
   482  	}.Build()
   483  	File_go_chromium_org_luci_gce_api_projects_v1_service_proto = out.File
   484  	file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDesc = nil
   485  	file_go_chromium_org_luci_gce_api_projects_v1_service_proto_goTypes = nil
   486  	file_go_chromium_org_luci_gce_api_projects_v1_service_proto_depIdxs = nil
   487  }
   488  
   489  // Reference imports to suppress errors if they are not otherwise used.
   490  var _ context.Context
   491  var _ grpc.ClientConnInterface
   492  
   493  // This is a compile-time assertion to ensure that this generated file
   494  // is compatible with the grpc package it is being compiled against.
   495  const _ = grpc.SupportPackageIsVersion6
   496  
   497  // ProjectsClient is the client API for Projects service.
   498  //
   499  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   500  type ProjectsClient interface {
   501  	// Delete deletes a project.
   502  	// Internal API.
   503  	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
   504  	// Ensure ensures a project exists.
   505  	// Creates a new project or updates an existing one as necessary.
   506  	// Internal API.
   507  	Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*Config, error)
   508  	// Get returns an existing project.
   509  	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Config, error)
   510  	// List returns existing projects.
   511  	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
   512  }
   513  type projectsPRPCClient struct {
   514  	client *prpc.Client
   515  }
   516  
   517  func NewProjectsPRPCClient(client *prpc.Client) ProjectsClient {
   518  	return &projectsPRPCClient{client}
   519  }
   520  
   521  func (c *projectsPRPCClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   522  	out := new(emptypb.Empty)
   523  	err := c.client.Call(ctx, "projects.Projects", "Delete", in, out, opts...)
   524  	if err != nil {
   525  		return nil, err
   526  	}
   527  	return out, nil
   528  }
   529  
   530  func (c *projectsPRPCClient) Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*Config, error) {
   531  	out := new(Config)
   532  	err := c.client.Call(ctx, "projects.Projects", "Ensure", in, out, opts...)
   533  	if err != nil {
   534  		return nil, err
   535  	}
   536  	return out, nil
   537  }
   538  
   539  func (c *projectsPRPCClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Config, error) {
   540  	out := new(Config)
   541  	err := c.client.Call(ctx, "projects.Projects", "Get", in, out, opts...)
   542  	if err != nil {
   543  		return nil, err
   544  	}
   545  	return out, nil
   546  }
   547  
   548  func (c *projectsPRPCClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
   549  	out := new(ListResponse)
   550  	err := c.client.Call(ctx, "projects.Projects", "List", in, out, opts...)
   551  	if err != nil {
   552  		return nil, err
   553  	}
   554  	return out, nil
   555  }
   556  
   557  type projectsClient struct {
   558  	cc grpc.ClientConnInterface
   559  }
   560  
   561  func NewProjectsClient(cc grpc.ClientConnInterface) ProjectsClient {
   562  	return &projectsClient{cc}
   563  }
   564  
   565  func (c *projectsClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   566  	out := new(emptypb.Empty)
   567  	err := c.cc.Invoke(ctx, "/projects.Projects/Delete", in, out, opts...)
   568  	if err != nil {
   569  		return nil, err
   570  	}
   571  	return out, nil
   572  }
   573  
   574  func (c *projectsClient) Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*Config, error) {
   575  	out := new(Config)
   576  	err := c.cc.Invoke(ctx, "/projects.Projects/Ensure", in, out, opts...)
   577  	if err != nil {
   578  		return nil, err
   579  	}
   580  	return out, nil
   581  }
   582  
   583  func (c *projectsClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Config, error) {
   584  	out := new(Config)
   585  	err := c.cc.Invoke(ctx, "/projects.Projects/Get", in, out, opts...)
   586  	if err != nil {
   587  		return nil, err
   588  	}
   589  	return out, nil
   590  }
   591  
   592  func (c *projectsClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
   593  	out := new(ListResponse)
   594  	err := c.cc.Invoke(ctx, "/projects.Projects/List", in, out, opts...)
   595  	if err != nil {
   596  		return nil, err
   597  	}
   598  	return out, nil
   599  }
   600  
   601  // ProjectsServer is the server API for Projects service.
   602  type ProjectsServer interface {
   603  	// Delete deletes a project.
   604  	// Internal API.
   605  	Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error)
   606  	// Ensure ensures a project exists.
   607  	// Creates a new project or updates an existing one as necessary.
   608  	// Internal API.
   609  	Ensure(context.Context, *EnsureRequest) (*Config, error)
   610  	// Get returns an existing project.
   611  	Get(context.Context, *GetRequest) (*Config, error)
   612  	// List returns existing projects.
   613  	List(context.Context, *ListRequest) (*ListResponse, error)
   614  }
   615  
   616  // UnimplementedProjectsServer can be embedded to have forward compatible implementations.
   617  type UnimplementedProjectsServer struct {
   618  }
   619  
   620  func (*UnimplementedProjectsServer) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error) {
   621  	return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
   622  }
   623  func (*UnimplementedProjectsServer) Ensure(context.Context, *EnsureRequest) (*Config, error) {
   624  	return nil, status.Errorf(codes.Unimplemented, "method Ensure not implemented")
   625  }
   626  func (*UnimplementedProjectsServer) Get(context.Context, *GetRequest) (*Config, error) {
   627  	return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
   628  }
   629  func (*UnimplementedProjectsServer) List(context.Context, *ListRequest) (*ListResponse, error) {
   630  	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
   631  }
   632  
   633  func RegisterProjectsServer(s prpc.Registrar, srv ProjectsServer) {
   634  	s.RegisterService(&_Projects_serviceDesc, srv)
   635  }
   636  
   637  func _Projects_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   638  	in := new(DeleteRequest)
   639  	if err := dec(in); err != nil {
   640  		return nil, err
   641  	}
   642  	if interceptor == nil {
   643  		return srv.(ProjectsServer).Delete(ctx, in)
   644  	}
   645  	info := &grpc.UnaryServerInfo{
   646  		Server:     srv,
   647  		FullMethod: "/projects.Projects/Delete",
   648  	}
   649  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   650  		return srv.(ProjectsServer).Delete(ctx, req.(*DeleteRequest))
   651  	}
   652  	return interceptor(ctx, in, info, handler)
   653  }
   654  
   655  func _Projects_Ensure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   656  	in := new(EnsureRequest)
   657  	if err := dec(in); err != nil {
   658  		return nil, err
   659  	}
   660  	if interceptor == nil {
   661  		return srv.(ProjectsServer).Ensure(ctx, in)
   662  	}
   663  	info := &grpc.UnaryServerInfo{
   664  		Server:     srv,
   665  		FullMethod: "/projects.Projects/Ensure",
   666  	}
   667  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   668  		return srv.(ProjectsServer).Ensure(ctx, req.(*EnsureRequest))
   669  	}
   670  	return interceptor(ctx, in, info, handler)
   671  }
   672  
   673  func _Projects_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   674  	in := new(GetRequest)
   675  	if err := dec(in); err != nil {
   676  		return nil, err
   677  	}
   678  	if interceptor == nil {
   679  		return srv.(ProjectsServer).Get(ctx, in)
   680  	}
   681  	info := &grpc.UnaryServerInfo{
   682  		Server:     srv,
   683  		FullMethod: "/projects.Projects/Get",
   684  	}
   685  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   686  		return srv.(ProjectsServer).Get(ctx, req.(*GetRequest))
   687  	}
   688  	return interceptor(ctx, in, info, handler)
   689  }
   690  
   691  func _Projects_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   692  	in := new(ListRequest)
   693  	if err := dec(in); err != nil {
   694  		return nil, err
   695  	}
   696  	if interceptor == nil {
   697  		return srv.(ProjectsServer).List(ctx, in)
   698  	}
   699  	info := &grpc.UnaryServerInfo{
   700  		Server:     srv,
   701  		FullMethod: "/projects.Projects/List",
   702  	}
   703  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   704  		return srv.(ProjectsServer).List(ctx, req.(*ListRequest))
   705  	}
   706  	return interceptor(ctx, in, info, handler)
   707  }
   708  
   709  var _Projects_serviceDesc = grpc.ServiceDesc{
   710  	ServiceName: "projects.Projects",
   711  	HandlerType: (*ProjectsServer)(nil),
   712  	Methods: []grpc.MethodDesc{
   713  		{
   714  			MethodName: "Delete",
   715  			Handler:    _Projects_Delete_Handler,
   716  		},
   717  		{
   718  			MethodName: "Ensure",
   719  			Handler:    _Projects_Ensure_Handler,
   720  		},
   721  		{
   722  			MethodName: "Get",
   723  			Handler:    _Projects_Get_Handler,
   724  		},
   725  		{
   726  			MethodName: "List",
   727  			Handler:    _Projects_List_Handler,
   728  		},
   729  	},
   730  	Streams:  []grpc.StreamDesc{},
   731  	Metadata: "go.chromium.org/luci/gce/api/projects/v1/service.proto",
   732  }