blob: a5a91d4c3b1701890bef9d44bf7064c95295ec81 [file] [log] [blame]
// Copyright 2019 The LUCI Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v3.21.7
// source: go.chromium.org/luci/gce/api/projects/v1/service.proto
package projects
import prpc "go.chromium.org/luci/grpc/prpc"
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// A request to delete a project.
type DeleteRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The id of the project to delete.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *DeleteRequest) Reset() {
*x = DeleteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteRequest) ProtoMessage() {}
func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP(), []int{0}
}
func (x *DeleteRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
// A request to create or update a project.
type EnsureRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The id of the project to ensure.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The project.
Project *Config `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
}
func (x *EnsureRequest) Reset() {
*x = EnsureRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EnsureRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnsureRequest) ProtoMessage() {}
func (x *EnsureRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EnsureRequest.ProtoReflect.Descriptor instead.
func (*EnsureRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP(), []int{1}
}
func (x *EnsureRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *EnsureRequest) GetProject() *Config {
if x != nil {
return x.Project
}
return nil
}
// A request to get an existing project.
type GetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The id of the project to get.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *GetRequest) Reset() {
*x = GetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRequest) ProtoMessage() {}
func (x *GetRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP(), []int{2}
}
func (x *GetRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
// A request to list existing projects.
type ListRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The value of next_page_token received in a ListResponse. Used to get the
// next page of projects. If empty, gets the first page.
PageToken string `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// The maximum number of results to include in the response.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
}
func (x *ListRequest) Reset() {
*x = ListRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListRequest) ProtoMessage() {}
func (x *ListRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP(), []int{3}
}
func (x *ListRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
// A response to a request to list projects.
type ListResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The projects.
Projects []*Config `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
// The value to use as the page_token in a ListRequest to get the next page of
// projects. If empty, there are no more projects.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListResponse) Reset() {
*x = ListResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListResponse) ProtoMessage() {}
func (x *ListResponse) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP(), []int{4}
}
func (x *ListResponse) GetProjects() []*Config {
if x != nil {
return x.Projects
}
return nil
}
func (x *ListResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
var File_go_chromium_org_luci_gce_api_projects_v1_service_proto protoreflect.FileDescriptor
var file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDesc = []byte{
0x0a, 0x36, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
0x74, 0x73, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x35, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72,
0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x0d, 0x45, 0x6e, 0x73, 0x75, 0x72,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a,
0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x6a,
0x65, 0x63, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x70, 0x72, 0x6f,
0x6a, 0x65, 0x63, 0x74, 0x22, 0x1c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
0x69, 0x64, 0x22, 0x49, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x64, 0x0a,
0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a,
0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x10, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69,
0x67, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,
0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x32, 0xe0, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
0x12, 0x39, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f,
0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x33, 0x0a, 0x06, 0x45,
0x6e, 0x73, 0x75, 0x72, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
0x2e, 0x45, 0x6e, 0x73, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10,
0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
0x12, 0x2d, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
0x74, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e,
0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
0x35, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16,
0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72,
0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67,
0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
0x76, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescOnce sync.Once
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescData = file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDesc
)
func file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescGZIP() []byte {
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescOnce.Do(func() {
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)
})
return file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDescData
}
var file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_go_chromium_org_luci_gce_api_projects_v1_service_proto_goTypes = []interface{}{
(*DeleteRequest)(nil), // 0: projects.DeleteRequest
(*EnsureRequest)(nil), // 1: projects.EnsureRequest
(*GetRequest)(nil), // 2: projects.GetRequest
(*ListRequest)(nil), // 3: projects.ListRequest
(*ListResponse)(nil), // 4: projects.ListResponse
(*Config)(nil), // 5: projects.Config
(*emptypb.Empty)(nil), // 6: google.protobuf.Empty
}
var file_go_chromium_org_luci_gce_api_projects_v1_service_proto_depIdxs = []int32{
5, // 0: projects.EnsureRequest.project:type_name -> projects.Config
5, // 1: projects.ListResponse.projects:type_name -> projects.Config
0, // 2: projects.Projects.Delete:input_type -> projects.DeleteRequest
1, // 3: projects.Projects.Ensure:input_type -> projects.EnsureRequest
2, // 4: projects.Projects.Get:input_type -> projects.GetRequest
3, // 5: projects.Projects.List:input_type -> projects.ListRequest
6, // 6: projects.Projects.Delete:output_type -> google.protobuf.Empty
5, // 7: projects.Projects.Ensure:output_type -> projects.Config
5, // 8: projects.Projects.Get:output_type -> projects.Config
4, // 9: projects.Projects.List:output_type -> projects.ListResponse
6, // [6:10] is the sub-list for method output_type
2, // [2:6] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_go_chromium_org_luci_gce_api_projects_v1_service_proto_init() }
func file_go_chromium_org_luci_gce_api_projects_v1_service_proto_init() {
if File_go_chromium_org_luci_gce_api_projects_v1_service_proto != nil {
return
}
file_go_chromium_org_luci_gce_api_projects_v1_config_proto_init()
if !protoimpl.UnsafeEnabled {
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*EnsureRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_go_chromium_org_luci_gce_api_projects_v1_service_proto_goTypes,
DependencyIndexes: file_go_chromium_org_luci_gce_api_projects_v1_service_proto_depIdxs,
MessageInfos: file_go_chromium_org_luci_gce_api_projects_v1_service_proto_msgTypes,
}.Build()
File_go_chromium_org_luci_gce_api_projects_v1_service_proto = out.File
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_rawDesc = nil
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_goTypes = nil
file_go_chromium_org_luci_gce_api_projects_v1_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// ProjectsClient is the client API for Projects service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ProjectsClient interface {
// Delete deletes a project.
// Internal API.
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Ensure ensures a project exists.
// Creates a new project or updates an existing one as necessary.
// Internal API.
Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*Config, error)
// Get returns an existing project.
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Config, error)
// List returns existing projects.
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
}
type projectsPRPCClient struct {
client *prpc.Client
}
func NewProjectsPRPCClient(client *prpc.Client) ProjectsClient {
return &projectsPRPCClient{client}
}
func (c *projectsPRPCClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.client.Call(ctx, "projects.Projects", "Delete", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *projectsPRPCClient) Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*Config, error) {
out := new(Config)
err := c.client.Call(ctx, "projects.Projects", "Ensure", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *projectsPRPCClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Config, error) {
out := new(Config)
err := c.client.Call(ctx, "projects.Projects", "Get", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *projectsPRPCClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
out := new(ListResponse)
err := c.client.Call(ctx, "projects.Projects", "List", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type projectsClient struct {
cc grpc.ClientConnInterface
}
func NewProjectsClient(cc grpc.ClientConnInterface) ProjectsClient {
return &projectsClient{cc}
}
func (c *projectsClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/projects.Projects/Delete", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *projectsClient) Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*Config, error) {
out := new(Config)
err := c.cc.Invoke(ctx, "/projects.Projects/Ensure", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *projectsClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Config, error) {
out := new(Config)
err := c.cc.Invoke(ctx, "/projects.Projects/Get", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *projectsClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
out := new(ListResponse)
err := c.cc.Invoke(ctx, "/projects.Projects/List", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ProjectsServer is the server API for Projects service.
type ProjectsServer interface {
// Delete deletes a project.
// Internal API.
Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error)
// Ensure ensures a project exists.
// Creates a new project or updates an existing one as necessary.
// Internal API.
Ensure(context.Context, *EnsureRequest) (*Config, error)
// Get returns an existing project.
Get(context.Context, *GetRequest) (*Config, error)
// List returns existing projects.
List(context.Context, *ListRequest) (*ListResponse, error)
}
// UnimplementedProjectsServer can be embedded to have forward compatible implementations.
type UnimplementedProjectsServer struct {
}
func (*UnimplementedProjectsServer) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}
func (*UnimplementedProjectsServer) Ensure(context.Context, *EnsureRequest) (*Config, error) {
return nil, status.Errorf(codes.Unimplemented, "method Ensure not implemented")
}
func (*UnimplementedProjectsServer) Get(context.Context, *GetRequest) (*Config, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedProjectsServer) List(context.Context, *ListRequest) (*ListResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func RegisterProjectsServer(s prpc.Registrar, srv ProjectsServer) {
s.RegisterService(&_Projects_serviceDesc, srv)
}
func _Projects_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProjectsServer).Delete(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/projects.Projects/Delete",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProjectsServer).Delete(ctx, req.(*DeleteRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Projects_Ensure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EnsureRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProjectsServer).Ensure(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/projects.Projects/Ensure",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProjectsServer).Ensure(ctx, req.(*EnsureRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Projects_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProjectsServer).Get(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/projects.Projects/Get",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProjectsServer).Get(ctx, req.(*GetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Projects_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ProjectsServer).List(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/projects.Projects/List",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ProjectsServer).List(ctx, req.(*ListRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Projects_serviceDesc = grpc.ServiceDesc{
ServiceName: "projects.Projects",
HandlerType: (*ProjectsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Delete",
Handler: _Projects_Delete_Handler,
},
{
MethodName: "Ensure",
Handler: _Projects_Ensure_Handler,
},
{
MethodName: "Get",
Handler: _Projects_Get_Handler,
},
{
MethodName: "List",
Handler: _Projects_List_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "go.chromium.org/luci/gce/api/projects/v1/service.proto",
}