| // Copyright 2018 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.31.0 |
| // protoc v3.21.7 |
| // source: go.chromium.org/luci/gce/api/config/v1/service.proto |
| |
| package config |
| |
| 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" |
| fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" |
| 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 config. |
| type DeleteRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The id of the config 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_config_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_config_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_config_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 config. |
| type EnsureRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The id of the config to ensure. |
| Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| // The config. |
| Config *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` |
| } |
| |
| func (x *EnsureRequest) Reset() { |
| *x = EnsureRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_gce_api_config_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_config_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_config_v1_service_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *EnsureRequest) GetId() string { |
| if x != nil { |
| return x.Id |
| } |
| return "" |
| } |
| |
| func (x *EnsureRequest) GetConfig() *Config { |
| if x != nil { |
| return x.Config |
| } |
| return nil |
| } |
| |
| // A request to get an existing config. |
| type GetRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The id of the config 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_config_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_config_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_config_v1_service_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *GetRequest) GetId() string { |
| if x != nil { |
| return x.Id |
| } |
| return "" |
| } |
| |
| // A request to list existing configs. |
| 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 configs. 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_config_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_config_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_config_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 configs. |
| type ListResponse struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The configs. |
| Configs []*Config `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` |
| // The value to use as the page_token in a ListRequest to get the next page of |
| // configs. If empty, there are no more configs. |
| 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_config_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_config_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_config_v1_service_proto_rawDescGZIP(), []int{4} |
| } |
| |
| func (x *ListResponse) GetConfigs() []*Config { |
| if x != nil { |
| return x.Configs |
| } |
| return nil |
| } |
| |
| func (x *ListResponse) GetNextPageToken() string { |
| if x != nil { |
| return x.NextPageToken |
| } |
| return "" |
| } |
| |
| // A request to update an existing config. |
| type UpdateRequest struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The id of the config to update. |
| Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| // The config. |
| Config *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` |
| // The fields to update. Only config.current_amount and config.duts may be updated. |
| UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` |
| } |
| |
| func (x *UpdateRequest) Reset() { |
| *x = UpdateRequest{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_go_chromium_org_luci_gce_api_config_v1_service_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *UpdateRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*UpdateRequest) ProtoMessage() {} |
| |
| func (x *UpdateRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_gce_api_config_v1_service_proto_msgTypes[5] |
| 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 UpdateRequest.ProtoReflect.Descriptor instead. |
| func (*UpdateRequest) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDescGZIP(), []int{5} |
| } |
| |
| func (x *UpdateRequest) GetId() string { |
| if x != nil { |
| return x.Id |
| } |
| return "" |
| } |
| |
| func (x *UpdateRequest) GetConfig() *Config { |
| if x != nil { |
| return x.Config |
| } |
| return nil |
| } |
| |
| func (x *UpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { |
| if x != nil { |
| return x.UpdateMask |
| } |
| return nil |
| } |
| |
| var File_go_chromium_org_luci_gce_api_config_v1_service_proto protoreflect.FileDescriptor |
| |
| var file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDesc = []byte{ |
| 0x0a, 0x34, 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, 0x63, |
| 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 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, 0x20, 0x67, 0x6f, 0x6f, |
| 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, |
| 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x33, 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, 0x63, 0x6f, 0x6e, 0x66, |
| 0x69, 0x67, 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, 0x47, 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, 0x26, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, |
| 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, |
| 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 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, 0x60, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, |
| 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, |
| 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, |
| 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 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, 0x22, 0x84, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, |
| 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, 0x12, 0x26, 0x0a, 0x06, 0x63, 0x6f, 0x6e, |
| 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x63, 0x6f, 0x6e, 0x66, |
| 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, |
| 0x67, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, |
| 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, |
| 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x32, 0x88, |
| 0x02, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x63, 0x6f, 0x6e, |
| 0x66, 0x69, 0x67, 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, 0x2f, 0x0a, 0x06, 0x45, 0x6e, 0x73, |
| 0x75, 0x72, 0x65, 0x12, 0x15, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x6e, 0x73, |
| 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x63, 0x6f, 0x6e, |
| 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x0a, 0x03, 0x47, 0x65, |
| 0x74, 0x12, 0x12, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, |
| 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, |
| 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x13, 0x2e, |
| 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, |
| 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x69, 0x73, 0x74, |
| 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, |
| 0x74, 0x65, 0x12, 0x15, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x55, 0x70, 0x64, 0x61, |
| 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x63, 0x6f, 0x6e, 0x66, |
| 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x2f, 0x5a, 0x2d, 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, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, |
| 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
| 0x6f, 0x33, |
| } |
| |
| var ( |
| file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDescOnce sync.Once |
| file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDescData = file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDesc |
| ) |
| |
| func file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDescGZIP() []byte { |
| file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDescOnce.Do(func() { |
| file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDescData) |
| }) |
| return file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDescData |
| } |
| |
| var file_go_chromium_org_luci_gce_api_config_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
| var file_go_chromium_org_luci_gce_api_config_v1_service_proto_goTypes = []interface{}{ |
| (*DeleteRequest)(nil), // 0: config.DeleteRequest |
| (*EnsureRequest)(nil), // 1: config.EnsureRequest |
| (*GetRequest)(nil), // 2: config.GetRequest |
| (*ListRequest)(nil), // 3: config.ListRequest |
| (*ListResponse)(nil), // 4: config.ListResponse |
| (*UpdateRequest)(nil), // 5: config.UpdateRequest |
| (*Config)(nil), // 6: config.Config |
| (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask |
| (*emptypb.Empty)(nil), // 8: google.protobuf.Empty |
| } |
| var file_go_chromium_org_luci_gce_api_config_v1_service_proto_depIdxs = []int32{ |
| 6, // 0: config.EnsureRequest.config:type_name -> config.Config |
| 6, // 1: config.ListResponse.configs:type_name -> config.Config |
| 6, // 2: config.UpdateRequest.config:type_name -> config.Config |
| 7, // 3: config.UpdateRequest.update_mask:type_name -> google.protobuf.FieldMask |
| 0, // 4: config.Configuration.Delete:input_type -> config.DeleteRequest |
| 1, // 5: config.Configuration.Ensure:input_type -> config.EnsureRequest |
| 2, // 6: config.Configuration.Get:input_type -> config.GetRequest |
| 3, // 7: config.Configuration.List:input_type -> config.ListRequest |
| 5, // 8: config.Configuration.Update:input_type -> config.UpdateRequest |
| 8, // 9: config.Configuration.Delete:output_type -> google.protobuf.Empty |
| 6, // 10: config.Configuration.Ensure:output_type -> config.Config |
| 6, // 11: config.Configuration.Get:output_type -> config.Config |
| 4, // 12: config.Configuration.List:output_type -> config.ListResponse |
| 6, // 13: config.Configuration.Update:output_type -> config.Config |
| 9, // [9:14] is the sub-list for method output_type |
| 4, // [4:9] is the sub-list for method input_type |
| 4, // [4:4] is the sub-list for extension type_name |
| 4, // [4:4] is the sub-list for extension extendee |
| 0, // [0:4] is the sub-list for field type_name |
| } |
| |
| func init() { file_go_chromium_org_luci_gce_api_config_v1_service_proto_init() } |
| func file_go_chromium_org_luci_gce_api_config_v1_service_proto_init() { |
| if File_go_chromium_org_luci_gce_api_config_v1_service_proto != nil { |
| return |
| } |
| file_go_chromium_org_luci_gce_api_config_v1_config_proto_init() |
| if !protoimpl.UnsafeEnabled { |
| file_go_chromium_org_luci_gce_api_config_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_config_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_config_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_config_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_config_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 |
| } |
| } |
| file_go_chromium_org_luci_gce_api_config_v1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*UpdateRequest); 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_config_v1_service_proto_rawDesc, |
| NumEnums: 0, |
| NumMessages: 6, |
| NumExtensions: 0, |
| NumServices: 1, |
| }, |
| GoTypes: file_go_chromium_org_luci_gce_api_config_v1_service_proto_goTypes, |
| DependencyIndexes: file_go_chromium_org_luci_gce_api_config_v1_service_proto_depIdxs, |
| MessageInfos: file_go_chromium_org_luci_gce_api_config_v1_service_proto_msgTypes, |
| }.Build() |
| File_go_chromium_org_luci_gce_api_config_v1_service_proto = out.File |
| file_go_chromium_org_luci_gce_api_config_v1_service_proto_rawDesc = nil |
| file_go_chromium_org_luci_gce_api_config_v1_service_proto_goTypes = nil |
| file_go_chromium_org_luci_gce_api_config_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 |
| |
| // ConfigurationClient is the client API for Configuration service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type ConfigurationClient interface { |
| // Delete deletes a config. |
| // Internal API. |
| Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| // Ensure ensures a config exists. |
| // Creates a new config or updates an existing one as necessary. |
| // Internal API. |
| Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*Config, error) |
| // Get returns an existing config. |
| Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Config, error) |
| // List returns existing configs. |
| List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) |
| // Update updates a config. |
| Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*Config, error) |
| } |
| type configurationPRPCClient struct { |
| client *prpc.Client |
| } |
| |
| func NewConfigurationPRPCClient(client *prpc.Client) ConfigurationClient { |
| return &configurationPRPCClient{client} |
| } |
| |
| func (c *configurationPRPCClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| out := new(emptypb.Empty) |
| err := c.client.Call(ctx, "config.Configuration", "Delete", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *configurationPRPCClient) Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*Config, error) { |
| out := new(Config) |
| err := c.client.Call(ctx, "config.Configuration", "Ensure", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *configurationPRPCClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Config, error) { |
| out := new(Config) |
| err := c.client.Call(ctx, "config.Configuration", "Get", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *configurationPRPCClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { |
| out := new(ListResponse) |
| err := c.client.Call(ctx, "config.Configuration", "List", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *configurationPRPCClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*Config, error) { |
| out := new(Config) |
| err := c.client.Call(ctx, "config.Configuration", "Update", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| type configurationClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewConfigurationClient(cc grpc.ClientConnInterface) ConfigurationClient { |
| return &configurationClient{cc} |
| } |
| |
| func (c *configurationClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| out := new(emptypb.Empty) |
| err := c.cc.Invoke(ctx, "/config.Configuration/Delete", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *configurationClient) Ensure(ctx context.Context, in *EnsureRequest, opts ...grpc.CallOption) (*Config, error) { |
| out := new(Config) |
| err := c.cc.Invoke(ctx, "/config.Configuration/Ensure", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *configurationClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Config, error) { |
| out := new(Config) |
| err := c.cc.Invoke(ctx, "/config.Configuration/Get", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *configurationClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { |
| out := new(ListResponse) |
| err := c.cc.Invoke(ctx, "/config.Configuration/List", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *configurationClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*Config, error) { |
| out := new(Config) |
| err := c.cc.Invoke(ctx, "/config.Configuration/Update", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // ConfigurationServer is the server API for Configuration service. |
| type ConfigurationServer interface { |
| // Delete deletes a config. |
| // Internal API. |
| Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error) |
| // Ensure ensures a config exists. |
| // Creates a new config or updates an existing one as necessary. |
| // Internal API. |
| Ensure(context.Context, *EnsureRequest) (*Config, error) |
| // Get returns an existing config. |
| Get(context.Context, *GetRequest) (*Config, error) |
| // List returns existing configs. |
| List(context.Context, *ListRequest) (*ListResponse, error) |
| // Update updates a config. |
| Update(context.Context, *UpdateRequest) (*Config, error) |
| } |
| |
| // UnimplementedConfigurationServer can be embedded to have forward compatible implementations. |
| type UnimplementedConfigurationServer struct { |
| } |
| |
| func (*UnimplementedConfigurationServer) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") |
| } |
| func (*UnimplementedConfigurationServer) Ensure(context.Context, *EnsureRequest) (*Config, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method Ensure not implemented") |
| } |
| func (*UnimplementedConfigurationServer) Get(context.Context, *GetRequest) (*Config, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") |
| } |
| func (*UnimplementedConfigurationServer) List(context.Context, *ListRequest) (*ListResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method List not implemented") |
| } |
| func (*UnimplementedConfigurationServer) Update(context.Context, *UpdateRequest) (*Config, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") |
| } |
| |
| func RegisterConfigurationServer(s prpc.Registrar, srv ConfigurationServer) { |
| s.RegisterService(&_Configuration_serviceDesc, srv) |
| } |
| |
| func _Configuration_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.(ConfigurationServer).Delete(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/config.Configuration/Delete", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ConfigurationServer).Delete(ctx, req.(*DeleteRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Configuration_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.(ConfigurationServer).Ensure(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/config.Configuration/Ensure", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ConfigurationServer).Ensure(ctx, req.(*EnsureRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Configuration_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.(ConfigurationServer).Get(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/config.Configuration/Get", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ConfigurationServer).Get(ctx, req.(*GetRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Configuration_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.(ConfigurationServer).List(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/config.Configuration/List", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ConfigurationServer).List(ctx, req.(*ListRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _Configuration_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(UpdateRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(ConfigurationServer).Update(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/config.Configuration/Update", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ConfigurationServer).Update(ctx, req.(*UpdateRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _Configuration_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "config.Configuration", |
| HandlerType: (*ConfigurationServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "Delete", |
| Handler: _Configuration_Delete_Handler, |
| }, |
| { |
| MethodName: "Ensure", |
| Handler: _Configuration_Ensure_Handler, |
| }, |
| { |
| MethodName: "Get", |
| Handler: _Configuration_Get_Handler, |
| }, |
| { |
| MethodName: "List", |
| Handler: _Configuration_List_Handler, |
| }, |
| { |
| MethodName: "Update", |
| Handler: _Configuration_Update_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "go.chromium.org/luci/gce/api/config/v1/service.proto", |
| } |