From e9c4e417afa3fc1a4672f08964e81454e9fd4f27 Mon Sep 17 00:00:00 2001 From: Alexander Birkner Date: Tue, 24 Aug 2021 12:17:47 +0200 Subject: [PATCH] Initial commit --- .gitignore | 6 + README.md | 37 + go.mod | 13 + pkg/gpcloud/client/auth.go | 20 + pkg/gpcloud/client/certificate.go | 38 + pkg/gpcloud/client/client.go | 67 + pkg/gpcloud/client/version.go | 3 + pkg/gpcloud/ptypes/admin.pb.go | 3767 ++++++++ pkg/gpcloud/ptypes/admin_service.pb.go | 997 +++ pkg/gpcloud/ptypes/admin_service.pb.gw.go | 8376 +++++++++++++++++ pkg/gpcloud/ptypes/admin_service_grpc.pb.go | 3181 +++++++ pkg/gpcloud/ptypes/agent.pb.go | 554 ++ pkg/gpcloud/ptypes/agent_service.pb.go | 110 + pkg/gpcloud/ptypes/agent_service_grpc.pb.go | 255 + pkg/gpcloud/ptypes/basic.pb.go | 251 + pkg/gpcloud/ptypes/billing.pb.go | 587 ++ pkg/gpcloud/ptypes/compute.pb.go | 2250 +++++ pkg/gpcloud/ptypes/flavour.pb.go | 1114 +++ pkg/gpcloud/ptypes/generic.pb.go | 456 + pkg/gpcloud/ptypes/hardware.pb.go | 457 + pkg/gpcloud/ptypes/image.pb.go | 2308 +++++ pkg/gpcloud/ptypes/jwt.pb.go | 360 + pkg/gpcloud/ptypes/metadata.pb.go | 899 ++ pkg/gpcloud/ptypes/network.pb.go | 3814 ++++++++ pkg/gpcloud/ptypes/notification.pb.go | 282 + pkg/gpcloud/ptypes/payment.pb.go | 1503 ++++ pkg/gpcloud/ptypes/project.pb.go | 3246 +++++++ pkg/gpcloud/ptypes/region.pb.go | 1039 +++ pkg/gpcloud/ptypes/security.pb.go | 289 + pkg/gpcloud/ptypes/server.pb.go | 3089 +++++++ pkg/gpcloud/ptypes/server_alert.pb.go | 243 + pkg/gpcloud/ptypes/service.pb.go | 1387 +++ pkg/gpcloud/ptypes/service.pb.gw.go | 8968 +++++++++++++++++++ pkg/gpcloud/ptypes/service_grpc.pb.go | 4331 +++++++++ pkg/gpcloud/ptypes/setting.pb.go | 534 ++ pkg/gpcloud/ptypes/spla.pb.go | 291 + pkg/gpcloud/ptypes/support.pb.go | 1539 ++++ pkg/gpcloud/ptypes/user.pb.go | 4247 +++++++++ pkg/gpcloud/ptypes/voucher.pb.go | 721 ++ 39 files changed, 61629 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 go.mod create mode 100644 pkg/gpcloud/client/auth.go create mode 100644 pkg/gpcloud/client/certificate.go create mode 100644 pkg/gpcloud/client/client.go create mode 100644 pkg/gpcloud/client/version.go create mode 100644 pkg/gpcloud/ptypes/admin.pb.go create mode 100644 pkg/gpcloud/ptypes/admin_service.pb.go create mode 100644 pkg/gpcloud/ptypes/admin_service.pb.gw.go create mode 100644 pkg/gpcloud/ptypes/admin_service_grpc.pb.go create mode 100644 pkg/gpcloud/ptypes/agent.pb.go create mode 100644 pkg/gpcloud/ptypes/agent_service.pb.go create mode 100644 pkg/gpcloud/ptypes/agent_service_grpc.pb.go create mode 100644 pkg/gpcloud/ptypes/basic.pb.go create mode 100644 pkg/gpcloud/ptypes/billing.pb.go create mode 100644 pkg/gpcloud/ptypes/compute.pb.go create mode 100644 pkg/gpcloud/ptypes/flavour.pb.go create mode 100644 pkg/gpcloud/ptypes/generic.pb.go create mode 100644 pkg/gpcloud/ptypes/hardware.pb.go create mode 100644 pkg/gpcloud/ptypes/image.pb.go create mode 100644 pkg/gpcloud/ptypes/jwt.pb.go create mode 100644 pkg/gpcloud/ptypes/metadata.pb.go create mode 100644 pkg/gpcloud/ptypes/network.pb.go create mode 100644 pkg/gpcloud/ptypes/notification.pb.go create mode 100644 pkg/gpcloud/ptypes/payment.pb.go create mode 100644 pkg/gpcloud/ptypes/project.pb.go create mode 100644 pkg/gpcloud/ptypes/region.pb.go create mode 100644 pkg/gpcloud/ptypes/security.pb.go create mode 100644 pkg/gpcloud/ptypes/server.pb.go create mode 100644 pkg/gpcloud/ptypes/server_alert.pb.go create mode 100644 pkg/gpcloud/ptypes/service.pb.go create mode 100644 pkg/gpcloud/ptypes/service.pb.gw.go create mode 100644 pkg/gpcloud/ptypes/service_grpc.pb.go create mode 100644 pkg/gpcloud/ptypes/setting.pb.go create mode 100644 pkg/gpcloud/ptypes/spla.pb.go create mode 100644 pkg/gpcloud/ptypes/support.pb.go create mode 100644 pkg/gpcloud/ptypes/user.pb.go create mode 100644 pkg/gpcloud/ptypes/voucher.pb.go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fa29de7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# IntelliJ +/.idea/ +/*.iml + +# Testing +/testing/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..5590f7a --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# GPCloud Golang Client + +This is the official GPCloud Golang client. Please raise an issue if you have found any problems or having questions. + +### Recommendations + +- Golang 1.16 or higher + +### Example usage + +```go +package main + +import ( + "context" + "fmt" + "log" + + "github.com/GPORTALcloud/gpcloud-go/pkg/gpcloud/client" + "github.com/GPORTALcloud/gpcloud-go/pkg/gpcloud/ptypes" +) + +func main() { + cl, err := client.NewClient("") + if err != nil { + log.Fatal(err) + } + keys, err := cl.PublicClient().ListJwtPublicKeys(context.Background(), &ptypes.EmptyRequest{}) + if err != nil { + log.Fatal(err) + } + + for _, key := range keys.GetKeys() { + fmt.Println(key.Kid) + } +} +``` \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..7bc32a2 --- /dev/null +++ b/go.mod @@ -0,0 +1,13 @@ +module github.com/GPORTALcloud/gpcloud-go + +go 1.16 + +require ( + github.com/grpc-ecosystem/grpc-gateway/v2 v2.5.0 + golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d // indirect + golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf // indirect + golang.org/x/text v0.3.7 // indirect + google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8 + google.golang.org/grpc v1.40.0 + google.golang.org/protobuf v1.27.1 +) diff --git a/pkg/gpcloud/client/auth.go b/pkg/gpcloud/client/auth.go new file mode 100644 index 0000000..0d3f185 --- /dev/null +++ b/pkg/gpcloud/client/auth.go @@ -0,0 +1,20 @@ +package client + +import ( + "context" + "fmt" +) + +type GPCloudAuth struct { + token string +} + +func (a GPCloudAuth) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) { + return map[string]string{ + "authorization": fmt.Sprintf("Bearer %s", a.token), + }, nil +} + +func (a GPCloudAuth) RequireTransportSecurity() bool { + return true +} diff --git a/pkg/gpcloud/client/certificate.go b/pkg/gpcloud/client/certificate.go new file mode 100644 index 0000000..083542c --- /dev/null +++ b/pkg/gpcloud/client/certificate.go @@ -0,0 +1,38 @@ +package client + +const certificate = `-----BEGIN CERTIFICATE----- +MIIFlzCCA3+gAwIBAgIBATANBgkqhkiG9w0BAQsFADBtMRAwDgYDVQQGEwdHZXJt +YW55MQkwBwYDVQQIEwAxDzANBgNVBAcTBlNwZW5nZTEXMBUGA1UECQwOUG9zdHN0 +cmHDn2UgMjMxDjAMBgNVBBETBTMyMTM5MRQwEgYDVQQKEwtPY2lyaXMgR21iSDAe +Fw0yMDA5MjkxMDE5NTlaFw0zMDA5MjkxMDE5NTlaMG0xEDAOBgNVBAYTB0dlcm1h +bnkxCTAHBgNVBAgTADEPMA0GA1UEBxMGU3BlbmdlMRcwFQYDVQQJDA5Qb3N0c3Ry +YcOfZSAyMzEOMAwGA1UEERMFMzIxMzkxFDASBgNVBAoTC09jaXJpcyBHbWJIMIIC +IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA4iU/VKNIFKIVfszvh+NAoDwD +uJQ9tbbWygWql8A1HJYVR8x1GgU3Ri/r7iXF9EtnUlfVzMmo7w5qK+eGZ+KKSfRR +oO72wu/tdorX5fZY9d4ZQHM916UVKcrDQJS8jzRnTYN6k39mf3xX0HYRPU1kcCGW +LhPtNkh60R4fm6jqSO8D3cyzfGEcEZR4Xs4A8Jt9Xrokpz9eAxKT1T6OiNnnXxDP +/vZciKkjIqdNGRtyaG0qyF9pnn3g/ZKFDCcyUQ/cGF5TrIme4+tja9fMVrXQ0Mum +yNMU3Aa/k65LRMh4ZmKlU05cli9r/c1bXumS59apWLqGCokhGTZj9s01heeyjBqx +/aiVNESBhiLqrHMw7jdM5cyDeOkViSoJvDylIwmBK88f/e4vkbkyzqLGPRMzXGKk +/IoFODIL55JhK6WY4MyGb8GQIgvyBuMX0qhm5SenvnHTULr8GOWEZifSD1uMO5Je +9WX1xinrusBGIrPv1o+lTbMNZNCxYBrKOOz0VP88C5e4gOfgVDjvvkUGXcQBJ4iu +bFy9e/meS/ttvSiqRBzUwtWmMHFuK1pwKXDK57CIRHf/8O17XuLn6Zwzcbv4HrDX +aMPvExmcxT9zMovPZyeIYlgVQoePkeNhtQ+tEhEW6I0oJR6Yk0HhOYtTOg7ju0FW +nxplgoJomoLfAhtSr8sCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgKEMB0GA1UdJQQW +MBQGCCsGAQUFBwMCBggrBgEFBQcDATAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3 +DQEBCwUAA4ICAQC41Ztw37wTKtu9XupDlaKMNNnuiZrR6EWO3ejN7nT2pAFTppqL +JOltsxGR05pExtCYl3wdjkSVhcZsYWWzEtM2uGA057toABCfPeXq4LLnFaeQk2M6 +3etCiZwmnJOXfIb0+ApUATPrgOCPDtF91XopskLWzDGlQc+RIUpcBvQc8vjkvxhY +/XIDYCev/OVmS/lsRulYyYrb6YZ1VlbomJGxTNV2bPj9zoqlNDdp2h0om+obsnMN +hD4xljdKkSELdEyvIuHA8NF4BMsHt+EaZvYLLfrx4hva3L2gH4WMHicrd3Peg2Zm +MgI9j8LYtNn+zOSUL+Y6A+9Vgs7+mirHiMfX5OTjLA87sceKQ13aCNTh0NHDkoDs +IUU+qVt4z9qBLv8JJ6n2vqIaVvsUhOZstX5X//QBWKTnbyhMAz+WNiz+xSl9hp45 +5tH9p0lY7e6IzAXfVMJBKT71EAJuxTCa13+WU050hz/dVF/QPWktLXEddHSjLYcR +VVymPNr/HkHSfJJCx+FzIlgT33EiPqdtWE1dUL8CkD6wSAVNTUYWZznhdmMpg/+W +51KADsuh+FhodloMWvWqGgueAuafhkP+xsHcwy0nuwXKNtLgj9D0kPHnvoYzxV7k +oMAvSLTG5RZVsx4bfaoGLn6PelcafRQO8hbKNLHYKvphCtVofnl2hlpHBw== +-----END CERTIFICATE-----` + +func getCertificate() []byte { + return []byte(certificate) +} diff --git a/pkg/gpcloud/client/client.go b/pkg/gpcloud/client/client.go new file mode 100644 index 0000000..e0aeb76 --- /dev/null +++ b/pkg/gpcloud/client/client.go @@ -0,0 +1,67 @@ +package client + +import ( + "crypto/tls" + "crypto/x509" + "fmt" + + "github.com/GPORTALcloud/gpcloud-go/pkg/gpcloud/ptypes" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials" +) + +const DefaultEndpoint = "grpc.g-portal.cloud:443" + +type Client struct { + grpcClient *grpc.ClientConn +} + +// UserClient Returns the ptypes.UserAPIClient for authenticated requests +func (c *Client) UserClient() ptypes.UserAPIClient { + client := ptypes.NewUserAPIClient(c.grpcClient) + + return client +} + +// PublicClient Returns the ptypes.PublicAPIClient for unauthenticated requests +func (c *Client) PublicClient() ptypes.PublicAPIClient { + client := ptypes.NewPublicAPIClient(c.grpcClient) + + return client +} + +// NewClient Returns a new GRPC client +func NewClient(accessToken string, options ...grpc.DialOption) (*Client, error) { + cl := &Client{} + + // Certificate pinning + options = append(options, grpc.WithTransportCredentials(credentials.NewTLS(getTlsOptions()))) + + // User Agent + options = append(options, grpc.WithUserAgent(fmt.Sprintf("GPCloud Golang Client [%s]", Version))) + + // Access Token + if accessToken != "" { + options = append(options, grpc.WithPerRPCCredentials(GPCloudAuth{ + token: accessToken, + })) + } + + clientConn, err := grpc.Dial(DefaultEndpoint, options...) + if err != nil { + return nil, err + } + + cl.grpcClient = clientConn + return cl, nil +} + +func getTlsOptions() *tls.Config { + rootCA := x509.NewCertPool() + rootCA.AppendCertsFromPEM(getCertificate()) + + return &tls.Config{ + MinVersion: tls.VersionTLS12, + RootCAs: rootCA, + } +} diff --git a/pkg/gpcloud/client/version.go b/pkg/gpcloud/client/version.go new file mode 100644 index 0000000..af8a6fa --- /dev/null +++ b/pkg/gpcloud/client/version.go @@ -0,0 +1,3 @@ +package client + +const Version = "1.0.0" diff --git a/pkg/gpcloud/ptypes/admin.pb.go b/pkg/gpcloud/ptypes/admin.pb.go new file mode 100644 index 0000000..ca158d0 --- /dev/null +++ b/pkg/gpcloud/ptypes/admin.pb.go @@ -0,0 +1,3767 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: admin.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type AdminGetBillsRequest_BillStatus int32 + +const ( + AdminGetBillsRequest_ALL AdminGetBillsRequest_BillStatus = 0 + AdminGetBillsRequest_PAID AdminGetBillsRequest_BillStatus = 1 + AdminGetBillsRequest_UNPAID AdminGetBillsRequest_BillStatus = 2 + AdminGetBillsRequest_CANCELLED AdminGetBillsRequest_BillStatus = 3 + AdminGetBillsRequest_REFUNDED AdminGetBillsRequest_BillStatus = 4 + AdminGetBillsRequest_ERROR AdminGetBillsRequest_BillStatus = 5 +) + +// Enum value maps for AdminGetBillsRequest_BillStatus. +var ( + AdminGetBillsRequest_BillStatus_name = map[int32]string{ + 0: "ALL", + 1: "PAID", + 2: "UNPAID", + 3: "CANCELLED", + 4: "REFUNDED", + 5: "ERROR", + } + AdminGetBillsRequest_BillStatus_value = map[string]int32{ + "ALL": 0, + "PAID": 1, + "UNPAID": 2, + "CANCELLED": 3, + "REFUNDED": 4, + "ERROR": 5, + } +) + +func (x AdminGetBillsRequest_BillStatus) Enum() *AdminGetBillsRequest_BillStatus { + p := new(AdminGetBillsRequest_BillStatus) + *p = x + return p +} + +func (x AdminGetBillsRequest_BillStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AdminGetBillsRequest_BillStatus) Descriptor() protoreflect.EnumDescriptor { + return file_admin_proto_enumTypes[0].Descriptor() +} + +func (AdminGetBillsRequest_BillStatus) Type() protoreflect.EnumType { + return &file_admin_proto_enumTypes[0] +} + +func (x AdminGetBillsRequest_BillStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AdminGetBillsRequest_BillStatus.Descriptor instead. +func (AdminGetBillsRequest_BillStatus) EnumDescriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{16, 0} +} + +type AdminGetUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +} + +func (x *AdminGetUserRequest) Reset() { + *x = AdminGetUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetUserRequest) ProtoMessage() {} + +func (x *AdminGetUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_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 AdminGetUserRequest.ProtoReflect.Descriptor instead. +func (*AdminGetUserRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{0} +} + +func (x *AdminGetUserRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type AdminGetUserResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + Projects []*Project `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"` + CreditCards []*CreditCard `protobuf:"bytes,3,rep,name=credit_cards,json=creditCards,proto3" json:"credit_cards,omitempty"` + BillingAddresses []*BillingAddress `protobuf:"bytes,4,rep,name=billing_addresses,json=billingAddresses,proto3" json:"billing_addresses,omitempty"` + Locks []*UserLock `protobuf:"bytes,5,rep,name=locks,proto3" json:"locks,omitempty"` + Remarks []*UserRemark `protobuf:"bytes,6,rep,name=remarks,proto3" json:"remarks,omitempty"` +} + +func (x *AdminGetUserResponse) Reset() { + *x = AdminGetUserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetUserResponse) ProtoMessage() {} + +func (x *AdminGetUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_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 AdminGetUserResponse.ProtoReflect.Descriptor instead. +func (*AdminGetUserResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{1} +} + +func (x *AdminGetUserResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +func (x *AdminGetUserResponse) GetProjects() []*Project { + if x != nil { + return x.Projects + } + return nil +} + +func (x *AdminGetUserResponse) GetCreditCards() []*CreditCard { + if x != nil { + return x.CreditCards + } + return nil +} + +func (x *AdminGetUserResponse) GetBillingAddresses() []*BillingAddress { + if x != nil { + return x.BillingAddresses + } + return nil +} + +func (x *AdminGetUserResponse) GetLocks() []*UserLock { + if x != nil { + return x.Locks + } + return nil +} + +func (x *AdminGetUserResponse) GetRemarks() []*UserRemark { + if x != nil { + return x.Remarks + } + return nil +} + +type AdminUpdateUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + Confirmed bool `protobuf:"varint,4,opt,name=confirmed,proto3" json:"confirmed,omitempty"` + Admin bool `protobuf:"varint,5,opt,name=admin,proto3" json:"admin,omitempty"` + ComputeLimit int32 `protobuf:"varint,6,opt,name=compute_limit,json=computeLimit,proto3" json:"compute_limit,omitempty"` + PaymentMethods []PaymentMethod `protobuf:"varint,7,rep,packed,name=payment_methods,json=paymentMethods,proto3,enum=api.payment.PaymentMethod" json:"payment_methods,omitempty"` + // If true, the user will get a new password and sent via email + ResetPassword bool `protobuf:"varint,8,opt,name=reset_password,json=resetPassword,proto3" json:"reset_password,omitempty"` + // If true, all 2FA methods will be removed from account + Reset_2Fa bool `protobuf:"varint,9,opt,name=reset_2fa,json=reset2fa,proto3" json:"reset_2fa,omitempty"` +} + +func (x *AdminUpdateUserRequest) Reset() { + *x = AdminUpdateUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateUserRequest) ProtoMessage() {} + +func (x *AdminUpdateUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_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 AdminUpdateUserRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateUserRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{2} +} + +func (x *AdminUpdateUserRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateUserRequest) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *AdminUpdateUserRequest) GetFullName() string { + if x != nil { + return x.FullName + } + return "" +} + +func (x *AdminUpdateUserRequest) GetConfirmed() bool { + if x != nil { + return x.Confirmed + } + return false +} + +func (x *AdminUpdateUserRequest) GetAdmin() bool { + if x != nil { + return x.Admin + } + return false +} + +func (x *AdminUpdateUserRequest) GetComputeLimit() int32 { + if x != nil { + return x.ComputeLimit + } + return 0 +} + +func (x *AdminUpdateUserRequest) GetPaymentMethods() []PaymentMethod { + if x != nil { + return x.PaymentMethods + } + return nil +} + +func (x *AdminUpdateUserRequest) GetResetPassword() bool { + if x != nil { + return x.ResetPassword + } + return false +} + +func (x *AdminUpdateUserRequest) GetReset_2Fa() bool { + if x != nil { + return x.Reset_2Fa + } + return false +} + +type AdminLockUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (x *AdminLockUserRequest) Reset() { + *x = AdminLockUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminLockUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminLockUserRequest) ProtoMessage() {} + +func (x *AdminLockUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_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 AdminLockUserRequest.ProtoReflect.Descriptor instead. +func (*AdminLockUserRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{3} +} + +func (x *AdminLockUserRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *AdminLockUserRequest) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +type AdminUnlockUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +} + +func (x *AdminUnlockUserRequest) Reset() { + *x = AdminUnlockUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUnlockUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUnlockUserRequest) ProtoMessage() {} + +func (x *AdminUnlockUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_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 AdminUnlockUserRequest.ProtoReflect.Descriptor instead. +func (*AdminUnlockUserRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{4} +} + +func (x *AdminUnlockUserRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type AdminLog struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Log ID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Users + AdminUser *User `protobuf:"bytes,2,opt,name=admin_user,json=adminUser,proto3" json:"admin_user,omitempty"` + TargetUser *User `protobuf:"bytes,3,opt,name=target_user,json=targetUser,proto3" json:"target_user,omitempty"` + // Log message + Log string `protobuf:"bytes,4,opt,name=log,proto3" json:"log,omitempty"` + // Log timestamps + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *AdminLog) Reset() { + *x = AdminLog{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminLog) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminLog) ProtoMessage() {} + +func (x *AdminLog) ProtoReflect() protoreflect.Message { + mi := &file_admin_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 AdminLog.ProtoReflect.Descriptor instead. +func (*AdminLog) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{5} +} + +func (x *AdminLog) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminLog) GetAdminUser() *User { + if x != nil { + return x.AdminUser + } + return nil +} + +func (x *AdminLog) GetTargetUser() *User { + if x != nil { + return x.TargetUser + } + return nil +} + +func (x *AdminLog) GetLog() string { + if x != nil { + return x.Log + } + return "" +} + +func (x *AdminLog) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *AdminLog) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type AdminGetAdminLogsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // page number to load + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + // optional + Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"` + // optional + AdminUserId string `protobuf:"bytes,3,opt,name=admin_user_id,json=adminUserId,proto3" json:"admin_user_id,omitempty"` + // optional + UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +} + +func (x *AdminGetAdminLogsRequest) Reset() { + *x = AdminGetAdminLogsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetAdminLogsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetAdminLogsRequest) ProtoMessage() {} + +func (x *AdminGetAdminLogsRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[6] + 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 AdminGetAdminLogsRequest.ProtoReflect.Descriptor instead. +func (*AdminGetAdminLogsRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{6} +} + +func (x *AdminGetAdminLogsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *AdminGetAdminLogsRequest) GetSearch() string { + if x != nil { + return x.Search + } + return "" +} + +func (x *AdminGetAdminLogsRequest) GetAdminUserId() string { + if x != nil { + return x.AdminUserId + } + return "" +} + +func (x *AdminGetAdminLogsRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type AdminGetAdminLogsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // All log items for page + Logs []*AdminLog `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` + // Number of pages available + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *AdminGetAdminLogsResponse) Reset() { + *x = AdminGetAdminLogsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetAdminLogsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetAdminLogsResponse) ProtoMessage() {} + +func (x *AdminGetAdminLogsResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[7] + 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 AdminGetAdminLogsResponse.ProtoReflect.Descriptor instead. +func (*AdminGetAdminLogsResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{7} +} + +func (x *AdminGetAdminLogsResponse) GetLogs() []*AdminLog { + if x != nil { + return x.Logs + } + return nil +} + +func (x *AdminGetAdminLogsResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type AdminGetUserBillsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // page number to load + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + // optional + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +} + +func (x *AdminGetUserBillsRequest) Reset() { + *x = AdminGetUserBillsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetUserBillsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetUserBillsRequest) ProtoMessage() {} + +func (x *AdminGetUserBillsRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[8] + 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 AdminGetUserBillsRequest.ProtoReflect.Descriptor instead. +func (*AdminGetUserBillsRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{8} +} + +func (x *AdminGetUserBillsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *AdminGetUserBillsRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type AdminGetUserBillsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bills []*Bill `protobuf:"bytes,1,rep,name=bills,proto3" json:"bills,omitempty"` + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *AdminGetUserBillsResponse) Reset() { + *x = AdminGetUserBillsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetUserBillsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetUserBillsResponse) ProtoMessage() {} + +func (x *AdminGetUserBillsResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[9] + 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 AdminGetUserBillsResponse.ProtoReflect.Descriptor instead. +func (*AdminGetUserBillsResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{9} +} + +func (x *AdminGetUserBillsResponse) GetBills() []*Bill { + if x != nil { + return x.Bills + } + return nil +} + +func (x *AdminGetUserBillsResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type AdminGetSplaReportingRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"` + Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"` +} + +func (x *AdminGetSplaReportingRequest) Reset() { + *x = AdminGetSplaReportingRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetSplaReportingRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetSplaReportingRequest) ProtoMessage() {} + +func (x *AdminGetSplaReportingRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[10] + 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 AdminGetSplaReportingRequest.ProtoReflect.Descriptor instead. +func (*AdminGetSplaReportingRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{10} +} + +func (x *AdminGetSplaReportingRequest) GetYear() int32 { + if x != nil { + return x.Year + } + return 0 +} + +func (x *AdminGetSplaReportingRequest) GetMonth() int32 { + if x != nil { + return x.Month + } + return 0 +} + +type SplaReporting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Server *Server `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"` + Price *Price `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` + CpuAmount int32 `protobuf:"varint,4,opt,name=cpu_amount,json=cpuAmount,proto3" json:"cpu_amount,omitempty"` + CpuCores int32 `protobuf:"varint,5,opt,name=cpu_cores,json=cpuCores,proto3" json:"cpu_cores,omitempty"` + PackageAmount int32 `protobuf:"varint,6,opt,name=package_amount,json=packageAmount,proto3" json:"package_amount,omitempty"` +} + +func (x *SplaReporting) Reset() { + *x = SplaReporting{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SplaReporting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SplaReporting) ProtoMessage() {} + +func (x *SplaReporting) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[11] + 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 SplaReporting.ProtoReflect.Descriptor instead. +func (*SplaReporting) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{11} +} + +func (x *SplaReporting) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *SplaReporting) GetServer() *Server { + if x != nil { + return x.Server + } + return nil +} + +func (x *SplaReporting) GetPrice() *Price { + if x != nil { + return x.Price + } + return nil +} + +func (x *SplaReporting) GetCpuAmount() int32 { + if x != nil { + return x.CpuAmount + } + return 0 +} + +func (x *SplaReporting) GetCpuCores() int32 { + if x != nil { + return x.CpuCores + } + return 0 +} + +func (x *SplaReporting) GetPackageAmount() int32 { + if x != nil { + return x.PackageAmount + } + return 0 +} + +type AdminGetSplaReportingResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Reports []*SplaReporting `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"` + TotalPrice *Price `protobuf:"bytes,2,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` + TotalCpuPackages int32 `protobuf:"varint,3,opt,name=total_cpu_packages,json=totalCpuPackages,proto3" json:"total_cpu_packages,omitempty"` + Dates []string `protobuf:"bytes,4,rep,name=dates,proto3" json:"dates,omitempty"` +} + +func (x *AdminGetSplaReportingResponse) Reset() { + *x = AdminGetSplaReportingResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetSplaReportingResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetSplaReportingResponse) ProtoMessage() {} + +func (x *AdminGetSplaReportingResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[12] + 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 AdminGetSplaReportingResponse.ProtoReflect.Descriptor instead. +func (*AdminGetSplaReportingResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{12} +} + +func (x *AdminGetSplaReportingResponse) GetReports() []*SplaReporting { + if x != nil { + return x.Reports + } + return nil +} + +func (x *AdminGetSplaReportingResponse) GetTotalPrice() *Price { + if x != nil { + return x.TotalPrice + } + return nil +} + +func (x *AdminGetSplaReportingResponse) GetTotalCpuPackages() int32 { + if x != nil { + return x.TotalCpuPackages + } + return 0 +} + +func (x *AdminGetSplaReportingResponse) GetDates() []string { + if x != nil { + return x.Dates + } + return nil +} + +type AdminGetIPHistoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"` +} + +func (x *AdminGetIPHistoryRequest) Reset() { + *x = AdminGetIPHistoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetIPHistoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetIPHistoryRequest) ProtoMessage() {} + +func (x *AdminGetIPHistoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[13] + 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 AdminGetIPHistoryRequest.ProtoReflect.Descriptor instead. +func (*AdminGetIPHistoryRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{13} +} + +func (x *AdminGetIPHistoryRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *AdminGetIPHistoryRequest) GetSearch() string { + if x != nil { + return x.Search + } + return "" +} + +type IPHistory struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + DeletedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` +} + +func (x *IPHistory) Reset() { + *x = IPHistory{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IPHistory) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IPHistory) ProtoMessage() {} + +func (x *IPHistory) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[14] + 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 IPHistory.ProtoReflect.Descriptor instead. +func (*IPHistory) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{14} +} + +func (x *IPHistory) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *IPHistory) GetIpAddress() string { + if x != nil { + return x.IpAddress + } + return "" +} + +func (x *IPHistory) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +func (x *IPHistory) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *IPHistory) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +func (x *IPHistory) GetDeletedAt() *timestamppb.Timestamp { + if x != nil { + return x.DeletedAt + } + return nil +} + +type AdminGetIPHistoryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpHistories []*IPHistory `protobuf:"bytes,1,rep,name=ip_histories,json=ipHistories,proto3" json:"ip_histories,omitempty"` + // Number of pages available + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *AdminGetIPHistoryResponse) Reset() { + *x = AdminGetIPHistoryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetIPHistoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetIPHistoryResponse) ProtoMessage() {} + +func (x *AdminGetIPHistoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[15] + 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 AdminGetIPHistoryResponse.ProtoReflect.Descriptor instead. +func (*AdminGetIPHistoryResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{15} +} + +func (x *AdminGetIPHistoryResponse) GetIpHistories() []*IPHistory { + if x != nil { + return x.IpHistories + } + return nil +} + +func (x *AdminGetIPHistoryResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type AdminGetBillsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + Filter AdminGetBillsRequest_BillStatus `protobuf:"varint,2,opt,name=filter,proto3,enum=api.admin.AdminGetBillsRequest_BillStatus" json:"filter,omitempty"` + FinalOnly bool `protobuf:"varint,3,opt,name=final_only,json=finalOnly,proto3" json:"final_only,omitempty"` +} + +func (x *AdminGetBillsRequest) Reset() { + *x = AdminGetBillsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetBillsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetBillsRequest) ProtoMessage() {} + +func (x *AdminGetBillsRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[16] + 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 AdminGetBillsRequest.ProtoReflect.Descriptor instead. +func (*AdminGetBillsRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{16} +} + +func (x *AdminGetBillsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *AdminGetBillsRequest) GetFilter() AdminGetBillsRequest_BillStatus { + if x != nil { + return x.Filter + } + return AdminGetBillsRequest_ALL +} + +func (x *AdminGetBillsRequest) GetFinalOnly() bool { + if x != nil { + return x.FinalOnly + } + return false +} + +type AdminAddBillPaymentRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` +} + +func (x *AdminAddBillPaymentRequest) Reset() { + *x = AdminAddBillPaymentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminAddBillPaymentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminAddBillPaymentRequest) ProtoMessage() {} + +func (x *AdminAddBillPaymentRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[17] + 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 AdminAddBillPaymentRequest.ProtoReflect.Descriptor instead. +func (*AdminAddBillPaymentRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{17} +} + +func (x *AdminAddBillPaymentRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminAddBillPaymentRequest) GetAmount() int64 { + if x != nil { + return x.Amount + } + return 0 +} + +type AdminRefundBillPaymentRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminRefundBillPaymentRequest) Reset() { + *x = AdminRefundBillPaymentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminRefundBillPaymentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminRefundBillPaymentRequest) ProtoMessage() {} + +func (x *AdminRefundBillPaymentRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[18] + 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 AdminRefundBillPaymentRequest.ProtoReflect.Descriptor instead. +func (*AdminRefundBillPaymentRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{18} +} + +func (x *AdminRefundBillPaymentRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetBillsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bills []*Bill `protobuf:"bytes,1,rep,name=bills,proto3" json:"bills,omitempty"` + // Number of pages available + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *AdminGetBillsResponse) Reset() { + *x = AdminGetBillsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetBillsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetBillsResponse) ProtoMessage() {} + +func (x *AdminGetBillsResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[19] + 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 AdminGetBillsResponse.ProtoReflect.Descriptor instead. +func (*AdminGetBillsResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{19} +} + +func (x *AdminGetBillsResponse) GetBills() []*Bill { + if x != nil { + return x.Bills + } + return nil +} + +func (x *AdminGetBillsResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type AdminResendBillRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminResendBillRequest) Reset() { + *x = AdminResendBillRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminResendBillRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminResendBillRequest) ProtoMessage() {} + +func (x *AdminResendBillRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[20] + 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 AdminResendBillRequest.ProtoReflect.Descriptor instead. +func (*AdminResendBillRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{20} +} + +func (x *AdminResendBillRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetBillRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetBillRequest) Reset() { + *x = AdminGetBillRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetBillRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetBillRequest) ProtoMessage() {} + +func (x *AdminGetBillRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[21] + 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 AdminGetBillRequest.ProtoReflect.Descriptor instead. +func (*AdminGetBillRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{21} +} + +func (x *AdminGetBillRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetBillResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bill *Bill `protobuf:"bytes,1,opt,name=bill,proto3" json:"bill,omitempty"` + Payments []*Payment `protobuf:"bytes,2,rep,name=payments,proto3" json:"payments,omitempty"` +} + +func (x *AdminGetBillResponse) Reset() { + *x = AdminGetBillResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetBillResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetBillResponse) ProtoMessage() {} + +func (x *AdminGetBillResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[22] + 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 AdminGetBillResponse.ProtoReflect.Descriptor instead. +func (*AdminGetBillResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{22} +} + +func (x *AdminGetBillResponse) GetBill() *Bill { + if x != nil { + return x.Bill + } + return nil +} + +func (x *AdminGetBillResponse) GetPayments() []*Payment { + if x != nil { + return x.Payments + } + return nil +} + +type AdminGetBillPdfRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetBillPdfRequest) Reset() { + *x = AdminGetBillPdfRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetBillPdfRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetBillPdfRequest) ProtoMessage() {} + +func (x *AdminGetBillPdfRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[23] + 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 AdminGetBillPdfRequest.ProtoReflect.Descriptor instead. +func (*AdminGetBillPdfRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{23} +} + +func (x *AdminGetBillPdfRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetBillPdfResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DownloadUrl string `protobuf:"bytes,1,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"` +} + +func (x *AdminGetBillPdfResponse) Reset() { + *x = AdminGetBillPdfResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetBillPdfResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetBillPdfResponse) ProtoMessage() {} + +func (x *AdminGetBillPdfResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[24] + 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 AdminGetBillPdfResponse.ProtoReflect.Descriptor instead. +func (*AdminGetBillPdfResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{24} +} + +func (x *AdminGetBillPdfResponse) GetDownloadUrl() string { + if x != nil { + return x.DownloadUrl + } + return "" +} + +type AdminGetProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetProjectRequest) Reset() { + *x = AdminGetProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetProjectRequest) ProtoMessage() {} + +func (x *AdminGetProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[25] + 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 AdminGetProjectRequest.ProtoReflect.Descriptor instead. +func (*AdminGetProjectRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{25} +} + +func (x *AdminGetProjectRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetProjectNetworksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetProjectNetworksRequest) Reset() { + *x = AdminGetProjectNetworksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetProjectNetworksRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetProjectNetworksRequest) ProtoMessage() {} + +func (x *AdminGetProjectNetworksRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[26] + 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 AdminGetProjectNetworksRequest.ProtoReflect.Descriptor instead. +func (*AdminGetProjectNetworksRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{26} +} + +func (x *AdminGetProjectNetworksRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetProjectNetworksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"` +} + +func (x *AdminGetProjectNetworksResponse) Reset() { + *x = AdminGetProjectNetworksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetProjectNetworksResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetProjectNetworksResponse) ProtoMessage() {} + +func (x *AdminGetProjectNetworksResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[27] + 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 AdminGetProjectNetworksResponse.ProtoReflect.Descriptor instead. +func (*AdminGetProjectNetworksResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{27} +} + +func (x *AdminGetProjectNetworksResponse) GetNetworks() []*Network { + if x != nil { + return x.Networks + } + return nil +} + +type AdminCreateProjectNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project id + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + DatacenterId string `protobuf:"bytes,3,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` + // optional vlan tag + VlanId int32 `protobuf:"varint,4,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"` + Type NetworkType `protobuf:"varint,5,opt,name=type,proto3,enum=api.network.NetworkType" json:"type,omitempty"` +} + +func (x *AdminCreateProjectNetworkRequest) Reset() { + *x = AdminCreateProjectNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateProjectNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateProjectNetworkRequest) ProtoMessage() {} + +func (x *AdminCreateProjectNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[28] + 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 AdminCreateProjectNetworkRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateProjectNetworkRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{28} +} + +func (x *AdminCreateProjectNetworkRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminCreateProjectNetworkRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminCreateProjectNetworkRequest) GetDatacenterId() string { + if x != nil { + return x.DatacenterId + } + return "" +} + +func (x *AdminCreateProjectNetworkRequest) GetVlanId() int32 { + if x != nil { + return x.VlanId + } + return 0 +} + +func (x *AdminCreateProjectNetworkRequest) GetType() NetworkType { + if x != nil { + return x.Type + } + return NetworkType_MANAGEMENT +} + +type AdminGetProjectResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + ComputeResources []*ComputeResource `protobuf:"bytes,2,rep,name=compute_resources,json=computeResources,proto3" json:"compute_resources,omitempty"` + ComputeDiscounts []*ProjectComputeDiscount `protobuf:"bytes,3,rep,name=compute_discounts,json=computeDiscounts,proto3" json:"compute_discounts,omitempty"` +} + +func (x *AdminGetProjectResponse) Reset() { + *x = AdminGetProjectResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetProjectResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetProjectResponse) ProtoMessage() {} + +func (x *AdminGetProjectResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[29] + 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 AdminGetProjectResponse.ProtoReflect.Descriptor instead. +func (*AdminGetProjectResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{29} +} + +func (x *AdminGetProjectResponse) GetProject() *Project { + if x != nil { + return x.Project + } + return nil +} + +func (x *AdminGetProjectResponse) GetComputeResources() []*ComputeResource { + if x != nil { + return x.ComputeResources + } + return nil +} + +func (x *AdminGetProjectResponse) GetComputeDiscounts() []*ProjectComputeDiscount { + if x != nil { + return x.ComputeDiscounts + } + return nil +} + +type ProjectComputeDiscount struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Optional limit for flavours + Flavour *Flavour `protobuf:"bytes,2,opt,name=flavour,proto3" json:"flavour,omitempty"` + // Optional limit for datacenter + Datacenter *DataCenter `protobuf:"bytes,3,opt,name=datacenter,proto3" json:"datacenter,omitempty"` + // Types that are assignable to Discount: + // *ProjectComputeDiscount_Percent + // *ProjectComputeDiscount_Price + Discount isProjectComputeDiscount_Discount `protobuf_oneof:"discount"` + // When true, we do not charge for any SPLA license + InclusiveSpla bool `protobuf:"varint,6,opt,name=inclusive_spla,json=inclusiveSpla,proto3" json:"inclusive_spla,omitempty"` + // When true, we do not charge for any traffic + InclusiveTraffic bool `protobuf:"varint,7,opt,name=inclusive_traffic,json=inclusiveTraffic,proto3" json:"inclusive_traffic,omitempty"` +} + +func (x *ProjectComputeDiscount) Reset() { + *x = ProjectComputeDiscount{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectComputeDiscount) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectComputeDiscount) ProtoMessage() {} + +func (x *ProjectComputeDiscount) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[30] + 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 ProjectComputeDiscount.ProtoReflect.Descriptor instead. +func (*ProjectComputeDiscount) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{30} +} + +func (x *ProjectComputeDiscount) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ProjectComputeDiscount) GetFlavour() *Flavour { + if x != nil { + return x.Flavour + } + return nil +} + +func (x *ProjectComputeDiscount) GetDatacenter() *DataCenter { + if x != nil { + return x.Datacenter + } + return nil +} + +func (m *ProjectComputeDiscount) GetDiscount() isProjectComputeDiscount_Discount { + if m != nil { + return m.Discount + } + return nil +} + +func (x *ProjectComputeDiscount) GetPercent() int32 { + if x, ok := x.GetDiscount().(*ProjectComputeDiscount_Percent); ok { + return x.Percent + } + return 0 +} + +func (x *ProjectComputeDiscount) GetPrice() *Price { + if x, ok := x.GetDiscount().(*ProjectComputeDiscount_Price); ok { + return x.Price + } + return nil +} + +func (x *ProjectComputeDiscount) GetInclusiveSpla() bool { + if x != nil { + return x.InclusiveSpla + } + return false +} + +func (x *ProjectComputeDiscount) GetInclusiveTraffic() bool { + if x != nil { + return x.InclusiveTraffic + } + return false +} + +type isProjectComputeDiscount_Discount interface { + isProjectComputeDiscount_Discount() +} + +type ProjectComputeDiscount_Percent struct { + Percent int32 `protobuf:"varint,4,opt,name=percent,proto3,oneof"` +} + +type ProjectComputeDiscount_Price struct { + Price *Price `protobuf:"bytes,5,opt,name=price,proto3,oneof"` +} + +func (*ProjectComputeDiscount_Percent) isProjectComputeDiscount_Discount() {} + +func (*ProjectComputeDiscount_Price) isProjectComputeDiscount_Discount() {} + +type AdminUpdateProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + SkipPayment bool `protobuf:"varint,2,opt,name=skip_payment,json=skipPayment,proto3" json:"skip_payment,omitempty"` + ComputeDiscounts []*ProjectComputeDiscount `protobuf:"bytes,3,rep,name=compute_discounts,json=computeDiscounts,proto3" json:"compute_discounts,omitempty"` +} + +func (x *AdminUpdateProjectRequest) Reset() { + *x = AdminUpdateProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateProjectRequest) ProtoMessage() {} + +func (x *AdminUpdateProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[31] + 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 AdminUpdateProjectRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateProjectRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{31} +} + +func (x *AdminUpdateProjectRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateProjectRequest) GetSkipPayment() bool { + if x != nil { + return x.SkipPayment + } + return false +} + +func (x *AdminUpdateProjectRequest) GetComputeDiscounts() []*ProjectComputeDiscount { + if x != nil { + return x.ComputeDiscounts + } + return nil +} + +type AdminApplyCreditToProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (x *AdminApplyCreditToProjectRequest) Reset() { + *x = AdminApplyCreditToProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminApplyCreditToProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminApplyCreditToProjectRequest) ProtoMessage() {} + +func (x *AdminApplyCreditToProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[32] + 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 AdminApplyCreditToProjectRequest.ProtoReflect.Descriptor instead. +func (*AdminApplyCreditToProjectRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{32} +} + +func (x *AdminApplyCreditToProjectRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminApplyCreditToProjectRequest) GetAmount() int64 { + if x != nil { + return x.Amount + } + return 0 +} + +func (x *AdminApplyCreditToProjectRequest) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +type AdminListServerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"` +} + +func (x *AdminListServerRequest) Reset() { + *x = AdminListServerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListServerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListServerRequest) ProtoMessage() {} + +func (x *AdminListServerRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[33] + 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 AdminListServerRequest.ProtoReflect.Descriptor instead. +func (*AdminListServerRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{33} +} + +func (x *AdminListServerRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *AdminListServerRequest) GetSearch() string { + if x != nil { + return x.Search + } + return "" +} + +type AdminListServerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Server []*AdminServer `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"` + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *AdminListServerResponse) Reset() { + *x = AdminListServerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListServerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListServerResponse) ProtoMessage() {} + +func (x *AdminListServerResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[34] + 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 AdminListServerResponse.ProtoReflect.Descriptor instead. +func (*AdminListServerResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{34} +} + +func (x *AdminListServerResponse) GetServer() []*AdminServer { + if x != nil { + return x.Server + } + return nil +} + +func (x *AdminListServerResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type AdminGetServerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetServerRequest) Reset() { + *x = AdminGetServerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetServerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetServerRequest) ProtoMessage() {} + +func (x *AdminGetServerRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[35] + 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 AdminGetServerRequest.ProtoReflect.Descriptor instead. +func (*AdminGetServerRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{35} +} + +func (x *AdminGetServerRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminUpdateServerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + FlavourId string `protobuf:"bytes,3,opt,name=flavour_id,json=flavourId,proto3" json:"flavour_id,omitempty"` + Status ServerStatus `protobuf:"varint,4,opt,name=status,proto3,enum=api.server.ServerStatus" json:"status,omitempty"` +} + +func (x *AdminUpdateServerRequest) Reset() { + *x = AdminUpdateServerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateServerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateServerRequest) ProtoMessage() {} + +func (x *AdminUpdateServerRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[36] + 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 AdminUpdateServerRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateServerRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{36} +} + +func (x *AdminUpdateServerRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateServerRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminUpdateServerRequest) GetFlavourId() string { + if x != nil { + return x.FlavourId + } + return "" +} + +func (x *AdminUpdateServerRequest) GetStatus() ServerStatus { + if x != nil { + return x.Status + } + return ServerStatus_SETUP_PLATFORM_MANAGEMENT +} + +type AdminDeleteServerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteServerRequest) Reset() { + *x = AdminDeleteServerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteServerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteServerRequest) ProtoMessage() {} + +func (x *AdminDeleteServerRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[37] + 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 AdminDeleteServerRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteServerRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{37} +} + +func (x *AdminDeleteServerRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminServer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` + ComputeResource *ComputeResource `protobuf:"bytes,2,opt,name=compute_resource,json=computeResource,proto3" json:"compute_resource,omitempty"` + ComputeResourceProvisioning *ComputeResourceProvisioning `protobuf:"bytes,3,opt,name=compute_resource_provisioning,json=computeResourceProvisioning,proto3" json:"compute_resource_provisioning,omitempty"` + Project *Project `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` +} + +func (x *AdminServer) Reset() { + *x = AdminServer{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminServer) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminServer) ProtoMessage() {} + +func (x *AdminServer) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[38] + 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 AdminServer.ProtoReflect.Descriptor instead. +func (*AdminServer) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{38} +} + +func (x *AdminServer) GetServer() *Server { + if x != nil { + return x.Server + } + return nil +} + +func (x *AdminServer) GetComputeResource() *ComputeResource { + if x != nil { + return x.ComputeResource + } + return nil +} + +func (x *AdminServer) GetComputeResourceProvisioning() *ComputeResourceProvisioning { + if x != nil { + return x.ComputeResourceProvisioning + } + return nil +} + +func (x *AdminServer) GetProject() *Project { + if x != nil { + return x.Project + } + return nil +} + +type AdminGetFlavourRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetFlavourRequest) Reset() { + *x = AdminGetFlavourRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetFlavourRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetFlavourRequest) ProtoMessage() {} + +func (x *AdminGetFlavourRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[39] + 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 AdminGetFlavourRequest.ProtoReflect.Descriptor instead. +func (*AdminGetFlavourRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{39} +} + +func (x *AdminGetFlavourRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetServerAlertsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` +} + +func (x *AdminGetServerAlertsRequest) Reset() { + *x = AdminGetServerAlertsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetServerAlertsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetServerAlertsRequest) ProtoMessage() {} + +func (x *AdminGetServerAlertsRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[40] + 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 AdminGetServerAlertsRequest.ProtoReflect.Descriptor instead. +func (*AdminGetServerAlertsRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{40} +} + +func (x *AdminGetServerAlertsRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminGetServerAlertsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +type AdminGetServerAlertsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Alerts []*ServerAlert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"` + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *AdminGetServerAlertsResponse) Reset() { + *x = AdminGetServerAlertsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetServerAlertsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetServerAlertsResponse) ProtoMessage() {} + +func (x *AdminGetServerAlertsResponse) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[41] + 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 AdminGetServerAlertsResponse.ProtoReflect.Descriptor instead. +func (*AdminGetServerAlertsResponse) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{41} +} + +func (x *AdminGetServerAlertsResponse) GetAlerts() []*ServerAlert { + if x != nil { + return x.Alerts + } + return nil +} + +func (x *AdminGetServerAlertsResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type AdminDeleteServerAlertRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteServerAlertRequest) Reset() { + *x = AdminDeleteServerAlertRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_admin_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteServerAlertRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteServerAlertRequest) ProtoMessage() {} + +func (x *AdminDeleteServerAlertRequest) ProtoReflect() protoreflect.Message { + mi := &file_admin_proto_msgTypes[42] + 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 AdminDeleteServerAlertRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteServerAlertRequest) Descriptor() ([]byte, []int) { + return file_admin_proto_rawDescGZIP(), []int{42} +} + +func (x *AdminDeleteServerAlertRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +var File_admin_proto protoreflect.FileDescriptor + +var file_admin_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x61, + 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x0d, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x0d, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, + 0x0a, 0x13, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xcc, + 0x02, 0x0a, 0x14, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x08, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x3a, 0x0a, + 0x0c, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, + 0x74, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x52, 0x0b, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x73, 0x12, 0x48, 0x0a, 0x11, 0x62, 0x69, 0x6c, + 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x2e, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x52, 0x10, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x2e, 0x0a, + 0x07, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x52, 0x07, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x22, 0xbd, 0x02, + 0x0a, 0x16, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1b, + 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, + 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x4c, + 0x69, 0x6d, 0x69, 0x74, 0x12, 0x43, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, + 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1a, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x6d, + 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x32, 0x66, 0x61, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x73, 0x65, 0x74, 0x32, 0x66, 0x61, 0x22, 0x47, 0x0a, + 0x14, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x31, 0x0a, 0x16, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, + 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x82, 0x02, 0x0a, 0x08, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x09, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x83, + 0x01, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x27, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x4c, 0x6f, 0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, + 0x67, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x47, 0x0a, 0x18, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x69, 0x6c, 0x6c, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x27, 0x0a, 0x05, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x42, + 0x69, 0x6c, 0x6c, 0x52, 0x05, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, + 0x67, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x48, 0x0a, 0x1c, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x70, 0x6c, 0x61, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x79, + 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, 0x12, + 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, + 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x22, 0xd0, 0x01, 0x0a, 0x0d, 0x53, 0x70, 0x6c, 0x61, 0x52, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x05, + 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x70, 0x75, 0x5f, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x70, 0x75, 0x41, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x70, 0x75, 0x5f, 0x63, 0x6f, 0x72, 0x65, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x70, 0x75, 0x43, 0x6f, 0x72, 0x65, + 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xc4, 0x01, 0x0a, 0x1d, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x70, 0x6c, 0x61, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, + 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x72, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x70, 0x6c, 0x61, 0x52, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x2b, + 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, + 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x70, + 0x75, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x61, 0x74, + 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x64, 0x61, 0x74, 0x65, 0x73, 0x22, + 0x46, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x49, 0x50, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x22, 0x8f, 0x02, 0x0a, 0x09, 0x49, 0x50, 0x48, 0x69, + 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x22, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, + 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x75, 0x0a, 0x19, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x47, 0x65, 0x74, 0x49, 0x50, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0c, 0x69, 0x70, 0x5f, 0x68, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x49, 0x50, 0x48, 0x69, 0x73, 0x74, 0x6f, + 0x72, 0x79, 0x52, 0x0b, 0x69, 0x70, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, + 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, + 0x22, 0xe2, 0x01, 0x0a, 0x14, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6c, + 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x42, 0x0a, + 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, + 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x42, + 0x69, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x4f, 0x6e, 0x6c, 0x79, + 0x22, 0x53, 0x0a, 0x0a, 0x42, 0x69, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x07, + 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x41, 0x49, 0x44, 0x10, + 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x4e, 0x50, 0x41, 0x49, 0x44, 0x10, 0x02, 0x12, 0x0d, 0x0a, + 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, + 0x52, 0x45, 0x46, 0x55, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x10, 0x05, 0x22, 0x44, 0x0a, 0x1a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x64, + 0x64, 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2f, 0x0a, 0x1d, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x61, + 0x79, 0x6d, 0x65, 0x6e, 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, 0x61, 0x0a, 0x15, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, + 0x6e, 0x67, 0x2e, 0x42, 0x69, 0x6c, 0x6c, 0x52, 0x05, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x12, 0x1f, + 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, + 0x28, 0x0a, 0x16, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x42, 0x69, + 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x25, 0x0a, 0x13, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x22, 0x6f, 0x0a, 0x14, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x62, 0x69, 0x6c, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x69, 0x6c, + 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x42, 0x69, 0x6c, 0x6c, 0x52, 0x04, 0x62, 0x69, 0x6c, 0x6c, 0x12, + 0x30, 0x0a, 0x08, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, + 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x22, 0x28, 0x0a, 0x16, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6c, + 0x6c, 0x50, 0x64, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x17, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x64, 0x66, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, + 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x22, 0x28, 0x0a, 0x16, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 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, 0x30, 0x0a, 0x1e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x53, 0x0a, 0x1f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x20, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x6c, 0x61, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x76, 0x6c, 0x61, 0x6e, 0x49, + 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, + 0xe4, 0x01, 0x0a, 0x17, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x49, 0x0a, 0x11, 0x63, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x44, 0x69, 0x73, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0xb0, 0x02, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x2e, 0x0a, 0x07, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, + 0x2e, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, 0x07, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, + 0x72, 0x12, 0x36, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x64, + 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x07, 0x70, 0x65, 0x72, + 0x63, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x07, 0x70, 0x65, + 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x48, 0x00, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x63, + 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x70, 0x6c, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x53, 0x70, 0x6c, 0x61, + 0x12, 0x2b, 0x0a, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x72, + 0x61, 0x66, 0x66, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x69, 0x6e, 0x63, + 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x42, 0x0a, 0x0a, + 0x08, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x9e, 0x01, 0x0a, 0x19, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x5f, + 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, + 0x6b, 0x69, 0x70, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4e, 0x0a, 0x11, 0x63, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x44, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x62, 0x0a, 0x20, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x6f, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x44, + 0x0a, 0x16, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, + 0x61, 0x72, 0x63, 0x68, 0x22, 0x6a, 0x0a, 0x17, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, + 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2e, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, + 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, + 0x22, 0x27, 0x0a, 0x15, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8f, 0x01, 0x0a, 0x18, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x6c, + 0x61, 0x76, 0x6f, 0x75, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2a, 0x0a, 0x18, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xa0, 0x02, 0x0a, 0x0b, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0f, 0x63, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x1d, + 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x1b, 0x63, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x2e, 0x0a, 0x07, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x28, 0x0a, 0x16, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x22, 0x41, 0x0a, 0x1b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0x76, 0x0a, 0x1c, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x61, 0x6c, 0x65, 0x72, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x06, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x12, 0x1f, + 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, + 0x2f, 0x0a, 0x1d, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_admin_proto_rawDescOnce sync.Once + file_admin_proto_rawDescData = file_admin_proto_rawDesc +) + +func file_admin_proto_rawDescGZIP() []byte { + file_admin_proto_rawDescOnce.Do(func() { + file_admin_proto_rawDescData = protoimpl.X.CompressGZIP(file_admin_proto_rawDescData) + }) + return file_admin_proto_rawDescData +} + +var file_admin_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 43) +var file_admin_proto_goTypes = []interface{}{ + (AdminGetBillsRequest_BillStatus)(0), // 0: api.admin.AdminGetBillsRequest.BillStatus + (*AdminGetUserRequest)(nil), // 1: api.admin.AdminGetUserRequest + (*AdminGetUserResponse)(nil), // 2: api.admin.AdminGetUserResponse + (*AdminUpdateUserRequest)(nil), // 3: api.admin.AdminUpdateUserRequest + (*AdminLockUserRequest)(nil), // 4: api.admin.AdminLockUserRequest + (*AdminUnlockUserRequest)(nil), // 5: api.admin.AdminUnlockUserRequest + (*AdminLog)(nil), // 6: api.admin.AdminLog + (*AdminGetAdminLogsRequest)(nil), // 7: api.admin.AdminGetAdminLogsRequest + (*AdminGetAdminLogsResponse)(nil), // 8: api.admin.AdminGetAdminLogsResponse + (*AdminGetUserBillsRequest)(nil), // 9: api.admin.AdminGetUserBillsRequest + (*AdminGetUserBillsResponse)(nil), // 10: api.admin.AdminGetUserBillsResponse + (*AdminGetSplaReportingRequest)(nil), // 11: api.admin.AdminGetSplaReportingRequest + (*SplaReporting)(nil), // 12: api.admin.SplaReporting + (*AdminGetSplaReportingResponse)(nil), // 13: api.admin.AdminGetSplaReportingResponse + (*AdminGetIPHistoryRequest)(nil), // 14: api.admin.AdminGetIPHistoryRequest + (*IPHistory)(nil), // 15: api.admin.IPHistory + (*AdminGetIPHistoryResponse)(nil), // 16: api.admin.AdminGetIPHistoryResponse + (*AdminGetBillsRequest)(nil), // 17: api.admin.AdminGetBillsRequest + (*AdminAddBillPaymentRequest)(nil), // 18: api.admin.AdminAddBillPaymentRequest + (*AdminRefundBillPaymentRequest)(nil), // 19: api.admin.AdminRefundBillPaymentRequest + (*AdminGetBillsResponse)(nil), // 20: api.admin.AdminGetBillsResponse + (*AdminResendBillRequest)(nil), // 21: api.admin.AdminResendBillRequest + (*AdminGetBillRequest)(nil), // 22: api.admin.AdminGetBillRequest + (*AdminGetBillResponse)(nil), // 23: api.admin.AdminGetBillResponse + (*AdminGetBillPdfRequest)(nil), // 24: api.admin.AdminGetBillPdfRequest + (*AdminGetBillPdfResponse)(nil), // 25: api.admin.AdminGetBillPdfResponse + (*AdminGetProjectRequest)(nil), // 26: api.admin.AdminGetProjectRequest + (*AdminGetProjectNetworksRequest)(nil), // 27: api.admin.AdminGetProjectNetworksRequest + (*AdminGetProjectNetworksResponse)(nil), // 28: api.admin.AdminGetProjectNetworksResponse + (*AdminCreateProjectNetworkRequest)(nil), // 29: api.admin.AdminCreateProjectNetworkRequest + (*AdminGetProjectResponse)(nil), // 30: api.admin.AdminGetProjectResponse + (*ProjectComputeDiscount)(nil), // 31: api.admin.ProjectComputeDiscount + (*AdminUpdateProjectRequest)(nil), // 32: api.admin.AdminUpdateProjectRequest + (*AdminApplyCreditToProjectRequest)(nil), // 33: api.admin.AdminApplyCreditToProjectRequest + (*AdminListServerRequest)(nil), // 34: api.admin.AdminListServerRequest + (*AdminListServerResponse)(nil), // 35: api.admin.AdminListServerResponse + (*AdminGetServerRequest)(nil), // 36: api.admin.AdminGetServerRequest + (*AdminUpdateServerRequest)(nil), // 37: api.admin.AdminUpdateServerRequest + (*AdminDeleteServerRequest)(nil), // 38: api.admin.AdminDeleteServerRequest + (*AdminServer)(nil), // 39: api.admin.AdminServer + (*AdminGetFlavourRequest)(nil), // 40: api.admin.AdminGetFlavourRequest + (*AdminGetServerAlertsRequest)(nil), // 41: api.admin.AdminGetServerAlertsRequest + (*AdminGetServerAlertsResponse)(nil), // 42: api.admin.AdminGetServerAlertsResponse + (*AdminDeleteServerAlertRequest)(nil), // 43: api.admin.AdminDeleteServerAlertRequest + (*User)(nil), // 44: api.user.User + (*Project)(nil), // 45: api.project.Project + (*CreditCard)(nil), // 46: api.payment.CreditCard + (*BillingAddress)(nil), // 47: api.payment.BillingAddress + (*UserLock)(nil), // 48: api.user.UserLock + (*UserRemark)(nil), // 49: api.user.UserRemark + (PaymentMethod)(0), // 50: api.payment.PaymentMethod + (*timestamppb.Timestamp)(nil), // 51: google.protobuf.Timestamp + (*Bill)(nil), // 52: api.billing.Bill + (*Server)(nil), // 53: api.server.Server + (*Price)(nil), // 54: api.Price + (*Payment)(nil), // 55: api.payment.Payment + (*Network)(nil), // 56: api.network.Network + (NetworkType)(0), // 57: api.network.NetworkType + (*ComputeResource)(nil), // 58: api.compute.ComputeResource + (*Flavour)(nil), // 59: api.flavour.Flavour + (*DataCenter)(nil), // 60: api.region.DataCenter + (ServerStatus)(0), // 61: api.server.ServerStatus + (*ComputeResourceProvisioning)(nil), // 62: api.compute.ComputeResourceProvisioning + (*ServerAlert)(nil), // 63: api.server_alert.ServerAlert +} +var file_admin_proto_depIdxs = []int32{ + 44, // 0: api.admin.AdminGetUserResponse.user:type_name -> api.user.User + 45, // 1: api.admin.AdminGetUserResponse.projects:type_name -> api.project.Project + 46, // 2: api.admin.AdminGetUserResponse.credit_cards:type_name -> api.payment.CreditCard + 47, // 3: api.admin.AdminGetUserResponse.billing_addresses:type_name -> api.payment.BillingAddress + 48, // 4: api.admin.AdminGetUserResponse.locks:type_name -> api.user.UserLock + 49, // 5: api.admin.AdminGetUserResponse.remarks:type_name -> api.user.UserRemark + 50, // 6: api.admin.AdminUpdateUserRequest.payment_methods:type_name -> api.payment.PaymentMethod + 44, // 7: api.admin.AdminLog.admin_user:type_name -> api.user.User + 44, // 8: api.admin.AdminLog.target_user:type_name -> api.user.User + 51, // 9: api.admin.AdminLog.created_at:type_name -> google.protobuf.Timestamp + 51, // 10: api.admin.AdminLog.updated_at:type_name -> google.protobuf.Timestamp + 6, // 11: api.admin.AdminGetAdminLogsResponse.logs:type_name -> api.admin.AdminLog + 52, // 12: api.admin.AdminGetUserBillsResponse.bills:type_name -> api.billing.Bill + 53, // 13: api.admin.SplaReporting.server:type_name -> api.server.Server + 54, // 14: api.admin.SplaReporting.price:type_name -> api.Price + 12, // 15: api.admin.AdminGetSplaReportingResponse.reports:type_name -> api.admin.SplaReporting + 54, // 16: api.admin.AdminGetSplaReportingResponse.total_price:type_name -> api.Price + 44, // 17: api.admin.IPHistory.user:type_name -> api.user.User + 51, // 18: api.admin.IPHistory.created_at:type_name -> google.protobuf.Timestamp + 51, // 19: api.admin.IPHistory.updated_at:type_name -> google.protobuf.Timestamp + 51, // 20: api.admin.IPHistory.deleted_at:type_name -> google.protobuf.Timestamp + 15, // 21: api.admin.AdminGetIPHistoryResponse.ip_histories:type_name -> api.admin.IPHistory + 0, // 22: api.admin.AdminGetBillsRequest.filter:type_name -> api.admin.AdminGetBillsRequest.BillStatus + 52, // 23: api.admin.AdminGetBillsResponse.bills:type_name -> api.billing.Bill + 52, // 24: api.admin.AdminGetBillResponse.bill:type_name -> api.billing.Bill + 55, // 25: api.admin.AdminGetBillResponse.payments:type_name -> api.payment.Payment + 56, // 26: api.admin.AdminGetProjectNetworksResponse.networks:type_name -> api.network.Network + 57, // 27: api.admin.AdminCreateProjectNetworkRequest.type:type_name -> api.network.NetworkType + 45, // 28: api.admin.AdminGetProjectResponse.project:type_name -> api.project.Project + 58, // 29: api.admin.AdminGetProjectResponse.compute_resources:type_name -> api.compute.ComputeResource + 31, // 30: api.admin.AdminGetProjectResponse.compute_discounts:type_name -> api.admin.ProjectComputeDiscount + 59, // 31: api.admin.ProjectComputeDiscount.flavour:type_name -> api.flavour.Flavour + 60, // 32: api.admin.ProjectComputeDiscount.datacenter:type_name -> api.region.DataCenter + 54, // 33: api.admin.ProjectComputeDiscount.price:type_name -> api.Price + 31, // 34: api.admin.AdminUpdateProjectRequest.compute_discounts:type_name -> api.admin.ProjectComputeDiscount + 39, // 35: api.admin.AdminListServerResponse.server:type_name -> api.admin.AdminServer + 61, // 36: api.admin.AdminUpdateServerRequest.status:type_name -> api.server.ServerStatus + 53, // 37: api.admin.AdminServer.server:type_name -> api.server.Server + 58, // 38: api.admin.AdminServer.compute_resource:type_name -> api.compute.ComputeResource + 62, // 39: api.admin.AdminServer.compute_resource_provisioning:type_name -> api.compute.ComputeResourceProvisioning + 45, // 40: api.admin.AdminServer.project:type_name -> api.project.Project + 63, // 41: api.admin.AdminGetServerAlertsResponse.alerts:type_name -> api.server_alert.ServerAlert + 42, // [42:42] is the sub-list for method output_type + 42, // [42:42] is the sub-list for method input_type + 42, // [42:42] is the sub-list for extension type_name + 42, // [42:42] is the sub-list for extension extendee + 0, // [0:42] is the sub-list for field type_name +} + +func init() { file_admin_proto_init() } +func file_admin_proto_init() { + if File_admin_proto != nil { + return + } + file_project_proto_init() + file_user_proto_init() + file_server_proto_init() + file_payment_proto_init() + file_generic_proto_init() + file_billing_proto_init() + file_server_alert_proto_init() + file_compute_proto_init() + file_region_proto_init() + file_network_proto_init() + file_flavour_proto_init() + if !protoimpl.UnsafeEnabled { + file_admin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminLockUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUnlockUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminLog); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetAdminLogsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetAdminLogsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetUserBillsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetUserBillsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetSplaReportingRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SplaReporting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetSplaReportingResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetIPHistoryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPHistory); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetIPHistoryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetBillsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminAddBillPaymentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminRefundBillPaymentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetBillsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminResendBillRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetBillRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetBillResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetBillPdfRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetBillPdfResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetProjectNetworksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetProjectNetworksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateProjectNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetProjectResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectComputeDiscount); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminApplyCreditToProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListServerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListServerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetServerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateServerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteServerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminServer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetFlavourRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetServerAlertsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetServerAlertsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_admin_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteServerAlertRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_admin_proto_msgTypes[30].OneofWrappers = []interface{}{ + (*ProjectComputeDiscount_Percent)(nil), + (*ProjectComputeDiscount_Price)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_admin_proto_rawDesc, + NumEnums: 1, + NumMessages: 43, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_admin_proto_goTypes, + DependencyIndexes: file_admin_proto_depIdxs, + EnumInfos: file_admin_proto_enumTypes, + MessageInfos: file_admin_proto_msgTypes, + }.Build() + File_admin_proto = out.File + file_admin_proto_rawDesc = nil + file_admin_proto_goTypes = nil + file_admin_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/admin_service.pb.go b/pkg/gpcloud/ptypes/admin_service.pb.go new file mode 100644 index 0000000..53c6a99 --- /dev/null +++ b/pkg/gpcloud/ptypes/admin_service.pb.go @@ -0,0 +1,997 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: admin_service.proto + +package ptypes + +import ( + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +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) +) + +var File_admin_service_proto protoreflect.FileDescriptor + +var file_admin_service_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x0b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, + 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x32, 0xec, 0x4e, 0x0a, 0x08, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x50, 0x49, + 0x12, 0x72, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x12, 0x69, 0x0a, 0x0e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, + 0x87, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, + 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, + 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x8d, 0x01, 0x0a, 0x14, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x6c, 0x65, 0x72, + 0x74, 0x73, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x6c, 0x65, + 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, + 0x64, 0x7d, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x12, 0x7f, 0x0a, 0x16, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x6c, + 0x65, 0x72, 0x74, 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x2a, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x64, 0x7d, + 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x72, 0x0a, 0x11, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, + 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x20, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x6e, + 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1a, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x8b, + 0x01, 0x0a, 0x1c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x2f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x6f, + 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x7b, + 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x3a, 0x01, 0x2a, 0x12, 0x92, 0x01, 0x0a, + 0x16, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, + 0x4e, 0x43, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x56, 0x4e, 0x43, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, 0x4e, + 0x43, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x76, 0x6e, + 0x63, 0x12, 0xaa, 0x01, 0x0a, 0x20, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x33, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x31, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x79, + 0x0a, 0x14, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x19, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, + 0x64, 0x7d, 0x2f, 0x6a, 0x6f, 0x62, 0x3a, 0x01, 0x2a, 0x12, 0x7f, 0x0a, 0x18, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, + 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x2f, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x84, 0x01, 0x0a, 0x11, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x01, + 0x2a, 0x12, 0x65, 0x0a, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6d, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x62, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x31, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x61, 0x0a, 0x0d, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, + 0x65, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, + 0x6a, 0x0a, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6d, + 0x61, 0x67, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1a, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x6c, 0x0a, 0x10, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, + 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x2a, + 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x82, 0x01, 0x0a, 0x17, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6d, 0x61, + 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x2a, 0x1d, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x81, + 0x01, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x11, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x73, 0x12, 0x8b, 0x01, 0x0a, 0x1a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x12, 0x2c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x2a, 0x20, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, + 0x12, 0x8e, 0x01, 0x0a, 0x1a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, + 0x2c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x3a, 0x01, + 0x2a, 0x12, 0x8a, 0x01, 0x0a, 0x17, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x29, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, + 0x65, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, + 0x67, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x93, + 0x01, 0x0a, 0x1a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x2c, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, + 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x1a, + 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x2f, 0x7b, 0x69, 0x64, + 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x6a, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, + 0x74, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x4c, 0x69, 0x73, 0x74, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, + 0x12, 0x70, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x46, 0x6c, 0x61, 0x76, + 0x6f, 0x75, 0x72, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, + 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, + 0x72, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, 0x2f, 0x7b, 0x69, + 0x64, 0x7d, 0x12, 0x74, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, + 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x2a, 0x17, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, + 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x76, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x12, 0x26, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, + 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, + 0x72, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, 0x3a, 0x01, 0x2a, + 0x12, 0x7b, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, + 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, + 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1c, 0x1a, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x66, 0x6c, 0x61, + 0x76, 0x6f, 0x75, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x6a, 0x0a, + 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x6a, 0x0a, 0x0e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x22, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, + 0x65, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x77, + 0x69, 0x74, 0x63, 0x68, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, + 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x72, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x2a, 0x17, 0x2f, + 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, + 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x6e, 0x0a, 0x11, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x25, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x17, 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x77, + 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x73, 0x0a, 0x11, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x25, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x77, + 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x62, + 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, + 0x12, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x12, 0x65, 0x0a, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x1b, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x6c, 0x0a, 0x10, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x2a, 0x15, 0x2f, + 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x7e, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x12, 0x25, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, + 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x75, 0x63, 0x68, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, + 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x12, 0x87, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x12, + 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x3a, 0x01, + 0x2a, 0x12, 0x7c, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x6f, + 0x75, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x2a, 0x1f, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2f, + 0x7b, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, + 0x6c, 0x0a, 0x0e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x73, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x72, 0x0a, + 0x0c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x7d, 0x12, 0x62, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x1a, + 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x97, 0x01, 0x0a, 0x14, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x49, + 0x6d, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x25, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x49, + 0x6d, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x6d, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x22, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, + 0x2f, 0x69, 0x6d, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, + 0x87, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x42, 0x69, + 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x7d, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x12, 0x6f, 0x0a, 0x0d, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x4c, 0x6f, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x63, 0x6b, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x12, 0x75, 0x0a, 0x0f, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x12, 0x21, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, + 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x3a, 0x01, + 0x2a, 0x12, 0x78, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x17, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x89, 0x01, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, + 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x3a, + 0x01, 0x2a, 0x12, 0x81, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x1a, 0x16, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, + 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x76, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, + 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x23, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, + 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x80, + 0x01, 0x0a, 0x15, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x3a, 0x01, + 0x2a, 0x12, 0x7b, 0x0a, 0x15, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x2a, 0x1b, + 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, + 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x9b, + 0x01, 0x0a, 0x15, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x70, 0x6c, 0x61, 0x52, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x70, 0x6c, + 0x61, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x70, 0x6c, 0x61, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, + 0x70, 0x6c, 0x61, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x7b, 0x79, + 0x65, 0x61, 0x72, 0x7d, 0x2f, 0x7b, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x7d, 0x12, 0x7c, 0x0a, 0x11, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x49, 0x50, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, + 0x79, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x49, 0x50, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x49, 0x50, 0x48, 0x69, 0x73, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, + 0x69, 0x70, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x6b, 0x0a, 0x0d, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x12, 0x1f, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, + 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, + 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x12, 0x70, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x52, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x42, 0x69, 0x6c, 0x6c, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x65, + 0x6e, 0x64, 0x42, 0x69, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, + 0x72, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x3a, 0x01, 0x2a, 0x12, 0x6d, 0x0a, 0x0c, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, + 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x62, 0x69, + 0x6c, 0x6c, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x7a, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x47, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x64, 0x66, 0x12, 0x21, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, + 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x64, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x47, 0x65, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x64, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x76, 0x31, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, + 0x2f, 0x70, 0x64, 0x66, 0x12, 0x76, 0x0a, 0x13, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x64, 0x64, + 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x64, 0x64, + 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x1c, + 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x2f, + 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x83, 0x01, 0x0a, + 0x16, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x42, 0x69, 0x6c, 0x6c, + 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x42, + 0x69, 0x6c, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x1a, 0x23, 0x2f, + 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x2f, 0x70, + 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x65, 0x66, 0x75, + 0x6e, 0x64, 0x12, 0x86, 0x01, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x70, 0x70, 0x6c, + 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x6f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x6f, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x69, 0x64, + 0x7d, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x66, 0x0a, 0x10, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, + 0x12, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x67, 0x0a, 0x0e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x1e, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x6b, 0x0a, 0x11, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x1c, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x70, 0x0a, 0x11, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x24, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, + 0x1a, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x92, 0x01, 0x0a, 0x1a, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x54, 0x6f, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x64, 0x64, + 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, + 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x3a, 0x01, 0x2a, + 0x12, 0x80, 0x01, 0x0a, 0x15, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x25, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1f, 0x1a, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, + 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, + 0x3a, 0x01, 0x2a, 0x12, 0x7c, 0x0a, 0x15, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1f, 0x2a, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x64, 0x61, + 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, + 0x2a, 0x12, 0x70, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x2a, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, + 0x3a, 0x01, 0x2a, 0x12, 0x6a, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, + 0x71, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x3a, + 0x01, 0x2a, 0x12, 0x74, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x2a, 0x17, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, + 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x6d, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x23, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, + 0x65, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, + 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x76, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x26, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0x22, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x1c, 0x1a, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, + 0x70, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, + 0x62, 0x6e, 0x65, 0x74, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, + 0x62, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2f, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, + 0x2a, 0x12, 0x82, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x75, 0x62, + 0x6e, 0x65, 0x74, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x22, 0x26, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2f, + 0x7b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x62, + 0x6e, 0x65, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x71, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x12, 0x25, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x1a, + 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x75, 0x62, 0x6e, 0x65, + 0x74, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x82, 0x01, 0x0a, 0x0e, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x22, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, + 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, + 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x75, + 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6c, 0x61, + 0x6e, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x56, 0x4c, 0x41, 0x4e, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x24, 0x22, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x6c, 0x61, + 0x6e, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x6b, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x2a, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, + 0x01, 0x2a, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var file_admin_service_proto_goTypes = []interface{}{ + (*AdminListServerRequest)(nil), // 0: api.admin.AdminListServerRequest + (*AdminGetServerRequest)(nil), // 1: api.admin.AdminGetServerRequest + (*AdminGetServerLogsRequest)(nil), // 2: api.server.AdminGetServerLogsRequest + (*AdminGetServerAlertsRequest)(nil), // 3: api.admin.AdminGetServerAlertsRequest + (*AdminDeleteServerAlertRequest)(nil), // 4: api.admin.AdminDeleteServerAlertRequest + (*AdminUpdateServerRequest)(nil), // 5: api.admin.AdminUpdateServerRequest + (*AdminDeleteServerRequest)(nil), // 6: api.admin.AdminDeleteServerRequest + (*AdminChangeServerPowerStatusRequest)(nil), // 7: api.server.AdminChangeServerPowerStatusRequest + (*AdminGetServerVNCTokenRequest)(nil), // 8: api.server.AdminGetServerVNCTokenRequest + (*AdminGetServerPlatformManagementRequest)(nil), // 9: api.server.AdminGetServerPlatformManagementRequest + (*AdminCreateServerJobRequest)(nil), // 10: api.server.AdminCreateServerJobRequest + (*EmptyRequest)(nil), // 11: api.EmptyRequest + (*AdminImportServerRequest)(nil), // 12: api.server.AdminImportServerRequest + (*AdminCreateImageRequest)(nil), // 13: api.image.AdminCreateImageRequest + (*AdminGetImageRequest)(nil), // 14: api.image.AdminGetImageRequest + (*AdminUpdateImageRequest)(nil), // 15: api.image.AdminUpdateImageRequest + (*AdminDeleteImageRequest)(nil), // 16: api.image.AdminDeleteImageRequest + (*AdminDeleteImageVersionRequest)(nil), // 17: api.image.AdminDeleteImageVersionRequest + (*AdminDeleteOperatingSystemRequest)(nil), // 18: api.image.AdminDeleteOperatingSystemRequest + (*AdminCreateOperatingSystemRequest)(nil), // 19: api.image.AdminCreateOperatingSystemRequest + (*AdminGetOperatingSystemRequest)(nil), // 20: api.image.AdminGetOperatingSystemRequest + (*AdminUpdateOperatingSystemRequest)(nil), // 21: api.image.AdminUpdateOperatingSystemRequest + (*AdminGetFlavourRequest)(nil), // 22: api.admin.AdminGetFlavourRequest + (*AdminDeleteFlavourRequest)(nil), // 23: api.flavour.AdminDeleteFlavourRequest + (*AdminCreateFlavourRequest)(nil), // 24: api.flavour.AdminCreateFlavourRequest + (*AdminUpdateFlavourRequest)(nil), // 25: api.flavour.AdminUpdateFlavourRequest + (*AdminGetSwitchRequest)(nil), // 26: api.network.AdminGetSwitchRequest + (*AdminDeleteSwitchRequest)(nil), // 27: api.network.AdminDeleteSwitchRequest + (*AdminCreateSwitchRequest)(nil), // 28: api.network.AdminCreateSwitchRequest + (*AdminUpdateSwitchRequest)(nil), // 29: api.network.AdminUpdateSwitchRequest + (*AdminCreateAgentRequest)(nil), // 30: api.agent.AdminCreateAgentRequest + (*AdminDeleteAgentRequest)(nil), // 31: api.agent.AdminDeleteAgentRequest + (*AdminListVouchersRequest)(nil), // 32: api.voucher.AdminListVouchersRequest + (*AdminCreateVouchersRequest)(nil), // 33: api.voucher.AdminCreateVouchersRequest + (*AdminDeleteVoucherRequest)(nil), // 34: api.voucher.AdminDeleteVoucherRequest + (*AdminListUsersRequest)(nil), // 35: api.user.AdminListUsersRequest + (*AdminGetUserRequest)(nil), // 36: api.admin.AdminGetUserRequest + (*AdminUpdateUserRequest)(nil), // 37: api.admin.AdminUpdateUserRequest + (*AdminImpersonateUserRequest)(nil), // 38: api.user.AdminImpersonateUserRequest + (*AdminGetUserBillsRequest)(nil), // 39: api.admin.AdminGetUserBillsRequest + (*AdminLockUserRequest)(nil), // 40: api.admin.AdminLockUserRequest + (*AdminUnlockUserRequest)(nil), // 41: api.admin.AdminUnlockUserRequest + (*AdminGetProjectRequest)(nil), // 42: api.admin.AdminGetProjectRequest + (*AdminGetProjectNetworksRequest)(nil), // 43: api.admin.AdminGetProjectNetworksRequest + (*AdminCreateProjectNetworkRequest)(nil), // 44: api.admin.AdminCreateProjectNetworkRequest + (*AdminUpdateProjectRequest)(nil), // 45: api.admin.AdminUpdateProjectRequest + (*AdminGetAdminLogsRequest)(nil), // 46: api.admin.AdminGetAdminLogsRequest + (*AdminCreateUserRemarkRequest)(nil), // 47: api.user.AdminCreateUserRemarkRequest + (*AdminDeleteUserRemarkRequest)(nil), // 48: api.user.AdminDeleteUserRemarkRequest + (*AdminGetSplaReportingRequest)(nil), // 49: api.admin.AdminGetSplaReportingRequest + (*AdminGetIPHistoryRequest)(nil), // 50: api.admin.AdminGetIPHistoryRequest + (*AdminGetBillsRequest)(nil), // 51: api.admin.AdminGetBillsRequest + (*AdminResendBillRequest)(nil), // 52: api.admin.AdminResendBillRequest + (*AdminGetBillRequest)(nil), // 53: api.admin.AdminGetBillRequest + (*AdminGetBillPdfRequest)(nil), // 54: api.admin.AdminGetBillPdfRequest + (*AdminAddBillPaymentRequest)(nil), // 55: api.admin.AdminAddBillPaymentRequest + (*AdminRefundBillPaymentRequest)(nil), // 56: api.admin.AdminRefundBillPaymentRequest + (*AdminApplyCreditToProjectRequest)(nil), // 57: api.admin.AdminApplyCreditToProjectRequest + (*AdminGetRegionRequest)(nil), // 58: api.region.AdminGetRegionRequest + (*AdminCreateRegionRequest)(nil), // 59: api.region.AdminCreateRegionRequest + (*AdminUpdateRegionRequest)(nil), // 60: api.region.AdminUpdateRegionRequest + (*AdminAddDatacenterToRegionRequest)(nil), // 61: api.region.AdminAddDatacenterToRegionRequest + (*AdminUpdateDatacenterRequest)(nil), // 62: api.region.AdminUpdateDatacenterRequest + (*AdminDeleteDatacenterRequest)(nil), // 63: api.region.AdminDeleteDatacenterRequest + (*AdminDeleteRegionRequest)(nil), // 64: api.region.AdminDeleteRegionRequest + (*AdminCreateNetworkRequest)(nil), // 65: api.network.AdminCreateNetworkRequest + (*AdminDeleteNetworkRequest)(nil), // 66: api.network.AdminDeleteNetworkRequest + (*AdminGetNetworkRequest)(nil), // 67: api.network.AdminGetNetworkRequest + (*AdminUpdateNetworkRequest)(nil), // 68: api.network.AdminUpdateNetworkRequest + (*AdminDeleteSubnetRequest)(nil), // 69: api.network.AdminDeleteSubnetRequest + (*AdminCreateSubnetRequest)(nil), // 70: api.network.AdminCreateSubnetRequest + (*AdminUpdateSubnetRequest)(nil), // 71: api.network.AdminUpdateSubnetRequest + (*AdminListVlansRequest)(nil), // 72: api.network.AdminListVlansRequest + (*AdminCreateVlanRequest)(nil), // 73: api.network.AdminCreateVlanRequest + (*AdminDeleteVlanRequest)(nil), // 74: api.network.AdminDeleteVlanRequest + (*AdminListServerResponse)(nil), // 75: api.admin.AdminListServerResponse + (*AdminServer)(nil), // 76: api.admin.AdminServer + (*AdminGetServerLogsResponse)(nil), // 77: api.server.AdminGetServerLogsResponse + (*AdminGetServerAlertsResponse)(nil), // 78: api.admin.AdminGetServerAlertsResponse + (*EmptyResponse)(nil), // 79: api.EmptyResponse + (*AdminGetServerVNCTokenResponse)(nil), // 80: api.server.AdminGetServerVNCTokenResponse + (*PlatformManagement)(nil), // 81: api.server.PlatformManagement + (*AdminListAvailableServerResponse)(nil), // 82: api.server.AdminListAvailableServerResponse + (*AdminImportServerResponse)(nil), // 83: api.server.AdminImportServerResponse + (*Image)(nil), // 84: api.image.Image + (*AdminListImagesResponse)(nil), // 85: api.image.AdminListImagesResponse + (*AdminListOperatingSystemsResponse)(nil), // 86: api.image.AdminListOperatingSystemsResponse + (*OperatingSystem)(nil), // 87: api.image.OperatingSystem + (*AdminListFlavoursResponse)(nil), // 88: api.flavour.AdminListFlavoursResponse + (*AdminFlavour)(nil), // 89: api.flavour.AdminFlavour + (*AdminListSwitchesResponse)(nil), // 90: api.network.AdminListSwitchesResponse + (*Switch)(nil), // 91: api.network.Switch + (*AdminListAgentsResponse)(nil), // 92: api.agent.AdminListAgentsResponse + (*Agent)(nil), // 93: api.agent.Agent + (*AdminListVouchersResponse)(nil), // 94: api.voucher.AdminListVouchersResponse + (*AdminCreateVouchersResponse)(nil), // 95: api.voucher.AdminCreateVouchersResponse + (*AdminListUsersResponse)(nil), // 96: api.user.AdminListUsersResponse + (*AdminGetUserResponse)(nil), // 97: api.admin.AdminGetUserResponse + (*User)(nil), // 98: api.user.User + (*AdminImpersonateUserResponse)(nil), // 99: api.user.AdminImpersonateUserResponse + (*AdminGetUserBillsResponse)(nil), // 100: api.admin.AdminGetUserBillsResponse + (*AdminGetProjectResponse)(nil), // 101: api.admin.AdminGetProjectResponse + (*AdminGetProjectNetworksResponse)(nil), // 102: api.admin.AdminGetProjectNetworksResponse + (*Network)(nil), // 103: api.network.Network + (*AdminGetAdminLogsResponse)(nil), // 104: api.admin.AdminGetAdminLogsResponse + (*AdminGetSplaReportingResponse)(nil), // 105: api.admin.AdminGetSplaReportingResponse + (*AdminGetIPHistoryResponse)(nil), // 106: api.admin.AdminGetIPHistoryResponse + (*AdminGetBillsResponse)(nil), // 107: api.admin.AdminGetBillsResponse + (*AdminGetBillResponse)(nil), // 108: api.admin.AdminGetBillResponse + (*AdminGetBillPdfResponse)(nil), // 109: api.admin.AdminGetBillPdfResponse + (*AdminListRegionsResponse)(nil), // 110: api.region.AdminListRegionsResponse + (*Region)(nil), // 111: api.region.Region + (*DataCenter)(nil), // 112: api.region.DataCenter + (*AdminListNetworksResponse)(nil), // 113: api.network.AdminListNetworksResponse + (*Subnet)(nil), // 114: api.network.Subnet + (*AdminListVlansResponse)(nil), // 115: api.network.AdminListVlansResponse + (*VLAN)(nil), // 116: api.network.VLAN +} +var file_admin_service_proto_depIdxs = []int32{ + 0, // 0: api.AdminAPI.AdminListServer:input_type -> api.admin.AdminListServerRequest + 1, // 1: api.AdminAPI.AdminGetServer:input_type -> api.admin.AdminGetServerRequest + 2, // 2: api.AdminAPI.AdminGetServerLogs:input_type -> api.server.AdminGetServerLogsRequest + 3, // 3: api.AdminAPI.AdminGetServerAlerts:input_type -> api.admin.AdminGetServerAlertsRequest + 4, // 4: api.AdminAPI.AdminDeleteServerAlert:input_type -> api.admin.AdminDeleteServerAlertRequest + 5, // 5: api.AdminAPI.AdminUpdateServer:input_type -> api.admin.AdminUpdateServerRequest + 6, // 6: api.AdminAPI.AdminDeleteServer:input_type -> api.admin.AdminDeleteServerRequest + 7, // 7: api.AdminAPI.AdminChangeServerPowerStatus:input_type -> api.server.AdminChangeServerPowerStatusRequest + 8, // 8: api.AdminAPI.AdminGetServerVNCToken:input_type -> api.server.AdminGetServerVNCTokenRequest + 9, // 9: api.AdminAPI.AdminGetServerPlatformManagement:input_type -> api.server.AdminGetServerPlatformManagementRequest + 10, // 10: api.AdminAPI.AdminCreateServerJob:input_type -> api.server.AdminCreateServerJobRequest + 11, // 11: api.AdminAPI.AdminListAvailableServer:input_type -> api.EmptyRequest + 12, // 12: api.AdminAPI.AdminImportServer:input_type -> api.server.AdminImportServerRequest + 13, // 13: api.AdminAPI.AdminCreateImage:input_type -> api.image.AdminCreateImageRequest + 11, // 14: api.AdminAPI.AdminListImages:input_type -> api.EmptyRequest + 14, // 15: api.AdminAPI.AdminGetImage:input_type -> api.image.AdminGetImageRequest + 15, // 16: api.AdminAPI.AdminUpdateImage:input_type -> api.image.AdminUpdateImageRequest + 16, // 17: api.AdminAPI.AdminDeleteImage:input_type -> api.image.AdminDeleteImageRequest + 17, // 18: api.AdminAPI.AdminDeleteImageVersion:input_type -> api.image.AdminDeleteImageVersionRequest + 11, // 19: api.AdminAPI.AdminListOperatingSystems:input_type -> api.EmptyRequest + 18, // 20: api.AdminAPI.AdminDeleteOperatingSystem:input_type -> api.image.AdminDeleteOperatingSystemRequest + 19, // 21: api.AdminAPI.AdminCreateOperatingSystem:input_type -> api.image.AdminCreateOperatingSystemRequest + 20, // 22: api.AdminAPI.AdminGetOperatingSystem:input_type -> api.image.AdminGetOperatingSystemRequest + 21, // 23: api.AdminAPI.AdminUpdateOperatingSystem:input_type -> api.image.AdminUpdateOperatingSystemRequest + 11, // 24: api.AdminAPI.AdminListFlavours:input_type -> api.EmptyRequest + 22, // 25: api.AdminAPI.AdminGetFlavour:input_type -> api.admin.AdminGetFlavourRequest + 23, // 26: api.AdminAPI.AdminDeleteFlavour:input_type -> api.flavour.AdminDeleteFlavourRequest + 24, // 27: api.AdminAPI.AdminCreateFlavour:input_type -> api.flavour.AdminCreateFlavourRequest + 25, // 28: api.AdminAPI.AdminUpdateFlavour:input_type -> api.flavour.AdminUpdateFlavourRequest + 11, // 29: api.AdminAPI.AdminListSwitches:input_type -> api.EmptyRequest + 26, // 30: api.AdminAPI.AdminGetSwitch:input_type -> api.network.AdminGetSwitchRequest + 27, // 31: api.AdminAPI.AdminDeleteSwitch:input_type -> api.network.AdminDeleteSwitchRequest + 28, // 32: api.AdminAPI.AdminCreateSwitch:input_type -> api.network.AdminCreateSwitchRequest + 29, // 33: api.AdminAPI.AdminUpdateSwitch:input_type -> api.network.AdminUpdateSwitchRequest + 11, // 34: api.AdminAPI.AdminListAgents:input_type -> api.EmptyRequest + 30, // 35: api.AdminAPI.AdminCreateAgent:input_type -> api.agent.AdminCreateAgentRequest + 31, // 36: api.AdminAPI.AdminDeleteAgent:input_type -> api.agent.AdminDeleteAgentRequest + 32, // 37: api.AdminAPI.AdminListVouchers:input_type -> api.voucher.AdminListVouchersRequest + 33, // 38: api.AdminAPI.AdminCreateVouchers:input_type -> api.voucher.AdminCreateVouchersRequest + 34, // 39: api.AdminAPI.AdminDeleteVoucher:input_type -> api.voucher.AdminDeleteVoucherRequest + 35, // 40: api.AdminAPI.AdminListUsers:input_type -> api.user.AdminListUsersRequest + 36, // 41: api.AdminAPI.AdminGetUser:input_type -> api.admin.AdminGetUserRequest + 37, // 42: api.AdminAPI.AdminUpdateUser:input_type -> api.admin.AdminUpdateUserRequest + 38, // 43: api.AdminAPI.AdminImpersonateUser:input_type -> api.user.AdminImpersonateUserRequest + 39, // 44: api.AdminAPI.AdminGetUserBills:input_type -> api.admin.AdminGetUserBillsRequest + 40, // 45: api.AdminAPI.AdminLockUser:input_type -> api.admin.AdminLockUserRequest + 41, // 46: api.AdminAPI.AdminUnlockUser:input_type -> api.admin.AdminUnlockUserRequest + 42, // 47: api.AdminAPI.AdminGetProject:input_type -> api.admin.AdminGetProjectRequest + 43, // 48: api.AdminAPI.AdminGetProjectNetworks:input_type -> api.admin.AdminGetProjectNetworksRequest + 44, // 49: api.AdminAPI.AdminCreateProjectNetwork:input_type -> api.admin.AdminCreateProjectNetworkRequest + 45, // 50: api.AdminAPI.AdminUpdateProject:input_type -> api.admin.AdminUpdateProjectRequest + 46, // 51: api.AdminAPI.AdminGetAdminLogs:input_type -> api.admin.AdminGetAdminLogsRequest + 47, // 52: api.AdminAPI.AdminCreateUserRemark:input_type -> api.user.AdminCreateUserRemarkRequest + 48, // 53: api.AdminAPI.AdminDeleteUserRemark:input_type -> api.user.AdminDeleteUserRemarkRequest + 49, // 54: api.AdminAPI.AdminGetSplaReporting:input_type -> api.admin.AdminGetSplaReportingRequest + 50, // 55: api.AdminAPI.AdminGetIPHistory:input_type -> api.admin.AdminGetIPHistoryRequest + 51, // 56: api.AdminAPI.AdminGetBills:input_type -> api.admin.AdminGetBillsRequest + 52, // 57: api.AdminAPI.AdminResendBill:input_type -> api.admin.AdminResendBillRequest + 53, // 58: api.AdminAPI.AdminGetBill:input_type -> api.admin.AdminGetBillRequest + 54, // 59: api.AdminAPI.AdminGetBillPdf:input_type -> api.admin.AdminGetBillPdfRequest + 55, // 60: api.AdminAPI.AdminAddBillPayment:input_type -> api.admin.AdminAddBillPaymentRequest + 56, // 61: api.AdminAPI.AdminRefundBillPayment:input_type -> api.admin.AdminRefundBillPaymentRequest + 57, // 62: api.AdminAPI.AdminApplyCreditToProject:input_type -> api.admin.AdminApplyCreditToProjectRequest + 11, // 63: api.AdminAPI.AdminListRegions:input_type -> api.EmptyRequest + 58, // 64: api.AdminAPI.AdminGetRegion:input_type -> api.region.AdminGetRegionRequest + 59, // 65: api.AdminAPI.AdminCreateRegion:input_type -> api.region.AdminCreateRegionRequest + 60, // 66: api.AdminAPI.AdminUpdateRegion:input_type -> api.region.AdminUpdateRegionRequest + 61, // 67: api.AdminAPI.AdminAddDatacenterToRegion:input_type -> api.region.AdminAddDatacenterToRegionRequest + 62, // 68: api.AdminAPI.AdminUpdateDatacenter:input_type -> api.region.AdminUpdateDatacenterRequest + 63, // 69: api.AdminAPI.AdminDeleteDatacenter:input_type -> api.region.AdminDeleteDatacenterRequest + 64, // 70: api.AdminAPI.AdminDeleteRegion:input_type -> api.region.AdminDeleteRegionRequest + 11, // 71: api.AdminAPI.AdminListNetworks:input_type -> api.EmptyRequest + 65, // 72: api.AdminAPI.AdminCreateNetwork:input_type -> api.network.AdminCreateNetworkRequest + 66, // 73: api.AdminAPI.AdminDeleteNetwork:input_type -> api.network.AdminDeleteNetworkRequest + 67, // 74: api.AdminAPI.AdminGetNetwork:input_type -> api.network.AdminGetNetworkRequest + 68, // 75: api.AdminAPI.AdminUpdateNetwork:input_type -> api.network.AdminUpdateNetworkRequest + 69, // 76: api.AdminAPI.AdminDeleteSubnet:input_type -> api.network.AdminDeleteSubnetRequest + 70, // 77: api.AdminAPI.AdminCreateSubnet:input_type -> api.network.AdminCreateSubnetRequest + 71, // 78: api.AdminAPI.AdminUpdateSubnet:input_type -> api.network.AdminUpdateSubnetRequest + 72, // 79: api.AdminAPI.AdminListVlans:input_type -> api.network.AdminListVlansRequest + 73, // 80: api.AdminAPI.AdminCreateVlan:input_type -> api.network.AdminCreateVlanRequest + 74, // 81: api.AdminAPI.AdminDeleteVlan:input_type -> api.network.AdminDeleteVlanRequest + 75, // 82: api.AdminAPI.AdminListServer:output_type -> api.admin.AdminListServerResponse + 76, // 83: api.AdminAPI.AdminGetServer:output_type -> api.admin.AdminServer + 77, // 84: api.AdminAPI.AdminGetServerLogs:output_type -> api.server.AdminGetServerLogsResponse + 78, // 85: api.AdminAPI.AdminGetServerAlerts:output_type -> api.admin.AdminGetServerAlertsResponse + 79, // 86: api.AdminAPI.AdminDeleteServerAlert:output_type -> api.EmptyResponse + 76, // 87: api.AdminAPI.AdminUpdateServer:output_type -> api.admin.AdminServer + 79, // 88: api.AdminAPI.AdminDeleteServer:output_type -> api.EmptyResponse + 79, // 89: api.AdminAPI.AdminChangeServerPowerStatus:output_type -> api.EmptyResponse + 80, // 90: api.AdminAPI.AdminGetServerVNCToken:output_type -> api.server.AdminGetServerVNCTokenResponse + 81, // 91: api.AdminAPI.AdminGetServerPlatformManagement:output_type -> api.server.PlatformManagement + 79, // 92: api.AdminAPI.AdminCreateServerJob:output_type -> api.EmptyResponse + 82, // 93: api.AdminAPI.AdminListAvailableServer:output_type -> api.server.AdminListAvailableServerResponse + 83, // 94: api.AdminAPI.AdminImportServer:output_type -> api.server.AdminImportServerResponse + 84, // 95: api.AdminAPI.AdminCreateImage:output_type -> api.image.Image + 85, // 96: api.AdminAPI.AdminListImages:output_type -> api.image.AdminListImagesResponse + 84, // 97: api.AdminAPI.AdminGetImage:output_type -> api.image.Image + 84, // 98: api.AdminAPI.AdminUpdateImage:output_type -> api.image.Image + 79, // 99: api.AdminAPI.AdminDeleteImage:output_type -> api.EmptyResponse + 79, // 100: api.AdminAPI.AdminDeleteImageVersion:output_type -> api.EmptyResponse + 86, // 101: api.AdminAPI.AdminListOperatingSystems:output_type -> api.image.AdminListOperatingSystemsResponse + 79, // 102: api.AdminAPI.AdminDeleteOperatingSystem:output_type -> api.EmptyResponse + 87, // 103: api.AdminAPI.AdminCreateOperatingSystem:output_type -> api.image.OperatingSystem + 87, // 104: api.AdminAPI.AdminGetOperatingSystem:output_type -> api.image.OperatingSystem + 87, // 105: api.AdminAPI.AdminUpdateOperatingSystem:output_type -> api.image.OperatingSystem + 88, // 106: api.AdminAPI.AdminListFlavours:output_type -> api.flavour.AdminListFlavoursResponse + 89, // 107: api.AdminAPI.AdminGetFlavour:output_type -> api.flavour.AdminFlavour + 79, // 108: api.AdminAPI.AdminDeleteFlavour:output_type -> api.EmptyResponse + 89, // 109: api.AdminAPI.AdminCreateFlavour:output_type -> api.flavour.AdminFlavour + 89, // 110: api.AdminAPI.AdminUpdateFlavour:output_type -> api.flavour.AdminFlavour + 90, // 111: api.AdminAPI.AdminListSwitches:output_type -> api.network.AdminListSwitchesResponse + 91, // 112: api.AdminAPI.AdminGetSwitch:output_type -> api.network.Switch + 79, // 113: api.AdminAPI.AdminDeleteSwitch:output_type -> api.EmptyResponse + 91, // 114: api.AdminAPI.AdminCreateSwitch:output_type -> api.network.Switch + 91, // 115: api.AdminAPI.AdminUpdateSwitch:output_type -> api.network.Switch + 92, // 116: api.AdminAPI.AdminListAgents:output_type -> api.agent.AdminListAgentsResponse + 93, // 117: api.AdminAPI.AdminCreateAgent:output_type -> api.agent.Agent + 79, // 118: api.AdminAPI.AdminDeleteAgent:output_type -> api.EmptyResponse + 94, // 119: api.AdminAPI.AdminListVouchers:output_type -> api.voucher.AdminListVouchersResponse + 95, // 120: api.AdminAPI.AdminCreateVouchers:output_type -> api.voucher.AdminCreateVouchersResponse + 79, // 121: api.AdminAPI.AdminDeleteVoucher:output_type -> api.EmptyResponse + 96, // 122: api.AdminAPI.AdminListUsers:output_type -> api.user.AdminListUsersResponse + 97, // 123: api.AdminAPI.AdminGetUser:output_type -> api.admin.AdminGetUserResponse + 98, // 124: api.AdminAPI.AdminUpdateUser:output_type -> api.user.User + 99, // 125: api.AdminAPI.AdminImpersonateUser:output_type -> api.user.AdminImpersonateUserResponse + 100, // 126: api.AdminAPI.AdminGetUserBills:output_type -> api.admin.AdminGetUserBillsResponse + 79, // 127: api.AdminAPI.AdminLockUser:output_type -> api.EmptyResponse + 79, // 128: api.AdminAPI.AdminUnlockUser:output_type -> api.EmptyResponse + 101, // 129: api.AdminAPI.AdminGetProject:output_type -> api.admin.AdminGetProjectResponse + 102, // 130: api.AdminAPI.AdminGetProjectNetworks:output_type -> api.admin.AdminGetProjectNetworksResponse + 103, // 131: api.AdminAPI.AdminCreateProjectNetwork:output_type -> api.network.Network + 101, // 132: api.AdminAPI.AdminUpdateProject:output_type -> api.admin.AdminGetProjectResponse + 104, // 133: api.AdminAPI.AdminGetAdminLogs:output_type -> api.admin.AdminGetAdminLogsResponse + 79, // 134: api.AdminAPI.AdminCreateUserRemark:output_type -> api.EmptyResponse + 79, // 135: api.AdminAPI.AdminDeleteUserRemark:output_type -> api.EmptyResponse + 105, // 136: api.AdminAPI.AdminGetSplaReporting:output_type -> api.admin.AdminGetSplaReportingResponse + 106, // 137: api.AdminAPI.AdminGetIPHistory:output_type -> api.admin.AdminGetIPHistoryResponse + 107, // 138: api.AdminAPI.AdminGetBills:output_type -> api.admin.AdminGetBillsResponse + 79, // 139: api.AdminAPI.AdminResendBill:output_type -> api.EmptyResponse + 108, // 140: api.AdminAPI.AdminGetBill:output_type -> api.admin.AdminGetBillResponse + 109, // 141: api.AdminAPI.AdminGetBillPdf:output_type -> api.admin.AdminGetBillPdfResponse + 79, // 142: api.AdminAPI.AdminAddBillPayment:output_type -> api.EmptyResponse + 79, // 143: api.AdminAPI.AdminRefundBillPayment:output_type -> api.EmptyResponse + 79, // 144: api.AdminAPI.AdminApplyCreditToProject:output_type -> api.EmptyResponse + 110, // 145: api.AdminAPI.AdminListRegions:output_type -> api.region.AdminListRegionsResponse + 111, // 146: api.AdminAPI.AdminGetRegion:output_type -> api.region.Region + 111, // 147: api.AdminAPI.AdminCreateRegion:output_type -> api.region.Region + 111, // 148: api.AdminAPI.AdminUpdateRegion:output_type -> api.region.Region + 112, // 149: api.AdminAPI.AdminAddDatacenterToRegion:output_type -> api.region.DataCenter + 112, // 150: api.AdminAPI.AdminUpdateDatacenter:output_type -> api.region.DataCenter + 79, // 151: api.AdminAPI.AdminDeleteDatacenter:output_type -> api.EmptyResponse + 79, // 152: api.AdminAPI.AdminDeleteRegion:output_type -> api.EmptyResponse + 113, // 153: api.AdminAPI.AdminListNetworks:output_type -> api.network.AdminListNetworksResponse + 103, // 154: api.AdminAPI.AdminCreateNetwork:output_type -> api.network.Network + 79, // 155: api.AdminAPI.AdminDeleteNetwork:output_type -> api.EmptyResponse + 103, // 156: api.AdminAPI.AdminGetNetwork:output_type -> api.network.Network + 103, // 157: api.AdminAPI.AdminUpdateNetwork:output_type -> api.network.Network + 79, // 158: api.AdminAPI.AdminDeleteSubnet:output_type -> api.EmptyResponse + 114, // 159: api.AdminAPI.AdminCreateSubnet:output_type -> api.network.Subnet + 114, // 160: api.AdminAPI.AdminUpdateSubnet:output_type -> api.network.Subnet + 115, // 161: api.AdminAPI.AdminListVlans:output_type -> api.network.AdminListVlansResponse + 116, // 162: api.AdminAPI.AdminCreateVlan:output_type -> api.network.VLAN + 79, // 163: api.AdminAPI.AdminDeleteVlan:output_type -> api.EmptyResponse + 82, // [82:164] is the sub-list for method output_type + 0, // [0:82] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_admin_service_proto_init() } +func file_admin_service_proto_init() { + if File_admin_service_proto != nil { + return + } + file_image_proto_init() + file_network_proto_init() + file_generic_proto_init() + file_server_proto_init() + file_agent_proto_init() + file_voucher_proto_init() + file_user_proto_init() + file_admin_proto_init() + file_flavour_proto_init() + file_region_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_admin_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_admin_service_proto_goTypes, + DependencyIndexes: file_admin_service_proto_depIdxs, + }.Build() + File_admin_service_proto = out.File + file_admin_service_proto_rawDesc = nil + file_admin_service_proto_goTypes = nil + file_admin_service_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/admin_service.pb.gw.go b/pkg/gpcloud/ptypes/admin_service.pb.gw.go new file mode 100644 index 0000000..e71d34a --- /dev/null +++ b/pkg/gpcloud/ptypes/admin_service.pb.gw.go @@ -0,0 +1,8376 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: admin_service.proto + +/* +Package ptypes is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package ptypes + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +var ( + filter_AdminAPI_AdminListServer_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_AdminAPI_AdminListServer_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminListServerRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminListServer_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminListServer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListServer_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminListServerRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminListServer_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminListServer(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetServer_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetServerRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetServer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetServer_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetServerRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetServer(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminAPI_AdminGetServerLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_AdminAPI_AdminGetServerLogs_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetServerLogsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetServerLogs_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminGetServerLogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetServerLogs_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetServerLogsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetServerLogs_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminGetServerLogs(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminAPI_AdminGetServerAlerts_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_AdminAPI_AdminGetServerAlerts_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetServerAlertsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetServerAlerts_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminGetServerAlerts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetServerAlerts_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetServerAlertsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetServerAlerts_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminGetServerAlerts(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteServerAlert_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteServerAlertRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteServerAlert(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteServerAlert_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteServerAlertRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteServerAlert(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUpdateServer_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateServerRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminUpdateServer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateServer_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateServerRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminUpdateServer(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteServer_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteServerRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteServer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteServer_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteServerRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteServer(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminChangeServerPowerStatus_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminChangeServerPowerStatusRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminChangeServerPowerStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminChangeServerPowerStatus_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminChangeServerPowerStatusRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminChangeServerPowerStatus(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetServerVNCToken_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetServerVNCTokenRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetServerVNCToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetServerVNCToken_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetServerVNCTokenRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetServerVNCToken(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetServerPlatformManagement_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetServerPlatformManagementRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetServerPlatformManagement(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetServerPlatformManagement_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetServerPlatformManagementRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetServerPlatformManagement(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateServerJob_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateServerJobRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminCreateServerJob(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateServerJob_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateServerJobRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminCreateServerJob(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminListAvailableServer_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.AdminListAvailableServer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListAvailableServer_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.AdminListAvailableServer(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminImportServer_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminImportServerRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminImportServer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminImportServer_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminImportServerRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminImportServer(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateImage_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateImageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminCreateImage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateImage_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateImageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminCreateImage(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminListImages_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.AdminListImages(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListImages_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.AdminListImages(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetImage_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetImageRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetImage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetImage_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetImageRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetImage(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUpdateImage_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateImageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminUpdateImage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateImage_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateImageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminUpdateImage(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteImage_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteImageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteImage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteImage_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteImageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteImage(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteImageVersion_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteImageVersionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteImageVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteImageVersion_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteImageVersionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteImageVersion(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminListOperatingSystems_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.AdminListOperatingSystems(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListOperatingSystems_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.AdminListOperatingSystems(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteOperatingSystem_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteOperatingSystemRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteOperatingSystem(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteOperatingSystem_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteOperatingSystemRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteOperatingSystem(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateOperatingSystem_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateOperatingSystemRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminCreateOperatingSystem(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateOperatingSystem_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateOperatingSystemRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminCreateOperatingSystem(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetOperatingSystem_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetOperatingSystemRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetOperatingSystem(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetOperatingSystem_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetOperatingSystemRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetOperatingSystem(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUpdateOperatingSystem_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateOperatingSystemRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminUpdateOperatingSystem(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateOperatingSystem_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateOperatingSystemRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminUpdateOperatingSystem(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminListFlavours_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.AdminListFlavours(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListFlavours_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.AdminListFlavours(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetFlavour_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetFlavourRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetFlavour(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetFlavour_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetFlavourRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetFlavour(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteFlavour_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteFlavourRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteFlavour(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteFlavour_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteFlavourRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteFlavour(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateFlavour_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateFlavourRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminCreateFlavour(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateFlavour_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateFlavourRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminCreateFlavour(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUpdateFlavour_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateFlavourRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminUpdateFlavour(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateFlavour_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateFlavourRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminUpdateFlavour(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminListSwitches_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.AdminListSwitches(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListSwitches_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.AdminListSwitches(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetSwitch_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetSwitchRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetSwitch(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetSwitch_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetSwitchRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetSwitch(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteSwitch_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteSwitchRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteSwitch(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteSwitch_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteSwitchRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteSwitch(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateSwitch_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateSwitchRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminCreateSwitch(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateSwitch_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateSwitchRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminCreateSwitch(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUpdateSwitch_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateSwitchRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminUpdateSwitch(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateSwitch_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateSwitchRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminUpdateSwitch(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminListAgents_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.AdminListAgents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListAgents_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.AdminListAgents(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateAgentRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminCreateAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateAgentRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminCreateAgent(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteAgentRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteAgentRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteAgent(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminAPI_AdminListVouchers_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_AdminAPI_AdminListVouchers_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminListVouchersRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminListVouchers_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminListVouchers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListVouchers_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminListVouchersRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminListVouchers_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminListVouchers(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateVouchers_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateVouchersRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminCreateVouchers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateVouchers_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateVouchersRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminCreateVouchers(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteVoucher_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteVoucherRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["voucher_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "voucher_id") + } + + protoReq.VoucherId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "voucher_id", err) + } + + msg, err := client.AdminDeleteVoucher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteVoucher_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteVoucherRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["voucher_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "voucher_id") + } + + protoReq.VoucherId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "voucher_id", err) + } + + msg, err := server.AdminDeleteVoucher(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminAPI_AdminListUsers_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_AdminAPI_AdminListUsers_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminListUsersRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminListUsers_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminListUsers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListUsers_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminListUsersRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminListUsers_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminListUsers(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetUser_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetUserRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := client.AdminGetUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetUser_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetUserRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := server.AdminGetUser(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminAPI_AdminUpdateUser_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_AdminAPI_AdminUpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateUserRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminUpdateUser_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminUpdateUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateUserRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminUpdateUser_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminUpdateUser(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminImpersonateUser_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminImpersonateUserRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := client.AdminImpersonateUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminImpersonateUser_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminImpersonateUserRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := server.AdminImpersonateUser(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminAPI_AdminGetUserBills_0 = &utilities.DoubleArray{Encoding: map[string]int{"user_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_AdminAPI_AdminGetUserBills_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetUserBillsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetUserBills_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminGetUserBills(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetUserBills_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetUserBillsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetUserBills_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminGetUserBills(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminLockUser_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminLockUserRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := client.AdminLockUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminLockUser_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminLockUserRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := server.AdminLockUser(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUnlockUser_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUnlockUserRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := client.AdminUnlockUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUnlockUser_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUnlockUserRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := server.AdminUnlockUser(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetProject_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetProjectRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetProject_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetProjectRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetProjectNetworks_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetProjectNetworksRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetProjectNetworks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetProjectNetworks_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetProjectNetworksRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetProjectNetworks(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateProjectNetwork_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateProjectNetworkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminCreateProjectNetwork(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateProjectNetwork_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateProjectNetworkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminCreateProjectNetwork(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminUpdateProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminUpdateProject(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminAPI_AdminGetAdminLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_AdminAPI_AdminGetAdminLogs_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetAdminLogsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetAdminLogs_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminGetAdminLogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetAdminLogs_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetAdminLogsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetAdminLogs_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminGetAdminLogs(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateUserRemark_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateUserRemarkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := client.AdminCreateUserRemark(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateUserRemark_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateUserRemarkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := server.AdminCreateUserRemark(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteUserRemark_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteUserRemarkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteUserRemark(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteUserRemark_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteUserRemarkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteUserRemark(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetSplaReporting_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetSplaReportingRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["year"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "year") + } + + protoReq.Year, err = runtime.Int32(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "year", err) + } + + val, ok = pathParams["month"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "month") + } + + protoReq.Month, err = runtime.Int32(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "month", err) + } + + msg, err := client.AdminGetSplaReporting(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetSplaReporting_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetSplaReportingRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["year"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "year") + } + + protoReq.Year, err = runtime.Int32(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "year", err) + } + + val, ok = pathParams["month"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "month") + } + + protoReq.Month, err = runtime.Int32(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "month", err) + } + + msg, err := server.AdminGetSplaReporting(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminAPI_AdminGetIPHistory_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_AdminAPI_AdminGetIPHistory_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetIPHistoryRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetIPHistory_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminGetIPHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetIPHistory_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetIPHistoryRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetIPHistory_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminGetIPHistory(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminAPI_AdminGetBills_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_AdminAPI_AdminGetBills_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetBillsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetBills_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminGetBills(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetBills_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetBillsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminGetBills_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminGetBills(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminResendBill_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminResendBillRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminResendBill(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminResendBill_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminResendBillRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminResendBill(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetBill_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetBillRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetBill(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetBill_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetBillRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetBill(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetBillPdf_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetBillPdfRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetBillPdf(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetBillPdf_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetBillPdfRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetBillPdf(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminAPI_AdminAddBillPayment_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_AdminAPI_AdminAddBillPayment_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminAddBillPaymentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminAddBillPayment_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminAddBillPayment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminAddBillPayment_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminAddBillPaymentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminAPI_AdminAddBillPayment_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminAddBillPayment(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminRefundBillPayment_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminRefundBillPaymentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminRefundBillPayment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminRefundBillPayment_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminRefundBillPaymentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminRefundBillPayment(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminApplyCreditToProject_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminApplyCreditToProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminApplyCreditToProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminApplyCreditToProject_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminApplyCreditToProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminApplyCreditToProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminListRegions_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.AdminListRegions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListRegions_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.AdminListRegions(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetRegion_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetRegionRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetRegion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetRegion_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetRegionRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetRegion(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateRegion_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateRegionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminCreateRegion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateRegion_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateRegionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminCreateRegion(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUpdateRegion_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateRegionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminUpdateRegion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateRegion_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateRegionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminUpdateRegion(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminAddDatacenterToRegion_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminAddDatacenterToRegionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminAddDatacenterToRegion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminAddDatacenterToRegion_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminAddDatacenterToRegionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminAddDatacenterToRegion(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUpdateDatacenter_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateDatacenterRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminUpdateDatacenter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateDatacenter_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateDatacenterRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminUpdateDatacenter(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteDatacenter_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteDatacenterRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteDatacenter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteDatacenter_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteDatacenterRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteDatacenter(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteRegion_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteRegionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteRegion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteRegion_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteRegionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteRegion(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminListNetworks_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.AdminListNetworks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListNetworks_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.AdminListNetworks(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateNetwork_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateNetworkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AdminCreateNetwork(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateNetwork_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateNetworkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AdminCreateNetwork(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteNetwork_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteNetworkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteNetwork(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteNetwork_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteNetworkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteNetwork(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminGetNetwork_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetNetworkRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminGetNetwork(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminGetNetwork_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminGetNetworkRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminGetNetwork(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUpdateNetwork_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateNetworkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminUpdateNetwork(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateNetwork_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateNetworkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminUpdateNetwork(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteSubnet_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteSubnet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteSubnet_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteSubnet(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateSubnet_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["network_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "network_id") + } + + protoReq.NetworkId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "network_id", err) + } + + msg, err := client.AdminCreateSubnet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateSubnet_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["network_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "network_id") + } + + protoReq.NetworkId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "network_id", err) + } + + msg, err := server.AdminCreateSubnet(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminUpdateSubnet_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminUpdateSubnet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminUpdateSubnet_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminUpdateSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminUpdateSubnet(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminListVlans_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminListVlansRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["datacenter_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "datacenter_id") + } + + protoReq.DatacenterId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "datacenter_id", err) + } + + msg, err := client.AdminListVlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminListVlans_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminListVlansRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["datacenter_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "datacenter_id") + } + + protoReq.DatacenterId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "datacenter_id", err) + } + + msg, err := server.AdminListVlans(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminCreateVlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateVlanRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["datacenter_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "datacenter_id") + } + + protoReq.DatacenterId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "datacenter_id", err) + } + + msg, err := client.AdminCreateVlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminCreateVlan_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminCreateVlanRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["datacenter_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "datacenter_id") + } + + protoReq.DatacenterId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "datacenter_id", err) + } + + msg, err := server.AdminCreateVlan(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminAPI_AdminDeleteVlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteVlanRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AdminDeleteVlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminAPI_AdminDeleteVlan_0(ctx context.Context, marshaler runtime.Marshaler, server AdminAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AdminDeleteVlanRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AdminDeleteVlan(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterAdminAPIHandlerServer registers the http handlers for service AdminAPI to "mux". +// UnaryRPC :call AdminAPIServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAdminAPIHandlerFromEndpoint instead. +func RegisterAdminAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AdminAPIServer) error { + + mux.Handle("GET", pattern_AdminAPI_AdminListServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListServer_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetServer_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetServerLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetServerLogs") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetServerLogs_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetServerLogs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetServerAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetServerAlerts") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetServerAlerts_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetServerAlerts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteServerAlert_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteServerAlert") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteServerAlert_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteServerAlert_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminUpdateServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateServer_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteServer_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminChangeServerPowerStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminChangeServerPowerStatus") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminChangeServerPowerStatus_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminChangeServerPowerStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetServerVNCToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetServerVNCToken") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetServerVNCToken_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetServerVNCToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetServerPlatformManagement_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetServerPlatformManagement") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetServerPlatformManagement_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetServerPlatformManagement_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateServerJob_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateServerJob") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateServerJob_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateServerJob_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListAvailableServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListAvailableServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListAvailableServer_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListAvailableServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminImportServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminImportServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminImportServer_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminImportServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateImage_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListImages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListImages") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListImages_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListImages_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetImage_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminUpdateImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateImage_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteImage_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteImageVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteImageVersion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteImageVersion_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteImageVersion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListOperatingSystems_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListOperatingSystems") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListOperatingSystems_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListOperatingSystems_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteOperatingSystem_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteOperatingSystem") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteOperatingSystem_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteOperatingSystem_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateOperatingSystem_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateOperatingSystem") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateOperatingSystem_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateOperatingSystem_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetOperatingSystem_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetOperatingSystem") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetOperatingSystem_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetOperatingSystem_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateOperatingSystem_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateOperatingSystem") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateOperatingSystem_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateOperatingSystem_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListFlavours_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListFlavours") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListFlavours_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListFlavours_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetFlavour_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetFlavour") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetFlavour_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetFlavour_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteFlavour_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteFlavour") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteFlavour_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteFlavour_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateFlavour_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateFlavour") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateFlavour_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateFlavour_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateFlavour_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateFlavour") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateFlavour_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateFlavour_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListSwitches_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListSwitches") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListSwitches_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListSwitches_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetSwitch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetSwitch") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetSwitch_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetSwitch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteSwitch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteSwitch") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteSwitch_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteSwitch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateSwitch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateSwitch") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateSwitch_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateSwitch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminUpdateSwitch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateSwitch") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateSwitch_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateSwitch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListAgents") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListAgents_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListAgents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateAgent") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateAgent_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateAgent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteAgent") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteAgent_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteAgent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListVouchers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListVouchers") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListVouchers_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListVouchers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateVouchers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateVouchers") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateVouchers_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateVouchers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteVoucher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteVoucher") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteVoucher_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteVoucher_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListUsers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListUsers") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListUsers_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListUsers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetUser_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateUser_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminImpersonateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminImpersonateUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminImpersonateUser_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminImpersonateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetUserBills_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetUserBills") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetUserBills_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetUserBills_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminLockUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminLockUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminLockUser_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminLockUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminUnlockUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUnlockUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUnlockUser_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUnlockUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetProjectNetworks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetProjectNetworks") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetProjectNetworks_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetProjectNetworks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateProjectNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateProjectNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateProjectNetwork_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateProjectNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetAdminLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetAdminLogs") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetAdminLogs_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetAdminLogs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateUserRemark_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateUserRemark") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateUserRemark_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateUserRemark_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteUserRemark_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteUserRemark") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteUserRemark_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteUserRemark_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetSplaReporting_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetSplaReporting") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetSplaReporting_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetSplaReporting_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetIPHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetIPHistory") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetIPHistory_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetIPHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetBills_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetBills") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetBills_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetBills_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminResendBill_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminResendBill") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminResendBill_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminResendBill_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetBill_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetBill") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetBill_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetBill_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetBillPdf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetBillPdf") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetBillPdf_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetBillPdf_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminAddBillPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminAddBillPayment") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminAddBillPayment_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminAddBillPayment_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminRefundBillPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminRefundBillPayment") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminRefundBillPayment_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminRefundBillPayment_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminApplyCreditToProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminApplyCreditToProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminApplyCreditToProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminApplyCreditToProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListRegions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListRegions") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListRegions_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListRegions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetRegion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetRegion_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetRegion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateRegion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateRegion_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateRegion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateRegion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateRegion_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateRegion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminAddDatacenterToRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminAddDatacenterToRegion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminAddDatacenterToRegion_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminAddDatacenterToRegion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateDatacenter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateDatacenter") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateDatacenter_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateDatacenter_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteDatacenter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteDatacenter") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteDatacenter_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteDatacenter_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteRegion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteRegion_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteRegion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListNetworks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListNetworks") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListNetworks_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListNetworks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateNetwork_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteNetwork_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminGetNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminGetNetwork_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateNetwork_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteSubnet_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateSubnet_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminUpdateSubnet_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListVlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminListVlans") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminListVlans_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListVlans_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateVlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminCreateVlan") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminCreateVlan_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateVlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteVlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteVlan") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminAPI_AdminDeleteVlan_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteVlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterAdminAPIHandlerFromEndpoint is same as RegisterAdminAPIHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAdminAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterAdminAPIHandler(ctx, mux, conn) +} + +// RegisterAdminAPIHandler registers the http handlers for service AdminAPI to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAdminAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAdminAPIHandlerClient(ctx, mux, NewAdminAPIClient(conn)) +} + +// RegisterAdminAPIHandlerClient registers the http handlers for service AdminAPI +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdminAPIClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdminAPIClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "AdminAPIClient" to call the correct interceptors. +func RegisterAdminAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminAPIClient) error { + + mux.Handle("GET", pattern_AdminAPI_AdminListServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListServer_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetServer_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetServerLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetServerLogs") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetServerLogs_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetServerLogs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetServerAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetServerAlerts") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetServerAlerts_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetServerAlerts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteServerAlert_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteServerAlert") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteServerAlert_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteServerAlert_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminUpdateServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateServer_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteServer_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminChangeServerPowerStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminChangeServerPowerStatus") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminChangeServerPowerStatus_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminChangeServerPowerStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetServerVNCToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetServerVNCToken") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetServerVNCToken_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetServerVNCToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetServerPlatformManagement_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetServerPlatformManagement") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetServerPlatformManagement_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetServerPlatformManagement_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateServerJob_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateServerJob") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateServerJob_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateServerJob_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListAvailableServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListAvailableServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListAvailableServer_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListAvailableServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminImportServer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminImportServer") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminImportServer_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminImportServer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateImage_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListImages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListImages") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListImages_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListImages_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetImage_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminUpdateImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateImage_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteImage_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteImageVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteImageVersion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteImageVersion_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteImageVersion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListOperatingSystems_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListOperatingSystems") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListOperatingSystems_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListOperatingSystems_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteOperatingSystem_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteOperatingSystem") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteOperatingSystem_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteOperatingSystem_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateOperatingSystem_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateOperatingSystem") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateOperatingSystem_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateOperatingSystem_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetOperatingSystem_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetOperatingSystem") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetOperatingSystem_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetOperatingSystem_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateOperatingSystem_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateOperatingSystem") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateOperatingSystem_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateOperatingSystem_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListFlavours_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListFlavours") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListFlavours_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListFlavours_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetFlavour_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetFlavour") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetFlavour_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetFlavour_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteFlavour_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteFlavour") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteFlavour_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteFlavour_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateFlavour_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateFlavour") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateFlavour_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateFlavour_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateFlavour_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateFlavour") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateFlavour_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateFlavour_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListSwitches_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListSwitches") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListSwitches_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListSwitches_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetSwitch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetSwitch") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetSwitch_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetSwitch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteSwitch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteSwitch") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteSwitch_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteSwitch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateSwitch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateSwitch") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateSwitch_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateSwitch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminUpdateSwitch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateSwitch") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateSwitch_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateSwitch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListAgents") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListAgents_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListAgents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateAgent") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateAgent_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateAgent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteAgent") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteAgent_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteAgent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListVouchers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListVouchers") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListVouchers_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListVouchers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateVouchers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateVouchers") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateVouchers_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateVouchers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteVoucher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteVoucher") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteVoucher_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteVoucher_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListUsers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListUsers") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListUsers_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListUsers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetUser_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateUser_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminImpersonateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminImpersonateUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminImpersonateUser_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminImpersonateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetUserBills_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetUserBills") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetUserBills_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetUserBills_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminLockUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminLockUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminLockUser_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminLockUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminUnlockUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUnlockUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUnlockUser_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUnlockUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetProjectNetworks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetProjectNetworks") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetProjectNetworks_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetProjectNetworks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateProjectNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateProjectNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateProjectNetwork_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateProjectNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetAdminLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetAdminLogs") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetAdminLogs_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetAdminLogs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateUserRemark_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateUserRemark") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateUserRemark_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateUserRemark_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteUserRemark_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteUserRemark") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteUserRemark_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteUserRemark_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetSplaReporting_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetSplaReporting") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetSplaReporting_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetSplaReporting_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetIPHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetIPHistory") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetIPHistory_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetIPHistory_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetBills_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetBills") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetBills_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetBills_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminResendBill_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminResendBill") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminResendBill_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminResendBill_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetBill_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetBill") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetBill_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetBill_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetBillPdf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetBillPdf") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetBillPdf_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetBillPdf_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminAddBillPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminAddBillPayment") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminAddBillPayment_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminAddBillPayment_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminRefundBillPayment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminRefundBillPayment") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminRefundBillPayment_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminRefundBillPayment_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminApplyCreditToProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminApplyCreditToProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminApplyCreditToProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminApplyCreditToProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListRegions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListRegions") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListRegions_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListRegions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetRegion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetRegion_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetRegion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateRegion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateRegion_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateRegion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateRegion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateRegion_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateRegion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminAddDatacenterToRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminAddDatacenterToRegion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminAddDatacenterToRegion_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminAddDatacenterToRegion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateDatacenter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateDatacenter") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateDatacenter_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateDatacenter_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteDatacenter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteDatacenter") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteDatacenter_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteDatacenter_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteRegion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteRegion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteRegion_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteRegion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListNetworks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListNetworks") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListNetworks_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListNetworks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateNetwork_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteNetwork_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminGetNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminGetNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminGetNetwork_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminGetNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateNetwork_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteSubnet_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateSubnet_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminAPI_AdminUpdateSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminUpdateSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminUpdateSubnet_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminUpdateSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminAPI_AdminListVlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminListVlans") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminListVlans_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminListVlans_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminAPI_AdminCreateVlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminCreateVlan") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminCreateVlan_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminCreateVlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminAPI_AdminDeleteVlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.AdminAPI/AdminDeleteVlan") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminAPI_AdminDeleteVlan_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminAPI_AdminDeleteVlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_AdminAPI_AdminListServer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "server"}, "")) + + pattern_AdminAPI_AdminGetServer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "server", "id"}, "")) + + pattern_AdminAPI_AdminGetServerLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "server", "id", "logs"}, "")) + + pattern_AdminAPI_AdminGetServerAlerts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "server", "id", "alerts"}, "")) + + pattern_AdminAPI_AdminDeleteServerAlert_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "server", "id", "alerts"}, "")) + + pattern_AdminAPI_AdminUpdateServer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "server", "id"}, "")) + + pattern_AdminAPI_AdminDeleteServer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "server", "id"}, "")) + + pattern_AdminAPI_AdminChangeServerPowerStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "server", "id", "power"}, "")) + + pattern_AdminAPI_AdminGetServerVNCToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "server", "id", "vnc"}, "")) + + pattern_AdminAPI_AdminGetServerPlatformManagement_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "server", "id", "platform_management"}, "")) + + pattern_AdminAPI_AdminCreateServerJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "server", "id", "job"}, "")) + + pattern_AdminAPI_AdminListAvailableServer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "admin", "server", "available"}, "")) + + pattern_AdminAPI_AdminImportServer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "admin", "server", "import"}, "")) + + pattern_AdminAPI_AdminCreateImage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "images"}, "")) + + pattern_AdminAPI_AdminListImages_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "images"}, "")) + + pattern_AdminAPI_AdminGetImage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "images", "id"}, "")) + + pattern_AdminAPI_AdminUpdateImage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "images", "id"}, "")) + + pattern_AdminAPI_AdminDeleteImage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "images", "id"}, "")) + + pattern_AdminAPI_AdminDeleteImageVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "admin", "images", "version", "id"}, "")) + + pattern_AdminAPI_AdminListOperatingSystems_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "operating_systems"}, "")) + + pattern_AdminAPI_AdminDeleteOperatingSystem_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "operating_systems", "id"}, "")) + + pattern_AdminAPI_AdminCreateOperatingSystem_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "operating_systems"}, "")) + + pattern_AdminAPI_AdminGetOperatingSystem_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "operating_systems", "id"}, "")) + + pattern_AdminAPI_AdminUpdateOperatingSystem_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "operating_systems", "id"}, "")) + + pattern_AdminAPI_AdminListFlavours_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "flavours"}, "")) + + pattern_AdminAPI_AdminGetFlavour_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "flavours", "id"}, "")) + + pattern_AdminAPI_AdminDeleteFlavour_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "flavours", "id"}, "")) + + pattern_AdminAPI_AdminCreateFlavour_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "flavours"}, "")) + + pattern_AdminAPI_AdminUpdateFlavour_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "flavours", "id"}, "")) + + pattern_AdminAPI_AdminListSwitches_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "switches"}, "")) + + pattern_AdminAPI_AdminGetSwitch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "switches", "id"}, "")) + + pattern_AdminAPI_AdminDeleteSwitch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "switches", "id"}, "")) + + pattern_AdminAPI_AdminCreateSwitch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "switches"}, "")) + + pattern_AdminAPI_AdminUpdateSwitch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "switches", "id"}, "")) + + pattern_AdminAPI_AdminListAgents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "agents"}, "")) + + pattern_AdminAPI_AdminCreateAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "agents"}, "")) + + pattern_AdminAPI_AdminDeleteAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "agents", "id"}, "")) + + pattern_AdminAPI_AdminListVouchers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "vouchers"}, "")) + + pattern_AdminAPI_AdminCreateVouchers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "vouchers"}, "")) + + pattern_AdminAPI_AdminDeleteVoucher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "vouchers", "voucher_id"}, "")) + + pattern_AdminAPI_AdminListUsers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "users"}, "")) + + pattern_AdminAPI_AdminGetUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "users", "user_id"}, "")) + + pattern_AdminAPI_AdminUpdateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "users", "id"}, "")) + + pattern_AdminAPI_AdminImpersonateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "users", "user_id", "impersonate"}, "")) + + pattern_AdminAPI_AdminGetUserBills_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "users", "user_id", "bills"}, "")) + + pattern_AdminAPI_AdminLockUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "users", "user_id", "lock"}, "")) + + pattern_AdminAPI_AdminUnlockUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "users", "user_id", "unlock"}, "")) + + pattern_AdminAPI_AdminGetProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "project", "id"}, "")) + + pattern_AdminAPI_AdminGetProjectNetworks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "project", "id", "network"}, "")) + + pattern_AdminAPI_AdminCreateProjectNetwork_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "project", "id", "network"}, "")) + + pattern_AdminAPI_AdminUpdateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "project", "id"}, "")) + + pattern_AdminAPI_AdminGetAdminLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "logs"}, "")) + + pattern_AdminAPI_AdminCreateUserRemark_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "users", "user_id", "remark"}, "")) + + pattern_AdminAPI_AdminDeleteUserRemark_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "admin", "users", "remark", "id"}, "")) + + pattern_AdminAPI_AdminGetSplaReporting_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "admin", "spla_reporting", "year", "month"}, "")) + + pattern_AdminAPI_AdminGetIPHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "ip_history"}, "")) + + pattern_AdminAPI_AdminGetBills_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "bills"}, "")) + + pattern_AdminAPI_AdminResendBill_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "bills", "id", "resend"}, "")) + + pattern_AdminAPI_AdminGetBill_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "bills", "id"}, "")) + + pattern_AdminAPI_AdminGetBillPdf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "bills", "id", "pdf"}, "")) + + pattern_AdminAPI_AdminAddBillPayment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "bills", "id", "payment"}, "")) + + pattern_AdminAPI_AdminRefundBillPayment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"v1", "admin", "bills", "payment", "id", "refund"}, "")) + + pattern_AdminAPI_AdminApplyCreditToProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "project", "id", "credit"}, "")) + + pattern_AdminAPI_AdminListRegions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "regions"}, "")) + + pattern_AdminAPI_AdminGetRegion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "regions", "id"}, "")) + + pattern_AdminAPI_AdminCreateRegion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "regions"}, "")) + + pattern_AdminAPI_AdminUpdateRegion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "regions", "id"}, "")) + + pattern_AdminAPI_AdminAddDatacenterToRegion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "regions", "id", "datacenters"}, "")) + + pattern_AdminAPI_AdminUpdateDatacenter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "datacenters", "id"}, "")) + + pattern_AdminAPI_AdminDeleteDatacenter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "datacenters", "id"}, "")) + + pattern_AdminAPI_AdminDeleteRegion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "regions", "id"}, "")) + + pattern_AdminAPI_AdminListNetworks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "networks"}, "")) + + pattern_AdminAPI_AdminCreateNetwork_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "admin", "networks"}, "")) + + pattern_AdminAPI_AdminDeleteNetwork_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "networks", "id"}, "")) + + pattern_AdminAPI_AdminGetNetwork_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "networks", "id"}, "")) + + pattern_AdminAPI_AdminUpdateNetwork_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "networks", "id"}, "")) + + pattern_AdminAPI_AdminDeleteSubnet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "subnet", "id"}, "")) + + pattern_AdminAPI_AdminCreateSubnet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"v1", "admin", "networks", "network_id", "subnet"}, "")) + + pattern_AdminAPI_AdminUpdateSubnet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "subnet", "id"}, "")) + + pattern_AdminAPI_AdminListVlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "vlans", "datacenter_id"}, "")) + + pattern_AdminAPI_AdminCreateVlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "vlans", "datacenter_id"}, "")) + + pattern_AdminAPI_AdminDeleteVlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "admin", "vlans", "id"}, "")) +) + +var ( + forward_AdminAPI_AdminListServer_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetServer_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetServerLogs_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetServerAlerts_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteServerAlert_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateServer_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteServer_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminChangeServerPowerStatus_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetServerVNCToken_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetServerPlatformManagement_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateServerJob_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListAvailableServer_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminImportServer_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateImage_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListImages_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetImage_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateImage_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteImage_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteImageVersion_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListOperatingSystems_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteOperatingSystem_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateOperatingSystem_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetOperatingSystem_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateOperatingSystem_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListFlavours_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetFlavour_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteFlavour_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateFlavour_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateFlavour_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListSwitches_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetSwitch_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteSwitch_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateSwitch_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateSwitch_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListAgents_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateAgent_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteAgent_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListVouchers_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateVouchers_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteVoucher_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListUsers_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetUser_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateUser_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminImpersonateUser_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetUserBills_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminLockUser_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUnlockUser_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetProject_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetProjectNetworks_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateProjectNetwork_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateProject_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetAdminLogs_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateUserRemark_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteUserRemark_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetSplaReporting_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetIPHistory_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetBills_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminResendBill_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetBill_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetBillPdf_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminAddBillPayment_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminRefundBillPayment_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminApplyCreditToProject_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListRegions_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetRegion_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateRegion_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateRegion_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminAddDatacenterToRegion_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateDatacenter_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteDatacenter_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteRegion_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListNetworks_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateNetwork_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteNetwork_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminGetNetwork_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateNetwork_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteSubnet_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateSubnet_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminUpdateSubnet_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminListVlans_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminCreateVlan_0 = runtime.ForwardResponseMessage + + forward_AdminAPI_AdminDeleteVlan_0 = runtime.ForwardResponseMessage +) diff --git a/pkg/gpcloud/ptypes/admin_service_grpc.pb.go b/pkg/gpcloud/ptypes/admin_service_grpc.pb.go new file mode 100644 index 0000000..eecc844 --- /dev/null +++ b/pkg/gpcloud/ptypes/admin_service_grpc.pb.go @@ -0,0 +1,3181 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package ptypes + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// AdminAPIClient is the client API for AdminAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AdminAPIClient interface { + // ListServer Lists all server + AdminListServer(ctx context.Context, in *AdminListServerRequest, opts ...grpc.CallOption) (*AdminListServerResponse, error) + // GetServer Returns single server + AdminGetServer(ctx context.Context, in *AdminGetServerRequest, opts ...grpc.CallOption) (*AdminServer, error) + // GetServerLogs Returns all server logs + AdminGetServerLogs(ctx context.Context, in *AdminGetServerLogsRequest, opts ...grpc.CallOption) (*AdminGetServerLogsResponse, error) + // GetServerAlerts Returns all server alerts + AdminGetServerAlerts(ctx context.Context, in *AdminGetServerAlertsRequest, opts ...grpc.CallOption) (*AdminGetServerAlertsResponse, error) + // AdminDeleteServerAlert Returns all server alerts + AdminDeleteServerAlert(ctx context.Context, in *AdminDeleteServerAlertRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Update a server and return it + AdminUpdateServer(ctx context.Context, in *AdminUpdateServerRequest, opts ...grpc.CallOption) (*AdminServer, error) + // Delete a server from the system + AdminDeleteServer(ctx context.Context, in *AdminDeleteServerRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // ChangeServerPowerStatus Change power status + AdminChangeServerPowerStatus(ctx context.Context, in *AdminChangeServerPowerStatusRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // AdminGetServerVNCToken Returns a VNC token for server + AdminGetServerVNCToken(ctx context.Context, in *AdminGetServerVNCTokenRequest, opts ...grpc.CallOption) (*AdminGetServerVNCTokenResponse, error) + // GetServerPlatformManagement Returns Platform Management data for server + AdminGetServerPlatformManagement(ctx context.Context, in *AdminGetServerPlatformManagementRequest, opts ...grpc.CallOption) (*PlatformManagement, error) + // Creates a new server job + AdminCreateServerJob(ctx context.Context, in *AdminCreateServerJobRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // List all available server from our Netbox Inventory + AdminListAvailableServer(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListAvailableServerResponse, error) + // Import servers from Netbox + AdminImportServer(ctx context.Context, in *AdminImportServerRequest, opts ...grpc.CallOption) (*AdminImportServerResponse, error) + // Create a new public image + AdminCreateImage(ctx context.Context, in *AdminCreateImageRequest, opts ...grpc.CallOption) (*Image, error) + // List all public images + AdminListImages(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListImagesResponse, error) + // Return a single public image by ID + AdminGetImage(ctx context.Context, in *AdminGetImageRequest, opts ...grpc.CallOption) (*Image, error) + // Updates a public image + AdminUpdateImage(ctx context.Context, in *AdminUpdateImageRequest, opts ...grpc.CallOption) (*Image, error) + // Deletes a public image + AdminDeleteImage(ctx context.Context, in *AdminDeleteImageRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // DeleteImageVersion Delete a project image version + AdminDeleteImageVersion(ctx context.Context, in *AdminDeleteImageVersionRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Lists all operating systems + AdminListOperatingSystems(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListOperatingSystemsResponse, error) + // Delete a operating system + AdminDeleteOperatingSystem(ctx context.Context, in *AdminDeleteOperatingSystemRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Creates a new operating system + AdminCreateOperatingSystem(ctx context.Context, in *AdminCreateOperatingSystemRequest, opts ...grpc.CallOption) (*OperatingSystem, error) + // Get a single operating system + AdminGetOperatingSystem(ctx context.Context, in *AdminGetOperatingSystemRequest, opts ...grpc.CallOption) (*OperatingSystem, error) + // Update a single operating system + AdminUpdateOperatingSystem(ctx context.Context, in *AdminUpdateOperatingSystemRequest, opts ...grpc.CallOption) (*OperatingSystem, error) + // List all existing flavours + AdminListFlavours(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListFlavoursResponse, error) + // Return a single flavour + AdminGetFlavour(ctx context.Context, in *AdminGetFlavourRequest, opts ...grpc.CallOption) (*AdminFlavour, error) + // Delete a flavour + AdminDeleteFlavour(ctx context.Context, in *AdminDeleteFlavourRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Create a new flavour + AdminCreateFlavour(ctx context.Context, in *AdminCreateFlavourRequest, opts ...grpc.CallOption) (*AdminFlavour, error) + // Update a existing flavour + AdminUpdateFlavour(ctx context.Context, in *AdminUpdateFlavourRequest, opts ...grpc.CallOption) (*AdminFlavour, error) + // List all switches + AdminListSwitches(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListSwitchesResponse, error) + // Get a single switch + AdminGetSwitch(ctx context.Context, in *AdminGetSwitchRequest, opts ...grpc.CallOption) (*Switch, error) + // Delete a switch + AdminDeleteSwitch(ctx context.Context, in *AdminDeleteSwitchRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Create a new switch + AdminCreateSwitch(ctx context.Context, in *AdminCreateSwitchRequest, opts ...grpc.CallOption) (*Switch, error) + // Update a existing switch + AdminUpdateSwitch(ctx context.Context, in *AdminUpdateSwitchRequest, opts ...grpc.CallOption) (*Switch, error) + // Returns a list with all agents + AdminListAgents(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListAgentsResponse, error) + // Creates a new agent + AdminCreateAgent(ctx context.Context, in *AdminCreateAgentRequest, opts ...grpc.CallOption) (*Agent, error) + // Deletes a agent + AdminDeleteAgent(ctx context.Context, in *AdminDeleteAgentRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // List all available vouchers + AdminListVouchers(ctx context.Context, in *AdminListVouchersRequest, opts ...grpc.CallOption) (*AdminListVouchersResponse, error) + // Create new voucher(s) + AdminCreateVouchers(ctx context.Context, in *AdminCreateVouchersRequest, opts ...grpc.CallOption) (*AdminCreateVouchersResponse, error) + // Delete a specified voucher + AdminDeleteVoucher(ctx context.Context, in *AdminDeleteVoucherRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // List all registered users + AdminListUsers(ctx context.Context, in *AdminListUsersRequest, opts ...grpc.CallOption) (*AdminListUsersResponse, error) + // Get user information + AdminGetUser(ctx context.Context, in *AdminGetUserRequest, opts ...grpc.CallOption) (*AdminGetUserResponse, error) + // UpdateUser + AdminUpdateUser(ctx context.Context, in *AdminUpdateUserRequest, opts ...grpc.CallOption) (*User, error) + // Impersonate user + AdminImpersonateUser(ctx context.Context, in *AdminImpersonateUserRequest, opts ...grpc.CallOption) (*AdminImpersonateUserResponse, error) + // Get user bills + AdminGetUserBills(ctx context.Context, in *AdminGetUserBillsRequest, opts ...grpc.CallOption) (*AdminGetUserBillsResponse, error) + // Impersonate user + AdminLockUser(ctx context.Context, in *AdminLockUserRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Impersonate user + AdminUnlockUser(ctx context.Context, in *AdminUnlockUserRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Get project by ID + AdminGetProject(ctx context.Context, in *AdminGetProjectRequest, opts ...grpc.CallOption) (*AdminGetProjectResponse, error) + // Get project specific networks + AdminGetProjectNetworks(ctx context.Context, in *AdminGetProjectNetworksRequest, opts ...grpc.CallOption) (*AdminGetProjectNetworksResponse, error) + // Create a new project network + AdminCreateProjectNetwork(ctx context.Context, in *AdminCreateProjectNetworkRequest, opts ...grpc.CallOption) (*Network, error) + // Admin update project + AdminUpdateProject(ctx context.Context, in *AdminUpdateProjectRequest, opts ...grpc.CallOption) (*AdminGetProjectResponse, error) + // Get admin logs + AdminGetAdminLogs(ctx context.Context, in *AdminGetAdminLogsRequest, opts ...grpc.CallOption) (*AdminGetAdminLogsResponse, error) + // Create user remark + AdminCreateUserRemark(ctx context.Context, in *AdminCreateUserRemarkRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Delete a user remark + AdminDeleteUserRemark(ctx context.Context, in *AdminDeleteUserRemarkRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Get SPLA reporting + AdminGetSplaReporting(ctx context.Context, in *AdminGetSplaReportingRequest, opts ...grpc.CallOption) (*AdminGetSplaReportingResponse, error) + // Get IP history + AdminGetIPHistory(ctx context.Context, in *AdminGetIPHistoryRequest, opts ...grpc.CallOption) (*AdminGetIPHistoryResponse, error) + // Get bills + AdminGetBills(ctx context.Context, in *AdminGetBillsRequest, opts ...grpc.CallOption) (*AdminGetBillsResponse, error) + // Sent the bill to the customer again + AdminResendBill(ctx context.Context, in *AdminResendBillRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Get bill details + AdminGetBill(ctx context.Context, in *AdminGetBillRequest, opts ...grpc.CallOption) (*AdminGetBillResponse, error) + // Download bill as pdf + AdminGetBillPdf(ctx context.Context, in *AdminGetBillPdfRequest, opts ...grpc.CallOption) (*AdminGetBillPdfResponse, error) + // Add payment to bill request + AdminAddBillPayment(ctx context.Context, in *AdminAddBillPaymentRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Refund a specific bill payment + AdminRefundBillPayment(ctx context.Context, in *AdminRefundBillPaymentRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Apply credit to a specific project + AdminApplyCreditToProject(ctx context.Context, in *AdminApplyCreditToProjectRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // List all regions with datacenters + AdminListRegions(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListRegionsResponse, error) + // Return a specific region + AdminGetRegion(ctx context.Context, in *AdminGetRegionRequest, opts ...grpc.CallOption) (*Region, error) + // Create a new region + AdminCreateRegion(ctx context.Context, in *AdminCreateRegionRequest, opts ...grpc.CallOption) (*Region, error) + // Update a existing region + AdminUpdateRegion(ctx context.Context, in *AdminUpdateRegionRequest, opts ...grpc.CallOption) (*Region, error) + // Add a datacenter to a region + AdminAddDatacenterToRegion(ctx context.Context, in *AdminAddDatacenterToRegionRequest, opts ...grpc.CallOption) (*DataCenter, error) + // Update a datacenter + AdminUpdateDatacenter(ctx context.Context, in *AdminUpdateDatacenterRequest, opts ...grpc.CallOption) (*DataCenter, error) + // Delete a datacenter + AdminDeleteDatacenter(ctx context.Context, in *AdminDeleteDatacenterRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Delete a region + AdminDeleteRegion(ctx context.Context, in *AdminDeleteRegionRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Lists all networks + AdminListNetworks(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListNetworksResponse, error) + // Create new network + AdminCreateNetwork(ctx context.Context, in *AdminCreateNetworkRequest, opts ...grpc.CallOption) (*Network, error) + // Delete a network + AdminDeleteNetwork(ctx context.Context, in *AdminDeleteNetworkRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Get a single network + AdminGetNetwork(ctx context.Context, in *AdminGetNetworkRequest, opts ...grpc.CallOption) (*Network, error) + // Updates a network + AdminUpdateNetwork(ctx context.Context, in *AdminUpdateNetworkRequest, opts ...grpc.CallOption) (*Network, error) + // Delete a subnet + AdminDeleteSubnet(ctx context.Context, in *AdminDeleteSubnetRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Create new subnet + AdminCreateSubnet(ctx context.Context, in *AdminCreateSubnetRequest, opts ...grpc.CallOption) (*Subnet, error) + // Updates a subnet + AdminUpdateSubnet(ctx context.Context, in *AdminUpdateSubnetRequest, opts ...grpc.CallOption) (*Subnet, error) + // Get all VLANs for datacenter + AdminListVlans(ctx context.Context, in *AdminListVlansRequest, opts ...grpc.CallOption) (*AdminListVlansResponse, error) + // Create a VLAN for a datacenter + AdminCreateVlan(ctx context.Context, in *AdminCreateVlanRequest, opts ...grpc.CallOption) (*VLAN, error) + // Delete a single VLAN + AdminDeleteVlan(ctx context.Context, in *AdminDeleteVlanRequest, opts ...grpc.CallOption) (*EmptyResponse, error) +} + +type adminAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewAdminAPIClient(cc grpc.ClientConnInterface) AdminAPIClient { + return &adminAPIClient{cc} +} + +func (c *adminAPIClient) AdminListServer(ctx context.Context, in *AdminListServerRequest, opts ...grpc.CallOption) (*AdminListServerResponse, error) { + out := new(AdminListServerResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListServer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetServer(ctx context.Context, in *AdminGetServerRequest, opts ...grpc.CallOption) (*AdminServer, error) { + out := new(AdminServer) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetServer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetServerLogs(ctx context.Context, in *AdminGetServerLogsRequest, opts ...grpc.CallOption) (*AdminGetServerLogsResponse, error) { + out := new(AdminGetServerLogsResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetServerLogs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetServerAlerts(ctx context.Context, in *AdminGetServerAlertsRequest, opts ...grpc.CallOption) (*AdminGetServerAlertsResponse, error) { + out := new(AdminGetServerAlertsResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetServerAlerts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteServerAlert(ctx context.Context, in *AdminDeleteServerAlertRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteServerAlert", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateServer(ctx context.Context, in *AdminUpdateServerRequest, opts ...grpc.CallOption) (*AdminServer, error) { + out := new(AdminServer) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateServer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteServer(ctx context.Context, in *AdminDeleteServerRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteServer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminChangeServerPowerStatus(ctx context.Context, in *AdminChangeServerPowerStatusRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminChangeServerPowerStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetServerVNCToken(ctx context.Context, in *AdminGetServerVNCTokenRequest, opts ...grpc.CallOption) (*AdminGetServerVNCTokenResponse, error) { + out := new(AdminGetServerVNCTokenResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetServerVNCToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetServerPlatformManagement(ctx context.Context, in *AdminGetServerPlatformManagementRequest, opts ...grpc.CallOption) (*PlatformManagement, error) { + out := new(PlatformManagement) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetServerPlatformManagement", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateServerJob(ctx context.Context, in *AdminCreateServerJobRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateServerJob", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListAvailableServer(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListAvailableServerResponse, error) { + out := new(AdminListAvailableServerResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListAvailableServer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminImportServer(ctx context.Context, in *AdminImportServerRequest, opts ...grpc.CallOption) (*AdminImportServerResponse, error) { + out := new(AdminImportServerResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminImportServer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateImage(ctx context.Context, in *AdminCreateImageRequest, opts ...grpc.CallOption) (*Image, error) { + out := new(Image) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateImage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListImages(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListImagesResponse, error) { + out := new(AdminListImagesResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListImages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetImage(ctx context.Context, in *AdminGetImageRequest, opts ...grpc.CallOption) (*Image, error) { + out := new(Image) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetImage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateImage(ctx context.Context, in *AdminUpdateImageRequest, opts ...grpc.CallOption) (*Image, error) { + out := new(Image) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateImage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteImage(ctx context.Context, in *AdminDeleteImageRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteImage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteImageVersion(ctx context.Context, in *AdminDeleteImageVersionRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteImageVersion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListOperatingSystems(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListOperatingSystemsResponse, error) { + out := new(AdminListOperatingSystemsResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListOperatingSystems", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteOperatingSystem(ctx context.Context, in *AdminDeleteOperatingSystemRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteOperatingSystem", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateOperatingSystem(ctx context.Context, in *AdminCreateOperatingSystemRequest, opts ...grpc.CallOption) (*OperatingSystem, error) { + out := new(OperatingSystem) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateOperatingSystem", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetOperatingSystem(ctx context.Context, in *AdminGetOperatingSystemRequest, opts ...grpc.CallOption) (*OperatingSystem, error) { + out := new(OperatingSystem) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetOperatingSystem", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateOperatingSystem(ctx context.Context, in *AdminUpdateOperatingSystemRequest, opts ...grpc.CallOption) (*OperatingSystem, error) { + out := new(OperatingSystem) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateOperatingSystem", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListFlavours(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListFlavoursResponse, error) { + out := new(AdminListFlavoursResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListFlavours", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetFlavour(ctx context.Context, in *AdminGetFlavourRequest, opts ...grpc.CallOption) (*AdminFlavour, error) { + out := new(AdminFlavour) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetFlavour", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteFlavour(ctx context.Context, in *AdminDeleteFlavourRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteFlavour", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateFlavour(ctx context.Context, in *AdminCreateFlavourRequest, opts ...grpc.CallOption) (*AdminFlavour, error) { + out := new(AdminFlavour) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateFlavour", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateFlavour(ctx context.Context, in *AdminUpdateFlavourRequest, opts ...grpc.CallOption) (*AdminFlavour, error) { + out := new(AdminFlavour) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateFlavour", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListSwitches(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListSwitchesResponse, error) { + out := new(AdminListSwitchesResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListSwitches", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetSwitch(ctx context.Context, in *AdminGetSwitchRequest, opts ...grpc.CallOption) (*Switch, error) { + out := new(Switch) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetSwitch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteSwitch(ctx context.Context, in *AdminDeleteSwitchRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteSwitch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateSwitch(ctx context.Context, in *AdminCreateSwitchRequest, opts ...grpc.CallOption) (*Switch, error) { + out := new(Switch) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateSwitch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateSwitch(ctx context.Context, in *AdminUpdateSwitchRequest, opts ...grpc.CallOption) (*Switch, error) { + out := new(Switch) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateSwitch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListAgents(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListAgentsResponse, error) { + out := new(AdminListAgentsResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListAgents", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateAgent(ctx context.Context, in *AdminCreateAgentRequest, opts ...grpc.CallOption) (*Agent, error) { + out := new(Agent) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateAgent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteAgent(ctx context.Context, in *AdminDeleteAgentRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteAgent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListVouchers(ctx context.Context, in *AdminListVouchersRequest, opts ...grpc.CallOption) (*AdminListVouchersResponse, error) { + out := new(AdminListVouchersResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListVouchers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateVouchers(ctx context.Context, in *AdminCreateVouchersRequest, opts ...grpc.CallOption) (*AdminCreateVouchersResponse, error) { + out := new(AdminCreateVouchersResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateVouchers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteVoucher(ctx context.Context, in *AdminDeleteVoucherRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteVoucher", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListUsers(ctx context.Context, in *AdminListUsersRequest, opts ...grpc.CallOption) (*AdminListUsersResponse, error) { + out := new(AdminListUsersResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListUsers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetUser(ctx context.Context, in *AdminGetUserRequest, opts ...grpc.CallOption) (*AdminGetUserResponse, error) { + out := new(AdminGetUserResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateUser(ctx context.Context, in *AdminUpdateUserRequest, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminImpersonateUser(ctx context.Context, in *AdminImpersonateUserRequest, opts ...grpc.CallOption) (*AdminImpersonateUserResponse, error) { + out := new(AdminImpersonateUserResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminImpersonateUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetUserBills(ctx context.Context, in *AdminGetUserBillsRequest, opts ...grpc.CallOption) (*AdminGetUserBillsResponse, error) { + out := new(AdminGetUserBillsResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetUserBills", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminLockUser(ctx context.Context, in *AdminLockUserRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminLockUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUnlockUser(ctx context.Context, in *AdminUnlockUserRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUnlockUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetProject(ctx context.Context, in *AdminGetProjectRequest, opts ...grpc.CallOption) (*AdminGetProjectResponse, error) { + out := new(AdminGetProjectResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetProjectNetworks(ctx context.Context, in *AdminGetProjectNetworksRequest, opts ...grpc.CallOption) (*AdminGetProjectNetworksResponse, error) { + out := new(AdminGetProjectNetworksResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetProjectNetworks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateProjectNetwork(ctx context.Context, in *AdminCreateProjectNetworkRequest, opts ...grpc.CallOption) (*Network, error) { + out := new(Network) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateProjectNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateProject(ctx context.Context, in *AdminUpdateProjectRequest, opts ...grpc.CallOption) (*AdminGetProjectResponse, error) { + out := new(AdminGetProjectResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetAdminLogs(ctx context.Context, in *AdminGetAdminLogsRequest, opts ...grpc.CallOption) (*AdminGetAdminLogsResponse, error) { + out := new(AdminGetAdminLogsResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetAdminLogs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateUserRemark(ctx context.Context, in *AdminCreateUserRemarkRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateUserRemark", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteUserRemark(ctx context.Context, in *AdminDeleteUserRemarkRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteUserRemark", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetSplaReporting(ctx context.Context, in *AdminGetSplaReportingRequest, opts ...grpc.CallOption) (*AdminGetSplaReportingResponse, error) { + out := new(AdminGetSplaReportingResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetSplaReporting", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetIPHistory(ctx context.Context, in *AdminGetIPHistoryRequest, opts ...grpc.CallOption) (*AdminGetIPHistoryResponse, error) { + out := new(AdminGetIPHistoryResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetIPHistory", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetBills(ctx context.Context, in *AdminGetBillsRequest, opts ...grpc.CallOption) (*AdminGetBillsResponse, error) { + out := new(AdminGetBillsResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetBills", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminResendBill(ctx context.Context, in *AdminResendBillRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminResendBill", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetBill(ctx context.Context, in *AdminGetBillRequest, opts ...grpc.CallOption) (*AdminGetBillResponse, error) { + out := new(AdminGetBillResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetBill", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetBillPdf(ctx context.Context, in *AdminGetBillPdfRequest, opts ...grpc.CallOption) (*AdminGetBillPdfResponse, error) { + out := new(AdminGetBillPdfResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetBillPdf", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminAddBillPayment(ctx context.Context, in *AdminAddBillPaymentRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminAddBillPayment", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminRefundBillPayment(ctx context.Context, in *AdminRefundBillPaymentRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminRefundBillPayment", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminApplyCreditToProject(ctx context.Context, in *AdminApplyCreditToProjectRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminApplyCreditToProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListRegions(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListRegionsResponse, error) { + out := new(AdminListRegionsResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListRegions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetRegion(ctx context.Context, in *AdminGetRegionRequest, opts ...grpc.CallOption) (*Region, error) { + out := new(Region) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetRegion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateRegion(ctx context.Context, in *AdminCreateRegionRequest, opts ...grpc.CallOption) (*Region, error) { + out := new(Region) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateRegion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateRegion(ctx context.Context, in *AdminUpdateRegionRequest, opts ...grpc.CallOption) (*Region, error) { + out := new(Region) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateRegion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminAddDatacenterToRegion(ctx context.Context, in *AdminAddDatacenterToRegionRequest, opts ...grpc.CallOption) (*DataCenter, error) { + out := new(DataCenter) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminAddDatacenterToRegion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateDatacenter(ctx context.Context, in *AdminUpdateDatacenterRequest, opts ...grpc.CallOption) (*DataCenter, error) { + out := new(DataCenter) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateDatacenter", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteDatacenter(ctx context.Context, in *AdminDeleteDatacenterRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteDatacenter", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteRegion(ctx context.Context, in *AdminDeleteRegionRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteRegion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListNetworks(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*AdminListNetworksResponse, error) { + out := new(AdminListNetworksResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListNetworks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateNetwork(ctx context.Context, in *AdminCreateNetworkRequest, opts ...grpc.CallOption) (*Network, error) { + out := new(Network) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteNetwork(ctx context.Context, in *AdminDeleteNetworkRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminGetNetwork(ctx context.Context, in *AdminGetNetworkRequest, opts ...grpc.CallOption) (*Network, error) { + out := new(Network) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminGetNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateNetwork(ctx context.Context, in *AdminUpdateNetworkRequest, opts ...grpc.CallOption) (*Network, error) { + out := new(Network) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteSubnet(ctx context.Context, in *AdminDeleteSubnetRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteSubnet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateSubnet(ctx context.Context, in *AdminCreateSubnetRequest, opts ...grpc.CallOption) (*Subnet, error) { + out := new(Subnet) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateSubnet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminUpdateSubnet(ctx context.Context, in *AdminUpdateSubnetRequest, opts ...grpc.CallOption) (*Subnet, error) { + out := new(Subnet) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminUpdateSubnet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminListVlans(ctx context.Context, in *AdminListVlansRequest, opts ...grpc.CallOption) (*AdminListVlansResponse, error) { + out := new(AdminListVlansResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminListVlans", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminCreateVlan(ctx context.Context, in *AdminCreateVlanRequest, opts ...grpc.CallOption) (*VLAN, error) { + out := new(VLAN) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminCreateVlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminAPIClient) AdminDeleteVlan(ctx context.Context, in *AdminDeleteVlanRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.AdminAPI/AdminDeleteVlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AdminAPIServer is the server API for AdminAPI service. +// All implementations must embed UnimplementedAdminAPIServer +// for forward compatibility +type AdminAPIServer interface { + // ListServer Lists all server + AdminListServer(context.Context, *AdminListServerRequest) (*AdminListServerResponse, error) + // GetServer Returns single server + AdminGetServer(context.Context, *AdminGetServerRequest) (*AdminServer, error) + // GetServerLogs Returns all server logs + AdminGetServerLogs(context.Context, *AdminGetServerLogsRequest) (*AdminGetServerLogsResponse, error) + // GetServerAlerts Returns all server alerts + AdminGetServerAlerts(context.Context, *AdminGetServerAlertsRequest) (*AdminGetServerAlertsResponse, error) + // AdminDeleteServerAlert Returns all server alerts + AdminDeleteServerAlert(context.Context, *AdminDeleteServerAlertRequest) (*EmptyResponse, error) + // Update a server and return it + AdminUpdateServer(context.Context, *AdminUpdateServerRequest) (*AdminServer, error) + // Delete a server from the system + AdminDeleteServer(context.Context, *AdminDeleteServerRequest) (*EmptyResponse, error) + // ChangeServerPowerStatus Change power status + AdminChangeServerPowerStatus(context.Context, *AdminChangeServerPowerStatusRequest) (*EmptyResponse, error) + // AdminGetServerVNCToken Returns a VNC token for server + AdminGetServerVNCToken(context.Context, *AdminGetServerVNCTokenRequest) (*AdminGetServerVNCTokenResponse, error) + // GetServerPlatformManagement Returns Platform Management data for server + AdminGetServerPlatformManagement(context.Context, *AdminGetServerPlatformManagementRequest) (*PlatformManagement, error) + // Creates a new server job + AdminCreateServerJob(context.Context, *AdminCreateServerJobRequest) (*EmptyResponse, error) + // List all available server from our Netbox Inventory + AdminListAvailableServer(context.Context, *EmptyRequest) (*AdminListAvailableServerResponse, error) + // Import servers from Netbox + AdminImportServer(context.Context, *AdminImportServerRequest) (*AdminImportServerResponse, error) + // Create a new public image + AdminCreateImage(context.Context, *AdminCreateImageRequest) (*Image, error) + // List all public images + AdminListImages(context.Context, *EmptyRequest) (*AdminListImagesResponse, error) + // Return a single public image by ID + AdminGetImage(context.Context, *AdminGetImageRequest) (*Image, error) + // Updates a public image + AdminUpdateImage(context.Context, *AdminUpdateImageRequest) (*Image, error) + // Deletes a public image + AdminDeleteImage(context.Context, *AdminDeleteImageRequest) (*EmptyResponse, error) + // DeleteImageVersion Delete a project image version + AdminDeleteImageVersion(context.Context, *AdminDeleteImageVersionRequest) (*EmptyResponse, error) + // Lists all operating systems + AdminListOperatingSystems(context.Context, *EmptyRequest) (*AdminListOperatingSystemsResponse, error) + // Delete a operating system + AdminDeleteOperatingSystem(context.Context, *AdminDeleteOperatingSystemRequest) (*EmptyResponse, error) + // Creates a new operating system + AdminCreateOperatingSystem(context.Context, *AdminCreateOperatingSystemRequest) (*OperatingSystem, error) + // Get a single operating system + AdminGetOperatingSystem(context.Context, *AdminGetOperatingSystemRequest) (*OperatingSystem, error) + // Update a single operating system + AdminUpdateOperatingSystem(context.Context, *AdminUpdateOperatingSystemRequest) (*OperatingSystem, error) + // List all existing flavours + AdminListFlavours(context.Context, *EmptyRequest) (*AdminListFlavoursResponse, error) + // Return a single flavour + AdminGetFlavour(context.Context, *AdminGetFlavourRequest) (*AdminFlavour, error) + // Delete a flavour + AdminDeleteFlavour(context.Context, *AdminDeleteFlavourRequest) (*EmptyResponse, error) + // Create a new flavour + AdminCreateFlavour(context.Context, *AdminCreateFlavourRequest) (*AdminFlavour, error) + // Update a existing flavour + AdminUpdateFlavour(context.Context, *AdminUpdateFlavourRequest) (*AdminFlavour, error) + // List all switches + AdminListSwitches(context.Context, *EmptyRequest) (*AdminListSwitchesResponse, error) + // Get a single switch + AdminGetSwitch(context.Context, *AdminGetSwitchRequest) (*Switch, error) + // Delete a switch + AdminDeleteSwitch(context.Context, *AdminDeleteSwitchRequest) (*EmptyResponse, error) + // Create a new switch + AdminCreateSwitch(context.Context, *AdminCreateSwitchRequest) (*Switch, error) + // Update a existing switch + AdminUpdateSwitch(context.Context, *AdminUpdateSwitchRequest) (*Switch, error) + // Returns a list with all agents + AdminListAgents(context.Context, *EmptyRequest) (*AdminListAgentsResponse, error) + // Creates a new agent + AdminCreateAgent(context.Context, *AdminCreateAgentRequest) (*Agent, error) + // Deletes a agent + AdminDeleteAgent(context.Context, *AdminDeleteAgentRequest) (*EmptyResponse, error) + // List all available vouchers + AdminListVouchers(context.Context, *AdminListVouchersRequest) (*AdminListVouchersResponse, error) + // Create new voucher(s) + AdminCreateVouchers(context.Context, *AdminCreateVouchersRequest) (*AdminCreateVouchersResponse, error) + // Delete a specified voucher + AdminDeleteVoucher(context.Context, *AdminDeleteVoucherRequest) (*EmptyResponse, error) + // List all registered users + AdminListUsers(context.Context, *AdminListUsersRequest) (*AdminListUsersResponse, error) + // Get user information + AdminGetUser(context.Context, *AdminGetUserRequest) (*AdminGetUserResponse, error) + // UpdateUser + AdminUpdateUser(context.Context, *AdminUpdateUserRequest) (*User, error) + // Impersonate user + AdminImpersonateUser(context.Context, *AdminImpersonateUserRequest) (*AdminImpersonateUserResponse, error) + // Get user bills + AdminGetUserBills(context.Context, *AdminGetUserBillsRequest) (*AdminGetUserBillsResponse, error) + // Impersonate user + AdminLockUser(context.Context, *AdminLockUserRequest) (*EmptyResponse, error) + // Impersonate user + AdminUnlockUser(context.Context, *AdminUnlockUserRequest) (*EmptyResponse, error) + // Get project by ID + AdminGetProject(context.Context, *AdminGetProjectRequest) (*AdminGetProjectResponse, error) + // Get project specific networks + AdminGetProjectNetworks(context.Context, *AdminGetProjectNetworksRequest) (*AdminGetProjectNetworksResponse, error) + // Create a new project network + AdminCreateProjectNetwork(context.Context, *AdminCreateProjectNetworkRequest) (*Network, error) + // Admin update project + AdminUpdateProject(context.Context, *AdminUpdateProjectRequest) (*AdminGetProjectResponse, error) + // Get admin logs + AdminGetAdminLogs(context.Context, *AdminGetAdminLogsRequest) (*AdminGetAdminLogsResponse, error) + // Create user remark + AdminCreateUserRemark(context.Context, *AdminCreateUserRemarkRequest) (*EmptyResponse, error) + // Delete a user remark + AdminDeleteUserRemark(context.Context, *AdminDeleteUserRemarkRequest) (*EmptyResponse, error) + // Get SPLA reporting + AdminGetSplaReporting(context.Context, *AdminGetSplaReportingRequest) (*AdminGetSplaReportingResponse, error) + // Get IP history + AdminGetIPHistory(context.Context, *AdminGetIPHistoryRequest) (*AdminGetIPHistoryResponse, error) + // Get bills + AdminGetBills(context.Context, *AdminGetBillsRequest) (*AdminGetBillsResponse, error) + // Sent the bill to the customer again + AdminResendBill(context.Context, *AdminResendBillRequest) (*EmptyResponse, error) + // Get bill details + AdminGetBill(context.Context, *AdminGetBillRequest) (*AdminGetBillResponse, error) + // Download bill as pdf + AdminGetBillPdf(context.Context, *AdminGetBillPdfRequest) (*AdminGetBillPdfResponse, error) + // Add payment to bill request + AdminAddBillPayment(context.Context, *AdminAddBillPaymentRequest) (*EmptyResponse, error) + // Refund a specific bill payment + AdminRefundBillPayment(context.Context, *AdminRefundBillPaymentRequest) (*EmptyResponse, error) + // Apply credit to a specific project + AdminApplyCreditToProject(context.Context, *AdminApplyCreditToProjectRequest) (*EmptyResponse, error) + // List all regions with datacenters + AdminListRegions(context.Context, *EmptyRequest) (*AdminListRegionsResponse, error) + // Return a specific region + AdminGetRegion(context.Context, *AdminGetRegionRequest) (*Region, error) + // Create a new region + AdminCreateRegion(context.Context, *AdminCreateRegionRequest) (*Region, error) + // Update a existing region + AdminUpdateRegion(context.Context, *AdminUpdateRegionRequest) (*Region, error) + // Add a datacenter to a region + AdminAddDatacenterToRegion(context.Context, *AdminAddDatacenterToRegionRequest) (*DataCenter, error) + // Update a datacenter + AdminUpdateDatacenter(context.Context, *AdminUpdateDatacenterRequest) (*DataCenter, error) + // Delete a datacenter + AdminDeleteDatacenter(context.Context, *AdminDeleteDatacenterRequest) (*EmptyResponse, error) + // Delete a region + AdminDeleteRegion(context.Context, *AdminDeleteRegionRequest) (*EmptyResponse, error) + // Lists all networks + AdminListNetworks(context.Context, *EmptyRequest) (*AdminListNetworksResponse, error) + // Create new network + AdminCreateNetwork(context.Context, *AdminCreateNetworkRequest) (*Network, error) + // Delete a network + AdminDeleteNetwork(context.Context, *AdminDeleteNetworkRequest) (*EmptyResponse, error) + // Get a single network + AdminGetNetwork(context.Context, *AdminGetNetworkRequest) (*Network, error) + // Updates a network + AdminUpdateNetwork(context.Context, *AdminUpdateNetworkRequest) (*Network, error) + // Delete a subnet + AdminDeleteSubnet(context.Context, *AdminDeleteSubnetRequest) (*EmptyResponse, error) + // Create new subnet + AdminCreateSubnet(context.Context, *AdminCreateSubnetRequest) (*Subnet, error) + // Updates a subnet + AdminUpdateSubnet(context.Context, *AdminUpdateSubnetRequest) (*Subnet, error) + // Get all VLANs for datacenter + AdminListVlans(context.Context, *AdminListVlansRequest) (*AdminListVlansResponse, error) + // Create a VLAN for a datacenter + AdminCreateVlan(context.Context, *AdminCreateVlanRequest) (*VLAN, error) + // Delete a single VLAN + AdminDeleteVlan(context.Context, *AdminDeleteVlanRequest) (*EmptyResponse, error) + mustEmbedUnimplementedAdminAPIServer() +} + +// UnimplementedAdminAPIServer must be embedded to have forward compatible implementations. +type UnimplementedAdminAPIServer struct { +} + +func (UnimplementedAdminAPIServer) AdminListServer(context.Context, *AdminListServerRequest) (*AdminListServerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListServer not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetServer(context.Context, *AdminGetServerRequest) (*AdminServer, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetServer not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetServerLogs(context.Context, *AdminGetServerLogsRequest) (*AdminGetServerLogsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetServerLogs not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetServerAlerts(context.Context, *AdminGetServerAlertsRequest) (*AdminGetServerAlertsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetServerAlerts not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteServerAlert(context.Context, *AdminDeleteServerAlertRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteServerAlert not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateServer(context.Context, *AdminUpdateServerRequest) (*AdminServer, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateServer not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteServer(context.Context, *AdminDeleteServerRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteServer not implemented") +} +func (UnimplementedAdminAPIServer) AdminChangeServerPowerStatus(context.Context, *AdminChangeServerPowerStatusRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminChangeServerPowerStatus not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetServerVNCToken(context.Context, *AdminGetServerVNCTokenRequest) (*AdminGetServerVNCTokenResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetServerVNCToken not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetServerPlatformManagement(context.Context, *AdminGetServerPlatformManagementRequest) (*PlatformManagement, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetServerPlatformManagement not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateServerJob(context.Context, *AdminCreateServerJobRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateServerJob not implemented") +} +func (UnimplementedAdminAPIServer) AdminListAvailableServer(context.Context, *EmptyRequest) (*AdminListAvailableServerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListAvailableServer not implemented") +} +func (UnimplementedAdminAPIServer) AdminImportServer(context.Context, *AdminImportServerRequest) (*AdminImportServerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminImportServer not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateImage(context.Context, *AdminCreateImageRequest) (*Image, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateImage not implemented") +} +func (UnimplementedAdminAPIServer) AdminListImages(context.Context, *EmptyRequest) (*AdminListImagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListImages not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetImage(context.Context, *AdminGetImageRequest) (*Image, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetImage not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateImage(context.Context, *AdminUpdateImageRequest) (*Image, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateImage not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteImage(context.Context, *AdminDeleteImageRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteImage not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteImageVersion(context.Context, *AdminDeleteImageVersionRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteImageVersion not implemented") +} +func (UnimplementedAdminAPIServer) AdminListOperatingSystems(context.Context, *EmptyRequest) (*AdminListOperatingSystemsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListOperatingSystems not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteOperatingSystem(context.Context, *AdminDeleteOperatingSystemRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteOperatingSystem not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateOperatingSystem(context.Context, *AdminCreateOperatingSystemRequest) (*OperatingSystem, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateOperatingSystem not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetOperatingSystem(context.Context, *AdminGetOperatingSystemRequest) (*OperatingSystem, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetOperatingSystem not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateOperatingSystem(context.Context, *AdminUpdateOperatingSystemRequest) (*OperatingSystem, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateOperatingSystem not implemented") +} +func (UnimplementedAdminAPIServer) AdminListFlavours(context.Context, *EmptyRequest) (*AdminListFlavoursResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListFlavours not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetFlavour(context.Context, *AdminGetFlavourRequest) (*AdminFlavour, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetFlavour not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteFlavour(context.Context, *AdminDeleteFlavourRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteFlavour not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateFlavour(context.Context, *AdminCreateFlavourRequest) (*AdminFlavour, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateFlavour not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateFlavour(context.Context, *AdminUpdateFlavourRequest) (*AdminFlavour, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateFlavour not implemented") +} +func (UnimplementedAdminAPIServer) AdminListSwitches(context.Context, *EmptyRequest) (*AdminListSwitchesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListSwitches not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetSwitch(context.Context, *AdminGetSwitchRequest) (*Switch, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetSwitch not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteSwitch(context.Context, *AdminDeleteSwitchRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteSwitch not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateSwitch(context.Context, *AdminCreateSwitchRequest) (*Switch, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateSwitch not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateSwitch(context.Context, *AdminUpdateSwitchRequest) (*Switch, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateSwitch not implemented") +} +func (UnimplementedAdminAPIServer) AdminListAgents(context.Context, *EmptyRequest) (*AdminListAgentsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListAgents not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateAgent(context.Context, *AdminCreateAgentRequest) (*Agent, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateAgent not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteAgent(context.Context, *AdminDeleteAgentRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteAgent not implemented") +} +func (UnimplementedAdminAPIServer) AdminListVouchers(context.Context, *AdminListVouchersRequest) (*AdminListVouchersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListVouchers not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateVouchers(context.Context, *AdminCreateVouchersRequest) (*AdminCreateVouchersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateVouchers not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteVoucher(context.Context, *AdminDeleteVoucherRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteVoucher not implemented") +} +func (UnimplementedAdminAPIServer) AdminListUsers(context.Context, *AdminListUsersRequest) (*AdminListUsersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListUsers not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetUser(context.Context, *AdminGetUserRequest) (*AdminGetUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetUser not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateUser(context.Context, *AdminUpdateUserRequest) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateUser not implemented") +} +func (UnimplementedAdminAPIServer) AdminImpersonateUser(context.Context, *AdminImpersonateUserRequest) (*AdminImpersonateUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminImpersonateUser not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetUserBills(context.Context, *AdminGetUserBillsRequest) (*AdminGetUserBillsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetUserBills not implemented") +} +func (UnimplementedAdminAPIServer) AdminLockUser(context.Context, *AdminLockUserRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminLockUser not implemented") +} +func (UnimplementedAdminAPIServer) AdminUnlockUser(context.Context, *AdminUnlockUserRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUnlockUser not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetProject(context.Context, *AdminGetProjectRequest) (*AdminGetProjectResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetProject not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetProjectNetworks(context.Context, *AdminGetProjectNetworksRequest) (*AdminGetProjectNetworksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetProjectNetworks not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateProjectNetwork(context.Context, *AdminCreateProjectNetworkRequest) (*Network, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateProjectNetwork not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateProject(context.Context, *AdminUpdateProjectRequest) (*AdminGetProjectResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateProject not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetAdminLogs(context.Context, *AdminGetAdminLogsRequest) (*AdminGetAdminLogsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetAdminLogs not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateUserRemark(context.Context, *AdminCreateUserRemarkRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateUserRemark not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteUserRemark(context.Context, *AdminDeleteUserRemarkRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteUserRemark not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetSplaReporting(context.Context, *AdminGetSplaReportingRequest) (*AdminGetSplaReportingResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetSplaReporting not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetIPHistory(context.Context, *AdminGetIPHistoryRequest) (*AdminGetIPHistoryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetIPHistory not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetBills(context.Context, *AdminGetBillsRequest) (*AdminGetBillsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetBills not implemented") +} +func (UnimplementedAdminAPIServer) AdminResendBill(context.Context, *AdminResendBillRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminResendBill not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetBill(context.Context, *AdminGetBillRequest) (*AdminGetBillResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetBill not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetBillPdf(context.Context, *AdminGetBillPdfRequest) (*AdminGetBillPdfResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetBillPdf not implemented") +} +func (UnimplementedAdminAPIServer) AdminAddBillPayment(context.Context, *AdminAddBillPaymentRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminAddBillPayment not implemented") +} +func (UnimplementedAdminAPIServer) AdminRefundBillPayment(context.Context, *AdminRefundBillPaymentRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminRefundBillPayment not implemented") +} +func (UnimplementedAdminAPIServer) AdminApplyCreditToProject(context.Context, *AdminApplyCreditToProjectRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminApplyCreditToProject not implemented") +} +func (UnimplementedAdminAPIServer) AdminListRegions(context.Context, *EmptyRequest) (*AdminListRegionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListRegions not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetRegion(context.Context, *AdminGetRegionRequest) (*Region, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetRegion not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateRegion(context.Context, *AdminCreateRegionRequest) (*Region, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateRegion not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateRegion(context.Context, *AdminUpdateRegionRequest) (*Region, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateRegion not implemented") +} +func (UnimplementedAdminAPIServer) AdminAddDatacenterToRegion(context.Context, *AdminAddDatacenterToRegionRequest) (*DataCenter, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminAddDatacenterToRegion not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateDatacenter(context.Context, *AdminUpdateDatacenterRequest) (*DataCenter, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateDatacenter not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteDatacenter(context.Context, *AdminDeleteDatacenterRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteDatacenter not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteRegion(context.Context, *AdminDeleteRegionRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteRegion not implemented") +} +func (UnimplementedAdminAPIServer) AdminListNetworks(context.Context, *EmptyRequest) (*AdminListNetworksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListNetworks not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateNetwork(context.Context, *AdminCreateNetworkRequest) (*Network, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateNetwork not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteNetwork(context.Context, *AdminDeleteNetworkRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteNetwork not implemented") +} +func (UnimplementedAdminAPIServer) AdminGetNetwork(context.Context, *AdminGetNetworkRequest) (*Network, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminGetNetwork not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateNetwork(context.Context, *AdminUpdateNetworkRequest) (*Network, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateNetwork not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteSubnet(context.Context, *AdminDeleteSubnetRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteSubnet not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateSubnet(context.Context, *AdminCreateSubnetRequest) (*Subnet, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateSubnet not implemented") +} +func (UnimplementedAdminAPIServer) AdminUpdateSubnet(context.Context, *AdminUpdateSubnetRequest) (*Subnet, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateSubnet not implemented") +} +func (UnimplementedAdminAPIServer) AdminListVlans(context.Context, *AdminListVlansRequest) (*AdminListVlansResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminListVlans not implemented") +} +func (UnimplementedAdminAPIServer) AdminCreateVlan(context.Context, *AdminCreateVlanRequest) (*VLAN, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminCreateVlan not implemented") +} +func (UnimplementedAdminAPIServer) AdminDeleteVlan(context.Context, *AdminDeleteVlanRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminDeleteVlan not implemented") +} +func (UnimplementedAdminAPIServer) mustEmbedUnimplementedAdminAPIServer() {} + +// UnsafeAdminAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AdminAPIServer will +// result in compilation errors. +type UnsafeAdminAPIServer interface { + mustEmbedUnimplementedAdminAPIServer() +} + +func RegisterAdminAPIServer(s grpc.ServiceRegistrar, srv AdminAPIServer) { + s.RegisterService(&AdminAPI_ServiceDesc, srv) +} + +func _AdminAPI_AdminListServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminListServerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListServer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListServer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListServer(ctx, req.(*AdminListServerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetServerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetServer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetServer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetServer(ctx, req.(*AdminGetServerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetServerLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetServerLogsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetServerLogs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetServerLogs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetServerLogs(ctx, req.(*AdminGetServerLogsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetServerAlerts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetServerAlertsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetServerAlerts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetServerAlerts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetServerAlerts(ctx, req.(*AdminGetServerAlertsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteServerAlert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteServerAlertRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteServerAlert(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteServerAlert", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteServerAlert(ctx, req.(*AdminDeleteServerAlertRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateServerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateServer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateServer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateServer(ctx, req.(*AdminUpdateServerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteServerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteServer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteServer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteServer(ctx, req.(*AdminDeleteServerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminChangeServerPowerStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminChangeServerPowerStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminChangeServerPowerStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminChangeServerPowerStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminChangeServerPowerStatus(ctx, req.(*AdminChangeServerPowerStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetServerVNCToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetServerVNCTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetServerVNCToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetServerVNCToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetServerVNCToken(ctx, req.(*AdminGetServerVNCTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetServerPlatformManagement_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetServerPlatformManagementRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetServerPlatformManagement(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetServerPlatformManagement", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetServerPlatformManagement(ctx, req.(*AdminGetServerPlatformManagementRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateServerJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateServerJobRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateServerJob(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateServerJob", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateServerJob(ctx, req.(*AdminCreateServerJobRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListAvailableServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListAvailableServer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListAvailableServer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListAvailableServer(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminImportServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminImportServerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminImportServer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminImportServer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminImportServer(ctx, req.(*AdminImportServerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateImageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateImage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateImage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateImage(ctx, req.(*AdminCreateImageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListImages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListImages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListImages(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetImageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetImage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetImage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetImage(ctx, req.(*AdminGetImageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateImageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateImage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateImage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateImage(ctx, req.(*AdminUpdateImageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteImageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteImage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteImage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteImage(ctx, req.(*AdminDeleteImageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteImageVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteImageVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteImageVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteImageVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteImageVersion(ctx, req.(*AdminDeleteImageVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListOperatingSystems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListOperatingSystems(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListOperatingSystems", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListOperatingSystems(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteOperatingSystem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteOperatingSystemRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteOperatingSystem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteOperatingSystem", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteOperatingSystem(ctx, req.(*AdminDeleteOperatingSystemRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateOperatingSystem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateOperatingSystemRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateOperatingSystem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateOperatingSystem", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateOperatingSystem(ctx, req.(*AdminCreateOperatingSystemRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetOperatingSystem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetOperatingSystemRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetOperatingSystem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetOperatingSystem", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetOperatingSystem(ctx, req.(*AdminGetOperatingSystemRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateOperatingSystem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateOperatingSystemRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateOperatingSystem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateOperatingSystem", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateOperatingSystem(ctx, req.(*AdminUpdateOperatingSystemRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListFlavours_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListFlavours(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListFlavours", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListFlavours(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetFlavour_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetFlavourRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetFlavour(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetFlavour", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetFlavour(ctx, req.(*AdminGetFlavourRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteFlavour_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteFlavourRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteFlavour(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteFlavour", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteFlavour(ctx, req.(*AdminDeleteFlavourRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateFlavour_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateFlavourRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateFlavour(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateFlavour", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateFlavour(ctx, req.(*AdminCreateFlavourRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateFlavour_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateFlavourRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateFlavour(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateFlavour", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateFlavour(ctx, req.(*AdminUpdateFlavourRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListSwitches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListSwitches(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListSwitches", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListSwitches(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetSwitch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetSwitchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetSwitch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetSwitch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetSwitch(ctx, req.(*AdminGetSwitchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteSwitch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteSwitchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteSwitch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteSwitch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteSwitch(ctx, req.(*AdminDeleteSwitchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateSwitch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateSwitchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateSwitch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateSwitch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateSwitch(ctx, req.(*AdminCreateSwitchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateSwitch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateSwitchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateSwitch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateSwitch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateSwitch(ctx, req.(*AdminUpdateSwitchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListAgents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListAgents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListAgents", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListAgents(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateAgentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateAgent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateAgent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateAgent(ctx, req.(*AdminCreateAgentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteAgentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteAgent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteAgent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteAgent(ctx, req.(*AdminDeleteAgentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListVouchers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminListVouchersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListVouchers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListVouchers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListVouchers(ctx, req.(*AdminListVouchersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateVouchers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateVouchersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateVouchers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateVouchers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateVouchers(ctx, req.(*AdminCreateVouchersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteVoucher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteVoucherRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteVoucher(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteVoucher", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteVoucher(ctx, req.(*AdminDeleteVoucherRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminListUsersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListUsers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListUsers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListUsers(ctx, req.(*AdminListUsersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetUser(ctx, req.(*AdminGetUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateUser(ctx, req.(*AdminUpdateUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminImpersonateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminImpersonateUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminImpersonateUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminImpersonateUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminImpersonateUser(ctx, req.(*AdminImpersonateUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetUserBills_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetUserBillsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetUserBills(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetUserBills", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetUserBills(ctx, req.(*AdminGetUserBillsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminLockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminLockUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminLockUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminLockUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminLockUser(ctx, req.(*AdminLockUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUnlockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUnlockUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUnlockUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUnlockUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUnlockUser(ctx, req.(*AdminUnlockUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetProject(ctx, req.(*AdminGetProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetProjectNetworks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetProjectNetworksRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetProjectNetworks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetProjectNetworks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetProjectNetworks(ctx, req.(*AdminGetProjectNetworksRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateProjectNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateProjectNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateProjectNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateProjectNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateProjectNetwork(ctx, req.(*AdminCreateProjectNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateProject(ctx, req.(*AdminUpdateProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetAdminLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetAdminLogsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetAdminLogs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetAdminLogs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetAdminLogs(ctx, req.(*AdminGetAdminLogsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateUserRemark_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateUserRemarkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateUserRemark(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateUserRemark", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateUserRemark(ctx, req.(*AdminCreateUserRemarkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteUserRemark_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteUserRemarkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteUserRemark(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteUserRemark", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteUserRemark(ctx, req.(*AdminDeleteUserRemarkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetSplaReporting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetSplaReportingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetSplaReporting(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetSplaReporting", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetSplaReporting(ctx, req.(*AdminGetSplaReportingRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetIPHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetIPHistoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetIPHistory(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetIPHistory", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetIPHistory(ctx, req.(*AdminGetIPHistoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetBills_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetBillsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetBills(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetBills", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetBills(ctx, req.(*AdminGetBillsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminResendBill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminResendBillRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminResendBill(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminResendBill", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminResendBill(ctx, req.(*AdminResendBillRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetBill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetBillRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetBill(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetBill", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetBill(ctx, req.(*AdminGetBillRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetBillPdf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetBillPdfRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetBillPdf(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetBillPdf", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetBillPdf(ctx, req.(*AdminGetBillPdfRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminAddBillPayment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminAddBillPaymentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminAddBillPayment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminAddBillPayment", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminAddBillPayment(ctx, req.(*AdminAddBillPaymentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminRefundBillPayment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminRefundBillPaymentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminRefundBillPayment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminRefundBillPayment", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminRefundBillPayment(ctx, req.(*AdminRefundBillPaymentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminApplyCreditToProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminApplyCreditToProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminApplyCreditToProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminApplyCreditToProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminApplyCreditToProject(ctx, req.(*AdminApplyCreditToProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListRegions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListRegions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListRegions(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetRegionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetRegion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetRegion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetRegion(ctx, req.(*AdminGetRegionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateRegionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateRegion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateRegion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateRegion(ctx, req.(*AdminCreateRegionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateRegionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateRegion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateRegion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateRegion(ctx, req.(*AdminUpdateRegionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminAddDatacenterToRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminAddDatacenterToRegionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminAddDatacenterToRegion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminAddDatacenterToRegion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminAddDatacenterToRegion(ctx, req.(*AdminAddDatacenterToRegionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateDatacenter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateDatacenterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateDatacenter(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateDatacenter", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateDatacenter(ctx, req.(*AdminUpdateDatacenterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteDatacenter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteDatacenterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteDatacenter(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteDatacenter", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteDatacenter(ctx, req.(*AdminDeleteDatacenterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteRegionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteRegion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteRegion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteRegion(ctx, req.(*AdminDeleteRegionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListNetworks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListNetworks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListNetworks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListNetworks(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateNetwork(ctx, req.(*AdminCreateNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteNetwork(ctx, req.(*AdminDeleteNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminGetNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminGetNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminGetNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminGetNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminGetNetwork(ctx, req.(*AdminGetNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateNetwork(ctx, req.(*AdminUpdateNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteSubnet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteSubnetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteSubnet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteSubnet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteSubnet(ctx, req.(*AdminDeleteSubnetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateSubnet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateSubnetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateSubnet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateSubnet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateSubnet(ctx, req.(*AdminCreateSubnetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminUpdateSubnet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateSubnetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminUpdateSubnet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminUpdateSubnet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminUpdateSubnet(ctx, req.(*AdminUpdateSubnetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminListVlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminListVlansRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminListVlans(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminListVlans", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminListVlans(ctx, req.(*AdminListVlansRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminCreateVlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminCreateVlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminCreateVlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminCreateVlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminCreateVlan(ctx, req.(*AdminCreateVlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminAPI_AdminDeleteVlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminDeleteVlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminAPIServer).AdminDeleteVlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.AdminAPI/AdminDeleteVlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminAPIServer).AdminDeleteVlan(ctx, req.(*AdminDeleteVlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// AdminAPI_ServiceDesc is the grpc.ServiceDesc for AdminAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AdminAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.AdminAPI", + HandlerType: (*AdminAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AdminListServer", + Handler: _AdminAPI_AdminListServer_Handler, + }, + { + MethodName: "AdminGetServer", + Handler: _AdminAPI_AdminGetServer_Handler, + }, + { + MethodName: "AdminGetServerLogs", + Handler: _AdminAPI_AdminGetServerLogs_Handler, + }, + { + MethodName: "AdminGetServerAlerts", + Handler: _AdminAPI_AdminGetServerAlerts_Handler, + }, + { + MethodName: "AdminDeleteServerAlert", + Handler: _AdminAPI_AdminDeleteServerAlert_Handler, + }, + { + MethodName: "AdminUpdateServer", + Handler: _AdminAPI_AdminUpdateServer_Handler, + }, + { + MethodName: "AdminDeleteServer", + Handler: _AdminAPI_AdminDeleteServer_Handler, + }, + { + MethodName: "AdminChangeServerPowerStatus", + Handler: _AdminAPI_AdminChangeServerPowerStatus_Handler, + }, + { + MethodName: "AdminGetServerVNCToken", + Handler: _AdminAPI_AdminGetServerVNCToken_Handler, + }, + { + MethodName: "AdminGetServerPlatformManagement", + Handler: _AdminAPI_AdminGetServerPlatformManagement_Handler, + }, + { + MethodName: "AdminCreateServerJob", + Handler: _AdminAPI_AdminCreateServerJob_Handler, + }, + { + MethodName: "AdminListAvailableServer", + Handler: _AdminAPI_AdminListAvailableServer_Handler, + }, + { + MethodName: "AdminImportServer", + Handler: _AdminAPI_AdminImportServer_Handler, + }, + { + MethodName: "AdminCreateImage", + Handler: _AdminAPI_AdminCreateImage_Handler, + }, + { + MethodName: "AdminListImages", + Handler: _AdminAPI_AdminListImages_Handler, + }, + { + MethodName: "AdminGetImage", + Handler: _AdminAPI_AdminGetImage_Handler, + }, + { + MethodName: "AdminUpdateImage", + Handler: _AdminAPI_AdminUpdateImage_Handler, + }, + { + MethodName: "AdminDeleteImage", + Handler: _AdminAPI_AdminDeleteImage_Handler, + }, + { + MethodName: "AdminDeleteImageVersion", + Handler: _AdminAPI_AdminDeleteImageVersion_Handler, + }, + { + MethodName: "AdminListOperatingSystems", + Handler: _AdminAPI_AdminListOperatingSystems_Handler, + }, + { + MethodName: "AdminDeleteOperatingSystem", + Handler: _AdminAPI_AdminDeleteOperatingSystem_Handler, + }, + { + MethodName: "AdminCreateOperatingSystem", + Handler: _AdminAPI_AdminCreateOperatingSystem_Handler, + }, + { + MethodName: "AdminGetOperatingSystem", + Handler: _AdminAPI_AdminGetOperatingSystem_Handler, + }, + { + MethodName: "AdminUpdateOperatingSystem", + Handler: _AdminAPI_AdminUpdateOperatingSystem_Handler, + }, + { + MethodName: "AdminListFlavours", + Handler: _AdminAPI_AdminListFlavours_Handler, + }, + { + MethodName: "AdminGetFlavour", + Handler: _AdminAPI_AdminGetFlavour_Handler, + }, + { + MethodName: "AdminDeleteFlavour", + Handler: _AdminAPI_AdminDeleteFlavour_Handler, + }, + { + MethodName: "AdminCreateFlavour", + Handler: _AdminAPI_AdminCreateFlavour_Handler, + }, + { + MethodName: "AdminUpdateFlavour", + Handler: _AdminAPI_AdminUpdateFlavour_Handler, + }, + { + MethodName: "AdminListSwitches", + Handler: _AdminAPI_AdminListSwitches_Handler, + }, + { + MethodName: "AdminGetSwitch", + Handler: _AdminAPI_AdminGetSwitch_Handler, + }, + { + MethodName: "AdminDeleteSwitch", + Handler: _AdminAPI_AdminDeleteSwitch_Handler, + }, + { + MethodName: "AdminCreateSwitch", + Handler: _AdminAPI_AdminCreateSwitch_Handler, + }, + { + MethodName: "AdminUpdateSwitch", + Handler: _AdminAPI_AdminUpdateSwitch_Handler, + }, + { + MethodName: "AdminListAgents", + Handler: _AdminAPI_AdminListAgents_Handler, + }, + { + MethodName: "AdminCreateAgent", + Handler: _AdminAPI_AdminCreateAgent_Handler, + }, + { + MethodName: "AdminDeleteAgent", + Handler: _AdminAPI_AdminDeleteAgent_Handler, + }, + { + MethodName: "AdminListVouchers", + Handler: _AdminAPI_AdminListVouchers_Handler, + }, + { + MethodName: "AdminCreateVouchers", + Handler: _AdminAPI_AdminCreateVouchers_Handler, + }, + { + MethodName: "AdminDeleteVoucher", + Handler: _AdminAPI_AdminDeleteVoucher_Handler, + }, + { + MethodName: "AdminListUsers", + Handler: _AdminAPI_AdminListUsers_Handler, + }, + { + MethodName: "AdminGetUser", + Handler: _AdminAPI_AdminGetUser_Handler, + }, + { + MethodName: "AdminUpdateUser", + Handler: _AdminAPI_AdminUpdateUser_Handler, + }, + { + MethodName: "AdminImpersonateUser", + Handler: _AdminAPI_AdminImpersonateUser_Handler, + }, + { + MethodName: "AdminGetUserBills", + Handler: _AdminAPI_AdminGetUserBills_Handler, + }, + { + MethodName: "AdminLockUser", + Handler: _AdminAPI_AdminLockUser_Handler, + }, + { + MethodName: "AdminUnlockUser", + Handler: _AdminAPI_AdminUnlockUser_Handler, + }, + { + MethodName: "AdminGetProject", + Handler: _AdminAPI_AdminGetProject_Handler, + }, + { + MethodName: "AdminGetProjectNetworks", + Handler: _AdminAPI_AdminGetProjectNetworks_Handler, + }, + { + MethodName: "AdminCreateProjectNetwork", + Handler: _AdminAPI_AdminCreateProjectNetwork_Handler, + }, + { + MethodName: "AdminUpdateProject", + Handler: _AdminAPI_AdminUpdateProject_Handler, + }, + { + MethodName: "AdminGetAdminLogs", + Handler: _AdminAPI_AdminGetAdminLogs_Handler, + }, + { + MethodName: "AdminCreateUserRemark", + Handler: _AdminAPI_AdminCreateUserRemark_Handler, + }, + { + MethodName: "AdminDeleteUserRemark", + Handler: _AdminAPI_AdminDeleteUserRemark_Handler, + }, + { + MethodName: "AdminGetSplaReporting", + Handler: _AdminAPI_AdminGetSplaReporting_Handler, + }, + { + MethodName: "AdminGetIPHistory", + Handler: _AdminAPI_AdminGetIPHistory_Handler, + }, + { + MethodName: "AdminGetBills", + Handler: _AdminAPI_AdminGetBills_Handler, + }, + { + MethodName: "AdminResendBill", + Handler: _AdminAPI_AdminResendBill_Handler, + }, + { + MethodName: "AdminGetBill", + Handler: _AdminAPI_AdminGetBill_Handler, + }, + { + MethodName: "AdminGetBillPdf", + Handler: _AdminAPI_AdminGetBillPdf_Handler, + }, + { + MethodName: "AdminAddBillPayment", + Handler: _AdminAPI_AdminAddBillPayment_Handler, + }, + { + MethodName: "AdminRefundBillPayment", + Handler: _AdminAPI_AdminRefundBillPayment_Handler, + }, + { + MethodName: "AdminApplyCreditToProject", + Handler: _AdminAPI_AdminApplyCreditToProject_Handler, + }, + { + MethodName: "AdminListRegions", + Handler: _AdminAPI_AdminListRegions_Handler, + }, + { + MethodName: "AdminGetRegion", + Handler: _AdminAPI_AdminGetRegion_Handler, + }, + { + MethodName: "AdminCreateRegion", + Handler: _AdminAPI_AdminCreateRegion_Handler, + }, + { + MethodName: "AdminUpdateRegion", + Handler: _AdminAPI_AdminUpdateRegion_Handler, + }, + { + MethodName: "AdminAddDatacenterToRegion", + Handler: _AdminAPI_AdminAddDatacenterToRegion_Handler, + }, + { + MethodName: "AdminUpdateDatacenter", + Handler: _AdminAPI_AdminUpdateDatacenter_Handler, + }, + { + MethodName: "AdminDeleteDatacenter", + Handler: _AdminAPI_AdminDeleteDatacenter_Handler, + }, + { + MethodName: "AdminDeleteRegion", + Handler: _AdminAPI_AdminDeleteRegion_Handler, + }, + { + MethodName: "AdminListNetworks", + Handler: _AdminAPI_AdminListNetworks_Handler, + }, + { + MethodName: "AdminCreateNetwork", + Handler: _AdminAPI_AdminCreateNetwork_Handler, + }, + { + MethodName: "AdminDeleteNetwork", + Handler: _AdminAPI_AdminDeleteNetwork_Handler, + }, + { + MethodName: "AdminGetNetwork", + Handler: _AdminAPI_AdminGetNetwork_Handler, + }, + { + MethodName: "AdminUpdateNetwork", + Handler: _AdminAPI_AdminUpdateNetwork_Handler, + }, + { + MethodName: "AdminDeleteSubnet", + Handler: _AdminAPI_AdminDeleteSubnet_Handler, + }, + { + MethodName: "AdminCreateSubnet", + Handler: _AdminAPI_AdminCreateSubnet_Handler, + }, + { + MethodName: "AdminUpdateSubnet", + Handler: _AdminAPI_AdminUpdateSubnet_Handler, + }, + { + MethodName: "AdminListVlans", + Handler: _AdminAPI_AdminListVlans_Handler, + }, + { + MethodName: "AdminCreateVlan", + Handler: _AdminAPI_AdminCreateVlan_Handler, + }, + { + MethodName: "AdminDeleteVlan", + Handler: _AdminAPI_AdminDeleteVlan_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "admin_service.proto", +} diff --git a/pkg/gpcloud/ptypes/agent.pb.go b/pkg/gpcloud/ptypes/agent.pb.go new file mode 100644 index 0000000..ad6f0e0 --- /dev/null +++ b/pkg/gpcloud/ptypes/agent.pb.go @@ -0,0 +1,554 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: agent.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type AgentType int32 + +const ( + AgentType_NETWORK_AGENT AgentType = 0 +) + +// Enum value maps for AgentType. +var ( + AgentType_name = map[int32]string{ + 0: "NETWORK_AGENT", + } + AgentType_value = map[string]int32{ + "NETWORK_AGENT": 0, + } +) + +func (x AgentType) Enum() *AgentType { + p := new(AgentType) + *p = x + return p +} + +func (x AgentType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AgentType) Descriptor() protoreflect.EnumDescriptor { + return file_agent_proto_enumTypes[0].Descriptor() +} + +func (AgentType) Type() protoreflect.EnumType { + return &file_agent_proto_enumTypes[0] +} + +func (x AgentType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AgentType.Descriptor instead. +func (AgentType) EnumDescriptor() ([]byte, []int) { + return file_agent_proto_rawDescGZIP(), []int{0} +} + +type AgentCertificate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CertificateAuthority string `protobuf:"bytes,1,opt,name=certificate_authority,json=certificateAuthority,proto3" json:"certificate_authority,omitempty"` + Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` +} + +func (x *AgentCertificate) Reset() { + *x = AgentCertificate{} + if protoimpl.UnsafeEnabled { + mi := &file_agent_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AgentCertificate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AgentCertificate) ProtoMessage() {} + +func (x *AgentCertificate) ProtoReflect() protoreflect.Message { + mi := &file_agent_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 AgentCertificate.ProtoReflect.Descriptor instead. +func (*AgentCertificate) Descriptor() ([]byte, []int) { + return file_agent_proto_rawDescGZIP(), []int{0} +} + +func (x *AgentCertificate) GetCertificateAuthority() string { + if x != nil { + return x.CertificateAuthority + } + return "" +} + +func (x *AgentCertificate) GetCertificate() string { + if x != nil { + return x.Certificate + } + return "" +} + +func (x *AgentCertificate) GetPrivateKey() string { + if x != nil { + return x.PrivateKey + } + return "" +} + +type Agent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type AgentType `protobuf:"varint,2,opt,name=type,proto3,enum=api.agent.AgentType" json:"type,omitempty"` + Datacenter *DataCenter `protobuf:"bytes,3,opt,name=datacenter,proto3" json:"datacenter,omitempty"` + Fqdn string `protobuf:"bytes,4,opt,name=fqdn,proto3" json:"fqdn,omitempty"` + Certificate *AgentCertificate `protobuf:"bytes,5,opt,name=certificate,proto3" json:"certificate,omitempty"` + LastContactAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_contact_at,json=lastContactAt,proto3" json:"last_contact_at,omitempty"` +} + +func (x *Agent) Reset() { + *x = Agent{} + if protoimpl.UnsafeEnabled { + mi := &file_agent_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Agent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Agent) ProtoMessage() {} + +func (x *Agent) ProtoReflect() protoreflect.Message { + mi := &file_agent_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 Agent.ProtoReflect.Descriptor instead. +func (*Agent) Descriptor() ([]byte, []int) { + return file_agent_proto_rawDescGZIP(), []int{1} +} + +func (x *Agent) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Agent) GetType() AgentType { + if x != nil { + return x.Type + } + return AgentType_NETWORK_AGENT +} + +func (x *Agent) GetDatacenter() *DataCenter { + if x != nil { + return x.Datacenter + } + return nil +} + +func (x *Agent) GetFqdn() string { + if x != nil { + return x.Fqdn + } + return "" +} + +func (x *Agent) GetCertificate() *AgentCertificate { + if x != nil { + return x.Certificate + } + return nil +} + +func (x *Agent) GetLastContactAt() *timestamppb.Timestamp { + if x != nil { + return x.LastContactAt + } + return nil +} + +type AdminCreateAgentRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type AgentType `protobuf:"varint,1,opt,name=type,proto3,enum=api.agent.AgentType" json:"type,omitempty"` + DatacenterId string `protobuf:"bytes,2,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` + Fqdn string `protobuf:"bytes,3,opt,name=fqdn,proto3" json:"fqdn,omitempty"` +} + +func (x *AdminCreateAgentRequest) Reset() { + *x = AdminCreateAgentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agent_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateAgentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateAgentRequest) ProtoMessage() {} + +func (x *AdminCreateAgentRequest) ProtoReflect() protoreflect.Message { + mi := &file_agent_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 AdminCreateAgentRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateAgentRequest) Descriptor() ([]byte, []int) { + return file_agent_proto_rawDescGZIP(), []int{2} +} + +func (x *AdminCreateAgentRequest) GetType() AgentType { + if x != nil { + return x.Type + } + return AgentType_NETWORK_AGENT +} + +func (x *AdminCreateAgentRequest) GetDatacenterId() string { + if x != nil { + return x.DatacenterId + } + return "" +} + +func (x *AdminCreateAgentRequest) GetFqdn() string { + if x != nil { + return x.Fqdn + } + return "" +} + +type AdminDeleteAgentRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteAgentRequest) Reset() { + *x = AdminDeleteAgentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agent_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteAgentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteAgentRequest) ProtoMessage() {} + +func (x *AdminDeleteAgentRequest) ProtoReflect() protoreflect.Message { + mi := &file_agent_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 AdminDeleteAgentRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteAgentRequest) Descriptor() ([]byte, []int) { + return file_agent_proto_rawDescGZIP(), []int{3} +} + +func (x *AdminDeleteAgentRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminListAgentsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Agents []*Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` +} + +func (x *AdminListAgentsResponse) Reset() { + *x = AdminListAgentsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agent_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListAgentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListAgentsResponse) ProtoMessage() {} + +func (x *AdminListAgentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_agent_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 AdminListAgentsResponse.ProtoReflect.Descriptor instead. +func (*AdminListAgentsResponse) Descriptor() ([]byte, []int) { + return file_agent_proto_rawDescGZIP(), []int{4} +} + +func (x *AdminListAgentsResponse) GetAgents() []*Agent { + if x != nil { + return x.Agents + } + return nil +} + +var File_agent_proto protoreflect.FileDescriptor + +var file_agent_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x61, + 0x70, 0x69, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x01, 0x0a, 0x10, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x15, + 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x22, 0x90, 0x02, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x66, 0x71, 0x64, 0x6e, 0x12, 0x3d, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x12, 0x42, 0x0a, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x63, 0x74, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x63, 0x74, 0x41, 0x74, 0x22, 0x7c, 0x0a, 0x17, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x66, 0x71, 0x64, 0x6e, 0x22, 0x29, 0x0a, 0x17, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e, 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, 0x43, 0x0a, 0x17, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2a, 0x1e, 0x0a, 0x09, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x41, 0x47, + 0x45, 0x4e, 0x54, 0x10, 0x00, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, + 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_agent_proto_rawDescOnce sync.Once + file_agent_proto_rawDescData = file_agent_proto_rawDesc +) + +func file_agent_proto_rawDescGZIP() []byte { + file_agent_proto_rawDescOnce.Do(func() { + file_agent_proto_rawDescData = protoimpl.X.CompressGZIP(file_agent_proto_rawDescData) + }) + return file_agent_proto_rawDescData +} + +var file_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_agent_proto_goTypes = []interface{}{ + (AgentType)(0), // 0: api.agent.AgentType + (*AgentCertificate)(nil), // 1: api.agent.AgentCertificate + (*Agent)(nil), // 2: api.agent.Agent + (*AdminCreateAgentRequest)(nil), // 3: api.agent.AdminCreateAgentRequest + (*AdminDeleteAgentRequest)(nil), // 4: api.agent.AdminDeleteAgentRequest + (*AdminListAgentsResponse)(nil), // 5: api.agent.AdminListAgentsResponse + (*DataCenter)(nil), // 6: api.region.DataCenter + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp +} +var file_agent_proto_depIdxs = []int32{ + 0, // 0: api.agent.Agent.type:type_name -> api.agent.AgentType + 6, // 1: api.agent.Agent.datacenter:type_name -> api.region.DataCenter + 1, // 2: api.agent.Agent.certificate:type_name -> api.agent.AgentCertificate + 7, // 3: api.agent.Agent.last_contact_at:type_name -> google.protobuf.Timestamp + 0, // 4: api.agent.AdminCreateAgentRequest.type:type_name -> api.agent.AgentType + 2, // 5: api.agent.AdminListAgentsResponse.agents:type_name -> api.agent.Agent + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_agent_proto_init() } +func file_agent_proto_init() { + if File_agent_proto != nil { + return + } + file_region_proto_init() + if !protoimpl.UnsafeEnabled { + file_agent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AgentCertificate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Agent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agent_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateAgentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agent_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteAgentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agent_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListAgentsResponse); 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_agent_proto_rawDesc, + NumEnums: 1, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_agent_proto_goTypes, + DependencyIndexes: file_agent_proto_depIdxs, + EnumInfos: file_agent_proto_enumTypes, + MessageInfos: file_agent_proto_msgTypes, + }.Build() + File_agent_proto = out.File + file_agent_proto_rawDesc = nil + file_agent_proto_goTypes = nil + file_agent_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/agent_service.pb.go b/pkg/gpcloud/ptypes/agent_service.pb.go new file mode 100644 index 0000000..a81be4d --- /dev/null +++ b/pkg/gpcloud/ptypes/agent_service.pb.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: agent_service.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +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) +) + +var File_agent_service_proto protoreflect.FileDescriptor + +var file_agent_service_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x0d, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x97, 0x03, 0x0a, 0x13, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x54, + 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, + 0x68, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x53, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0d, 0x53, + 0x68, 0x75, 0x74, 0x4f, 0x66, 0x66, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x20, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x68, 0x75, 0x74, 0x4f, 0x66, + 0x66, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x48, + 0x43, 0x50, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x1b, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_agent_service_proto_goTypes = []interface{}{ + (*ConfigureSwitchPortRequest)(nil), // 0: api.network.ConfigureSwitchPortRequest + (*RebootServerRequest)(nil), // 1: api.server.RebootServerRequest + (*ShutOffServerRequest)(nil), // 2: api.server.ShutOffServerRequest + (*EmptyRequest)(nil), // 3: api.EmptyRequest + (*ConfigurePlatformManagementRequest)(nil), // 4: api.server.ConfigurePlatformManagementRequest + (*EmptyResponse)(nil), // 5: api.EmptyResponse +} +var file_agent_service_proto_depIdxs = []int32{ + 0, // 0: api.NetworkAgentService.ConfigureSwitchPort:input_type -> api.network.ConfigureSwitchPortRequest + 1, // 1: api.NetworkAgentService.RebootServer:input_type -> api.server.RebootServerRequest + 2, // 2: api.NetworkAgentService.ShutOffServer:input_type -> api.server.ShutOffServerRequest + 3, // 3: api.NetworkAgentService.UpdateDHCP:input_type -> api.EmptyRequest + 4, // 4: api.NetworkAgentService.ConfigurePlatformManagement:input_type -> api.server.ConfigurePlatformManagementRequest + 5, // 5: api.NetworkAgentService.ConfigureSwitchPort:output_type -> api.EmptyResponse + 5, // 6: api.NetworkAgentService.RebootServer:output_type -> api.EmptyResponse + 5, // 7: api.NetworkAgentService.ShutOffServer:output_type -> api.EmptyResponse + 5, // 8: api.NetworkAgentService.UpdateDHCP:output_type -> api.EmptyResponse + 5, // 9: api.NetworkAgentService.ConfigurePlatformManagement:output_type -> api.EmptyResponse + 5, // [5:10] is the sub-list for method output_type + 0, // [0:5] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_agent_service_proto_init() } +func file_agent_service_proto_init() { + if File_agent_service_proto != nil { + return + } + file_generic_proto_init() + file_network_proto_init() + file_server_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_agent_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_agent_service_proto_goTypes, + DependencyIndexes: file_agent_service_proto_depIdxs, + }.Build() + File_agent_service_proto = out.File + file_agent_service_proto_rawDesc = nil + file_agent_service_proto_goTypes = nil + file_agent_service_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/agent_service_grpc.pb.go b/pkg/gpcloud/ptypes/agent_service_grpc.pb.go new file mode 100644 index 0000000..ee52770 --- /dev/null +++ b/pkg/gpcloud/ptypes/agent_service_grpc.pb.go @@ -0,0 +1,255 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package ptypes + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// NetworkAgentServiceClient is the client API for NetworkAgentService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type NetworkAgentServiceClient interface { + // RebootServer Reboots the server via Platform Management + ConfigureSwitchPort(ctx context.Context, in *ConfigureSwitchPortRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // RebootServer Reboots the server via Platform Management + RebootServer(ctx context.Context, in *RebootServerRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // ShutOffServer Shutdowns the server via Platform Management + ShutOffServer(ctx context.Context, in *ShutOffServerRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // UpdateDHCP Updates the DHCP server config and reloads it + UpdateDHCP(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // ConfigurePlatformManagement Configures the platform management + ConfigurePlatformManagement(ctx context.Context, in *ConfigurePlatformManagementRequest, opts ...grpc.CallOption) (*EmptyResponse, error) +} + +type networkAgentServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewNetworkAgentServiceClient(cc grpc.ClientConnInterface) NetworkAgentServiceClient { + return &networkAgentServiceClient{cc} +} + +func (c *networkAgentServiceClient) ConfigureSwitchPort(ctx context.Context, in *ConfigureSwitchPortRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.NetworkAgentService/ConfigureSwitchPort", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *networkAgentServiceClient) RebootServer(ctx context.Context, in *RebootServerRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.NetworkAgentService/RebootServer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *networkAgentServiceClient) ShutOffServer(ctx context.Context, in *ShutOffServerRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.NetworkAgentService/ShutOffServer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *networkAgentServiceClient) UpdateDHCP(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.NetworkAgentService/UpdateDHCP", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *networkAgentServiceClient) ConfigurePlatformManagement(ctx context.Context, in *ConfigurePlatformManagementRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.NetworkAgentService/ConfigurePlatformManagement", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NetworkAgentServiceServer is the server API for NetworkAgentService service. +// All implementations must embed UnimplementedNetworkAgentServiceServer +// for forward compatibility +type NetworkAgentServiceServer interface { + // RebootServer Reboots the server via Platform Management + ConfigureSwitchPort(context.Context, *ConfigureSwitchPortRequest) (*EmptyResponse, error) + // RebootServer Reboots the server via Platform Management + RebootServer(context.Context, *RebootServerRequest) (*EmptyResponse, error) + // ShutOffServer Shutdowns the server via Platform Management + ShutOffServer(context.Context, *ShutOffServerRequest) (*EmptyResponse, error) + // UpdateDHCP Updates the DHCP server config and reloads it + UpdateDHCP(context.Context, *EmptyRequest) (*EmptyResponse, error) + // ConfigurePlatformManagement Configures the platform management + ConfigurePlatformManagement(context.Context, *ConfigurePlatformManagementRequest) (*EmptyResponse, error) + mustEmbedUnimplementedNetworkAgentServiceServer() +} + +// UnimplementedNetworkAgentServiceServer must be embedded to have forward compatible implementations. +type UnimplementedNetworkAgentServiceServer struct { +} + +func (UnimplementedNetworkAgentServiceServer) ConfigureSwitchPort(context.Context, *ConfigureSwitchPortRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ConfigureSwitchPort not implemented") +} +func (UnimplementedNetworkAgentServiceServer) RebootServer(context.Context, *RebootServerRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RebootServer not implemented") +} +func (UnimplementedNetworkAgentServiceServer) ShutOffServer(context.Context, *ShutOffServerRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ShutOffServer not implemented") +} +func (UnimplementedNetworkAgentServiceServer) UpdateDHCP(context.Context, *EmptyRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateDHCP not implemented") +} +func (UnimplementedNetworkAgentServiceServer) ConfigurePlatformManagement(context.Context, *ConfigurePlatformManagementRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ConfigurePlatformManagement not implemented") +} +func (UnimplementedNetworkAgentServiceServer) mustEmbedUnimplementedNetworkAgentServiceServer() {} + +// UnsafeNetworkAgentServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to NetworkAgentServiceServer will +// result in compilation errors. +type UnsafeNetworkAgentServiceServer interface { + mustEmbedUnimplementedNetworkAgentServiceServer() +} + +func RegisterNetworkAgentServiceServer(s grpc.ServiceRegistrar, srv NetworkAgentServiceServer) { + s.RegisterService(&NetworkAgentService_ServiceDesc, srv) +} + +func _NetworkAgentService_ConfigureSwitchPort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ConfigureSwitchPortRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NetworkAgentServiceServer).ConfigureSwitchPort(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.NetworkAgentService/ConfigureSwitchPort", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NetworkAgentServiceServer).ConfigureSwitchPort(ctx, req.(*ConfigureSwitchPortRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NetworkAgentService_RebootServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RebootServerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NetworkAgentServiceServer).RebootServer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.NetworkAgentService/RebootServer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NetworkAgentServiceServer).RebootServer(ctx, req.(*RebootServerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NetworkAgentService_ShutOffServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ShutOffServerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NetworkAgentServiceServer).ShutOffServer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.NetworkAgentService/ShutOffServer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NetworkAgentServiceServer).ShutOffServer(ctx, req.(*ShutOffServerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NetworkAgentService_UpdateDHCP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NetworkAgentServiceServer).UpdateDHCP(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.NetworkAgentService/UpdateDHCP", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NetworkAgentServiceServer).UpdateDHCP(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NetworkAgentService_ConfigurePlatformManagement_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ConfigurePlatformManagementRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NetworkAgentServiceServer).ConfigurePlatformManagement(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.NetworkAgentService/ConfigurePlatformManagement", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NetworkAgentServiceServer).ConfigurePlatformManagement(ctx, req.(*ConfigurePlatformManagementRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// NetworkAgentService_ServiceDesc is the grpc.ServiceDesc for NetworkAgentService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var NetworkAgentService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.NetworkAgentService", + HandlerType: (*NetworkAgentServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ConfigureSwitchPort", + Handler: _NetworkAgentService_ConfigureSwitchPort_Handler, + }, + { + MethodName: "RebootServer", + Handler: _NetworkAgentService_RebootServer_Handler, + }, + { + MethodName: "ShutOffServer", + Handler: _NetworkAgentService_ShutOffServer_Handler, + }, + { + MethodName: "UpdateDHCP", + Handler: _NetworkAgentService_UpdateDHCP_Handler, + }, + { + MethodName: "ConfigurePlatformManagement", + Handler: _NetworkAgentService_ConfigurePlatformManagement_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "agent_service.proto", +} diff --git a/pkg/gpcloud/ptypes/basic.pb.go b/pkg/gpcloud/ptypes/basic.pb.go new file mode 100644 index 0000000..3a0d0f7 --- /dev/null +++ b/pkg/gpcloud/ptypes/basic.pb.go @@ -0,0 +1,251 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: basic.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type BasicProject struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` +} + +func (x *BasicProject) Reset() { + *x = BasicProject{} + if protoimpl.UnsafeEnabled { + mi := &file_basic_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BasicProject) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BasicProject) ProtoMessage() {} + +func (x *BasicProject) ProtoReflect() protoreflect.Message { + mi := &file_basic_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 BasicProject.ProtoReflect.Descriptor instead. +func (*BasicProject) Descriptor() ([]byte, []int) { + return file_basic_proto_rawDescGZIP(), []int{0} +} + +func (x *BasicProject) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *BasicProject) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *BasicProject) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +type BasicUser struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` +} + +func (x *BasicUser) Reset() { + *x = BasicUser{} + if protoimpl.UnsafeEnabled { + mi := &file_basic_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BasicUser) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BasicUser) ProtoMessage() {} + +func (x *BasicUser) ProtoReflect() protoreflect.Message { + mi := &file_basic_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 BasicUser.ProtoReflect.Descriptor instead. +func (*BasicUser) Descriptor() ([]byte, []int) { + return file_basic_proto_rawDescGZIP(), []int{1} +} + +func (x *BasicUser) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *BasicUser) GetFullName() string { + if x != nil { + return x.FullName + } + return "" +} + +func (x *BasicUser) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *BasicUser) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +var File_basic_proto protoreflect.FileDescriptor + +var file_basic_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x61, + 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x69, 0x63, 0x22, 0x4a, 0x0a, 0x0c, 0x42, 0x61, 0x73, 0x69, + 0x63, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, + 0x61, 0x74, 0x61, 0x72, 0x22, 0x66, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x55, 0x73, 0x65, + 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, + 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x42, 0x16, 0x5a, 0x14, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_basic_proto_rawDescOnce sync.Once + file_basic_proto_rawDescData = file_basic_proto_rawDesc +) + +func file_basic_proto_rawDescGZIP() []byte { + file_basic_proto_rawDescOnce.Do(func() { + file_basic_proto_rawDescData = protoimpl.X.CompressGZIP(file_basic_proto_rawDescData) + }) + return file_basic_proto_rawDescData +} + +var file_basic_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_basic_proto_goTypes = []interface{}{ + (*BasicProject)(nil), // 0: api.basic.BasicProject + (*BasicUser)(nil), // 1: api.basic.BasicUser +} +var file_basic_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_basic_proto_init() } +func file_basic_proto_init() { + if File_basic_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_basic_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BasicProject); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_basic_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BasicUser); 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_basic_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_basic_proto_goTypes, + DependencyIndexes: file_basic_proto_depIdxs, + MessageInfos: file_basic_proto_msgTypes, + }.Build() + File_basic_proto = out.File + file_basic_proto_rawDesc = nil + file_basic_proto_goTypes = nil + file_basic_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/billing.pb.go b/pkg/gpcloud/ptypes/billing.pb.go new file mode 100644 index 0000000..c166809 --- /dev/null +++ b/pkg/gpcloud/ptypes/billing.pb.go @@ -0,0 +1,587 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: billing.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type Product int32 + +const ( + Product_CREDIT Product = 0 + Product_VOUCHER Product = 1 + Product_COMPUTE Product = 2 + Product_WINDOWS_LICENSE Product = 3 + Product_SUPPORT Product = 4 + Product_TRAFFIC Product = 5 +) + +// Enum value maps for Product. +var ( + Product_name = map[int32]string{ + 0: "CREDIT", + 1: "VOUCHER", + 2: "COMPUTE", + 3: "WINDOWS_LICENSE", + 4: "SUPPORT", + 5: "TRAFFIC", + } + Product_value = map[string]int32{ + "CREDIT": 0, + "VOUCHER": 1, + "COMPUTE": 2, + "WINDOWS_LICENSE": 3, + "SUPPORT": 4, + "TRAFFIC": 5, + } +) + +func (x Product) Enum() *Product { + p := new(Product) + *p = x + return p +} + +func (x Product) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Product) Descriptor() protoreflect.EnumDescriptor { + return file_billing_proto_enumTypes[0].Descriptor() +} + +func (Product) Type() protoreflect.EnumType { + return &file_billing_proto_enumTypes[0] +} + +func (x Product) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Product.Descriptor instead. +func (Product) EnumDescriptor() ([]byte, []int) { + return file_billing_proto_rawDescGZIP(), []int{0} +} + +type BillStatus int32 + +const ( + BillStatus_UNPAID BillStatus = 0 + BillStatus_PAID BillStatus = 1 + BillStatus_CANCELLED BillStatus = 2 + BillStatus_REFUNDED BillStatus = 3 + BillStatus_ERROR BillStatus = 4 +) + +// Enum value maps for BillStatus. +var ( + BillStatus_name = map[int32]string{ + 0: "UNPAID", + 1: "PAID", + 2: "CANCELLED", + 3: "REFUNDED", + 4: "ERROR", + } + BillStatus_value = map[string]int32{ + "UNPAID": 0, + "PAID": 1, + "CANCELLED": 2, + "REFUNDED": 3, + "ERROR": 4, + } +) + +func (x BillStatus) Enum() *BillStatus { + p := new(BillStatus) + *p = x + return p +} + +func (x BillStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BillStatus) Descriptor() protoreflect.EnumDescriptor { + return file_billing_proto_enumTypes[1].Descriptor() +} + +func (BillStatus) Type() protoreflect.EnumType { + return &file_billing_proto_enumTypes[1] +} + +func (x BillStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BillStatus.Descriptor instead. +func (BillStatus) EnumDescriptor() ([]byte, []int) { + return file_billing_proto_rawDescGZIP(), []int{1} +} + +type Bill struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"` + Final bool `protobuf:"varint,3,opt,name=final,proto3" json:"final,omitempty"` + Currency string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"` + Vat int32 `protobuf:"varint,5,opt,name=vat,proto3" json:"vat,omitempty"` + Net *Price `protobuf:"bytes,6,opt,name=net,proto3" json:"net,omitempty"` + Gross *Price `protobuf:"bytes,7,opt,name=gross,proto3" json:"gross,omitempty"` + Status BillStatus `protobuf:"varint,8,opt,name=status,proto3,enum=api.billing.BillStatus" json:"status,omitempty"` + PaymentMethod PaymentMethod `protobuf:"varint,9,opt,name=payment_method,json=paymentMethod,proto3,enum=api.payment.PaymentMethod" json:"payment_method,omitempty"` + Items []*BillItem `protobuf:"bytes,10,rep,name=items,proto3" json:"items,omitempty"` + OutstandingNet *Price `protobuf:"bytes,11,opt,name=outstanding_net,json=outstandingNet,proto3" json:"outstanding_net,omitempty"` + OutstandingGross *Price `protobuf:"bytes,12,opt,name=outstanding_gross,json=outstandingGross,proto3" json:"outstanding_gross,omitempty"` + DueAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=due_at,json=dueAt,proto3" json:"due_at,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + User *BasicUser `protobuf:"bytes,15,opt,name=user,proto3" json:"user,omitempty"` + Project *BasicProject `protobuf:"bytes,16,opt,name=project,proto3" json:"project,omitempty"` + OutstandingBalance *Price `protobuf:"bytes,17,opt,name=outstanding_balance,json=outstandingBalance,proto3" json:"outstanding_balance,omitempty"` +} + +func (x *Bill) Reset() { + *x = Bill{} + if protoimpl.UnsafeEnabled { + mi := &file_billing_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Bill) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Bill) ProtoMessage() {} + +func (x *Bill) ProtoReflect() protoreflect.Message { + mi := &file_billing_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 Bill.ProtoReflect.Descriptor instead. +func (*Bill) Descriptor() ([]byte, []int) { + return file_billing_proto_rawDescGZIP(), []int{0} +} + +func (x *Bill) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Bill) GetNumber() string { + if x != nil { + return x.Number + } + return "" +} + +func (x *Bill) GetFinal() bool { + if x != nil { + return x.Final + } + return false +} + +func (x *Bill) GetCurrency() string { + if x != nil { + return x.Currency + } + return "" +} + +func (x *Bill) GetVat() int32 { + if x != nil { + return x.Vat + } + return 0 +} + +func (x *Bill) GetNet() *Price { + if x != nil { + return x.Net + } + return nil +} + +func (x *Bill) GetGross() *Price { + if x != nil { + return x.Gross + } + return nil +} + +func (x *Bill) GetStatus() BillStatus { + if x != nil { + return x.Status + } + return BillStatus_UNPAID +} + +func (x *Bill) GetPaymentMethod() PaymentMethod { + if x != nil { + return x.PaymentMethod + } + return PaymentMethod_CREDIT_CARD +} + +func (x *Bill) GetItems() []*BillItem { + if x != nil { + return x.Items + } + return nil +} + +func (x *Bill) GetOutstandingNet() *Price { + if x != nil { + return x.OutstandingNet + } + return nil +} + +func (x *Bill) GetOutstandingGross() *Price { + if x != nil { + return x.OutstandingGross + } + return nil +} + +func (x *Bill) GetDueAt() *timestamppb.Timestamp { + if x != nil { + return x.DueAt + } + return nil +} + +func (x *Bill) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Bill) GetUser() *BasicUser { + if x != nil { + return x.User + } + return nil +} + +func (x *Bill) GetProject() *BasicProject { + if x != nil { + return x.Project + } + return nil +} + +func (x *Bill) GetOutstandingBalance() *Price { + if x != nil { + return x.OutstandingBalance + } + return nil +} + +type BillItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Product Product `protobuf:"varint,2,opt,name=product,proto3,enum=api.billing.Product" json:"product,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Price *Price `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"` + StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + EndedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` +} + +func (x *BillItem) Reset() { + *x = BillItem{} + if protoimpl.UnsafeEnabled { + mi := &file_billing_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BillItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BillItem) ProtoMessage() {} + +func (x *BillItem) ProtoReflect() protoreflect.Message { + mi := &file_billing_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 BillItem.ProtoReflect.Descriptor instead. +func (*BillItem) Descriptor() ([]byte, []int) { + return file_billing_proto_rawDescGZIP(), []int{1} +} + +func (x *BillItem) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *BillItem) GetProduct() Product { + if x != nil { + return x.Product + } + return Product_CREDIT +} + +func (x *BillItem) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *BillItem) GetPrice() *Price { + if x != nil { + return x.Price + } + return nil +} + +func (x *BillItem) GetStartedAt() *timestamppb.Timestamp { + if x != nil { + return x.StartedAt + } + return nil +} + +func (x *BillItem) GetEndedAt() *timestamppb.Timestamp { + if x != nil { + return x.EndedAt + } + return nil +} + +var File_billing_proto protoreflect.FileDescriptor + +var file_billing_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x62, 0x61, + 0x73, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x05, 0x0a, 0x04, 0x42, 0x69, 0x6c, + 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x6e, + 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x12, + 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x76, + 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x61, 0x74, 0x12, 0x1c, 0x0a, + 0x03, 0x6e, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x03, 0x6e, 0x65, 0x74, 0x12, 0x20, 0x0a, 0x05, 0x67, + 0x72, 0x6f, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x73, 0x73, 0x12, 0x2f, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x42, 0x69, 0x6c, 0x6c, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x41, + 0x0a, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, + 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x52, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x12, 0x2b, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x42, + 0x69, 0x6c, 0x6c, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x33, + 0x0a, 0x0f, 0x6f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6e, 0x65, + 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x52, 0x0e, 0x6f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x4e, 0x65, 0x74, 0x12, 0x37, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x5f, 0x67, 0x72, 0x6f, 0x73, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x73, + 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x06, + 0x64, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x64, 0x75, 0x65, 0x41, 0x74, 0x12, + 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, + 0x61, 0x73, 0x69, 0x63, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, + 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x69, + 0x63, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3b, 0x0a, 0x13, 0x6f, 0x75, 0x74, 0x73, 0x74, + 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x11, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x52, 0x12, 0x6f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x22, 0x80, 0x02, 0x0a, 0x08, 0x42, 0x69, 0x6c, 0x6c, 0x49, 0x74, 0x65, + 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x2e, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, + 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, + 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x05, + 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, + 0x65, 0x6e, 0x64, 0x65, 0x64, 0x41, 0x74, 0x2a, 0x5e, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x64, 0x75, + 0x63, 0x74, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x45, 0x44, 0x49, 0x54, 0x10, 0x00, 0x12, 0x0b, + 0x0a, 0x07, 0x56, 0x4f, 0x55, 0x43, 0x48, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, + 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x57, 0x49, 0x4e, 0x44, + 0x4f, 0x57, 0x53, 0x5f, 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, 0x10, 0x03, 0x12, 0x0b, 0x0a, + 0x07, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x52, + 0x41, 0x46, 0x46, 0x49, 0x43, 0x10, 0x05, 0x2a, 0x4a, 0x0a, 0x0a, 0x42, 0x69, 0x6c, 0x6c, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x4e, 0x50, 0x41, 0x49, 0x44, 0x10, + 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x41, 0x49, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, + 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, + 0x46, 0x55, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x10, 0x04, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_billing_proto_rawDescOnce sync.Once + file_billing_proto_rawDescData = file_billing_proto_rawDesc +) + +func file_billing_proto_rawDescGZIP() []byte { + file_billing_proto_rawDescOnce.Do(func() { + file_billing_proto_rawDescData = protoimpl.X.CompressGZIP(file_billing_proto_rawDescData) + }) + return file_billing_proto_rawDescData +} + +var file_billing_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_billing_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_billing_proto_goTypes = []interface{}{ + (Product)(0), // 0: api.billing.Product + (BillStatus)(0), // 1: api.billing.BillStatus + (*Bill)(nil), // 2: api.billing.Bill + (*BillItem)(nil), // 3: api.billing.BillItem + (*Price)(nil), // 4: api.Price + (PaymentMethod)(0), // 5: api.payment.PaymentMethod + (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*BasicUser)(nil), // 7: api.basic.BasicUser + (*BasicProject)(nil), // 8: api.basic.BasicProject +} +var file_billing_proto_depIdxs = []int32{ + 4, // 0: api.billing.Bill.net:type_name -> api.Price + 4, // 1: api.billing.Bill.gross:type_name -> api.Price + 1, // 2: api.billing.Bill.status:type_name -> api.billing.BillStatus + 5, // 3: api.billing.Bill.payment_method:type_name -> api.payment.PaymentMethod + 3, // 4: api.billing.Bill.items:type_name -> api.billing.BillItem + 4, // 5: api.billing.Bill.outstanding_net:type_name -> api.Price + 4, // 6: api.billing.Bill.outstanding_gross:type_name -> api.Price + 6, // 7: api.billing.Bill.due_at:type_name -> google.protobuf.Timestamp + 6, // 8: api.billing.Bill.created_at:type_name -> google.protobuf.Timestamp + 7, // 9: api.billing.Bill.user:type_name -> api.basic.BasicUser + 8, // 10: api.billing.Bill.project:type_name -> api.basic.BasicProject + 4, // 11: api.billing.Bill.outstanding_balance:type_name -> api.Price + 0, // 12: api.billing.BillItem.product:type_name -> api.billing.Product + 4, // 13: api.billing.BillItem.price:type_name -> api.Price + 6, // 14: api.billing.BillItem.started_at:type_name -> google.protobuf.Timestamp + 6, // 15: api.billing.BillItem.ended_at:type_name -> google.protobuf.Timestamp + 16, // [16:16] is the sub-list for method output_type + 16, // [16:16] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name +} + +func init() { file_billing_proto_init() } +func file_billing_proto_init() { + if File_billing_proto != nil { + return + } + file_generic_proto_init() + file_basic_proto_init() + file_payment_proto_init() + if !protoimpl.UnsafeEnabled { + file_billing_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Bill); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_billing_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BillItem); 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_billing_proto_rawDesc, + NumEnums: 2, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_billing_proto_goTypes, + DependencyIndexes: file_billing_proto_depIdxs, + EnumInfos: file_billing_proto_enumTypes, + MessageInfos: file_billing_proto_msgTypes, + }.Build() + File_billing_proto = out.File + file_billing_proto_rawDesc = nil + file_billing_proto_goTypes = nil + file_billing_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/compute.pb.go b/pkg/gpcloud/ptypes/compute.pb.go new file mode 100644 index 0000000..12c9407 --- /dev/null +++ b/pkg/gpcloud/ptypes/compute.pb.go @@ -0,0 +1,2250 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: compute.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type ComputeResourceStatus int32 + +const ( + ComputeResourceStatus_UNKNOWN ComputeResourceStatus = 0 + ComputeResourceStatus_INSTALLING ComputeResourceStatus = 1 + ComputeResourceStatus_POST_INSTALLING ComputeResourceStatus = 2 + ComputeResourceStatus_READY ComputeResourceStatus = 3 + ComputeResourceStatus_ONLINE ComputeResourceStatus = 4 + ComputeResourceStatus_RESCUE_MODE ComputeResourceStatus = 5 +) + +// Enum value maps for ComputeResourceStatus. +var ( + ComputeResourceStatus_name = map[int32]string{ + 0: "UNKNOWN", + 1: "INSTALLING", + 2: "POST_INSTALLING", + 3: "READY", + 4: "ONLINE", + 5: "RESCUE_MODE", + } + ComputeResourceStatus_value = map[string]int32{ + "UNKNOWN": 0, + "INSTALLING": 1, + "POST_INSTALLING": 2, + "READY": 3, + "ONLINE": 4, + "RESCUE_MODE": 5, + } +) + +func (x ComputeResourceStatus) Enum() *ComputeResourceStatus { + p := new(ComputeResourceStatus) + *p = x + return p +} + +func (x ComputeResourceStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ComputeResourceStatus) Descriptor() protoreflect.EnumDescriptor { + return file_compute_proto_enumTypes[0].Descriptor() +} + +func (ComputeResourceStatus) Type() protoreflect.EnumType { + return &file_compute_proto_enumTypes[0] +} + +func (x ComputeResourceStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ComputeResourceStatus.Descriptor instead. +func (ComputeResourceStatus) EnumDescriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{0} +} + +type RescueMode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Enables / disabled the resource mode + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + // Defines the rescue mode password + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *RescueMode) Reset() { + *x = RescueMode{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RescueMode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RescueMode) ProtoMessage() {} + +func (x *RescueMode) ProtoReflect() protoreflect.Message { + mi := &file_compute_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 RescueMode.ProtoReflect.Descriptor instead. +func (*RescueMode) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{0} +} + +func (x *RescueMode) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *RescueMode) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type Provisioning struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Fqdn string `protobuf:"bytes,1,opt,name=fqdn,proto3" json:"fqdn,omitempty"` + Image *Image `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + UserData string `protobuf:"bytes,3,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"` + SshKeys []*SSHKey `protobuf:"bytes,4,rep,name=ssh_keys,json=sshKeys,proto3" json:"ssh_keys,omitempty"` + Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *Provisioning) Reset() { + *x = Provisioning{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Provisioning) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Provisioning) ProtoMessage() {} + +func (x *Provisioning) ProtoReflect() protoreflect.Message { + mi := &file_compute_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 Provisioning.ProtoReflect.Descriptor instead. +func (*Provisioning) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{1} +} + +func (x *Provisioning) GetFqdn() string { + if x != nil { + return x.Fqdn + } + return "" +} + +func (x *Provisioning) GetImage() *Image { + if x != nil { + return x.Image + } + return nil +} + +func (x *Provisioning) GetUserData() string { + if x != nil { + return x.UserData + } + return "" +} + +func (x *Provisioning) GetSshKeys() []*SSHKey { + if x != nil { + return x.SshKeys + } + return nil +} + +func (x *Provisioning) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type ComputeResourceIp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + Mac string `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"` + Type NetworkType `protobuf:"varint,3,opt,name=type,proto3,enum=api.network.NetworkType" json:"type,omitempty"` +} + +func (x *ComputeResourceIp) Reset() { + *x = ComputeResourceIp{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ComputeResourceIp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ComputeResourceIp) ProtoMessage() {} + +func (x *ComputeResourceIp) ProtoReflect() protoreflect.Message { + mi := &file_compute_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 ComputeResourceIp.ProtoReflect.Descriptor instead. +func (*ComputeResourceIp) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{2} +} + +func (x *ComputeResourceIp) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *ComputeResourceIp) GetMac() string { + if x != nil { + return x.Mac + } + return "" +} + +func (x *ComputeResourceIp) GetType() NetworkType { + if x != nil { + return x.Type + } + return NetworkType_MANAGEMENT +} + +type ComputeResource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Compute resource ID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Fully qualified domain name + Fqdn string `protobuf:"bytes,2,opt,name=fqdn,proto3" json:"fqdn,omitempty"` + // All compute resource ips + Ips []*ComputeResourceIp `protobuf:"bytes,3,rep,name=ips,proto3" json:"ips,omitempty"` + // Type of compute resource (e.g. Bare metal) + Type ComputeResourceType `protobuf:"varint,5,opt,name=type,proto3,enum=api.ComputeResourceType" json:"type,omitempty"` + // Current status + Status ComputeResourceStatus `protobuf:"varint,6,opt,name=status,proto3,enum=api.compute.ComputeResourceStatus" json:"status,omitempty"` + // All compute resource tags + Tags map[string]string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Datacenter + Datacenter *DataCenter `protobuf:"bytes,8,opt,name=datacenter,proto3" json:"datacenter,omitempty"` + // Rescue mode status + RescueMode *RescueMode `protobuf:"bytes,9,opt,name=rescue_mode,json=rescueMode,proto3" json:"rescue_mode,omitempty"` + // The active compute resource flavour + Flavour *Flavour `protobuf:"bytes,10,opt,name=flavour,proto3" json:"flavour,omitempty"` + // Active compute resource image + Image *Image `protobuf:"bytes,11,opt,name=image,proto3" json:"image,omitempty"` + // The price per hour for this compute resource + Price *Price `protobuf:"bytes,12,opt,name=price,proto3" json:"price,omitempty"` + // Tells if the compute resource has a valid Windows SPLA license for this month + SplaLicense bool `protobuf:"varint,13,opt,name=spla_license,json=splaLicense,proto3" json:"spla_license,omitempty"` + // Server + Server *Server `protobuf:"bytes,14,opt,name=server,proto3" json:"server,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (x *ComputeResource) Reset() { + *x = ComputeResource{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ComputeResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ComputeResource) ProtoMessage() {} + +func (x *ComputeResource) ProtoReflect() protoreflect.Message { + mi := &file_compute_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 ComputeResource.ProtoReflect.Descriptor instead. +func (*ComputeResource) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{3} +} + +func (x *ComputeResource) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ComputeResource) GetFqdn() string { + if x != nil { + return x.Fqdn + } + return "" +} + +func (x *ComputeResource) GetIps() []*ComputeResourceIp { + if x != nil { + return x.Ips + } + return nil +} + +func (x *ComputeResource) GetType() ComputeResourceType { + if x != nil { + return x.Type + } + return ComputeResourceType_BARE_METAL +} + +func (x *ComputeResource) GetStatus() ComputeResourceStatus { + if x != nil { + return x.Status + } + return ComputeResourceStatus_UNKNOWN +} + +func (x *ComputeResource) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *ComputeResource) GetDatacenter() *DataCenter { + if x != nil { + return x.Datacenter + } + return nil +} + +func (x *ComputeResource) GetRescueMode() *RescueMode { + if x != nil { + return x.RescueMode + } + return nil +} + +func (x *ComputeResource) GetFlavour() *Flavour { + if x != nil { + return x.Flavour + } + return nil +} + +func (x *ComputeResource) GetImage() *Image { + if x != nil { + return x.Image + } + return nil +} + +func (x *ComputeResource) GetPrice() *Price { + if x != nil { + return x.Price + } + return nil +} + +func (x *ComputeResource) GetSplaLicense() bool { + if x != nil { + return x.SplaLicense + } + return false +} + +func (x *ComputeResource) GetServer() *Server { + if x != nil { + return x.Server + } + return nil +} + +func (x *ComputeResource) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +type ComputeResourceProvisioning struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + UserData string `protobuf:"bytes,2,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"` + Image *ComputeResourceProvisioning_Image `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` + Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` + SshKeys []string `protobuf:"bytes,5,rep,name=ssh_keys,json=sshKeys,proto3" json:"ssh_keys,omitempty"` +} + +func (x *ComputeResourceProvisioning) Reset() { + *x = ComputeResourceProvisioning{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ComputeResourceProvisioning) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ComputeResourceProvisioning) ProtoMessage() {} + +func (x *ComputeResourceProvisioning) ProtoReflect() protoreflect.Message { + mi := &file_compute_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 ComputeResourceProvisioning.ProtoReflect.Descriptor instead. +func (*ComputeResourceProvisioning) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{4} +} + +func (x *ComputeResourceProvisioning) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ComputeResourceProvisioning) GetUserData() string { + if x != nil { + return x.UserData + } + return "" +} + +func (x *ComputeResourceProvisioning) GetImage() *ComputeResourceProvisioning_Image { + if x != nil { + return x.Image + } + return nil +} + +func (x *ComputeResourceProvisioning) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *ComputeResourceProvisioning) GetSshKeys() []string { + if x != nil { + return x.SshKeys + } + return nil +} + +type GetComputeResourceTrafficRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` +} + +func (x *GetComputeResourceTrafficRequest) Reset() { + *x = GetComputeResourceTrafficRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetComputeResourceTrafficRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetComputeResourceTrafficRequest) ProtoMessage() {} + +func (x *GetComputeResourceTrafficRequest) ProtoReflect() protoreflect.Message { + mi := &file_compute_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 GetComputeResourceTrafficRequest.ProtoReflect.Descriptor instead. +func (*GetComputeResourceTrafficRequest) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{5} +} + +func (x *GetComputeResourceTrafficRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *GetComputeResourceTrafficRequest) GetResourceId() string { + if x != nil { + return x.ResourceId + } + return "" +} + +type GetComputeResourceTrafficResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Usage []*TrafficUsage `protobuf:"bytes,1,rep,name=usage,proto3" json:"usage,omitempty"` +} + +func (x *GetComputeResourceTrafficResponse) Reset() { + *x = GetComputeResourceTrafficResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetComputeResourceTrafficResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetComputeResourceTrafficResponse) ProtoMessage() {} + +func (x *GetComputeResourceTrafficResponse) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[6] + 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 GetComputeResourceTrafficResponse.ProtoReflect.Descriptor instead. +func (*GetComputeResourceTrafficResponse) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{6} +} + +func (x *GetComputeResourceTrafficResponse) GetUsage() []*TrafficUsage { + if x != nil { + return x.Usage + } + return nil +} + +type TrafficUsage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + Traffic []*TrafficUsageEntry `protobuf:"bytes,2,rep,name=traffic,proto3" json:"traffic,omitempty"` +} + +func (x *TrafficUsage) Reset() { + *x = TrafficUsage{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TrafficUsage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TrafficUsage) ProtoMessage() {} + +func (x *TrafficUsage) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[7] + 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 TrafficUsage.ProtoReflect.Descriptor instead. +func (*TrafficUsage) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{7} +} + +func (x *TrafficUsage) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *TrafficUsage) GetTraffic() []*TrafficUsageEntry { + if x != nil { + return x.Traffic + } + return nil +} + +type TrafficUsageEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + BytesReceived int64 `protobuf:"varint,2,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"` + PacketsReceived int64 `protobuf:"varint,3,opt,name=packets_received,json=packetsReceived,proto3" json:"packets_received,omitempty"` + BytesSent int64 `protobuf:"varint,4,opt,name=bytes_sent,json=bytesSent,proto3" json:"bytes_sent,omitempty"` + PacketsSent int64 `protobuf:"varint,5,opt,name=packets_sent,json=packetsSent,proto3" json:"packets_sent,omitempty"` +} + +func (x *TrafficUsageEntry) Reset() { + *x = TrafficUsageEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TrafficUsageEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TrafficUsageEntry) ProtoMessage() {} + +func (x *TrafficUsageEntry) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[8] + 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 TrafficUsageEntry.ProtoReflect.Descriptor instead. +func (*TrafficUsageEntry) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{8} +} + +func (x *TrafficUsageEntry) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *TrafficUsageEntry) GetBytesReceived() int64 { + if x != nil { + return x.BytesReceived + } + return 0 +} + +func (x *TrafficUsageEntry) GetPacketsReceived() int64 { + if x != nil { + return x.PacketsReceived + } + return 0 +} + +func (x *TrafficUsageEntry) GetBytesSent() int64 { + if x != nil { + return x.BytesSent + } + return 0 +} + +func (x *TrafficUsageEntry) GetPacketsSent() int64 { + if x != nil { + return x.PacketsSent + } + return 0 +} + +type CreateComputeResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project ID to add compute resources + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // Flavour ID + FlavourId string `protobuf:"bytes,2,opt,name=flavour_id,json=flavourId,proto3" json:"flavour_id,omitempty"` + // Datacenter ID + DatacenterId string `protobuf:"bytes,3,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` + // Server administration password + Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` + // SSH authorized keys + SshKeyIds []string `protobuf:"bytes,5,rep,name=ssh_key_ids,json=sshKeyIds,proto3" json:"ssh_key_ids,omitempty"` + // Image ID of selected OS image + ImageId string `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` + // User data script (Bash, Powershell,...) + UserData string `protobuf:"bytes,7,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"` + // Array of host FQDNs + Hosts []string `protobuf:"bytes,8,rep,name=hosts,proto3" json:"hosts,omitempty"` + // Additional network ids + NetworkIds []string `protobuf:"bytes,9,rep,name=network_ids,json=networkIds,proto3" json:"network_ids,omitempty"` +} + +func (x *CreateComputeResourceRequest) Reset() { + *x = CreateComputeResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateComputeResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateComputeResourceRequest) ProtoMessage() {} + +func (x *CreateComputeResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[9] + 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 CreateComputeResourceRequest.ProtoReflect.Descriptor instead. +func (*CreateComputeResourceRequest) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{9} +} + +func (x *CreateComputeResourceRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *CreateComputeResourceRequest) GetFlavourId() string { + if x != nil { + return x.FlavourId + } + return "" +} + +func (x *CreateComputeResourceRequest) GetDatacenterId() string { + if x != nil { + return x.DatacenterId + } + return "" +} + +func (x *CreateComputeResourceRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *CreateComputeResourceRequest) GetSshKeyIds() []string { + if x != nil { + return x.SshKeyIds + } + return nil +} + +func (x *CreateComputeResourceRequest) GetImageId() string { + if x != nil { + return x.ImageId + } + return "" +} + +func (x *CreateComputeResourceRequest) GetUserData() string { + if x != nil { + return x.UserData + } + return "" +} + +func (x *CreateComputeResourceRequest) GetHosts() []string { + if x != nil { + return x.Hosts + } + return nil +} + +func (x *CreateComputeResourceRequest) GetNetworkIds() []string { + if x != nil { + return x.NetworkIds + } + return nil +} + +type CreateComputeResourceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Resources []*ComputeResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` +} + +func (x *CreateComputeResourceResponse) Reset() { + *x = CreateComputeResourceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateComputeResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateComputeResourceResponse) ProtoMessage() {} + +func (x *CreateComputeResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[10] + 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 CreateComputeResourceResponse.ProtoReflect.Descriptor instead. +func (*CreateComputeResourceResponse) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{10} +} + +func (x *CreateComputeResourceResponse) GetResources() []*ComputeResource { + if x != nil { + return x.Resources + } + return nil +} + +type ListComputeResourcesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // page number to load + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` + // optional + Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"` +} + +func (x *ListComputeResourcesRequest) Reset() { + *x = ListComputeResourcesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListComputeResourcesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListComputeResourcesRequest) ProtoMessage() {} + +func (x *ListComputeResourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[11] + 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 ListComputeResourcesRequest.ProtoReflect.Descriptor instead. +func (*ListComputeResourcesRequest) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{11} +} + +func (x *ListComputeResourcesRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *ListComputeResourcesRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *ListComputeResourcesRequest) GetSearch() string { + if x != nil { + return x.Search + } + return "" +} + +type ListComputeResourcesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Resources []*ComputeResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` + // Number of pages available + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *ListComputeResourcesResponse) Reset() { + *x = ListComputeResourcesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListComputeResourcesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListComputeResourcesResponse) ProtoMessage() {} + +func (x *ListComputeResourcesResponse) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[12] + 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 ListComputeResourcesResponse.ProtoReflect.Descriptor instead. +func (*ListComputeResourcesResponse) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{12} +} + +func (x *ListComputeResourcesResponse) GetResources() []*ComputeResource { + if x != nil { + return x.Resources + } + return nil +} + +func (x *ListComputeResourcesResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type GetComputeResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` +} + +func (x *GetComputeResourceRequest) Reset() { + *x = GetComputeResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetComputeResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetComputeResourceRequest) ProtoMessage() {} + +func (x *GetComputeResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[13] + 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 GetComputeResourceRequest.ProtoReflect.Descriptor instead. +func (*GetComputeResourceRequest) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{13} +} + +func (x *GetComputeResourceRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *GetComputeResourceRequest) GetResourceId() string { + if x != nil { + return x.ResourceId + } + return "" +} + +type GetComputeResourceConsoleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` +} + +func (x *GetComputeResourceConsoleRequest) Reset() { + *x = GetComputeResourceConsoleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetComputeResourceConsoleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetComputeResourceConsoleRequest) ProtoMessage() {} + +func (x *GetComputeResourceConsoleRequest) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[14] + 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 GetComputeResourceConsoleRequest.ProtoReflect.Descriptor instead. +func (*GetComputeResourceConsoleRequest) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{14} +} + +func (x *GetComputeResourceConsoleRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *GetComputeResourceConsoleRequest) GetResourceId() string { + if x != nil { + return x.ResourceId + } + return "" +} + +type GetComputeResourceConsoleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *GetComputeResourceConsoleResponse) Reset() { + *x = GetComputeResourceConsoleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetComputeResourceConsoleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetComputeResourceConsoleResponse) ProtoMessage() {} + +func (x *GetComputeResourceConsoleResponse) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[15] + 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 GetComputeResourceConsoleResponse.ProtoReflect.Descriptor instead. +func (*GetComputeResourceConsoleResponse) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{15} +} + +func (x *GetComputeResourceConsoleResponse) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *GetComputeResourceConsoleResponse) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type UpdateComputeResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + Fqdn string `protobuf:"bytes,3,opt,name=fqdn,proto3" json:"fqdn,omitempty"` + Tags map[string]string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *UpdateComputeResourceRequest) Reset() { + *x = UpdateComputeResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateComputeResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateComputeResourceRequest) ProtoMessage() {} + +func (x *UpdateComputeResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[16] + 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 UpdateComputeResourceRequest.ProtoReflect.Descriptor instead. +func (*UpdateComputeResourceRequest) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{16} +} + +func (x *UpdateComputeResourceRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *UpdateComputeResourceRequest) GetResourceId() string { + if x != nil { + return x.ResourceId + } + return "" +} + +func (x *UpdateComputeResourceRequest) GetFqdn() string { + if x != nil { + return x.Fqdn + } + return "" +} + +func (x *UpdateComputeResourceRequest) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +type ReinstallComputeResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + // New server FQDN + // If no FQDN is being provided, the old FQDN will be used + Fqdn string `protobuf:"bytes,3,opt,name=fqdn,proto3" json:"fqdn,omitempty"` + // Server administration password + Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` + // SSH authorized keys + SshKeyIds []string `protobuf:"bytes,5,rep,name=ssh_key_ids,json=sshKeyIds,proto3" json:"ssh_key_ids,omitempty"` + // Image ID of selected OS image + ImageId string `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` + // User data script (Cloud-Init, Cloudbase-Init, Bash, Powershell,...) + UserData string `protobuf:"bytes,7,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"` +} + +func (x *ReinstallComputeResourceRequest) Reset() { + *x = ReinstallComputeResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReinstallComputeResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReinstallComputeResourceRequest) ProtoMessage() {} + +func (x *ReinstallComputeResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[17] + 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 ReinstallComputeResourceRequest.ProtoReflect.Descriptor instead. +func (*ReinstallComputeResourceRequest) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{17} +} + +func (x *ReinstallComputeResourceRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *ReinstallComputeResourceRequest) GetResourceId() string { + if x != nil { + return x.ResourceId + } + return "" +} + +func (x *ReinstallComputeResourceRequest) GetFqdn() string { + if x != nil { + return x.Fqdn + } + return "" +} + +func (x *ReinstallComputeResourceRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *ReinstallComputeResourceRequest) GetSshKeyIds() []string { + if x != nil { + return x.SshKeyIds + } + return nil +} + +func (x *ReinstallComputeResourceRequest) GetImageId() string { + if x != nil { + return x.ImageId + } + return "" +} + +func (x *ReinstallComputeResourceRequest) GetUserData() string { + if x != nil { + return x.UserData + } + return "" +} + +type DestroyComputeResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` +} + +func (x *DestroyComputeResourceRequest) Reset() { + *x = DestroyComputeResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DestroyComputeResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DestroyComputeResourceRequest) ProtoMessage() {} + +func (x *DestroyComputeResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[18] + 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 DestroyComputeResourceRequest.ProtoReflect.Descriptor instead. +func (*DestroyComputeResourceRequest) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{18} +} + +func (x *DestroyComputeResourceRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *DestroyComputeResourceRequest) GetResourceId() string { + if x != nil { + return x.ResourceId + } + return "" +} + +type PowerActionComputeResourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + Status ServerPowerStatus `protobuf:"varint,3,opt,name=status,proto3,enum=api.server.ServerPowerStatus" json:"status,omitempty"` +} + +func (x *PowerActionComputeResourceRequest) Reset() { + *x = PowerActionComputeResourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PowerActionComputeResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PowerActionComputeResourceRequest) ProtoMessage() {} + +func (x *PowerActionComputeResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[19] + 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 PowerActionComputeResourceRequest.ProtoReflect.Descriptor instead. +func (*PowerActionComputeResourceRequest) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{19} +} + +func (x *PowerActionComputeResourceRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *PowerActionComputeResourceRequest) GetResourceId() string { + if x != nil { + return x.ResourceId + } + return "" +} + +func (x *PowerActionComputeResourceRequest) GetStatus() ServerPowerStatus { + if x != nil { + return x.Status + } + return ServerPowerStatus_SHUT_ON +} + +type ComputeResourceRescueModeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + RescueMode *RescueMode `protobuf:"bytes,3,opt,name=rescue_mode,json=rescueMode,proto3" json:"rescue_mode,omitempty"` +} + +func (x *ComputeResourceRescueModeRequest) Reset() { + *x = ComputeResourceRescueModeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ComputeResourceRescueModeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ComputeResourceRescueModeRequest) ProtoMessage() {} + +func (x *ComputeResourceRescueModeRequest) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[20] + 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 ComputeResourceRescueModeRequest.ProtoReflect.Descriptor instead. +func (*ComputeResourceRescueModeRequest) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{20} +} + +func (x *ComputeResourceRescueModeRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *ComputeResourceRescueModeRequest) GetResourceId() string { + if x != nil { + return x.ResourceId + } + return "" +} + +func (x *ComputeResourceRescueModeRequest) GetRescueMode() *RescueMode { + if x != nil { + return x.RescueMode + } + return nil +} + +type ComputeResourceProvisioning_Image struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *ComputeResourceProvisioning_Image) Reset() { + *x = ComputeResourceProvisioning_Image{} + if protoimpl.UnsafeEnabled { + mi := &file_compute_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ComputeResourceProvisioning_Image) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ComputeResourceProvisioning_Image) ProtoMessage() {} + +func (x *ComputeResourceProvisioning_Image) ProtoReflect() protoreflect.Message { + mi := &file_compute_proto_msgTypes[22] + 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 ComputeResourceProvisioning_Image.ProtoReflect.Descriptor instead. +func (*ComputeResourceProvisioning_Image) Descriptor() ([]byte, []int) { + return file_compute_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *ComputeResourceProvisioning_Image) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ComputeResourceProvisioning_Image) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +var File_compute_proto protoreflect.FileDescriptor + +var file_compute_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, + 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, + 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x42, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x63, 0x75, 0x65, 0x4d, 0x6f, 0x64, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xb4, 0x01, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x64, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x12, 0x26, 0x0a, 0x05, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x05, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x2f, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, + 0x74, 0x79, 0x2e, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x73, 0x73, 0x68, 0x4b, 0x65, + 0x79, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x63, + 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x49, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x61, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6d, 0x61, 0x63, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x22, 0xbc, 0x05, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x12, 0x30, 0x0a, 0x03, 0x69, + 0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x70, 0x52, 0x03, 0x69, 0x70, 0x73, 0x12, 0x2c, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, + 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x12, 0x36, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, + 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0b, 0x72, + 0x65, 0x73, 0x63, 0x75, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x52, + 0x65, 0x73, 0x63, 0x75, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x63, 0x75, + 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, + 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, 0x07, 0x66, 0x6c, + 0x61, 0x76, 0x6f, 0x75, 0x72, 0x12, 0x26, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x20, 0x0a, + 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, + 0x21, 0x0a, 0x0c, 0x73, 0x70, 0x6c, 0x61, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x70, 0x6c, 0x61, 0x4c, 0x69, 0x63, 0x65, 0x6e, + 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, + 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0xf4, 0x01, 0x0a, 0x1b, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, + 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, + 0x44, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x05, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x4b, 0x65, 0x79, 0x73, 0x1a, 0x2b, 0x0a, 0x05, + 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x62, 0x0a, 0x20, 0x47, 0x65, 0x74, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, + 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x22, 0x54, 0x0a, + 0x21, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, + 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x75, 0x73, + 0x61, 0x67, 0x65, 0x22, 0x58, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x55, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x70, 0x12, 0x38, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x22, 0xe1, 0x01, + 0x0a, 0x11, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x25, 0x0a, + 0x0e, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x5f, + 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, + 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, + 0x1d, 0x0a, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x79, 0x74, 0x65, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x21, + 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x6e, + 0x74, 0x22, 0xac, 0x02, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, + 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x49, 0x64, + 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x73, 0x73, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x73, 0x68, 0x4b, 0x65, 0x79, 0x49, 0x64, + 0x73, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x75, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x6f, 0x73, + 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x12, + 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x09, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x73, + 0x22, 0x5b, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x68, 0x0a, + 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, + 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x22, 0x7b, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x43, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x73, 0x54, + 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x5b, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, + 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, + 0x64, 0x22, 0x62, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x64, 0x22, 0x55, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xf4, 0x01, 0x0a, + 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x66, 0x71, 0x64, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x64, + 0x6e, 0x12, 0x47, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x33, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, + 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0xe9, 0x01, 0x0a, 0x1f, 0x52, 0x65, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x71, 0x64, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x73, 0x73, 0x68, 0x5f, 0x6b, + 0x65, 0x79, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x73, + 0x68, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x22, + 0x5f, 0x0a, 0x1d, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, + 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, + 0x22, 0x9a, 0x01, 0x0a, 0x21, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x9c, 0x01, + 0x0a, 0x20, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x63, 0x75, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, + 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x49, 0x64, 0x12, 0x38, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x63, 0x75, 0x65, 0x5f, 0x6d, 0x6f, 0x64, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x63, 0x75, 0x65, 0x4d, 0x6f, 0x64, 0x65, + 0x52, 0x0a, 0x72, 0x65, 0x73, 0x63, 0x75, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x2a, 0x71, 0x0a, 0x15, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x49, 0x4e, 0x47, + 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, + 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, + 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x04, 0x12, 0x0f, + 0x0a, 0x0b, 0x52, 0x45, 0x53, 0x43, 0x55, 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x10, 0x05, 0x42, + 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_compute_proto_rawDescOnce sync.Once + file_compute_proto_rawDescData = file_compute_proto_rawDesc +) + +func file_compute_proto_rawDescGZIP() []byte { + file_compute_proto_rawDescOnce.Do(func() { + file_compute_proto_rawDescData = protoimpl.X.CompressGZIP(file_compute_proto_rawDescData) + }) + return file_compute_proto_rawDescData +} + +var file_compute_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_compute_proto_msgTypes = make([]protoimpl.MessageInfo, 24) +var file_compute_proto_goTypes = []interface{}{ + (ComputeResourceStatus)(0), // 0: api.compute.ComputeResourceStatus + (*RescueMode)(nil), // 1: api.compute.RescueMode + (*Provisioning)(nil), // 2: api.compute.Provisioning + (*ComputeResourceIp)(nil), // 3: api.compute.ComputeResourceIp + (*ComputeResource)(nil), // 4: api.compute.ComputeResource + (*ComputeResourceProvisioning)(nil), // 5: api.compute.ComputeResourceProvisioning + (*GetComputeResourceTrafficRequest)(nil), // 6: api.compute.GetComputeResourceTrafficRequest + (*GetComputeResourceTrafficResponse)(nil), // 7: api.compute.GetComputeResourceTrafficResponse + (*TrafficUsage)(nil), // 8: api.compute.TrafficUsage + (*TrafficUsageEntry)(nil), // 9: api.compute.TrafficUsageEntry + (*CreateComputeResourceRequest)(nil), // 10: api.compute.CreateComputeResourceRequest + (*CreateComputeResourceResponse)(nil), // 11: api.compute.CreateComputeResourceResponse + (*ListComputeResourcesRequest)(nil), // 12: api.compute.ListComputeResourcesRequest + (*ListComputeResourcesResponse)(nil), // 13: api.compute.ListComputeResourcesResponse + (*GetComputeResourceRequest)(nil), // 14: api.compute.GetComputeResourceRequest + (*GetComputeResourceConsoleRequest)(nil), // 15: api.compute.GetComputeResourceConsoleRequest + (*GetComputeResourceConsoleResponse)(nil), // 16: api.compute.GetComputeResourceConsoleResponse + (*UpdateComputeResourceRequest)(nil), // 17: api.compute.UpdateComputeResourceRequest + (*ReinstallComputeResourceRequest)(nil), // 18: api.compute.ReinstallComputeResourceRequest + (*DestroyComputeResourceRequest)(nil), // 19: api.compute.DestroyComputeResourceRequest + (*PowerActionComputeResourceRequest)(nil), // 20: api.compute.PowerActionComputeResourceRequest + (*ComputeResourceRescueModeRequest)(nil), // 21: api.compute.ComputeResourceRescueModeRequest + nil, // 22: api.compute.ComputeResource.TagsEntry + (*ComputeResourceProvisioning_Image)(nil), // 23: api.compute.ComputeResourceProvisioning.Image + nil, // 24: api.compute.UpdateComputeResourceRequest.TagsEntry + (*Image)(nil), // 25: api.image.Image + (*SSHKey)(nil), // 26: api.security.SSHKey + (NetworkType)(0), // 27: api.network.NetworkType + (ComputeResourceType)(0), // 28: api.ComputeResourceType + (*DataCenter)(nil), // 29: api.region.DataCenter + (*Flavour)(nil), // 30: api.flavour.Flavour + (*Price)(nil), // 31: api.Price + (*Server)(nil), // 32: api.server.Server + (*timestamppb.Timestamp)(nil), // 33: google.protobuf.Timestamp + (ServerPowerStatus)(0), // 34: api.server.ServerPowerStatus +} +var file_compute_proto_depIdxs = []int32{ + 25, // 0: api.compute.Provisioning.image:type_name -> api.image.Image + 26, // 1: api.compute.Provisioning.ssh_keys:type_name -> api.security.SSHKey + 27, // 2: api.compute.ComputeResourceIp.type:type_name -> api.network.NetworkType + 3, // 3: api.compute.ComputeResource.ips:type_name -> api.compute.ComputeResourceIp + 28, // 4: api.compute.ComputeResource.type:type_name -> api.ComputeResourceType + 0, // 5: api.compute.ComputeResource.status:type_name -> api.compute.ComputeResourceStatus + 22, // 6: api.compute.ComputeResource.tags:type_name -> api.compute.ComputeResource.TagsEntry + 29, // 7: api.compute.ComputeResource.datacenter:type_name -> api.region.DataCenter + 1, // 8: api.compute.ComputeResource.rescue_mode:type_name -> api.compute.RescueMode + 30, // 9: api.compute.ComputeResource.flavour:type_name -> api.flavour.Flavour + 25, // 10: api.compute.ComputeResource.image:type_name -> api.image.Image + 31, // 11: api.compute.ComputeResource.price:type_name -> api.Price + 32, // 12: api.compute.ComputeResource.server:type_name -> api.server.Server + 33, // 13: api.compute.ComputeResource.created_at:type_name -> google.protobuf.Timestamp + 23, // 14: api.compute.ComputeResourceProvisioning.image:type_name -> api.compute.ComputeResourceProvisioning.Image + 8, // 15: api.compute.GetComputeResourceTrafficResponse.usage:type_name -> api.compute.TrafficUsage + 9, // 16: api.compute.TrafficUsage.traffic:type_name -> api.compute.TrafficUsageEntry + 33, // 17: api.compute.TrafficUsageEntry.timestamp:type_name -> google.protobuf.Timestamp + 4, // 18: api.compute.CreateComputeResourceResponse.resources:type_name -> api.compute.ComputeResource + 4, // 19: api.compute.ListComputeResourcesResponse.resources:type_name -> api.compute.ComputeResource + 24, // 20: api.compute.UpdateComputeResourceRequest.tags:type_name -> api.compute.UpdateComputeResourceRequest.TagsEntry + 34, // 21: api.compute.PowerActionComputeResourceRequest.status:type_name -> api.server.ServerPowerStatus + 1, // 22: api.compute.ComputeResourceRescueModeRequest.rescue_mode:type_name -> api.compute.RescueMode + 23, // [23:23] is the sub-list for method output_type + 23, // [23:23] is the sub-list for method input_type + 23, // [23:23] is the sub-list for extension type_name + 23, // [23:23] is the sub-list for extension extendee + 0, // [0:23] is the sub-list for field type_name +} + +func init() { file_compute_proto_init() } +func file_compute_proto_init() { + if File_compute_proto != nil { + return + } + file_server_proto_init() + file_image_proto_init() + file_generic_proto_init() + file_security_proto_init() + file_region_proto_init() + file_network_proto_init() + file_flavour_proto_init() + if !protoimpl.UnsafeEnabled { + file_compute_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RescueMode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Provisioning); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComputeResourceIp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComputeResource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComputeResourceProvisioning); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetComputeResourceTrafficRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetComputeResourceTrafficResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TrafficUsage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TrafficUsageEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateComputeResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateComputeResourceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListComputeResourcesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListComputeResourcesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetComputeResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetComputeResourceConsoleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetComputeResourceConsoleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateComputeResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReinstallComputeResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DestroyComputeResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PowerActionComputeResourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComputeResourceRescueModeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_compute_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComputeResourceProvisioning_Image); 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_compute_proto_rawDesc, + NumEnums: 1, + NumMessages: 24, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_compute_proto_goTypes, + DependencyIndexes: file_compute_proto_depIdxs, + EnumInfos: file_compute_proto_enumTypes, + MessageInfos: file_compute_proto_msgTypes, + }.Build() + File_compute_proto = out.File + file_compute_proto_rawDesc = nil + file_compute_proto_goTypes = nil + file_compute_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/flavour.pb.go b/pkg/gpcloud/ptypes/flavour.pb.go new file mode 100644 index 0000000..e5394dd --- /dev/null +++ b/pkg/gpcloud/ptypes/flavour.pb.go @@ -0,0 +1,1114 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: flavour.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type FlavourAvailability int32 + +const ( + FlavourAvailability_OUT_OF_STOCK FlavourAvailability = 0 + FlavourAvailability_PREORDER FlavourAvailability = 1 + FlavourAvailability_LOW FlavourAvailability = 2 + FlavourAvailability_MID FlavourAvailability = 3 + FlavourAvailability_HIGH FlavourAvailability = 4 +) + +// Enum value maps for FlavourAvailability. +var ( + FlavourAvailability_name = map[int32]string{ + 0: "OUT_OF_STOCK", + 1: "PREORDER", + 2: "LOW", + 3: "MID", + 4: "HIGH", + } + FlavourAvailability_value = map[string]int32{ + "OUT_OF_STOCK": 0, + "PREORDER": 1, + "LOW": 2, + "MID": 3, + "HIGH": 4, + } +) + +func (x FlavourAvailability) Enum() *FlavourAvailability { + p := new(FlavourAvailability) + *p = x + return p +} + +func (x FlavourAvailability) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FlavourAvailability) Descriptor() protoreflect.EnumDescriptor { + return file_flavour_proto_enumTypes[0].Descriptor() +} + +func (FlavourAvailability) Type() protoreflect.EnumType { + return &file_flavour_proto_enumTypes[0] +} + +func (x FlavourAvailability) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FlavourAvailability.Descriptor instead. +func (FlavourAvailability) EnumDescriptor() ([]byte, []int) { + return file_flavour_proto_rawDescGZIP(), []int{0} +} + +type FlavourMapping struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DatacenterId string `protobuf:"bytes,1,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` + Available bool `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` + PreOrderLimit int32 `protobuf:"varint,3,opt,name=pre_order_limit,json=preOrderLimit,proto3" json:"pre_order_limit,omitempty"` + Price *Price `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"` +} + +func (x *FlavourMapping) Reset() { + *x = FlavourMapping{} + if protoimpl.UnsafeEnabled { + mi := &file_flavour_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FlavourMapping) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FlavourMapping) ProtoMessage() {} + +func (x *FlavourMapping) ProtoReflect() protoreflect.Message { + mi := &file_flavour_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 FlavourMapping.ProtoReflect.Descriptor instead. +func (*FlavourMapping) Descriptor() ([]byte, []int) { + return file_flavour_proto_rawDescGZIP(), []int{0} +} + +func (x *FlavourMapping) GetDatacenterId() string { + if x != nil { + return x.DatacenterId + } + return "" +} + +func (x *FlavourMapping) GetAvailable() bool { + if x != nil { + return x.Available + } + return false +} + +func (x *FlavourMapping) GetPreOrderLimit() int32 { + if x != nil { + return x.PreOrderLimit + } + return 0 +} + +func (x *FlavourMapping) GetPrice() *Price { + if x != nil { + return x.Price + } + return nil +} + +type AdminListFlavoursResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Flavours []*AdminFlavour `protobuf:"bytes,1,rep,name=flavours,proto3" json:"flavours,omitempty"` +} + +func (x *AdminListFlavoursResponse) Reset() { + *x = AdminListFlavoursResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flavour_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListFlavoursResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListFlavoursResponse) ProtoMessage() {} + +func (x *AdminListFlavoursResponse) ProtoReflect() protoreflect.Message { + mi := &file_flavour_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 AdminListFlavoursResponse.ProtoReflect.Descriptor instead. +func (*AdminListFlavoursResponse) Descriptor() ([]byte, []int) { + return file_flavour_proto_rawDescGZIP(), []int{1} +} + +func (x *AdminListFlavoursResponse) GetFlavours() []*AdminFlavour { + if x != nil { + return x.Flavours + } + return nil +} + +type Flavour struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Flavour ID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Flavour name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type ComputeResourceType `protobuf:"varint,3,opt,name=type,proto3,enum=api.ComputeResourceType" json:"type,omitempty"` + Availability FlavourAvailability `protobuf:"varint,4,opt,name=availability,proto3,enum=api.flavour.FlavourAvailability" json:"availability,omitempty"` + Generation int32 `protobuf:"varint,5,opt,name=generation,proto3" json:"generation,omitempty"` + Cpu string `protobuf:"bytes,6,opt,name=cpu,proto3" json:"cpu,omitempty"` + Memory string `protobuf:"bytes,7,opt,name=memory,proto3" json:"memory,omitempty"` + Disk string `protobuf:"bytes,8,opt,name=disk,proto3" json:"disk,omitempty"` + Network string `protobuf:"bytes,9,opt,name=network,proto3" json:"network,omitempty"` + Traffic int64 `protobuf:"varint,10,opt,name=traffic,proto3" json:"traffic,omitempty"` // Traffic given in GB/month + // Price per hour + Price *Price `protobuf:"bytes,11,opt,name=price,proto3" json:"price,omitempty"` + // Optional windows price per month + WindowsMonthlyFee *Price `protobuf:"bytes,12,opt,name=windows_monthly_fee,json=windowsMonthlyFee,proto3" json:"windows_monthly_fee,omitempty"` +} + +func (x *Flavour) Reset() { + *x = Flavour{} + if protoimpl.UnsafeEnabled { + mi := &file_flavour_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Flavour) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Flavour) ProtoMessage() {} + +func (x *Flavour) ProtoReflect() protoreflect.Message { + mi := &file_flavour_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 Flavour.ProtoReflect.Descriptor instead. +func (*Flavour) Descriptor() ([]byte, []int) { + return file_flavour_proto_rawDescGZIP(), []int{2} +} + +func (x *Flavour) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Flavour) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Flavour) GetType() ComputeResourceType { + if x != nil { + return x.Type + } + return ComputeResourceType_BARE_METAL +} + +func (x *Flavour) GetAvailability() FlavourAvailability { + if x != nil { + return x.Availability + } + return FlavourAvailability_OUT_OF_STOCK +} + +func (x *Flavour) GetGeneration() int32 { + if x != nil { + return x.Generation + } + return 0 +} + +func (x *Flavour) GetCpu() string { + if x != nil { + return x.Cpu + } + return "" +} + +func (x *Flavour) GetMemory() string { + if x != nil { + return x.Memory + } + return "" +} + +func (x *Flavour) GetDisk() string { + if x != nil { + return x.Disk + } + return "" +} + +func (x *Flavour) GetNetwork() string { + if x != nil { + return x.Network + } + return "" +} + +func (x *Flavour) GetTraffic() int64 { + if x != nil { + return x.Traffic + } + return 0 +} + +func (x *Flavour) GetPrice() *Price { + if x != nil { + return x.Price + } + return nil +} + +func (x *Flavour) GetWindowsMonthlyFee() *Price { + if x != nil { + return x.WindowsMonthlyFee + } + return nil +} + +type AdminFlavour struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Flavour ID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Flavour name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type ComputeResourceType `protobuf:"varint,3,opt,name=type,proto3,enum=api.ComputeResourceType" json:"type,omitempty"` + Generation int32 `protobuf:"varint,4,opt,name=generation,proto3" json:"generation,omitempty"` + Cpu string `protobuf:"bytes,5,opt,name=cpu,proto3" json:"cpu,omitempty"` + CpuAmount int32 `protobuf:"varint,6,opt,name=cpu_amount,json=cpuAmount,proto3" json:"cpu_amount,omitempty"` + CpuCores int32 `protobuf:"varint,7,opt,name=cpu_cores,json=cpuCores,proto3" json:"cpu_cores,omitempty"` + CpuThreads int32 `protobuf:"varint,8,opt,name=cpu_threads,json=cpuThreads,proto3" json:"cpu_threads,omitempty"` + Memory string `protobuf:"bytes,9,opt,name=memory,proto3" json:"memory,omitempty"` + Disk string `protobuf:"bytes,10,opt,name=disk,proto3" json:"disk,omitempty"` + Network string `protobuf:"bytes,11,opt,name=network,proto3" json:"network,omitempty"` + Traffic int64 `protobuf:"varint,12,opt,name=traffic,proto3" json:"traffic,omitempty"` // Traffic given in GB/month + Mappings []*FlavourMapping `protobuf:"bytes,13,rep,name=mappings,proto3" json:"mappings,omitempty"` +} + +func (x *AdminFlavour) Reset() { + *x = AdminFlavour{} + if protoimpl.UnsafeEnabled { + mi := &file_flavour_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminFlavour) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminFlavour) ProtoMessage() {} + +func (x *AdminFlavour) ProtoReflect() protoreflect.Message { + mi := &file_flavour_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 AdminFlavour.ProtoReflect.Descriptor instead. +func (*AdminFlavour) Descriptor() ([]byte, []int) { + return file_flavour_proto_rawDescGZIP(), []int{3} +} + +func (x *AdminFlavour) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminFlavour) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminFlavour) GetType() ComputeResourceType { + if x != nil { + return x.Type + } + return ComputeResourceType_BARE_METAL +} + +func (x *AdminFlavour) GetGeneration() int32 { + if x != nil { + return x.Generation + } + return 0 +} + +func (x *AdminFlavour) GetCpu() string { + if x != nil { + return x.Cpu + } + return "" +} + +func (x *AdminFlavour) GetCpuAmount() int32 { + if x != nil { + return x.CpuAmount + } + return 0 +} + +func (x *AdminFlavour) GetCpuCores() int32 { + if x != nil { + return x.CpuCores + } + return 0 +} + +func (x *AdminFlavour) GetCpuThreads() int32 { + if x != nil { + return x.CpuThreads + } + return 0 +} + +func (x *AdminFlavour) GetMemory() string { + if x != nil { + return x.Memory + } + return "" +} + +func (x *AdminFlavour) GetDisk() string { + if x != nil { + return x.Disk + } + return "" +} + +func (x *AdminFlavour) GetNetwork() string { + if x != nil { + return x.Network + } + return "" +} + +func (x *AdminFlavour) GetTraffic() int64 { + if x != nil { + return x.Traffic + } + return 0 +} + +func (x *AdminFlavour) GetMappings() []*FlavourMapping { + if x != nil { + return x.Mappings + } + return nil +} + +type GetProjectFlavoursRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + DatacenterId string `protobuf:"bytes,2,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` +} + +func (x *GetProjectFlavoursRequest) Reset() { + *x = GetProjectFlavoursRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flavour_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectFlavoursRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectFlavoursRequest) ProtoMessage() {} + +func (x *GetProjectFlavoursRequest) ProtoReflect() protoreflect.Message { + mi := &file_flavour_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 GetProjectFlavoursRequest.ProtoReflect.Descriptor instead. +func (*GetProjectFlavoursRequest) Descriptor() ([]byte, []int) { + return file_flavour_proto_rawDescGZIP(), []int{4} +} + +func (x *GetProjectFlavoursRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *GetProjectFlavoursRequest) GetDatacenterId() string { + if x != nil { + return x.DatacenterId + } + return "" +} + +type AdminUpdateFlavourRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Cpu string `protobuf:"bytes,5,opt,name=cpu,proto3" json:"cpu,omitempty"` + CpuAmount int32 `protobuf:"varint,6,opt,name=cpu_amount,json=cpuAmount,proto3" json:"cpu_amount,omitempty"` + CpuCores int32 `protobuf:"varint,7,opt,name=cpu_cores,json=cpuCores,proto3" json:"cpu_cores,omitempty"` + CpuThreads int32 `protobuf:"varint,8,opt,name=cpu_threads,json=cpuThreads,proto3" json:"cpu_threads,omitempty"` + Memory string `protobuf:"bytes,9,opt,name=memory,proto3" json:"memory,omitempty"` + Disk string `protobuf:"bytes,10,opt,name=disk,proto3" json:"disk,omitempty"` + Network string `protobuf:"bytes,11,opt,name=network,proto3" json:"network,omitempty"` + Traffic int64 `protobuf:"varint,12,opt,name=traffic,proto3" json:"traffic,omitempty"` // Traffic given in GB/month + Mappings []*FlavourMapping `protobuf:"bytes,13,rep,name=mappings,proto3" json:"mappings,omitempty"` +} + +func (x *AdminUpdateFlavourRequest) Reset() { + *x = AdminUpdateFlavourRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flavour_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateFlavourRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateFlavourRequest) ProtoMessage() {} + +func (x *AdminUpdateFlavourRequest) ProtoReflect() protoreflect.Message { + mi := &file_flavour_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 AdminUpdateFlavourRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateFlavourRequest) Descriptor() ([]byte, []int) { + return file_flavour_proto_rawDescGZIP(), []int{5} +} + +func (x *AdminUpdateFlavourRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateFlavourRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminUpdateFlavourRequest) GetCpu() string { + if x != nil { + return x.Cpu + } + return "" +} + +func (x *AdminUpdateFlavourRequest) GetCpuAmount() int32 { + if x != nil { + return x.CpuAmount + } + return 0 +} + +func (x *AdminUpdateFlavourRequest) GetCpuCores() int32 { + if x != nil { + return x.CpuCores + } + return 0 +} + +func (x *AdminUpdateFlavourRequest) GetCpuThreads() int32 { + if x != nil { + return x.CpuThreads + } + return 0 +} + +func (x *AdminUpdateFlavourRequest) GetMemory() string { + if x != nil { + return x.Memory + } + return "" +} + +func (x *AdminUpdateFlavourRequest) GetDisk() string { + if x != nil { + return x.Disk + } + return "" +} + +func (x *AdminUpdateFlavourRequest) GetNetwork() string { + if x != nil { + return x.Network + } + return "" +} + +func (x *AdminUpdateFlavourRequest) GetTraffic() int64 { + if x != nil { + return x.Traffic + } + return 0 +} + +func (x *AdminUpdateFlavourRequest) GetMappings() []*FlavourMapping { + if x != nil { + return x.Mappings + } + return nil +} + +type AdminCreateFlavourRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Type ComputeResourceType `protobuf:"varint,2,opt,name=type,proto3,enum=api.ComputeResourceType" json:"type,omitempty"` +} + +func (x *AdminCreateFlavourRequest) Reset() { + *x = AdminCreateFlavourRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flavour_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateFlavourRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateFlavourRequest) ProtoMessage() {} + +func (x *AdminCreateFlavourRequest) ProtoReflect() protoreflect.Message { + mi := &file_flavour_proto_msgTypes[6] + 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 AdminCreateFlavourRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateFlavourRequest) Descriptor() ([]byte, []int) { + return file_flavour_proto_rawDescGZIP(), []int{6} +} + +func (x *AdminCreateFlavourRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminCreateFlavourRequest) GetType() ComputeResourceType { + if x != nil { + return x.Type + } + return ComputeResourceType_BARE_METAL +} + +type GetProjectFlavoursResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Flavours []*Flavour `protobuf:"bytes,1,rep,name=flavours,proto3" json:"flavours,omitempty"` +} + +func (x *GetProjectFlavoursResponse) Reset() { + *x = GetProjectFlavoursResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flavour_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectFlavoursResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectFlavoursResponse) ProtoMessage() {} + +func (x *GetProjectFlavoursResponse) ProtoReflect() protoreflect.Message { + mi := &file_flavour_proto_msgTypes[7] + 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 GetProjectFlavoursResponse.ProtoReflect.Descriptor instead. +func (*GetProjectFlavoursResponse) Descriptor() ([]byte, []int) { + return file_flavour_proto_rawDescGZIP(), []int{7} +} + +func (x *GetProjectFlavoursResponse) GetFlavours() []*Flavour { + if x != nil { + return x.Flavours + } + return nil +} + +type AdminDeleteFlavourRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteFlavourRequest) Reset() { + *x = AdminDeleteFlavourRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flavour_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteFlavourRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteFlavourRequest) ProtoMessage() {} + +func (x *AdminDeleteFlavourRequest) ProtoReflect() protoreflect.Message { + mi := &file_flavour_proto_msgTypes[8] + 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 AdminDeleteFlavourRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteFlavourRequest) Descriptor() ([]byte, []int) { + return file_flavour_proto_rawDescGZIP(), []int{8} +} + +func (x *AdminDeleteFlavourRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +var File_flavour_proto protoreflect.FileDescriptor + +var file_flavour_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x1a, 0x0d, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0e, + 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x23, + 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x4f, + 0x72, 0x64, 0x65, 0x72, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x20, 0x0a, 0x05, 0x70, 0x72, 0x69, + 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x52, 0x0a, 0x19, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x66, 0x6c, 0x61, 0x76, + 0x6f, 0x75, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x46, 0x6c, + 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, 0x08, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, 0x22, + 0x91, 0x03, 0x0a, 0x07, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, + 0x0c, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, + 0x72, 0x2e, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x63, 0x70, 0x75, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x69, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x69, 0x73, + 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x74, + 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x72, + 0x61, 0x66, 0x66, 0x69, 0x63, 0x12, 0x20, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x13, 0x77, 0x69, 0x6e, 0x64, 0x6f, + 0x77, 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x52, 0x11, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, + 0x46, 0x65, 0x65, 0x22, 0x88, 0x03, 0x0a, 0x0c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x46, 0x6c, 0x61, + 0x76, 0x6f, 0x75, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x70, 0x75, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x70, 0x75, 0x5f, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x70, + 0x75, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x70, 0x75, 0x5f, 0x63, + 0x6f, 0x72, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x70, 0x75, 0x43, + 0x6f, 0x72, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x70, 0x75, 0x5f, 0x74, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x63, 0x70, 0x75, 0x54, 0x68, + 0x72, 0x65, 0x61, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x69, 0x73, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x69, 0x73, + 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x74, + 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x72, + 0x61, 0x66, 0x66, 0x69, 0x63, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, + 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, + 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x4d, 0x61, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x5f, + 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x46, 0x6c, 0x61, 0x76, + 0x6f, 0x75, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, + 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, + 0xc7, 0x02, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, + 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x63, 0x70, 0x75, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x70, 0x75, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x70, 0x75, 0x41, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x70, 0x75, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x70, 0x75, 0x43, 0x6f, 0x72, 0x65, 0x73, 0x12, + 0x1f, 0x0a, 0x0b, 0x63, 0x70, 0x75, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x63, 0x70, 0x75, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, + 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x69, 0x73, 0x6b, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x69, 0x73, 0x6b, 0x12, 0x18, 0x0a, 0x07, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, + 0x63, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, + 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x0d, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, + 0x2e, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, + 0x08, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x5d, 0x0a, 0x19, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4e, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, + 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, + 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, 0x08, + 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, 0x22, 0x2b, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x2a, 0x51, 0x0a, 0x13, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, + 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x10, 0x0a, 0x0c, + 0x4f, 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x53, 0x54, 0x4f, 0x43, 0x4b, 0x10, 0x00, 0x12, 0x0c, + 0x0a, 0x08, 0x50, 0x52, 0x45, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, + 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x49, 0x44, 0x10, 0x03, 0x12, 0x08, + 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x04, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flavour_proto_rawDescOnce sync.Once + file_flavour_proto_rawDescData = file_flavour_proto_rawDesc +) + +func file_flavour_proto_rawDescGZIP() []byte { + file_flavour_proto_rawDescOnce.Do(func() { + file_flavour_proto_rawDescData = protoimpl.X.CompressGZIP(file_flavour_proto_rawDescData) + }) + return file_flavour_proto_rawDescData +} + +var file_flavour_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flavour_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_flavour_proto_goTypes = []interface{}{ + (FlavourAvailability)(0), // 0: api.flavour.FlavourAvailability + (*FlavourMapping)(nil), // 1: api.flavour.FlavourMapping + (*AdminListFlavoursResponse)(nil), // 2: api.flavour.AdminListFlavoursResponse + (*Flavour)(nil), // 3: api.flavour.Flavour + (*AdminFlavour)(nil), // 4: api.flavour.AdminFlavour + (*GetProjectFlavoursRequest)(nil), // 5: api.flavour.GetProjectFlavoursRequest + (*AdminUpdateFlavourRequest)(nil), // 6: api.flavour.AdminUpdateFlavourRequest + (*AdminCreateFlavourRequest)(nil), // 7: api.flavour.AdminCreateFlavourRequest + (*GetProjectFlavoursResponse)(nil), // 8: api.flavour.GetProjectFlavoursResponse + (*AdminDeleteFlavourRequest)(nil), // 9: api.flavour.AdminDeleteFlavourRequest + (*Price)(nil), // 10: api.Price + (ComputeResourceType)(0), // 11: api.ComputeResourceType +} +var file_flavour_proto_depIdxs = []int32{ + 10, // 0: api.flavour.FlavourMapping.price:type_name -> api.Price + 4, // 1: api.flavour.AdminListFlavoursResponse.flavours:type_name -> api.flavour.AdminFlavour + 11, // 2: api.flavour.Flavour.type:type_name -> api.ComputeResourceType + 0, // 3: api.flavour.Flavour.availability:type_name -> api.flavour.FlavourAvailability + 10, // 4: api.flavour.Flavour.price:type_name -> api.Price + 10, // 5: api.flavour.Flavour.windows_monthly_fee:type_name -> api.Price + 11, // 6: api.flavour.AdminFlavour.type:type_name -> api.ComputeResourceType + 1, // 7: api.flavour.AdminFlavour.mappings:type_name -> api.flavour.FlavourMapping + 1, // 8: api.flavour.AdminUpdateFlavourRequest.mappings:type_name -> api.flavour.FlavourMapping + 11, // 9: api.flavour.AdminCreateFlavourRequest.type:type_name -> api.ComputeResourceType + 3, // 10: api.flavour.GetProjectFlavoursResponse.flavours:type_name -> api.flavour.Flavour + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_flavour_proto_init() } +func file_flavour_proto_init() { + if File_flavour_proto != nil { + return + } + file_generic_proto_init() + if !protoimpl.UnsafeEnabled { + file_flavour_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FlavourMapping); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flavour_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListFlavoursResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flavour_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Flavour); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flavour_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminFlavour); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flavour_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectFlavoursRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flavour_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateFlavourRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flavour_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateFlavourRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flavour_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectFlavoursResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flavour_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteFlavourRequest); 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_flavour_proto_rawDesc, + NumEnums: 1, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flavour_proto_goTypes, + DependencyIndexes: file_flavour_proto_depIdxs, + EnumInfos: file_flavour_proto_enumTypes, + MessageInfos: file_flavour_proto_msgTypes, + }.Build() + File_flavour_proto = out.File + file_flavour_proto_rawDesc = nil + file_flavour_proto_goTypes = nil + file_flavour_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/generic.pb.go b/pkg/gpcloud/ptypes/generic.pb.go new file mode 100644 index 0000000..a7da6e8 --- /dev/null +++ b/pkg/gpcloud/ptypes/generic.pb.go @@ -0,0 +1,456 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: generic.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type ComputeResourceType int32 + +const ( + ComputeResourceType_BARE_METAL ComputeResourceType = 0 + ComputeResourceType_VIRTUAL ComputeResourceType = 1 +) + +// Enum value maps for ComputeResourceType. +var ( + ComputeResourceType_name = map[int32]string{ + 0: "BARE_METAL", + 1: "VIRTUAL", + } + ComputeResourceType_value = map[string]int32{ + "BARE_METAL": 0, + "VIRTUAL": 1, + } +) + +func (x ComputeResourceType) Enum() *ComputeResourceType { + p := new(ComputeResourceType) + *p = x + return p +} + +func (x ComputeResourceType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ComputeResourceType) Descriptor() protoreflect.EnumDescriptor { + return file_generic_proto_enumTypes[0].Descriptor() +} + +func (ComputeResourceType) Type() protoreflect.EnumType { + return &file_generic_proto_enumTypes[0] +} + +func (x ComputeResourceType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ComputeResourceType.Descriptor instead. +func (ComputeResourceType) EnumDescriptor() ([]byte, []int) { + return file_generic_proto_rawDescGZIP(), []int{0} +} + +type Platform int32 + +const ( + Platform_UNKNOWN Platform = 0 + Platform_WINDOWS Platform = 1 + Platform_MAC_OS Platform = 2 + Platform_LINUX Platform = 3 + Platform_ANDROID Platform = 4 + Platform_IOS Platform = 5 +) + +// Enum value maps for Platform. +var ( + Platform_name = map[int32]string{ + 0: "UNKNOWN", + 1: "WINDOWS", + 2: "MAC_OS", + 3: "LINUX", + 4: "ANDROID", + 5: "IOS", + } + Platform_value = map[string]int32{ + "UNKNOWN": 0, + "WINDOWS": 1, + "MAC_OS": 2, + "LINUX": 3, + "ANDROID": 4, + "IOS": 5, + } +) + +func (x Platform) Enum() *Platform { + p := new(Platform) + *p = x + return p +} + +func (x Platform) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Platform) Descriptor() protoreflect.EnumDescriptor { + return file_generic_proto_enumTypes[1].Descriptor() +} + +func (Platform) Type() protoreflect.EnumType { + return &file_generic_proto_enumTypes[1] +} + +func (x Platform) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Platform.Descriptor instead. +func (Platform) EnumDescriptor() ([]byte, []int) { + return file_generic_proto_rawDescGZIP(), []int{1} +} + +type File struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` + MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` +} + +func (x *File) Reset() { + *x = File{} + if protoimpl.UnsafeEnabled { + mi := &file_generic_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *File) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*File) ProtoMessage() {} + +func (x *File) ProtoReflect() protoreflect.Message { + mi := &file_generic_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 File.ProtoReflect.Descriptor instead. +func (*File) Descriptor() ([]byte, []int) { + return file_generic_proto_rawDescGZIP(), []int{0} +} + +func (x *File) GetBytes() []byte { + if x != nil { + return x.Bytes + } + return nil +} + +func (x *File) GetMimeType() string { + if x != nil { + return x.MimeType + } + return "" +} + +type Price struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` + // ISO 4217 code + Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"` + // Formatted string of price + Formatted string `protobuf:"bytes,3,opt,name=formatted,proto3" json:"formatted,omitempty"` +} + +func (x *Price) Reset() { + *x = Price{} + if protoimpl.UnsafeEnabled { + mi := &file_generic_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Price) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Price) ProtoMessage() {} + +func (x *Price) ProtoReflect() protoreflect.Message { + mi := &file_generic_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 Price.ProtoReflect.Descriptor instead. +func (*Price) Descriptor() ([]byte, []int) { + return file_generic_proto_rawDescGZIP(), []int{1} +} + +func (x *Price) GetAmount() int64 { + if x != nil { + return x.Amount + } + return 0 +} + +func (x *Price) GetCurrency() string { + if x != nil { + return x.Currency + } + return "" +} + +func (x *Price) GetFormatted() string { + if x != nil { + return x.Formatted + } + return "" +} + +type EmptyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *EmptyResponse) Reset() { + *x = EmptyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_generic_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EmptyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EmptyResponse) ProtoMessage() {} + +func (x *EmptyResponse) ProtoReflect() protoreflect.Message { + mi := &file_generic_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 EmptyResponse.ProtoReflect.Descriptor instead. +func (*EmptyResponse) Descriptor() ([]byte, []int) { + return file_generic_proto_rawDescGZIP(), []int{2} +} + +type EmptyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *EmptyRequest) Reset() { + *x = EmptyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_generic_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EmptyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EmptyRequest) ProtoMessage() {} + +func (x *EmptyRequest) ProtoReflect() protoreflect.Message { + mi := &file_generic_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 EmptyRequest.ProtoReflect.Descriptor instead. +func (*EmptyRequest) Descriptor() ([]byte, []int) { + return file_generic_proto_rawDescGZIP(), []int{3} +} + +var File_generic_proto protoreflect.FileDescriptor + +var file_generic_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x03, 0x61, 0x70, 0x69, 0x22, 0x39, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, + 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, + 0x59, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x1c, 0x0a, 0x09, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x64, 0x22, 0x0f, 0x0a, 0x0d, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2a, 0x32, 0x0a, 0x13, 0x43, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x42, 0x41, 0x52, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x41, 0x4c, + 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x56, 0x49, 0x52, 0x54, 0x55, 0x41, 0x4c, 0x10, 0x01, 0x2a, + 0x51, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x0b, 0x0a, 0x07, 0x55, + 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x49, 0x4e, 0x44, + 0x4f, 0x57, 0x53, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x41, 0x43, 0x5f, 0x4f, 0x53, 0x10, + 0x02, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x49, 0x4e, 0x55, 0x58, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, + 0x41, 0x4e, 0x44, 0x52, 0x4f, 0x49, 0x44, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4f, 0x53, + 0x10, 0x05, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_generic_proto_rawDescOnce sync.Once + file_generic_proto_rawDescData = file_generic_proto_rawDesc +) + +func file_generic_proto_rawDescGZIP() []byte { + file_generic_proto_rawDescOnce.Do(func() { + file_generic_proto_rawDescData = protoimpl.X.CompressGZIP(file_generic_proto_rawDescData) + }) + return file_generic_proto_rawDescData +} + +var file_generic_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_generic_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_generic_proto_goTypes = []interface{}{ + (ComputeResourceType)(0), // 0: api.ComputeResourceType + (Platform)(0), // 1: api.Platform + (*File)(nil), // 2: api.File + (*Price)(nil), // 3: api.Price + (*EmptyResponse)(nil), // 4: api.EmptyResponse + (*EmptyRequest)(nil), // 5: api.EmptyRequest +} +var file_generic_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_generic_proto_init() } +func file_generic_proto_init() { + if File_generic_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_generic_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*File); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generic_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Price); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generic_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmptyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_generic_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmptyRequest); 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_generic_proto_rawDesc, + NumEnums: 2, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_generic_proto_goTypes, + DependencyIndexes: file_generic_proto_depIdxs, + EnumInfos: file_generic_proto_enumTypes, + MessageInfos: file_generic_proto_msgTypes, + }.Build() + File_generic_proto = out.File + file_generic_proto_rawDesc = nil + file_generic_proto_goTypes = nil + file_generic_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/hardware.pb.go b/pkg/gpcloud/ptypes/hardware.pb.go new file mode 100644 index 0000000..d474885 --- /dev/null +++ b/pkg/gpcloud/ptypes/hardware.pb.go @@ -0,0 +1,457 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: hardware.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type HardwarePart struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Serial string `protobuf:"bytes,3,opt,name=serial,proto3" json:"serial,omitempty"` +} + +func (x *HardwarePart) Reset() { + *x = HardwarePart{} + if protoimpl.UnsafeEnabled { + mi := &file_hardware_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HardwarePart) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HardwarePart) ProtoMessage() {} + +func (x *HardwarePart) ProtoReflect() protoreflect.Message { + mi := &file_hardware_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 HardwarePart.ProtoReflect.Descriptor instead. +func (*HardwarePart) Descriptor() ([]byte, []int) { + return file_hardware_proto_rawDescGZIP(), []int{0} +} + +func (x *HardwarePart) GetVendor() string { + if x != nil { + return x.Vendor + } + return "" +} + +func (x *HardwarePart) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *HardwarePart) GetSerial() string { + if x != nil { + return x.Serial + } + return "" +} + +type HardwareInterface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Speed int32 `protobuf:"varint,1,opt,name=speed,proto3" json:"speed,omitempty"` + Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + MacAddress string `protobuf:"bytes,4,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` +} + +func (x *HardwareInterface) Reset() { + *x = HardwareInterface{} + if protoimpl.UnsafeEnabled { + mi := &file_hardware_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HardwareInterface) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HardwareInterface) ProtoMessage() {} + +func (x *HardwareInterface) ProtoReflect() protoreflect.Message { + mi := &file_hardware_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 HardwareInterface.ProtoReflect.Descriptor instead. +func (*HardwareInterface) Descriptor() ([]byte, []int) { + return file_hardware_proto_rawDescGZIP(), []int{1} +} + +func (x *HardwareInterface) GetSpeed() int32 { + if x != nil { + return x.Speed + } + return 0 +} + +func (x *HardwareInterface) GetVendor() string { + if x != nil { + return x.Vendor + } + return "" +} + +func (x *HardwareInterface) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *HardwareInterface) GetMacAddress() string { + if x != nil { + return x.MacAddress + } + return "" +} + +type HardwareInventory struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + System *HardwarePart `protobuf:"bytes,1,opt,name=system,proto3" json:"system,omitempty"` + Board *HardwarePart `protobuf:"bytes,2,opt,name=board,proto3" json:"board,omitempty"` + Cpus []*HardwarePart `protobuf:"bytes,3,rep,name=cpus,proto3" json:"cpus,omitempty"` + Disks []*HardwarePart `protobuf:"bytes,4,rep,name=disks,proto3" json:"disks,omitempty"` + Memory []*HardwarePart `protobuf:"bytes,5,rep,name=memory,proto3" json:"memory,omitempty"` + NetworkInterfaces []*HardwareInterface `protobuf:"bytes,6,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"` +} + +func (x *HardwareInventory) Reset() { + *x = HardwareInventory{} + if protoimpl.UnsafeEnabled { + mi := &file_hardware_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HardwareInventory) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HardwareInventory) ProtoMessage() {} + +func (x *HardwareInventory) ProtoReflect() protoreflect.Message { + mi := &file_hardware_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 HardwareInventory.ProtoReflect.Descriptor instead. +func (*HardwareInventory) Descriptor() ([]byte, []int) { + return file_hardware_proto_rawDescGZIP(), []int{2} +} + +func (x *HardwareInventory) GetSystem() *HardwarePart { + if x != nil { + return x.System + } + return nil +} + +func (x *HardwareInventory) GetBoard() *HardwarePart { + if x != nil { + return x.Board + } + return nil +} + +func (x *HardwareInventory) GetCpus() []*HardwarePart { + if x != nil { + return x.Cpus + } + return nil +} + +func (x *HardwareInventory) GetDisks() []*HardwarePart { + if x != nil { + return x.Disks + } + return nil +} + +func (x *HardwareInventory) GetMemory() []*HardwarePart { + if x != nil { + return x.Memory + } + return nil +} + +func (x *HardwareInventory) GetNetworkInterfaces() []*HardwareInterface { + if x != nil { + return x.NetworkInterfaces + } + return nil +} + +type PushHardwareInventoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + Inventory *HardwareInventory `protobuf:"bytes,2,opt,name=inventory,proto3" json:"inventory,omitempty"` +} + +func (x *PushHardwareInventoryRequest) Reset() { + *x = PushHardwareInventoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_hardware_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PushHardwareInventoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PushHardwareInventoryRequest) ProtoMessage() {} + +func (x *PushHardwareInventoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_hardware_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 PushHardwareInventoryRequest.ProtoReflect.Descriptor instead. +func (*PushHardwareInventoryRequest) Descriptor() ([]byte, []int) { + return file_hardware_proto_rawDescGZIP(), []int{3} +} + +func (x *PushHardwareInventoryRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *PushHardwareInventoryRequest) GetInventory() *HardwareInventory { + if x != nil { + return x.Inventory + } + return nil +} + +var File_hardware_proto protoreflect.FileDescriptor + +var file_hardware_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x68, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0c, 0x61, 0x70, 0x69, 0x2e, 0x68, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x22, 0x52, + 0x0a, 0x0c, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x50, 0x61, 0x72, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, + 0x72, 0x69, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x69, + 0x61, 0x6c, 0x22, 0x76, 0x0a, 0x11, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x70, 0x65, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x70, 0x65, 0x65, 0x64, 0x12, 0x16, 0x0a, + 0x06, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, + 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x63, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x6d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xdf, 0x02, 0x0a, 0x11, 0x48, + 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x32, 0x0a, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x68, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x2e, + 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x50, 0x61, 0x72, 0x74, 0x52, 0x06, 0x73, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x12, 0x30, 0x0a, 0x05, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x68, 0x61, 0x72, 0x64, 0x77, 0x61, + 0x72, 0x65, 0x2e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x50, 0x61, 0x72, 0x74, 0x52, + 0x05, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x68, 0x61, 0x72, 0x64, 0x77, + 0x61, 0x72, 0x65, 0x2e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x50, 0x61, 0x72, 0x74, + 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, 0x30, 0x0a, 0x05, 0x64, 0x69, 0x73, 0x6b, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x68, 0x61, 0x72, 0x64, + 0x77, 0x61, 0x72, 0x65, 0x2e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x50, 0x61, 0x72, + 0x74, 0x52, 0x05, 0x64, 0x69, 0x73, 0x6b, 0x73, 0x12, 0x32, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, + 0x72, 0x79, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x68, + 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, + 0x50, 0x61, 0x72, 0x74, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x4e, 0x0a, 0x12, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x68, + 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x22, 0x6d, 0x0a, 0x1c, + 0x50, 0x75, 0x73, 0x68, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x3d, 0x0a, 0x09, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x68, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x48, + 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x52, 0x09, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x16, 0x5a, 0x14, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_hardware_proto_rawDescOnce sync.Once + file_hardware_proto_rawDescData = file_hardware_proto_rawDesc +) + +func file_hardware_proto_rawDescGZIP() []byte { + file_hardware_proto_rawDescOnce.Do(func() { + file_hardware_proto_rawDescData = protoimpl.X.CompressGZIP(file_hardware_proto_rawDescData) + }) + return file_hardware_proto_rawDescData +} + +var file_hardware_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_hardware_proto_goTypes = []interface{}{ + (*HardwarePart)(nil), // 0: api.hardware.HardwarePart + (*HardwareInterface)(nil), // 1: api.hardware.HardwareInterface + (*HardwareInventory)(nil), // 2: api.hardware.HardwareInventory + (*PushHardwareInventoryRequest)(nil), // 3: api.hardware.PushHardwareInventoryRequest +} +var file_hardware_proto_depIdxs = []int32{ + 0, // 0: api.hardware.HardwareInventory.system:type_name -> api.hardware.HardwarePart + 0, // 1: api.hardware.HardwareInventory.board:type_name -> api.hardware.HardwarePart + 0, // 2: api.hardware.HardwareInventory.cpus:type_name -> api.hardware.HardwarePart + 0, // 3: api.hardware.HardwareInventory.disks:type_name -> api.hardware.HardwarePart + 0, // 4: api.hardware.HardwareInventory.memory:type_name -> api.hardware.HardwarePart + 1, // 5: api.hardware.HardwareInventory.network_interfaces:type_name -> api.hardware.HardwareInterface + 2, // 6: api.hardware.PushHardwareInventoryRequest.inventory:type_name -> api.hardware.HardwareInventory + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_hardware_proto_init() } +func file_hardware_proto_init() { + if File_hardware_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_hardware_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HardwarePart); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hardware_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HardwareInterface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hardware_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HardwareInventory); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hardware_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PushHardwareInventoryRequest); 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_hardware_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_hardware_proto_goTypes, + DependencyIndexes: file_hardware_proto_depIdxs, + MessageInfos: file_hardware_proto_msgTypes, + }.Build() + File_hardware_proto = out.File + file_hardware_proto_rawDesc = nil + file_hardware_proto_goTypes = nil + file_hardware_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/image.pb.go b/pkg/gpcloud/ptypes/image.pb.go new file mode 100644 index 0000000..150c699 --- /dev/null +++ b/pkg/gpcloud/ptypes/image.pb.go @@ -0,0 +1,2308 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: image.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type AuthenticationType int32 + +const ( + AuthenticationType_PASSWORD AuthenticationType = 0 + AuthenticationType_SSH_KEY AuthenticationType = 1 +) + +// Enum value maps for AuthenticationType. +var ( + AuthenticationType_name = map[int32]string{ + 0: "PASSWORD", + 1: "SSH_KEY", + } + AuthenticationType_value = map[string]int32{ + "PASSWORD": 0, + "SSH_KEY": 1, + } +) + +func (x AuthenticationType) Enum() *AuthenticationType { + p := new(AuthenticationType) + *p = x + return p +} + +func (x AuthenticationType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AuthenticationType) Descriptor() protoreflect.EnumDescriptor { + return file_image_proto_enumTypes[0].Descriptor() +} + +func (AuthenticationType) Type() protoreflect.EnumType { + return &file_image_proto_enumTypes[0] +} + +func (x AuthenticationType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AuthenticationType.Descriptor instead. +func (AuthenticationType) EnumDescriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{0} +} + +type ImageType int32 + +const ( + ImageType_UNKNOWN ImageType = 0 + ImageType_QCOW2 ImageType = 1 + ImageType_RAW ImageType = 2 +) + +// Enum value maps for ImageType. +var ( + ImageType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "QCOW2", + 2: "RAW", + } + ImageType_value = map[string]int32{ + "UNKNOWN": 0, + "QCOW2": 1, + "RAW": 2, + } +) + +func (x ImageType) Enum() *ImageType { + p := new(ImageType) + *p = x + return p +} + +func (x ImageType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ImageType) Descriptor() protoreflect.EnumDescriptor { + return file_image_proto_enumTypes[1].Descriptor() +} + +func (ImageType) Type() protoreflect.EnumType { + return &file_image_proto_enumTypes[1] +} + +func (x ImageType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ImageType.Descriptor instead. +func (ImageType) EnumDescriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{1} +} + +// OperatingSystem Returns the type of the OS (Ubuntu, CentOS, Debian, Windows Server) +type OperatingSystem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Icon string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"` +} + +func (x *OperatingSystem) Reset() { + *x = OperatingSystem{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OperatingSystem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OperatingSystem) ProtoMessage() {} + +func (x *OperatingSystem) ProtoReflect() protoreflect.Message { + mi := &file_image_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 OperatingSystem.ProtoReflect.Descriptor instead. +func (*OperatingSystem) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{0} +} + +func (x *OperatingSystem) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *OperatingSystem) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OperatingSystem) GetIcon() string { + if x != nil { + return x.Icon + } + return "" +} + +// Image Represents a OS Image with a specific version of a Operating System +type Image struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Image UUID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Operating system of image (only for public images) + OperatingSystem *OperatingSystem `protobuf:"bytes,2,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"` + // Name of image + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Default username + Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` + // Public image + Public bool `protobuf:"varint,5,opt,name=public,proto3" json:"public,omitempty"` + // Available for installations + Available bool `protobuf:"varint,6,opt,name=available,proto3" json:"available,omitempty"` + // Supported authentication types for image + AuthenticationTypes []AuthenticationType `protobuf:"varint,7,rep,packed,name=authentication_types,json=authenticationTypes,proto3,enum=api.image.AuthenticationType" json:"authentication_types,omitempty"` + // To which project the image belongs + // Only set if public is false + Project *Project `protobuf:"bytes,8,opt,name=project,proto3" json:"project,omitempty"` + // Image versions + Versions []*ImageVersion `protobuf:"bytes,9,rep,name=versions,proto3" json:"versions,omitempty"` + // Image upload + ImageUpload *ImageUpload `protobuf:"bytes,10,opt,name=image_upload,json=imageUpload,proto3" json:"image_upload,omitempty"` + // vendor data script + VendorData string `protobuf:"bytes,11,opt,name=vendor_data,json=vendorData,proto3" json:"vendor_data,omitempty"` + // Contains a SPLA license + SplaLicense bool `protobuf:"varint,12,opt,name=spla_license,json=splaLicense,proto3" json:"spla_license,omitempty"` + // Image timestamps + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *Image) Reset() { + *x = Image{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Image) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Image) ProtoMessage() {} + +func (x *Image) ProtoReflect() protoreflect.Message { + mi := &file_image_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 Image.ProtoReflect.Descriptor instead. +func (*Image) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{1} +} + +func (x *Image) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Image) GetOperatingSystem() *OperatingSystem { + if x != nil { + return x.OperatingSystem + } + return nil +} + +func (x *Image) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Image) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *Image) GetPublic() bool { + if x != nil { + return x.Public + } + return false +} + +func (x *Image) GetAvailable() bool { + if x != nil { + return x.Available + } + return false +} + +func (x *Image) GetAuthenticationTypes() []AuthenticationType { + if x != nil { + return x.AuthenticationTypes + } + return nil +} + +func (x *Image) GetProject() *Project { + if x != nil { + return x.Project + } + return nil +} + +func (x *Image) GetVersions() []*ImageVersion { + if x != nil { + return x.Versions + } + return nil +} + +func (x *Image) GetImageUpload() *ImageUpload { + if x != nil { + return x.ImageUpload + } + return nil +} + +func (x *Image) GetVendorData() string { + if x != nil { + return x.VendorData + } + return "" +} + +func (x *Image) GetSplaLicense() bool { + if x != nil { + return x.SplaLicense + } + return false +} + +func (x *Image) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Image) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type ImageUpload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Upload URL + UploadUrl string `protobuf:"bytes,1,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"` + // Upload token + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *ImageUpload) Reset() { + *x = ImageUpload{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ImageUpload) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ImageUpload) ProtoMessage() {} + +func (x *ImageUpload) ProtoReflect() protoreflect.Message { + mi := &file_image_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 ImageUpload.ProtoReflect.Descriptor instead. +func (*ImageUpload) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{2} +} + +func (x *ImageUpload) GetUploadUrl() string { + if x != nil { + return x.UploadUrl + } + return "" +} + +func (x *ImageUpload) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// Image Represents a OS Image with a specific version of a Operating System +type ImageVersion struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Image version ID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type ImageType `protobuf:"varint,2,opt,name=type,proto3,enum=api.image.ImageType" json:"type,omitempty"` + // Size if image version + Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` + // If image version is available + Available bool `protobuf:"varint,4,opt,name=available,proto3" json:"available,omitempty"` + // Image image is gzip compressed + Compressed bool `protobuf:"varint,5,opt,name=compressed,proto3" json:"compressed,omitempty"` + // Image timestamps + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *ImageVersion) Reset() { + *x = ImageVersion{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ImageVersion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ImageVersion) ProtoMessage() {} + +func (x *ImageVersion) ProtoReflect() protoreflect.Message { + mi := &file_image_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 ImageVersion.ProtoReflect.Descriptor instead. +func (*ImageVersion) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{3} +} + +func (x *ImageVersion) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ImageVersion) GetType() ImageType { + if x != nil { + return x.Type + } + return ImageType_UNKNOWN +} + +func (x *ImageVersion) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *ImageVersion) GetAvailable() bool { + if x != nil { + return x.Available + } + return false +} + +func (x *ImageVersion) GetCompressed() bool { + if x != nil { + return x.Compressed + } + return false +} + +func (x *ImageVersion) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *ImageVersion) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type ListPublicImagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FlavourId string `protobuf:"bytes,1,opt,name=flavour_id,json=flavourId,proto3" json:"flavour_id,omitempty"` +} + +func (x *ListPublicImagesRequest) Reset() { + *x = ListPublicImagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPublicImagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPublicImagesRequest) ProtoMessage() {} + +func (x *ListPublicImagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_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 ListPublicImagesRequest.ProtoReflect.Descriptor instead. +func (*ListPublicImagesRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{4} +} + +func (x *ListPublicImagesRequest) GetFlavourId() string { + if x != nil { + return x.FlavourId + } + return "" +} + +type ListImagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Images []*Image `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"` +} + +func (x *ListImagesResponse) Reset() { + *x = ListImagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListImagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListImagesResponse) ProtoMessage() {} + +func (x *ListImagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_image_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 ListImagesResponse.ProtoReflect.Descriptor instead. +func (*ListImagesResponse) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{5} +} + +func (x *ListImagesResponse) GetImages() []*Image { + if x != nil { + return x.Images + } + return nil +} + +type AdminListImagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Images []*Image `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"` +} + +func (x *AdminListImagesResponse) Reset() { + *x = AdminListImagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListImagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListImagesResponse) ProtoMessage() {} + +func (x *AdminListImagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[6] + 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 AdminListImagesResponse.ProtoReflect.Descriptor instead. +func (*AdminListImagesResponse) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{6} +} + +func (x *AdminListImagesResponse) GetImages() []*Image { + if x != nil { + return x.Images + } + return nil +} + +type CreateProjectImageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // Image Name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Supported authentication types + AuthenticationTypes []AuthenticationType `protobuf:"varint,3,rep,packed,name=authentication_types,json=authenticationTypes,proto3,enum=api.image.AuthenticationType" json:"authentication_types,omitempty"` +} + +func (x *CreateProjectImageRequest) Reset() { + *x = CreateProjectImageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateProjectImageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateProjectImageRequest) ProtoMessage() {} + +func (x *CreateProjectImageRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[7] + 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 CreateProjectImageRequest.ProtoReflect.Descriptor instead. +func (*CreateProjectImageRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{7} +} + +func (x *CreateProjectImageRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *CreateProjectImageRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateProjectImageRequest) GetAuthenticationTypes() []AuthenticationType { + if x != nil { + return x.AuthenticationTypes + } + return nil +} + +type ListProjectImagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *ListProjectImagesRequest) Reset() { + *x = ListProjectImagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectImagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectImagesRequest) ProtoMessage() {} + +func (x *ListProjectImagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[8] + 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 ListProjectImagesRequest.ProtoReflect.Descriptor instead. +func (*ListProjectImagesRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{8} +} + +func (x *ListProjectImagesRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type ListProjectImagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Images []*Image `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"` +} + +func (x *ListProjectImagesResponse) Reset() { + *x = ListProjectImagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectImagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectImagesResponse) ProtoMessage() {} + +func (x *ListProjectImagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[9] + 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 ListProjectImagesResponse.ProtoReflect.Descriptor instead. +func (*ListProjectImagesResponse) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{9} +} + +func (x *ListProjectImagesResponse) GetImages() []*Image { + if x != nil { + return x.Images + } + return nil +} + +type DeleteProjectImageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ImageId string `protobuf:"bytes,2,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` +} + +func (x *DeleteProjectImageRequest) Reset() { + *x = DeleteProjectImageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteProjectImageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteProjectImageRequest) ProtoMessage() {} + +func (x *DeleteProjectImageRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[10] + 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 DeleteProjectImageRequest.ProtoReflect.Descriptor instead. +func (*DeleteProjectImageRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{10} +} + +func (x *DeleteProjectImageRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *DeleteProjectImageRequest) GetImageId() string { + if x != nil { + return x.ImageId + } + return "" +} + +type DeleteProjectImageVersionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ImageVersionId string `protobuf:"bytes,2,opt,name=image_version_id,json=imageVersionId,proto3" json:"image_version_id,omitempty"` +} + +func (x *DeleteProjectImageVersionRequest) Reset() { + *x = DeleteProjectImageVersionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteProjectImageVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteProjectImageVersionRequest) ProtoMessage() {} + +func (x *DeleteProjectImageVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[11] + 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 DeleteProjectImageVersionRequest.ProtoReflect.Descriptor instead. +func (*DeleteProjectImageVersionRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{11} +} + +func (x *DeleteProjectImageVersionRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *DeleteProjectImageVersionRequest) GetImageVersionId() string { + if x != nil { + return x.ImageVersionId + } + return "" +} + +type ValidateImageUploadTokenRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Image *Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *ValidateImageUploadTokenRequest) Reset() { + *x = ValidateImageUploadTokenRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidateImageUploadTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateImageUploadTokenRequest) ProtoMessage() {} + +func (x *ValidateImageUploadTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[12] + 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 ValidateImageUploadTokenRequest.ProtoReflect.Descriptor instead. +func (*ValidateImageUploadTokenRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{12} +} + +func (x *ValidateImageUploadTokenRequest) GetImage() *Image { + if x != nil { + return x.Image + } + return nil +} + +func (x *ValidateImageUploadTokenRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type ConfirmImageUploadRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ImageVersion *ImageVersion `protobuf:"bytes,1,opt,name=image_version,json=imageVersion,proto3" json:"image_version,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + Type ImageType `protobuf:"varint,3,opt,name=type,proto3,enum=api.image.ImageType" json:"type,omitempty"` + Compressed bool `protobuf:"varint,4,opt,name=compressed,proto3" json:"compressed,omitempty"` +} + +func (x *ConfirmImageUploadRequest) Reset() { + *x = ConfirmImageUploadRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConfirmImageUploadRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfirmImageUploadRequest) ProtoMessage() {} + +func (x *ConfirmImageUploadRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[13] + 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 ConfirmImageUploadRequest.ProtoReflect.Descriptor instead. +func (*ConfirmImageUploadRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{13} +} + +func (x *ConfirmImageUploadRequest) GetImageVersion() *ImageVersion { + if x != nil { + return x.ImageVersion + } + return nil +} + +func (x *ConfirmImageUploadRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *ConfirmImageUploadRequest) GetType() ImageType { + if x != nil { + return x.Type + } + return ImageType_UNKNOWN +} + +func (x *ConfirmImageUploadRequest) GetCompressed() bool { + if x != nil { + return x.Compressed + } + return false +} + +type GetProjectImageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ImageId string `protobuf:"bytes,2,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` +} + +func (x *GetProjectImageRequest) Reset() { + *x = GetProjectImageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectImageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectImageRequest) ProtoMessage() {} + +func (x *GetProjectImageRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[14] + 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 GetProjectImageRequest.ProtoReflect.Descriptor instead. +func (*GetProjectImageRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{14} +} + +func (x *GetProjectImageRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *GetProjectImageRequest) GetImageId() string { + if x != nil { + return x.ImageId + } + return "" +} + +type AdminListOperatingSystemsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OperatingSystems []*OperatingSystem `protobuf:"bytes,1,rep,name=operating_systems,json=operatingSystems,proto3" json:"operating_systems,omitempty"` +} + +func (x *AdminListOperatingSystemsResponse) Reset() { + *x = AdminListOperatingSystemsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListOperatingSystemsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListOperatingSystemsResponse) ProtoMessage() {} + +func (x *AdminListOperatingSystemsResponse) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[15] + 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 AdminListOperatingSystemsResponse.ProtoReflect.Descriptor instead. +func (*AdminListOperatingSystemsResponse) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{15} +} + +func (x *AdminListOperatingSystemsResponse) GetOperatingSystems() []*OperatingSystem { + if x != nil { + return x.OperatingSystems + } + return nil +} + +type AdminGetImageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetImageRequest) Reset() { + *x = AdminGetImageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetImageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetImageRequest) ProtoMessage() {} + +func (x *AdminGetImageRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[16] + 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 AdminGetImageRequest.ProtoReflect.Descriptor instead. +func (*AdminGetImageRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{16} +} + +func (x *AdminGetImageRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminDeleteImageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteImageRequest) Reset() { + *x = AdminDeleteImageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteImageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteImageRequest) ProtoMessage() {} + +func (x *AdminDeleteImageRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[17] + 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 AdminDeleteImageRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteImageRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{17} +} + +func (x *AdminDeleteImageRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminDeleteImageVersionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteImageVersionRequest) Reset() { + *x = AdminDeleteImageVersionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteImageVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteImageVersionRequest) ProtoMessage() {} + +func (x *AdminDeleteImageVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[18] + 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 AdminDeleteImageVersionRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteImageVersionRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{18} +} + +func (x *AdminDeleteImageVersionRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminDeleteOperatingSystemRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteOperatingSystemRequest) Reset() { + *x = AdminDeleteOperatingSystemRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteOperatingSystemRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteOperatingSystemRequest) ProtoMessage() {} + +func (x *AdminDeleteOperatingSystemRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[19] + 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 AdminDeleteOperatingSystemRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteOperatingSystemRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{19} +} + +func (x *AdminDeleteOperatingSystemRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetOperatingSystemRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetOperatingSystemRequest) Reset() { + *x = AdminGetOperatingSystemRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetOperatingSystemRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetOperatingSystemRequest) ProtoMessage() {} + +func (x *AdminGetOperatingSystemRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[20] + 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 AdminGetOperatingSystemRequest.ProtoReflect.Descriptor instead. +func (*AdminGetOperatingSystemRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{20} +} + +func (x *AdminGetOperatingSystemRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminUpdateOperatingSystemRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *AdminUpdateOperatingSystemRequest) Reset() { + *x = AdminUpdateOperatingSystemRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateOperatingSystemRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateOperatingSystemRequest) ProtoMessage() {} + +func (x *AdminUpdateOperatingSystemRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[21] + 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 AdminUpdateOperatingSystemRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateOperatingSystemRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{21} +} + +func (x *AdminUpdateOperatingSystemRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateOperatingSystemRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type AdminCreateOperatingSystemRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *AdminCreateOperatingSystemRequest) Reset() { + *x = AdminCreateOperatingSystemRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateOperatingSystemRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateOperatingSystemRequest) ProtoMessage() {} + +func (x *AdminCreateOperatingSystemRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[22] + 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 AdminCreateOperatingSystemRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateOperatingSystemRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{22} +} + +func (x *AdminCreateOperatingSystemRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type AdminUpdateImageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + OperatingSystemId string `protobuf:"bytes,3,opt,name=operating_system_id,json=operatingSystemId,proto3" json:"operating_system_id,omitempty"` + // Default username + Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` + // Supported authentication types for image + AuthenticationTypes []AuthenticationType `protobuf:"varint,5,rep,packed,name=authentication_types,json=authenticationTypes,proto3,enum=api.image.AuthenticationType" json:"authentication_types,omitempty"` + // vendor data script + VendorData string `protobuf:"bytes,6,opt,name=vendor_data,json=vendorData,proto3" json:"vendor_data,omitempty"` + // Contains a SPLA license + SplaLicense bool `protobuf:"varint,7,opt,name=spla_license,json=splaLicense,proto3" json:"spla_license,omitempty"` + // Available for installations + Available bool `protobuf:"varint,8,opt,name=available,proto3" json:"available,omitempty"` +} + +func (x *AdminUpdateImageRequest) Reset() { + *x = AdminUpdateImageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateImageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateImageRequest) ProtoMessage() {} + +func (x *AdminUpdateImageRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[23] + 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 AdminUpdateImageRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateImageRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{23} +} + +func (x *AdminUpdateImageRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateImageRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminUpdateImageRequest) GetOperatingSystemId() string { + if x != nil { + return x.OperatingSystemId + } + return "" +} + +func (x *AdminUpdateImageRequest) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *AdminUpdateImageRequest) GetAuthenticationTypes() []AuthenticationType { + if x != nil { + return x.AuthenticationTypes + } + return nil +} + +func (x *AdminUpdateImageRequest) GetVendorData() string { + if x != nil { + return x.VendorData + } + return "" +} + +func (x *AdminUpdateImageRequest) GetSplaLicense() bool { + if x != nil { + return x.SplaLicense + } + return false +} + +func (x *AdminUpdateImageRequest) GetAvailable() bool { + if x != nil { + return x.Available + } + return false +} + +type AdminCreateImageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + OperatingSystemId string `protobuf:"bytes,2,opt,name=operating_system_id,json=operatingSystemId,proto3" json:"operating_system_id,omitempty"` + // Default username + Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` + // Supported authentication types for image + AuthenticationTypes []AuthenticationType `protobuf:"varint,4,rep,packed,name=authentication_types,json=authenticationTypes,proto3,enum=api.image.AuthenticationType" json:"authentication_types,omitempty"` + // vendor data script + VendorData string `protobuf:"bytes,5,opt,name=vendor_data,json=vendorData,proto3" json:"vendor_data,omitempty"` + // Contains a SPLA license + SplaLicense bool `protobuf:"varint,6,opt,name=spla_license,json=splaLicense,proto3" json:"spla_license,omitempty"` + // Available for installations + Available bool `protobuf:"varint,7,opt,name=available,proto3" json:"available,omitempty"` +} + +func (x *AdminCreateImageRequest) Reset() { + *x = AdminCreateImageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_image_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateImageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateImageRequest) ProtoMessage() {} + +func (x *AdminCreateImageRequest) ProtoReflect() protoreflect.Message { + mi := &file_image_proto_msgTypes[24] + 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 AdminCreateImageRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateImageRequest) Descriptor() ([]byte, []int) { + return file_image_proto_rawDescGZIP(), []int{24} +} + +func (x *AdminCreateImageRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminCreateImageRequest) GetOperatingSystemId() string { + if x != nil { + return x.OperatingSystemId + } + return "" +} + +func (x *AdminCreateImageRequest) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *AdminCreateImageRequest) GetAuthenticationTypes() []AuthenticationType { + if x != nil { + return x.AuthenticationTypes + } + return nil +} + +func (x *AdminCreateImageRequest) GetVendorData() string { + if x != nil { + return x.VendorData + } + return "" +} + +func (x *AdminCreateImageRequest) GetSplaLicense() bool { + if x != nil { + return x.SplaLicense + } + return false +} + +func (x *AdminCreateImageRequest) GetAvailable() bool { + if x != nil { + return x.Available + } + return false +} + +var File_image_proto protoreflect.FileDescriptor + +var file_image_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x61, + 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x1a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x49, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, + 0x63, 0x6f, 0x6e, 0x22, 0xf0, 0x04, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x45, 0x0a, + 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x52, 0x0f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x1c, 0x0a, 0x09, + 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x50, 0x0a, 0x14, 0x61, 0x75, + 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x13, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x07, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x33, 0x0a, 0x08, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x39, 0x0a, 0x0c, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x70, 0x6c, 0x6f, 0x61, + 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1f, 0x0a, 0x0b, + 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, + 0x0c, 0x73, 0x70, 0x6c, 0x61, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x70, 0x6c, 0x61, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x42, 0x0a, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x55, + 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, + 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x6c, 0x6f, 0x61, + 0x64, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x90, 0x02, 0x0a, 0x0c, 0x49, + 0x6d, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x76, + 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x72, + 0x65, 0x73, 0x73, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x63, 0x6f, 0x6d, + 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x38, 0x0a, + 0x17, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x6c, 0x61, 0x76, + 0x6f, 0x75, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x6c, + 0x61, 0x76, 0x6f, 0x75, 0x72, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x49, + 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, + 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, + 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x22, 0x43, 0x0a, 0x17, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, + 0x6d, 0x61, 0x67, 0x65, 0x52, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x22, 0xa0, 0x01, 0x0a, + 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, + 0x14, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x13, 0x61, 0x75, 0x74, 0x68, + 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, + 0x39, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x19, 0x4c, 0x69, + 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x06, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x73, 0x22, 0x55, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, + 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x6b, 0x0a, 0x20, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x1f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb9, 0x01, 0x0a, 0x19, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x72, 0x6d, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0d, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x65, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x64, 0x22, 0x52, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x6c, 0x0a, 0x21, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, + 0x69, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x11, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, + 0x67, 0x65, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x52, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x73, 0x22, 0x26, 0x0a, 0x14, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, + 0x49, 0x6d, 0x61, 0x67, 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, 0x29, 0x0a, 0x17, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 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, 0x30, 0x0a, 0x1e, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x33, 0x0a, 0x21, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, + 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x30, + 0x0a, 0x1e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 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, 0x21, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x37, 0x0a, 0x21, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, + 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0xbd, 0x02, 0x0a, 0x17, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 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, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, + 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x11, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x50, + 0x0a, 0x14, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x13, 0x61, 0x75, 0x74, + 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x70, 0x6c, 0x61, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x70, 0x6c, 0x61, 0x4c, 0x69, 0x63, + 0x65, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x22, 0xad, 0x02, 0x0a, 0x17, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, + 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x11, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x50, + 0x0a, 0x14, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x13, 0x61, 0x75, 0x74, + 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x70, 0x6c, 0x61, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x70, 0x6c, 0x61, 0x4c, 0x69, 0x63, + 0x65, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x2a, 0x2f, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, + 0x57, 0x4f, 0x52, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x53, 0x48, 0x5f, 0x4b, 0x45, + 0x59, 0x10, 0x01, 0x2a, 0x2c, 0x0a, 0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, + 0x05, 0x51, 0x43, 0x4f, 0x57, 0x32, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x41, 0x57, 0x10, + 0x02, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_image_proto_rawDescOnce sync.Once + file_image_proto_rawDescData = file_image_proto_rawDesc +) + +func file_image_proto_rawDescGZIP() []byte { + file_image_proto_rawDescOnce.Do(func() { + file_image_proto_rawDescData = protoimpl.X.CompressGZIP(file_image_proto_rawDescData) + }) + return file_image_proto_rawDescData +} + +var file_image_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_image_proto_msgTypes = make([]protoimpl.MessageInfo, 25) +var file_image_proto_goTypes = []interface{}{ + (AuthenticationType)(0), // 0: api.image.AuthenticationType + (ImageType)(0), // 1: api.image.ImageType + (*OperatingSystem)(nil), // 2: api.image.OperatingSystem + (*Image)(nil), // 3: api.image.Image + (*ImageUpload)(nil), // 4: api.image.ImageUpload + (*ImageVersion)(nil), // 5: api.image.ImageVersion + (*ListPublicImagesRequest)(nil), // 6: api.image.ListPublicImagesRequest + (*ListImagesResponse)(nil), // 7: api.image.ListImagesResponse + (*AdminListImagesResponse)(nil), // 8: api.image.AdminListImagesResponse + (*CreateProjectImageRequest)(nil), // 9: api.image.CreateProjectImageRequest + (*ListProjectImagesRequest)(nil), // 10: api.image.ListProjectImagesRequest + (*ListProjectImagesResponse)(nil), // 11: api.image.ListProjectImagesResponse + (*DeleteProjectImageRequest)(nil), // 12: api.image.DeleteProjectImageRequest + (*DeleteProjectImageVersionRequest)(nil), // 13: api.image.DeleteProjectImageVersionRequest + (*ValidateImageUploadTokenRequest)(nil), // 14: api.image.ValidateImageUploadTokenRequest + (*ConfirmImageUploadRequest)(nil), // 15: api.image.ConfirmImageUploadRequest + (*GetProjectImageRequest)(nil), // 16: api.image.GetProjectImageRequest + (*AdminListOperatingSystemsResponse)(nil), // 17: api.image.AdminListOperatingSystemsResponse + (*AdminGetImageRequest)(nil), // 18: api.image.AdminGetImageRequest + (*AdminDeleteImageRequest)(nil), // 19: api.image.AdminDeleteImageRequest + (*AdminDeleteImageVersionRequest)(nil), // 20: api.image.AdminDeleteImageVersionRequest + (*AdminDeleteOperatingSystemRequest)(nil), // 21: api.image.AdminDeleteOperatingSystemRequest + (*AdminGetOperatingSystemRequest)(nil), // 22: api.image.AdminGetOperatingSystemRequest + (*AdminUpdateOperatingSystemRequest)(nil), // 23: api.image.AdminUpdateOperatingSystemRequest + (*AdminCreateOperatingSystemRequest)(nil), // 24: api.image.AdminCreateOperatingSystemRequest + (*AdminUpdateImageRequest)(nil), // 25: api.image.AdminUpdateImageRequest + (*AdminCreateImageRequest)(nil), // 26: api.image.AdminCreateImageRequest + (*Project)(nil), // 27: api.project.Project + (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp +} +var file_image_proto_depIdxs = []int32{ + 2, // 0: api.image.Image.operating_system:type_name -> api.image.OperatingSystem + 0, // 1: api.image.Image.authentication_types:type_name -> api.image.AuthenticationType + 27, // 2: api.image.Image.project:type_name -> api.project.Project + 5, // 3: api.image.Image.versions:type_name -> api.image.ImageVersion + 4, // 4: api.image.Image.image_upload:type_name -> api.image.ImageUpload + 28, // 5: api.image.Image.created_at:type_name -> google.protobuf.Timestamp + 28, // 6: api.image.Image.updated_at:type_name -> google.protobuf.Timestamp + 1, // 7: api.image.ImageVersion.type:type_name -> api.image.ImageType + 28, // 8: api.image.ImageVersion.created_at:type_name -> google.protobuf.Timestamp + 28, // 9: api.image.ImageVersion.updated_at:type_name -> google.protobuf.Timestamp + 3, // 10: api.image.ListImagesResponse.images:type_name -> api.image.Image + 3, // 11: api.image.AdminListImagesResponse.images:type_name -> api.image.Image + 0, // 12: api.image.CreateProjectImageRequest.authentication_types:type_name -> api.image.AuthenticationType + 3, // 13: api.image.ListProjectImagesResponse.images:type_name -> api.image.Image + 3, // 14: api.image.ValidateImageUploadTokenRequest.image:type_name -> api.image.Image + 5, // 15: api.image.ConfirmImageUploadRequest.image_version:type_name -> api.image.ImageVersion + 1, // 16: api.image.ConfirmImageUploadRequest.type:type_name -> api.image.ImageType + 2, // 17: api.image.AdminListOperatingSystemsResponse.operating_systems:type_name -> api.image.OperatingSystem + 0, // 18: api.image.AdminUpdateImageRequest.authentication_types:type_name -> api.image.AuthenticationType + 0, // 19: api.image.AdminCreateImageRequest.authentication_types:type_name -> api.image.AuthenticationType + 20, // [20:20] is the sub-list for method output_type + 20, // [20:20] is the sub-list for method input_type + 20, // [20:20] is the sub-list for extension type_name + 20, // [20:20] is the sub-list for extension extendee + 0, // [0:20] is the sub-list for field type_name +} + +func init() { file_image_proto_init() } +func file_image_proto_init() { + if File_image_proto != nil { + return + } + file_project_proto_init() + if !protoimpl.UnsafeEnabled { + file_image_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OperatingSystem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Image); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ImageUpload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ImageVersion); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPublicImagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListImagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListImagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateProjectImageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectImagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectImagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteProjectImageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteProjectImageVersionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateImageUploadTokenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfirmImageUploadRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectImageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListOperatingSystemsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetImageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteImageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteImageVersionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteOperatingSystemRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetOperatingSystemRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateOperatingSystemRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateOperatingSystemRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateImageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_image_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateImageRequest); 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_image_proto_rawDesc, + NumEnums: 2, + NumMessages: 25, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_image_proto_goTypes, + DependencyIndexes: file_image_proto_depIdxs, + EnumInfos: file_image_proto_enumTypes, + MessageInfos: file_image_proto_msgTypes, + }.Build() + File_image_proto = out.File + file_image_proto_rawDesc = nil + file_image_proto_goTypes = nil + file_image_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/jwt.pb.go b/pkg/gpcloud/ptypes/jwt.pb.go new file mode 100644 index 0000000..f5e015b --- /dev/null +++ b/pkg/gpcloud/ptypes/jwt.pb.go @@ -0,0 +1,360 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: jwt.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type JwtPublicKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // UUID + Kid string `protobuf:"bytes,1,opt,name=kid,proto3" json:"kid,omitempty"` + Kty string `protobuf:"bytes,2,opt,name=kty,proto3" json:"kty,omitempty"` + Alg string `protobuf:"bytes,3,opt,name=alg,proto3" json:"alg,omitempty"` + Use string `protobuf:"bytes,4,opt,name=use,proto3" json:"use,omitempty"` + X5T string `protobuf:"bytes,5,opt,name=x5t,proto3" json:"x5t,omitempty"` + E string `protobuf:"bytes,6,opt,name=e,proto3" json:"e,omitempty"` + N string `protobuf:"bytes,7,opt,name=n,proto3" json:"n,omitempty"` +} + +func (x *JwtPublicKey) Reset() { + *x = JwtPublicKey{} + if protoimpl.UnsafeEnabled { + mi := &file_jwt_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JwtPublicKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JwtPublicKey) ProtoMessage() {} + +func (x *JwtPublicKey) ProtoReflect() protoreflect.Message { + mi := &file_jwt_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 JwtPublicKey.ProtoReflect.Descriptor instead. +func (*JwtPublicKey) Descriptor() ([]byte, []int) { + return file_jwt_proto_rawDescGZIP(), []int{0} +} + +func (x *JwtPublicKey) GetKid() string { + if x != nil { + return x.Kid + } + return "" +} + +func (x *JwtPublicKey) GetKty() string { + if x != nil { + return x.Kty + } + return "" +} + +func (x *JwtPublicKey) GetAlg() string { + if x != nil { + return x.Alg + } + return "" +} + +func (x *JwtPublicKey) GetUse() string { + if x != nil { + return x.Use + } + return "" +} + +func (x *JwtPublicKey) GetX5T() string { + if x != nil { + return x.X5T + } + return "" +} + +func (x *JwtPublicKey) GetE() string { + if x != nil { + return x.E + } + return "" +} + +func (x *JwtPublicKey) GetN() string { + if x != nil { + return x.N + } + return "" +} + +type JwtPublicCert struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // UUID + Kid string `protobuf:"bytes,1,opt,name=kid,proto3" json:"kid,omitempty"` + Cert string `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"` +} + +func (x *JwtPublicCert) Reset() { + *x = JwtPublicCert{} + if protoimpl.UnsafeEnabled { + mi := &file_jwt_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JwtPublicCert) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JwtPublicCert) ProtoMessage() {} + +func (x *JwtPublicCert) ProtoReflect() protoreflect.Message { + mi := &file_jwt_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 JwtPublicCert.ProtoReflect.Descriptor instead. +func (*JwtPublicCert) Descriptor() ([]byte, []int) { + return file_jwt_proto_rawDescGZIP(), []int{1} +} + +func (x *JwtPublicCert) GetKid() string { + if x != nil { + return x.Kid + } + return "" +} + +func (x *JwtPublicCert) GetCert() string { + if x != nil { + return x.Cert + } + return "" +} + +type ListJwtPublicKeysResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Keys []*JwtPublicKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` + PublicCert *JwtPublicCert `protobuf:"bytes,2,opt,name=public_cert,json=publicCert,proto3" json:"public_cert,omitempty"` + PublicCerts []*JwtPublicCert `protobuf:"bytes,3,rep,name=public_certs,json=publicCerts,proto3" json:"public_certs,omitempty"` +} + +func (x *ListJwtPublicKeysResponse) Reset() { + *x = ListJwtPublicKeysResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_jwt_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListJwtPublicKeysResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListJwtPublicKeysResponse) ProtoMessage() {} + +func (x *ListJwtPublicKeysResponse) ProtoReflect() protoreflect.Message { + mi := &file_jwt_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 ListJwtPublicKeysResponse.ProtoReflect.Descriptor instead. +func (*ListJwtPublicKeysResponse) Descriptor() ([]byte, []int) { + return file_jwt_proto_rawDescGZIP(), []int{2} +} + +func (x *ListJwtPublicKeysResponse) GetKeys() []*JwtPublicKey { + if x != nil { + return x.Keys + } + return nil +} + +func (x *ListJwtPublicKeysResponse) GetPublicCert() *JwtPublicCert { + if x != nil { + return x.PublicCert + } + return nil +} + +func (x *ListJwtPublicKeysResponse) GetPublicCerts() []*JwtPublicCert { + if x != nil { + return x.PublicCerts + } + return nil +} + +var File_jwt_proto protoreflect.FileDescriptor + +var file_jwt_proto_rawDesc = []byte{ + 0x0a, 0x09, 0x6a, 0x77, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x61, 0x70, 0x69, + 0x2e, 0x6a, 0x77, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x0c, 0x4a, 0x77, 0x74, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x74, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x74, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6c, 0x67, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x6c, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, + 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x73, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x78, 0x35, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x78, 0x35, 0x74, 0x12, + 0x0c, 0x0a, 0x01, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x65, 0x12, 0x0c, 0x0a, + 0x01, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x6e, 0x22, 0x35, 0x0a, 0x0d, 0x4a, + 0x77, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x65, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x69, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x65, + 0x72, 0x74, 0x22, 0xba, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x77, 0x74, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x29, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x4a, 0x77, 0x74, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x4a, 0x77, 0x74, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x43, 0x65, 0x72, 0x74, 0x52, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x43, 0x65, 0x72, 0x74, 0x12, 0x39, 0x0a, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x63, + 0x65, 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x4a, 0x77, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x65, + 0x72, 0x74, 0x52, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x65, 0x72, 0x74, 0x73, 0x42, + 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_jwt_proto_rawDescOnce sync.Once + file_jwt_proto_rawDescData = file_jwt_proto_rawDesc +) + +func file_jwt_proto_rawDescGZIP() []byte { + file_jwt_proto_rawDescOnce.Do(func() { + file_jwt_proto_rawDescData = protoimpl.X.CompressGZIP(file_jwt_proto_rawDescData) + }) + return file_jwt_proto_rawDescData +} + +var file_jwt_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_jwt_proto_goTypes = []interface{}{ + (*JwtPublicKey)(nil), // 0: api.jwt.JwtPublicKey + (*JwtPublicCert)(nil), // 1: api.jwt.JwtPublicCert + (*ListJwtPublicKeysResponse)(nil), // 2: api.jwt.ListJwtPublicKeysResponse +} +var file_jwt_proto_depIdxs = []int32{ + 0, // 0: api.jwt.ListJwtPublicKeysResponse.keys:type_name -> api.jwt.JwtPublicKey + 1, // 1: api.jwt.ListJwtPublicKeysResponse.public_cert:type_name -> api.jwt.JwtPublicCert + 1, // 2: api.jwt.ListJwtPublicKeysResponse.public_certs:type_name -> api.jwt.JwtPublicCert + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_jwt_proto_init() } +func file_jwt_proto_init() { + if File_jwt_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_jwt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JwtPublicKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_jwt_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JwtPublicCert); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_jwt_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListJwtPublicKeysResponse); 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_jwt_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_jwt_proto_goTypes, + DependencyIndexes: file_jwt_proto_depIdxs, + MessageInfos: file_jwt_proto_msgTypes, + }.Build() + File_jwt_proto = out.File + file_jwt_proto_rawDesc = nil + file_jwt_proto_goTypes = nil + file_jwt_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/metadata.pb.go b/pkg/gpcloud/ptypes/metadata.pb.go new file mode 100644 index 0000000..f65ba1e --- /dev/null +++ b/pkg/gpcloud/ptypes/metadata.pb.go @@ -0,0 +1,899 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: metadata.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type MetadataInterfaceType int32 + +const ( + MetadataInterfaceType_PUBLIC MetadataInterfaceType = 0 + MetadataInterfaceType_PRIVATE MetadataInterfaceType = 1 +) + +// Enum value maps for MetadataInterfaceType. +var ( + MetadataInterfaceType_name = map[int32]string{ + 0: "PUBLIC", + 1: "PRIVATE", + } + MetadataInterfaceType_value = map[string]int32{ + "PUBLIC": 0, + "PRIVATE": 1, + } +) + +func (x MetadataInterfaceType) Enum() *MetadataInterfaceType { + p := new(MetadataInterfaceType) + *p = x + return p +} + +func (x MetadataInterfaceType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MetadataInterfaceType) Descriptor() protoreflect.EnumDescriptor { + return file_metadata_proto_enumTypes[0].Descriptor() +} + +func (MetadataInterfaceType) Type() protoreflect.EnumType { + return &file_metadata_proto_enumTypes[0] +} + +func (x MetadataInterfaceType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MetadataInterfaceType.Descriptor instead. +func (MetadataInterfaceType) EnumDescriptor() ([]byte, []int) { + return file_metadata_proto_rawDescGZIP(), []int{0} +} + +type MetadataVLAN struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Tagged bool `protobuf:"varint,2,opt,name=tagged,proto3" json:"tagged,omitempty"` +} + +func (x *MetadataVLAN) Reset() { + *x = MetadataVLAN{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetadataVLAN) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetadataVLAN) ProtoMessage() {} + +func (x *MetadataVLAN) ProtoReflect() protoreflect.Message { + mi := &file_metadata_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 MetadataVLAN.ProtoReflect.Descriptor instead. +func (*MetadataVLAN) Descriptor() ([]byte, []int) { + return file_metadata_proto_rawDescGZIP(), []int{0} +} + +func (x *MetadataVLAN) GetId() int32 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *MetadataVLAN) GetTagged() bool { + if x != nil { + return x.Tagged + } + return false +} + +type MetadataInterface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type MetadataInterfaceType `protobuf:"varint,1,opt,name=type,proto3,enum=api.metadata.MetadataInterfaceType" json:"type,omitempty"` + // IP Address + Ipv4 *MetadataInterfaceIP `protobuf:"bytes,2,opt,name=ipv4,proto3" json:"ipv4,omitempty"` //MetadataInterfaceIP ipv6 = 3; + // Mac address + Mac string `protobuf:"bytes,4,opt,name=mac,proto3" json:"mac,omitempty"` + Vlan *MetadataVLAN `protobuf:"bytes,5,opt,name=vlan,proto3" json:"vlan,omitempty"` +} + +func (x *MetadataInterface) Reset() { + *x = MetadataInterface{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetadataInterface) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetadataInterface) ProtoMessage() {} + +func (x *MetadataInterface) ProtoReflect() protoreflect.Message { + mi := &file_metadata_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 MetadataInterface.ProtoReflect.Descriptor instead. +func (*MetadataInterface) Descriptor() ([]byte, []int) { + return file_metadata_proto_rawDescGZIP(), []int{1} +} + +func (x *MetadataInterface) GetType() MetadataInterfaceType { + if x != nil { + return x.Type + } + return MetadataInterfaceType_PUBLIC +} + +func (x *MetadataInterface) GetIpv4() *MetadataInterfaceIP { + if x != nil { + return x.Ipv4 + } + return nil +} + +func (x *MetadataInterface) GetMac() string { + if x != nil { + return x.Mac + } + return "" +} + +func (x *MetadataInterface) GetVlan() *MetadataVLAN { + if x != nil { + return x.Vlan + } + return nil +} + +type MetadataInterfaceIP struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + Netmask string `protobuf:"bytes,2,opt,name=netmask,proto3" json:"netmask,omitempty"` + Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` + Gateway string `protobuf:"bytes,4,opt,name=gateway,proto3" json:"gateway,omitempty"` +} + +func (x *MetadataInterfaceIP) Reset() { + *x = MetadataInterfaceIP{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetadataInterfaceIP) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetadataInterfaceIP) ProtoMessage() {} + +func (x *MetadataInterfaceIP) ProtoReflect() protoreflect.Message { + mi := &file_metadata_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 MetadataInterfaceIP.ProtoReflect.Descriptor instead. +func (*MetadataInterfaceIP) Descriptor() ([]byte, []int) { + return file_metadata_proto_rawDescGZIP(), []int{2} +} + +func (x *MetadataInterfaceIP) GetIpAddress() string { + if x != nil { + return x.IpAddress + } + return "" +} + +func (x *MetadataInterfaceIP) GetNetmask() string { + if x != nil { + return x.Netmask + } + return "" +} + +func (x *MetadataInterfaceIP) GetPrefix() string { + if x != nil { + return x.Prefix + } + return "" +} + +func (x *MetadataInterfaceIP) GetGateway() string { + if x != nil { + return x.Gateway + } + return "" +} + +type MetadataDNS struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Nameserver + Nameservers []string `protobuf:"bytes,1,rep,name=nameservers,proto3" json:"nameservers,omitempty"` + // Search domains + Search []string `protobuf:"bytes,2,rep,name=search,proto3" json:"search,omitempty"` +} + +func (x *MetadataDNS) Reset() { + *x = MetadataDNS{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetadataDNS) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetadataDNS) ProtoMessage() {} + +func (x *MetadataDNS) ProtoReflect() protoreflect.Message { + mi := &file_metadata_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 MetadataDNS.ProtoReflect.Descriptor instead. +func (*MetadataDNS) Descriptor() ([]byte, []int) { + return file_metadata_proto_rawDescGZIP(), []int{3} +} + +func (x *MetadataDNS) GetNameservers() []string { + if x != nil { + return x.Nameservers + } + return nil +} + +func (x *MetadataDNS) GetSearch() []string { + if x != nil { + return x.Search + } + return nil +} + +type Metadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Compute resource type + Type ComputeResourceType `protobuf:"varint,2,opt,name=type,proto3,enum=api.ComputeResourceType" json:"type,omitempty"` + // FQDN + Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` + // Cloud Init configs + VendorData string `protobuf:"bytes,4,opt,name=vendor_data,json=vendorData,proto3" json:"vendor_data,omitempty"` + UserData string `protobuf:"bytes,5,opt,name=user_data,json=userData,proto3" json:"user_data,omitempty"` + // Cloud region + Region string `protobuf:"bytes,6,opt,name=region,proto3" json:"region,omitempty"` + // SSH public keys + PublicKeys []string `protobuf:"bytes,7,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` + // Network interfaces + Interfaces []*MetadataInterface `protobuf:"bytes,8,rep,name=interfaces,proto3" json:"interfaces,omitempty"` + // DNS settings + Dns *MetadataDNS `protobuf:"bytes,9,opt,name=dns,proto3" json:"dns,omitempty"` + // Tags + Tags map[string]string `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_metadata_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 Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_metadata_proto_rawDescGZIP(), []int{4} +} + +func (x *Metadata) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Metadata) GetType() ComputeResourceType { + if x != nil { + return x.Type + } + return ComputeResourceType_BARE_METAL +} + +func (x *Metadata) GetHostname() string { + if x != nil { + return x.Hostname + } + return "" +} + +func (x *Metadata) GetVendorData() string { + if x != nil { + return x.VendorData + } + return "" +} + +func (x *Metadata) GetUserData() string { + if x != nil { + return x.UserData + } + return "" +} + +func (x *Metadata) GetRegion() string { + if x != nil { + return x.Region + } + return "" +} + +func (x *Metadata) GetPublicKeys() []string { + if x != nil { + return x.PublicKeys + } + return nil +} + +func (x *Metadata) GetInterfaces() []*MetadataInterface { + if x != nil { + return x.Interfaces + } + return nil +} + +func (x *Metadata) GetDns() *MetadataDNS { + if x != nil { + return x.Dns + } + return nil +} + +func (x *Metadata) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +type MetadataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` +} + +func (x *MetadataRequest) Reset() { + *x = MetadataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetadataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetadataRequest) ProtoMessage() {} + +func (x *MetadataRequest) ProtoReflect() protoreflect.Message { + mi := &file_metadata_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 MetadataRequest.ProtoReflect.Descriptor instead. +func (*MetadataRequest) Descriptor() ([]byte, []int) { + return file_metadata_proto_rawDescGZIP(), []int{5} +} + +func (x *MetadataRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +type MetadataPasswordResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *MetadataPasswordResponse) Reset() { + *x = MetadataPasswordResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetadataPasswordResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetadataPasswordResponse) ProtoMessage() {} + +func (x *MetadataPasswordResponse) ProtoReflect() protoreflect.Message { + mi := &file_metadata_proto_msgTypes[6] + 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 MetadataPasswordResponse.ProtoReflect.Descriptor instead. +func (*MetadataPasswordResponse) Descriptor() ([]byte, []int) { + return file_metadata_proto_rawDescGZIP(), []int{6} +} + +func (x *MetadataPasswordResponse) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type NetworkBootDataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` +} + +func (x *NetworkBootDataRequest) Reset() { + *x = NetworkBootDataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NetworkBootDataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NetworkBootDataRequest) ProtoMessage() {} + +func (x *NetworkBootDataRequest) ProtoReflect() protoreflect.Message { + mi := &file_metadata_proto_msgTypes[7] + 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 NetworkBootDataRequest.ProtoReflect.Descriptor instead. +func (*NetworkBootDataRequest) Descriptor() ([]byte, []int) { + return file_metadata_proto_rawDescGZIP(), []int{7} +} + +func (x *NetworkBootDataRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +type NetworkBootDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Script string `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"` +} + +func (x *NetworkBootDataResponse) Reset() { + *x = NetworkBootDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NetworkBootDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NetworkBootDataResponse) ProtoMessage() {} + +func (x *NetworkBootDataResponse) ProtoReflect() protoreflect.Message { + mi := &file_metadata_proto_msgTypes[8] + 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 NetworkBootDataResponse.ProtoReflect.Descriptor instead. +func (*NetworkBootDataResponse) Descriptor() ([]byte, []int) { + return file_metadata_proto_rawDescGZIP(), []int{8} +} + +func (x *NetworkBootDataResponse) GetScript() string { + if x != nil { + return x.Script + } + return "" +} + +var File_metadata_proto protoreflect.FileDescriptor + +var file_metadata_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0c, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x0d, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x36, 0x0a, + 0x0c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x56, 0x4c, 0x41, 0x4e, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, + 0x06, 0x74, 0x61, 0x67, 0x67, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x74, + 0x61, 0x67, 0x67, 0x65, 0x64, 0x22, 0xc5, 0x01, 0x0a, 0x11, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x69, 0x70, 0x76, 0x34, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x49, 0x50, 0x52, 0x04, 0x69, 0x70, 0x76, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x6d, + 0x61, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x61, 0x63, 0x12, 0x2e, 0x0a, + 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x56, 0x4c, 0x41, 0x4e, 0x52, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x22, 0x80, 0x01, + 0x0a, 0x13, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x49, 0x50, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x73, 0x6b, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0x16, + 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, + 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, + 0x22, 0x47, 0x0a, 0x0b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x44, 0x4e, 0x53, 0x12, + 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x22, 0xb8, 0x03, 0x0a, 0x08, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, + 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x3f, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0a, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x03, 0x64, 0x6e, 0x73, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x44, 0x4e, 0x53, + 0x52, 0x03, 0x64, 0x6e, 0x73, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0a, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x67, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, + 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0x21, 0x0a, 0x0f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x36, 0x0a, 0x18, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, + 0x28, 0x0a, 0x16, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x42, 0x6f, 0x6f, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x31, 0x0a, 0x17, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x42, 0x6f, 0x6f, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x2a, 0x30, 0x0a, 0x15, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, + 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x01, 0x42, 0x16, + 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, + 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_metadata_proto_rawDescOnce sync.Once + file_metadata_proto_rawDescData = file_metadata_proto_rawDesc +) + +func file_metadata_proto_rawDescGZIP() []byte { + file_metadata_proto_rawDescOnce.Do(func() { + file_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_metadata_proto_rawDescData) + }) + return file_metadata_proto_rawDescData +} + +var file_metadata_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_metadata_proto_goTypes = []interface{}{ + (MetadataInterfaceType)(0), // 0: api.metadata.MetadataInterfaceType + (*MetadataVLAN)(nil), // 1: api.metadata.MetadataVLAN + (*MetadataInterface)(nil), // 2: api.metadata.MetadataInterface + (*MetadataInterfaceIP)(nil), // 3: api.metadata.MetadataInterfaceIP + (*MetadataDNS)(nil), // 4: api.metadata.MetadataDNS + (*Metadata)(nil), // 5: api.metadata.Metadata + (*MetadataRequest)(nil), // 6: api.metadata.MetadataRequest + (*MetadataPasswordResponse)(nil), // 7: api.metadata.MetadataPasswordResponse + (*NetworkBootDataRequest)(nil), // 8: api.metadata.NetworkBootDataRequest + (*NetworkBootDataResponse)(nil), // 9: api.metadata.NetworkBootDataResponse + nil, // 10: api.metadata.Metadata.TagsEntry + (ComputeResourceType)(0), // 11: api.ComputeResourceType +} +var file_metadata_proto_depIdxs = []int32{ + 0, // 0: api.metadata.MetadataInterface.type:type_name -> api.metadata.MetadataInterfaceType + 3, // 1: api.metadata.MetadataInterface.ipv4:type_name -> api.metadata.MetadataInterfaceIP + 1, // 2: api.metadata.MetadataInterface.vlan:type_name -> api.metadata.MetadataVLAN + 11, // 3: api.metadata.Metadata.type:type_name -> api.ComputeResourceType + 2, // 4: api.metadata.Metadata.interfaces:type_name -> api.metadata.MetadataInterface + 4, // 5: api.metadata.Metadata.dns:type_name -> api.metadata.MetadataDNS + 10, // 6: api.metadata.Metadata.tags:type_name -> api.metadata.Metadata.TagsEntry + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_metadata_proto_init() } +func file_metadata_proto_init() { + if File_metadata_proto != nil { + return + } + file_generic_proto_init() + if !protoimpl.UnsafeEnabled { + file_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetadataVLAN); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetadataInterface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetadataInterfaceIP); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetadataDNS); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetadataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetadataPasswordResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NetworkBootDataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NetworkBootDataResponse); 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_metadata_proto_rawDesc, + NumEnums: 1, + NumMessages: 10, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_metadata_proto_goTypes, + DependencyIndexes: file_metadata_proto_depIdxs, + EnumInfos: file_metadata_proto_enumTypes, + MessageInfos: file_metadata_proto_msgTypes, + }.Build() + File_metadata_proto = out.File + file_metadata_proto_rawDesc = nil + file_metadata_proto_goTypes = nil + file_metadata_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/network.pb.go b/pkg/gpcloud/ptypes/network.pb.go new file mode 100644 index 0000000..23ecc6a --- /dev/null +++ b/pkg/gpcloud/ptypes/network.pb.go @@ -0,0 +1,3814 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: network.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type NetworkType int32 + +const ( + // For IPMI, ilo4, iDRAC, ... + NetworkType_MANAGEMENT NetworkType = 0 + // Provisioning pool + NetworkType_PROVISIONING_POOL NetworkType = 1 + // Public IP pool + NetworkType_PUBLIC_POOL NetworkType = 2 + // Custom project public network + NetworkType_PROJECT_PUBLIC NetworkType = 3 + // Custom project private network + NetworkType_PROJECT_PRIVATE NetworkType = 4 +) + +// Enum value maps for NetworkType. +var ( + NetworkType_name = map[int32]string{ + 0: "MANAGEMENT", + 1: "PROVISIONING_POOL", + 2: "PUBLIC_POOL", + 3: "PROJECT_PUBLIC", + 4: "PROJECT_PRIVATE", + } + NetworkType_value = map[string]int32{ + "MANAGEMENT": 0, + "PROVISIONING_POOL": 1, + "PUBLIC_POOL": 2, + "PROJECT_PUBLIC": 3, + "PROJECT_PRIVATE": 4, + } +) + +func (x NetworkType) Enum() *NetworkType { + p := new(NetworkType) + *p = x + return p +} + +func (x NetworkType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NetworkType) Descriptor() protoreflect.EnumDescriptor { + return file_network_proto_enumTypes[0].Descriptor() +} + +func (NetworkType) Type() protoreflect.EnumType { + return &file_network_proto_enumTypes[0] +} + +func (x NetworkType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NetworkType.Descriptor instead. +func (NetworkType) EnumDescriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{0} +} + +type SwitchType int32 + +const ( + SwitchType_Juniper SwitchType = 0 +) + +// Enum value maps for SwitchType. +var ( + SwitchType_name = map[int32]string{ + 0: "Juniper", + } + SwitchType_value = map[string]int32{ + "Juniper": 0, + } +) + +func (x SwitchType) Enum() *SwitchType { + p := new(SwitchType) + *p = x + return p +} + +func (x SwitchType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SwitchType) Descriptor() protoreflect.EnumDescriptor { + return file_network_proto_enumTypes[1].Descriptor() +} + +func (SwitchType) Type() protoreflect.EnumType { + return &file_network_proto_enumTypes[1] +} + +func (x SwitchType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SwitchType.Descriptor instead. +func (SwitchType) EnumDescriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{1} +} + +type ServerInterfaceType int32 + +const ( + ServerInterfaceType_PLATFORM_MANAGEMENT ServerInterfaceType = 0 + ServerInterfaceType_NETWORK ServerInterfaceType = 1 +) + +// Enum value maps for ServerInterfaceType. +var ( + ServerInterfaceType_name = map[int32]string{ + 0: "PLATFORM_MANAGEMENT", + 1: "NETWORK", + } + ServerInterfaceType_value = map[string]int32{ + "PLATFORM_MANAGEMENT": 0, + "NETWORK": 1, + } +) + +func (x ServerInterfaceType) Enum() *ServerInterfaceType { + p := new(ServerInterfaceType) + *p = x + return p +} + +func (x ServerInterfaceType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ServerInterfaceType) Descriptor() protoreflect.EnumDescriptor { + return file_network_proto_enumTypes[2].Descriptor() +} + +func (ServerInterfaceType) Type() protoreflect.EnumType { + return &file_network_proto_enumTypes[2] +} + +func (x ServerInterfaceType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ServerInterfaceType.Descriptor instead. +func (ServerInterfaceType) EnumDescriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{2} +} + +type Cidr_Version int32 + +const ( + Cidr_IPV4 Cidr_Version = 0 + Cidr_IPV6 Cidr_Version = 1 +) + +// Enum value maps for Cidr_Version. +var ( + Cidr_Version_name = map[int32]string{ + 0: "IPV4", + 1: "IPV6", + } + Cidr_Version_value = map[string]int32{ + "IPV4": 0, + "IPV6": 1, + } +) + +func (x Cidr_Version) Enum() *Cidr_Version { + p := new(Cidr_Version) + *p = x + return p +} + +func (x Cidr_Version) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Cidr_Version) Descriptor() protoreflect.EnumDescriptor { + return file_network_proto_enumTypes[3].Descriptor() +} + +func (Cidr_Version) Type() protoreflect.EnumType { + return &file_network_proto_enumTypes[3] +} + +func (x Cidr_Version) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Cidr_Version.Descriptor instead. +func (Cidr_Version) EnumDescriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{6, 0} +} + +type Switch struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type SwitchType `protobuf:"varint,3,opt,name=type,proto3,enum=api.network.SwitchType" json:"type,omitempty"` + Datacenter *DataCenter `protobuf:"bytes,4,opt,name=datacenter,proto3" json:"datacenter,omitempty"` + Ip string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"` + Username string `protobuf:"bytes,6,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,7,opt,name=password,proto3" json:"password,omitempty"` + ServerInterfaces []*ServerInterface `protobuf:"bytes,8,rep,name=server_interfaces,json=serverInterfaces,proto3" json:"server_interfaces,omitempty"` + UplinkPorts []string `protobuf:"bytes,9,rep,name=uplink_ports,json=uplinkPorts,proto3" json:"uplink_ports,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + LastArpSync *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_arp_sync,json=lastArpSync,proto3" json:"last_arp_sync,omitempty"` +} + +func (x *Switch) Reset() { + *x = Switch{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Switch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Switch) ProtoMessage() {} + +func (x *Switch) ProtoReflect() protoreflect.Message { + mi := &file_network_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 Switch.ProtoReflect.Descriptor instead. +func (*Switch) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{0} +} + +func (x *Switch) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Switch) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Switch) GetType() SwitchType { + if x != nil { + return x.Type + } + return SwitchType_Juniper +} + +func (x *Switch) GetDatacenter() *DataCenter { + if x != nil { + return x.Datacenter + } + return nil +} + +func (x *Switch) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *Switch) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *Switch) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *Switch) GetServerInterfaces() []*ServerInterface { + if x != nil { + return x.ServerInterfaces + } + return nil +} + +func (x *Switch) GetUplinkPorts() []string { + if x != nil { + return x.UplinkPorts + } + return nil +} + +func (x *Switch) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Switch) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +func (x *Switch) GetLastArpSync() *timestamppb.Timestamp { + if x != nil { + return x.LastArpSync + } + return nil +} + +type Network struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type NetworkType `protobuf:"varint,3,opt,name=type,proto3,enum=api.network.NetworkType" json:"type,omitempty"` + // Optional project + Project *BasicProject `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` + Subnets []*Subnet `protobuf:"bytes,5,rep,name=subnets,proto3" json:"subnets,omitempty"` + VlanId int32 `protobuf:"varint,6,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"` + Datacenter *DataCenter `protobuf:"bytes,7,opt,name=datacenter,proto3" json:"datacenter,omitempty"` + PoolSize int64 `protobuf:"varint,8,opt,name=pool_size,json=poolSize,proto3" json:"pool_size,omitempty"` + PoolAvailable int64 `protobuf:"varint,9,opt,name=pool_available,json=poolAvailable,proto3" json:"pool_available,omitempty"` + // Timestamps + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *Network) Reset() { + *x = Network{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Network) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Network) ProtoMessage() {} + +func (x *Network) ProtoReflect() protoreflect.Message { + mi := &file_network_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 Network.ProtoReflect.Descriptor instead. +func (*Network) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{1} +} + +func (x *Network) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Network) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Network) GetType() NetworkType { + if x != nil { + return x.Type + } + return NetworkType_MANAGEMENT +} + +func (x *Network) GetProject() *BasicProject { + if x != nil { + return x.Project + } + return nil +} + +func (x *Network) GetSubnets() []*Subnet { + if x != nil { + return x.Subnets + } + return nil +} + +func (x *Network) GetVlanId() int32 { + if x != nil { + return x.VlanId + } + return 0 +} + +func (x *Network) GetDatacenter() *DataCenter { + if x != nil { + return x.Datacenter + } + return nil +} + +func (x *Network) GetPoolSize() int64 { + if x != nil { + return x.PoolSize + } + return 0 +} + +func (x *Network) GetPoolAvailable() int64 { + if x != nil { + return x.PoolAvailable + } + return 0 +} + +func (x *Network) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Network) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type Subnet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Network *Network `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"` + Cidr *Cidr `protobuf:"bytes,3,opt,name=cidr,proto3" json:"cidr,omitempty"` + GatewayIp *Cidr `protobuf:"bytes,4,opt,name=gateway_ip,json=gatewayIp,proto3" json:"gateway_ip,omitempty"` + Dhcp bool `protobuf:"varint,5,opt,name=dhcp,proto3" json:"dhcp,omitempty"` + PoolStart *Cidr `protobuf:"bytes,6,opt,name=pool_start,json=poolStart,proto3" json:"pool_start,omitempty"` + PoolEnd *Cidr `protobuf:"bytes,7,opt,name=pool_end,json=poolEnd,proto3" json:"pool_end,omitempty"` + PoolSize int64 `protobuf:"varint,8,opt,name=pool_size,json=poolSize,proto3" json:"pool_size,omitempty"` + PoolAvailable int64 `protobuf:"varint,9,opt,name=pool_available,json=poolAvailable,proto3" json:"pool_available,omitempty"` +} + +func (x *Subnet) Reset() { + *x = Subnet{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Subnet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Subnet) ProtoMessage() {} + +func (x *Subnet) ProtoReflect() protoreflect.Message { + mi := &file_network_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 Subnet.ProtoReflect.Descriptor instead. +func (*Subnet) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{2} +} + +func (x *Subnet) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Subnet) GetNetwork() *Network { + if x != nil { + return x.Network + } + return nil +} + +func (x *Subnet) GetCidr() *Cidr { + if x != nil { + return x.Cidr + } + return nil +} + +func (x *Subnet) GetGatewayIp() *Cidr { + if x != nil { + return x.GatewayIp + } + return nil +} + +func (x *Subnet) GetDhcp() bool { + if x != nil { + return x.Dhcp + } + return false +} + +func (x *Subnet) GetPoolStart() *Cidr { + if x != nil { + return x.PoolStart + } + return nil +} + +func (x *Subnet) GetPoolEnd() *Cidr { + if x != nil { + return x.PoolEnd + } + return nil +} + +func (x *Subnet) GetPoolSize() int64 { + if x != nil { + return x.PoolSize + } + return 0 +} + +func (x *Subnet) GetPoolAvailable() int64 { + if x != nil { + return x.PoolAvailable + } + return 0 +} + +type IPAddress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address *Cidr `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Subnet *Subnet `protobuf:"bytes,2,opt,name=subnet,proto3" json:"subnet,omitempty"` + Primary bool `protobuf:"varint,3,opt,name=primary,proto3" json:"primary,omitempty"` + Online bool `protobuf:"varint,4,opt,name=online,proto3" json:"online,omitempty"` +} + +func (x *IPAddress) Reset() { + *x = IPAddress{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IPAddress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IPAddress) ProtoMessage() {} + +func (x *IPAddress) ProtoReflect() protoreflect.Message { + mi := &file_network_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 IPAddress.ProtoReflect.Descriptor instead. +func (*IPAddress) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{3} +} + +func (x *IPAddress) GetAddress() *Cidr { + if x != nil { + return x.Address + } + return nil +} + +func (x *IPAddress) GetSubnet() *Subnet { + if x != nil { + return x.Subnet + } + return nil +} + +func (x *IPAddress) GetPrimary() bool { + if x != nil { + return x.Primary + } + return false +} + +func (x *IPAddress) GetOnline() bool { + if x != nil { + return x.Online + } + return false +} + +type ServerInterface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ServerInterface UUID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Interface type + Type ServerInterfaceType `protobuf:"varint,2,opt,name=type,proto3,enum=api.network.ServerInterfaceType" json:"type,omitempty"` + MacAddress string `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` + Driver string `protobuf:"bytes,4,opt,name=driver,proto3" json:"driver,omitempty"` + // Speed in bit/s + Speed int32 `protobuf:"varint,5,opt,name=speed,proto3" json:"speed,omitempty"` + // IP addresses + Ips []*IPAddress `protobuf:"bytes,6,rep,name=ips,proto3" json:"ips,omitempty"` + // Server ID + ServerId string `protobuf:"bytes,7,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` + // Switch + Switch *Switch `protobuf:"bytes,8,opt,name=switch,proto3" json:"switch,omitempty"` + SwitchPort string `protobuf:"bytes,9,opt,name=switch_port,json=switchPort,proto3" json:"switch_port,omitempty"` + // ServerInterface timestamps + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *ServerInterface) Reset() { + *x = ServerInterface{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerInterface) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerInterface) ProtoMessage() {} + +func (x *ServerInterface) ProtoReflect() protoreflect.Message { + mi := &file_network_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 ServerInterface.ProtoReflect.Descriptor instead. +func (*ServerInterface) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{4} +} + +func (x *ServerInterface) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ServerInterface) GetType() ServerInterfaceType { + if x != nil { + return x.Type + } + return ServerInterfaceType_PLATFORM_MANAGEMENT +} + +func (x *ServerInterface) GetMacAddress() string { + if x != nil { + return x.MacAddress + } + return "" +} + +func (x *ServerInterface) GetDriver() string { + if x != nil { + return x.Driver + } + return "" +} + +func (x *ServerInterface) GetSpeed() int32 { + if x != nil { + return x.Speed + } + return 0 +} + +func (x *ServerInterface) GetIps() []*IPAddress { + if x != nil { + return x.Ips + } + return nil +} + +func (x *ServerInterface) GetServerId() string { + if x != nil { + return x.ServerId + } + return "" +} + +func (x *ServerInterface) GetSwitch() *Switch { + if x != nil { + return x.Switch + } + return nil +} + +func (x *ServerInterface) GetSwitchPort() string { + if x != nil { + return x.SwitchPort + } + return "" +} + +func (x *ServerInterface) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *ServerInterface) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type DHCPNetworksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Datacenter *DataCenter `protobuf:"bytes,1,opt,name=datacenter,proto3" json:"datacenter,omitempty"` + NetworkType NetworkType `protobuf:"varint,2,opt,name=network_type,json=networkType,proto3,enum=api.network.NetworkType" json:"network_type,omitempty"` +} + +func (x *DHCPNetworksRequest) Reset() { + *x = DHCPNetworksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DHCPNetworksRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DHCPNetworksRequest) ProtoMessage() {} + +func (x *DHCPNetworksRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_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 DHCPNetworksRequest.ProtoReflect.Descriptor instead. +func (*DHCPNetworksRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{5} +} + +func (x *DHCPNetworksRequest) GetDatacenter() *DataCenter { + if x != nil { + return x.Datacenter + } + return nil +} + +func (x *DHCPNetworksRequest) GetNetworkType() NetworkType { + if x != nil { + return x.NetworkType + } + return NetworkType_MANAGEMENT +} + +// Cidr This contains the IP version and IP inclusive prefix. +type Cidr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpVersion Cidr_Version `protobuf:"varint,1,opt,name=ip_version,json=ipVersion,proto3,enum=api.network.Cidr_Version" json:"ip_version,omitempty"` + Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"` +} + +func (x *Cidr) Reset() { + *x = Cidr{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Cidr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Cidr) ProtoMessage() {} + +func (x *Cidr) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[6] + 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 Cidr.ProtoReflect.Descriptor instead. +func (*Cidr) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{6} +} + +func (x *Cidr) GetIpVersion() Cidr_Version { + if x != nil { + return x.IpVersion + } + return Cidr_IPV4 +} + +func (x *Cidr) GetCidr() string { + if x != nil { + return x.Cidr + } + return "" +} + +type MacIPMapping struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MacAddress string `protobuf:"bytes,1,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` +} + +func (x *MacIPMapping) Reset() { + *x = MacIPMapping{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MacIPMapping) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MacIPMapping) ProtoMessage() {} + +func (x *MacIPMapping) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[7] + 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 MacIPMapping.ProtoReflect.Descriptor instead. +func (*MacIPMapping) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{7} +} + +func (x *MacIPMapping) GetMacAddress() string { + if x != nil { + return x.MacAddress + } + return "" +} + +func (x *MacIPMapping) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +type DHCPNetwork struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Network *Cidr `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` +} + +func (x *DHCPNetwork) Reset() { + *x = DHCPNetwork{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DHCPNetwork) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DHCPNetwork) ProtoMessage() {} + +func (x *DHCPNetwork) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[8] + 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 DHCPNetwork.ProtoReflect.Descriptor instead. +func (*DHCPNetwork) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{8} +} + +func (x *DHCPNetwork) GetNetwork() *Cidr { + if x != nil { + return x.Network + } + return nil +} + +type DHCPNetworksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Subnets []*Subnet `protobuf:"bytes,1,rep,name=subnets,proto3" json:"subnets,omitempty"` + Mapping []*MacIPMapping `protobuf:"bytes,2,rep,name=mapping,proto3" json:"mapping,omitempty"` + DnsServers []string `protobuf:"bytes,3,rep,name=dns_servers,json=dnsServers,proto3" json:"dns_servers,omitempty"` + NtpServers []string `protobuf:"bytes,4,rep,name=ntp_servers,json=ntpServers,proto3" json:"ntp_servers,omitempty"` +} + +func (x *DHCPNetworksResponse) Reset() { + *x = DHCPNetworksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DHCPNetworksResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DHCPNetworksResponse) ProtoMessage() {} + +func (x *DHCPNetworksResponse) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[9] + 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 DHCPNetworksResponse.ProtoReflect.Descriptor instead. +func (*DHCPNetworksResponse) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{9} +} + +func (x *DHCPNetworksResponse) GetSubnets() []*Subnet { + if x != nil { + return x.Subnets + } + return nil +} + +func (x *DHCPNetworksResponse) GetMapping() []*MacIPMapping { + if x != nil { + return x.Mapping + } + return nil +} + +func (x *DHCPNetworksResponse) GetDnsServers() []string { + if x != nil { + return x.DnsServers + } + return nil +} + +func (x *DHCPNetworksResponse) GetNtpServers() []string { + if x != nil { + return x.NtpServers + } + return nil +} + +type AdminListSwitchesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Switches []*Switch `protobuf:"bytes,1,rep,name=switches,proto3" json:"switches,omitempty"` +} + +func (x *AdminListSwitchesResponse) Reset() { + *x = AdminListSwitchesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListSwitchesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListSwitchesResponse) ProtoMessage() {} + +func (x *AdminListSwitchesResponse) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[10] + 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 AdminListSwitchesResponse.ProtoReflect.Descriptor instead. +func (*AdminListSwitchesResponse) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{10} +} + +func (x *AdminListSwitchesResponse) GetSwitches() []*Switch { + if x != nil { + return x.Switches + } + return nil +} + +type AdminGetSwitchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetSwitchRequest) Reset() { + *x = AdminGetSwitchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetSwitchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetSwitchRequest) ProtoMessage() {} + +func (x *AdminGetSwitchRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[11] + 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 AdminGetSwitchRequest.ProtoReflect.Descriptor instead. +func (*AdminGetSwitchRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{11} +} + +func (x *AdminGetSwitchRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminDeleteSwitchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteSwitchRequest) Reset() { + *x = AdminDeleteSwitchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteSwitchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteSwitchRequest) ProtoMessage() {} + +func (x *AdminDeleteSwitchRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[12] + 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 AdminDeleteSwitchRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteSwitchRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{12} +} + +func (x *AdminDeleteSwitchRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminCreateSwitchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Type SwitchType `protobuf:"varint,2,opt,name=type,proto3,enum=api.network.SwitchType" json:"type,omitempty"` + DatacenterId string `protobuf:"bytes,3,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` + Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` + Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` + UplinkPorts []string `protobuf:"bytes,7,rep,name=uplink_ports,json=uplinkPorts,proto3" json:"uplink_ports,omitempty"` +} + +func (x *AdminCreateSwitchRequest) Reset() { + *x = AdminCreateSwitchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateSwitchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateSwitchRequest) ProtoMessage() {} + +func (x *AdminCreateSwitchRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[13] + 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 AdminCreateSwitchRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateSwitchRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{13} +} + +func (x *AdminCreateSwitchRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminCreateSwitchRequest) GetType() SwitchType { + if x != nil { + return x.Type + } + return SwitchType_Juniper +} + +func (x *AdminCreateSwitchRequest) GetDatacenterId() string { + if x != nil { + return x.DatacenterId + } + return "" +} + +func (x *AdminCreateSwitchRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *AdminCreateSwitchRequest) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *AdminCreateSwitchRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *AdminCreateSwitchRequest) GetUplinkPorts() []string { + if x != nil { + return x.UplinkPorts + } + return nil +} + +type AdminUpdateSwitchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type SwitchType `protobuf:"varint,3,opt,name=type,proto3,enum=api.network.SwitchType" json:"type,omitempty"` + DatacenterId string `protobuf:"bytes,4,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` + Ip string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"` + Username string `protobuf:"bytes,6,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,7,opt,name=password,proto3" json:"password,omitempty"` + UplinkPorts []string `protobuf:"bytes,8,rep,name=uplink_ports,json=uplinkPorts,proto3" json:"uplink_ports,omitempty"` +} + +func (x *AdminUpdateSwitchRequest) Reset() { + *x = AdminUpdateSwitchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateSwitchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateSwitchRequest) ProtoMessage() {} + +func (x *AdminUpdateSwitchRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[14] + 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 AdminUpdateSwitchRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateSwitchRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{14} +} + +func (x *AdminUpdateSwitchRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateSwitchRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminUpdateSwitchRequest) GetType() SwitchType { + if x != nil { + return x.Type + } + return SwitchType_Juniper +} + +func (x *AdminUpdateSwitchRequest) GetDatacenterId() string { + if x != nil { + return x.DatacenterId + } + return "" +} + +func (x *AdminUpdateSwitchRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *AdminUpdateSwitchRequest) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *AdminUpdateSwitchRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *AdminUpdateSwitchRequest) GetUplinkPorts() []string { + if x != nil { + return x.UplinkPorts + } + return nil +} + +type ListSwitchesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Switches []*Switch `protobuf:"bytes,1,rep,name=switches,proto3" json:"switches,omitempty"` +} + +func (x *ListSwitchesResponse) Reset() { + *x = ListSwitchesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSwitchesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSwitchesResponse) ProtoMessage() {} + +func (x *ListSwitchesResponse) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[15] + 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 ListSwitchesResponse.ProtoReflect.Descriptor instead. +func (*ListSwitchesResponse) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{15} +} + +func (x *ListSwitchesResponse) GetSwitches() []*Switch { + if x != nil { + return x.Switches + } + return nil +} + +type MacAddressMapping struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MacAddresses []string `protobuf:"bytes,1,rep,name=mac_addresses,json=macAddresses,proto3" json:"mac_addresses,omitempty"` + SwitchId string `protobuf:"bytes,2,opt,name=switch_id,json=switchId,proto3" json:"switch_id,omitempty"` + SwitchPort string `protobuf:"bytes,3,opt,name=switch_port,json=switchPort,proto3" json:"switch_port,omitempty"` +} + +func (x *MacAddressMapping) Reset() { + *x = MacAddressMapping{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MacAddressMapping) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MacAddressMapping) ProtoMessage() {} + +func (x *MacAddressMapping) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[16] + 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 MacAddressMapping.ProtoReflect.Descriptor instead. +func (*MacAddressMapping) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{16} +} + +func (x *MacAddressMapping) GetMacAddresses() []string { + if x != nil { + return x.MacAddresses + } + return nil +} + +func (x *MacAddressMapping) GetSwitchId() string { + if x != nil { + return x.SwitchId + } + return "" +} + +func (x *MacAddressMapping) GetSwitchPort() string { + if x != nil { + return x.SwitchPort + } + return "" +} + +type UpdateMacAddressMappingRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Mapping []*MacAddressMapping `protobuf:"bytes,1,rep,name=mapping,proto3" json:"mapping,omitempty"` +} + +func (x *UpdateMacAddressMappingRequest) Reset() { + *x = UpdateMacAddressMappingRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateMacAddressMappingRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateMacAddressMappingRequest) ProtoMessage() {} + +func (x *UpdateMacAddressMappingRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[17] + 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 UpdateMacAddressMappingRequest.ProtoReflect.Descriptor instead. +func (*UpdateMacAddressMappingRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{17} +} + +func (x *UpdateMacAddressMappingRequest) GetMapping() []*MacAddressMapping { + if x != nil { + return x.Mapping + } + return nil +} + +type ConfigureSwitchPortRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Switch *Switch `protobuf:"bytes,1,opt,name=switch,proto3" json:"switch,omitempty"` + SwitchPort string `protobuf:"bytes,2,opt,name=switch_port,json=switchPort,proto3" json:"switch_port,omitempty"` + Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` + UntaggedVlanId int32 `protobuf:"varint,4,opt,name=untagged_vlan_id,json=untaggedVlanId,proto3" json:"untagged_vlan_id,omitempty"` + TaggedVlanIds []int32 `protobuf:"varint,5,rep,packed,name=tagged_vlan_ids,json=taggedVlanIds,proto3" json:"tagged_vlan_ids,omitempty"` +} + +func (x *ConfigureSwitchPortRequest) Reset() { + *x = ConfigureSwitchPortRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConfigureSwitchPortRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfigureSwitchPortRequest) ProtoMessage() {} + +func (x *ConfigureSwitchPortRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[18] + 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 ConfigureSwitchPortRequest.ProtoReflect.Descriptor instead. +func (*ConfigureSwitchPortRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{18} +} + +func (x *ConfigureSwitchPortRequest) GetSwitch() *Switch { + if x != nil { + return x.Switch + } + return nil +} + +func (x *ConfigureSwitchPortRequest) GetSwitchPort() string { + if x != nil { + return x.SwitchPort + } + return "" +} + +func (x *ConfigureSwitchPortRequest) GetComment() string { + if x != nil { + return x.Comment + } + return "" +} + +func (x *ConfigureSwitchPortRequest) GetUntaggedVlanId() int32 { + if x != nil { + return x.UntaggedVlanId + } + return 0 +} + +func (x *ConfigureSwitchPortRequest) GetTaggedVlanIds() []int32 { + if x != nil { + return x.TaggedVlanIds + } + return nil +} + +type AdminListNetworksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"` +} + +func (x *AdminListNetworksResponse) Reset() { + *x = AdminListNetworksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListNetworksResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListNetworksResponse) ProtoMessage() {} + +func (x *AdminListNetworksResponse) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[19] + 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 AdminListNetworksResponse.ProtoReflect.Descriptor instead. +func (*AdminListNetworksResponse) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{19} +} + +func (x *AdminListNetworksResponse) GetNetworks() []*Network { + if x != nil { + return x.Networks + } + return nil +} + +type AdminCreateNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Type NetworkType `protobuf:"varint,2,opt,name=type,proto3,enum=api.network.NetworkType" json:"type,omitempty"` + DatacenterId string `protobuf:"bytes,3,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` + VlanId int32 `protobuf:"varint,4,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"` +} + +func (x *AdminCreateNetworkRequest) Reset() { + *x = AdminCreateNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateNetworkRequest) ProtoMessage() {} + +func (x *AdminCreateNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[20] + 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 AdminCreateNetworkRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateNetworkRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{20} +} + +func (x *AdminCreateNetworkRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminCreateNetworkRequest) GetType() NetworkType { + if x != nil { + return x.Type + } + return NetworkType_MANAGEMENT +} + +func (x *AdminCreateNetworkRequest) GetDatacenterId() string { + if x != nil { + return x.DatacenterId + } + return "" +} + +func (x *AdminCreateNetworkRequest) GetVlanId() int32 { + if x != nil { + return x.VlanId + } + return 0 +} + +type AdminUpdateNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + VlanId int32 `protobuf:"varint,3,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"` +} + +func (x *AdminUpdateNetworkRequest) Reset() { + *x = AdminUpdateNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateNetworkRequest) ProtoMessage() {} + +func (x *AdminUpdateNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[21] + 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 AdminUpdateNetworkRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateNetworkRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{21} +} + +func (x *AdminUpdateNetworkRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateNetworkRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminUpdateNetworkRequest) GetVlanId() int32 { + if x != nil { + return x.VlanId + } + return 0 +} + +type AdminCreateSubnetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"` + Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"` + PoolStart string `protobuf:"bytes,3,opt,name=pool_start,json=poolStart,proto3" json:"pool_start,omitempty"` + PoolEnd string `protobuf:"bytes,4,opt,name=pool_end,json=poolEnd,proto3" json:"pool_end,omitempty"` + Gateway string `protobuf:"bytes,5,opt,name=gateway,proto3" json:"gateway,omitempty"` + Dhcp bool `protobuf:"varint,6,opt,name=dhcp,proto3" json:"dhcp,omitempty"` +} + +func (x *AdminCreateSubnetRequest) Reset() { + *x = AdminCreateSubnetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateSubnetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateSubnetRequest) ProtoMessage() {} + +func (x *AdminCreateSubnetRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[22] + 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 AdminCreateSubnetRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateSubnetRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{22} +} + +func (x *AdminCreateSubnetRequest) GetNetworkId() string { + if x != nil { + return x.NetworkId + } + return "" +} + +func (x *AdminCreateSubnetRequest) GetCidr() string { + if x != nil { + return x.Cidr + } + return "" +} + +func (x *AdminCreateSubnetRequest) GetPoolStart() string { + if x != nil { + return x.PoolStart + } + return "" +} + +func (x *AdminCreateSubnetRequest) GetPoolEnd() string { + if x != nil { + return x.PoolEnd + } + return "" +} + +func (x *AdminCreateSubnetRequest) GetGateway() string { + if x != nil { + return x.Gateway + } + return "" +} + +func (x *AdminCreateSubnetRequest) GetDhcp() bool { + if x != nil { + return x.Dhcp + } + return false +} + +type AdminUpdateSubnetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"` + PoolStart string `protobuf:"bytes,3,opt,name=pool_start,json=poolStart,proto3" json:"pool_start,omitempty"` + PoolEnd string `protobuf:"bytes,4,opt,name=pool_end,json=poolEnd,proto3" json:"pool_end,omitempty"` + Gateway string `protobuf:"bytes,5,opt,name=gateway,proto3" json:"gateway,omitempty"` + Dhcp bool `protobuf:"varint,6,opt,name=dhcp,proto3" json:"dhcp,omitempty"` +} + +func (x *AdminUpdateSubnetRequest) Reset() { + *x = AdminUpdateSubnetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateSubnetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateSubnetRequest) ProtoMessage() {} + +func (x *AdminUpdateSubnetRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[23] + 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 AdminUpdateSubnetRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateSubnetRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{23} +} + +func (x *AdminUpdateSubnetRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateSubnetRequest) GetCidr() string { + if x != nil { + return x.Cidr + } + return "" +} + +func (x *AdminUpdateSubnetRequest) GetPoolStart() string { + if x != nil { + return x.PoolStart + } + return "" +} + +func (x *AdminUpdateSubnetRequest) GetPoolEnd() string { + if x != nil { + return x.PoolEnd + } + return "" +} + +func (x *AdminUpdateSubnetRequest) GetGateway() string { + if x != nil { + return x.Gateway + } + return "" +} + +func (x *AdminUpdateSubnetRequest) GetDhcp() bool { + if x != nil { + return x.Dhcp + } + return false +} + +type AdminDeleteSubnetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteSubnetRequest) Reset() { + *x = AdminDeleteSubnetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteSubnetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteSubnetRequest) ProtoMessage() {} + +func (x *AdminDeleteSubnetRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[24] + 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 AdminDeleteSubnetRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteSubnetRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{24} +} + +func (x *AdminDeleteSubnetRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminDeleteNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteNetworkRequest) Reset() { + *x = AdminDeleteNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteNetworkRequest) ProtoMessage() {} + +func (x *AdminDeleteNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[25] + 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 AdminDeleteNetworkRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteNetworkRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{25} +} + +func (x *AdminDeleteNetworkRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetNetworkRequest) Reset() { + *x = AdminGetNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetNetworkRequest) ProtoMessage() {} + +func (x *AdminGetNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[26] + 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 AdminGetNetworkRequest.ProtoReflect.Descriptor instead. +func (*AdminGetNetworkRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{26} +} + +func (x *AdminGetNetworkRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminListVlansRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DatacenterId string `protobuf:"bytes,1,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` +} + +func (x *AdminListVlansRequest) Reset() { + *x = AdminListVlansRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListVlansRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListVlansRequest) ProtoMessage() {} + +func (x *AdminListVlansRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[27] + 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 AdminListVlansRequest.ProtoReflect.Descriptor instead. +func (*AdminListVlansRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{27} +} + +func (x *AdminListVlansRequest) GetDatacenterId() string { + if x != nil { + return x.DatacenterId + } + return "" +} + +type AdminCreateVlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DatacenterId string `protobuf:"bytes,1,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` + VlanId int32 `protobuf:"varint,2,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"` +} + +func (x *AdminCreateVlanRequest) Reset() { + *x = AdminCreateVlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateVlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateVlanRequest) ProtoMessage() {} + +func (x *AdminCreateVlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[28] + 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 AdminCreateVlanRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateVlanRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{28} +} + +func (x *AdminCreateVlanRequest) GetDatacenterId() string { + if x != nil { + return x.DatacenterId + } + return "" +} + +func (x *AdminCreateVlanRequest) GetVlanId() int32 { + if x != nil { + return x.VlanId + } + return 0 +} + +type VLAN struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + VlanId int32 `protobuf:"varint,2,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"` + Available bool `protobuf:"varint,3,opt,name=available,proto3" json:"available,omitempty"` +} + +func (x *VLAN) Reset() { + *x = VLAN{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VLAN) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VLAN) ProtoMessage() {} + +func (x *VLAN) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[29] + 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 VLAN.ProtoReflect.Descriptor instead. +func (*VLAN) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{29} +} + +func (x *VLAN) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *VLAN) GetVlanId() int32 { + if x != nil { + return x.VlanId + } + return 0 +} + +func (x *VLAN) GetAvailable() bool { + if x != nil { + return x.Available + } + return false +} + +type AdminListVlansResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Vlans []*VLAN `protobuf:"bytes,1,rep,name=vlans,proto3" json:"vlans,omitempty"` +} + +func (x *AdminListVlansResponse) Reset() { + *x = AdminListVlansResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListVlansResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListVlansResponse) ProtoMessage() {} + +func (x *AdminListVlansResponse) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[30] + 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 AdminListVlansResponse.ProtoReflect.Descriptor instead. +func (*AdminListVlansResponse) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{30} +} + +func (x *AdminListVlansResponse) GetVlans() []*VLAN { + if x != nil { + return x.Vlans + } + return nil +} + +type AdminDeleteVlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteVlanRequest) Reset() { + *x = AdminDeleteVlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteVlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteVlanRequest) ProtoMessage() {} + +func (x *AdminDeleteVlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[31] + 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 AdminDeleteVlanRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteVlanRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{31} +} + +func (x *AdminDeleteVlanRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type ListProjectNetworksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *ListProjectNetworksRequest) Reset() { + *x = ListProjectNetworksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectNetworksRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectNetworksRequest) ProtoMessage() {} + +func (x *ListProjectNetworksRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[32] + 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 ListProjectNetworksRequest.ProtoReflect.Descriptor instead. +func (*ListProjectNetworksRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{32} +} + +func (x *ListProjectNetworksRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type ListProjectNetworksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"` +} + +func (x *ListProjectNetworksResponse) Reset() { + *x = ListProjectNetworksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectNetworksResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectNetworksResponse) ProtoMessage() {} + +func (x *ListProjectNetworksResponse) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[33] + 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 ListProjectNetworksResponse.ProtoReflect.Descriptor instead. +func (*ListProjectNetworksResponse) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{33} +} + +func (x *ListProjectNetworksResponse) GetNetworks() []*Network { + if x != nil { + return x.Networks + } + return nil +} + +type GetProjectNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *GetProjectNetworkRequest) Reset() { + *x = GetProjectNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectNetworkRequest) ProtoMessage() {} + +func (x *GetProjectNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[34] + 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 GetProjectNetworkRequest.ProtoReflect.Descriptor instead. +func (*GetProjectNetworkRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{34} +} + +func (x *GetProjectNetworkRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *GetProjectNetworkRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type UpdateProjectNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *UpdateProjectNetworkRequest) Reset() { + *x = UpdateProjectNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateProjectNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateProjectNetworkRequest) ProtoMessage() {} + +func (x *UpdateProjectNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[35] + 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 UpdateProjectNetworkRequest.ProtoReflect.Descriptor instead. +func (*UpdateProjectNetworkRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{35} +} + +func (x *UpdateProjectNetworkRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *UpdateProjectNetworkRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UpdateProjectNetworkRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type CreateProjectNetworkSubnetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Cidr string `protobuf:"bytes,3,opt,name=cidr,proto3" json:"cidr,omitempty"` + PoolStart string `protobuf:"bytes,4,opt,name=pool_start,json=poolStart,proto3" json:"pool_start,omitempty"` + PoolEnd string `protobuf:"bytes,5,opt,name=pool_end,json=poolEnd,proto3" json:"pool_end,omitempty"` +} + +func (x *CreateProjectNetworkSubnetRequest) Reset() { + *x = CreateProjectNetworkSubnetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateProjectNetworkSubnetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateProjectNetworkSubnetRequest) ProtoMessage() {} + +func (x *CreateProjectNetworkSubnetRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[36] + 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 CreateProjectNetworkSubnetRequest.ProtoReflect.Descriptor instead. +func (*CreateProjectNetworkSubnetRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{36} +} + +func (x *CreateProjectNetworkSubnetRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *CreateProjectNetworkSubnetRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *CreateProjectNetworkSubnetRequest) GetCidr() string { + if x != nil { + return x.Cidr + } + return "" +} + +func (x *CreateProjectNetworkSubnetRequest) GetPoolStart() string { + if x != nil { + return x.PoolStart + } + return "" +} + +func (x *CreateProjectNetworkSubnetRequest) GetPoolEnd() string { + if x != nil { + return x.PoolEnd + } + return "" +} + +type UpdateProjectNetworkSubnetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Cidr string `protobuf:"bytes,3,opt,name=cidr,proto3" json:"cidr,omitempty"` + PoolStart string `protobuf:"bytes,4,opt,name=pool_start,json=poolStart,proto3" json:"pool_start,omitempty"` + PoolEnd string `protobuf:"bytes,5,opt,name=pool_end,json=poolEnd,proto3" json:"pool_end,omitempty"` +} + +func (x *UpdateProjectNetworkSubnetRequest) Reset() { + *x = UpdateProjectNetworkSubnetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateProjectNetworkSubnetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateProjectNetworkSubnetRequest) ProtoMessage() {} + +func (x *UpdateProjectNetworkSubnetRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[37] + 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 UpdateProjectNetworkSubnetRequest.ProtoReflect.Descriptor instead. +func (*UpdateProjectNetworkSubnetRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{37} +} + +func (x *UpdateProjectNetworkSubnetRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *UpdateProjectNetworkSubnetRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UpdateProjectNetworkSubnetRequest) GetCidr() string { + if x != nil { + return x.Cidr + } + return "" +} + +func (x *UpdateProjectNetworkSubnetRequest) GetPoolStart() string { + if x != nil { + return x.PoolStart + } + return "" +} + +func (x *UpdateProjectNetworkSubnetRequest) GetPoolEnd() string { + if x != nil { + return x.PoolEnd + } + return "" +} + +type DeleteProjectNetworkSubnetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *DeleteProjectNetworkSubnetRequest) Reset() { + *x = DeleteProjectNetworkSubnetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_network_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteProjectNetworkSubnetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteProjectNetworkSubnetRequest) ProtoMessage() {} + +func (x *DeleteProjectNetworkSubnetRequest) ProtoReflect() protoreflect.Message { + mi := &file_network_proto_msgTypes[38] + 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 DeleteProjectNetworkSubnetRequest.ProtoReflect.Descriptor instead. +func (*DeleteProjectNetworkSubnetRequest) Descriptor() ([]byte, []int) { + return file_network_proto_rawDescGZIP(), []int{38} +} + +func (x *DeleteProjectNetworkSubnetRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *DeleteProjectNetworkSubnetRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +var File_network_proto protoreflect.FileDescriptor + +var file_network_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x62, 0x61, 0x73, + 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfd, 0x03, 0x0a, 0x06, 0x53, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x1a, 0x0a, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x12, 0x49, 0x0a, 0x11, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x10, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, + 0x21, 0x0a, 0x0c, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, + 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x50, 0x6f, 0x72, + 0x74, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, + 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x61, 0x72, 0x70, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x6c, 0x61, 0x73, + 0x74, 0x41, 0x72, 0x70, 0x53, 0x79, 0x6e, 0x63, 0x22, 0xc8, 0x03, 0x0a, 0x07, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, + 0x73, 0x69, 0x63, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x75, 0x62, + 0x6e, 0x65, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, + 0x07, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x6c, 0x61, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x76, 0x6c, 0x61, 0x6e, 0x49, + 0x64, 0x12, 0x36, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x64, + 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x6f, + 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6f, + 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x61, + 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, + 0x70, 0x6f, 0x6f, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x39, 0x0a, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x22, 0xd9, 0x02, 0x0a, 0x06, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, + 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x25, + 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x69, 0x64, 0x72, 0x52, + 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x30, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, + 0x5f, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x69, 0x64, 0x72, 0x52, 0x09, 0x67, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x68, 0x63, 0x70, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x68, 0x63, 0x70, 0x12, 0x30, 0x0a, 0x0a, 0x70, + 0x6f, 0x6f, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x69, + 0x64, 0x72, 0x52, 0x09, 0x70, 0x6f, 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x2c, 0x0a, + 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x69, + 0x64, 0x72, 0x52, 0x07, 0x70, 0x6f, 0x6f, 0x6c, 0x45, 0x6e, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, + 0x6f, 0x6f, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, + 0x70, 0x6f, 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x6f, 0x6f, 0x6c, + 0x5f, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0d, 0x70, 0x6f, 0x6f, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x22, + 0x97, 0x01, 0x0a, 0x09, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x69, 0x64, + 0x72, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x75, + 0x62, 0x6e, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, + 0x06, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x06, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0xb1, 0x03, 0x0a, 0x0f, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x61, 0x63, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x70, 0x65, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x70, 0x65, + 0x65, 0x64, 0x12, 0x28, 0x0a, 0x03, 0x69, 0x70, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x49, 0x50, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x03, 0x69, 0x70, 0x73, 0x12, 0x1b, 0x0a, 0x09, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x06, + 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x8a, 0x01, + 0x0a, 0x13, 0x44, 0x48, 0x43, 0x50, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x3b, 0x0a, + 0x0c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x73, 0x0a, 0x04, 0x43, 0x69, + 0x64, 0x72, 0x12, 0x38, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x69, 0x64, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x09, 0x69, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, + 0x63, 0x69, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72, + 0x22, 0x1d, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x08, 0x0a, 0x04, 0x49, + 0x50, 0x56, 0x34, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, 0x01, 0x22, + 0x3f, 0x0a, 0x0c, 0x4d, 0x61, 0x63, 0x49, 0x50, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, + 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, + 0x22, 0x3a, 0x0a, 0x0b, 0x44, 0x48, 0x43, 0x50, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, + 0x2b, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, + 0x69, 0x64, 0x72, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0xbc, 0x01, 0x0a, + 0x14, 0x44, 0x48, 0x43, 0x50, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x07, 0x73, 0x75, 0x62, + 0x6e, 0x65, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x07, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x4d, 0x61, 0x63, 0x49, 0x50, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, + 0x52, 0x07, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6e, 0x73, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, + 0x64, 0x6e, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x74, + 0x70, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0a, 0x6e, 0x74, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x22, 0x4c, 0x0a, 0x19, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x73, 0x77, 0x69, 0x74, + 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, + 0x08, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x22, 0x27, 0x0a, 0x15, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xeb, + 0x01, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x77, + 0x69, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x2b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x77, 0x69, 0x74, + 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x70, 0x6c, + 0x69, 0x6e, 0x6b, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0b, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x22, 0xfb, 0x01, 0x0a, + 0x18, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x77, 0x69, 0x74, + 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, + 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, + 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x70, 0x6c, 0x69, 0x6e, + 0x6b, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, + 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x22, 0x47, 0x0a, 0x14, 0x4c, 0x69, + 0x73, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x08, 0x73, 0x77, 0x69, 0x74, 0x63, + 0x68, 0x65, 0x73, 0x22, 0x76, 0x0a, 0x11, 0x4d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x63, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0c, 0x6d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x1b, 0x0a, + 0x09, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x77, + 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x5a, 0x0a, 0x1e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, + 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, + 0x07, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4d, 0x61, 0x63, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x07, + 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x22, 0xd6, 0x01, 0x0a, 0x1a, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x65, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x06, 0x73, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x6f, + 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x50, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x28, + 0x0a, 0x10, 0x75, 0x6e, 0x74, 0x61, 0x67, 0x67, 0x65, 0x64, 0x5f, 0x76, 0x6c, 0x61, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x75, 0x6e, 0x74, 0x61, 0x67, 0x67, + 0x65, 0x64, 0x56, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x61, 0x67, 0x67, + 0x65, 0x64, 0x5f, 0x76, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x05, 0x52, 0x0d, 0x74, 0x61, 0x67, 0x67, 0x65, 0x64, 0x56, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x73, + 0x22, 0x4d, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, + 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x22, + 0x9b, 0x01, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x76, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x58, 0x0a, + 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, + 0x0a, 0x07, 0x76, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x06, 0x76, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0xb5, 0x01, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6f, 0x6f, + 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, + 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x6f, 0x6c, 0x45, 0x6e, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, + 0x68, 0x63, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x68, 0x63, 0x70, 0x22, + 0xa6, 0x01, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, + 0x75, 0x62, 0x6e, 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, 0x12, 0x12, 0x0a, 0x04, + 0x63, 0x69, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6f, 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, + 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x6f, 0x6f, 0x6c, 0x45, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x61, + 0x74, 0x65, 0x77, 0x61, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x61, 0x74, + 0x65, 0x77, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x68, 0x63, 0x70, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x04, 0x64, 0x68, 0x63, 0x70, 0x22, 0x2a, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, 0x62, 0x6e, 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, 0x2b, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x22, 0x28, 0x0a, 0x16, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x15, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, + 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x16, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x6c, 0x61, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x76, 0x6c, 0x61, 0x6e, 0x49, + 0x64, 0x22, 0x4d, 0x0a, 0x04, 0x56, 0x4c, 0x41, 0x4e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x6c, 0x61, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x76, 0x6c, 0x61, 0x6e, + 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x22, 0x41, 0x0a, 0x16, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6c, 0x61, + 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x6c, + 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x56, 0x4c, 0x41, 0x4e, 0x52, 0x05, 0x76, 0x6c, + 0x61, 0x6e, 0x73, 0x22, 0x28, 0x0a, 0x16, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x56, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3b, 0x0a, + 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x1b, 0x4c, 0x69, + 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x22, 0x49, 0x0a, 0x18, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x60, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa0, 0x01, 0x0a, 0x21, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, + 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6f, 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x6f, 0x6c, 0x45, 0x6e, 0x64, 0x22, 0xa0, 0x01, 0x0a, 0x21, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x63, 0x69, 0x64, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6f, 0x6f, 0x6c, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x65, 0x6e, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x6f, 0x6c, 0x45, 0x6e, 0x64, 0x22, 0x52, + 0x0a, 0x21, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x2a, 0x6e, 0x0a, 0x0b, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x41, 0x4e, 0x41, 0x47, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, + 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x49, 0x4e, + 0x47, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x55, 0x42, 0x4c, + 0x49, 0x43, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x52, 0x4f, + 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x03, 0x12, 0x13, 0x0a, + 0x0f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, + 0x10, 0x04, 0x2a, 0x19, 0x0a, 0x0a, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x0b, 0x0a, 0x07, 0x4a, 0x75, 0x6e, 0x69, 0x70, 0x65, 0x72, 0x10, 0x00, 0x2a, 0x3b, 0x0a, + 0x13, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, + 0x5f, 0x4d, 0x41, 0x4e, 0x41, 0x47, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, + 0x07, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x10, 0x01, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_network_proto_rawDescOnce sync.Once + file_network_proto_rawDescData = file_network_proto_rawDesc +) + +func file_network_proto_rawDescGZIP() []byte { + file_network_proto_rawDescOnce.Do(func() { + file_network_proto_rawDescData = protoimpl.X.CompressGZIP(file_network_proto_rawDescData) + }) + return file_network_proto_rawDescData +} + +var file_network_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_network_proto_msgTypes = make([]protoimpl.MessageInfo, 39) +var file_network_proto_goTypes = []interface{}{ + (NetworkType)(0), // 0: api.network.NetworkType + (SwitchType)(0), // 1: api.network.SwitchType + (ServerInterfaceType)(0), // 2: api.network.ServerInterfaceType + (Cidr_Version)(0), // 3: api.network.Cidr.Version + (*Switch)(nil), // 4: api.network.Switch + (*Network)(nil), // 5: api.network.Network + (*Subnet)(nil), // 6: api.network.Subnet + (*IPAddress)(nil), // 7: api.network.IPAddress + (*ServerInterface)(nil), // 8: api.network.ServerInterface + (*DHCPNetworksRequest)(nil), // 9: api.network.DHCPNetworksRequest + (*Cidr)(nil), // 10: api.network.Cidr + (*MacIPMapping)(nil), // 11: api.network.MacIPMapping + (*DHCPNetwork)(nil), // 12: api.network.DHCPNetwork + (*DHCPNetworksResponse)(nil), // 13: api.network.DHCPNetworksResponse + (*AdminListSwitchesResponse)(nil), // 14: api.network.AdminListSwitchesResponse + (*AdminGetSwitchRequest)(nil), // 15: api.network.AdminGetSwitchRequest + (*AdminDeleteSwitchRequest)(nil), // 16: api.network.AdminDeleteSwitchRequest + (*AdminCreateSwitchRequest)(nil), // 17: api.network.AdminCreateSwitchRequest + (*AdminUpdateSwitchRequest)(nil), // 18: api.network.AdminUpdateSwitchRequest + (*ListSwitchesResponse)(nil), // 19: api.network.ListSwitchesResponse + (*MacAddressMapping)(nil), // 20: api.network.MacAddressMapping + (*UpdateMacAddressMappingRequest)(nil), // 21: api.network.UpdateMacAddressMappingRequest + (*ConfigureSwitchPortRequest)(nil), // 22: api.network.ConfigureSwitchPortRequest + (*AdminListNetworksResponse)(nil), // 23: api.network.AdminListNetworksResponse + (*AdminCreateNetworkRequest)(nil), // 24: api.network.AdminCreateNetworkRequest + (*AdminUpdateNetworkRequest)(nil), // 25: api.network.AdminUpdateNetworkRequest + (*AdminCreateSubnetRequest)(nil), // 26: api.network.AdminCreateSubnetRequest + (*AdminUpdateSubnetRequest)(nil), // 27: api.network.AdminUpdateSubnetRequest + (*AdminDeleteSubnetRequest)(nil), // 28: api.network.AdminDeleteSubnetRequest + (*AdminDeleteNetworkRequest)(nil), // 29: api.network.AdminDeleteNetworkRequest + (*AdminGetNetworkRequest)(nil), // 30: api.network.AdminGetNetworkRequest + (*AdminListVlansRequest)(nil), // 31: api.network.AdminListVlansRequest + (*AdminCreateVlanRequest)(nil), // 32: api.network.AdminCreateVlanRequest + (*VLAN)(nil), // 33: api.network.VLAN + (*AdminListVlansResponse)(nil), // 34: api.network.AdminListVlansResponse + (*AdminDeleteVlanRequest)(nil), // 35: api.network.AdminDeleteVlanRequest + (*ListProjectNetworksRequest)(nil), // 36: api.network.ListProjectNetworksRequest + (*ListProjectNetworksResponse)(nil), // 37: api.network.ListProjectNetworksResponse + (*GetProjectNetworkRequest)(nil), // 38: api.network.GetProjectNetworkRequest + (*UpdateProjectNetworkRequest)(nil), // 39: api.network.UpdateProjectNetworkRequest + (*CreateProjectNetworkSubnetRequest)(nil), // 40: api.network.CreateProjectNetworkSubnetRequest + (*UpdateProjectNetworkSubnetRequest)(nil), // 41: api.network.UpdateProjectNetworkSubnetRequest + (*DeleteProjectNetworkSubnetRequest)(nil), // 42: api.network.DeleteProjectNetworkSubnetRequest + (*DataCenter)(nil), // 43: api.region.DataCenter + (*timestamppb.Timestamp)(nil), // 44: google.protobuf.Timestamp + (*BasicProject)(nil), // 45: api.basic.BasicProject +} +var file_network_proto_depIdxs = []int32{ + 1, // 0: api.network.Switch.type:type_name -> api.network.SwitchType + 43, // 1: api.network.Switch.datacenter:type_name -> api.region.DataCenter + 8, // 2: api.network.Switch.server_interfaces:type_name -> api.network.ServerInterface + 44, // 3: api.network.Switch.created_at:type_name -> google.protobuf.Timestamp + 44, // 4: api.network.Switch.updated_at:type_name -> google.protobuf.Timestamp + 44, // 5: api.network.Switch.last_arp_sync:type_name -> google.protobuf.Timestamp + 0, // 6: api.network.Network.type:type_name -> api.network.NetworkType + 45, // 7: api.network.Network.project:type_name -> api.basic.BasicProject + 6, // 8: api.network.Network.subnets:type_name -> api.network.Subnet + 43, // 9: api.network.Network.datacenter:type_name -> api.region.DataCenter + 44, // 10: api.network.Network.created_at:type_name -> google.protobuf.Timestamp + 44, // 11: api.network.Network.updated_at:type_name -> google.protobuf.Timestamp + 5, // 12: api.network.Subnet.network:type_name -> api.network.Network + 10, // 13: api.network.Subnet.cidr:type_name -> api.network.Cidr + 10, // 14: api.network.Subnet.gateway_ip:type_name -> api.network.Cidr + 10, // 15: api.network.Subnet.pool_start:type_name -> api.network.Cidr + 10, // 16: api.network.Subnet.pool_end:type_name -> api.network.Cidr + 10, // 17: api.network.IPAddress.address:type_name -> api.network.Cidr + 6, // 18: api.network.IPAddress.subnet:type_name -> api.network.Subnet + 2, // 19: api.network.ServerInterface.type:type_name -> api.network.ServerInterfaceType + 7, // 20: api.network.ServerInterface.ips:type_name -> api.network.IPAddress + 4, // 21: api.network.ServerInterface.switch:type_name -> api.network.Switch + 44, // 22: api.network.ServerInterface.created_at:type_name -> google.protobuf.Timestamp + 44, // 23: api.network.ServerInterface.updated_at:type_name -> google.protobuf.Timestamp + 43, // 24: api.network.DHCPNetworksRequest.datacenter:type_name -> api.region.DataCenter + 0, // 25: api.network.DHCPNetworksRequest.network_type:type_name -> api.network.NetworkType + 3, // 26: api.network.Cidr.ip_version:type_name -> api.network.Cidr.Version + 10, // 27: api.network.DHCPNetwork.network:type_name -> api.network.Cidr + 6, // 28: api.network.DHCPNetworksResponse.subnets:type_name -> api.network.Subnet + 11, // 29: api.network.DHCPNetworksResponse.mapping:type_name -> api.network.MacIPMapping + 4, // 30: api.network.AdminListSwitchesResponse.switches:type_name -> api.network.Switch + 1, // 31: api.network.AdminCreateSwitchRequest.type:type_name -> api.network.SwitchType + 1, // 32: api.network.AdminUpdateSwitchRequest.type:type_name -> api.network.SwitchType + 4, // 33: api.network.ListSwitchesResponse.switches:type_name -> api.network.Switch + 20, // 34: api.network.UpdateMacAddressMappingRequest.mapping:type_name -> api.network.MacAddressMapping + 4, // 35: api.network.ConfigureSwitchPortRequest.switch:type_name -> api.network.Switch + 5, // 36: api.network.AdminListNetworksResponse.networks:type_name -> api.network.Network + 0, // 37: api.network.AdminCreateNetworkRequest.type:type_name -> api.network.NetworkType + 33, // 38: api.network.AdminListVlansResponse.vlans:type_name -> api.network.VLAN + 5, // 39: api.network.ListProjectNetworksResponse.networks:type_name -> api.network.Network + 40, // [40:40] is the sub-list for method output_type + 40, // [40:40] is the sub-list for method input_type + 40, // [40:40] is the sub-list for extension type_name + 40, // [40:40] is the sub-list for extension extendee + 0, // [0:40] is the sub-list for field type_name +} + +func init() { file_network_proto_init() } +func file_network_proto_init() { + if File_network_proto != nil { + return + } + file_region_proto_init() + file_basic_proto_init() + if !protoimpl.UnsafeEnabled { + file_network_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Switch); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Network); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Subnet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPAddress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerInterface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DHCPNetworksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Cidr); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MacIPMapping); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DHCPNetwork); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DHCPNetworksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListSwitchesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetSwitchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteSwitchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateSwitchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateSwitchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSwitchesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MacAddressMapping); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateMacAddressMappingRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigureSwitchPortRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListNetworksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateSubnetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateSubnetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteSubnetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListVlansRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateVlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VLAN); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListVlansResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteVlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectNetworksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectNetworksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateProjectNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateProjectNetworkSubnetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateProjectNetworkSubnetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_network_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteProjectNetworkSubnetRequest); 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_network_proto_rawDesc, + NumEnums: 4, + NumMessages: 39, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_network_proto_goTypes, + DependencyIndexes: file_network_proto_depIdxs, + EnumInfos: file_network_proto_enumTypes, + MessageInfos: file_network_proto_msgTypes, + }.Build() + File_network_proto = out.File + file_network_proto_rawDesc = nil + file_network_proto_goTypes = nil + file_network_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/notification.pb.go b/pkg/gpcloud/ptypes/notification.pb.go new file mode 100644 index 0000000..788a423 --- /dev/null +++ b/pkg/gpcloud/ptypes/notification.pb.go @@ -0,0 +1,282 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: notification.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type SubscribeProjectNotificationsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectIds []string `protobuf:"bytes,1,rep,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"` +} + +func (x *SubscribeProjectNotificationsRequest) Reset() { + *x = SubscribeProjectNotificationsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_notification_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SubscribeProjectNotificationsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SubscribeProjectNotificationsRequest) ProtoMessage() {} + +func (x *SubscribeProjectNotificationsRequest) ProtoReflect() protoreflect.Message { + mi := &file_notification_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 SubscribeProjectNotificationsRequest.ProtoReflect.Descriptor instead. +func (*SubscribeProjectNotificationsRequest) Descriptor() ([]byte, []int) { + return file_notification_proto_rawDescGZIP(), []int{0} +} + +func (x *SubscribeProjectNotificationsRequest) GetProjectIds() []string { + if x != nil { + return x.ProjectIds + } + return nil +} + +type ProjectNotification struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Message: + // *ProjectNotification_Project + // *ProjectNotification_ComputeResource + // *ProjectNotification_Network + Message isProjectNotification_Message `protobuf_oneof:"message"` +} + +func (x *ProjectNotification) Reset() { + *x = ProjectNotification{} + if protoimpl.UnsafeEnabled { + mi := &file_notification_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectNotification) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectNotification) ProtoMessage() {} + +func (x *ProjectNotification) ProtoReflect() protoreflect.Message { + mi := &file_notification_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 ProjectNotification.ProtoReflect.Descriptor instead. +func (*ProjectNotification) Descriptor() ([]byte, []int) { + return file_notification_proto_rawDescGZIP(), []int{1} +} + +func (m *ProjectNotification) GetMessage() isProjectNotification_Message { + if m != nil { + return m.Message + } + return nil +} + +func (x *ProjectNotification) GetProject() *Project { + if x, ok := x.GetMessage().(*ProjectNotification_Project); ok { + return x.Project + } + return nil +} + +func (x *ProjectNotification) GetComputeResource() *ComputeResource { + if x, ok := x.GetMessage().(*ProjectNotification_ComputeResource); ok { + return x.ComputeResource + } + return nil +} + +func (x *ProjectNotification) GetNetwork() *Network { + if x, ok := x.GetMessage().(*ProjectNotification_Network); ok { + return x.Network + } + return nil +} + +type isProjectNotification_Message interface { + isProjectNotification_Message() +} + +type ProjectNotification_Project struct { + Project *Project `protobuf:"bytes,1,opt,name=project,proto3,oneof"` +} + +type ProjectNotification_ComputeResource struct { + ComputeResource *ComputeResource `protobuf:"bytes,2,opt,name=compute_resource,json=computeResource,proto3,oneof"` +} + +type ProjectNotification_Network struct { + Network *Network `protobuf:"bytes,3,opt,name=network,proto3,oneof"` +} + +func (*ProjectNotification_Project) isProjectNotification_Message() {} + +func (*ProjectNotification_ComputeResource) isProjectNotification_Message() {} + +func (*ProjectNotification_Network) isProjectNotification_Message() {} + +var File_notification_proto protoreflect.FileDescriptor + +var file_notification_proto_rawDesc = []byte{ + 0x0a, 0x12, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x47, 0x0a, 0x24, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x73, 0x22, 0xcf, 0x01, 0x0a, + 0x13, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x48, 0x00, 0x52, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x49, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, + 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x30, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x48, 0x00, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x16, + 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, + 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_notification_proto_rawDescOnce sync.Once + file_notification_proto_rawDescData = file_notification_proto_rawDesc +) + +func file_notification_proto_rawDescGZIP() []byte { + file_notification_proto_rawDescOnce.Do(func() { + file_notification_proto_rawDescData = protoimpl.X.CompressGZIP(file_notification_proto_rawDescData) + }) + return file_notification_proto_rawDescData +} + +var file_notification_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_notification_proto_goTypes = []interface{}{ + (*SubscribeProjectNotificationsRequest)(nil), // 0: api.notification.SubscribeProjectNotificationsRequest + (*ProjectNotification)(nil), // 1: api.notification.ProjectNotification + (*Project)(nil), // 2: api.project.Project + (*ComputeResource)(nil), // 3: api.compute.ComputeResource + (*Network)(nil), // 4: api.network.Network +} +var file_notification_proto_depIdxs = []int32{ + 2, // 0: api.notification.ProjectNotification.project:type_name -> api.project.Project + 3, // 1: api.notification.ProjectNotification.compute_resource:type_name -> api.compute.ComputeResource + 4, // 2: api.notification.ProjectNotification.network:type_name -> api.network.Network + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_notification_proto_init() } +func file_notification_proto_init() { + if File_notification_proto != nil { + return + } + file_compute_proto_init() + file_project_proto_init() + file_network_proto_init() + if !protoimpl.UnsafeEnabled { + file_notification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubscribeProjectNotificationsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_notification_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectNotification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_notification_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*ProjectNotification_Project)(nil), + (*ProjectNotification_ComputeResource)(nil), + (*ProjectNotification_Network)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_notification_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_notification_proto_goTypes, + DependencyIndexes: file_notification_proto_depIdxs, + MessageInfos: file_notification_proto_msgTypes, + }.Build() + File_notification_proto = out.File + file_notification_proto_rawDesc = nil + file_notification_proto_goTypes = nil + file_notification_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/payment.pb.go b/pkg/gpcloud/ptypes/payment.pb.go new file mode 100644 index 0000000..d2f35d3 --- /dev/null +++ b/pkg/gpcloud/ptypes/payment.pb.go @@ -0,0 +1,1503 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: payment.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type PaymentProvider int32 + +const ( + PaymentProvider_ADYEN PaymentProvider = 0 +) + +// Enum value maps for PaymentProvider. +var ( + PaymentProvider_name = map[int32]string{ + 0: "ADYEN", + } + PaymentProvider_value = map[string]int32{ + "ADYEN": 0, + } +) + +func (x PaymentProvider) Enum() *PaymentProvider { + p := new(PaymentProvider) + *p = x + return p +} + +func (x PaymentProvider) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PaymentProvider) Descriptor() protoreflect.EnumDescriptor { + return file_payment_proto_enumTypes[0].Descriptor() +} + +func (PaymentProvider) Type() protoreflect.EnumType { + return &file_payment_proto_enumTypes[0] +} + +func (x PaymentProvider) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PaymentProvider.Descriptor instead. +func (PaymentProvider) EnumDescriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{0} +} + +type PaymentStatus int32 + +const ( + PaymentStatus_SUCCESSFUL PaymentStatus = 0 + PaymentStatus_FAILED PaymentStatus = 1 + PaymentStatus_PENDING PaymentStatus = 2 + PaymentStatus_REFUNDED PaymentStatus = 3 +) + +// Enum value maps for PaymentStatus. +var ( + PaymentStatus_name = map[int32]string{ + 0: "SUCCESSFUL", + 1: "FAILED", + 2: "PENDING", + 3: "REFUNDED", + } + PaymentStatus_value = map[string]int32{ + "SUCCESSFUL": 0, + "FAILED": 1, + "PENDING": 2, + "REFUNDED": 3, + } +) + +func (x PaymentStatus) Enum() *PaymentStatus { + p := new(PaymentStatus) + *p = x + return p +} + +func (x PaymentStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PaymentStatus) Descriptor() protoreflect.EnumDescriptor { + return file_payment_proto_enumTypes[1].Descriptor() +} + +func (PaymentStatus) Type() protoreflect.EnumType { + return &file_payment_proto_enumTypes[1] +} + +func (x PaymentStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PaymentStatus.Descriptor instead. +func (PaymentStatus) EnumDescriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{1} +} + +type PaymentMethod int32 + +const ( + PaymentMethod_CREDIT_CARD PaymentMethod = 0 + PaymentMethod_BANK_TRANSFER PaymentMethod = 1 +) + +// Enum value maps for PaymentMethod. +var ( + PaymentMethod_name = map[int32]string{ + 0: "CREDIT_CARD", + 1: "BANK_TRANSFER", + } + PaymentMethod_value = map[string]int32{ + "CREDIT_CARD": 0, + "BANK_TRANSFER": 1, + } +) + +func (x PaymentMethod) Enum() *PaymentMethod { + p := new(PaymentMethod) + *p = x + return p +} + +func (x PaymentMethod) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PaymentMethod) Descriptor() protoreflect.EnumDescriptor { + return file_payment_proto_enumTypes[2].Descriptor() +} + +func (PaymentMethod) Type() protoreflect.EnumType { + return &file_payment_proto_enumTypes[2] +} + +func (x PaymentMethod) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PaymentMethod.Descriptor instead. +func (PaymentMethod) EnumDescriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{2} +} + +type CreditCardType int32 + +const ( + CreditCardType_UNKNOWN CreditCardType = 0 + CreditCardType_MASTERCARD CreditCardType = 1 + CreditCardType_VISA CreditCardType = 2 + CreditCardType_AMEX CreditCardType = 3 + CreditCardType_DISCOVER CreditCardType = 4 + CreditCardType_DINERS CreditCardType = 5 + CreditCardType_JCB CreditCardType = 6 +) + +// Enum value maps for CreditCardType. +var ( + CreditCardType_name = map[int32]string{ + 0: "UNKNOWN", + 1: "MASTERCARD", + 2: "VISA", + 3: "AMEX", + 4: "DISCOVER", + 5: "DINERS", + 6: "JCB", + } + CreditCardType_value = map[string]int32{ + "UNKNOWN": 0, + "MASTERCARD": 1, + "VISA": 2, + "AMEX": 3, + "DISCOVER": 4, + "DINERS": 5, + "JCB": 6, + } +) + +func (x CreditCardType) Enum() *CreditCardType { + p := new(CreditCardType) + *p = x + return p +} + +func (x CreditCardType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CreditCardType) Descriptor() protoreflect.EnumDescriptor { + return file_payment_proto_enumTypes[3].Descriptor() +} + +func (CreditCardType) Type() protoreflect.EnumType { + return &file_payment_proto_enumTypes[3] +} + +func (x CreditCardType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CreditCardType.Descriptor instead. +func (CreditCardType) EnumDescriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{3} +} + +type Payment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Status PaymentStatus `protobuf:"varint,2,opt,name=status,proto3,enum=api.payment.PaymentStatus" json:"status,omitempty"` + Method PaymentMethod `protobuf:"varint,3,opt,name=method,proto3,enum=api.payment.PaymentMethod" json:"method,omitempty"` + PaymentProviderId string `protobuf:"bytes,4,opt,name=payment_provider_id,json=paymentProviderId,proto3" json:"payment_provider_id,omitempty"` + PaymentProviderReference string `protobuf:"bytes,5,opt,name=payment_provider_reference,json=paymentProviderReference,proto3" json:"payment_provider_reference,omitempty"` + PaymentId string `protobuf:"bytes,6,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"` + Amount *Price `protobuf:"bytes,7,opt,name=amount,proto3" json:"amount,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (x *Payment) Reset() { + *x = Payment{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Payment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Payment) ProtoMessage() {} + +func (x *Payment) ProtoReflect() protoreflect.Message { + mi := &file_payment_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 Payment.ProtoReflect.Descriptor instead. +func (*Payment) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{0} +} + +func (x *Payment) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Payment) GetStatus() PaymentStatus { + if x != nil { + return x.Status + } + return PaymentStatus_SUCCESSFUL +} + +func (x *Payment) GetMethod() PaymentMethod { + if x != nil { + return x.Method + } + return PaymentMethod_CREDIT_CARD +} + +func (x *Payment) GetPaymentProviderId() string { + if x != nil { + return x.PaymentProviderId + } + return "" +} + +func (x *Payment) GetPaymentProviderReference() string { + if x != nil { + return x.PaymentProviderReference + } + return "" +} + +func (x *Payment) GetPaymentId() string { + if x != nil { + return x.PaymentId + } + return "" +} + +func (x *Payment) GetAmount() *Price { + if x != nil { + return x.Amount + } + return nil +} + +func (x *Payment) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +type CreditCard struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` + Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"` + Type CreditCardType `protobuf:"varint,4,opt,name=type,proto3,enum=api.payment.CreditCardType" json:"type,omitempty"` + Expired bool `protobuf:"varint,5,opt,name=expired,proto3" json:"expired,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` +} + +func (x *CreditCard) Reset() { + *x = CreditCard{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreditCard) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreditCard) ProtoMessage() {} + +func (x *CreditCard) ProtoReflect() protoreflect.Message { + mi := &file_payment_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 CreditCard.ProtoReflect.Descriptor instead. +func (*CreditCard) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{1} +} + +func (x *CreditCard) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *CreditCard) GetHolder() string { + if x != nil { + return x.Holder + } + return "" +} + +func (x *CreditCard) GetNumber() int32 { + if x != nil { + return x.Number + } + return 0 +} + +func (x *CreditCard) GetType() CreditCardType { + if x != nil { + return x.Type + } + return CreditCardType_UNKNOWN +} + +func (x *CreditCard) GetExpired() bool { + if x != nil { + return x.Expired + } + return false +} + +func (x *CreditCard) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *CreditCard) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +func (x *CreditCard) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +type ListCreditCardsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CreditCards []*CreditCard `protobuf:"bytes,1,rep,name=credit_cards,json=creditCards,proto3" json:"credit_cards,omitempty"` +} + +func (x *ListCreditCardsResponse) Reset() { + *x = ListCreditCardsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListCreditCardsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListCreditCardsResponse) ProtoMessage() {} + +func (x *ListCreditCardsResponse) ProtoReflect() protoreflect.Message { + mi := &file_payment_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 ListCreditCardsResponse.ProtoReflect.Descriptor instead. +func (*ListCreditCardsResponse) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{2} +} + +func (x *ListCreditCardsResponse) GetCreditCards() []*CreditCard { + if x != nil { + return x.CreditCards + } + return nil +} + +type AddCreditCardRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Account holder + Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"` + // Encrypted number + Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"` + // Encrypted expiry date + ExpiryMonth string `protobuf:"bytes,3,opt,name=expiry_month,json=expiryMonth,proto3" json:"expiry_month,omitempty"` + ExpiryYear string `protobuf:"bytes,4,opt,name=expiry_year,json=expiryYear,proto3" json:"expiry_year,omitempty"` + // Encrypted CVC + Cvc string `protobuf:"bytes,5,opt,name=cvc,proto3" json:"cvc,omitempty"` + // Credit card type + Type CreditCardType `protobuf:"varint,6,opt,name=type,proto3,enum=api.payment.CreditCardType" json:"type,omitempty"` +} + +func (x *AddCreditCardRequest) Reset() { + *x = AddCreditCardRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddCreditCardRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddCreditCardRequest) ProtoMessage() {} + +func (x *AddCreditCardRequest) ProtoReflect() protoreflect.Message { + mi := &file_payment_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 AddCreditCardRequest.ProtoReflect.Descriptor instead. +func (*AddCreditCardRequest) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{3} +} + +func (x *AddCreditCardRequest) GetHolder() string { + if x != nil { + return x.Holder + } + return "" +} + +func (x *AddCreditCardRequest) GetNumber() string { + if x != nil { + return x.Number + } + return "" +} + +func (x *AddCreditCardRequest) GetExpiryMonth() string { + if x != nil { + return x.ExpiryMonth + } + return "" +} + +func (x *AddCreditCardRequest) GetExpiryYear() string { + if x != nil { + return x.ExpiryYear + } + return "" +} + +func (x *AddCreditCardRequest) GetCvc() string { + if x != nil { + return x.Cvc + } + return "" +} + +func (x *AddCreditCardRequest) GetType() CreditCardType { + if x != nil { + return x.Type + } + return CreditCardType_UNKNOWN +} + +type AddCreditCardResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CreditCard *CreditCard `protobuf:"bytes,1,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"` +} + +func (x *AddCreditCardResponse) Reset() { + *x = AddCreditCardResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddCreditCardResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddCreditCardResponse) ProtoMessage() {} + +func (x *AddCreditCardResponse) ProtoReflect() protoreflect.Message { + mi := &file_payment_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 AddCreditCardResponse.ProtoReflect.Descriptor instead. +func (*AddCreditCardResponse) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{4} +} + +func (x *AddCreditCardResponse) GetCreditCard() *CreditCard { + if x != nil { + return x.CreditCard + } + return nil +} + +type DeleteCreditCardRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CardId string `protobuf:"bytes,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"` +} + +func (x *DeleteCreditCardRequest) Reset() { + *x = DeleteCreditCardRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteCreditCardRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteCreditCardRequest) ProtoMessage() {} + +func (x *DeleteCreditCardRequest) ProtoReflect() protoreflect.Message { + mi := &file_payment_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 DeleteCreditCardRequest.ProtoReflect.Descriptor instead. +func (*DeleteCreditCardRequest) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{5} +} + +func (x *DeleteCreditCardRequest) GetCardId() string { + if x != nil { + return x.CardId + } + return "" +} + +type Country struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // True means we are able to create bills without VAT + NetSupport bool `protobuf:"varint,3,opt,name=net_support,json=netSupport,proto3" json:"net_support,omitempty"` + TaxRate int32 `protobuf:"varint,4,opt,name=tax_rate,json=taxRate,proto3" json:"tax_rate,omitempty"` +} + +func (x *Country) Reset() { + *x = Country{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Country) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Country) ProtoMessage() {} + +func (x *Country) ProtoReflect() protoreflect.Message { + mi := &file_payment_proto_msgTypes[6] + 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 Country.ProtoReflect.Descriptor instead. +func (*Country) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{6} +} + +func (x *Country) GetCountryCode() string { + if x != nil { + return x.CountryCode + } + return "" +} + +func (x *Country) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Country) GetNetSupport() bool { + if x != nil { + return x.NetSupport + } + return false +} + +func (x *Country) GetTaxRate() int32 { + if x != nil { + return x.TaxRate + } + return 0 +} + +type ListCountriesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Countries []*Country `protobuf:"bytes,1,rep,name=countries,proto3" json:"countries,omitempty"` +} + +func (x *ListCountriesResponse) Reset() { + *x = ListCountriesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListCountriesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListCountriesResponse) ProtoMessage() {} + +func (x *ListCountriesResponse) ProtoReflect() protoreflect.Message { + mi := &file_payment_proto_msgTypes[7] + 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 ListCountriesResponse.ProtoReflect.Descriptor instead. +func (*ListCountriesResponse) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{7} +} + +func (x *ListCountriesResponse) GetCountries() []*Country { + if x != nil { + return x.Countries + } + return nil +} + +type BillingAddress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Company string `protobuf:"bytes,2,opt,name=company,proto3" json:"company,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + VatId string `protobuf:"bytes,4,opt,name=vat_id,json=vatId,proto3" json:"vat_id,omitempty"` + CountryCode string `protobuf:"bytes,5,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` + State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` + Street string `protobuf:"bytes,7,opt,name=street,proto3" json:"street,omitempty"` + City string `protobuf:"bytes,8,opt,name=city,proto3" json:"city,omitempty"` + Postcode string `protobuf:"bytes,9,opt,name=postcode,proto3" json:"postcode,omitempty"` + Tax int32 `protobuf:"varint,10,opt,name=tax,proto3" json:"tax,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *BillingAddress) Reset() { + *x = BillingAddress{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BillingAddress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BillingAddress) ProtoMessage() {} + +func (x *BillingAddress) ProtoReflect() protoreflect.Message { + mi := &file_payment_proto_msgTypes[8] + 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 BillingAddress.ProtoReflect.Descriptor instead. +func (*BillingAddress) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{8} +} + +func (x *BillingAddress) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *BillingAddress) GetCompany() string { + if x != nil { + return x.Company + } + return "" +} + +func (x *BillingAddress) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *BillingAddress) GetVatId() string { + if x != nil { + return x.VatId + } + return "" +} + +func (x *BillingAddress) GetCountryCode() string { + if x != nil { + return x.CountryCode + } + return "" +} + +func (x *BillingAddress) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *BillingAddress) GetStreet() string { + if x != nil { + return x.Street + } + return "" +} + +func (x *BillingAddress) GetCity() string { + if x != nil { + return x.City + } + return "" +} + +func (x *BillingAddress) GetPostcode() string { + if x != nil { + return x.Postcode + } + return "" +} + +func (x *BillingAddress) GetTax() int32 { + if x != nil { + return x.Tax + } + return 0 +} + +func (x *BillingAddress) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *BillingAddress) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type CreateBillingAddressRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Company string `protobuf:"bytes,1,opt,name=company,proto3" json:"company,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + VatId string `protobuf:"bytes,3,opt,name=vat_id,json=vatId,proto3" json:"vat_id,omitempty"` + CountryCode string `protobuf:"bytes,4,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` + State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` + Street string `protobuf:"bytes,6,opt,name=street,proto3" json:"street,omitempty"` + City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` + Postcode string `protobuf:"bytes,8,opt,name=postcode,proto3" json:"postcode,omitempty"` +} + +func (x *CreateBillingAddressRequest) Reset() { + *x = CreateBillingAddressRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateBillingAddressRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateBillingAddressRequest) ProtoMessage() {} + +func (x *CreateBillingAddressRequest) ProtoReflect() protoreflect.Message { + mi := &file_payment_proto_msgTypes[9] + 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 CreateBillingAddressRequest.ProtoReflect.Descriptor instead. +func (*CreateBillingAddressRequest) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{9} +} + +func (x *CreateBillingAddressRequest) GetCompany() string { + if x != nil { + return x.Company + } + return "" +} + +func (x *CreateBillingAddressRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateBillingAddressRequest) GetVatId() string { + if x != nil { + return x.VatId + } + return "" +} + +func (x *CreateBillingAddressRequest) GetCountryCode() string { + if x != nil { + return x.CountryCode + } + return "" +} + +func (x *CreateBillingAddressRequest) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *CreateBillingAddressRequest) GetStreet() string { + if x != nil { + return x.Street + } + return "" +} + +func (x *CreateBillingAddressRequest) GetCity() string { + if x != nil { + return x.City + } + return "" +} + +func (x *CreateBillingAddressRequest) GetPostcode() string { + if x != nil { + return x.Postcode + } + return "" +} + +type ListBillingAddressesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addresses []*BillingAddress `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` +} + +func (x *ListBillingAddressesResponse) Reset() { + *x = ListBillingAddressesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBillingAddressesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBillingAddressesResponse) ProtoMessage() {} + +func (x *ListBillingAddressesResponse) ProtoReflect() protoreflect.Message { + mi := &file_payment_proto_msgTypes[10] + 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 ListBillingAddressesResponse.ProtoReflect.Descriptor instead. +func (*ListBillingAddressesResponse) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{10} +} + +func (x *ListBillingAddressesResponse) GetAddresses() []*BillingAddress { + if x != nil { + return x.Addresses + } + return nil +} + +type DeleteBillingAddressRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AddressId string `protobuf:"bytes,1,opt,name=address_id,json=addressId,proto3" json:"address_id,omitempty"` +} + +func (x *DeleteBillingAddressRequest) Reset() { + *x = DeleteBillingAddressRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_payment_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteBillingAddressRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteBillingAddressRequest) ProtoMessage() {} + +func (x *DeleteBillingAddressRequest) ProtoReflect() protoreflect.Message { + mi := &file_payment_proto_msgTypes[11] + 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 DeleteBillingAddressRequest.ProtoReflect.Descriptor instead. +func (*DeleteBillingAddressRequest) Descriptor() ([]byte, []int) { + return file_payment_proto_rawDescGZIP(), []int{11} +} + +func (x *DeleteBillingAddressRequest) GetAddressId() string { + if x != nil { + return x.AddressId + } + return "" +} + +var File_payment_proto protoreflect.FileDescriptor + +var file_payment_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xed, 0x02, 0x0a, + 0x07, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, + 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x32, 0x0a, 0x06, + 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, + 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x3c, 0x0a, 0x1a, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x22, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xc8, 0x02, 0x0a, + 0x0a, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, + 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x6c, + 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, + 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x22, 0x55, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x43, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x63, 0x61, 0x72, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, + 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, + 0x64, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x73, 0x22, 0xcd, + 0x01, 0x0a, 0x14, 0x41, 0x64, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, + 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x79, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x79, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x79, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x59, 0x65, 0x61, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x63, + 0x76, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x76, 0x63, 0x12, 0x2f, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x43, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x51, + 0x0a, 0x15, 0x41, 0x64, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x43, 0x61, 0x72, 0x64, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, + 0x64, 0x22, 0x32, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, + 0x63, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, + 0x61, 0x72, 0x64, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x07, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, + 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x74, 0x5f, 0x73, + 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6e, 0x65, + 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x78, 0x5f, + 0x72, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x61, 0x78, 0x52, + 0x61, 0x74, 0x65, 0x22, 0x4b, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x09, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x22, 0xee, 0x02, 0x0a, 0x0e, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, + 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x70, 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x78, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x61, 0x78, 0x12, 0x39, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x22, 0xe3, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x69, 0x6c, 0x6c, + 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x15, 0x0a, 0x06, 0x76, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, + 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, + 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, + 0x6f, 0x73, 0x74, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x59, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x42, + 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x73, 0x22, 0x3c, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x69, 0x6c, 0x6c, + 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, + 0x2a, 0x1c, 0x0a, 0x0f, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x59, 0x45, 0x4e, 0x10, 0x00, 0x2a, 0x46, + 0x0a, 0x0d, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x0e, 0x0a, 0x0a, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x46, 0x55, 0x4c, 0x10, 0x00, 0x12, + 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, + 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x46, 0x55, + 0x4e, 0x44, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x33, 0x0a, 0x0d, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, + 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x52, 0x45, 0x44, 0x49, + 0x54, 0x5f, 0x43, 0x41, 0x52, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x42, 0x41, 0x4e, 0x4b, + 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x46, 0x45, 0x52, 0x10, 0x01, 0x2a, 0x64, 0x0a, 0x0e, 0x43, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, + 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x41, + 0x53, 0x54, 0x45, 0x52, 0x43, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x56, 0x49, + 0x53, 0x41, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x4d, 0x45, 0x58, 0x10, 0x03, 0x12, 0x0c, + 0x0a, 0x08, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, + 0x44, 0x49, 0x4e, 0x45, 0x52, 0x53, 0x10, 0x05, 0x12, 0x07, 0x0a, 0x03, 0x4a, 0x43, 0x42, 0x10, + 0x06, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_payment_proto_rawDescOnce sync.Once + file_payment_proto_rawDescData = file_payment_proto_rawDesc +) + +func file_payment_proto_rawDescGZIP() []byte { + file_payment_proto_rawDescOnce.Do(func() { + file_payment_proto_rawDescData = protoimpl.X.CompressGZIP(file_payment_proto_rawDescData) + }) + return file_payment_proto_rawDescData +} + +var file_payment_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_payment_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_payment_proto_goTypes = []interface{}{ + (PaymentProvider)(0), // 0: api.payment.PaymentProvider + (PaymentStatus)(0), // 1: api.payment.PaymentStatus + (PaymentMethod)(0), // 2: api.payment.PaymentMethod + (CreditCardType)(0), // 3: api.payment.CreditCardType + (*Payment)(nil), // 4: api.payment.Payment + (*CreditCard)(nil), // 5: api.payment.CreditCard + (*ListCreditCardsResponse)(nil), // 6: api.payment.ListCreditCardsResponse + (*AddCreditCardRequest)(nil), // 7: api.payment.AddCreditCardRequest + (*AddCreditCardResponse)(nil), // 8: api.payment.AddCreditCardResponse + (*DeleteCreditCardRequest)(nil), // 9: api.payment.DeleteCreditCardRequest + (*Country)(nil), // 10: api.payment.Country + (*ListCountriesResponse)(nil), // 11: api.payment.ListCountriesResponse + (*BillingAddress)(nil), // 12: api.payment.BillingAddress + (*CreateBillingAddressRequest)(nil), // 13: api.payment.CreateBillingAddressRequest + (*ListBillingAddressesResponse)(nil), // 14: api.payment.ListBillingAddressesResponse + (*DeleteBillingAddressRequest)(nil), // 15: api.payment.DeleteBillingAddressRequest + (*Price)(nil), // 16: api.Price + (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp +} +var file_payment_proto_depIdxs = []int32{ + 1, // 0: api.payment.Payment.status:type_name -> api.payment.PaymentStatus + 2, // 1: api.payment.Payment.method:type_name -> api.payment.PaymentMethod + 16, // 2: api.payment.Payment.amount:type_name -> api.Price + 17, // 3: api.payment.Payment.created_at:type_name -> google.protobuf.Timestamp + 3, // 4: api.payment.CreditCard.type:type_name -> api.payment.CreditCardType + 17, // 5: api.payment.CreditCard.created_at:type_name -> google.protobuf.Timestamp + 17, // 6: api.payment.CreditCard.updated_at:type_name -> google.protobuf.Timestamp + 17, // 7: api.payment.CreditCard.expires_at:type_name -> google.protobuf.Timestamp + 5, // 8: api.payment.ListCreditCardsResponse.credit_cards:type_name -> api.payment.CreditCard + 3, // 9: api.payment.AddCreditCardRequest.type:type_name -> api.payment.CreditCardType + 5, // 10: api.payment.AddCreditCardResponse.credit_card:type_name -> api.payment.CreditCard + 10, // 11: api.payment.ListCountriesResponse.countries:type_name -> api.payment.Country + 17, // 12: api.payment.BillingAddress.created_at:type_name -> google.protobuf.Timestamp + 17, // 13: api.payment.BillingAddress.updated_at:type_name -> google.protobuf.Timestamp + 12, // 14: api.payment.ListBillingAddressesResponse.addresses:type_name -> api.payment.BillingAddress + 15, // [15:15] is the sub-list for method output_type + 15, // [15:15] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_payment_proto_init() } +func file_payment_proto_init() { + if File_payment_proto != nil { + return + } + file_generic_proto_init() + if !protoimpl.UnsafeEnabled { + file_payment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Payment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreditCard); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCreditCardsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddCreditCardRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddCreditCardResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteCreditCardRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Country); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCountriesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BillingAddress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateBillingAddressRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBillingAddressesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_payment_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteBillingAddressRequest); 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_payment_proto_rawDesc, + NumEnums: 4, + NumMessages: 12, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_payment_proto_goTypes, + DependencyIndexes: file_payment_proto_depIdxs, + EnumInfos: file_payment_proto_enumTypes, + MessageInfos: file_payment_proto_msgTypes, + }.Build() + File_payment_proto = out.File + file_payment_proto_rawDesc = nil + file_payment_proto_goTypes = nil + file_payment_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/project.pb.go b/pkg/gpcloud/ptypes/project.pb.go new file mode 100644 index 0000000..536d71b --- /dev/null +++ b/pkg/gpcloud/ptypes/project.pb.go @@ -0,0 +1,3246 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: project.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +// Project environment +type ProjectEnvironment int32 + +const ( + ProjectEnvironment_DEVELOPMENT ProjectEnvironment = 0 + ProjectEnvironment_STAGING ProjectEnvironment = 1 + ProjectEnvironment_PRODUCTION ProjectEnvironment = 2 +) + +// Enum value maps for ProjectEnvironment. +var ( + ProjectEnvironment_name = map[int32]string{ + 0: "DEVELOPMENT", + 1: "STAGING", + 2: "PRODUCTION", + } + ProjectEnvironment_value = map[string]int32{ + "DEVELOPMENT": 0, + "STAGING": 1, + "PRODUCTION": 2, + } +) + +func (x ProjectEnvironment) Enum() *ProjectEnvironment { + p := new(ProjectEnvironment) + *p = x + return p +} + +func (x ProjectEnvironment) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectEnvironment) Descriptor() protoreflect.EnumDescriptor { + return file_project_proto_enumTypes[0].Descriptor() +} + +func (ProjectEnvironment) Type() protoreflect.EnumType { + return &file_project_proto_enumTypes[0] +} + +func (x ProjectEnvironment) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectEnvironment.Descriptor instead. +func (ProjectEnvironment) EnumDescriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{0} +} + +type ProjectMember_Role int32 + +const ( + ProjectMember_MEMBER ProjectMember_Role = 0 + ProjectMember_ADMIN ProjectMember_Role = 1 + ProjectMember_OWNER ProjectMember_Role = 2 +) + +// Enum value maps for ProjectMember_Role. +var ( + ProjectMember_Role_name = map[int32]string{ + 0: "MEMBER", + 1: "ADMIN", + 2: "OWNER", + } + ProjectMember_Role_value = map[string]int32{ + "MEMBER": 0, + "ADMIN": 1, + "OWNER": 2, + } +) + +func (x ProjectMember_Role) Enum() *ProjectMember_Role { + p := new(ProjectMember_Role) + *p = x + return p +} + +func (x ProjectMember_Role) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectMember_Role) Descriptor() protoreflect.EnumDescriptor { + return file_project_proto_enumTypes[1].Descriptor() +} + +func (ProjectMember_Role) Type() protoreflect.EnumType { + return &file_project_proto_enumTypes[1] +} + +func (x ProjectMember_Role) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectMember_Role.Descriptor instead. +func (ProjectMember_Role) EnumDescriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{1, 0} +} + +// Project Represents a project +type Project struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project UUID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Project name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Avatar + Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` + // Currency + Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"` + // Project Environment + Environment ProjectEnvironment `protobuf:"varint,6,opt,name=environment,proto3,enum=api.project.ProjectEnvironment" json:"environment,omitempty"` + // Members + Members []*ProjectMember `protobuf:"bytes,7,rep,name=members,proto3" json:"members,omitempty"` + // Linked Credit card + CreditCard *CreditCard `protobuf:"bytes,8,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"` + // Linked Credit card + BillingAddress *BillingAddress `protobuf:"bytes,9,opt,name=billing_address,json=billingAddress,proto3" json:"billing_address,omitempty"` + // Payment method + PaymentMethod PaymentMethod `protobuf:"varint,10,opt,name=payment_method,json=paymentMethod,proto3,enum=api.payment.PaymentMethod" json:"payment_method,omitempty"` + AvailablePaymentMethods []PaymentMethod `protobuf:"varint,11,rep,packed,name=available_payment_methods,json=availablePaymentMethods,proto3,enum=api.payment.PaymentMethod" json:"available_payment_methods,omitempty"` + // If user needs payment + Payment bool `protobuf:"varint,12,opt,name=payment,proto3" json:"payment,omitempty"` + // Project timestamps + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *Project) Reset() { + *x = Project{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Project) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Project) ProtoMessage() {} + +func (x *Project) ProtoReflect() protoreflect.Message { + mi := &file_project_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 Project.ProtoReflect.Descriptor instead. +func (*Project) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{0} +} + +func (x *Project) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Project) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Project) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Project) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +func (x *Project) GetCurrency() string { + if x != nil { + return x.Currency + } + return "" +} + +func (x *Project) GetEnvironment() ProjectEnvironment { + if x != nil { + return x.Environment + } + return ProjectEnvironment_DEVELOPMENT +} + +func (x *Project) GetMembers() []*ProjectMember { + if x != nil { + return x.Members + } + return nil +} + +func (x *Project) GetCreditCard() *CreditCard { + if x != nil { + return x.CreditCard + } + return nil +} + +func (x *Project) GetBillingAddress() *BillingAddress { + if x != nil { + return x.BillingAddress + } + return nil +} + +func (x *Project) GetPaymentMethod() PaymentMethod { + if x != nil { + return x.PaymentMethod + } + return PaymentMethod_CREDIT_CARD +} + +func (x *Project) GetAvailablePaymentMethods() []PaymentMethod { + if x != nil { + return x.AvailablePaymentMethods + } + return nil +} + +func (x *Project) GetPayment() bool { + if x != nil { + return x.Payment + } + return false +} + +func (x *Project) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Project) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type ProjectMember struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *ProjectMember_User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + Role ProjectMember_Role `protobuf:"varint,2,opt,name=role,proto3,enum=api.project.ProjectMember_Role" json:"role,omitempty"` + Confirmed bool `protobuf:"varint,3,opt,name=confirmed,proto3" json:"confirmed,omitempty"` + Default bool `protobuf:"varint,4,opt,name=default,proto3" json:"default,omitempty"` + AddedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=added_at,json=addedAt,proto3" json:"added_at,omitempty"` +} + +func (x *ProjectMember) Reset() { + *x = ProjectMember{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectMember) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectMember) ProtoMessage() {} + +func (x *ProjectMember) ProtoReflect() protoreflect.Message { + mi := &file_project_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 ProjectMember.ProtoReflect.Descriptor instead. +func (*ProjectMember) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{1} +} + +func (x *ProjectMember) GetUser() *ProjectMember_User { + if x != nil { + return x.User + } + return nil +} + +func (x *ProjectMember) GetRole() ProjectMember_Role { + if x != nil { + return x.Role + } + return ProjectMember_MEMBER +} + +func (x *ProjectMember) GetConfirmed() bool { + if x != nil { + return x.Confirmed + } + return false +} + +func (x *ProjectMember) GetDefault() bool { + if x != nil { + return x.Default + } + return false +} + +func (x *ProjectMember) GetAddedAt() *timestamppb.Timestamp { + if x != nil { + return x.AddedAt + } + return nil +} + +// ProjectLog Represents a log entry for a specific project +type ProjectLog struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project UUID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User + User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + // Log message + Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` + // Log timestamps + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *ProjectLog) Reset() { + *x = ProjectLog{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectLog) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectLog) ProtoMessage() {} + +func (x *ProjectLog) ProtoReflect() protoreflect.Message { + mi := &file_project_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 ProjectLog.ProtoReflect.Descriptor instead. +func (*ProjectLog) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{2} +} + +func (x *ProjectLog) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ProjectLog) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +func (x *ProjectLog) GetLog() string { + if x != nil { + return x.Log + } + return "" +} + +func (x *ProjectLog) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *ProjectLog) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type ProjectInvite struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project ID of invite + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Project Name of invite + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Project Avatar of invite + Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` + // When the invite was created + AddedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=added_at,json=addedAt,proto3" json:"added_at,omitempty"` +} + +func (x *ProjectInvite) Reset() { + *x = ProjectInvite{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectInvite) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectInvite) ProtoMessage() {} + +func (x *ProjectInvite) ProtoReflect() protoreflect.Message { + mi := &file_project_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 ProjectInvite.ProtoReflect.Descriptor instead. +func (*ProjectInvite) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{3} +} + +func (x *ProjectInvite) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ProjectInvite) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ProjectInvite) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +func (x *ProjectInvite) GetAddedAt() *timestamppb.Timestamp { + if x != nil { + return x.AddedAt + } + return nil +} + +type ListProjectsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` + Invites []*ProjectInvite `protobuf:"bytes,2,rep,name=invites,proto3" json:"invites,omitempty"` +} + +func (x *ListProjectsResponse) Reset() { + *x = ListProjectsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectsResponse) ProtoMessage() {} + +func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message { + mi := &file_project_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 ListProjectsResponse.ProtoReflect.Descriptor instead. +func (*ListProjectsResponse) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{4} +} + +func (x *ListProjectsResponse) GetProjects() []*Project { + if x != nil { + return x.Projects + } + return nil +} + +func (x *ListProjectsResponse) GetInvites() []*ProjectInvite { + if x != nil { + return x.Invites + } + return nil +} + +type CreateProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Description + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + // Environment + Environment ProjectEnvironment `protobuf:"varint,3,opt,name=environment,proto3,enum=api.project.ProjectEnvironment" json:"environment,omitempty"` +} + +func (x *CreateProjectRequest) Reset() { + *x = CreateProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateProjectRequest) ProtoMessage() {} + +func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_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 CreateProjectRequest.ProtoReflect.Descriptor instead. +func (*CreateProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{5} +} + +func (x *CreateProjectRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateProjectRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateProjectRequest) GetEnvironment() ProjectEnvironment { + if x != nil { + return x.Environment + } + return ProjectEnvironment_DEVELOPMENT +} + +type UpdateProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project ID + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // Name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Description + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Environment + Environment ProjectEnvironment `protobuf:"varint,4,opt,name=environment,proto3,enum=api.project.ProjectEnvironment" json:"environment,omitempty"` + // Credit Card ID + CreditCardId string `protobuf:"bytes,5,opt,name=credit_card_id,json=creditCardId,proto3" json:"credit_card_id,omitempty"` + // Billing Address ID + BillingAddressId string `protobuf:"bytes,6,opt,name=billing_address_id,json=billingAddressId,proto3" json:"billing_address_id,omitempty"` + // Payment method + PaymentMethod PaymentMethod `protobuf:"varint,7,opt,name=payment_method,json=paymentMethod,proto3,enum=api.payment.PaymentMethod" json:"payment_method,omitempty"` +} + +func (x *UpdateProjectRequest) Reset() { + *x = UpdateProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateProjectRequest) ProtoMessage() {} + +func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[6] + 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 UpdateProjectRequest.ProtoReflect.Descriptor instead. +func (*UpdateProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{6} +} + +func (x *UpdateProjectRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *UpdateProjectRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UpdateProjectRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *UpdateProjectRequest) GetEnvironment() ProjectEnvironment { + if x != nil { + return x.Environment + } + return ProjectEnvironment_DEVELOPMENT +} + +func (x *UpdateProjectRequest) GetCreditCardId() string { + if x != nil { + return x.CreditCardId + } + return "" +} + +func (x *UpdateProjectRequest) GetBillingAddressId() string { + if x != nil { + return x.BillingAddressId + } + return "" +} + +func (x *UpdateProjectRequest) GetPaymentMethod() PaymentMethod { + if x != nil { + return x.PaymentMethod + } + return PaymentMethod_CREDIT_CARD +} + +type ChangeDefaultProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *ChangeDefaultProjectRequest) Reset() { + *x = ChangeDefaultProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeDefaultProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeDefaultProjectRequest) ProtoMessage() {} + +func (x *ChangeDefaultProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[7] + 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 ChangeDefaultProjectRequest.ProtoReflect.Descriptor instead. +func (*ChangeDefaultProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{7} +} + +func (x *ChangeDefaultProjectRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type GetProjectTrafficRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *GetProjectTrafficRequest) Reset() { + *x = GetProjectTrafficRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectTrafficRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectTrafficRequest) ProtoMessage() {} + +func (x *GetProjectTrafficRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[8] + 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 GetProjectTrafficRequest.ProtoReflect.Descriptor instead. +func (*GetProjectTrafficRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{8} +} + +func (x *GetProjectTrafficRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type ProjectTrafficUsage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + BytesSent int64 `protobuf:"varint,2,opt,name=bytes_sent,json=bytesSent,proto3" json:"bytes_sent,omitempty"` +} + +func (x *ProjectTrafficUsage) Reset() { + *x = ProjectTrafficUsage{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectTrafficUsage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectTrafficUsage) ProtoMessage() {} + +func (x *ProjectTrafficUsage) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[9] + 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 ProjectTrafficUsage.ProtoReflect.Descriptor instead. +func (*ProjectTrafficUsage) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{9} +} + +func (x *ProjectTrafficUsage) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *ProjectTrafficUsage) GetBytesSent() int64 { + if x != nil { + return x.BytesSent + } + return 0 +} + +type GetProjectTrafficResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Inclusive bytes amount for outbound traffic + BytesAvailable int64 `protobuf:"varint,1,opt,name=bytes_available,json=bytesAvailable,proto3" json:"bytes_available,omitempty"` + // Traffic usage per IP given in bytes + Usages []*ProjectTrafficUsage `protobuf:"bytes,2,rep,name=usages,proto3" json:"usages,omitempty"` + // Price for each additional GB outbound traffic + AdditionalTrafficPrice *Price `protobuf:"bytes,3,opt,name=additional_traffic_price,json=additionalTrafficPrice,proto3" json:"additional_traffic_price,omitempty"` +} + +func (x *GetProjectTrafficResponse) Reset() { + *x = GetProjectTrafficResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectTrafficResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectTrafficResponse) ProtoMessage() {} + +func (x *GetProjectTrafficResponse) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[10] + 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 GetProjectTrafficResponse.ProtoReflect.Descriptor instead. +func (*GetProjectTrafficResponse) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{10} +} + +func (x *GetProjectTrafficResponse) GetBytesAvailable() int64 { + if x != nil { + return x.BytesAvailable + } + return 0 +} + +func (x *GetProjectTrafficResponse) GetUsages() []*ProjectTrafficUsage { + if x != nil { + return x.Usages + } + return nil +} + +func (x *GetProjectTrafficResponse) GetAdditionalTrafficPrice() *Price { + if x != nil { + return x.AdditionalTrafficPrice + } + return nil +} + +type DeleteProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *DeleteProjectRequest) Reset() { + *x = DeleteProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteProjectRequest) ProtoMessage() {} + +func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[11] + 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 DeleteProjectRequest.ProtoReflect.Descriptor instead. +func (*DeleteProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{11} +} + +func (x *DeleteProjectRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type GetProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *GetProjectRequest) Reset() { + *x = GetProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectRequest) ProtoMessage() {} + +func (x *GetProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[12] + 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 GetProjectRequest.ProtoReflect.Descriptor instead. +func (*GetProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{12} +} + +func (x *GetProjectRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type JoinProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project ID to join + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + // Accept invite or reject + Accept bool `protobuf:"varint,2,opt,name=accept,proto3" json:"accept,omitempty"` +} + +func (x *JoinProjectRequest) Reset() { + *x = JoinProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JoinProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JoinProjectRequest) ProtoMessage() {} + +func (x *JoinProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[13] + 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 JoinProjectRequest.ProtoReflect.Descriptor instead. +func (*JoinProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{13} +} + +func (x *JoinProjectRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *JoinProjectRequest) GetAccept() bool { + if x != nil { + return x.Accept + } + return false +} + +type LeaveProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project ID to join + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *LeaveProjectRequest) Reset() { + *x = LeaveProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LeaveProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LeaveProjectRequest) ProtoMessage() {} + +func (x *LeaveProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[14] + 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 LeaveProjectRequest.ProtoReflect.Descriptor instead. +func (*LeaveProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{14} +} + +func (x *LeaveProjectRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type InviteMemberToProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` +} + +func (x *InviteMemberToProjectRequest) Reset() { + *x = InviteMemberToProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InviteMemberToProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InviteMemberToProjectRequest) ProtoMessage() {} + +func (x *InviteMemberToProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[15] + 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 InviteMemberToProjectRequest.ProtoReflect.Descriptor instead. +func (*InviteMemberToProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{15} +} + +func (x *InviteMemberToProjectRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *InviteMemberToProjectRequest) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +type InviteMemberToProjectResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Member *ProjectMember `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"` +} + +func (x *InviteMemberToProjectResponse) Reset() { + *x = InviteMemberToProjectResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InviteMemberToProjectResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InviteMemberToProjectResponse) ProtoMessage() {} + +func (x *InviteMemberToProjectResponse) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[16] + 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 InviteMemberToProjectResponse.ProtoReflect.Descriptor instead. +func (*InviteMemberToProjectResponse) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{16} +} + +func (x *InviteMemberToProjectResponse) GetMember() *ProjectMember { + if x != nil { + return x.Member + } + return nil +} + +type RemoveMemberFromProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +} + +func (x *RemoveMemberFromProjectRequest) Reset() { + *x = RemoveMemberFromProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveMemberFromProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveMemberFromProjectRequest) ProtoMessage() {} + +func (x *RemoveMemberFromProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[17] + 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 RemoveMemberFromProjectRequest.ProtoReflect.Descriptor instead. +func (*RemoveMemberFromProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{17} +} + +func (x *RemoveMemberFromProjectRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *RemoveMemberFromProjectRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type GetProjectCurrentBillingPreviewPdfRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *GetProjectCurrentBillingPreviewPdfRequest) Reset() { + *x = GetProjectCurrentBillingPreviewPdfRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectCurrentBillingPreviewPdfRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectCurrentBillingPreviewPdfRequest) ProtoMessage() {} + +func (x *GetProjectCurrentBillingPreviewPdfRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[18] + 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 GetProjectCurrentBillingPreviewPdfRequest.ProtoReflect.Descriptor instead. +func (*GetProjectCurrentBillingPreviewPdfRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{18} +} + +func (x *GetProjectCurrentBillingPreviewPdfRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type GetProjectCurrentBillingPreviewPdfResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DownloadUrl string `protobuf:"bytes,1,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"` +} + +func (x *GetProjectCurrentBillingPreviewPdfResponse) Reset() { + *x = GetProjectCurrentBillingPreviewPdfResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectCurrentBillingPreviewPdfResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectCurrentBillingPreviewPdfResponse) ProtoMessage() {} + +func (x *GetProjectCurrentBillingPreviewPdfResponse) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[19] + 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 GetProjectCurrentBillingPreviewPdfResponse.ProtoReflect.Descriptor instead. +func (*GetProjectCurrentBillingPreviewPdfResponse) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{19} +} + +func (x *GetProjectCurrentBillingPreviewPdfResponse) GetDownloadUrl() string { + if x != nil { + return x.DownloadUrl + } + return "" +} + +type GetProjectCurrentBillingPreviewRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *GetProjectCurrentBillingPreviewRequest) Reset() { + *x = GetProjectCurrentBillingPreviewRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectCurrentBillingPreviewRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectCurrentBillingPreviewRequest) ProtoMessage() {} + +func (x *GetProjectCurrentBillingPreviewRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[20] + 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 GetProjectCurrentBillingPreviewRequest.ProtoReflect.Descriptor instead. +func (*GetProjectCurrentBillingPreviewRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{20} +} + +func (x *GetProjectCurrentBillingPreviewRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type GetProjectCurrentBillingPreviewResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bill *Bill `protobuf:"bytes,1,opt,name=bill,proto3" json:"bill,omitempty"` +} + +func (x *GetProjectCurrentBillingPreviewResponse) Reset() { + *x = GetProjectCurrentBillingPreviewResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectCurrentBillingPreviewResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectCurrentBillingPreviewResponse) ProtoMessage() {} + +func (x *GetProjectCurrentBillingPreviewResponse) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[21] + 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 GetProjectCurrentBillingPreviewResponse.ProtoReflect.Descriptor instead. +func (*GetProjectCurrentBillingPreviewResponse) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{21} +} + +func (x *GetProjectCurrentBillingPreviewResponse) GetBill() *Bill { + if x != nil { + return x.Bill + } + return nil +} + +type OutstandingBalance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Amount *Price `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + Project *Project `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` +} + +func (x *OutstandingBalance) Reset() { + *x = OutstandingBalance{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OutstandingBalance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OutstandingBalance) ProtoMessage() {} + +func (x *OutstandingBalance) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[22] + 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 OutstandingBalance.ProtoReflect.Descriptor instead. +func (*OutstandingBalance) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{22} +} + +func (x *OutstandingBalance) GetAmount() *Price { + if x != nil { + return x.Amount + } + return nil +} + +func (x *OutstandingBalance) GetProject() *Project { + if x != nil { + return x.Project + } + return nil +} + +type GetProjectsOutstandingBalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Balances []*OutstandingBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` + Total *Price `protobuf:"bytes,2,opt,name=total,proto3" json:"total,omitempty"` +} + +func (x *GetProjectsOutstandingBalanceResponse) Reset() { + *x = GetProjectsOutstandingBalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectsOutstandingBalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectsOutstandingBalanceResponse) ProtoMessage() {} + +func (x *GetProjectsOutstandingBalanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[23] + 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 GetProjectsOutstandingBalanceResponse.ProtoReflect.Descriptor instead. +func (*GetProjectsOutstandingBalanceResponse) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{23} +} + +func (x *GetProjectsOutstandingBalanceResponse) GetBalances() []*OutstandingBalance { + if x != nil { + return x.Balances + } + return nil +} + +func (x *GetProjectsOutstandingBalanceResponse) GetTotal() *Price { + if x != nil { + return x.Total + } + return nil +} + +type GetProjectBillsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Year int32 `protobuf:"varint,2,opt,name=year,proto3" json:"year,omitempty"` +} + +func (x *GetProjectBillsRequest) Reset() { + *x = GetProjectBillsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectBillsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectBillsRequest) ProtoMessage() {} + +func (x *GetProjectBillsRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[24] + 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 GetProjectBillsRequest.ProtoReflect.Descriptor instead. +func (*GetProjectBillsRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{24} +} + +func (x *GetProjectBillsRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *GetProjectBillsRequest) GetYear() int32 { + if x != nil { + return x.Year + } + return 0 +} + +type GetProjectBillsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // List of bills + Bills []*Bill `protobuf:"bytes,1,rep,name=bills,proto3" json:"bills,omitempty"` + // in which year we also have bills + Years []int32 `protobuf:"varint,2,rep,packed,name=years,proto3" json:"years,omitempty"` +} + +func (x *GetProjectBillsResponse) Reset() { + *x = GetProjectBillsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectBillsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectBillsResponse) ProtoMessage() {} + +func (x *GetProjectBillsResponse) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[25] + 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 GetProjectBillsResponse.ProtoReflect.Descriptor instead. +func (*GetProjectBillsResponse) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{25} +} + +func (x *GetProjectBillsResponse) GetBills() []*Bill { + if x != nil { + return x.Bills + } + return nil +} + +func (x *GetProjectBillsResponse) GetYears() []int32 { + if x != nil { + return x.Years + } + return nil +} + +type GetProjectBillPdfRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + BillId string `protobuf:"bytes,2,opt,name=bill_id,json=billId,proto3" json:"bill_id,omitempty"` +} + +func (x *GetProjectBillPdfRequest) Reset() { + *x = GetProjectBillPdfRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectBillPdfRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectBillPdfRequest) ProtoMessage() {} + +func (x *GetProjectBillPdfRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[26] + 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 GetProjectBillPdfRequest.ProtoReflect.Descriptor instead. +func (*GetProjectBillPdfRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{26} +} + +func (x *GetProjectBillPdfRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *GetProjectBillPdfRequest) GetBillId() string { + if x != nil { + return x.BillId + } + return "" +} + +type GetProjectBillPdfResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DownloadUrl string `protobuf:"bytes,1,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"` +} + +func (x *GetProjectBillPdfResponse) Reset() { + *x = GetProjectBillPdfResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectBillPdfResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectBillPdfResponse) ProtoMessage() {} + +func (x *GetProjectBillPdfResponse) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[27] + 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 GetProjectBillPdfResponse.ProtoReflect.Descriptor instead. +func (*GetProjectBillPdfResponse) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{27} +} + +func (x *GetProjectBillPdfResponse) GetDownloadUrl() string { + if x != nil { + return x.DownloadUrl + } + return "" +} + +type GetProjectLogsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` + // optional + Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"` + // optional + UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +} + +func (x *GetProjectLogsRequest) Reset() { + *x = GetProjectLogsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectLogsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectLogsRequest) ProtoMessage() {} + +func (x *GetProjectLogsRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[28] + 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 GetProjectLogsRequest.ProtoReflect.Descriptor instead. +func (*GetProjectLogsRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{28} +} + +func (x *GetProjectLogsRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *GetProjectLogsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *GetProjectLogsRequest) GetSearch() string { + if x != nil { + return x.Search + } + return "" +} + +func (x *GetProjectLogsRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type GetProjectLogsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // All log items for page + Logs []*ProjectLog `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` + // Number of pages available + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *GetProjectLogsResponse) Reset() { + *x = GetProjectLogsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectLogsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectLogsResponse) ProtoMessage() {} + +func (x *GetProjectLogsResponse) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[29] + 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 GetProjectLogsResponse.ProtoReflect.Descriptor instead. +func (*GetProjectLogsResponse) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{29} +} + +func (x *GetProjectLogsResponse) GetLogs() []*ProjectLog { + if x != nil { + return x.Logs + } + return nil +} + +func (x *GetProjectLogsResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type ListProjectSSHKeysRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *ListProjectSSHKeysRequest) Reset() { + *x = ListProjectSSHKeysRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectSSHKeysRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectSSHKeysRequest) ProtoMessage() {} + +func (x *ListProjectSSHKeysRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[30] + 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 ListProjectSSHKeysRequest.ProtoReflect.Descriptor instead. +func (*ListProjectSSHKeysRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{30} +} + +func (x *ListProjectSSHKeysRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type ProjectSSHKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SshKey *SSHKey `protobuf:"bytes,1,opt,name=ssh_key,json=sshKey,proto3" json:"ssh_key,omitempty"` + User *ProjectSSHKey_User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *ProjectSSHKey) Reset() { + *x = ProjectSSHKey{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectSSHKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectSSHKey) ProtoMessage() {} + +func (x *ProjectSSHKey) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[31] + 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 ProjectSSHKey.ProtoReflect.Descriptor instead. +func (*ProjectSSHKey) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{31} +} + +func (x *ProjectSSHKey) GetSshKey() *SSHKey { + if x != nil { + return x.SshKey + } + return nil +} + +func (x *ProjectSSHKey) GetUser() *ProjectSSHKey_User { + if x != nil { + return x.User + } + return nil +} + +type ListProjectSSHKeysResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Keys []*ProjectSSHKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` +} + +func (x *ListProjectSSHKeysResponse) Reset() { + *x = ListProjectSSHKeysResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectSSHKeysResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectSSHKeysResponse) ProtoMessage() {} + +func (x *ListProjectSSHKeysResponse) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[32] + 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 ListProjectSSHKeysResponse.ProtoReflect.Descriptor instead. +func (*ListProjectSSHKeysResponse) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{32} +} + +func (x *ListProjectSSHKeysResponse) GetKeys() []*ProjectSSHKey { + if x != nil { + return x.Keys + } + return nil +} + +type PayProjectNowRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *PayProjectNowRequest) Reset() { + *x = PayProjectNowRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PayProjectNowRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PayProjectNowRequest) ProtoMessage() {} + +func (x *PayProjectNowRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[33] + 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 PayProjectNowRequest.ProtoReflect.Descriptor instead. +func (*PayProjectNowRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{33} +} + +func (x *PayProjectNowRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type ProjectMember_User struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` +} + +func (x *ProjectMember_User) Reset() { + *x = ProjectMember_User{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectMember_User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectMember_User) ProtoMessage() {} + +func (x *ProjectMember_User) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[34] + 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 ProjectMember_User.ProtoReflect.Descriptor instead. +func (*ProjectMember_User) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{1, 0} +} + +func (x *ProjectMember_User) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ProjectMember_User) GetFullName() string { + if x != nil { + return x.FullName + } + return "" +} + +func (x *ProjectMember_User) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *ProjectMember_User) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +type ListProjectsResponse_Invite struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project ID of invite + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Project Name of invite + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // When the invite was created + AddedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=added_at,json=addedAt,proto3" json:"added_at,omitempty"` +} + +func (x *ListProjectsResponse_Invite) Reset() { + *x = ListProjectsResponse_Invite{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectsResponse_Invite) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectsResponse_Invite) ProtoMessage() {} + +func (x *ListProjectsResponse_Invite) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[35] + 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 ListProjectsResponse_Invite.ProtoReflect.Descriptor instead. +func (*ListProjectsResponse_Invite) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *ListProjectsResponse_Invite) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ListProjectsResponse_Invite) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ListProjectsResponse_Invite) GetAddedAt() *timestamppb.Timestamp { + if x != nil { + return x.AddedAt + } + return nil +} + +type ProjectSSHKey_User struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` +} + +func (x *ProjectSSHKey_User) Reset() { + *x = ProjectSSHKey_User{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectSSHKey_User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectSSHKey_User) ProtoMessage() {} + +func (x *ProjectSSHKey_User) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[36] + 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 ProjectSSHKey_User.ProtoReflect.Descriptor instead. +func (*ProjectSSHKey_User) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{31, 0} +} + +func (x *ProjectSSHKey_User) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ProjectSSHKey_User) GetFullName() string { + if x != nil { + return x.FullName + } + return "" +} + +func (x *ProjectSSHKey_User) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *ProjectSSHKey_User) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +var File_project_proto protoreflect.FileDescriptor + +var file_project_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa7, 0x05, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, + 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, + 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x41, 0x0a, 0x0b, + 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, + 0x34, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x38, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, + 0x63, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, + 0x61, 0x72, 0x64, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x12, + 0x44, 0x0a, 0x0f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, + 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, + 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x6d, + 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x56, 0x0a, 0x19, 0x61, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, + 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x17, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, + 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x22, 0xf5, 0x02, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x61, 0x64, 0x64, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x07, 0x61, 0x64, 0x64, 0x65, 0x64, 0x41, 0x74, 0x1a, 0x61, 0x0a, 0x04, 0x55, + 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x22, 0x28, + 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, + 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x09, 0x0a, + 0x05, 0x4f, 0x57, 0x4e, 0x45, 0x52, 0x10, 0x02, 0x22, 0xc8, 0x01, 0x0a, 0x0a, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x22, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6c, + 0x6f, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x39, 0x0a, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x22, 0x82, 0x01, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, + 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, + 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, + 0x72, 0x12, 0x35, 0x0a, 0x08, 0x61, 0x64, 0x64, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x65, 0x64, 0x41, 0x74, 0x22, 0xe3, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, + 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, + 0x52, 0x07, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x73, 0x1a, 0x63, 0x0a, 0x06, 0x49, 0x6e, 0x76, + 0x69, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x61, 0x64, 0x64, 0x65, 0x64, + 0x5f, 0x61, 0x74, 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, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x61, 0x64, 0x64, 0x65, 0x64, 0x41, 0x74, 0x22, 0x8f, + 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, + 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x22, 0xc5, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, + 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, + 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, + 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x63, 0x61, 0x72, 0x64, + 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x43, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x62, 0x69, 0x6c, 0x6c, 0x69, + 0x6e, 0x67, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x10, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, + 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x6d, + 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0x3c, 0x0a, 0x1b, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x39, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, + 0x64, 0x22, 0x44, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x72, 0x61, 0x66, + 0x66, 0x69, 0x63, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x79, 0x74, 0x65, + 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x79, + 0x74, 0x65, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x22, 0xc4, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x61, + 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x38, + 0x0a, 0x06, 0x75, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x55, 0x73, 0x61, 0x67, 0x65, + 0x52, 0x06, 0x75, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x18, 0x61, 0x64, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x16, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0x35, + 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x32, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x4b, 0x0a, 0x12, 0x4a, 0x6f, 0x69, + 0x6e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, + 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x22, 0x34, 0x0a, 0x13, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x53, 0x0a, 0x1c, + 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x54, 0x6f, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, + 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x22, 0x53, 0x0a, 0x1d, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x54, 0x6f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x06, + 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x58, 0x0a, 0x1e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x22, 0x4a, 0x0a, 0x29, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x76, + 0x69, 0x65, 0x77, 0x50, 0x64, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x2a, + 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, + 0x64, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x22, 0x47, 0x0a, + 0x26, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x50, 0x0a, 0x27, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x69, + 0x6e, 0x67, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x25, 0x0a, 0x04, 0x62, 0x69, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x42, 0x69, + 0x6c, 0x6c, 0x52, 0x04, 0x62, 0x69, 0x6c, 0x6c, 0x22, 0x68, 0x0a, 0x12, 0x4f, 0x75, 0x74, 0x73, + 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, + 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x22, 0x86, 0x01, 0x0a, 0x25, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x08, + 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x4f, 0x75, 0x74, + 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x05, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x4b, 0x0a, 0x16, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, 0x22, 0x58, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, + 0x2e, 0x42, 0x69, 0x6c, 0x6c, 0x52, 0x05, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, + 0x79, 0x65, 0x61, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x79, 0x65, 0x61, + 0x72, 0x73, 0x22, 0x52, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x64, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, + 0x07, 0x62, 0x69, 0x6c, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x62, 0x69, 0x6c, 0x6c, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x64, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, + 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x6c, + 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x22, 0x7b, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, + 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x22, 0x66, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, + 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, + 0x67, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x3a, 0x0a, 0x19, 0x4c, + 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0xd6, 0x01, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x73, 0x68, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, + 0x52, 0x06, 0x73, 0x73, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x33, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x53, 0x48, 0x4b, + 0x65, 0x79, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x1a, 0x61, 0x0a, + 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, + 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, + 0x22, 0x4c, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, + 0x53, 0x48, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, + 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x35, + 0x0a, 0x14, 0x50, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x6f, 0x77, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x49, 0x64, 0x2a, 0x42, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0f, 0x0a, 0x0b, 0x44, + 0x45, 0x56, 0x45, 0x4c, 0x4f, 0x50, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, + 0x53, 0x54, 0x41, 0x47, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x52, 0x4f, + 0x44, 0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_project_proto_rawDescOnce sync.Once + file_project_proto_rawDescData = file_project_proto_rawDesc +) + +func file_project_proto_rawDescGZIP() []byte { + file_project_proto_rawDescOnce.Do(func() { + file_project_proto_rawDescData = protoimpl.X.CompressGZIP(file_project_proto_rawDescData) + }) + return file_project_proto_rawDescData +} + +var file_project_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_project_proto_msgTypes = make([]protoimpl.MessageInfo, 37) +var file_project_proto_goTypes = []interface{}{ + (ProjectEnvironment)(0), // 0: api.project.ProjectEnvironment + (ProjectMember_Role)(0), // 1: api.project.ProjectMember.Role + (*Project)(nil), // 2: api.project.Project + (*ProjectMember)(nil), // 3: api.project.ProjectMember + (*ProjectLog)(nil), // 4: api.project.ProjectLog + (*ProjectInvite)(nil), // 5: api.project.ProjectInvite + (*ListProjectsResponse)(nil), // 6: api.project.ListProjectsResponse + (*CreateProjectRequest)(nil), // 7: api.project.CreateProjectRequest + (*UpdateProjectRequest)(nil), // 8: api.project.UpdateProjectRequest + (*ChangeDefaultProjectRequest)(nil), // 9: api.project.ChangeDefaultProjectRequest + (*GetProjectTrafficRequest)(nil), // 10: api.project.GetProjectTrafficRequest + (*ProjectTrafficUsage)(nil), // 11: api.project.ProjectTrafficUsage + (*GetProjectTrafficResponse)(nil), // 12: api.project.GetProjectTrafficResponse + (*DeleteProjectRequest)(nil), // 13: api.project.DeleteProjectRequest + (*GetProjectRequest)(nil), // 14: api.project.GetProjectRequest + (*JoinProjectRequest)(nil), // 15: api.project.JoinProjectRequest + (*LeaveProjectRequest)(nil), // 16: api.project.LeaveProjectRequest + (*InviteMemberToProjectRequest)(nil), // 17: api.project.InviteMemberToProjectRequest + (*InviteMemberToProjectResponse)(nil), // 18: api.project.InviteMemberToProjectResponse + (*RemoveMemberFromProjectRequest)(nil), // 19: api.project.RemoveMemberFromProjectRequest + (*GetProjectCurrentBillingPreviewPdfRequest)(nil), // 20: api.project.GetProjectCurrentBillingPreviewPdfRequest + (*GetProjectCurrentBillingPreviewPdfResponse)(nil), // 21: api.project.GetProjectCurrentBillingPreviewPdfResponse + (*GetProjectCurrentBillingPreviewRequest)(nil), // 22: api.project.GetProjectCurrentBillingPreviewRequest + (*GetProjectCurrentBillingPreviewResponse)(nil), // 23: api.project.GetProjectCurrentBillingPreviewResponse + (*OutstandingBalance)(nil), // 24: api.project.OutstandingBalance + (*GetProjectsOutstandingBalanceResponse)(nil), // 25: api.project.GetProjectsOutstandingBalanceResponse + (*GetProjectBillsRequest)(nil), // 26: api.project.GetProjectBillsRequest + (*GetProjectBillsResponse)(nil), // 27: api.project.GetProjectBillsResponse + (*GetProjectBillPdfRequest)(nil), // 28: api.project.GetProjectBillPdfRequest + (*GetProjectBillPdfResponse)(nil), // 29: api.project.GetProjectBillPdfResponse + (*GetProjectLogsRequest)(nil), // 30: api.project.GetProjectLogsRequest + (*GetProjectLogsResponse)(nil), // 31: api.project.GetProjectLogsResponse + (*ListProjectSSHKeysRequest)(nil), // 32: api.project.ListProjectSSHKeysRequest + (*ProjectSSHKey)(nil), // 33: api.project.ProjectSSHKey + (*ListProjectSSHKeysResponse)(nil), // 34: api.project.ListProjectSSHKeysResponse + (*PayProjectNowRequest)(nil), // 35: api.project.PayProjectNowRequest + (*ProjectMember_User)(nil), // 36: api.project.ProjectMember.User + (*ListProjectsResponse_Invite)(nil), // 37: api.project.ListProjectsResponse.Invite + (*ProjectSSHKey_User)(nil), // 38: api.project.ProjectSSHKey.User + (*CreditCard)(nil), // 39: api.payment.CreditCard + (*BillingAddress)(nil), // 40: api.payment.BillingAddress + (PaymentMethod)(0), // 41: api.payment.PaymentMethod + (*timestamppb.Timestamp)(nil), // 42: google.protobuf.Timestamp + (*User)(nil), // 43: api.user.User + (*Price)(nil), // 44: api.Price + (*Bill)(nil), // 45: api.billing.Bill + (*SSHKey)(nil), // 46: api.security.SSHKey +} +var file_project_proto_depIdxs = []int32{ + 0, // 0: api.project.Project.environment:type_name -> api.project.ProjectEnvironment + 3, // 1: api.project.Project.members:type_name -> api.project.ProjectMember + 39, // 2: api.project.Project.credit_card:type_name -> api.payment.CreditCard + 40, // 3: api.project.Project.billing_address:type_name -> api.payment.BillingAddress + 41, // 4: api.project.Project.payment_method:type_name -> api.payment.PaymentMethod + 41, // 5: api.project.Project.available_payment_methods:type_name -> api.payment.PaymentMethod + 42, // 6: api.project.Project.created_at:type_name -> google.protobuf.Timestamp + 42, // 7: api.project.Project.updated_at:type_name -> google.protobuf.Timestamp + 36, // 8: api.project.ProjectMember.user:type_name -> api.project.ProjectMember.User + 1, // 9: api.project.ProjectMember.role:type_name -> api.project.ProjectMember.Role + 42, // 10: api.project.ProjectMember.added_at:type_name -> google.protobuf.Timestamp + 43, // 11: api.project.ProjectLog.user:type_name -> api.user.User + 42, // 12: api.project.ProjectLog.created_at:type_name -> google.protobuf.Timestamp + 42, // 13: api.project.ProjectLog.updated_at:type_name -> google.protobuf.Timestamp + 42, // 14: api.project.ProjectInvite.added_at:type_name -> google.protobuf.Timestamp + 2, // 15: api.project.ListProjectsResponse.projects:type_name -> api.project.Project + 5, // 16: api.project.ListProjectsResponse.invites:type_name -> api.project.ProjectInvite + 0, // 17: api.project.CreateProjectRequest.environment:type_name -> api.project.ProjectEnvironment + 0, // 18: api.project.UpdateProjectRequest.environment:type_name -> api.project.ProjectEnvironment + 41, // 19: api.project.UpdateProjectRequest.payment_method:type_name -> api.payment.PaymentMethod + 11, // 20: api.project.GetProjectTrafficResponse.usages:type_name -> api.project.ProjectTrafficUsage + 44, // 21: api.project.GetProjectTrafficResponse.additional_traffic_price:type_name -> api.Price + 3, // 22: api.project.InviteMemberToProjectResponse.member:type_name -> api.project.ProjectMember + 45, // 23: api.project.GetProjectCurrentBillingPreviewResponse.bill:type_name -> api.billing.Bill + 44, // 24: api.project.OutstandingBalance.amount:type_name -> api.Price + 2, // 25: api.project.OutstandingBalance.project:type_name -> api.project.Project + 24, // 26: api.project.GetProjectsOutstandingBalanceResponse.balances:type_name -> api.project.OutstandingBalance + 44, // 27: api.project.GetProjectsOutstandingBalanceResponse.total:type_name -> api.Price + 45, // 28: api.project.GetProjectBillsResponse.bills:type_name -> api.billing.Bill + 4, // 29: api.project.GetProjectLogsResponse.logs:type_name -> api.project.ProjectLog + 46, // 30: api.project.ProjectSSHKey.ssh_key:type_name -> api.security.SSHKey + 38, // 31: api.project.ProjectSSHKey.user:type_name -> api.project.ProjectSSHKey.User + 33, // 32: api.project.ListProjectSSHKeysResponse.keys:type_name -> api.project.ProjectSSHKey + 42, // 33: api.project.ListProjectsResponse.Invite.added_at:type_name -> google.protobuf.Timestamp + 34, // [34:34] is the sub-list for method output_type + 34, // [34:34] is the sub-list for method input_type + 34, // [34:34] is the sub-list for extension type_name + 34, // [34:34] is the sub-list for extension extendee + 0, // [0:34] is the sub-list for field type_name +} + +func init() { file_project_proto_init() } +func file_project_proto_init() { + if File_project_proto != nil { + return + } + file_user_proto_init() + file_payment_proto_init() + file_billing_proto_init() + file_generic_proto_init() + file_security_proto_init() + if !protoimpl.UnsafeEnabled { + file_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Project); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectMember); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectLog); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectInvite); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChangeDefaultProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectTrafficRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectTrafficUsage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectTrafficResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JoinProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LeaveProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InviteMemberToProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InviteMemberToProjectResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveMemberFromProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectCurrentBillingPreviewPdfRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectCurrentBillingPreviewPdfResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectCurrentBillingPreviewRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectCurrentBillingPreviewResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutstandingBalance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectsOutstandingBalanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectBillsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectBillsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectBillPdfRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectBillPdfResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectLogsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectLogsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectSSHKeysRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectSSHKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectSSHKeysResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PayProjectNowRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectMember_User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectsResponse_Invite); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectSSHKey_User); 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_project_proto_rawDesc, + NumEnums: 2, + NumMessages: 37, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_project_proto_goTypes, + DependencyIndexes: file_project_proto_depIdxs, + EnumInfos: file_project_proto_enumTypes, + MessageInfos: file_project_proto_msgTypes, + }.Build() + File_project_proto = out.File + file_project_proto_rawDesc = nil + file_project_proto_goTypes = nil + file_project_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/region.pb.go b/pkg/gpcloud/ptypes/region.pb.go new file mode 100644 index 0000000..665fa59 --- /dev/null +++ b/pkg/gpcloud/ptypes/region.pb.go @@ -0,0 +1,1039 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: region.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type DataCenterStatus int32 + +const ( + DataCenterStatus_AVAILABLE DataCenterStatus = 0 + DataCenterStatus_COMING_SOON DataCenterStatus = 1 + DataCenterStatus_DISABLED DataCenterStatus = 2 +) + +// Enum value maps for DataCenterStatus. +var ( + DataCenterStatus_name = map[int32]string{ + 0: "AVAILABLE", + 1: "COMING_SOON", + 2: "DISABLED", + } + DataCenterStatus_value = map[string]int32{ + "AVAILABLE": 0, + "COMING_SOON": 1, + "DISABLED": 2, + } +) + +func (x DataCenterStatus) Enum() *DataCenterStatus { + p := new(DataCenterStatus) + *p = x + return p +} + +func (x DataCenterStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DataCenterStatus) Descriptor() protoreflect.EnumDescriptor { + return file_region_proto_enumTypes[0].Descriptor() +} + +func (DataCenterStatus) Type() protoreflect.EnumType { + return &file_region_proto_enumTypes[0] +} + +func (x DataCenterStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DataCenterStatus.Descriptor instead. +func (DataCenterStatus) EnumDescriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{0} +} + +type DataCenter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Datacenter ID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Datacenter name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Datacenter name + Short string `protobuf:"bytes,3,opt,name=short,proto3" json:"short,omitempty"` + ServerPrefix string `protobuf:"bytes,4,opt,name=server_prefix,json=serverPrefix,proto3" json:"server_prefix,omitempty"` + // DataCenter Region + Region *Region `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"` + // DataCenter status + Status DataCenterStatus `protobuf:"varint,6,opt,name=status,proto3,enum=api.region.DataCenterStatus" json:"status,omitempty"` +} + +func (x *DataCenter) Reset() { + *x = DataCenter{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DataCenter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DataCenter) ProtoMessage() {} + +func (x *DataCenter) ProtoReflect() protoreflect.Message { + mi := &file_region_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 DataCenter.ProtoReflect.Descriptor instead. +func (*DataCenter) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{0} +} + +func (x *DataCenter) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *DataCenter) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *DataCenter) GetShort() string { + if x != nil { + return x.Short + } + return "" +} + +func (x *DataCenter) GetServerPrefix() string { + if x != nil { + return x.ServerPrefix + } + return "" +} + +func (x *DataCenter) GetRegion() *Region { + if x != nil { + return x.Region + } + return nil +} + +func (x *DataCenter) GetStatus() DataCenterStatus { + if x != nil { + return x.Status + } + return DataCenterStatus_AVAILABLE +} + +// Region Represents a region +type Region struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Region ID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Region name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Country code ISO 3166-1 alpha-2 + CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` + Datacenters []*DataCenter `protobuf:"bytes,4,rep,name=datacenters,proto3" json:"datacenters,omitempty"` +} + +func (x *Region) Reset() { + *x = Region{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Region) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Region) ProtoMessage() {} + +func (x *Region) ProtoReflect() protoreflect.Message { + mi := &file_region_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 Region.ProtoReflect.Descriptor instead. +func (*Region) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{1} +} + +func (x *Region) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Region) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Region) GetCountryCode() string { + if x != nil { + return x.CountryCode + } + return "" +} + +func (x *Region) GetDatacenters() []*DataCenter { + if x != nil { + return x.Datacenters + } + return nil +} + +type ListDataCenterResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Datacenters []*DataCenter `protobuf:"bytes,1,rep,name=datacenters,proto3" json:"datacenters,omitempty"` +} + +func (x *ListDataCenterResponse) Reset() { + *x = ListDataCenterResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListDataCenterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDataCenterResponse) ProtoMessage() {} + +func (x *ListDataCenterResponse) ProtoReflect() protoreflect.Message { + mi := &file_region_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 ListDataCenterResponse.ProtoReflect.Descriptor instead. +func (*ListDataCenterResponse) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{2} +} + +func (x *ListDataCenterResponse) GetDatacenters() []*DataCenter { + if x != nil { + return x.Datacenters + } + return nil +} + +type AdminListRegionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Regions []*Region `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` +} + +func (x *AdminListRegionsResponse) Reset() { + *x = AdminListRegionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListRegionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListRegionsResponse) ProtoMessage() {} + +func (x *AdminListRegionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_region_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 AdminListRegionsResponse.ProtoReflect.Descriptor instead. +func (*AdminListRegionsResponse) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{3} +} + +func (x *AdminListRegionsResponse) GetRegions() []*Region { + if x != nil { + return x.Regions + } + return nil +} + +type AdminCreateRegionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + CountryCode string `protobuf:"bytes,2,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` +} + +func (x *AdminCreateRegionRequest) Reset() { + *x = AdminCreateRegionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateRegionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateRegionRequest) ProtoMessage() {} + +func (x *AdminCreateRegionRequest) ProtoReflect() protoreflect.Message { + mi := &file_region_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 AdminCreateRegionRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateRegionRequest) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{4} +} + +func (x *AdminCreateRegionRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminCreateRegionRequest) GetCountryCode() string { + if x != nil { + return x.CountryCode + } + return "" +} + +type AdminUpdateRegionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` +} + +func (x *AdminUpdateRegionRequest) Reset() { + *x = AdminUpdateRegionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateRegionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateRegionRequest) ProtoMessage() {} + +func (x *AdminUpdateRegionRequest) ProtoReflect() protoreflect.Message { + mi := &file_region_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 AdminUpdateRegionRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateRegionRequest) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{5} +} + +func (x *AdminUpdateRegionRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateRegionRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminUpdateRegionRequest) GetCountryCode() string { + if x != nil { + return x.CountryCode + } + return "" +} + +type AdminAddDatacenterToRegionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Short string `protobuf:"bytes,3,opt,name=short,proto3" json:"short,omitempty"` + ServerPrefix string `protobuf:"bytes,4,opt,name=server_prefix,json=serverPrefix,proto3" json:"server_prefix,omitempty"` + Status DataCenterStatus `protobuf:"varint,5,opt,name=status,proto3,enum=api.region.DataCenterStatus" json:"status,omitempty"` +} + +func (x *AdminAddDatacenterToRegionRequest) Reset() { + *x = AdminAddDatacenterToRegionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminAddDatacenterToRegionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminAddDatacenterToRegionRequest) ProtoMessage() {} + +func (x *AdminAddDatacenterToRegionRequest) ProtoReflect() protoreflect.Message { + mi := &file_region_proto_msgTypes[6] + 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 AdminAddDatacenterToRegionRequest.ProtoReflect.Descriptor instead. +func (*AdminAddDatacenterToRegionRequest) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{6} +} + +func (x *AdminAddDatacenterToRegionRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminAddDatacenterToRegionRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminAddDatacenterToRegionRequest) GetShort() string { + if x != nil { + return x.Short + } + return "" +} + +func (x *AdminAddDatacenterToRegionRequest) GetServerPrefix() string { + if x != nil { + return x.ServerPrefix + } + return "" +} + +func (x *AdminAddDatacenterToRegionRequest) GetStatus() DataCenterStatus { + if x != nil { + return x.Status + } + return DataCenterStatus_AVAILABLE +} + +type AdminUpdateDatacenterRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Short string `protobuf:"bytes,3,opt,name=short,proto3" json:"short,omitempty"` + ServerPrefix string `protobuf:"bytes,4,opt,name=server_prefix,json=serverPrefix,proto3" json:"server_prefix,omitempty"` + Status DataCenterStatus `protobuf:"varint,5,opt,name=status,proto3,enum=api.region.DataCenterStatus" json:"status,omitempty"` +} + +func (x *AdminUpdateDatacenterRequest) Reset() { + *x = AdminUpdateDatacenterRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateDatacenterRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateDatacenterRequest) ProtoMessage() {} + +func (x *AdminUpdateDatacenterRequest) ProtoReflect() protoreflect.Message { + mi := &file_region_proto_msgTypes[7] + 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 AdminUpdateDatacenterRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateDatacenterRequest) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{7} +} + +func (x *AdminUpdateDatacenterRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminUpdateDatacenterRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminUpdateDatacenterRequest) GetShort() string { + if x != nil { + return x.Short + } + return "" +} + +func (x *AdminUpdateDatacenterRequest) GetServerPrefix() string { + if x != nil { + return x.ServerPrefix + } + return "" +} + +func (x *AdminUpdateDatacenterRequest) GetStatus() DataCenterStatus { + if x != nil { + return x.Status + } + return DataCenterStatus_AVAILABLE +} + +type AdminDeleteDatacenterRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteDatacenterRequest) Reset() { + *x = AdminDeleteDatacenterRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteDatacenterRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteDatacenterRequest) ProtoMessage() {} + +func (x *AdminDeleteDatacenterRequest) ProtoReflect() protoreflect.Message { + mi := &file_region_proto_msgTypes[8] + 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 AdminDeleteDatacenterRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteDatacenterRequest) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{8} +} + +func (x *AdminDeleteDatacenterRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminDeleteRegionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteRegionRequest) Reset() { + *x = AdminDeleteRegionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteRegionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteRegionRequest) ProtoMessage() {} + +func (x *AdminDeleteRegionRequest) ProtoReflect() protoreflect.Message { + mi := &file_region_proto_msgTypes[9] + 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 AdminDeleteRegionRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteRegionRequest) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{9} +} + +func (x *AdminDeleteRegionRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetRegionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetRegionRequest) Reset() { + *x = AdminGetRegionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_region_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetRegionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetRegionRequest) ProtoMessage() {} + +func (x *AdminGetRegionRequest) ProtoReflect() protoreflect.Message { + mi := &file_region_proto_msgTypes[10] + 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 AdminGetRegionRequest.ProtoReflect.Descriptor instead. +func (*AdminGetRegionRequest) Descriptor() ([]byte, []int) { + return file_region_proto_rawDescGZIP(), []int{10} +} + +func (x *AdminGetRegionRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +var File_region_proto protoreflect.FileDescriptor + +var file_region_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, + 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0xcd, 0x01, 0x0a, 0x0a, 0x44, + 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, + 0x6f, 0x72, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x70, 0x72, + 0x65, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x2a, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x06, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x38, 0x0a, 0x0b, + 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x44, + 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x63, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x22, 0x52, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x64, + 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x22, 0x48, 0x0a, 0x18, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x51, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, + 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x61, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x21, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x54, 0x6f, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, + 0x34, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x61, 0x74, + 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xb3, 0x01, 0x0a, 0x1c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, + 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x6f, 0x72, 0x74, + 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, + 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, + 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x34, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2e, 0x0a, 0x1c, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x18, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x27, 0x0a, 0x15, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x2a, 0x40, 0x0a, 0x10, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, + 0x45, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x4d, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x4f, + 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, + 0x10, 0x02, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_region_proto_rawDescOnce sync.Once + file_region_proto_rawDescData = file_region_proto_rawDesc +) + +func file_region_proto_rawDescGZIP() []byte { + file_region_proto_rawDescOnce.Do(func() { + file_region_proto_rawDescData = protoimpl.X.CompressGZIP(file_region_proto_rawDescData) + }) + return file_region_proto_rawDescData +} + +var file_region_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_region_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_region_proto_goTypes = []interface{}{ + (DataCenterStatus)(0), // 0: api.region.DataCenterStatus + (*DataCenter)(nil), // 1: api.region.DataCenter + (*Region)(nil), // 2: api.region.Region + (*ListDataCenterResponse)(nil), // 3: api.region.ListDataCenterResponse + (*AdminListRegionsResponse)(nil), // 4: api.region.AdminListRegionsResponse + (*AdminCreateRegionRequest)(nil), // 5: api.region.AdminCreateRegionRequest + (*AdminUpdateRegionRequest)(nil), // 6: api.region.AdminUpdateRegionRequest + (*AdminAddDatacenterToRegionRequest)(nil), // 7: api.region.AdminAddDatacenterToRegionRequest + (*AdminUpdateDatacenterRequest)(nil), // 8: api.region.AdminUpdateDatacenterRequest + (*AdminDeleteDatacenterRequest)(nil), // 9: api.region.AdminDeleteDatacenterRequest + (*AdminDeleteRegionRequest)(nil), // 10: api.region.AdminDeleteRegionRequest + (*AdminGetRegionRequest)(nil), // 11: api.region.AdminGetRegionRequest +} +var file_region_proto_depIdxs = []int32{ + 2, // 0: api.region.DataCenter.region:type_name -> api.region.Region + 0, // 1: api.region.DataCenter.status:type_name -> api.region.DataCenterStatus + 1, // 2: api.region.Region.datacenters:type_name -> api.region.DataCenter + 1, // 3: api.region.ListDataCenterResponse.datacenters:type_name -> api.region.DataCenter + 2, // 4: api.region.AdminListRegionsResponse.regions:type_name -> api.region.Region + 0, // 5: api.region.AdminAddDatacenterToRegionRequest.status:type_name -> api.region.DataCenterStatus + 0, // 6: api.region.AdminUpdateDatacenterRequest.status:type_name -> api.region.DataCenterStatus + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_region_proto_init() } +func file_region_proto_init() { + if File_region_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_region_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataCenter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_region_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Region); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_region_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListDataCenterResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_region_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListRegionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_region_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateRegionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_region_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateRegionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_region_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminAddDatacenterToRegionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_region_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateDatacenterRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_region_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteDatacenterRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_region_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteRegionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_region_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetRegionRequest); 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_region_proto_rawDesc, + NumEnums: 1, + NumMessages: 11, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_region_proto_goTypes, + DependencyIndexes: file_region_proto_depIdxs, + EnumInfos: file_region_proto_enumTypes, + MessageInfos: file_region_proto_msgTypes, + }.Build() + File_region_proto = out.File + file_region_proto_rawDesc = nil + file_region_proto_goTypes = nil + file_region_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/security.pb.go b/pkg/gpcloud/ptypes/security.pb.go new file mode 100644 index 0000000..ce077ee --- /dev/null +++ b/pkg/gpcloud/ptypes/security.pb.go @@ -0,0 +1,289 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: security.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +// SSHKey Represents a SSH public key +type SSHKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + Fingerprint string `protobuf:"bytes,4,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` + Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` + Bits int32 `protobuf:"varint,6,opt,name=bits,proto3" json:"bits,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (x *SSHKey) Reset() { + *x = SSHKey{} + if protoimpl.UnsafeEnabled { + mi := &file_security_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SSHKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SSHKey) ProtoMessage() {} + +func (x *SSHKey) ProtoReflect() protoreflect.Message { + mi := &file_security_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 SSHKey.ProtoReflect.Descriptor instead. +func (*SSHKey) Descriptor() ([]byte, []int) { + return file_security_proto_rawDescGZIP(), []int{0} +} + +func (x *SSHKey) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *SSHKey) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SSHKey) GetPublicKey() string { + if x != nil { + return x.PublicKey + } + return "" +} + +func (x *SSHKey) GetFingerprint() string { + if x != nil { + return x.Fingerprint + } + return "" +} + +func (x *SSHKey) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *SSHKey) GetBits() int32 { + if x != nil { + return x.Bits + } + return 0 +} + +func (x *SSHKey) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +// UserBackupCode Represents a 2FA backup code for a user +type UserBackupCode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Used bool `protobuf:"varint,2,opt,name=used,proto3" json:"used,omitempty"` + Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` +} + +func (x *UserBackupCode) Reset() { + *x = UserBackupCode{} + if protoimpl.UnsafeEnabled { + mi := &file_security_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserBackupCode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserBackupCode) ProtoMessage() {} + +func (x *UserBackupCode) ProtoReflect() protoreflect.Message { + mi := &file_security_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 UserBackupCode.ProtoReflect.Descriptor instead. +func (*UserBackupCode) Descriptor() ([]byte, []int) { + return file_security_proto_rawDescGZIP(), []int{1} +} + +func (x *UserBackupCode) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UserBackupCode) GetUsed() bool { + if x != nil { + return x.Used + } + return false +} + +func (x *UserBackupCode) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +var File_security_proto protoreflect.FileDescriptor + +var file_security_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0c, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x1a, 0x1f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0xd0, 0x01, 0x0a, 0x06, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, + 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x04, 0x62, 0x69, 0x74, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x22, 0x48, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x04, 0x75, 0x73, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x42, 0x16, 0x5a, 0x14, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_security_proto_rawDescOnce sync.Once + file_security_proto_rawDescData = file_security_proto_rawDesc +) + +func file_security_proto_rawDescGZIP() []byte { + file_security_proto_rawDescOnce.Do(func() { + file_security_proto_rawDescData = protoimpl.X.CompressGZIP(file_security_proto_rawDescData) + }) + return file_security_proto_rawDescData +} + +var file_security_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_security_proto_goTypes = []interface{}{ + (*SSHKey)(nil), // 0: api.security.SSHKey + (*UserBackupCode)(nil), // 1: api.security.UserBackupCode + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp +} +var file_security_proto_depIdxs = []int32{ + 2, // 0: api.security.SSHKey.created_at:type_name -> google.protobuf.Timestamp + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_security_proto_init() } +func file_security_proto_init() { + if File_security_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_security_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SSHKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_security_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserBackupCode); 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_security_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_security_proto_goTypes, + DependencyIndexes: file_security_proto_depIdxs, + MessageInfos: file_security_proto_msgTypes, + }.Build() + File_security_proto = out.File + file_security_proto_rawDesc = nil + file_security_proto_goTypes = nil + file_security_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/server.pb.go b/pkg/gpcloud/ptypes/server.pb.go new file mode 100644 index 0000000..7d43848 --- /dev/null +++ b/pkg/gpcloud/ptypes/server.pb.go @@ -0,0 +1,3089 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: server.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type ServerStatus int32 + +const ( + ServerStatus_SETUP_PLATFORM_MANAGEMENT ServerStatus = 0 + ServerStatus_INVENTORY ServerStatus = 1 + ServerStatus_AVAILABLE ServerStatus = 2 + ServerStatus_PROVISIONING ServerStatus = 3 + ServerStatus_POST_PROVISIONING ServerStatus = 4 + ServerStatus_PROVISIONED ServerStatus = 5 + ServerStatus_DEPROVISIONING ServerStatus = 6 + ServerStatus_DELETING ServerStatus = 7 + ServerStatus_IMPORTING ServerStatus = 8 +) + +// Enum value maps for ServerStatus. +var ( + ServerStatus_name = map[int32]string{ + 0: "SETUP_PLATFORM_MANAGEMENT", + 1: "INVENTORY", + 2: "AVAILABLE", + 3: "PROVISIONING", + 4: "POST_PROVISIONING", + 5: "PROVISIONED", + 6: "DEPROVISIONING", + 7: "DELETING", + 8: "IMPORTING", + } + ServerStatus_value = map[string]int32{ + "SETUP_PLATFORM_MANAGEMENT": 0, + "INVENTORY": 1, + "AVAILABLE": 2, + "PROVISIONING": 3, + "POST_PROVISIONING": 4, + "PROVISIONED": 5, + "DEPROVISIONING": 6, + "DELETING": 7, + "IMPORTING": 8, + } +) + +func (x ServerStatus) Enum() *ServerStatus { + p := new(ServerStatus) + *p = x + return p +} + +func (x ServerStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ServerStatus) Descriptor() protoreflect.EnumDescriptor { + return file_server_proto_enumTypes[0].Descriptor() +} + +func (ServerStatus) Type() protoreflect.EnumType { + return &file_server_proto_enumTypes[0] +} + +func (x ServerStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ServerStatus.Descriptor instead. +func (ServerStatus) EnumDescriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{0} +} + +type ServerJob int32 + +const ( + ServerJob_INSTALL ServerJob = 0 + ServerJob_DEPRO ServerJob = 1 + ServerJob_INVENT ServerJob = 2 + ServerJob_PM ServerJob = 3 + ServerJob_SW ServerJob = 4 +) + +// Enum value maps for ServerJob. +var ( + ServerJob_name = map[int32]string{ + 0: "INSTALL", + 1: "DEPRO", + 2: "INVENT", + 3: "PM", + 4: "SW", + } + ServerJob_value = map[string]int32{ + "INSTALL": 0, + "DEPRO": 1, + "INVENT": 2, + "PM": 3, + "SW": 4, + } +) + +func (x ServerJob) Enum() *ServerJob { + p := new(ServerJob) + *p = x + return p +} + +func (x ServerJob) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ServerJob) Descriptor() protoreflect.EnumDescriptor { + return file_server_proto_enumTypes[1].Descriptor() +} + +func (ServerJob) Type() protoreflect.EnumType { + return &file_server_proto_enumTypes[1] +} + +func (x ServerJob) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ServerJob.Descriptor instead. +func (ServerJob) EnumDescriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{1} +} + +type PlatformManagementType int32 + +const ( + PlatformManagementType_IDRAC PlatformManagementType = 0 + PlatformManagementType_ILO5 PlatformManagementType = 1 +) + +// Enum value maps for PlatformManagementType. +var ( + PlatformManagementType_name = map[int32]string{ + 0: "IDRAC", + 1: "ILO5", + } + PlatformManagementType_value = map[string]int32{ + "IDRAC": 0, + "ILO5": 1, + } +) + +func (x PlatformManagementType) Enum() *PlatformManagementType { + p := new(PlatformManagementType) + *p = x + return p +} + +func (x PlatformManagementType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PlatformManagementType) Descriptor() protoreflect.EnumDescriptor { + return file_server_proto_enumTypes[2].Descriptor() +} + +func (PlatformManagementType) Type() protoreflect.EnumType { + return &file_server_proto_enumTypes[2] +} + +func (x PlatformManagementType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PlatformManagementType.Descriptor instead. +func (PlatformManagementType) EnumDescriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{2} +} + +type ServerPowerStatus int32 + +const ( + // Start server + ServerPowerStatus_SHUT_ON ServerPowerStatus = 0 + // Shut-off server + ServerPowerStatus_SHUT_OFF ServerPowerStatus = 1 + // Hard-reset server + ServerPowerStatus_RESET ServerPowerStatus = 2 + // Hard-reset platform management + ServerPowerStatus_RESET_PLATFORM_MANAGEMENT ServerPowerStatus = 3 +) + +// Enum value maps for ServerPowerStatus. +var ( + ServerPowerStatus_name = map[int32]string{ + 0: "SHUT_ON", + 1: "SHUT_OFF", + 2: "RESET", + 3: "RESET_PLATFORM_MANAGEMENT", + } + ServerPowerStatus_value = map[string]int32{ + "SHUT_ON": 0, + "SHUT_OFF": 1, + "RESET": 2, + "RESET_PLATFORM_MANAGEMENT": 3, + } +) + +func (x ServerPowerStatus) Enum() *ServerPowerStatus { + p := new(ServerPowerStatus) + *p = x + return p +} + +func (x ServerPowerStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ServerPowerStatus) Descriptor() protoreflect.EnumDescriptor { + return file_server_proto_enumTypes[3].Descriptor() +} + +func (ServerPowerStatus) Type() protoreflect.EnumType { + return &file_server_proto_enumTypes[3] +} + +func (x ServerPowerStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ServerPowerStatus.Descriptor instead. +func (ServerPowerStatus) EnumDescriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{3} +} + +type MonitoringTag int32 + +const ( + MonitoringTag_MONITOR_PLATFORM_MANAGEMENT MonitoringTag = 0 + MonitoringTag_MONITOR_HOST MonitoringTag = 1 +) + +// Enum value maps for MonitoringTag. +var ( + MonitoringTag_name = map[int32]string{ + 0: "MONITOR_PLATFORM_MANAGEMENT", + 1: "MONITOR_HOST", + } + MonitoringTag_value = map[string]int32{ + "MONITOR_PLATFORM_MANAGEMENT": 0, + "MONITOR_HOST": 1, + } +) + +func (x MonitoringTag) Enum() *MonitoringTag { + p := new(MonitoringTag) + *p = x + return p +} + +func (x MonitoringTag) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MonitoringTag) Descriptor() protoreflect.EnumDescriptor { + return file_server_proto_enumTypes[4].Descriptor() +} + +func (MonitoringTag) Type() protoreflect.EnumType { + return &file_server_proto_enumTypes[4] +} + +func (x MonitoringTag) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MonitoringTag.Descriptor instead. +func (MonitoringTag) EnumDescriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{4} +} + +type PlatformManagement struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type PlatformManagementType `protobuf:"varint,1,opt,name=type,proto3,enum=api.server.PlatformManagementType" json:"type,omitempty"` + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` + Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` + VncPassword string `protobuf:"bytes,5,opt,name=vnc_password,json=vncPassword,proto3" json:"vnc_password,omitempty"` + VncPort int32 `protobuf:"varint,6,opt,name=vnc_port,json=vncPort,proto3" json:"vnc_port,omitempty"` + Online bool `protobuf:"varint,7,opt,name=online,proto3" json:"online,omitempty"` + ServerId string `protobuf:"bytes,8,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` +} + +func (x *PlatformManagement) Reset() { + *x = PlatformManagement{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformManagement) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformManagement) ProtoMessage() {} + +func (x *PlatformManagement) ProtoReflect() protoreflect.Message { + mi := &file_server_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 PlatformManagement.ProtoReflect.Descriptor instead. +func (*PlatformManagement) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{0} +} + +func (x *PlatformManagement) GetType() PlatformManagementType { + if x != nil { + return x.Type + } + return PlatformManagementType_IDRAC +} + +func (x *PlatformManagement) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *PlatformManagement) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *PlatformManagement) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *PlatformManagement) GetVncPassword() string { + if x != nil { + return x.VncPassword + } + return "" +} + +func (x *PlatformManagement) GetVncPort() int32 { + if x != nil { + return x.VncPort + } + return 0 +} + +func (x *PlatformManagement) GetOnline() bool { + if x != nil { + return x.Online + } + return false +} + +func (x *PlatformManagement) GetServerId() string { + if x != nil { + return x.ServerId + } + return "" +} + +type Server struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Server UUID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Datacenter *DataCenter `protobuf:"bytes,3,opt,name=datacenter,proto3" json:"datacenter,omitempty"` + NetboxLink string `protobuf:"bytes,4,opt,name=netbox_link,json=netboxLink,proto3" json:"netbox_link,omitempty"` + // Flavour + Flavour *Flavour `protobuf:"bytes,5,opt,name=flavour,proto3" json:"flavour,omitempty"` + // Server status + Status ServerStatus `protobuf:"varint,6,opt,name=status,proto3,enum=api.server.ServerStatus" json:"status,omitempty"` + StatusUpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=status_updated_at,json=statusUpdatedAt,proto3" json:"status_updated_at,omitempty"` + Interfaces []*ServerInterface `protobuf:"bytes,8,rep,name=interfaces,proto3" json:"interfaces,omitempty"` + // Hardware inventory + Inventory *HardwareInventory `protobuf:"bytes,9,opt,name=inventory,proto3" json:"inventory,omitempty"` + // Platform management type + PlatformManagementType PlatformManagementType `protobuf:"varint,10,opt,name=platform_management_type,json=platformManagementType,proto3,enum=api.server.PlatformManagementType" json:"platform_management_type,omitempty"` + ServerAlert bool `protobuf:"varint,11,opt,name=server_alert,json=serverAlert,proto3" json:"server_alert,omitempty"` + // Server timestamps + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *Server) Reset() { + *x = Server{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Server) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Server) ProtoMessage() {} + +func (x *Server) ProtoReflect() protoreflect.Message { + mi := &file_server_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 Server.ProtoReflect.Descriptor instead. +func (*Server) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{1} +} + +func (x *Server) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Server) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Server) GetDatacenter() *DataCenter { + if x != nil { + return x.Datacenter + } + return nil +} + +func (x *Server) GetNetboxLink() string { + if x != nil { + return x.NetboxLink + } + return "" +} + +func (x *Server) GetFlavour() *Flavour { + if x != nil { + return x.Flavour + } + return nil +} + +func (x *Server) GetStatus() ServerStatus { + if x != nil { + return x.Status + } + return ServerStatus_SETUP_PLATFORM_MANAGEMENT +} + +func (x *Server) GetStatusUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.StatusUpdatedAt + } + return nil +} + +func (x *Server) GetInterfaces() []*ServerInterface { + if x != nil { + return x.Interfaces + } + return nil +} + +func (x *Server) GetInventory() *HardwareInventory { + if x != nil { + return x.Inventory + } + return nil +} + +func (x *Server) GetPlatformManagementType() PlatformManagementType { + if x != nil { + return x.PlatformManagementType + } + return PlatformManagementType_IDRAC +} + +func (x *Server) GetServerAlert() bool { + if x != nil { + return x.ServerAlert + } + return false +} + +func (x *Server) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Server) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type ServerLog struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Log string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *ServerLog) Reset() { + *x = ServerLog{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerLog) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerLog) ProtoMessage() {} + +func (x *ServerLog) ProtoReflect() protoreflect.Message { + mi := &file_server_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 ServerLog.ProtoReflect.Descriptor instead. +func (*ServerLog) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{2} +} + +func (x *ServerLog) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ServerLog) GetLog() string { + if x != nil { + return x.Log + } + return "" +} + +func (x *ServerLog) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *ServerLog) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type AdminGetServerLogsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` +} + +func (x *AdminGetServerLogsRequest) Reset() { + *x = AdminGetServerLogsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetServerLogsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetServerLogsRequest) ProtoMessage() {} + +func (x *AdminGetServerLogsRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_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 AdminGetServerLogsRequest.ProtoReflect.Descriptor instead. +func (*AdminGetServerLogsRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{3} +} + +func (x *AdminGetServerLogsRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminGetServerLogsRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +type AdminGetServerLogsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Logs []*ServerLog `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *AdminGetServerLogsResponse) Reset() { + *x = AdminGetServerLogsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetServerLogsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetServerLogsResponse) ProtoMessage() {} + +func (x *AdminGetServerLogsResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_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 AdminGetServerLogsResponse.ProtoReflect.Descriptor instead. +func (*AdminGetServerLogsResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{4} +} + +func (x *AdminGetServerLogsResponse) GetLogs() []*ServerLog { + if x != nil { + return x.Logs + } + return nil +} + +func (x *AdminGetServerLogsResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type AdminImportServerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NetboxIds []int64 `protobuf:"varint,1,rep,packed,name=netbox_ids,json=netboxIds,proto3" json:"netbox_ids,omitempty"` +} + +func (x *AdminImportServerRequest) Reset() { + *x = AdminImportServerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminImportServerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminImportServerRequest) ProtoMessage() {} + +func (x *AdminImportServerRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_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 AdminImportServerRequest.ProtoReflect.Descriptor instead. +func (*AdminImportServerRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{5} +} + +func (x *AdminImportServerRequest) GetNetboxIds() []int64 { + if x != nil { + return x.NetboxIds + } + return nil +} + +type AdminImportServerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Server []*Server `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"` + Errors []string `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` +} + +func (x *AdminImportServerResponse) Reset() { + *x = AdminImportServerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminImportServerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminImportServerResponse) ProtoMessage() {} + +func (x *AdminImportServerResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[6] + 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 AdminImportServerResponse.ProtoReflect.Descriptor instead. +func (*AdminImportServerResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{6} +} + +func (x *AdminImportServerResponse) GetServer() []*Server { + if x != nil { + return x.Server + } + return nil +} + +func (x *AdminImportServerResponse) GetErrors() []string { + if x != nil { + return x.Errors + } + return nil +} + +type AdminListAvailableServerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Server []*AdminListAvailableServerResponse_AvailableServer `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"` +} + +func (x *AdminListAvailableServerResponse) Reset() { + *x = AdminListAvailableServerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListAvailableServerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListAvailableServerResponse) ProtoMessage() {} + +func (x *AdminListAvailableServerResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[7] + 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 AdminListAvailableServerResponse.ProtoReflect.Descriptor instead. +func (*AdminListAvailableServerResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{7} +} + +func (x *AdminListAvailableServerResponse) GetServer() []*AdminListAvailableServerResponse_AvailableServer { + if x != nil { + return x.Server + } + return nil +} + +type RebootServerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PlatformManagement *PlatformManagement `protobuf:"bytes,1,opt,name=platform_management,json=platformManagement,proto3" json:"platform_management,omitempty"` + NetworkBoot bool `protobuf:"varint,2,opt,name=network_boot,json=networkBoot,proto3" json:"network_boot,omitempty"` +} + +func (x *RebootServerRequest) Reset() { + *x = RebootServerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RebootServerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RebootServerRequest) ProtoMessage() {} + +func (x *RebootServerRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[8] + 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 RebootServerRequest.ProtoReflect.Descriptor instead. +func (*RebootServerRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{8} +} + +func (x *RebootServerRequest) GetPlatformManagement() *PlatformManagement { + if x != nil { + return x.PlatformManagement + } + return nil +} + +func (x *RebootServerRequest) GetNetworkBoot() bool { + if x != nil { + return x.NetworkBoot + } + return false +} + +type ShutOffServerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PlatformManagement *PlatformManagement `protobuf:"bytes,1,opt,name=platform_management,json=platformManagement,proto3" json:"platform_management,omitempty"` +} + +func (x *ShutOffServerRequest) Reset() { + *x = ShutOffServerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ShutOffServerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ShutOffServerRequest) ProtoMessage() {} + +func (x *ShutOffServerRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[9] + 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 ShutOffServerRequest.ProtoReflect.Descriptor instead. +func (*ShutOffServerRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{9} +} + +func (x *ShutOffServerRequest) GetPlatformManagement() *PlatformManagement { + if x != nil { + return x.PlatformManagement + } + return nil +} + +type PlatformManagementNetworkSettings struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Dhcp bool `protobuf:"varint,1,opt,name=dhcp,proto3" json:"dhcp,omitempty"` + Ipv4 *Cidr `protobuf:"bytes,2,opt,name=ipv4,proto3" json:"ipv4,omitempty"` + Gateway *Cidr `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"` + SubnetMask string `protobuf:"bytes,4,opt,name=subnet_mask,json=subnetMask,proto3" json:"subnet_mask,omitempty"` + VlanTag int32 `protobuf:"varint,5,opt,name=vlan_tag,json=vlanTag,proto3" json:"vlan_tag,omitempty"` +} + +func (x *PlatformManagementNetworkSettings) Reset() { + *x = PlatformManagementNetworkSettings{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlatformManagementNetworkSettings) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlatformManagementNetworkSettings) ProtoMessage() {} + +func (x *PlatformManagementNetworkSettings) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[10] + 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 PlatformManagementNetworkSettings.ProtoReflect.Descriptor instead. +func (*PlatformManagementNetworkSettings) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{10} +} + +func (x *PlatformManagementNetworkSettings) GetDhcp() bool { + if x != nil { + return x.Dhcp + } + return false +} + +func (x *PlatformManagementNetworkSettings) GetIpv4() *Cidr { + if x != nil { + return x.Ipv4 + } + return nil +} + +func (x *PlatformManagementNetworkSettings) GetGateway() *Cidr { + if x != nil { + return x.Gateway + } + return nil +} + +func (x *PlatformManagementNetworkSettings) GetSubnetMask() string { + if x != nil { + return x.SubnetMask + } + return "" +} + +func (x *PlatformManagementNetworkSettings) GetVlanTag() int32 { + if x != nil { + return x.VlanTag + } + return 0 +} + +type ConfigurePlatformManagementRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PlatformManagement *PlatformManagement `protobuf:"bytes,1,opt,name=platform_management,json=platformManagement,proto3" json:"platform_management,omitempty"` + ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` + Switch *Switch `protobuf:"bytes,3,opt,name=switch,proto3" json:"switch,omitempty"` + SwitchPort string `protobuf:"bytes,4,opt,name=switch_port,json=switchPort,proto3" json:"switch_port,omitempty"` + NewPassword string `protobuf:"bytes,5,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` + Provisioning bool `protobuf:"varint,6,opt,name=provisioning,proto3" json:"provisioning,omitempty"` + NetworkSettings *PlatformManagementNetworkSettings `protobuf:"bytes,7,opt,name=network_settings,json=networkSettings,proto3" json:"network_settings,omitempty"` +} + +func (x *ConfigurePlatformManagementRequest) Reset() { + *x = ConfigurePlatformManagementRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConfigurePlatformManagementRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfigurePlatformManagementRequest) ProtoMessage() {} + +func (x *ConfigurePlatformManagementRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[11] + 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 ConfigurePlatformManagementRequest.ProtoReflect.Descriptor instead. +func (*ConfigurePlatformManagementRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{11} +} + +func (x *ConfigurePlatformManagementRequest) GetPlatformManagement() *PlatformManagement { + if x != nil { + return x.PlatformManagement + } + return nil +} + +func (x *ConfigurePlatformManagementRequest) GetServerName() string { + if x != nil { + return x.ServerName + } + return "" +} + +func (x *ConfigurePlatformManagementRequest) GetSwitch() *Switch { + if x != nil { + return x.Switch + } + return nil +} + +func (x *ConfigurePlatformManagementRequest) GetSwitchPort() string { + if x != nil { + return x.SwitchPort + } + return "" +} + +func (x *ConfigurePlatformManagementRequest) GetNewPassword() string { + if x != nil { + return x.NewPassword + } + return "" +} + +func (x *ConfigurePlatformManagementRequest) GetProvisioning() bool { + if x != nil { + return x.Provisioning + } + return false +} + +func (x *ConfigurePlatformManagementRequest) GetNetworkSettings() *PlatformManagementNetworkSettings { + if x != nil { + return x.NetworkSettings + } + return nil +} + +type AdminGetServerVNCTokenRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetServerVNCTokenRequest) Reset() { + *x = AdminGetServerVNCTokenRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetServerVNCTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetServerVNCTokenRequest) ProtoMessage() {} + +func (x *AdminGetServerVNCTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[12] + 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 AdminGetServerVNCTokenRequest.ProtoReflect.Descriptor instead. +func (*AdminGetServerVNCTokenRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{12} +} + +func (x *AdminGetServerVNCTokenRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminGetServerVNCTokenResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *AdminGetServerVNCTokenResponse) Reset() { + *x = AdminGetServerVNCTokenResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetServerVNCTokenResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetServerVNCTokenResponse) ProtoMessage() {} + +func (x *AdminGetServerVNCTokenResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[13] + 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 AdminGetServerVNCTokenResponse.ProtoReflect.Descriptor instead. +func (*AdminGetServerVNCTokenResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{13} +} + +func (x *AdminGetServerVNCTokenResponse) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *AdminGetServerVNCTokenResponse) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type VNCConnection struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *VNCConnection) Reset() { + *x = VNCConnection{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VNCConnection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VNCConnection) ProtoMessage() {} + +func (x *VNCConnection) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[14] + 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 VNCConnection.ProtoReflect.Descriptor instead. +func (*VNCConnection) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{14} +} + +func (x *VNCConnection) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *VNCConnection) GetPort() int32 { + if x != nil { + return x.Port + } + return 0 +} + +func (x *VNCConnection) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type GetVNCRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *GetVNCRequest) Reset() { + *x = GetVNCRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetVNCRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetVNCRequest) ProtoMessage() {} + +func (x *GetVNCRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[15] + 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 GetVNCRequest.ProtoReflect.Descriptor instead. +func (*GetVNCRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{15} +} + +func (x *GetVNCRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type GetVNCResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Websocket string `protobuf:"bytes,1,opt,name=websocket,proto3" json:"websocket,omitempty"` + Vnc *VNCConnection `protobuf:"bytes,2,opt,name=vnc,proto3" json:"vnc,omitempty"` +} + +func (x *GetVNCResponse) Reset() { + *x = GetVNCResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetVNCResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetVNCResponse) ProtoMessage() {} + +func (x *GetVNCResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[16] + 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 GetVNCResponse.ProtoReflect.Descriptor instead. +func (*GetVNCResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{16} +} + +func (x *GetVNCResponse) GetWebsocket() string { + if x != nil { + return x.Websocket + } + return "" +} + +func (x *GetVNCResponse) GetVnc() *VNCConnection { + if x != nil { + return x.Vnc + } + return nil +} + +type CreatePxeLinuxConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *CreatePxeLinuxConfigRequest) Reset() { + *x = CreatePxeLinuxConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreatePxeLinuxConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreatePxeLinuxConfigRequest) ProtoMessage() {} + +func (x *CreatePxeLinuxConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[17] + 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 CreatePxeLinuxConfigRequest.ProtoReflect.Descriptor instead. +func (*CreatePxeLinuxConfigRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{17} +} + +func (x *CreatePxeLinuxConfigRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type GetAutoRunScriptRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` +} + +func (x *GetAutoRunScriptRequest) Reset() { + *x = GetAutoRunScriptRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAutoRunScriptRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAutoRunScriptRequest) ProtoMessage() {} + +func (x *GetAutoRunScriptRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[18] + 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 GetAutoRunScriptRequest.ProtoReflect.Descriptor instead. +func (*GetAutoRunScriptRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{18} +} + +func (x *GetAutoRunScriptRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +type GetAutoRunScriptResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Script string `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"` +} + +func (x *GetAutoRunScriptResponse) Reset() { + *x = GetAutoRunScriptResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAutoRunScriptResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAutoRunScriptResponse) ProtoMessage() {} + +func (x *GetAutoRunScriptResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[19] + 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 GetAutoRunScriptResponse.ProtoReflect.Descriptor instead. +func (*GetAutoRunScriptResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{19} +} + +func (x *GetAutoRunScriptResponse) GetScript() string { + if x != nil { + return x.Script + } + return "" +} + +type AdminChangeServerPowerStatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Status ServerPowerStatus `protobuf:"varint,2,opt,name=status,proto3,enum=api.server.ServerPowerStatus" json:"status,omitempty"` +} + +func (x *AdminChangeServerPowerStatusRequest) Reset() { + *x = AdminChangeServerPowerStatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminChangeServerPowerStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminChangeServerPowerStatusRequest) ProtoMessage() {} + +func (x *AdminChangeServerPowerStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[20] + 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 AdminChangeServerPowerStatusRequest.ProtoReflect.Descriptor instead. +func (*AdminChangeServerPowerStatusRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{20} +} + +func (x *AdminChangeServerPowerStatusRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminChangeServerPowerStatusRequest) GetStatus() ServerPowerStatus { + if x != nil { + return x.Status + } + return ServerPowerStatus_SHUT_ON +} + +type AdminGetServerPlatformManagementRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminGetServerPlatformManagementRequest) Reset() { + *x = AdminGetServerPlatformManagementRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminGetServerPlatformManagementRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminGetServerPlatformManagementRequest) ProtoMessage() {} + +func (x *AdminGetServerPlatformManagementRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[21] + 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 AdminGetServerPlatformManagementRequest.ProtoReflect.Descriptor instead. +func (*AdminGetServerPlatformManagementRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{21} +} + +func (x *AdminGetServerPlatformManagementRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AdminCreateServerJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Job ServerJob `protobuf:"varint,2,opt,name=job,proto3,enum=api.server.ServerJob" json:"job,omitempty"` +} + +func (x *AdminCreateServerJobRequest) Reset() { + *x = AdminCreateServerJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateServerJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateServerJobRequest) ProtoMessage() {} + +func (x *AdminCreateServerJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[22] + 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 AdminCreateServerJobRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateServerJobRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{22} +} + +func (x *AdminCreateServerJobRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AdminCreateServerJobRequest) GetJob() ServerJob { + if x != nil { + return x.Job + } + return ServerJob_INSTALL +} + +type PostProvisioningCallbackRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` +} + +func (x *PostProvisioningCallbackRequest) Reset() { + *x = PostProvisioningCallbackRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PostProvisioningCallbackRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PostProvisioningCallbackRequest) ProtoMessage() {} + +func (x *PostProvisioningCallbackRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[23] + 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 PostProvisioningCallbackRequest.ProtoReflect.Descriptor instead. +func (*PostProvisioningCallbackRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{23} +} + +func (x *PostProvisioningCallbackRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +type PostProvisioningCallbackResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SwitchConfiguration *ConfigureSwitchPortRequest `protobuf:"bytes,1,opt,name=switch_configuration,json=switchConfiguration,proto3" json:"switch_configuration,omitempty"` + PlatformManagement *PlatformManagement `protobuf:"bytes,2,opt,name=platform_management,json=platformManagement,proto3" json:"platform_management,omitempty"` +} + +func (x *PostProvisioningCallbackResponse) Reset() { + *x = PostProvisioningCallbackResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PostProvisioningCallbackResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PostProvisioningCallbackResponse) ProtoMessage() {} + +func (x *PostProvisioningCallbackResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[24] + 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 PostProvisioningCallbackResponse.ProtoReflect.Descriptor instead. +func (*PostProvisioningCallbackResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{24} +} + +func (x *PostProvisioningCallbackResponse) GetSwitchConfiguration() *ConfigureSwitchPortRequest { + if x != nil { + return x.SwitchConfiguration + } + return nil +} + +func (x *PostProvisioningCallbackResponse) GetPlatformManagement() *PlatformManagement { + if x != nil { + return x.PlatformManagement + } + return nil +} + +type FinishProvisioningCallbackRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` +} + +func (x *FinishProvisioningCallbackRequest) Reset() { + *x = FinishProvisioningCallbackRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FinishProvisioningCallbackRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FinishProvisioningCallbackRequest) ProtoMessage() {} + +func (x *FinishProvisioningCallbackRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[25] + 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 FinishProvisioningCallbackRequest.ProtoReflect.Descriptor instead. +func (*FinishProvisioningCallbackRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{25} +} + +func (x *FinishProvisioningCallbackRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +type ListPlatformManagementsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PlatformManagements []*PlatformManagement `protobuf:"bytes,1,rep,name=platform_managements,json=platformManagements,proto3" json:"platform_managements,omitempty"` +} + +func (x *ListPlatformManagementsResponse) Reset() { + *x = ListPlatformManagementsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListPlatformManagementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPlatformManagementsResponse) ProtoMessage() {} + +func (x *ListPlatformManagementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[26] + 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 ListPlatformManagementsResponse.ProtoReflect.Descriptor instead. +func (*ListPlatformManagementsResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{26} +} + +func (x *ListPlatformManagementsResponse) GetPlatformManagements() []*PlatformManagement { + if x != nil { + return x.PlatformManagements + } + return nil +} + +type PostDeprovisioningCallbackRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` +} + +func (x *PostDeprovisioningCallbackRequest) Reset() { + *x = PostDeprovisioningCallbackRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PostDeprovisioningCallbackRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PostDeprovisioningCallbackRequest) ProtoMessage() {} + +func (x *PostDeprovisioningCallbackRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[27] + 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 PostDeprovisioningCallbackRequest.ProtoReflect.Descriptor instead. +func (*PostDeprovisioningCallbackRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{27} +} + +func (x *PostDeprovisioningCallbackRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +type ServerMonitoring struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` + Tag MonitoringTag `protobuf:"varint,3,opt,name=tag,proto3,enum=api.server.MonitoringTag" json:"tag,omitempty"` +} + +func (x *ServerMonitoring) Reset() { + *x = ServerMonitoring{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerMonitoring) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerMonitoring) ProtoMessage() {} + +func (x *ServerMonitoring) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[28] + 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 ServerMonitoring.ProtoReflect.Descriptor instead. +func (*ServerMonitoring) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{28} +} + +func (x *ServerMonitoring) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ServerMonitoring) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *ServerMonitoring) GetTag() MonitoringTag { + if x != nil { + return x.Tag + } + return MonitoringTag_MONITOR_PLATFORM_MANAGEMENT +} + +type ListMonitoringTargetsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Monitoring []*ServerMonitoring `protobuf:"bytes,1,rep,name=monitoring,proto3" json:"monitoring,omitempty"` +} + +func (x *ListMonitoringTargetsResponse) Reset() { + *x = ListMonitoringTargetsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMonitoringTargetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMonitoringTargetsResponse) ProtoMessage() {} + +func (x *ListMonitoringTargetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[29] + 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 ListMonitoringTargetsResponse.ProtoReflect.Descriptor instead. +func (*ListMonitoringTargetsResponse) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{29} +} + +func (x *ListMonitoringTargetsResponse) GetMonitoring() []*ServerMonitoring { + if x != nil { + return x.Monitoring + } + return nil +} + +type MonitoringStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` + Online bool `protobuf:"varint,2,opt,name=online,proto3" json:"online,omitempty"` +} + +func (x *MonitoringStatus) Reset() { + *x = MonitoringStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MonitoringStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MonitoringStatus) ProtoMessage() {} + +func (x *MonitoringStatus) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[30] + 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 MonitoringStatus.ProtoReflect.Descriptor instead. +func (*MonitoringStatus) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{30} +} + +func (x *MonitoringStatus) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *MonitoringStatus) GetOnline() bool { + if x != nil { + return x.Online + } + return false +} + +type UpdateMonitoringStatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status []*MonitoringStatus `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"` +} + +func (x *UpdateMonitoringStatusRequest) Reset() { + *x = UpdateMonitoringStatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateMonitoringStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateMonitoringStatusRequest) ProtoMessage() {} + +func (x *UpdateMonitoringStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[31] + 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 UpdateMonitoringStatusRequest.ProtoReflect.Descriptor instead. +func (*UpdateMonitoringStatusRequest) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{31} +} + +func (x *UpdateMonitoringStatusRequest) GetStatus() []*MonitoringStatus { + if x != nil { + return x.Status + } + return nil +} + +type AdminListAvailableServerResponse_AvailableServer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Datacenter string `protobuf:"bytes,3,opt,name=datacenter,proto3" json:"datacenter,omitempty"` + NetboxLink string `protobuf:"bytes,4,opt,name=netbox_link,json=netboxLink,proto3" json:"netbox_link,omitempty"` + Flavour string `protobuf:"bytes,5,opt,name=flavour,proto3" json:"flavour,omitempty"` + InventoryItems []string `protobuf:"bytes,6,rep,name=inventory_items,json=inventoryItems,proto3" json:"inventory_items,omitempty"` +} + +func (x *AdminListAvailableServerResponse_AvailableServer) Reset() { + *x = AdminListAvailableServerResponse_AvailableServer{} + if protoimpl.UnsafeEnabled { + mi := &file_server_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListAvailableServerResponse_AvailableServer) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListAvailableServerResponse_AvailableServer) ProtoMessage() {} + +func (x *AdminListAvailableServerResponse_AvailableServer) ProtoReflect() protoreflect.Message { + mi := &file_server_proto_msgTypes[32] + 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 AdminListAvailableServerResponse_AvailableServer.ProtoReflect.Descriptor instead. +func (*AdminListAvailableServerResponse_AvailableServer) Descriptor() ([]byte, []int) { + return file_server_proto_rawDescGZIP(), []int{7, 0} +} + +func (x *AdminListAvailableServerResponse_AvailableServer) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *AdminListAvailableServerResponse_AvailableServer) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AdminListAvailableServerResponse_AvailableServer) GetDatacenter() string { + if x != nil { + return x.Datacenter + } + return "" +} + +func (x *AdminListAvailableServerResponse_AvailableServer) GetNetboxLink() string { + if x != nil { + return x.NetboxLink + } + return "" +} + +func (x *AdminListAvailableServerResponse_AvailableServer) GetFlavour() string { + if x != nil { + return x.Flavour + } + return "" +} + +func (x *AdminListAvailableServerResponse_AvailableServer) GetInventoryItems() []string { + if x != nil { + return x.InventoryItems + } + return nil +} + +var File_server_proto protoreflect.FileDescriptor + +var file_server_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x68, 0x61, 0x72, 0x64, + 0x77, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, + 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x02, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x36, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, + 0x0a, 0x0c, 0x76, 0x6e, 0x63, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x6e, 0x63, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x6e, 0x63, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x6e, 0x63, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6f, 0x6e, + 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, + 0x64, 0x22, 0xa3, 0x05, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x36, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x64, 0x61, + 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x74, 0x62, + 0x6f, 0x78, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, + 0x65, 0x74, 0x62, 0x6f, 0x78, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x2e, 0x0a, 0x07, 0x66, 0x6c, 0x61, + 0x76, 0x6f, 0x75, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, + 0x52, 0x07, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x46, 0x0a, 0x11, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x0f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x3c, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x12, 0x3d, 0x0a, 0x09, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x68, 0x61, 0x72, 0x64, 0x77, + 0x61, 0x72, 0x65, 0x2e, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x09, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x12, 0x5c, 0x0a, 0x18, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x16, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, + 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x6c, 0x65, 0x72, + 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xa3, 0x01, 0x0a, 0x09, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 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, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x3f, 0x0a, + 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, + 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0x68, + 0x0a, 0x1a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x04, + 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, + 0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x73, + 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x39, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x74, 0x62, 0x6f, 0x78, 0x5f, 0x69, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x6e, 0x65, 0x74, 0x62, 0x6f, 0x78, + 0x49, 0x64, 0x73, 0x22, 0x5f, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x73, 0x22, 0xb4, 0x02, 0x0a, 0x20, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x06, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, + 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x1a, + 0xb9, 0x01, 0x0a, 0x0f, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x63, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x61, 0x74, + 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x65, 0x74, 0x62, 0x6f, + 0x78, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, + 0x74, 0x62, 0x6f, 0x78, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x6c, 0x61, 0x76, + 0x6f, 0x75, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6c, 0x61, 0x76, 0x6f, + 0x75, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x5f, + 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x13, + 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x13, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x52, 0x12, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, + 0x62, 0x6f, 0x6f, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x42, 0x6f, 0x6f, 0x74, 0x22, 0x67, 0x0a, 0x14, 0x53, 0x68, 0x75, 0x74, 0x4f, + 0x66, 0x66, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x4f, 0x0a, 0x13, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x22, 0xc7, 0x01, 0x0a, 0x21, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x68, 0x63, 0x70, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x68, 0x63, 0x70, 0x12, 0x25, 0x0a, 0x04, 0x69, 0x70, + 0x76, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x69, 0x64, 0x72, 0x52, 0x04, 0x69, 0x70, 0x76, + 0x34, 0x12, 0x2b, 0x0a, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x43, 0x69, 0x64, 0x72, 0x52, 0x07, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x1f, + 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x4d, 0x61, 0x73, 0x6b, 0x12, + 0x19, 0x0a, 0x08, 0x76, 0x6c, 0x61, 0x6e, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x07, 0x76, 0x6c, 0x61, 0x6e, 0x54, 0x61, 0x67, 0x22, 0x85, 0x03, 0x0a, 0x22, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x4f, 0x0a, 0x13, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x12, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x52, 0x06, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x6f, 0x72, + 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x50, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x58, 0x0a, 0x10, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x73, 0x52, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x22, 0x2f, 0x0a, 0x1d, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x56, 0x4e, 0x43, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x52, 0x0a, 0x1e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, 0x4e, 0x43, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x4f, 0x0a, 0x0d, 0x56, 0x4e, 0x43, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x25, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x56, + 0x4e, 0x43, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, + 0x5b, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x56, 0x4e, 0x43, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, + 0x2b, 0x0a, 0x03, 0x76, 0x6e, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x56, 0x4e, 0x43, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x76, 0x6e, 0x63, 0x22, 0x33, 0x0a, 0x1b, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x78, 0x65, 0x4c, 0x69, 0x6e, 0x75, 0x78, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0x29, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x52, 0x75, 0x6e, 0x53, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x32, 0x0a, 0x18, + 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x52, 0x75, 0x6e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x22, 0x6c, 0x0a, 0x23, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x6f, 0x77, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x39, + 0x0a, 0x27, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 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, 0x56, 0x0a, 0x1b, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4a, 0x6f, + 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x27, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, + 0x62, 0x22, 0x31, 0x0a, 0x1f, 0x50, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x70, 0x22, 0xcf, 0x01, 0x0a, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x14, 0x73, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x53, + 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x13, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x13, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x52, 0x12, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x33, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x6c, 0x6c, + 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x74, 0x0a, 0x1f, 0x4c, + 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, + 0x0a, 0x14, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x13, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x22, 0x33, 0x0a, 0x21, 0x50, 0x6f, 0x73, 0x74, 0x44, 0x65, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x5f, 0x0a, 0x10, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x2b, 0x0a, 0x03, 0x74, 0x61, + 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x54, + 0x61, 0x67, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x5d, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x4d, + 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0a, 0x6d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0a, 0x6d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x3a, 0x0a, 0x10, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, + 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x6e, + 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6f, 0x6e, 0x6c, 0x69, + 0x6e, 0x65, 0x22, 0x55, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2a, 0xb6, 0x01, 0x0a, 0x0c, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x45, + 0x54, 0x55, 0x50, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x4d, 0x41, 0x4e, + 0x41, 0x47, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4e, 0x56, + 0x45, 0x4e, 0x54, 0x4f, 0x52, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x56, 0x41, 0x49, + 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x52, 0x4f, 0x56, 0x49, + 0x53, 0x49, 0x4f, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x4f, 0x53, + 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x04, + 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x45, 0x44, 0x10, + 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x45, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, + 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, + 0x47, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x49, 0x4e, 0x47, + 0x10, 0x08, 0x2a, 0x3f, 0x0a, 0x09, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, + 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, + 0x44, 0x45, 0x50, 0x52, 0x4f, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x49, 0x4e, 0x56, 0x45, 0x4e, + 0x54, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x50, 0x4d, 0x10, 0x03, 0x12, 0x06, 0x0a, 0x02, 0x53, + 0x57, 0x10, 0x04, 0x2a, 0x2d, 0x0a, 0x16, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, + 0x05, 0x49, 0x44, 0x52, 0x41, 0x43, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4c, 0x4f, 0x35, + 0x10, 0x01, 0x2a, 0x58, 0x0a, 0x11, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x6f, 0x77, 0x65, + 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x48, 0x55, 0x54, 0x5f, + 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x48, 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x46, + 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1d, 0x0a, + 0x19, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, + 0x4d, 0x41, 0x4e, 0x41, 0x47, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x2a, 0x42, 0x0a, 0x0d, + 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12, 0x1f, 0x0a, + 0x1b, 0x4d, 0x4f, 0x4e, 0x49, 0x54, 0x4f, 0x52, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, + 0x4d, 0x5f, 0x4d, 0x41, 0x4e, 0x41, 0x47, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x10, + 0x0a, 0x0c, 0x4d, 0x4f, 0x4e, 0x49, 0x54, 0x4f, 0x52, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x01, + 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_server_proto_rawDescOnce sync.Once + file_server_proto_rawDescData = file_server_proto_rawDesc +) + +func file_server_proto_rawDescGZIP() []byte { + file_server_proto_rawDescOnce.Do(func() { + file_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_server_proto_rawDescData) + }) + return file_server_proto_rawDescData +} + +var file_server_proto_enumTypes = make([]protoimpl.EnumInfo, 5) +var file_server_proto_msgTypes = make([]protoimpl.MessageInfo, 33) +var file_server_proto_goTypes = []interface{}{ + (ServerStatus)(0), // 0: api.server.ServerStatus + (ServerJob)(0), // 1: api.server.ServerJob + (PlatformManagementType)(0), // 2: api.server.PlatformManagementType + (ServerPowerStatus)(0), // 3: api.server.ServerPowerStatus + (MonitoringTag)(0), // 4: api.server.MonitoringTag + (*PlatformManagement)(nil), // 5: api.server.PlatformManagement + (*Server)(nil), // 6: api.server.Server + (*ServerLog)(nil), // 7: api.server.ServerLog + (*AdminGetServerLogsRequest)(nil), // 8: api.server.AdminGetServerLogsRequest + (*AdminGetServerLogsResponse)(nil), // 9: api.server.AdminGetServerLogsResponse + (*AdminImportServerRequest)(nil), // 10: api.server.AdminImportServerRequest + (*AdminImportServerResponse)(nil), // 11: api.server.AdminImportServerResponse + (*AdminListAvailableServerResponse)(nil), // 12: api.server.AdminListAvailableServerResponse + (*RebootServerRequest)(nil), // 13: api.server.RebootServerRequest + (*ShutOffServerRequest)(nil), // 14: api.server.ShutOffServerRequest + (*PlatformManagementNetworkSettings)(nil), // 15: api.server.PlatformManagementNetworkSettings + (*ConfigurePlatformManagementRequest)(nil), // 16: api.server.ConfigurePlatformManagementRequest + (*AdminGetServerVNCTokenRequest)(nil), // 17: api.server.AdminGetServerVNCTokenRequest + (*AdminGetServerVNCTokenResponse)(nil), // 18: api.server.AdminGetServerVNCTokenResponse + (*VNCConnection)(nil), // 19: api.server.VNCConnection + (*GetVNCRequest)(nil), // 20: api.server.GetVNCRequest + (*GetVNCResponse)(nil), // 21: api.server.GetVNCResponse + (*CreatePxeLinuxConfigRequest)(nil), // 22: api.server.CreatePxeLinuxConfigRequest + (*GetAutoRunScriptRequest)(nil), // 23: api.server.GetAutoRunScriptRequest + (*GetAutoRunScriptResponse)(nil), // 24: api.server.GetAutoRunScriptResponse + (*AdminChangeServerPowerStatusRequest)(nil), // 25: api.server.AdminChangeServerPowerStatusRequest + (*AdminGetServerPlatformManagementRequest)(nil), // 26: api.server.AdminGetServerPlatformManagementRequest + (*AdminCreateServerJobRequest)(nil), // 27: api.server.AdminCreateServerJobRequest + (*PostProvisioningCallbackRequest)(nil), // 28: api.server.PostProvisioningCallbackRequest + (*PostProvisioningCallbackResponse)(nil), // 29: api.server.PostProvisioningCallbackResponse + (*FinishProvisioningCallbackRequest)(nil), // 30: api.server.FinishProvisioningCallbackRequest + (*ListPlatformManagementsResponse)(nil), // 31: api.server.ListPlatformManagementsResponse + (*PostDeprovisioningCallbackRequest)(nil), // 32: api.server.PostDeprovisioningCallbackRequest + (*ServerMonitoring)(nil), // 33: api.server.ServerMonitoring + (*ListMonitoringTargetsResponse)(nil), // 34: api.server.ListMonitoringTargetsResponse + (*MonitoringStatus)(nil), // 35: api.server.MonitoringStatus + (*UpdateMonitoringStatusRequest)(nil), // 36: api.server.UpdateMonitoringStatusRequest + (*AdminListAvailableServerResponse_AvailableServer)(nil), // 37: api.server.AdminListAvailableServerResponse.AvailableServer + (*DataCenter)(nil), // 38: api.region.DataCenter + (*Flavour)(nil), // 39: api.flavour.Flavour + (*timestamppb.Timestamp)(nil), // 40: google.protobuf.Timestamp + (*ServerInterface)(nil), // 41: api.network.ServerInterface + (*HardwareInventory)(nil), // 42: api.hardware.HardwareInventory + (*Cidr)(nil), // 43: api.network.Cidr + (*Switch)(nil), // 44: api.network.Switch + (*ConfigureSwitchPortRequest)(nil), // 45: api.network.ConfigureSwitchPortRequest +} +var file_server_proto_depIdxs = []int32{ + 2, // 0: api.server.PlatformManagement.type:type_name -> api.server.PlatformManagementType + 38, // 1: api.server.Server.datacenter:type_name -> api.region.DataCenter + 39, // 2: api.server.Server.flavour:type_name -> api.flavour.Flavour + 0, // 3: api.server.Server.status:type_name -> api.server.ServerStatus + 40, // 4: api.server.Server.status_updated_at:type_name -> google.protobuf.Timestamp + 41, // 5: api.server.Server.interfaces:type_name -> api.network.ServerInterface + 42, // 6: api.server.Server.inventory:type_name -> api.hardware.HardwareInventory + 2, // 7: api.server.Server.platform_management_type:type_name -> api.server.PlatformManagementType + 40, // 8: api.server.Server.created_at:type_name -> google.protobuf.Timestamp + 40, // 9: api.server.Server.updated_at:type_name -> google.protobuf.Timestamp + 40, // 10: api.server.ServerLog.created_at:type_name -> google.protobuf.Timestamp + 40, // 11: api.server.ServerLog.updated_at:type_name -> google.protobuf.Timestamp + 7, // 12: api.server.AdminGetServerLogsResponse.logs:type_name -> api.server.ServerLog + 6, // 13: api.server.AdminImportServerResponse.server:type_name -> api.server.Server + 37, // 14: api.server.AdminListAvailableServerResponse.server:type_name -> api.server.AdminListAvailableServerResponse.AvailableServer + 5, // 15: api.server.RebootServerRequest.platform_management:type_name -> api.server.PlatformManagement + 5, // 16: api.server.ShutOffServerRequest.platform_management:type_name -> api.server.PlatformManagement + 43, // 17: api.server.PlatformManagementNetworkSettings.ipv4:type_name -> api.network.Cidr + 43, // 18: api.server.PlatformManagementNetworkSettings.gateway:type_name -> api.network.Cidr + 5, // 19: api.server.ConfigurePlatformManagementRequest.platform_management:type_name -> api.server.PlatformManagement + 44, // 20: api.server.ConfigurePlatformManagementRequest.switch:type_name -> api.network.Switch + 15, // 21: api.server.ConfigurePlatformManagementRequest.network_settings:type_name -> api.server.PlatformManagementNetworkSettings + 19, // 22: api.server.GetVNCResponse.vnc:type_name -> api.server.VNCConnection + 3, // 23: api.server.AdminChangeServerPowerStatusRequest.status:type_name -> api.server.ServerPowerStatus + 1, // 24: api.server.AdminCreateServerJobRequest.job:type_name -> api.server.ServerJob + 45, // 25: api.server.PostProvisioningCallbackResponse.switch_configuration:type_name -> api.network.ConfigureSwitchPortRequest + 5, // 26: api.server.PostProvisioningCallbackResponse.platform_management:type_name -> api.server.PlatformManagement + 5, // 27: api.server.ListPlatformManagementsResponse.platform_managements:type_name -> api.server.PlatformManagement + 4, // 28: api.server.ServerMonitoring.tag:type_name -> api.server.MonitoringTag + 33, // 29: api.server.ListMonitoringTargetsResponse.monitoring:type_name -> api.server.ServerMonitoring + 35, // 30: api.server.UpdateMonitoringStatusRequest.status:type_name -> api.server.MonitoringStatus + 31, // [31:31] is the sub-list for method output_type + 31, // [31:31] is the sub-list for method input_type + 31, // [31:31] is the sub-list for extension type_name + 31, // [31:31] is the sub-list for extension extendee + 0, // [0:31] is the sub-list for field type_name +} + +func init() { file_server_proto_init() } +func file_server_proto_init() { + if File_server_proto != nil { + return + } + file_network_proto_init() + file_hardware_proto_init() + file_region_proto_init() + file_flavour_proto_init() + if !protoimpl.UnsafeEnabled { + file_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformManagement); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Server); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerLog); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetServerLogsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetServerLogsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminImportServerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminImportServerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListAvailableServerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RebootServerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShutOffServerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformManagementNetworkSettings); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfigurePlatformManagementRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetServerVNCTokenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetServerVNCTokenResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VNCConnection); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVNCRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVNCResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreatePxeLinuxConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAutoRunScriptRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAutoRunScriptResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminChangeServerPowerStatusRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminGetServerPlatformManagementRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateServerJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostProvisioningCallbackRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostProvisioningCallbackResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FinishProvisioningCallbackRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListPlatformManagementsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PostDeprovisioningCallbackRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerMonitoring); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMonitoringTargetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MonitoringStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateMonitoringStatusRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_server_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListAvailableServerResponse_AvailableServer); 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_server_proto_rawDesc, + NumEnums: 5, + NumMessages: 33, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_server_proto_goTypes, + DependencyIndexes: file_server_proto_depIdxs, + EnumInfos: file_server_proto_enumTypes, + MessageInfos: file_server_proto_msgTypes, + }.Build() + File_server_proto = out.File + file_server_proto_rawDesc = nil + file_server_proto_goTypes = nil + file_server_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/server_alert.pb.go b/pkg/gpcloud/ptypes/server_alert.pb.go new file mode 100644 index 0000000..beea0b0 --- /dev/null +++ b/pkg/gpcloud/ptypes/server_alert.pb.go @@ -0,0 +1,243 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: server_alert.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type ServerAlert struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` + Severity string `protobuf:"bytes,5,opt,name=severity,proto3" json:"severity,omitempty"` + Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + TicketId string `protobuf:"bytes,7,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + DeletedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` +} + +func (x *ServerAlert) Reset() { + *x = ServerAlert{} + if protoimpl.UnsafeEnabled { + mi := &file_server_alert_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerAlert) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerAlert) ProtoMessage() {} + +func (x *ServerAlert) ProtoReflect() protoreflect.Message { + mi := &file_server_alert_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 ServerAlert.ProtoReflect.Descriptor instead. +func (*ServerAlert) Descriptor() ([]byte, []int) { + return file_server_alert_proto_rawDescGZIP(), []int{0} +} + +func (x *ServerAlert) GetServerId() string { + if x != nil { + return x.ServerId + } + return "" +} + +func (x *ServerAlert) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ServerAlert) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ServerAlert) GetJob() string { + if x != nil { + return x.Job + } + return "" +} + +func (x *ServerAlert) GetSeverity() string { + if x != nil { + return x.Severity + } + return "" +} + +func (x *ServerAlert) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ServerAlert) GetTicketId() string { + if x != nil { + return x.TicketId + } + return "" +} + +func (x *ServerAlert) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *ServerAlert) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +func (x *ServerAlert) GetDeletedAt() *timestamppb.Timestamp { + if x != nil { + return x.DeletedAt + } + return nil +} + +var File_server_alert_proto protoreflect.FileDescriptor + +var file_server_alert_proto_rawDesc = []byte{ + 0x0a, 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x5f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xec, 0x02, 0x0a, 0x0b, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, + 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, + 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x69, 0x63, 0x6b, + 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x69, 0x63, + 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x64, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, + 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_server_alert_proto_rawDescOnce sync.Once + file_server_alert_proto_rawDescData = file_server_alert_proto_rawDesc +) + +func file_server_alert_proto_rawDescGZIP() []byte { + file_server_alert_proto_rawDescOnce.Do(func() { + file_server_alert_proto_rawDescData = protoimpl.X.CompressGZIP(file_server_alert_proto_rawDescData) + }) + return file_server_alert_proto_rawDescData +} + +var file_server_alert_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_server_alert_proto_goTypes = []interface{}{ + (*ServerAlert)(nil), // 0: api.server_alert.ServerAlert + (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp +} +var file_server_alert_proto_depIdxs = []int32{ + 1, // 0: api.server_alert.ServerAlert.created_at:type_name -> google.protobuf.Timestamp + 1, // 1: api.server_alert.ServerAlert.updated_at:type_name -> google.protobuf.Timestamp + 1, // 2: api.server_alert.ServerAlert.deleted_at:type_name -> google.protobuf.Timestamp + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_server_alert_proto_init() } +func file_server_alert_proto_init() { + if File_server_alert_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_server_alert_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerAlert); 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_server_alert_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_server_alert_proto_goTypes, + DependencyIndexes: file_server_alert_proto_depIdxs, + MessageInfos: file_server_alert_proto_msgTypes, + }.Build() + File_server_alert_proto = out.File + file_server_alert_proto_rawDesc = nil + file_server_alert_proto_goTypes = nil + file_server_alert_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/service.pb.go b/pkg/gpcloud/ptypes/service.pb.go new file mode 100644 index 0000000..a891240 --- /dev/null +++ b/pkg/gpcloud/ptypes/service.pb.go @@ -0,0 +1,1387 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: service.proto + +package ptypes + +import ( + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +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) +) + +var File_service_proto protoreflect.FileDescriptor + +var file_service_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x03, 0x61, 0x70, 0x69, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, + 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, + 0x68, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x73, + 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x09, 0x6a, 0x77, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, + 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x76, + 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x73, 0x70, + 0x6c, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, + 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x73, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xfc, 0x05, 0x0a, 0x09, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x41, 0x50, 0x49, 0x12, 0x5f, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, + 0x6e, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x67, + 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x3a, 0x01, 0x2a, 0x92, 0x41, + 0x08, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x62, 0x00, 0x12, 0x6b, 0x0a, 0x08, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x08, 0x0a, 0x04, + 0x55, 0x73, 0x65, 0x72, 0x62, 0x00, 0x12, 0x75, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x77, + 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x77, 0x74, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, + 0x6a, 0x77, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x92, 0x41, 0x12, 0x0a, 0x0e, 0x41, 0x75, 0x74, + 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x00, 0x12, 0x83, 0x01, + 0x0a, 0x0d, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, + 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, + 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, + 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x2f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x92, 0x41, + 0x12, 0x0a, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x62, 0x00, 0x12, 0x9c, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x6f, 0x72, 0x67, 0x6f, 0x74, 0x74, 0x65, 0x6e, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x46, 0x6f, 0x72, 0x67, 0x6f, 0x74, 0x74, 0x65, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x26, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x72, 0x65, 0x63, + 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x08, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, + 0x62, 0x00, 0x12, 0x84, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2f, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x3a, 0x01, 0x2a, 0x92, 0x41, + 0x08, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x62, 0x00, 0x32, 0xe1, 0x5e, 0x0a, 0x07, 0x55, 0x73, + 0x65, 0x72, 0x41, 0x50, 0x49, 0x12, 0x54, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, + 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, + 0x92, 0x41, 0x08, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x62, 0x00, 0x12, 0x72, 0x0a, 0x13, 0x47, + 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x4c, + 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x92, 0x41, 0x08, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x62, 0x00, 0x12, + 0x67, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1b, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, + 0x1a, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x08, + 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x62, 0x00, 0x12, 0x65, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x72, 0x6d, 0x45, 0x4d, 0x61, 0x69, 0x6c, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x45, 0x4d, 0x61, 0x69, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, + 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, + 0x6d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x08, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x62, 0x00, 0x12, + 0x69, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, + 0x45, 0x4d, 0x61, 0x69, 0x6c, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1b, 0x22, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x3a, 0x01, 0x2a, 0x92, + 0x41, 0x08, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x62, 0x00, 0x12, 0x77, 0x0a, 0x12, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x19, 0x22, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x06, 0x0a, 0x04, 0x55, + 0x73, 0x65, 0x72, 0x12, 0xa4, 0x01, 0x0a, 0x19, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x57, 0x65, 0x62, + 0x41, 0x75, 0x74, 0x68, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x42, 0x65, 0x67, + 0x69, 0x6e, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x57, 0x65, + 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, + 0x77, 0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x92, 0x41, 0x06, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0xaa, 0x01, 0x0a, 0x1a, 0x46, + 0x69, 0x6e, 0x69, 0x73, 0x68, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x57, 0x65, 0x62, 0x41, 0x75, + 0x74, 0x68, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x77, 0x65, 0x62, 0x61, 0x75, 0x74, + 0x68, 0x6e, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x01, 0x2a, 0x92, 0x41, + 0x06, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x80, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x1e, 0x2a, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, + 0x2f, 0x77, 0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, + 0x2a, 0x92, 0x41, 0x06, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x68, 0x0a, 0x0c, 0x4c, 0x69, + 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x92, 0x41, 0x06, 0x0a, 0x04, + 0x55, 0x73, 0x65, 0x72, 0x12, 0x7a, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x26, 0x2a, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x73, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x06, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, + 0x12, 0x90, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x4c, + 0x69, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x4c, + 0x69, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x6e, 0x67, + 0x4c, 0x69, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1e, 0x22, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, + 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x66, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x92, 0x41, 0x10, 0x0a, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x88, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x6e, 0x67, + 0x4c, 0x69, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, + 0x6e, 0x67, 0x4c, 0x69, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, + 0x6c, 0x69, 0x66, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x92, 0x41, 0x10, 0x0a, 0x0e, + 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x98, + 0x01, 0x0a, 0x14, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x4c, 0x69, 0x76, + 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x4c, 0x69, 0x76, + 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x45, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x2a, 0x27, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x66, + 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, + 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x10, 0x0a, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x65, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6d, 0x0a, 0x0d, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x22, 0x0c, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, + 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x90, 0x01, 0x0a, 0x14, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x3a, 0x01, 0x2a, 0x92, + 0x41, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x71, 0x0a, 0x0a, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, + 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x7d, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0xa4, + 0x01, 0x0a, 0x1d, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x36, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x30, 0x01, 0x12, 0x8d, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x99, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x12, 0x25, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x54, 0x72, 0x61, 0x66, 0x66, + 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x72, + 0x61, 0x66, 0x66, 0x69, 0x63, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x12, 0xad, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, + 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x34, 0x12, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x66, 0x6c, 0x61, + 0x76, 0x6f, 0x75, 0x72, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x46, 0x6c, 0x61, 0x76, 0x6f, 0x75, + 0x72, 0x12, 0x7a, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x30, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x1e, 0x1a, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, + 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x79, 0x0a, + 0x0b, 0x4a, 0x6f, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1f, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x4a, 0x6f, 0x69, 0x6e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6a, 0x6f, 0x69, 0x6e, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, + 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x7c, 0x0a, 0x0c, 0x4c, 0x65, 0x61, 0x76, + 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x7d, 0x2f, 0x6c, 0x65, 0x61, 0x76, 0x65, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0xa8, 0x01, 0x0a, 0x15, 0x49, 0x6e, 0x76, 0x69, 0x74, + 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x54, 0x6f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, + 0x6e, 0x76, 0x69, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x54, 0x6f, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x54, 0x6f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, + 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x73, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x12, 0x9b, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x2b, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x2a, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x7d, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x7d, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, + 0x66, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, + 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, 0x0c, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x92, 0x41, 0x09, 0x0a, 0x07, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x75, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x2a, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x7d, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0xd8, + 0x01, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x76, 0x69, + 0x65, 0x77, 0x50, 0x64, 0x66, 0x12, 0x36, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x76, + 0x69, 0x65, 0x77, 0x50, 0x64, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x69, 0x6c, + 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x50, 0x64, 0x66, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, + 0x67, 0x2f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x2f, 0x70, 0x64, 0x66, 0x92, 0x41, 0x09, + 0x0a, 0x07, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0xac, 0x01, 0x0a, 0x11, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x64, 0x66, 0x12, + 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x50, 0x64, 0x66, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, + 0x69, 0x6c, 0x6c, 0x50, 0x64, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x7d, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x2f, 0x7b, + 0x62, 0x69, 0x6c, 0x6c, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x64, 0x66, 0x92, 0x41, 0x09, 0x0a, + 0x07, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x98, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x64, + 0x65, 0x65, 0x6d, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x64, 0x65, 0x65, 0x6d, 0x56, + 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x64, 0x65, + 0x65, 0x6d, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x22, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x6f, 0x75, + 0x63, 0x68, 0x65, 0x72, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x42, 0x69, 0x6c, 0x6c, + 0x69, 0x6e, 0x67, 0x12, 0x84, 0x01, 0x0a, 0x0d, 0x50, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x4e, 0x6f, 0x77, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x6f, + 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x2a, 0x22, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, + 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x6e, 0x6f, 0x77, 0x3a, 0x01, 0x2a, 0x92, 0x41, + 0x09, 0x0a, 0x07, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0xcb, 0x01, 0x0a, 0x1f, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, + 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x33, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x69, + 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x75, 0x72, 0x72, + 0x65, 0x6e, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, + 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x62, 0x69, 0x6c, + 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x92, 0x41, 0x09, 0x0a, + 0x07, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x90, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x92, + 0x41, 0x09, 0x0a, 0x07, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0xa0, 0x01, 0x0a, 0x0f, + 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x12, + 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x69, 0x6c, + 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x62, 0x69, + 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x73, 0x2f, 0x7b, 0x79, 0x65, 0x61, + 0x72, 0x7d, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x9d, + 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x53, + 0x48, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, + 0x53, 0x48, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x73, 0x68, 0x5f, 0x6b, 0x65, + 0x79, 0x73, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x71, + 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, + 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, + 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x73, 0x73, 0x68, + 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x53, 0x53, 0x48, 0x20, 0x4b, 0x65, + 0x79, 0x12, 0x78, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, + 0x53, 0x48, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x53, 0x48, 0x4b, 0x65, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x22, 0x2b, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x2f, 0x73, 0x73, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x3a, 0x01, 0x2a, 0x92, + 0x41, 0x09, 0x0a, 0x07, 0x53, 0x53, 0x48, 0x20, 0x4b, 0x65, 0x79, 0x12, 0x80, 0x01, 0x0a, 0x10, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, + 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x2a, + 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x73, 0x73, 0x68, + 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x7b, 0x73, 0x73, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, + 0x64, 0x7d, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x53, 0x53, 0x48, 0x20, 0x4b, 0x65, 0x79, 0x12, 0xaa, + 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x2e, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x2e, 0x22, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x3a, 0x01, 0x2a, 0x92, + 0x41, 0x09, 0x0a, 0x07, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x12, 0xa6, 0x01, 0x0a, 0x17, + 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, + 0x72, 0x74, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, + 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x74, 0x69, 0x63, 0x6b, + 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x53, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x12, 0xb9, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, + 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, + 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x74, 0x69, 0x63, + 0x6b, 0x65, 0x74, 0x73, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x12, 0xab, 0x01, 0x0a, 0x19, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x2d, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x43, 0x6c, 0x6f, + 0x73, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x1a, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x74, 0x69, 0x63, + 0x6b, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x3a, + 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x12, 0xb7, + 0x01, 0x0a, 0x1e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x74, 0x12, 0x32, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, + 0x74, 0x22, 0x45, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x1a, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x74, 0x69, 0x63, + 0x6b, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, + 0x07, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x12, 0xa9, 0x01, 0x0a, 0x1b, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x2f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, + 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, + 0x70, 0x6c, 0x61, 0x6e, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x53, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x12, 0xba, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2f, + 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x12, 0xa8, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x29, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x3a, 0x01, 0x2a, + 0x92, 0x41, 0x09, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x12, 0xa2, 0x01, 0x0a, + 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x43, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x12, 0xc7, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, + 0x63, 0x12, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, + 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x12, 0x37, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x7b, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, + 0x63, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x12, 0xa8, 0x01, + 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x1a, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x7b, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, + 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x12, 0xc7, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x12, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x12, 0x37, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x12, 0xb3, 0x01, 0x0a, 0x1f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x63, + 0x75, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x63, 0x75, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x3b, 0x22, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, + 0x64, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x63, 0x75, 0x65, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, + 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x12, 0xae, 0x01, 0x0a, 0x1a, 0x50, 0x6f, 0x77, + 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x3a, 0x22, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x63, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, + 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x12, 0xb8, 0x01, 0x0a, 0x18, 0x52, 0x65, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x22, 0x50, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x22, 0x39, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x7b, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x72, 0x65, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x43, 0x6f, 0x6d, + 0x70, 0x75, 0x74, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x16, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, + 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x44, 0x65, + 0x73, 0x74, 0x72, 0x6f, 0x79, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x2a, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x7d, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, + 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x92, 0x41, + 0x09, 0x0a, 0x07, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x8d, 0x01, 0x0a, 0x11, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0x3b, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, + 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x92, 0x41, + 0x09, 0x0a, 0x07, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x96, 0x01, 0x0a, 0x14, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x1a, 0x27, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2f, + 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x12, 0xa8, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x75, 0x62, 0x6e, + 0x65, 0x74, 0x12, 0x2e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x22, 0x45, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x22, + 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x3a, + 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x9f, + 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x12, 0x2e, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x53, 0x75, 0x62, 0x6e, + 0x65, 0x74, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x1a, 0x25, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x2f, 0x7b, 0x69, 0x64, + 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x12, 0x9e, 0x01, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x12, + 0x2e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x53, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x2a, 0x25, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x2f, 0x7b, 0x69, + 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x12, 0x83, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x07, + 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, 0x23, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, + 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x73, 0x92, 0x41, 0x07, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x85, 0x01, 0x0a, + 0x0f, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, + 0x49, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x2f, + 0x7b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x92, 0x41, 0x07, 0x0a, 0x05, 0x49, + 0x6d, 0x61, 0x67, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x24, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x22, 0x2b, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x2f, + 0x7b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x07, + 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0xae, 0x01, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, + 0x6d, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x22, 0x3b, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, + 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, + 0x07, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x70, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x76, 0x31, 0x2f, + 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x92, 0x41, 0x0c, 0x0a, 0x0a, + 0x44, 0x61, 0x74, 0x61, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x80, 0x01, 0x0a, 0x10, 0x4c, + 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x12, + 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x76, 0x31, 0x2f, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x5f, + 0x69, 0x64, 0x7d, 0x92, 0x41, 0x07, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x77, 0x0a, + 0x13, 0x47, 0x65, 0x74, 0x54, 0x77, 0x6f, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x77, 0x6f, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x2f, 0x32, 0x66, 0x61, 0x92, 0x41, 0x0c, 0x0a, 0x0a, 0x54, 0x77, 0x6f, 0x20, + 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x6d, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x54, 0x4f, 0x54, 0x50, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x4f, 0x54, 0x50, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x74, 0x6f, 0x74, 0x70, 0x92, + 0x41, 0x13, 0x0a, 0x11, 0x54, 0x77, 0x6f, 0x20, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x20, 0x2d, + 0x20, 0x54, 0x4f, 0x54, 0x50, 0x12, 0x70, 0x0a, 0x0a, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, + 0x4f, 0x54, 0x50, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x4f, 0x54, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x2a, 0x10, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x74, 0x6f, 0x74, 0x70, 0x3a, 0x01, + 0x2a, 0x92, 0x41, 0x13, 0x0a, 0x11, 0x54, 0x77, 0x6f, 0x20, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, + 0x20, 0x2d, 0x20, 0x54, 0x4f, 0x54, 0x50, 0x12, 0x6a, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x54, 0x4f, + 0x54, 0x50, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x64, + 0x64, 0x54, 0x4f, 0x54, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x74, 0x6f, 0x74, 0x70, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x13, + 0x0a, 0x11, 0x54, 0x77, 0x6f, 0x20, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x20, 0x2d, 0x20, 0x54, + 0x4f, 0x54, 0x50, 0x12, 0xb4, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, + 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x1c, 0x0a, 0x1a, + 0x54, 0x77, 0x6f, 0x20, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x20, 0x2d, 0x20, 0x52, 0x65, 0x63, + 0x6f, 0x76, 0x65, 0x72, 0x79, 0x20, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x78, 0x0a, 0x0f, 0x4c, 0x69, + 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x73, 0x12, 0x11, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, + 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x73, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, 0x61, 0x79, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x87, 0x01, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x43, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x43, 0x61, 0x72, 0x64, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, + 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x73, 0x3a, + 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x87, + 0x01, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, + 0x61, 0x72, 0x64, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, + 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x43, 0x61, + 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x2a, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x5f, 0x63, 0x61, 0x72, 0x64, 0x73, 0x2f, + 0x7b, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, 0x0a, + 0x07, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x69, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x93, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x69, + 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x28, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, + 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, + 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0x92, 0x41, 0x09, + 0x0a, 0x07, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x87, 0x01, 0x0a, 0x14, 0x4c, 0x69, + 0x73, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, + 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x42, 0x69, 0x6c, 0x6c, + 0x69, 0x6e, 0x67, 0x12, 0x97, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x69, + 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x28, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x2f, 0x2a, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, + 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, + 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, + 0x2a, 0x92, 0x41, 0x09, 0x0a, 0x07, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x6e, 0x0a, + 0x0c, 0x47, 0x65, 0x74, 0x53, 0x70, 0x6c, 0x61, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x70, 0x6c, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x70, 0x6c, 0x61, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x70, 0x6c, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x70, 0x6c, 0x61, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x6c, 0x61, 0x2f, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x92, 0x41, 0x06, 0x0a, 0x04, 0x53, 0x50, 0x4c, 0x41, 0x32, 0xcb, 0x02, + 0x0a, 0x0a, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x41, 0x50, 0x49, 0x12, 0x3f, 0x0a, 0x06, + 0x47, 0x65, 0x74, 0x56, 0x6e, 0x63, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x4e, 0x43, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, + 0x65, 0x74, 0x56, 0x4e, 0x43, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, + 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x77, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, + 0x79, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6a, 0x77, 0x74, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x4a, 0x77, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5c, 0x0a, 0x13, 0x49, + 0x6d, 0x61, 0x67, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x65, 0x12, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x70, 0x6c, 0x6f, + 0x61, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x12, 0x49, 0x6d, 0x61, + 0x67, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x12, + 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x72, 0x6d, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0x89, 0x0a, 0x0a, 0x0a, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x50, 0x49, 0x12, 0x44, 0x0a, 0x0b, 0x47, 0x65, + 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x5c, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x42, 0x6f, 0x6f, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x42, 0x6f, 0x6f, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x42, 0x6f, 0x6f, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x56, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x44, 0x48, 0x43, 0x50, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2e, 0x44, 0x48, 0x43, 0x50, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x44, 0x48, 0x43, 0x50, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x15, 0x50, 0x75, 0x73, + 0x68, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x12, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x68, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, + 0x65, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x48, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, 0x49, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x61, 0x70, 0x70, + 0x69, 0x6e, 0x67, 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x52, + 0x75, 0x6e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x52, 0x75, 0x6e, + 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, + 0x74, 0x6f, 0x52, 0x75, 0x6e, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x18, 0x50, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, + 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x6f, 0x73, + 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x6c, + 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, + 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x1a, 0x46, 0x69, + 0x6e, 0x69, 0x73, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, + 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x1a, 0x50, + 0x6f, 0x73, 0x74, 0x44, 0x65, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, + 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x44, 0x65, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x15, + 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, + 0x72, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x6e, + 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x29, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x17, + 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xc6, 0x01, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x92, 0x41, 0xac, 0x01, 0x12, 0x4c, 0x0a, 0x11, 0x47, 0x50, 0x4f, 0x52, 0x54, 0x41, 0x4c, 0x20, + 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x20, 0x41, 0x50, 0x49, 0x22, 0x30, 0x12, 0x16, 0x68, 0x74, 0x74, + 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x2d, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x1a, 0x16, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x40, 0x67, 0x2d, 0x70, + 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x32, 0x05, 0x30, 0x2e, 0x30, + 0x2e, 0x31, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x5a, 0x23, 0x0a, 0x21, 0x0a, 0x0a, 0x41, + 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x13, 0x08, 0x02, 0x1a, 0x0d, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x02, 0x62, 0x10, + 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_service_proto_goTypes = []interface{}{ + (*LoginRequest)(nil), // 0: api.user.LoginRequest + (*RegisterRequest)(nil), // 1: api.user.RegisterRequest + (*EmptyRequest)(nil), // 2: api.EmptyRequest + (*RefreshTokensRequest)(nil), // 3: api.user.RefreshTokensRequest + (*RequestPasswordForgottenTokenRequest)(nil), // 4: api.user.RequestPasswordForgottenTokenRequest + (*ResetUserPasswordRequest)(nil), // 5: api.user.ResetUserPasswordRequest + (*UpdateUserRequest)(nil), // 6: api.user.UpdateUserRequest + (*ConfirmEMailRequest)(nil), // 7: api.user.ConfirmEMailRequest + (*ChangeUserPasswordRequest)(nil), // 8: api.user.ChangeUserPasswordRequest + (*BeginWebAuthnRegistrationRequest)(nil), // 9: api.user.BeginWebAuthnRegistrationRequest + (*FinishWebAuthnRegistrationRequest)(nil), // 10: api.user.FinishWebAuthnRegistrationRequest + (*DeleteWebAuthnDeviceRequest)(nil), // 11: api.user.DeleteWebAuthnDeviceRequest + (*DeleteSessionRequest)(nil), // 12: api.user.DeleteSessionRequest + (*CreateLongLivedTokenRequest)(nil), // 13: api.user.CreateLongLivedTokenRequest + (*RevokeLongLivedTokenRequest)(nil), // 14: api.user.RevokeLongLivedTokenRequest + (*CreateProjectRequest)(nil), // 15: api.project.CreateProjectRequest + (*ChangeDefaultProjectRequest)(nil), // 16: api.project.ChangeDefaultProjectRequest + (*GetProjectRequest)(nil), // 17: api.project.GetProjectRequest + (*SubscribeProjectNotificationsRequest)(nil), // 18: api.notification.SubscribeProjectNotificationsRequest + (*GetProjectLogsRequest)(nil), // 19: api.project.GetProjectLogsRequest + (*GetProjectTrafficRequest)(nil), // 20: api.project.GetProjectTrafficRequest + (*GetProjectFlavoursRequest)(nil), // 21: api.flavour.GetProjectFlavoursRequest + (*UpdateProjectRequest)(nil), // 22: api.project.UpdateProjectRequest + (*JoinProjectRequest)(nil), // 23: api.project.JoinProjectRequest + (*LeaveProjectRequest)(nil), // 24: api.project.LeaveProjectRequest + (*InviteMemberToProjectRequest)(nil), // 25: api.project.InviteMemberToProjectRequest + (*RemoveMemberFromProjectRequest)(nil), // 26: api.project.RemoveMemberFromProjectRequest + (*DeleteProjectRequest)(nil), // 27: api.project.DeleteProjectRequest + (*GetProjectCurrentBillingPreviewPdfRequest)(nil), // 28: api.project.GetProjectCurrentBillingPreviewPdfRequest + (*GetProjectBillPdfRequest)(nil), // 29: api.project.GetProjectBillPdfRequest + (*RedeemVoucherRequest)(nil), // 30: api.voucher.RedeemVoucherRequest + (*PayProjectNowRequest)(nil), // 31: api.project.PayProjectNowRequest + (*GetProjectCurrentBillingPreviewRequest)(nil), // 32: api.project.GetProjectCurrentBillingPreviewRequest + (*GetProjectBillsRequest)(nil), // 33: api.project.GetProjectBillsRequest + (*ListProjectSSHKeysRequest)(nil), // 34: api.project.ListProjectSSHKeysRequest + (*CreateUserSSHKeyRequest)(nil), // 35: api.user.CreateUserSSHKeyRequest + (*DeleteUserSSHKeyRequest)(nil), // 36: api.user.DeleteUserSSHKeyRequest + (*CreateProjectSupportTicketRequest)(nil), // 37: api.support.CreateProjectSupportTicketRequest + (*GetProjectSupportTicketRequest)(nil), // 38: api.support.GetProjectSupportTicketRequest + (*ListProjectSupportTicketsRequest)(nil), // 39: api.support.ListProjectSupportTicketsRequest + (*CloseProjectSupportTicketRequest)(nil), // 40: api.support.CloseProjectSupportTicketRequest + (*AddProjectSupportTicketCommentRequest)(nil), // 41: api.support.AddProjectSupportTicketCommentRequest + (*ChangeProjectSupportPackageRequest)(nil), // 42: api.support.ChangeProjectSupportPackageRequest + (*ListProjectSupportPackagesRequest)(nil), // 43: api.support.ListProjectSupportPackagesRequest + (*CreateComputeResourceRequest)(nil), // 44: api.compute.CreateComputeResourceRequest + (*ListComputeResourcesRequest)(nil), // 45: api.compute.ListComputeResourcesRequest + (*GetComputeResourceRequest)(nil), // 46: api.compute.GetComputeResourceRequest + (*GetComputeResourceTrafficRequest)(nil), // 47: api.compute.GetComputeResourceTrafficRequest + (*UpdateComputeResourceRequest)(nil), // 48: api.compute.UpdateComputeResourceRequest + (*GetComputeResourceConsoleRequest)(nil), // 49: api.compute.GetComputeResourceConsoleRequest + (*ComputeResourceRescueModeRequest)(nil), // 50: api.compute.ComputeResourceRescueModeRequest + (*PowerActionComputeResourceRequest)(nil), // 51: api.compute.PowerActionComputeResourceRequest + (*ReinstallComputeResourceRequest)(nil), // 52: api.compute.ReinstallComputeResourceRequest + (*DestroyComputeResourceRequest)(nil), // 53: api.compute.DestroyComputeResourceRequest + (*ListProjectNetworksRequest)(nil), // 54: api.network.ListProjectNetworksRequest + (*GetProjectNetworkRequest)(nil), // 55: api.network.GetProjectNetworkRequest + (*UpdateProjectNetworkRequest)(nil), // 56: api.network.UpdateProjectNetworkRequest + (*CreateProjectNetworkSubnetRequest)(nil), // 57: api.network.CreateProjectNetworkSubnetRequest + (*UpdateProjectNetworkSubnetRequest)(nil), // 58: api.network.UpdateProjectNetworkSubnetRequest + (*DeleteProjectNetworkSubnetRequest)(nil), // 59: api.network.DeleteProjectNetworkSubnetRequest + (*CreateProjectImageRequest)(nil), // 60: api.image.CreateProjectImageRequest + (*ListProjectImagesRequest)(nil), // 61: api.image.ListProjectImagesRequest + (*GetProjectImageRequest)(nil), // 62: api.image.GetProjectImageRequest + (*DeleteProjectImageRequest)(nil), // 63: api.image.DeleteProjectImageRequest + (*DeleteProjectImageVersionRequest)(nil), // 64: api.image.DeleteProjectImageVersionRequest + (*ListPublicImagesRequest)(nil), // 65: api.image.ListPublicImagesRequest + (*RemoveTOTPRequest)(nil), // 66: api.user.RemoveTOTPRequest + (*AddTOTPRequest)(nil), // 67: api.user.AddTOTPRequest + (*RegenerateRecoveryCodesRequest)(nil), // 68: api.user.RegenerateRecoveryCodesRequest + (*AddCreditCardRequest)(nil), // 69: api.payment.AddCreditCardRequest + (*DeleteCreditCardRequest)(nil), // 70: api.payment.DeleteCreditCardRequest + (*CreateBillingAddressRequest)(nil), // 71: api.payment.CreateBillingAddressRequest + (*DeleteBillingAddressRequest)(nil), // 72: api.payment.DeleteBillingAddressRequest + (*GetSplaPriceRequest)(nil), // 73: api.spla.GetSplaPriceRequest + (*GetVNCRequest)(nil), // 74: api.server.GetVNCRequest + (*ValidateImageUploadTokenRequest)(nil), // 75: api.image.ValidateImageUploadTokenRequest + (*ConfirmImageUploadRequest)(nil), // 76: api.image.ConfirmImageUploadRequest + (*MetadataRequest)(nil), // 77: api.metadata.MetadataRequest + (*NetworkBootDataRequest)(nil), // 78: api.metadata.NetworkBootDataRequest + (*DHCPNetworksRequest)(nil), // 79: api.network.DHCPNetworksRequest + (*PushHardwareInventoryRequest)(nil), // 80: api.hardware.PushHardwareInventoryRequest + (*UpdateMacAddressMappingRequest)(nil), // 81: api.network.UpdateMacAddressMappingRequest + (*GetAutoRunScriptRequest)(nil), // 82: api.server.GetAutoRunScriptRequest + (*PostProvisioningCallbackRequest)(nil), // 83: api.server.PostProvisioningCallbackRequest + (*FinishProvisioningCallbackRequest)(nil), // 84: api.server.FinishProvisioningCallbackRequest + (*PostDeprovisioningCallbackRequest)(nil), // 85: api.server.PostDeprovisioningCallbackRequest + (*UpdateMonitoringStatusRequest)(nil), // 86: api.server.UpdateMonitoringStatusRequest + (*LoginResponse)(nil), // 87: api.user.LoginResponse + (*RegisterResponse)(nil), // 88: api.user.RegisterResponse + (*ListJwtPublicKeysResponse)(nil), // 89: api.jwt.ListJwtPublicKeysResponse + (*RefreshTokensResponse)(nil), // 90: api.user.RefreshTokensResponse + (*EmptyResponse)(nil), // 91: api.EmptyResponse + (*GetUserResponse)(nil), // 92: api.user.GetUserResponse + (*GetUserComputeLimitResponse)(nil), // 93: api.user.GetUserComputeLimitResponse + (*UpdateUserResponse)(nil), // 94: api.user.UpdateUserResponse + (*User)(nil), // 95: api.user.User + (*BeginWebAuthnRegistrationResponse)(nil), // 96: api.user.BeginWebAuthnRegistrationResponse + (*FinishWebAuthnRegistrationResponse)(nil), // 97: api.user.FinishWebAuthnRegistrationResponse + (*ListSessionsResponse)(nil), // 98: api.user.ListSessionsResponse + (*LongLivedToken)(nil), // 99: api.user.LongLivedToken + (*ListLongLivedTokensResponse)(nil), // 100: api.user.ListLongLivedTokensResponse + (*Project)(nil), // 101: api.project.Project + (*ProjectNotification)(nil), // 102: api.notification.ProjectNotification + (*GetProjectLogsResponse)(nil), // 103: api.project.GetProjectLogsResponse + (*GetProjectTrafficResponse)(nil), // 104: api.project.GetProjectTrafficResponse + (*GetProjectFlavoursResponse)(nil), // 105: api.flavour.GetProjectFlavoursResponse + (*InviteMemberToProjectResponse)(nil), // 106: api.project.InviteMemberToProjectResponse + (*ListProjectsResponse)(nil), // 107: api.project.ListProjectsResponse + (*GetProjectCurrentBillingPreviewPdfResponse)(nil), // 108: api.project.GetProjectCurrentBillingPreviewPdfResponse + (*GetProjectBillPdfResponse)(nil), // 109: api.project.GetProjectBillPdfResponse + (*RedeemVoucherResponse)(nil), // 110: api.voucher.RedeemVoucherResponse + (*GetProjectCurrentBillingPreviewResponse)(nil), // 111: api.project.GetProjectCurrentBillingPreviewResponse + (*GetProjectsOutstandingBalanceResponse)(nil), // 112: api.project.GetProjectsOutstandingBalanceResponse + (*GetProjectBillsResponse)(nil), // 113: api.project.GetProjectBillsResponse + (*ListProjectSSHKeysResponse)(nil), // 114: api.project.ListProjectSSHKeysResponse + (*ListUserSSHKeysResponse)(nil), // 115: api.user.ListUserSSHKeysResponse + (*SSHKey)(nil), // 116: api.security.SSHKey + (*SupportTicket)(nil), // 117: api.support.SupportTicket + (*ListProjectSupportTicketsResponse)(nil), // 118: api.support.ListProjectSupportTicketsResponse + (*ListProjectSupportPackagesResponse)(nil), // 119: api.support.ListProjectSupportPackagesResponse + (*CreateComputeResourceResponse)(nil), // 120: api.compute.CreateComputeResourceResponse + (*ListComputeResourcesResponse)(nil), // 121: api.compute.ListComputeResourcesResponse + (*ComputeResource)(nil), // 122: api.compute.ComputeResource + (*GetComputeResourceTrafficResponse)(nil), // 123: api.compute.GetComputeResourceTrafficResponse + (*GetComputeResourceConsoleResponse)(nil), // 124: api.compute.GetComputeResourceConsoleResponse + (*ListProjectNetworksResponse)(nil), // 125: api.network.ListProjectNetworksResponse + (*Network)(nil), // 126: api.network.Network + (*Subnet)(nil), // 127: api.network.Subnet + (*Image)(nil), // 128: api.image.Image + (*ListProjectImagesResponse)(nil), // 129: api.image.ListProjectImagesResponse + (*ListDataCenterResponse)(nil), // 130: api.region.ListDataCenterResponse + (*ListImagesResponse)(nil), // 131: api.image.ListImagesResponse + (*GetTwoFactorMethodsResponse)(nil), // 132: api.user.GetTwoFactorMethodsResponse + (*CreateTOTPResponse)(nil), // 133: api.user.CreateTOTPResponse + (*RegenerateRecoveryCodesResponse)(nil), // 134: api.user.RegenerateRecoveryCodesResponse + (*ListCreditCardsResponse)(nil), // 135: api.payment.ListCreditCardsResponse + (*AddCreditCardResponse)(nil), // 136: api.payment.AddCreditCardResponse + (*ListCountriesResponse)(nil), // 137: api.payment.ListCountriesResponse + (*BillingAddress)(nil), // 138: api.payment.BillingAddress + (*ListBillingAddressesResponse)(nil), // 139: api.payment.ListBillingAddressesResponse + (*GetSplaPriceResponse)(nil), // 140: api.spla.GetSplaPriceResponse + (*GetVNCResponse)(nil), // 141: api.server.GetVNCResponse + (*ImageVersion)(nil), // 142: api.image.ImageVersion + (*Metadata)(nil), // 143: api.metadata.Metadata + (*MetadataPasswordResponse)(nil), // 144: api.metadata.MetadataPasswordResponse + (*NetworkBootDataResponse)(nil), // 145: api.metadata.NetworkBootDataResponse + (*DHCPNetworksResponse)(nil), // 146: api.network.DHCPNetworksResponse + (*ListSwitchesResponse)(nil), // 147: api.network.ListSwitchesResponse + (*GetAutoRunScriptResponse)(nil), // 148: api.server.GetAutoRunScriptResponse + (*PostProvisioningCallbackResponse)(nil), // 149: api.server.PostProvisioningCallbackResponse + (*ListMonitoringTargetsResponse)(nil), // 150: api.server.ListMonitoringTargetsResponse + (*ListPlatformManagementsResponse)(nil), // 151: api.server.ListPlatformManagementsResponse +} +var file_service_proto_depIdxs = []int32{ + 0, // 0: api.PublicAPI.Login:input_type -> api.user.LoginRequest + 1, // 1: api.PublicAPI.Register:input_type -> api.user.RegisterRequest + 2, // 2: api.PublicAPI.ListJwtPublicKeys:input_type -> api.EmptyRequest + 3, // 3: api.PublicAPI.RefreshTokens:input_type -> api.user.RefreshTokensRequest + 4, // 4: api.PublicAPI.RequestPasswordForgottenToken:input_type -> api.user.RequestPasswordForgottenTokenRequest + 5, // 5: api.PublicAPI.ResetUserPassword:input_type -> api.user.ResetUserPasswordRequest + 2, // 6: api.UserAPI.GetUser:input_type -> api.EmptyRequest + 2, // 7: api.UserAPI.GetUserComputeLimit:input_type -> api.EmptyRequest + 6, // 8: api.UserAPI.UpdateUser:input_type -> api.user.UpdateUserRequest + 7, // 9: api.UserAPI.ConfirmEMail:input_type -> api.user.ConfirmEMailRequest + 2, // 10: api.UserAPI.ResendConfirmEMail:input_type -> api.EmptyRequest + 8, // 11: api.UserAPI.ChangeUserPassword:input_type -> api.user.ChangeUserPasswordRequest + 9, // 12: api.UserAPI.BeginWebAuthnRegistration:input_type -> api.user.BeginWebAuthnRegistrationRequest + 10, // 13: api.UserAPI.FinishWebAuthnRegistration:input_type -> api.user.FinishWebAuthnRegistrationRequest + 11, // 14: api.UserAPI.DeleteWebAuthnDevice:input_type -> api.user.DeleteWebAuthnDeviceRequest + 2, // 15: api.UserAPI.ListSessions:input_type -> api.EmptyRequest + 12, // 16: api.UserAPI.DeleteSession:input_type -> api.user.DeleteSessionRequest + 13, // 17: api.UserAPI.CreateLongLivedToken:input_type -> api.user.CreateLongLivedTokenRequest + 2, // 18: api.UserAPI.ListLongLivedTokens:input_type -> api.EmptyRequest + 14, // 19: api.UserAPI.RevokeLongLivedToken:input_type -> api.user.RevokeLongLivedTokenRequest + 15, // 20: api.UserAPI.CreateProject:input_type -> api.project.CreateProjectRequest + 16, // 21: api.UserAPI.ChangeDefaultProject:input_type -> api.project.ChangeDefaultProjectRequest + 17, // 22: api.UserAPI.GetProject:input_type -> api.project.GetProjectRequest + 18, // 23: api.UserAPI.SubscribeProjectNotifications:input_type -> api.notification.SubscribeProjectNotificationsRequest + 19, // 24: api.UserAPI.GetProjectLogs:input_type -> api.project.GetProjectLogsRequest + 20, // 25: api.UserAPI.GetProjectTraffic:input_type -> api.project.GetProjectTrafficRequest + 21, // 26: api.UserAPI.GetProjectFlavours:input_type -> api.flavour.GetProjectFlavoursRequest + 22, // 27: api.UserAPI.UpdateProject:input_type -> api.project.UpdateProjectRequest + 23, // 28: api.UserAPI.JoinProject:input_type -> api.project.JoinProjectRequest + 24, // 29: api.UserAPI.LeaveProject:input_type -> api.project.LeaveProjectRequest + 25, // 30: api.UserAPI.InviteMemberToProject:input_type -> api.project.InviteMemberToProjectRequest + 26, // 31: api.UserAPI.RemoveMemberFromProject:input_type -> api.project.RemoveMemberFromProjectRequest + 2, // 32: api.UserAPI.ListProjects:input_type -> api.EmptyRequest + 27, // 33: api.UserAPI.DeleteProject:input_type -> api.project.DeleteProjectRequest + 28, // 34: api.UserAPI.GetProjectCurrentBillingPreviewPdf:input_type -> api.project.GetProjectCurrentBillingPreviewPdfRequest + 29, // 35: api.UserAPI.GetProjectBillPdf:input_type -> api.project.GetProjectBillPdfRequest + 30, // 36: api.UserAPI.RedeemVoucher:input_type -> api.voucher.RedeemVoucherRequest + 31, // 37: api.UserAPI.PayProjectNow:input_type -> api.project.PayProjectNowRequest + 32, // 38: api.UserAPI.GetProjectCurrentBillingPreview:input_type -> api.project.GetProjectCurrentBillingPreviewRequest + 2, // 39: api.UserAPI.GetProjectsOutstandingBalance:input_type -> api.EmptyRequest + 33, // 40: api.UserAPI.GetProjectBills:input_type -> api.project.GetProjectBillsRequest + 34, // 41: api.UserAPI.ListProjectSSHKeys:input_type -> api.project.ListProjectSSHKeysRequest + 2, // 42: api.UserAPI.ListUserSSHKeys:input_type -> api.EmptyRequest + 35, // 43: api.UserAPI.CreateUserSSHKey:input_type -> api.user.CreateUserSSHKeyRequest + 36, // 44: api.UserAPI.DeleteUserSSHKey:input_type -> api.user.DeleteUserSSHKeyRequest + 37, // 45: api.UserAPI.CreateProjectSupportTicket:input_type -> api.support.CreateProjectSupportTicketRequest + 38, // 46: api.UserAPI.GetProjectSupportTicket:input_type -> api.support.GetProjectSupportTicketRequest + 39, // 47: api.UserAPI.ListProjectSupportTickets:input_type -> api.support.ListProjectSupportTicketsRequest + 40, // 48: api.UserAPI.CloseProjectSupportTicket:input_type -> api.support.CloseProjectSupportTicketRequest + 41, // 49: api.UserAPI.AddProjectSupportTicketComment:input_type -> api.support.AddProjectSupportTicketCommentRequest + 42, // 50: api.UserAPI.ChangeProjectSupportPackage:input_type -> api.support.ChangeProjectSupportPackageRequest + 43, // 51: api.UserAPI.ListProjectSupportPackages:input_type -> api.support.ListProjectSupportPackagesRequest + 44, // 52: api.UserAPI.CreateComputeResource:input_type -> api.compute.CreateComputeResourceRequest + 45, // 53: api.UserAPI.ListComputeResources:input_type -> api.compute.ListComputeResourcesRequest + 46, // 54: api.UserAPI.GetComputeResource:input_type -> api.compute.GetComputeResourceRequest + 47, // 55: api.UserAPI.GetComputeResourceTraffic:input_type -> api.compute.GetComputeResourceTrafficRequest + 48, // 56: api.UserAPI.UpdateComputeResource:input_type -> api.compute.UpdateComputeResourceRequest + 49, // 57: api.UserAPI.GetComputeResourceConsole:input_type -> api.compute.GetComputeResourceConsoleRequest + 50, // 58: api.UserAPI.ChangeComputeResourceRescueMode:input_type -> api.compute.ComputeResourceRescueModeRequest + 51, // 59: api.UserAPI.PowerActionComputeResource:input_type -> api.compute.PowerActionComputeResourceRequest + 52, // 60: api.UserAPI.ReinstallComputeResource:input_type -> api.compute.ReinstallComputeResourceRequest + 53, // 61: api.UserAPI.DestroyComputeResource:input_type -> api.compute.DestroyComputeResourceRequest + 54, // 62: api.UserAPI.ListProjectNetworks:input_type -> api.network.ListProjectNetworksRequest + 55, // 63: api.UserAPI.GetProjectNetwork:input_type -> api.network.GetProjectNetworkRequest + 56, // 64: api.UserAPI.UpdateProjectNetwork:input_type -> api.network.UpdateProjectNetworkRequest + 57, // 65: api.UserAPI.CreateProjectNetworkSubnet:input_type -> api.network.CreateProjectNetworkSubnetRequest + 58, // 66: api.UserAPI.UpdateProjectNetworkSubnet:input_type -> api.network.UpdateProjectNetworkSubnetRequest + 59, // 67: api.UserAPI.DeleteProjectNetworkSubnet:input_type -> api.network.DeleteProjectNetworkSubnetRequest + 60, // 68: api.UserAPI.CreateProjectImage:input_type -> api.image.CreateProjectImageRequest + 61, // 69: api.UserAPI.ListProjectImages:input_type -> api.image.ListProjectImagesRequest + 62, // 70: api.UserAPI.GetProjectImage:input_type -> api.image.GetProjectImageRequest + 63, // 71: api.UserAPI.DeleteProjectImage:input_type -> api.image.DeleteProjectImageRequest + 64, // 72: api.UserAPI.DeleteProjectImageVersion:input_type -> api.image.DeleteProjectImageVersionRequest + 2, // 73: api.UserAPI.ListDataCenters:input_type -> api.EmptyRequest + 65, // 74: api.UserAPI.ListPublicImages:input_type -> api.image.ListPublicImagesRequest + 2, // 75: api.UserAPI.GetTwoFactorMethods:input_type -> api.EmptyRequest + 2, // 76: api.UserAPI.CreateTOTP:input_type -> api.EmptyRequest + 66, // 77: api.UserAPI.RemoveTOTP:input_type -> api.user.RemoveTOTPRequest + 67, // 78: api.UserAPI.AddTOTP:input_type -> api.user.AddTOTPRequest + 68, // 79: api.UserAPI.RegenerateRecoveryCodes:input_type -> api.user.RegenerateRecoveryCodesRequest + 2, // 80: api.UserAPI.ListCreditCards:input_type -> api.EmptyRequest + 69, // 81: api.UserAPI.AddCreditCard:input_type -> api.payment.AddCreditCardRequest + 70, // 82: api.UserAPI.DeleteCreditCard:input_type -> api.payment.DeleteCreditCardRequest + 2, // 83: api.UserAPI.ListCountries:input_type -> api.EmptyRequest + 71, // 84: api.UserAPI.CreateBillingAddress:input_type -> api.payment.CreateBillingAddressRequest + 2, // 85: api.UserAPI.ListBillingAddresses:input_type -> api.EmptyRequest + 72, // 86: api.UserAPI.DeleteBillingAddress:input_type -> api.payment.DeleteBillingAddressRequest + 73, // 87: api.UserAPI.GetSplaPrice:input_type -> api.spla.GetSplaPriceRequest + 74, // 88: api.GatewayAPI.GetVnc:input_type -> api.server.GetVNCRequest + 2, // 89: api.GatewayAPI.ListJwtPublicKeys:input_type -> api.EmptyRequest + 75, // 90: api.GatewayAPI.ImageUploadValidate:input_type -> api.image.ValidateImageUploadTokenRequest + 76, // 91: api.GatewayAPI.ImageUploadConfirm:input_type -> api.image.ConfirmImageUploadRequest + 77, // 92: api.ServiceAPI.GetMetadata:input_type -> api.metadata.MetadataRequest + 77, // 93: api.ServiceAPI.GetMetadataPassword:input_type -> api.metadata.MetadataRequest + 78, // 94: api.ServiceAPI.GetNetworkBootData:input_type -> api.metadata.NetworkBootDataRequest + 79, // 95: api.ServiceAPI.GetDHCPNetworks:input_type -> api.network.DHCPNetworksRequest + 80, // 96: api.ServiceAPI.PushHardwareInventory:input_type -> api.hardware.PushHardwareInventoryRequest + 2, // 97: api.ServiceAPI.ListSwitches:input_type -> api.EmptyRequest + 81, // 98: api.ServiceAPI.UpdateMacAddressMapping:input_type -> api.network.UpdateMacAddressMappingRequest + 82, // 99: api.ServiceAPI.GetAutoRunScript:input_type -> api.server.GetAutoRunScriptRequest + 83, // 100: api.ServiceAPI.PostProvisioningCallback:input_type -> api.server.PostProvisioningCallbackRequest + 84, // 101: api.ServiceAPI.FinishProvisioningCallback:input_type -> api.server.FinishProvisioningCallbackRequest + 85, // 102: api.ServiceAPI.PostDeprovisioningCallback:input_type -> api.server.PostDeprovisioningCallbackRequest + 2, // 103: api.ServiceAPI.ListMonitoringTargets:input_type -> api.EmptyRequest + 86, // 104: api.ServiceAPI.UpdateMonitoringStatus:input_type -> api.server.UpdateMonitoringStatusRequest + 2, // 105: api.ServiceAPI.ListPlatformManagements:input_type -> api.EmptyRequest + 87, // 106: api.PublicAPI.Login:output_type -> api.user.LoginResponse + 88, // 107: api.PublicAPI.Register:output_type -> api.user.RegisterResponse + 89, // 108: api.PublicAPI.ListJwtPublicKeys:output_type -> api.jwt.ListJwtPublicKeysResponse + 90, // 109: api.PublicAPI.RefreshTokens:output_type -> api.user.RefreshTokensResponse + 91, // 110: api.PublicAPI.RequestPasswordForgottenToken:output_type -> api.EmptyResponse + 91, // 111: api.PublicAPI.ResetUserPassword:output_type -> api.EmptyResponse + 92, // 112: api.UserAPI.GetUser:output_type -> api.user.GetUserResponse + 93, // 113: api.UserAPI.GetUserComputeLimit:output_type -> api.user.GetUserComputeLimitResponse + 94, // 114: api.UserAPI.UpdateUser:output_type -> api.user.UpdateUserResponse + 95, // 115: api.UserAPI.ConfirmEMail:output_type -> api.user.User + 91, // 116: api.UserAPI.ResendConfirmEMail:output_type -> api.EmptyResponse + 91, // 117: api.UserAPI.ChangeUserPassword:output_type -> api.EmptyResponse + 96, // 118: api.UserAPI.BeginWebAuthnRegistration:output_type -> api.user.BeginWebAuthnRegistrationResponse + 97, // 119: api.UserAPI.FinishWebAuthnRegistration:output_type -> api.user.FinishWebAuthnRegistrationResponse + 91, // 120: api.UserAPI.DeleteWebAuthnDevice:output_type -> api.EmptyResponse + 98, // 121: api.UserAPI.ListSessions:output_type -> api.user.ListSessionsResponse + 91, // 122: api.UserAPI.DeleteSession:output_type -> api.EmptyResponse + 99, // 123: api.UserAPI.CreateLongLivedToken:output_type -> api.user.LongLivedToken + 100, // 124: api.UserAPI.ListLongLivedTokens:output_type -> api.user.ListLongLivedTokensResponse + 91, // 125: api.UserAPI.RevokeLongLivedToken:output_type -> api.EmptyResponse + 101, // 126: api.UserAPI.CreateProject:output_type -> api.project.Project + 101, // 127: api.UserAPI.ChangeDefaultProject:output_type -> api.project.Project + 101, // 128: api.UserAPI.GetProject:output_type -> api.project.Project + 102, // 129: api.UserAPI.SubscribeProjectNotifications:output_type -> api.notification.ProjectNotification + 103, // 130: api.UserAPI.GetProjectLogs:output_type -> api.project.GetProjectLogsResponse + 104, // 131: api.UserAPI.GetProjectTraffic:output_type -> api.project.GetProjectTrafficResponse + 105, // 132: api.UserAPI.GetProjectFlavours:output_type -> api.flavour.GetProjectFlavoursResponse + 101, // 133: api.UserAPI.UpdateProject:output_type -> api.project.Project + 91, // 134: api.UserAPI.JoinProject:output_type -> api.EmptyResponse + 91, // 135: api.UserAPI.LeaveProject:output_type -> api.EmptyResponse + 106, // 136: api.UserAPI.InviteMemberToProject:output_type -> api.project.InviteMemberToProjectResponse + 91, // 137: api.UserAPI.RemoveMemberFromProject:output_type -> api.EmptyResponse + 107, // 138: api.UserAPI.ListProjects:output_type -> api.project.ListProjectsResponse + 91, // 139: api.UserAPI.DeleteProject:output_type -> api.EmptyResponse + 108, // 140: api.UserAPI.GetProjectCurrentBillingPreviewPdf:output_type -> api.project.GetProjectCurrentBillingPreviewPdfResponse + 109, // 141: api.UserAPI.GetProjectBillPdf:output_type -> api.project.GetProjectBillPdfResponse + 110, // 142: api.UserAPI.RedeemVoucher:output_type -> api.voucher.RedeemVoucherResponse + 91, // 143: api.UserAPI.PayProjectNow:output_type -> api.EmptyResponse + 111, // 144: api.UserAPI.GetProjectCurrentBillingPreview:output_type -> api.project.GetProjectCurrentBillingPreviewResponse + 112, // 145: api.UserAPI.GetProjectsOutstandingBalance:output_type -> api.project.GetProjectsOutstandingBalanceResponse + 113, // 146: api.UserAPI.GetProjectBills:output_type -> api.project.GetProjectBillsResponse + 114, // 147: api.UserAPI.ListProjectSSHKeys:output_type -> api.project.ListProjectSSHKeysResponse + 115, // 148: api.UserAPI.ListUserSSHKeys:output_type -> api.user.ListUserSSHKeysResponse + 116, // 149: api.UserAPI.CreateUserSSHKey:output_type -> api.security.SSHKey + 91, // 150: api.UserAPI.DeleteUserSSHKey:output_type -> api.EmptyResponse + 117, // 151: api.UserAPI.CreateProjectSupportTicket:output_type -> api.support.SupportTicket + 117, // 152: api.UserAPI.GetProjectSupportTicket:output_type -> api.support.SupportTicket + 118, // 153: api.UserAPI.ListProjectSupportTickets:output_type -> api.support.ListProjectSupportTicketsResponse + 91, // 154: api.UserAPI.CloseProjectSupportTicket:output_type -> api.EmptyResponse + 117, // 155: api.UserAPI.AddProjectSupportTicketComment:output_type -> api.support.SupportTicket + 91, // 156: api.UserAPI.ChangeProjectSupportPackage:output_type -> api.EmptyResponse + 119, // 157: api.UserAPI.ListProjectSupportPackages:output_type -> api.support.ListProjectSupportPackagesResponse + 120, // 158: api.UserAPI.CreateComputeResource:output_type -> api.compute.CreateComputeResourceResponse + 121, // 159: api.UserAPI.ListComputeResources:output_type -> api.compute.ListComputeResourcesResponse + 122, // 160: api.UserAPI.GetComputeResource:output_type -> api.compute.ComputeResource + 123, // 161: api.UserAPI.GetComputeResourceTraffic:output_type -> api.compute.GetComputeResourceTrafficResponse + 122, // 162: api.UserAPI.UpdateComputeResource:output_type -> api.compute.ComputeResource + 124, // 163: api.UserAPI.GetComputeResourceConsole:output_type -> api.compute.GetComputeResourceConsoleResponse + 91, // 164: api.UserAPI.ChangeComputeResourceRescueMode:output_type -> api.EmptyResponse + 91, // 165: api.UserAPI.PowerActionComputeResource:output_type -> api.EmptyResponse + 122, // 166: api.UserAPI.ReinstallComputeResource:output_type -> api.compute.ComputeResource + 91, // 167: api.UserAPI.DestroyComputeResource:output_type -> api.EmptyResponse + 125, // 168: api.UserAPI.ListProjectNetworks:output_type -> api.network.ListProjectNetworksResponse + 126, // 169: api.UserAPI.GetProjectNetwork:output_type -> api.network.Network + 126, // 170: api.UserAPI.UpdateProjectNetwork:output_type -> api.network.Network + 127, // 171: api.UserAPI.CreateProjectNetworkSubnet:output_type -> api.network.Subnet + 127, // 172: api.UserAPI.UpdateProjectNetworkSubnet:output_type -> api.network.Subnet + 91, // 173: api.UserAPI.DeleteProjectNetworkSubnet:output_type -> api.EmptyResponse + 128, // 174: api.UserAPI.CreateProjectImage:output_type -> api.image.Image + 129, // 175: api.UserAPI.ListProjectImages:output_type -> api.image.ListProjectImagesResponse + 128, // 176: api.UserAPI.GetProjectImage:output_type -> api.image.Image + 91, // 177: api.UserAPI.DeleteProjectImage:output_type -> api.EmptyResponse + 91, // 178: api.UserAPI.DeleteProjectImageVersion:output_type -> api.EmptyResponse + 130, // 179: api.UserAPI.ListDataCenters:output_type -> api.region.ListDataCenterResponse + 131, // 180: api.UserAPI.ListPublicImages:output_type -> api.image.ListImagesResponse + 132, // 181: api.UserAPI.GetTwoFactorMethods:output_type -> api.user.GetTwoFactorMethodsResponse + 133, // 182: api.UserAPI.CreateTOTP:output_type -> api.user.CreateTOTPResponse + 91, // 183: api.UserAPI.RemoveTOTP:output_type -> api.EmptyResponse + 91, // 184: api.UserAPI.AddTOTP:output_type -> api.EmptyResponse + 134, // 185: api.UserAPI.RegenerateRecoveryCodes:output_type -> api.user.RegenerateRecoveryCodesResponse + 135, // 186: api.UserAPI.ListCreditCards:output_type -> api.payment.ListCreditCardsResponse + 136, // 187: api.UserAPI.AddCreditCard:output_type -> api.payment.AddCreditCardResponse + 91, // 188: api.UserAPI.DeleteCreditCard:output_type -> api.EmptyResponse + 137, // 189: api.UserAPI.ListCountries:output_type -> api.payment.ListCountriesResponse + 138, // 190: api.UserAPI.CreateBillingAddress:output_type -> api.payment.BillingAddress + 139, // 191: api.UserAPI.ListBillingAddresses:output_type -> api.payment.ListBillingAddressesResponse + 91, // 192: api.UserAPI.DeleteBillingAddress:output_type -> api.EmptyResponse + 140, // 193: api.UserAPI.GetSplaPrice:output_type -> api.spla.GetSplaPriceResponse + 141, // 194: api.GatewayAPI.GetVnc:output_type -> api.server.GetVNCResponse + 89, // 195: api.GatewayAPI.ListJwtPublicKeys:output_type -> api.jwt.ListJwtPublicKeysResponse + 142, // 196: api.GatewayAPI.ImageUploadValidate:output_type -> api.image.ImageVersion + 91, // 197: api.GatewayAPI.ImageUploadConfirm:output_type -> api.EmptyResponse + 143, // 198: api.ServiceAPI.GetMetadata:output_type -> api.metadata.Metadata + 144, // 199: api.ServiceAPI.GetMetadataPassword:output_type -> api.metadata.MetadataPasswordResponse + 145, // 200: api.ServiceAPI.GetNetworkBootData:output_type -> api.metadata.NetworkBootDataResponse + 146, // 201: api.ServiceAPI.GetDHCPNetworks:output_type -> api.network.DHCPNetworksResponse + 91, // 202: api.ServiceAPI.PushHardwareInventory:output_type -> api.EmptyResponse + 147, // 203: api.ServiceAPI.ListSwitches:output_type -> api.network.ListSwitchesResponse + 91, // 204: api.ServiceAPI.UpdateMacAddressMapping:output_type -> api.EmptyResponse + 148, // 205: api.ServiceAPI.GetAutoRunScript:output_type -> api.server.GetAutoRunScriptResponse + 149, // 206: api.ServiceAPI.PostProvisioningCallback:output_type -> api.server.PostProvisioningCallbackResponse + 91, // 207: api.ServiceAPI.FinishProvisioningCallback:output_type -> api.EmptyResponse + 91, // 208: api.ServiceAPI.PostDeprovisioningCallback:output_type -> api.EmptyResponse + 150, // 209: api.ServiceAPI.ListMonitoringTargets:output_type -> api.server.ListMonitoringTargetsResponse + 91, // 210: api.ServiceAPI.UpdateMonitoringStatus:output_type -> api.EmptyResponse + 151, // 211: api.ServiceAPI.ListPlatformManagements:output_type -> api.server.ListPlatformManagementsResponse + 106, // [106:212] is the sub-list for method output_type + 0, // [0:106] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_service_proto_init() } +func file_service_proto_init() { + if File_service_proto != nil { + return + } + file_metadata_proto_init() + file_image_proto_init() + file_network_proto_init() + file_hardware_proto_init() + file_generic_proto_init() + file_security_proto_init() + file_project_proto_init() + file_server_proto_init() + file_region_proto_init() + file_user_proto_init() + file_jwt_proto_init() + file_compute_proto_init() + file_payment_proto_init() + file_voucher_proto_init() + file_spla_proto_init() + file_flavour_proto_init() + file_notification_proto_init() + file_support_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 4, + }, + GoTypes: file_service_proto_goTypes, + DependencyIndexes: file_service_proto_depIdxs, + }.Build() + File_service_proto = out.File + file_service_proto_rawDesc = nil + file_service_proto_goTypes = nil + file_service_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/service.pb.gw.go b/pkg/gpcloud/ptypes/service.pb.gw.go new file mode 100644 index 0000000..75e6ac6 --- /dev/null +++ b/pkg/gpcloud/ptypes/service.pb.gw.go @@ -0,0 +1,8968 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: service.proto + +/* +Package ptypes is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package ptypes + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_PublicAPI_Login_0(ctx context.Context, marshaler runtime.Marshaler, client PublicAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq LoginRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Login(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PublicAPI_Login_0(ctx context.Context, marshaler runtime.Marshaler, server PublicAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq LoginRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Login(ctx, &protoReq) + return msg, metadata, err + +} + +func request_PublicAPI_Register_0(ctx context.Context, marshaler runtime.Marshaler, client PublicAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RegisterRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Register(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PublicAPI_Register_0(ctx context.Context, marshaler runtime.Marshaler, server PublicAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RegisterRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Register(ctx, &protoReq) + return msg, metadata, err + +} + +func request_PublicAPI_ListJwtPublicKeys_0(ctx context.Context, marshaler runtime.Marshaler, client PublicAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListJwtPublicKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PublicAPI_ListJwtPublicKeys_0(ctx context.Context, marshaler runtime.Marshaler, server PublicAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.ListJwtPublicKeys(ctx, &protoReq) + return msg, metadata, err + +} + +func request_PublicAPI_RefreshTokens_0(ctx context.Context, marshaler runtime.Marshaler, client PublicAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RefreshTokensRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RefreshTokens(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PublicAPI_RefreshTokens_0(ctx context.Context, marshaler runtime.Marshaler, server PublicAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RefreshTokensRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.RefreshTokens(ctx, &protoReq) + return msg, metadata, err + +} + +func request_PublicAPI_RequestPasswordForgottenToken_0(ctx context.Context, marshaler runtime.Marshaler, client PublicAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RequestPasswordForgottenTokenRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RequestPasswordForgottenToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PublicAPI_RequestPasswordForgottenToken_0(ctx context.Context, marshaler runtime.Marshaler, server PublicAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RequestPasswordForgottenTokenRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.RequestPasswordForgottenToken(ctx, &protoReq) + return msg, metadata, err + +} + +func request_PublicAPI_ResetUserPassword_0(ctx context.Context, marshaler runtime.Marshaler, client PublicAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ResetUserPasswordRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ResetUserPassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_PublicAPI_ResetUserPassword_0(ctx context.Context, marshaler runtime.Marshaler, server PublicAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ResetUserPasswordRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ResetUserPassword(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.GetUser(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetUserComputeLimit_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetUserComputeLimit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetUserComputeLimit_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.GetUserComputeLimit(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_UpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateUserRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UpdateUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_UpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateUserRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UpdateUser(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ConfirmEMail_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ConfirmEMailRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ConfirmEMail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ConfirmEMail_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ConfirmEMailRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ConfirmEMail(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ResendConfirmEMail_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ResendConfirmEMail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ResendConfirmEMail_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ResendConfirmEMail(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ChangeUserPassword_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeUserPasswordRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ChangeUserPassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ChangeUserPassword_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeUserPasswordRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ChangeUserPassword(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_UserAPI_BeginWebAuthnRegistration_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_UserAPI_BeginWebAuthnRegistration_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BeginWebAuthnRegistrationRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_BeginWebAuthnRegistration_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.BeginWebAuthnRegistration(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_BeginWebAuthnRegistration_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq BeginWebAuthnRegistrationRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_BeginWebAuthnRegistration_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.BeginWebAuthnRegistration(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_FinishWebAuthnRegistration_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq FinishWebAuthnRegistrationRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.FinishWebAuthnRegistration(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_FinishWebAuthnRegistration_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq FinishWebAuthnRegistrationRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.FinishWebAuthnRegistration(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_DeleteWebAuthnDevice_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteWebAuthnDeviceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.DeleteWebAuthnDevice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_DeleteWebAuthnDevice_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteWebAuthnDeviceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.DeleteWebAuthnDevice(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListSessions_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListSessions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListSessions_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.ListSessions(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_DeleteSession_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteSessionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["session_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "session_id") + } + + protoReq.SessionId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "session_id", err) + } + + msg, err := client.DeleteSession(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_DeleteSession_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteSessionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["session_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "session_id") + } + + protoReq.SessionId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "session_id", err) + } + + msg, err := server.DeleteSession(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_UserAPI_CreateLongLivedToken_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_UserAPI_CreateLongLivedToken_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateLongLivedTokenRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_CreateLongLivedToken_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateLongLivedToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_CreateLongLivedToken_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateLongLivedTokenRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_CreateLongLivedToken_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateLongLivedToken(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListLongLivedTokens_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListLongLivedTokens(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListLongLivedTokens_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.ListLongLivedTokens(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_RevokeLongLivedToken_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RevokeLongLivedTokenRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := client.RevokeLongLivedToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_RevokeLongLivedToken_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RevokeLongLivedTokenRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["token_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "token_id") + } + + protoReq.TokenId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "token_id", err) + } + + msg, err := server.RevokeLongLivedToken(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_CreateProject_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_CreateProject_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ChangeDefaultProject_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeDefaultProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.ChangeDefaultProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ChangeDefaultProject_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeDefaultProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.ChangeDefaultProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProject_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.GetProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProject_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.GetProject(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_UserAPI_SubscribeProjectNotifications_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_UserAPI_SubscribeProjectNotifications_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (UserAPI_SubscribeProjectNotificationsClient, runtime.ServerMetadata, error) { + var protoReq SubscribeProjectNotificationsRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_SubscribeProjectNotifications_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + stream, err := client.SubscribeProjectNotifications(ctx, &protoReq) + if err != nil { + return nil, metadata, err + } + header, err := stream.Header() + if err != nil { + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil + +} + +var ( + filter_UserAPI_GetProjectLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"project_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_UserAPI_GetProjectLogs_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectLogsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_GetProjectLogs_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetProjectLogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectLogs_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectLogsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_GetProjectLogs_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetProjectLogs(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProjectTraffic_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectTrafficRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.GetProjectTraffic(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectTraffic_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectTrafficRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.GetProjectTraffic(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProjectFlavours_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectFlavoursRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["datacenter_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "datacenter_id") + } + + protoReq.DatacenterId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "datacenter_id", err) + } + + msg, err := client.GetProjectFlavours(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectFlavours_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectFlavoursRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["datacenter_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "datacenter_id") + } + + protoReq.DatacenterId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "datacenter_id", err) + } + + msg, err := server.GetProjectFlavours(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.UpdateProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.UpdateProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_JoinProject_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq JoinProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.JoinProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_JoinProject_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq JoinProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.JoinProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_LeaveProject_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq LeaveProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.LeaveProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_LeaveProject_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq LeaveProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.LeaveProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_InviteMemberToProject_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq InviteMemberToProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.InviteMemberToProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_InviteMemberToProject_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq InviteMemberToProjectRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.InviteMemberToProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_RemoveMemberFromProject_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RemoveMemberFromProjectRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := client.RemoveMemberFromProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_RemoveMemberFromProject_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RemoveMemberFromProjectRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["user_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") + } + + protoReq.UserId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) + } + + msg, err := server.RemoveMemberFromProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListProjects_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListProjects_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.ListProjects(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_DeleteProject_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteProjectRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.DeleteProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_DeleteProject_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteProjectRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.DeleteProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProjectCurrentBillingPreviewPdf_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectCurrentBillingPreviewPdfRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.GetProjectCurrentBillingPreviewPdf(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectCurrentBillingPreviewPdf_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectCurrentBillingPreviewPdfRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.GetProjectCurrentBillingPreviewPdf(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProjectBillPdf_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectBillPdfRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["bill_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "bill_id") + } + + protoReq.BillId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "bill_id", err) + } + + msg, err := client.GetProjectBillPdf(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectBillPdf_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectBillPdfRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["bill_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "bill_id") + } + + protoReq.BillId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "bill_id", err) + } + + msg, err := server.GetProjectBillPdf(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_RedeemVoucher_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RedeemVoucherRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.RedeemVoucher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_RedeemVoucher_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RedeemVoucherRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.RedeemVoucher(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_PayProjectNow_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PayProjectNowRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.PayProjectNow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_PayProjectNow_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PayProjectNowRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.PayProjectNow(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProjectCurrentBillingPreview_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectCurrentBillingPreviewRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.GetProjectCurrentBillingPreview(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectCurrentBillingPreview_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectCurrentBillingPreviewRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.GetProjectCurrentBillingPreview(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProjectsOutstandingBalance_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetProjectsOutstandingBalance(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectsOutstandingBalance_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.GetProjectsOutstandingBalance(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProjectBills_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectBillsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["year"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "year") + } + + protoReq.Year, err = runtime.Int32(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "year", err) + } + + msg, err := client.GetProjectBills(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectBills_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectBillsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["year"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "year") + } + + protoReq.Year, err = runtime.Int32(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "year", err) + } + + msg, err := server.GetProjectBills(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListProjectSSHKeys_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListProjectSSHKeysRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.ListProjectSSHKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListProjectSSHKeys_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListProjectSSHKeysRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.ListProjectSSHKeys(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListUserSSHKeys_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListUserSSHKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListUserSSHKeys_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.ListUserSSHKeys(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_CreateUserSSHKey_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateUserSSHKeyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateUserSSHKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_CreateUserSSHKey_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateUserSSHKeyRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateUserSSHKey(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_DeleteUserSSHKey_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteUserSSHKeyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["ssh_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ssh_key_id") + } + + protoReq.SshKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ssh_key_id", err) + } + + msg, err := client.DeleteUserSSHKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_DeleteUserSSHKey_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteUserSSHKeyRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["ssh_key_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "ssh_key_id") + } + + protoReq.SshKeyId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "ssh_key_id", err) + } + + msg, err := server.DeleteUserSSHKey(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_CreateProjectSupportTicket_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateProjectSupportTicketRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.CreateProjectSupportTicket(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_CreateProjectSupportTicket_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateProjectSupportTicketRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.CreateProjectSupportTicket(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProjectSupportTicket_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectSupportTicketRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.GetProjectSupportTicket(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectSupportTicket_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectSupportTicketRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.GetProjectSupportTicket(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListProjectSupportTickets_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListProjectSupportTicketsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.ListProjectSupportTickets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListProjectSupportTickets_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListProjectSupportTicketsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.ListProjectSupportTickets(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_CloseProjectSupportTicket_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CloseProjectSupportTicketRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.CloseProjectSupportTicket(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_CloseProjectSupportTicket_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CloseProjectSupportTicketRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.CloseProjectSupportTicket(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_AddProjectSupportTicketComment_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddProjectSupportTicketCommentRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.AddProjectSupportTicketComment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_AddProjectSupportTicketComment_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddProjectSupportTicketCommentRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.AddProjectSupportTicketComment(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ChangeProjectSupportPackage_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeProjectSupportPackageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["plan"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "plan") + } + + e, err = runtime.Enum(val, SupportPackageType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "plan", err) + } + + protoReq.Plan = SupportPackageType(e) + + msg, err := client.ChangeProjectSupportPackage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ChangeProjectSupportPackage_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ChangeProjectSupportPackageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["plan"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "plan") + } + + e, err = runtime.Enum(val, SupportPackageType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "plan", err) + } + + protoReq.Plan = SupportPackageType(e) + + msg, err := server.ChangeProjectSupportPackage(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListProjectSupportPackages_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListProjectSupportPackagesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.ListProjectSupportPackages(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListProjectSupportPackages_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListProjectSupportPackagesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.ListProjectSupportPackages(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_CreateComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateComputeResourceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.CreateComputeResource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_CreateComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateComputeResourceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.CreateComputeResource(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_UserAPI_ListComputeResources_0 = &utilities.DoubleArray{Encoding: map[string]int{"project_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_UserAPI_ListComputeResources_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListComputeResourcesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_ListComputeResources_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListComputeResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListComputeResources_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListComputeResourcesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_ListComputeResources_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListComputeResources(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetComputeResourceRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := client.GetComputeResource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetComputeResourceRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := server.GetComputeResource(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetComputeResourceTraffic_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetComputeResourceTrafficRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := client.GetComputeResourceTraffic(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetComputeResourceTraffic_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetComputeResourceTrafficRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := server.GetComputeResourceTraffic(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_UpdateComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateComputeResourceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := client.UpdateComputeResource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_UpdateComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateComputeResourceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := server.UpdateComputeResource(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetComputeResourceConsole_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetComputeResourceConsoleRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := client.GetComputeResourceConsole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetComputeResourceConsole_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetComputeResourceConsoleRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := server.GetComputeResourceConsole(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ChangeComputeResourceRescueMode_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ComputeResourceRescueModeRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := client.ChangeComputeResourceRescueMode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ChangeComputeResourceRescueMode_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ComputeResourceRescueModeRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := server.ChangeComputeResourceRescueMode(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_PowerActionComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PowerActionComputeResourceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := client.PowerActionComputeResource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_PowerActionComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PowerActionComputeResourceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := server.PowerActionComputeResource(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ReinstallComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ReinstallComputeResourceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := client.ReinstallComputeResource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ReinstallComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ReinstallComputeResourceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := server.ReinstallComputeResource(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_DestroyComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DestroyComputeResourceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := client.DestroyComputeResource(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_DestroyComputeResource_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DestroyComputeResourceRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["resource_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_id") + } + + protoReq.ResourceId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_id", err) + } + + msg, err := server.DestroyComputeResource(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListProjectNetworks_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListProjectNetworksRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.ListProjectNetworks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListProjectNetworks_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListProjectNetworksRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.ListProjectNetworks(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProjectNetwork_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectNetworkRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.GetProjectNetwork(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectNetwork_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectNetworkRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.GetProjectNetwork(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_UpdateProjectNetwork_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateProjectNetworkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.UpdateProjectNetwork(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_UpdateProjectNetwork_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateProjectNetworkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.UpdateProjectNetwork(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_CreateProjectNetworkSubnet_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateProjectNetworkSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.CreateProjectNetworkSubnet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_CreateProjectNetworkSubnet_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateProjectNetworkSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.CreateProjectNetworkSubnet(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_UpdateProjectNetworkSubnet_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateProjectNetworkSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.UpdateProjectNetworkSubnet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_UpdateProjectNetworkSubnet_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateProjectNetworkSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.UpdateProjectNetworkSubnet(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_DeleteProjectNetworkSubnet_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteProjectNetworkSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.DeleteProjectNetworkSubnet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_DeleteProjectNetworkSubnet_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteProjectNetworkSubnetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.DeleteProjectNetworkSubnet(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_CreateProjectImage_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateProjectImageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.CreateProjectImage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_CreateProjectImage_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateProjectImageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.CreateProjectImage(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListProjectImages_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListProjectImagesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := client.ListProjectImages(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListProjectImages_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListProjectImagesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + msg, err := server.ListProjectImages(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetProjectImage_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectImageRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["image_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "image_id") + } + + protoReq.ImageId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "image_id", err) + } + + msg, err := client.GetProjectImage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetProjectImage_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetProjectImageRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["image_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "image_id") + } + + protoReq.ImageId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "image_id", err) + } + + msg, err := server.GetProjectImage(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_DeleteProjectImage_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteProjectImageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["image_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "image_id") + } + + protoReq.ImageId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "image_id", err) + } + + msg, err := client.DeleteProjectImage(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_DeleteProjectImage_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteProjectImageRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["image_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "image_id") + } + + protoReq.ImageId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "image_id", err) + } + + msg, err := server.DeleteProjectImage(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_DeleteProjectImageVersion_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteProjectImageVersionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["image_version_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "image_version_id") + } + + protoReq.ImageVersionId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "image_version_id", err) + } + + msg, err := client.DeleteProjectImageVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_DeleteProjectImageVersion_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteProjectImageVersionRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") + } + + protoReq.ProjectId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) + } + + val, ok = pathParams["image_version_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "image_version_id") + } + + protoReq.ImageVersionId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "image_version_id", err) + } + + msg, err := server.DeleteProjectImageVersion(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListDataCenters_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListDataCenters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListDataCenters_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.ListDataCenters(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListPublicImages_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListPublicImagesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["flavour_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "flavour_id") + } + + protoReq.FlavourId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "flavour_id", err) + } + + msg, err := client.ListPublicImages(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListPublicImages_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListPublicImagesRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["flavour_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "flavour_id") + } + + protoReq.FlavourId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "flavour_id", err) + } + + msg, err := server.ListPublicImages(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_GetTwoFactorMethods_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetTwoFactorMethods(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetTwoFactorMethods_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.GetTwoFactorMethods(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_CreateTOTP_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.CreateTOTP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_CreateTOTP_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.CreateTOTP(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_RemoveTOTP_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RemoveTOTPRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RemoveTOTP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_RemoveTOTP_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RemoveTOTPRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.RemoveTOTP(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_AddTOTP_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddTOTPRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AddTOTP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_AddTOTP_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddTOTPRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AddTOTP(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_RegenerateRecoveryCodes_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RegenerateRecoveryCodesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RegenerateRecoveryCodes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_RegenerateRecoveryCodes_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq RegenerateRecoveryCodesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.RegenerateRecoveryCodes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListCreditCards_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListCreditCards(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListCreditCards_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.ListCreditCards(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_AddCreditCard_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddCreditCardRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.AddCreditCard(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_AddCreditCard_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq AddCreditCardRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.AddCreditCard(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_DeleteCreditCard_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteCreditCardRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["card_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "card_id") + } + + protoReq.CardId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "card_id", err) + } + + msg, err := client.DeleteCreditCard(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_DeleteCreditCard_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteCreditCardRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["card_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "card_id") + } + + protoReq.CardId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "card_id", err) + } + + msg, err := server.DeleteCreditCard(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListCountries_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListCountries(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListCountries_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.ListCountries(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_CreateBillingAddress_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateBillingAddressRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateBillingAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_CreateBillingAddress_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateBillingAddressRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateBillingAddress(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_ListBillingAddresses_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListBillingAddresses(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_ListBillingAddresses_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq EmptyRequest + var metadata runtime.ServerMetadata + + msg, err := server.ListBillingAddresses(ctx, &protoReq) + return msg, metadata, err + +} + +func request_UserAPI_DeleteBillingAddress_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteBillingAddressRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address_id") + } + + protoReq.AddressId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address_id", err) + } + + msg, err := client.DeleteBillingAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_DeleteBillingAddress_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeleteBillingAddressRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["address_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address_id") + } + + protoReq.AddressId, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address_id", err) + } + + msg, err := server.DeleteBillingAddress(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_UserAPI_GetSplaPrice_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_UserAPI_GetSplaPrice_0(ctx context.Context, marshaler runtime.Marshaler, client UserAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetSplaPriceRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_GetSplaPrice_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetSplaPrice(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_UserAPI_GetSplaPrice_0(ctx context.Context, marshaler runtime.Marshaler, server UserAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetSplaPriceRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_UserAPI_GetSplaPrice_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetSplaPrice(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterPublicAPIHandlerServer registers the http handlers for service PublicAPI to "mux". +// UnaryRPC :call PublicAPIServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPublicAPIHandlerFromEndpoint instead. +func RegisterPublicAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicAPIServer) error { + + mux.Handle("POST", pattern_PublicAPI_Login_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.PublicAPI/Login") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicAPI_Login_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_Login_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PublicAPI_Register_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.PublicAPI/Register") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicAPI_Register_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_Register_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_PublicAPI_ListJwtPublicKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.PublicAPI/ListJwtPublicKeys") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicAPI_ListJwtPublicKeys_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_ListJwtPublicKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PublicAPI_RefreshTokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.PublicAPI/RefreshTokens") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicAPI_RefreshTokens_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_RefreshTokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PublicAPI_RequestPasswordForgottenToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.PublicAPI/RequestPasswordForgottenToken") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicAPI_RequestPasswordForgottenToken_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_RequestPasswordForgottenToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PublicAPI_ResetUserPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.PublicAPI/ResetUserPassword") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicAPI_ResetUserPassword_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_ResetUserPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterUserAPIHandlerServer registers the http handlers for service UserAPI to "mux". +// UnaryRPC :call UserAPIServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserAPIHandlerFromEndpoint instead. +func RegisterUserAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserAPIServer) error { + + mux.Handle("GET", pattern_UserAPI_GetUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetUser_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetUserComputeLimit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetUserComputeLimit") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetUserComputeLimit_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetUserComputeLimit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_UpdateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/UpdateUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_UpdateUser_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_UpdateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ConfirmEMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ConfirmEMail") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ConfirmEMail_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ConfirmEMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ResendConfirmEMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ResendConfirmEMail") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ResendConfirmEMail_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ResendConfirmEMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ChangeUserPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ChangeUserPassword") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ChangeUserPassword_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ChangeUserPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_BeginWebAuthnRegistration_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/BeginWebAuthnRegistration") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_BeginWebAuthnRegistration_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_BeginWebAuthnRegistration_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_FinishWebAuthnRegistration_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/FinishWebAuthnRegistration") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_FinishWebAuthnRegistration_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_FinishWebAuthnRegistration_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteWebAuthnDevice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/DeleteWebAuthnDevice") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_DeleteWebAuthnDevice_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteWebAuthnDevice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListSessions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListSessions") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListSessions_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListSessions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteSession_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/DeleteSession") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_DeleteSession_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteSession_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateLongLivedToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/CreateLongLivedToken") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_CreateLongLivedToken_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateLongLivedToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListLongLivedTokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListLongLivedTokens") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListLongLivedTokens_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListLongLivedTokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_RevokeLongLivedToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/RevokeLongLivedToken") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_RevokeLongLivedToken_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_RevokeLongLivedToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/CreateProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_CreateProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ChangeDefaultProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ChangeDefaultProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ChangeDefaultProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ChangeDefaultProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_SubscribeProjectNotifications_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectLogs") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectLogs_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectLogs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectTraffic_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectTraffic") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectTraffic_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectTraffic_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectFlavours_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectFlavours") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectFlavours_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectFlavours_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_UpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/UpdateProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_UpdateProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_UpdateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_JoinProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/JoinProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_JoinProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_JoinProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_LeaveProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/LeaveProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_LeaveProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_LeaveProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_InviteMemberToProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/InviteMemberToProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_InviteMemberToProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_InviteMemberToProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_RemoveMemberFromProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/RemoveMemberFromProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_RemoveMemberFromProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_RemoveMemberFromProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListProjects") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListProjects_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/DeleteProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_DeleteProject_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectCurrentBillingPreviewPdf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectCurrentBillingPreviewPdf") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectCurrentBillingPreviewPdf_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectCurrentBillingPreviewPdf_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectBillPdf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectBillPdf") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectBillPdf_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectBillPdf_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_RedeemVoucher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/RedeemVoucher") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_RedeemVoucher_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_RedeemVoucher_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_PayProjectNow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/PayProjectNow") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_PayProjectNow_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_PayProjectNow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectCurrentBillingPreview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectCurrentBillingPreview") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectCurrentBillingPreview_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectCurrentBillingPreview_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectsOutstandingBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectsOutstandingBalance") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectsOutstandingBalance_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectsOutstandingBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectBills_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectBills") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectBills_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectBills_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjectSSHKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListProjectSSHKeys") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListProjectSSHKeys_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjectSSHKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListUserSSHKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListUserSSHKeys") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListUserSSHKeys_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListUserSSHKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateUserSSHKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/CreateUserSSHKey") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_CreateUserSSHKey_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateUserSSHKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteUserSSHKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/DeleteUserSSHKey") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_DeleteUserSSHKey_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteUserSSHKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateProjectSupportTicket_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/CreateProjectSupportTicket") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_CreateProjectSupportTicket_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateProjectSupportTicket_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectSupportTicket_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectSupportTicket") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectSupportTicket_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectSupportTicket_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjectSupportTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListProjectSupportTickets") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListProjectSupportTickets_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjectSupportTickets_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_CloseProjectSupportTicket_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/CloseProjectSupportTicket") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_CloseProjectSupportTicket_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CloseProjectSupportTicket_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_AddProjectSupportTicketComment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/AddProjectSupportTicketComment") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_AddProjectSupportTicketComment_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_AddProjectSupportTicketComment_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ChangeProjectSupportPackage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ChangeProjectSupportPackage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ChangeProjectSupportPackage_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ChangeProjectSupportPackage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjectSupportPackages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListProjectSupportPackages") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListProjectSupportPackages_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjectSupportPackages_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/CreateComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_CreateComputeResource_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListComputeResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListComputeResources") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListComputeResources_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListComputeResources_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetComputeResource_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetComputeResourceTraffic_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetComputeResourceTraffic") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetComputeResourceTraffic_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetComputeResourceTraffic_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_UpdateComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/UpdateComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_UpdateComputeResource_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_UpdateComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetComputeResourceConsole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetComputeResourceConsole") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetComputeResourceConsole_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetComputeResourceConsole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ChangeComputeResourceRescueMode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ChangeComputeResourceRescueMode") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ChangeComputeResourceRescueMode_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ChangeComputeResourceRescueMode_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_PowerActionComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/PowerActionComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_PowerActionComputeResource_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_PowerActionComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ReinstallComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ReinstallComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ReinstallComputeResource_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ReinstallComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DestroyComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/DestroyComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_DestroyComputeResource_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DestroyComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjectNetworks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListProjectNetworks") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListProjectNetworks_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjectNetworks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectNetwork_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_UpdateProjectNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/UpdateProjectNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_UpdateProjectNetwork_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_UpdateProjectNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateProjectNetworkSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/CreateProjectNetworkSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_CreateProjectNetworkSubnet_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateProjectNetworkSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_UpdateProjectNetworkSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/UpdateProjectNetworkSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_UpdateProjectNetworkSubnet_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_UpdateProjectNetworkSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteProjectNetworkSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/DeleteProjectNetworkSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_DeleteProjectNetworkSubnet_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteProjectNetworkSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateProjectImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/CreateProjectImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_CreateProjectImage_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateProjectImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjectImages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListProjectImages") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListProjectImages_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjectImages_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetProjectImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetProjectImage_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_DeleteProjectImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/DeleteProjectImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_DeleteProjectImage_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteProjectImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_DeleteProjectImageVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/DeleteProjectImageVersion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_DeleteProjectImageVersion_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteProjectImageVersion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListDataCenters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListDataCenters") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListDataCenters_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListDataCenters_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListPublicImages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListPublicImages") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListPublicImages_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListPublicImages_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetTwoFactorMethods_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetTwoFactorMethods") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetTwoFactorMethods_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetTwoFactorMethods_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_CreateTOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/CreateTOTP") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_CreateTOTP_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateTOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_RemoveTOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/RemoveTOTP") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_RemoveTOTP_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_RemoveTOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_AddTOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/AddTOTP") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_AddTOTP_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_AddTOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_RegenerateRecoveryCodes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/RegenerateRecoveryCodes") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_RegenerateRecoveryCodes_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_RegenerateRecoveryCodes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListCreditCards_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListCreditCards") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListCreditCards_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListCreditCards_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_AddCreditCard_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/AddCreditCard") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_AddCreditCard_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_AddCreditCard_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteCreditCard_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/DeleteCreditCard") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_DeleteCreditCard_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteCreditCard_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListCountries_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListCountries") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListCountries_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListCountries_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateBillingAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/CreateBillingAddress") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_CreateBillingAddress_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateBillingAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListBillingAddresses_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/ListBillingAddresses") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_ListBillingAddresses_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListBillingAddresses_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteBillingAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/DeleteBillingAddress") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_DeleteBillingAddress_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteBillingAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetSplaPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/api.UserAPI/GetSplaPrice") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_UserAPI_GetSplaPrice_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetSplaPrice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterPublicAPIHandlerFromEndpoint is same as RegisterPublicAPIHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterPublicAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterPublicAPIHandler(ctx, mux, conn) +} + +// RegisterPublicAPIHandler registers the http handlers for service PublicAPI to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterPublicAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterPublicAPIHandlerClient(ctx, mux, NewPublicAPIClient(conn)) +} + +// RegisterPublicAPIHandlerClient registers the http handlers for service PublicAPI +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PublicAPIClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PublicAPIClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "PublicAPIClient" to call the correct interceptors. +func RegisterPublicAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicAPIClient) error { + + mux.Handle("POST", pattern_PublicAPI_Login_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.PublicAPI/Login") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicAPI_Login_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_Login_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PublicAPI_Register_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.PublicAPI/Register") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicAPI_Register_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_Register_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_PublicAPI_ListJwtPublicKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.PublicAPI/ListJwtPublicKeys") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicAPI_ListJwtPublicKeys_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_ListJwtPublicKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PublicAPI_RefreshTokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.PublicAPI/RefreshTokens") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicAPI_RefreshTokens_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_RefreshTokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PublicAPI_RequestPasswordForgottenToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.PublicAPI/RequestPasswordForgottenToken") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicAPI_RequestPasswordForgottenToken_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_RequestPasswordForgottenToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_PublicAPI_ResetUserPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.PublicAPI/ResetUserPassword") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicAPI_ResetUserPassword_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_PublicAPI_ResetUserPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_PublicAPI_Login_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "users", "login"}, "")) + + pattern_PublicAPI_Register_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "users", "register"}, "")) + + pattern_PublicAPI_ListJwtPublicKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "jwt_keys"}, "")) + + pattern_PublicAPI_RefreshTokens_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "token", "refresh"}, "")) + + pattern_PublicAPI_RequestPasswordForgottenToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "users", "recovery", "password", "token"}, "")) + + pattern_PublicAPI_ResetUserPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "users", "recovery", "password", "reset"}, "")) +) + +var ( + forward_PublicAPI_Login_0 = runtime.ForwardResponseMessage + + forward_PublicAPI_Register_0 = runtime.ForwardResponseMessage + + forward_PublicAPI_ListJwtPublicKeys_0 = runtime.ForwardResponseMessage + + forward_PublicAPI_RefreshTokens_0 = runtime.ForwardResponseMessage + + forward_PublicAPI_RequestPasswordForgottenToken_0 = runtime.ForwardResponseMessage + + forward_PublicAPI_ResetUserPassword_0 = runtime.ForwardResponseMessage +) + +// RegisterUserAPIHandlerFromEndpoint is same as RegisterUserAPIHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterUserAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterUserAPIHandler(ctx, mux, conn) +} + +// RegisterUserAPIHandler registers the http handlers for service UserAPI to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterUserAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterUserAPIHandlerClient(ctx, mux, NewUserAPIClient(conn)) +} + +// RegisterUserAPIHandlerClient registers the http handlers for service UserAPI +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserAPIClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserAPIClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "UserAPIClient" to call the correct interceptors. +func RegisterUserAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserAPIClient) error { + + mux.Handle("GET", pattern_UserAPI_GetUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetUser_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetUserComputeLimit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetUserComputeLimit") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetUserComputeLimit_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetUserComputeLimit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_UpdateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/UpdateUser") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_UpdateUser_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_UpdateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ConfirmEMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ConfirmEMail") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ConfirmEMail_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ConfirmEMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ResendConfirmEMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ResendConfirmEMail") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ResendConfirmEMail_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ResendConfirmEMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ChangeUserPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ChangeUserPassword") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ChangeUserPassword_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ChangeUserPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_BeginWebAuthnRegistration_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/BeginWebAuthnRegistration") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_BeginWebAuthnRegistration_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_BeginWebAuthnRegistration_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_FinishWebAuthnRegistration_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/FinishWebAuthnRegistration") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_FinishWebAuthnRegistration_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_FinishWebAuthnRegistration_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteWebAuthnDevice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/DeleteWebAuthnDevice") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_DeleteWebAuthnDevice_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteWebAuthnDevice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListSessions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListSessions") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListSessions_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListSessions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteSession_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/DeleteSession") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_DeleteSession_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteSession_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateLongLivedToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/CreateLongLivedToken") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_CreateLongLivedToken_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateLongLivedToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListLongLivedTokens_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListLongLivedTokens") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListLongLivedTokens_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListLongLivedTokens_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_RevokeLongLivedToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/RevokeLongLivedToken") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_RevokeLongLivedToken_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_RevokeLongLivedToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/CreateProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_CreateProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ChangeDefaultProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ChangeDefaultProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ChangeDefaultProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ChangeDefaultProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_SubscribeProjectNotifications_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/SubscribeProjectNotifications") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_SubscribeProjectNotifications_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_SubscribeProjectNotifications_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectLogs") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectLogs_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectLogs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectTraffic_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectTraffic") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectTraffic_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectTraffic_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectFlavours_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectFlavours") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectFlavours_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectFlavours_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_UpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/UpdateProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_UpdateProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_UpdateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_JoinProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/JoinProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_JoinProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_JoinProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_LeaveProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/LeaveProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_LeaveProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_LeaveProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_InviteMemberToProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/InviteMemberToProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_InviteMemberToProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_InviteMemberToProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_RemoveMemberFromProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/RemoveMemberFromProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_RemoveMemberFromProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_RemoveMemberFromProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListProjects") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListProjects_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/DeleteProject") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_DeleteProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectCurrentBillingPreviewPdf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectCurrentBillingPreviewPdf") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectCurrentBillingPreviewPdf_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectCurrentBillingPreviewPdf_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectBillPdf_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectBillPdf") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectBillPdf_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectBillPdf_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_RedeemVoucher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/RedeemVoucher") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_RedeemVoucher_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_RedeemVoucher_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_PayProjectNow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/PayProjectNow") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_PayProjectNow_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_PayProjectNow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectCurrentBillingPreview_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectCurrentBillingPreview") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectCurrentBillingPreview_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectCurrentBillingPreview_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectsOutstandingBalance_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectsOutstandingBalance") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectsOutstandingBalance_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectsOutstandingBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectBills_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectBills") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectBills_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectBills_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjectSSHKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListProjectSSHKeys") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListProjectSSHKeys_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjectSSHKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListUserSSHKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListUserSSHKeys") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListUserSSHKeys_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListUserSSHKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateUserSSHKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/CreateUserSSHKey") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_CreateUserSSHKey_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateUserSSHKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteUserSSHKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/DeleteUserSSHKey") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_DeleteUserSSHKey_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteUserSSHKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateProjectSupportTicket_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/CreateProjectSupportTicket") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_CreateProjectSupportTicket_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateProjectSupportTicket_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectSupportTicket_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectSupportTicket") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectSupportTicket_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectSupportTicket_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjectSupportTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListProjectSupportTickets") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListProjectSupportTickets_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjectSupportTickets_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_CloseProjectSupportTicket_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/CloseProjectSupportTicket") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_CloseProjectSupportTicket_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CloseProjectSupportTicket_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_AddProjectSupportTicketComment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/AddProjectSupportTicketComment") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_AddProjectSupportTicketComment_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_AddProjectSupportTicketComment_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ChangeProjectSupportPackage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ChangeProjectSupportPackage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ChangeProjectSupportPackage_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ChangeProjectSupportPackage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjectSupportPackages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListProjectSupportPackages") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListProjectSupportPackages_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjectSupportPackages_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/CreateComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_CreateComputeResource_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListComputeResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListComputeResources") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListComputeResources_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListComputeResources_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetComputeResource_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetComputeResourceTraffic_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetComputeResourceTraffic") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetComputeResourceTraffic_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetComputeResourceTraffic_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_UpdateComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/UpdateComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_UpdateComputeResource_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_UpdateComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetComputeResourceConsole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetComputeResourceConsole") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetComputeResourceConsole_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetComputeResourceConsole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ChangeComputeResourceRescueMode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ChangeComputeResourceRescueMode") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ChangeComputeResourceRescueMode_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ChangeComputeResourceRescueMode_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_PowerActionComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/PowerActionComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_PowerActionComputeResource_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_PowerActionComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_ReinstallComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ReinstallComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ReinstallComputeResource_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ReinstallComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DestroyComputeResource_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/DestroyComputeResource") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_DestroyComputeResource_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DestroyComputeResource_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjectNetworks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListProjectNetworks") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListProjectNetworks_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjectNetworks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectNetwork_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_UpdateProjectNetwork_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/UpdateProjectNetwork") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_UpdateProjectNetwork_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_UpdateProjectNetwork_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateProjectNetworkSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/CreateProjectNetworkSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_CreateProjectNetworkSubnet_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateProjectNetworkSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_UserAPI_UpdateProjectNetworkSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/UpdateProjectNetworkSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_UpdateProjectNetworkSubnet_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_UpdateProjectNetworkSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteProjectNetworkSubnet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/DeleteProjectNetworkSubnet") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_DeleteProjectNetworkSubnet_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteProjectNetworkSubnet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateProjectImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/CreateProjectImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_CreateProjectImage_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateProjectImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListProjectImages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListProjectImages") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListProjectImages_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListProjectImages_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetProjectImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetProjectImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetProjectImage_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetProjectImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_DeleteProjectImage_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/DeleteProjectImage") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_DeleteProjectImage_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteProjectImage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_DeleteProjectImageVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/DeleteProjectImageVersion") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_DeleteProjectImageVersion_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteProjectImageVersion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListDataCenters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListDataCenters") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListDataCenters_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListDataCenters_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListPublicImages_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListPublicImages") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListPublicImages_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListPublicImages_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetTwoFactorMethods_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetTwoFactorMethods") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetTwoFactorMethods_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetTwoFactorMethods_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_CreateTOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/CreateTOTP") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_CreateTOTP_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateTOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_RemoveTOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/RemoveTOTP") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_RemoveTOTP_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_RemoveTOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_AddTOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/AddTOTP") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_AddTOTP_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_AddTOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_RegenerateRecoveryCodes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/RegenerateRecoveryCodes") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_RegenerateRecoveryCodes_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_RegenerateRecoveryCodes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListCreditCards_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListCreditCards") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListCreditCards_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListCreditCards_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_AddCreditCard_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/AddCreditCard") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_AddCreditCard_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_AddCreditCard_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteCreditCard_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/DeleteCreditCard") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_DeleteCreditCard_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteCreditCard_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListCountries_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListCountries") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListCountries_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListCountries_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_UserAPI_CreateBillingAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/CreateBillingAddress") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_CreateBillingAddress_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_CreateBillingAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_ListBillingAddresses_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/ListBillingAddresses") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_ListBillingAddresses_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_ListBillingAddresses_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_UserAPI_DeleteBillingAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/DeleteBillingAddress") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_DeleteBillingAddress_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_DeleteBillingAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_UserAPI_GetSplaPrice_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req, "/api.UserAPI/GetSplaPrice") + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_UserAPI_GetSplaPrice_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_UserAPI_GetSplaPrice_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_UserAPI_GetUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "user"}, "")) + + pattern_UserAPI_GetUserComputeLimit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "user", "limit"}, "")) + + pattern_UserAPI_UpdateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "user"}, "")) + + pattern_UserAPI_ConfirmEMail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "user", "confirm"}, "")) + + pattern_UserAPI_ResendConfirmEMail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "user", "confirm", "email"}, "")) + + pattern_UserAPI_ChangeUserPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "password"}, "")) + + pattern_UserAPI_BeginWebAuthnRegistration_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "profile", "webauthn", "register"}, "")) + + pattern_UserAPI_FinishWebAuthnRegistration_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "profile", "webauthn", "register"}, "")) + + pattern_UserAPI_DeleteWebAuthnDevice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "profile", "webauthn", "id"}, "")) + + pattern_UserAPI_ListSessions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "sessions"}, "")) + + pattern_UserAPI_DeleteSession_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "profile", "sessions", "session_id"}, "")) + + pattern_UserAPI_CreateLongLivedToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "long_life_tokens"}, "")) + + pattern_UserAPI_ListLongLivedTokens_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "long_life_tokens"}, "")) + + pattern_UserAPI_RevokeLongLivedToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "profile", "long_life_tokens", "token_id"}, "")) + + pattern_UserAPI_CreateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "projects"}, "")) + + pattern_UserAPI_ChangeDefaultProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "default"}, "")) + + pattern_UserAPI_GetProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "projects", "project_id"}, "")) + + pattern_UserAPI_SubscribeProjectNotifications_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "projects", "notifications"}, "")) + + pattern_UserAPI_GetProjectLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "logs"}, "")) + + pattern_UserAPI_GetProjectTraffic_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "traffic"}, "")) + + pattern_UserAPI_GetProjectFlavours_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "flavours", "datacenter_id"}, "")) + + pattern_UserAPI_UpdateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "projects", "project_id"}, "")) + + pattern_UserAPI_JoinProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "join"}, "")) + + pattern_UserAPI_LeaveProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "leave"}, "")) + + pattern_UserAPI_InviteMemberToProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "members"}, "")) + + pattern_UserAPI_RemoveMemberFromProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "members", "user_id"}, "")) + + pattern_UserAPI_ListProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "projects"}, "")) + + pattern_UserAPI_DeleteProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "projects", "project_id"}, "")) + + pattern_UserAPI_GetProjectCurrentBillingPreviewPdf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4, 2, 5}, []string{"v1", "projects", "project_id", "billing", "preview", "pdf"}, "")) + + pattern_UserAPI_GetProjectBillPdf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"v1", "projects", "project_id", "billing", "bill", "bill_id", "pdf"}, "")) + + pattern_UserAPI_RedeemVoucher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"v1", "projects", "project_id", "billing", "voucher"}, "")) + + pattern_UserAPI_PayProjectNow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"v1", "projects", "project_id", "billing", "now"}, "")) + + pattern_UserAPI_GetProjectCurrentBillingPreview_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"v1", "projects", "project_id", "billing", "preview"}, "")) + + pattern_UserAPI_GetProjectsOutstandingBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "projects", "balance"}, "")) + + pattern_UserAPI_GetProjectBills_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"v1", "projects", "project_id", "billing", "bills", "year"}, "")) + + pattern_UserAPI_ListProjectSSHKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "ssh_keys"}, "")) + + pattern_UserAPI_ListUserSSHKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "ssh_keys"}, "")) + + pattern_UserAPI_CreateUserSSHKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "ssh_keys"}, "")) + + pattern_UserAPI_DeleteUserSSHKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "profile", "ssh_keys", "ssh_key_id"}, "")) + + pattern_UserAPI_CreateProjectSupportTicket_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"v1", "projects", "project_id", "support", "tickets"}, "")) + + pattern_UserAPI_GetProjectSupportTicket_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"v1", "projects", "project_id", "support", "tickets", "id"}, "")) + + pattern_UserAPI_ListProjectSupportTickets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"v1", "projects", "project_id", "support", "tickets"}, "")) + + pattern_UserAPI_CloseProjectSupportTicket_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"v1", "projects", "project_id", "support", "tickets", "id", "close"}, "")) + + pattern_UserAPI_AddProjectSupportTicketComment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"v1", "projects", "project_id", "support", "tickets", "id"}, "")) + + pattern_UserAPI_ChangeProjectSupportPackage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"v1", "projects", "project_id", "support", "plans", "plan"}, "")) + + pattern_UserAPI_ListProjectSupportPackages_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"v1", "projects", "project_id", "support", "plans"}, "")) + + pattern_UserAPI_CreateComputeResource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "compute"}, "")) + + pattern_UserAPI_ListComputeResources_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "compute"}, "")) + + pattern_UserAPI_GetComputeResource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "compute", "resource_id"}, "")) + + pattern_UserAPI_GetComputeResourceTraffic_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"v1", "projects", "project_id", "compute", "resource_id", "traffic"}, "")) + + pattern_UserAPI_UpdateComputeResource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "compute", "resource_id"}, "")) + + pattern_UserAPI_GetComputeResourceConsole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"v1", "projects", "project_id", "compute", "resource_id", "console"}, "")) + + pattern_UserAPI_ChangeComputeResourceRescueMode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"v1", "projects", "project_id", "compute", "resource_id", "rescue"}, "")) + + pattern_UserAPI_PowerActionComputeResource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"v1", "projects", "project_id", "compute", "resource_id", "power"}, "")) + + pattern_UserAPI_ReinstallComputeResource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"v1", "projects", "project_id", "compute", "resource_id", "reinstall"}, "")) + + pattern_UserAPI_DestroyComputeResource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "compute", "resource_id"}, "")) + + pattern_UserAPI_ListProjectNetworks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "networks"}, "")) + + pattern_UserAPI_GetProjectNetwork_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "networks", "id"}, "")) + + pattern_UserAPI_UpdateProjectNetwork_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "networks", "id"}, "")) + + pattern_UserAPI_CreateProjectNetworkSubnet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"v1", "projects", "project_id", "networks", "id", "subnet"}, "")) + + pattern_UserAPI_UpdateProjectNetworkSubnet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "subnet", "id"}, "")) + + pattern_UserAPI_DeleteProjectNetworkSubnet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "subnet", "id"}, "")) + + pattern_UserAPI_CreateProjectImage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "images"}, "")) + + pattern_UserAPI_ListProjectImages_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "projects", "project_id", "images"}, "")) + + pattern_UserAPI_GetProjectImage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "images", "image_id"}, "")) + + pattern_UserAPI_DeleteProjectImage_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "projects", "project_id", "images", "image_id"}, "")) + + pattern_UserAPI_DeleteProjectImageVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"v1", "projects", "project_id", "images", "version", "image_version_id"}, "")) + + pattern_UserAPI_ListDataCenters_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "datacenters"}, "")) + + pattern_UserAPI_ListPublicImages_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "images", "flavour_id"}, "")) + + pattern_UserAPI_GetTwoFactorMethods_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "2fa"}, "")) + + pattern_UserAPI_CreateTOTP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "totp"}, "")) + + pattern_UserAPI_RemoveTOTP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "totp"}, "")) + + pattern_UserAPI_AddTOTP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "totp"}, "")) + + pattern_UserAPI_RegenerateRecoveryCodes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "recovery_codes"}, "")) + + pattern_UserAPI_ListCreditCards_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "credit_cards"}, "")) + + pattern_UserAPI_AddCreditCard_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "profile", "credit_cards"}, "")) + + pattern_UserAPI_DeleteCreditCard_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "profile", "credit_cards", "card_id"}, "")) + + pattern_UserAPI_ListCountries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "countries"}, "")) + + pattern_UserAPI_CreateBillingAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "profile", "billing", "addresses"}, "")) + + pattern_UserAPI_ListBillingAddresses_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "profile", "billing", "addresses"}, "")) + + pattern_UserAPI_DeleteBillingAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "profile", "billing", "addresses", "address_id"}, "")) + + pattern_UserAPI_GetSplaPrice_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "spla", "price"}, "")) +) + +var ( + forward_UserAPI_GetUser_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetUserComputeLimit_0 = runtime.ForwardResponseMessage + + forward_UserAPI_UpdateUser_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ConfirmEMail_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ResendConfirmEMail_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ChangeUserPassword_0 = runtime.ForwardResponseMessage + + forward_UserAPI_BeginWebAuthnRegistration_0 = runtime.ForwardResponseMessage + + forward_UserAPI_FinishWebAuthnRegistration_0 = runtime.ForwardResponseMessage + + forward_UserAPI_DeleteWebAuthnDevice_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListSessions_0 = runtime.ForwardResponseMessage + + forward_UserAPI_DeleteSession_0 = runtime.ForwardResponseMessage + + forward_UserAPI_CreateLongLivedToken_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListLongLivedTokens_0 = runtime.ForwardResponseMessage + + forward_UserAPI_RevokeLongLivedToken_0 = runtime.ForwardResponseMessage + + forward_UserAPI_CreateProject_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ChangeDefaultProject_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProject_0 = runtime.ForwardResponseMessage + + forward_UserAPI_SubscribeProjectNotifications_0 = runtime.ForwardResponseStream + + forward_UserAPI_GetProjectLogs_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProjectTraffic_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProjectFlavours_0 = runtime.ForwardResponseMessage + + forward_UserAPI_UpdateProject_0 = runtime.ForwardResponseMessage + + forward_UserAPI_JoinProject_0 = runtime.ForwardResponseMessage + + forward_UserAPI_LeaveProject_0 = runtime.ForwardResponseMessage + + forward_UserAPI_InviteMemberToProject_0 = runtime.ForwardResponseMessage + + forward_UserAPI_RemoveMemberFromProject_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListProjects_0 = runtime.ForwardResponseMessage + + forward_UserAPI_DeleteProject_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProjectCurrentBillingPreviewPdf_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProjectBillPdf_0 = runtime.ForwardResponseMessage + + forward_UserAPI_RedeemVoucher_0 = runtime.ForwardResponseMessage + + forward_UserAPI_PayProjectNow_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProjectCurrentBillingPreview_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProjectsOutstandingBalance_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProjectBills_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListProjectSSHKeys_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListUserSSHKeys_0 = runtime.ForwardResponseMessage + + forward_UserAPI_CreateUserSSHKey_0 = runtime.ForwardResponseMessage + + forward_UserAPI_DeleteUserSSHKey_0 = runtime.ForwardResponseMessage + + forward_UserAPI_CreateProjectSupportTicket_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProjectSupportTicket_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListProjectSupportTickets_0 = runtime.ForwardResponseMessage + + forward_UserAPI_CloseProjectSupportTicket_0 = runtime.ForwardResponseMessage + + forward_UserAPI_AddProjectSupportTicketComment_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ChangeProjectSupportPackage_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListProjectSupportPackages_0 = runtime.ForwardResponseMessage + + forward_UserAPI_CreateComputeResource_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListComputeResources_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetComputeResource_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetComputeResourceTraffic_0 = runtime.ForwardResponseMessage + + forward_UserAPI_UpdateComputeResource_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetComputeResourceConsole_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ChangeComputeResourceRescueMode_0 = runtime.ForwardResponseMessage + + forward_UserAPI_PowerActionComputeResource_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ReinstallComputeResource_0 = runtime.ForwardResponseMessage + + forward_UserAPI_DestroyComputeResource_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListProjectNetworks_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProjectNetwork_0 = runtime.ForwardResponseMessage + + forward_UserAPI_UpdateProjectNetwork_0 = runtime.ForwardResponseMessage + + forward_UserAPI_CreateProjectNetworkSubnet_0 = runtime.ForwardResponseMessage + + forward_UserAPI_UpdateProjectNetworkSubnet_0 = runtime.ForwardResponseMessage + + forward_UserAPI_DeleteProjectNetworkSubnet_0 = runtime.ForwardResponseMessage + + forward_UserAPI_CreateProjectImage_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListProjectImages_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetProjectImage_0 = runtime.ForwardResponseMessage + + forward_UserAPI_DeleteProjectImage_0 = runtime.ForwardResponseMessage + + forward_UserAPI_DeleteProjectImageVersion_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListDataCenters_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListPublicImages_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetTwoFactorMethods_0 = runtime.ForwardResponseMessage + + forward_UserAPI_CreateTOTP_0 = runtime.ForwardResponseMessage + + forward_UserAPI_RemoveTOTP_0 = runtime.ForwardResponseMessage + + forward_UserAPI_AddTOTP_0 = runtime.ForwardResponseMessage + + forward_UserAPI_RegenerateRecoveryCodes_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListCreditCards_0 = runtime.ForwardResponseMessage + + forward_UserAPI_AddCreditCard_0 = runtime.ForwardResponseMessage + + forward_UserAPI_DeleteCreditCard_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListCountries_0 = runtime.ForwardResponseMessage + + forward_UserAPI_CreateBillingAddress_0 = runtime.ForwardResponseMessage + + forward_UserAPI_ListBillingAddresses_0 = runtime.ForwardResponseMessage + + forward_UserAPI_DeleteBillingAddress_0 = runtime.ForwardResponseMessage + + forward_UserAPI_GetSplaPrice_0 = runtime.ForwardResponseMessage +) diff --git a/pkg/gpcloud/ptypes/service_grpc.pb.go b/pkg/gpcloud/ptypes/service_grpc.pb.go new file mode 100644 index 0000000..386b9d0 --- /dev/null +++ b/pkg/gpcloud/ptypes/service_grpc.pb.go @@ -0,0 +1,4331 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package ptypes + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// PublicAPIClient is the client API for PublicAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type PublicAPIClient interface { + // Performs a User Login + // + // The TOTP field is optional and is only required if the user has 2-factor-authentication enabled. + Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) + // Register a new User + Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) + // Get JSON Web Key Set (JWKS) + // + // The JWKS response is RFC7517 conform and can be used to validate our JWT tokens. + ListJwtPublicKeys(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListJwtPublicKeysResponse, error) + // Refresh a user access token + // + // Provide a valid refresh token to receive a new access and refresh token pair. + RefreshTokens(ctx context.Context, in *RefreshTokensRequest, opts ...grpc.CallOption) (*RefreshTokensResponse, error) + // Request a password forgotten token + RequestPasswordForgottenToken(ctx context.Context, in *RequestPasswordForgottenTokenRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Reset a user password with a token + ResetUserPassword(ctx context.Context, in *ResetUserPasswordRequest, opts ...grpc.CallOption) (*EmptyResponse, error) +} + +type publicAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewPublicAPIClient(cc grpc.ClientConnInterface) PublicAPIClient { + return &publicAPIClient{cc} +} + +func (c *publicAPIClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) { + out := new(LoginResponse) + err := c.cc.Invoke(ctx, "/api.PublicAPI/Login", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *publicAPIClient) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) { + out := new(RegisterResponse) + err := c.cc.Invoke(ctx, "/api.PublicAPI/Register", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *publicAPIClient) ListJwtPublicKeys(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListJwtPublicKeysResponse, error) { + out := new(ListJwtPublicKeysResponse) + err := c.cc.Invoke(ctx, "/api.PublicAPI/ListJwtPublicKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *publicAPIClient) RefreshTokens(ctx context.Context, in *RefreshTokensRequest, opts ...grpc.CallOption) (*RefreshTokensResponse, error) { + out := new(RefreshTokensResponse) + err := c.cc.Invoke(ctx, "/api.PublicAPI/RefreshTokens", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *publicAPIClient) RequestPasswordForgottenToken(ctx context.Context, in *RequestPasswordForgottenTokenRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.PublicAPI/RequestPasswordForgottenToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *publicAPIClient) ResetUserPassword(ctx context.Context, in *ResetUserPasswordRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.PublicAPI/ResetUserPassword", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PublicAPIServer is the server API for PublicAPI service. +// All implementations must embed UnimplementedPublicAPIServer +// for forward compatibility +type PublicAPIServer interface { + // Performs a User Login + // + // The TOTP field is optional and is only required if the user has 2-factor-authentication enabled. + Login(context.Context, *LoginRequest) (*LoginResponse, error) + // Register a new User + Register(context.Context, *RegisterRequest) (*RegisterResponse, error) + // Get JSON Web Key Set (JWKS) + // + // The JWKS response is RFC7517 conform and can be used to validate our JWT tokens. + ListJwtPublicKeys(context.Context, *EmptyRequest) (*ListJwtPublicKeysResponse, error) + // Refresh a user access token + // + // Provide a valid refresh token to receive a new access and refresh token pair. + RefreshTokens(context.Context, *RefreshTokensRequest) (*RefreshTokensResponse, error) + // Request a password forgotten token + RequestPasswordForgottenToken(context.Context, *RequestPasswordForgottenTokenRequest) (*EmptyResponse, error) + // Reset a user password with a token + ResetUserPassword(context.Context, *ResetUserPasswordRequest) (*EmptyResponse, error) + mustEmbedUnimplementedPublicAPIServer() +} + +// UnimplementedPublicAPIServer must be embedded to have forward compatible implementations. +type UnimplementedPublicAPIServer struct { +} + +func (UnimplementedPublicAPIServer) Login(context.Context, *LoginRequest) (*LoginResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") +} +func (UnimplementedPublicAPIServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Register not implemented") +} +func (UnimplementedPublicAPIServer) ListJwtPublicKeys(context.Context, *EmptyRequest) (*ListJwtPublicKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListJwtPublicKeys not implemented") +} +func (UnimplementedPublicAPIServer) RefreshTokens(context.Context, *RefreshTokensRequest) (*RefreshTokensResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RefreshTokens not implemented") +} +func (UnimplementedPublicAPIServer) RequestPasswordForgottenToken(context.Context, *RequestPasswordForgottenTokenRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestPasswordForgottenToken not implemented") +} +func (UnimplementedPublicAPIServer) ResetUserPassword(context.Context, *ResetUserPasswordRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetUserPassword not implemented") +} +func (UnimplementedPublicAPIServer) mustEmbedUnimplementedPublicAPIServer() {} + +// UnsafePublicAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PublicAPIServer will +// result in compilation errors. +type UnsafePublicAPIServer interface { + mustEmbedUnimplementedPublicAPIServer() +} + +func RegisterPublicAPIServer(s grpc.ServiceRegistrar, srv PublicAPIServer) { + s.RegisterService(&PublicAPI_ServiceDesc, srv) +} + +func _PublicAPI_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LoginRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicAPIServer).Login(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.PublicAPI/Login", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicAPIServer).Login(ctx, req.(*LoginRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PublicAPI_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RegisterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicAPIServer).Register(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.PublicAPI/Register", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicAPIServer).Register(ctx, req.(*RegisterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PublicAPI_ListJwtPublicKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicAPIServer).ListJwtPublicKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.PublicAPI/ListJwtPublicKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicAPIServer).ListJwtPublicKeys(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PublicAPI_RefreshTokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RefreshTokensRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicAPIServer).RefreshTokens(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.PublicAPI/RefreshTokens", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicAPIServer).RefreshTokens(ctx, req.(*RefreshTokensRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PublicAPI_RequestPasswordForgottenToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RequestPasswordForgottenTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicAPIServer).RequestPasswordForgottenToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.PublicAPI/RequestPasswordForgottenToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicAPIServer).RequestPasswordForgottenToken(ctx, req.(*RequestPasswordForgottenTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PublicAPI_ResetUserPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetUserPasswordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicAPIServer).ResetUserPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.PublicAPI/ResetUserPassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicAPIServer).ResetUserPassword(ctx, req.(*ResetUserPasswordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PublicAPI_ServiceDesc is the grpc.ServiceDesc for PublicAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PublicAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.PublicAPI", + HandlerType: (*PublicAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Login", + Handler: _PublicAPI_Login_Handler, + }, + { + MethodName: "Register", + Handler: _PublicAPI_Register_Handler, + }, + { + MethodName: "ListJwtPublicKeys", + Handler: _PublicAPI_ListJwtPublicKeys_Handler, + }, + { + MethodName: "RefreshTokens", + Handler: _PublicAPI_RefreshTokens_Handler, + }, + { + MethodName: "RequestPasswordForgottenToken", + Handler: _PublicAPI_RequestPasswordForgottenToken_Handler, + }, + { + MethodName: "ResetUserPassword", + Handler: _PublicAPI_ResetUserPassword_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service.proto", +} + +// UserAPIClient is the client API for UserAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type UserAPIClient interface { + // User profile information + GetUser(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetUserResponse, error) + // Get user compute resource limit + GetUserComputeLimit(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetUserComputeLimitResponse, error) + // Update user profile information + UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) + // Confirms the user e-mail address + ConfirmEMail(ctx context.Context, in *ConfirmEMailRequest, opts ...grpc.CallOption) (*User, error) + // Resends the user confirm email + ResendConfirmEMail(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Changes the user password + ChangeUserPassword(ctx context.Context, in *ChangeUserPasswordRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Begin a WebAuthn registration + BeginWebAuthnRegistration(ctx context.Context, in *BeginWebAuthnRegistrationRequest, opts ...grpc.CallOption) (*BeginWebAuthnRegistrationResponse, error) + // Finish the WebAuthn registration + FinishWebAuthnRegistration(ctx context.Context, in *FinishWebAuthnRegistrationRequest, opts ...grpc.CallOption) (*FinishWebAuthnRegistrationResponse, error) + // Delete a WebAuthn device + DeleteWebAuthnDevice(ctx context.Context, in *DeleteWebAuthnDeviceRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // List active user sessions + ListSessions(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error) + // Delete user session + DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Creates a new long-lived user token + // + // Long-lived user tokens can be used to access the API without the need to refresh the token. + // Never share this kind of token with 3rd parties, we recommend to store it only in a encrypted way. + CreateLongLivedToken(ctx context.Context, in *CreateLongLivedTokenRequest, opts ...grpc.CallOption) (*LongLivedToken, error) + // List all active long-lived tokens + ListLongLivedTokens(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListLongLivedTokensResponse, error) + // Revokes a long-lived token + // + // This directly revokes and token and it can no longer being used or restored. + RevokeLongLivedToken(ctx context.Context, in *RevokeLongLivedTokenRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Create a new project + CreateProject(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*Project, error) + // Change default project + // + // Changes the default project for the user + ChangeDefaultProject(ctx context.Context, in *ChangeDefaultProjectRequest, opts ...grpc.CallOption) (*Project, error) + // Get a existing project + GetProject(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error) + // SubscribeProjectNotifications Subscribes to project notifications + SubscribeProjectNotifications(ctx context.Context, in *SubscribeProjectNotificationsRequest, opts ...grpc.CallOption) (UserAPI_SubscribeProjectNotificationsClient, error) + // Show project logs + GetProjectLogs(ctx context.Context, in *GetProjectLogsRequest, opts ...grpc.CallOption) (*GetProjectLogsResponse, error) + // Get project traffic information + GetProjectTraffic(ctx context.Context, in *GetProjectTrafficRequest, opts ...grpc.CallOption) (*GetProjectTrafficResponse, error) + // List all flavours for datacenter and project + GetProjectFlavours(ctx context.Context, in *GetProjectFlavoursRequest, opts ...grpc.CallOption) (*GetProjectFlavoursResponse, error) + // Update a existing project + UpdateProject(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*Project, error) + // Join a project + // + // If you have an open project invite you can accept or decline the invite. + // On accepting the project will be added to your project list. + JoinProject(ctx context.Context, in *JoinProjectRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Leave a project + // + // If you have an open project invite you can accept or decline the invite. + // On accepting the project will be added to your project list. + LeaveProject(ctx context.Context, in *LeaveProjectRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Invite a new member to the project + // + // You can invite another member to your project by using the e-mail address. + InviteMemberToProject(ctx context.Context, in *InviteMemberToProjectRequest, opts ...grpc.CallOption) (*InviteMemberToProjectResponse, error) + // Removes a member from the project + RemoveMemberFromProject(ctx context.Context, in *RemoveMemberFromProjectRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // List all projects + // + // Returns a list with all your projects and invites. + ListProjects(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error) + // Delete a existing project + DeleteProject(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Generates the current billing preview PDF + // + // Generates the billing PDF and returns the download url. + GetProjectCurrentBillingPreviewPdf(ctx context.Context, in *GetProjectCurrentBillingPreviewPdfRequest, opts ...grpc.CallOption) (*GetProjectCurrentBillingPreviewPdfResponse, error) + // Get the download URL of a specified bill. + GetProjectBillPdf(ctx context.Context, in *GetProjectBillPdfRequest, opts ...grpc.CallOption) (*GetProjectBillPdfResponse, error) + // Redeem a Voucher + RedeemVoucher(ctx context.Context, in *RedeemVoucherRequest, opts ...grpc.CallOption) (*RedeemVoucherResponse, error) + // Create a final bill for the current month. + PayProjectNow(ctx context.Context, in *PayProjectNowRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Shows the current billing preview + GetProjectCurrentBillingPreview(ctx context.Context, in *GetProjectCurrentBillingPreviewRequest, opts ...grpc.CallOption) (*GetProjectCurrentBillingPreviewResponse, error) + // Returns the outstanding balance + GetProjectsOutstandingBalance(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetProjectsOutstandingBalanceResponse, error) + // All project bills by year + GetProjectBills(ctx context.Context, in *GetProjectBillsRequest, opts ...grpc.CallOption) (*GetProjectBillsResponse, error) + // List all SSH authorized keys for project + ListProjectSSHKeys(ctx context.Context, in *ListProjectSSHKeysRequest, opts ...grpc.CallOption) (*ListProjectSSHKeysResponse, error) + // List all SSH authorized keys for user + ListUserSSHKeys(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListUserSSHKeysResponse, error) + // Create new SSH authorized key + CreateUserSSHKey(ctx context.Context, in *CreateUserSSHKeyRequest, opts ...grpc.CallOption) (*SSHKey, error) + // Delete a existing SSH authorized key + DeleteUserSSHKey(ctx context.Context, in *DeleteUserSSHKeyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Create a new support ticket + CreateProjectSupportTicket(ctx context.Context, in *CreateProjectSupportTicketRequest, opts ...grpc.CallOption) (*SupportTicket, error) + // Get support ticket details + GetProjectSupportTicket(ctx context.Context, in *GetProjectSupportTicketRequest, opts ...grpc.CallOption) (*SupportTicket, error) + // List all project support tickets + ListProjectSupportTickets(ctx context.Context, in *ListProjectSupportTicketsRequest, opts ...grpc.CallOption) (*ListProjectSupportTicketsResponse, error) + // Close a support ticket + CloseProjectSupportTicket(ctx context.Context, in *CloseProjectSupportTicketRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Add a comment to the ticket + AddProjectSupportTicketComment(ctx context.Context, in *AddProjectSupportTicketCommentRequest, opts ...grpc.CallOption) (*SupportTicket, error) + // Change the current project support package + ChangeProjectSupportPackage(ctx context.Context, in *ChangeProjectSupportPackageRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // List all available project support packages + ListProjectSupportPackages(ctx context.Context, in *ListProjectSupportPackagesRequest, opts ...grpc.CallOption) (*ListProjectSupportPackagesResponse, error) + // Create compute resources + // + // You can only provide one authorization method, please choose password or + // SSH authorized keys. You can not use both methods at the same request. + CreateComputeResource(ctx context.Context, in *CreateComputeResourceRequest, opts ...grpc.CallOption) (*CreateComputeResourceResponse, error) + // List compute resources + ListComputeResources(ctx context.Context, in *ListComputeResourcesRequest, opts ...grpc.CallOption) (*ListComputeResourcesResponse, error) + // Get a existing compute resource + GetComputeResource(ctx context.Context, in *GetComputeResourceRequest, opts ...grpc.CallOption) (*ComputeResource, error) + // Return compute resource traffic usage + GetComputeResourceTraffic(ctx context.Context, in *GetComputeResourceTrafficRequest, opts ...grpc.CallOption) (*GetComputeResourceTrafficResponse, error) + // Updates a existing compute resource + UpdateComputeResource(ctx context.Context, in *UpdateComputeResourceRequest, opts ...grpc.CallOption) (*ComputeResource, error) + // Get the VNC token for a compute resource + GetComputeResourceConsole(ctx context.Context, in *GetComputeResourceConsoleRequest, opts ...grpc.CallOption) (*GetComputeResourceConsoleResponse, error) + // Changes the compute resource rescue mode + ChangeComputeResourceRescueMode(ctx context.Context, in *ComputeResourceRescueModeRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Change compute resource power status + PowerActionComputeResource(ctx context.Context, in *PowerActionComputeResourceRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Reinstall the compute resource + ReinstallComputeResource(ctx context.Context, in *ReinstallComputeResourceRequest, opts ...grpc.CallOption) (*ComputeResource, error) + // Destroy the compute resource + DestroyComputeResource(ctx context.Context, in *DestroyComputeResourceRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // List project networks + ListProjectNetworks(ctx context.Context, in *ListProjectNetworksRequest, opts ...grpc.CallOption) (*ListProjectNetworksResponse, error) + // Get a project network + GetProjectNetwork(ctx context.Context, in *GetProjectNetworkRequest, opts ...grpc.CallOption) (*Network, error) + // Update a project network + UpdateProjectNetwork(ctx context.Context, in *UpdateProjectNetworkRequest, opts ...grpc.CallOption) (*Network, error) + // Create a project network subnet + CreateProjectNetworkSubnet(ctx context.Context, in *CreateProjectNetworkSubnetRequest, opts ...grpc.CallOption) (*Subnet, error) + // Update a project network subnet + UpdateProjectNetworkSubnet(ctx context.Context, in *UpdateProjectNetworkSubnetRequest, opts ...grpc.CallOption) (*Subnet, error) + // Delete a project network subnet + DeleteProjectNetworkSubnet(ctx context.Context, in *DeleteProjectNetworkSubnetRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Create a new project image + CreateProjectImage(ctx context.Context, in *CreateProjectImageRequest, opts ...grpc.CallOption) (*Image, error) + // List project images + ListProjectImages(ctx context.Context, in *ListProjectImagesRequest, opts ...grpc.CallOption) (*ListProjectImagesResponse, error) + // Get a project image + GetProjectImage(ctx context.Context, in *GetProjectImageRequest, opts ...grpc.CallOption) (*Image, error) + // Delete a project image + DeleteProjectImage(ctx context.Context, in *DeleteProjectImageRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Delete a project image version + DeleteProjectImageVersion(ctx context.Context, in *DeleteProjectImageVersionRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // List all datacenters with region + ListDataCenters(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListDataCenterResponse, error) + // List all public images for flavour + ListPublicImages(ctx context.Context, in *ListPublicImagesRequest, opts ...grpc.CallOption) (*ListImagesResponse, error) + // List configured two-factor methods + GetTwoFactorMethods(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetTwoFactorMethodsResponse, error) + // Create a TOTP secret and QR code + CreateTOTP(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*CreateTOTPResponse, error) + // Remove TOTP two-factor method from user account + RemoveTOTP(ctx context.Context, in *RemoveTOTPRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Add the TOTP two-factor method + AddTOTP(ctx context.Context, in *AddTOTPRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Regenerate two-factor recovery codes + RegenerateRecoveryCodes(ctx context.Context, in *RegenerateRecoveryCodesRequest, opts ...grpc.CallOption) (*RegenerateRecoveryCodesResponse, error) + // List all credit cards + ListCreditCards(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListCreditCardsResponse, error) + // Adds new credit card + AddCreditCard(ctx context.Context, in *AddCreditCardRequest, opts ...grpc.CallOption) (*AddCreditCardResponse, error) + // Delete a existing credit card + DeleteCreditCard(ctx context.Context, in *DeleteCreditCardRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // List all countries + // + // Returns a list with all countries and additional information + ListCountries(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListCountriesResponse, error) + // Create new billing address + CreateBillingAddress(ctx context.Context, in *CreateBillingAddressRequest, opts ...grpc.CallOption) (*BillingAddress, error) + // List all billing addresses + ListBillingAddresses(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListBillingAddressesResponse, error) + // Deletes a billing addresses + DeleteBillingAddress(ctx context.Context, in *DeleteBillingAddressRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // Gets the SPLA price for project + GetSplaPrice(ctx context.Context, in *GetSplaPriceRequest, opts ...grpc.CallOption) (*GetSplaPriceResponse, error) +} + +type userAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewUserAPIClient(cc grpc.ClientConnInterface) UserAPIClient { + return &userAPIClient{cc} +} + +func (c *userAPIClient) GetUser(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetUserResponse, error) { + out := new(GetUserResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetUserComputeLimit(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetUserComputeLimitResponse, error) { + out := new(GetUserComputeLimitResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetUserComputeLimit", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) { + out := new(UpdateUserResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/UpdateUser", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ConfirmEMail(ctx context.Context, in *ConfirmEMailRequest, opts ...grpc.CallOption) (*User, error) { + out := new(User) + err := c.cc.Invoke(ctx, "/api.UserAPI/ConfirmEMail", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ResendConfirmEMail(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ResendConfirmEMail", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ChangeUserPassword(ctx context.Context, in *ChangeUserPasswordRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ChangeUserPassword", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) BeginWebAuthnRegistration(ctx context.Context, in *BeginWebAuthnRegistrationRequest, opts ...grpc.CallOption) (*BeginWebAuthnRegistrationResponse, error) { + out := new(BeginWebAuthnRegistrationResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/BeginWebAuthnRegistration", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) FinishWebAuthnRegistration(ctx context.Context, in *FinishWebAuthnRegistrationRequest, opts ...grpc.CallOption) (*FinishWebAuthnRegistrationResponse, error) { + out := new(FinishWebAuthnRegistrationResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/FinishWebAuthnRegistration", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) DeleteWebAuthnDevice(ctx context.Context, in *DeleteWebAuthnDeviceRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/DeleteWebAuthnDevice", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListSessions(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error) { + out := new(ListSessionsResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListSessions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/DeleteSession", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) CreateLongLivedToken(ctx context.Context, in *CreateLongLivedTokenRequest, opts ...grpc.CallOption) (*LongLivedToken, error) { + out := new(LongLivedToken) + err := c.cc.Invoke(ctx, "/api.UserAPI/CreateLongLivedToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListLongLivedTokens(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListLongLivedTokensResponse, error) { + out := new(ListLongLivedTokensResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListLongLivedTokens", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) RevokeLongLivedToken(ctx context.Context, in *RevokeLongLivedTokenRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/RevokeLongLivedToken", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) CreateProject(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/api.UserAPI/CreateProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ChangeDefaultProject(ctx context.Context, in *ChangeDefaultProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/api.UserAPI/ChangeDefaultProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProject(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) SubscribeProjectNotifications(ctx context.Context, in *SubscribeProjectNotificationsRequest, opts ...grpc.CallOption) (UserAPI_SubscribeProjectNotificationsClient, error) { + stream, err := c.cc.NewStream(ctx, &UserAPI_ServiceDesc.Streams[0], "/api.UserAPI/SubscribeProjectNotifications", opts...) + if err != nil { + return nil, err + } + x := &userAPISubscribeProjectNotificationsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type UserAPI_SubscribeProjectNotificationsClient interface { + Recv() (*ProjectNotification, error) + grpc.ClientStream +} + +type userAPISubscribeProjectNotificationsClient struct { + grpc.ClientStream +} + +func (x *userAPISubscribeProjectNotificationsClient) Recv() (*ProjectNotification, error) { + m := new(ProjectNotification) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *userAPIClient) GetProjectLogs(ctx context.Context, in *GetProjectLogsRequest, opts ...grpc.CallOption) (*GetProjectLogsResponse, error) { + out := new(GetProjectLogsResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectLogs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProjectTraffic(ctx context.Context, in *GetProjectTrafficRequest, opts ...grpc.CallOption) (*GetProjectTrafficResponse, error) { + out := new(GetProjectTrafficResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectTraffic", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProjectFlavours(ctx context.Context, in *GetProjectFlavoursRequest, opts ...grpc.CallOption) (*GetProjectFlavoursResponse, error) { + out := new(GetProjectFlavoursResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectFlavours", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) UpdateProject(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/api.UserAPI/UpdateProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) JoinProject(ctx context.Context, in *JoinProjectRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/JoinProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) LeaveProject(ctx context.Context, in *LeaveProjectRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/LeaveProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) InviteMemberToProject(ctx context.Context, in *InviteMemberToProjectRequest, opts ...grpc.CallOption) (*InviteMemberToProjectResponse, error) { + out := new(InviteMemberToProjectResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/InviteMemberToProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) RemoveMemberFromProject(ctx context.Context, in *RemoveMemberFromProjectRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/RemoveMemberFromProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListProjects(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error) { + out := new(ListProjectsResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListProjects", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) DeleteProject(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/DeleteProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProjectCurrentBillingPreviewPdf(ctx context.Context, in *GetProjectCurrentBillingPreviewPdfRequest, opts ...grpc.CallOption) (*GetProjectCurrentBillingPreviewPdfResponse, error) { + out := new(GetProjectCurrentBillingPreviewPdfResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectCurrentBillingPreviewPdf", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProjectBillPdf(ctx context.Context, in *GetProjectBillPdfRequest, opts ...grpc.CallOption) (*GetProjectBillPdfResponse, error) { + out := new(GetProjectBillPdfResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectBillPdf", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) RedeemVoucher(ctx context.Context, in *RedeemVoucherRequest, opts ...grpc.CallOption) (*RedeemVoucherResponse, error) { + out := new(RedeemVoucherResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/RedeemVoucher", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) PayProjectNow(ctx context.Context, in *PayProjectNowRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/PayProjectNow", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProjectCurrentBillingPreview(ctx context.Context, in *GetProjectCurrentBillingPreviewRequest, opts ...grpc.CallOption) (*GetProjectCurrentBillingPreviewResponse, error) { + out := new(GetProjectCurrentBillingPreviewResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectCurrentBillingPreview", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProjectsOutstandingBalance(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetProjectsOutstandingBalanceResponse, error) { + out := new(GetProjectsOutstandingBalanceResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectsOutstandingBalance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProjectBills(ctx context.Context, in *GetProjectBillsRequest, opts ...grpc.CallOption) (*GetProjectBillsResponse, error) { + out := new(GetProjectBillsResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectBills", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListProjectSSHKeys(ctx context.Context, in *ListProjectSSHKeysRequest, opts ...grpc.CallOption) (*ListProjectSSHKeysResponse, error) { + out := new(ListProjectSSHKeysResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListProjectSSHKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListUserSSHKeys(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListUserSSHKeysResponse, error) { + out := new(ListUserSSHKeysResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListUserSSHKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) CreateUserSSHKey(ctx context.Context, in *CreateUserSSHKeyRequest, opts ...grpc.CallOption) (*SSHKey, error) { + out := new(SSHKey) + err := c.cc.Invoke(ctx, "/api.UserAPI/CreateUserSSHKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) DeleteUserSSHKey(ctx context.Context, in *DeleteUserSSHKeyRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/DeleteUserSSHKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) CreateProjectSupportTicket(ctx context.Context, in *CreateProjectSupportTicketRequest, opts ...grpc.CallOption) (*SupportTicket, error) { + out := new(SupportTicket) + err := c.cc.Invoke(ctx, "/api.UserAPI/CreateProjectSupportTicket", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProjectSupportTicket(ctx context.Context, in *GetProjectSupportTicketRequest, opts ...grpc.CallOption) (*SupportTicket, error) { + out := new(SupportTicket) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectSupportTicket", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListProjectSupportTickets(ctx context.Context, in *ListProjectSupportTicketsRequest, opts ...grpc.CallOption) (*ListProjectSupportTicketsResponse, error) { + out := new(ListProjectSupportTicketsResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListProjectSupportTickets", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) CloseProjectSupportTicket(ctx context.Context, in *CloseProjectSupportTicketRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/CloseProjectSupportTicket", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) AddProjectSupportTicketComment(ctx context.Context, in *AddProjectSupportTicketCommentRequest, opts ...grpc.CallOption) (*SupportTicket, error) { + out := new(SupportTicket) + err := c.cc.Invoke(ctx, "/api.UserAPI/AddProjectSupportTicketComment", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ChangeProjectSupportPackage(ctx context.Context, in *ChangeProjectSupportPackageRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ChangeProjectSupportPackage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListProjectSupportPackages(ctx context.Context, in *ListProjectSupportPackagesRequest, opts ...grpc.CallOption) (*ListProjectSupportPackagesResponse, error) { + out := new(ListProjectSupportPackagesResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListProjectSupportPackages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) CreateComputeResource(ctx context.Context, in *CreateComputeResourceRequest, opts ...grpc.CallOption) (*CreateComputeResourceResponse, error) { + out := new(CreateComputeResourceResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/CreateComputeResource", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListComputeResources(ctx context.Context, in *ListComputeResourcesRequest, opts ...grpc.CallOption) (*ListComputeResourcesResponse, error) { + out := new(ListComputeResourcesResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListComputeResources", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetComputeResource(ctx context.Context, in *GetComputeResourceRequest, opts ...grpc.CallOption) (*ComputeResource, error) { + out := new(ComputeResource) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetComputeResource", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetComputeResourceTraffic(ctx context.Context, in *GetComputeResourceTrafficRequest, opts ...grpc.CallOption) (*GetComputeResourceTrafficResponse, error) { + out := new(GetComputeResourceTrafficResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetComputeResourceTraffic", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) UpdateComputeResource(ctx context.Context, in *UpdateComputeResourceRequest, opts ...grpc.CallOption) (*ComputeResource, error) { + out := new(ComputeResource) + err := c.cc.Invoke(ctx, "/api.UserAPI/UpdateComputeResource", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetComputeResourceConsole(ctx context.Context, in *GetComputeResourceConsoleRequest, opts ...grpc.CallOption) (*GetComputeResourceConsoleResponse, error) { + out := new(GetComputeResourceConsoleResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetComputeResourceConsole", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ChangeComputeResourceRescueMode(ctx context.Context, in *ComputeResourceRescueModeRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ChangeComputeResourceRescueMode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) PowerActionComputeResource(ctx context.Context, in *PowerActionComputeResourceRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/PowerActionComputeResource", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ReinstallComputeResource(ctx context.Context, in *ReinstallComputeResourceRequest, opts ...grpc.CallOption) (*ComputeResource, error) { + out := new(ComputeResource) + err := c.cc.Invoke(ctx, "/api.UserAPI/ReinstallComputeResource", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) DestroyComputeResource(ctx context.Context, in *DestroyComputeResourceRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/DestroyComputeResource", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListProjectNetworks(ctx context.Context, in *ListProjectNetworksRequest, opts ...grpc.CallOption) (*ListProjectNetworksResponse, error) { + out := new(ListProjectNetworksResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListProjectNetworks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProjectNetwork(ctx context.Context, in *GetProjectNetworkRequest, opts ...grpc.CallOption) (*Network, error) { + out := new(Network) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) UpdateProjectNetwork(ctx context.Context, in *UpdateProjectNetworkRequest, opts ...grpc.CallOption) (*Network, error) { + out := new(Network) + err := c.cc.Invoke(ctx, "/api.UserAPI/UpdateProjectNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) CreateProjectNetworkSubnet(ctx context.Context, in *CreateProjectNetworkSubnetRequest, opts ...grpc.CallOption) (*Subnet, error) { + out := new(Subnet) + err := c.cc.Invoke(ctx, "/api.UserAPI/CreateProjectNetworkSubnet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) UpdateProjectNetworkSubnet(ctx context.Context, in *UpdateProjectNetworkSubnetRequest, opts ...grpc.CallOption) (*Subnet, error) { + out := new(Subnet) + err := c.cc.Invoke(ctx, "/api.UserAPI/UpdateProjectNetworkSubnet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) DeleteProjectNetworkSubnet(ctx context.Context, in *DeleteProjectNetworkSubnetRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/DeleteProjectNetworkSubnet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) CreateProjectImage(ctx context.Context, in *CreateProjectImageRequest, opts ...grpc.CallOption) (*Image, error) { + out := new(Image) + err := c.cc.Invoke(ctx, "/api.UserAPI/CreateProjectImage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListProjectImages(ctx context.Context, in *ListProjectImagesRequest, opts ...grpc.CallOption) (*ListProjectImagesResponse, error) { + out := new(ListProjectImagesResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListProjectImages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetProjectImage(ctx context.Context, in *GetProjectImageRequest, opts ...grpc.CallOption) (*Image, error) { + out := new(Image) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetProjectImage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) DeleteProjectImage(ctx context.Context, in *DeleteProjectImageRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/DeleteProjectImage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) DeleteProjectImageVersion(ctx context.Context, in *DeleteProjectImageVersionRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/DeleteProjectImageVersion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListDataCenters(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListDataCenterResponse, error) { + out := new(ListDataCenterResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListDataCenters", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListPublicImages(ctx context.Context, in *ListPublicImagesRequest, opts ...grpc.CallOption) (*ListImagesResponse, error) { + out := new(ListImagesResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListPublicImages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetTwoFactorMethods(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetTwoFactorMethodsResponse, error) { + out := new(GetTwoFactorMethodsResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetTwoFactorMethods", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) CreateTOTP(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*CreateTOTPResponse, error) { + out := new(CreateTOTPResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/CreateTOTP", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) RemoveTOTP(ctx context.Context, in *RemoveTOTPRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/RemoveTOTP", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) AddTOTP(ctx context.Context, in *AddTOTPRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/AddTOTP", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) RegenerateRecoveryCodes(ctx context.Context, in *RegenerateRecoveryCodesRequest, opts ...grpc.CallOption) (*RegenerateRecoveryCodesResponse, error) { + out := new(RegenerateRecoveryCodesResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/RegenerateRecoveryCodes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListCreditCards(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListCreditCardsResponse, error) { + out := new(ListCreditCardsResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListCreditCards", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) AddCreditCard(ctx context.Context, in *AddCreditCardRequest, opts ...grpc.CallOption) (*AddCreditCardResponse, error) { + out := new(AddCreditCardResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/AddCreditCard", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) DeleteCreditCard(ctx context.Context, in *DeleteCreditCardRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/DeleteCreditCard", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListCountries(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListCountriesResponse, error) { + out := new(ListCountriesResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListCountries", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) CreateBillingAddress(ctx context.Context, in *CreateBillingAddressRequest, opts ...grpc.CallOption) (*BillingAddress, error) { + out := new(BillingAddress) + err := c.cc.Invoke(ctx, "/api.UserAPI/CreateBillingAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) ListBillingAddresses(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListBillingAddressesResponse, error) { + out := new(ListBillingAddressesResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/ListBillingAddresses", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) DeleteBillingAddress(ctx context.Context, in *DeleteBillingAddressRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/DeleteBillingAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userAPIClient) GetSplaPrice(ctx context.Context, in *GetSplaPriceRequest, opts ...grpc.CallOption) (*GetSplaPriceResponse, error) { + out := new(GetSplaPriceResponse) + err := c.cc.Invoke(ctx, "/api.UserAPI/GetSplaPrice", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// UserAPIServer is the server API for UserAPI service. +// All implementations must embed UnimplementedUserAPIServer +// for forward compatibility +type UserAPIServer interface { + // User profile information + GetUser(context.Context, *EmptyRequest) (*GetUserResponse, error) + // Get user compute resource limit + GetUserComputeLimit(context.Context, *EmptyRequest) (*GetUserComputeLimitResponse, error) + // Update user profile information + UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) + // Confirms the user e-mail address + ConfirmEMail(context.Context, *ConfirmEMailRequest) (*User, error) + // Resends the user confirm email + ResendConfirmEMail(context.Context, *EmptyRequest) (*EmptyResponse, error) + // Changes the user password + ChangeUserPassword(context.Context, *ChangeUserPasswordRequest) (*EmptyResponse, error) + // Begin a WebAuthn registration + BeginWebAuthnRegistration(context.Context, *BeginWebAuthnRegistrationRequest) (*BeginWebAuthnRegistrationResponse, error) + // Finish the WebAuthn registration + FinishWebAuthnRegistration(context.Context, *FinishWebAuthnRegistrationRequest) (*FinishWebAuthnRegistrationResponse, error) + // Delete a WebAuthn device + DeleteWebAuthnDevice(context.Context, *DeleteWebAuthnDeviceRequest) (*EmptyResponse, error) + // List active user sessions + ListSessions(context.Context, *EmptyRequest) (*ListSessionsResponse, error) + // Delete user session + DeleteSession(context.Context, *DeleteSessionRequest) (*EmptyResponse, error) + // Creates a new long-lived user token + // + // Long-lived user tokens can be used to access the API without the need to refresh the token. + // Never share this kind of token with 3rd parties, we recommend to store it only in a encrypted way. + CreateLongLivedToken(context.Context, *CreateLongLivedTokenRequest) (*LongLivedToken, error) + // List all active long-lived tokens + ListLongLivedTokens(context.Context, *EmptyRequest) (*ListLongLivedTokensResponse, error) + // Revokes a long-lived token + // + // This directly revokes and token and it can no longer being used or restored. + RevokeLongLivedToken(context.Context, *RevokeLongLivedTokenRequest) (*EmptyResponse, error) + // Create a new project + CreateProject(context.Context, *CreateProjectRequest) (*Project, error) + // Change default project + // + // Changes the default project for the user + ChangeDefaultProject(context.Context, *ChangeDefaultProjectRequest) (*Project, error) + // Get a existing project + GetProject(context.Context, *GetProjectRequest) (*Project, error) + // SubscribeProjectNotifications Subscribes to project notifications + SubscribeProjectNotifications(*SubscribeProjectNotificationsRequest, UserAPI_SubscribeProjectNotificationsServer) error + // Show project logs + GetProjectLogs(context.Context, *GetProjectLogsRequest) (*GetProjectLogsResponse, error) + // Get project traffic information + GetProjectTraffic(context.Context, *GetProjectTrafficRequest) (*GetProjectTrafficResponse, error) + // List all flavours for datacenter and project + GetProjectFlavours(context.Context, *GetProjectFlavoursRequest) (*GetProjectFlavoursResponse, error) + // Update a existing project + UpdateProject(context.Context, *UpdateProjectRequest) (*Project, error) + // Join a project + // + // If you have an open project invite you can accept or decline the invite. + // On accepting the project will be added to your project list. + JoinProject(context.Context, *JoinProjectRequest) (*EmptyResponse, error) + // Leave a project + // + // If you have an open project invite you can accept or decline the invite. + // On accepting the project will be added to your project list. + LeaveProject(context.Context, *LeaveProjectRequest) (*EmptyResponse, error) + // Invite a new member to the project + // + // You can invite another member to your project by using the e-mail address. + InviteMemberToProject(context.Context, *InviteMemberToProjectRequest) (*InviteMemberToProjectResponse, error) + // Removes a member from the project + RemoveMemberFromProject(context.Context, *RemoveMemberFromProjectRequest) (*EmptyResponse, error) + // List all projects + // + // Returns a list with all your projects and invites. + ListProjects(context.Context, *EmptyRequest) (*ListProjectsResponse, error) + // Delete a existing project + DeleteProject(context.Context, *DeleteProjectRequest) (*EmptyResponse, error) + // Generates the current billing preview PDF + // + // Generates the billing PDF and returns the download url. + GetProjectCurrentBillingPreviewPdf(context.Context, *GetProjectCurrentBillingPreviewPdfRequest) (*GetProjectCurrentBillingPreviewPdfResponse, error) + // Get the download URL of a specified bill. + GetProjectBillPdf(context.Context, *GetProjectBillPdfRequest) (*GetProjectBillPdfResponse, error) + // Redeem a Voucher + RedeemVoucher(context.Context, *RedeemVoucherRequest) (*RedeemVoucherResponse, error) + // Create a final bill for the current month. + PayProjectNow(context.Context, *PayProjectNowRequest) (*EmptyResponse, error) + // Shows the current billing preview + GetProjectCurrentBillingPreview(context.Context, *GetProjectCurrentBillingPreviewRequest) (*GetProjectCurrentBillingPreviewResponse, error) + // Returns the outstanding balance + GetProjectsOutstandingBalance(context.Context, *EmptyRequest) (*GetProjectsOutstandingBalanceResponse, error) + // All project bills by year + GetProjectBills(context.Context, *GetProjectBillsRequest) (*GetProjectBillsResponse, error) + // List all SSH authorized keys for project + ListProjectSSHKeys(context.Context, *ListProjectSSHKeysRequest) (*ListProjectSSHKeysResponse, error) + // List all SSH authorized keys for user + ListUserSSHKeys(context.Context, *EmptyRequest) (*ListUserSSHKeysResponse, error) + // Create new SSH authorized key + CreateUserSSHKey(context.Context, *CreateUserSSHKeyRequest) (*SSHKey, error) + // Delete a existing SSH authorized key + DeleteUserSSHKey(context.Context, *DeleteUserSSHKeyRequest) (*EmptyResponse, error) + // Create a new support ticket + CreateProjectSupportTicket(context.Context, *CreateProjectSupportTicketRequest) (*SupportTicket, error) + // Get support ticket details + GetProjectSupportTicket(context.Context, *GetProjectSupportTicketRequest) (*SupportTicket, error) + // List all project support tickets + ListProjectSupportTickets(context.Context, *ListProjectSupportTicketsRequest) (*ListProjectSupportTicketsResponse, error) + // Close a support ticket + CloseProjectSupportTicket(context.Context, *CloseProjectSupportTicketRequest) (*EmptyResponse, error) + // Add a comment to the ticket + AddProjectSupportTicketComment(context.Context, *AddProjectSupportTicketCommentRequest) (*SupportTicket, error) + // Change the current project support package + ChangeProjectSupportPackage(context.Context, *ChangeProjectSupportPackageRequest) (*EmptyResponse, error) + // List all available project support packages + ListProjectSupportPackages(context.Context, *ListProjectSupportPackagesRequest) (*ListProjectSupportPackagesResponse, error) + // Create compute resources + // + // You can only provide one authorization method, please choose password or + // SSH authorized keys. You can not use both methods at the same request. + CreateComputeResource(context.Context, *CreateComputeResourceRequest) (*CreateComputeResourceResponse, error) + // List compute resources + ListComputeResources(context.Context, *ListComputeResourcesRequest) (*ListComputeResourcesResponse, error) + // Get a existing compute resource + GetComputeResource(context.Context, *GetComputeResourceRequest) (*ComputeResource, error) + // Return compute resource traffic usage + GetComputeResourceTraffic(context.Context, *GetComputeResourceTrafficRequest) (*GetComputeResourceTrafficResponse, error) + // Updates a existing compute resource + UpdateComputeResource(context.Context, *UpdateComputeResourceRequest) (*ComputeResource, error) + // Get the VNC token for a compute resource + GetComputeResourceConsole(context.Context, *GetComputeResourceConsoleRequest) (*GetComputeResourceConsoleResponse, error) + // Changes the compute resource rescue mode + ChangeComputeResourceRescueMode(context.Context, *ComputeResourceRescueModeRequest) (*EmptyResponse, error) + // Change compute resource power status + PowerActionComputeResource(context.Context, *PowerActionComputeResourceRequest) (*EmptyResponse, error) + // Reinstall the compute resource + ReinstallComputeResource(context.Context, *ReinstallComputeResourceRequest) (*ComputeResource, error) + // Destroy the compute resource + DestroyComputeResource(context.Context, *DestroyComputeResourceRequest) (*EmptyResponse, error) + // List project networks + ListProjectNetworks(context.Context, *ListProjectNetworksRequest) (*ListProjectNetworksResponse, error) + // Get a project network + GetProjectNetwork(context.Context, *GetProjectNetworkRequest) (*Network, error) + // Update a project network + UpdateProjectNetwork(context.Context, *UpdateProjectNetworkRequest) (*Network, error) + // Create a project network subnet + CreateProjectNetworkSubnet(context.Context, *CreateProjectNetworkSubnetRequest) (*Subnet, error) + // Update a project network subnet + UpdateProjectNetworkSubnet(context.Context, *UpdateProjectNetworkSubnetRequest) (*Subnet, error) + // Delete a project network subnet + DeleteProjectNetworkSubnet(context.Context, *DeleteProjectNetworkSubnetRequest) (*EmptyResponse, error) + // Create a new project image + CreateProjectImage(context.Context, *CreateProjectImageRequest) (*Image, error) + // List project images + ListProjectImages(context.Context, *ListProjectImagesRequest) (*ListProjectImagesResponse, error) + // Get a project image + GetProjectImage(context.Context, *GetProjectImageRequest) (*Image, error) + // Delete a project image + DeleteProjectImage(context.Context, *DeleteProjectImageRequest) (*EmptyResponse, error) + // Delete a project image version + DeleteProjectImageVersion(context.Context, *DeleteProjectImageVersionRequest) (*EmptyResponse, error) + // List all datacenters with region + ListDataCenters(context.Context, *EmptyRequest) (*ListDataCenterResponse, error) + // List all public images for flavour + ListPublicImages(context.Context, *ListPublicImagesRequest) (*ListImagesResponse, error) + // List configured two-factor methods + GetTwoFactorMethods(context.Context, *EmptyRequest) (*GetTwoFactorMethodsResponse, error) + // Create a TOTP secret and QR code + CreateTOTP(context.Context, *EmptyRequest) (*CreateTOTPResponse, error) + // Remove TOTP two-factor method from user account + RemoveTOTP(context.Context, *RemoveTOTPRequest) (*EmptyResponse, error) + // Add the TOTP two-factor method + AddTOTP(context.Context, *AddTOTPRequest) (*EmptyResponse, error) + // Regenerate two-factor recovery codes + RegenerateRecoveryCodes(context.Context, *RegenerateRecoveryCodesRequest) (*RegenerateRecoveryCodesResponse, error) + // List all credit cards + ListCreditCards(context.Context, *EmptyRequest) (*ListCreditCardsResponse, error) + // Adds new credit card + AddCreditCard(context.Context, *AddCreditCardRequest) (*AddCreditCardResponse, error) + // Delete a existing credit card + DeleteCreditCard(context.Context, *DeleteCreditCardRequest) (*EmptyResponse, error) + // List all countries + // + // Returns a list with all countries and additional information + ListCountries(context.Context, *EmptyRequest) (*ListCountriesResponse, error) + // Create new billing address + CreateBillingAddress(context.Context, *CreateBillingAddressRequest) (*BillingAddress, error) + // List all billing addresses + ListBillingAddresses(context.Context, *EmptyRequest) (*ListBillingAddressesResponse, error) + // Deletes a billing addresses + DeleteBillingAddress(context.Context, *DeleteBillingAddressRequest) (*EmptyResponse, error) + // Gets the SPLA price for project + GetSplaPrice(context.Context, *GetSplaPriceRequest) (*GetSplaPriceResponse, error) + mustEmbedUnimplementedUserAPIServer() +} + +// UnimplementedUserAPIServer must be embedded to have forward compatible implementations. +type UnimplementedUserAPIServer struct { +} + +func (UnimplementedUserAPIServer) GetUser(context.Context, *EmptyRequest) (*GetUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") +} +func (UnimplementedUserAPIServer) GetUserComputeLimit(context.Context, *EmptyRequest) (*GetUserComputeLimitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserComputeLimit not implemented") +} +func (UnimplementedUserAPIServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented") +} +func (UnimplementedUserAPIServer) ConfirmEMail(context.Context, *ConfirmEMailRequest) (*User, error) { + return nil, status.Errorf(codes.Unimplemented, "method ConfirmEMail not implemented") +} +func (UnimplementedUserAPIServer) ResendConfirmEMail(context.Context, *EmptyRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResendConfirmEMail not implemented") +} +func (UnimplementedUserAPIServer) ChangeUserPassword(context.Context, *ChangeUserPasswordRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeUserPassword not implemented") +} +func (UnimplementedUserAPIServer) BeginWebAuthnRegistration(context.Context, *BeginWebAuthnRegistrationRequest) (*BeginWebAuthnRegistrationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BeginWebAuthnRegistration not implemented") +} +func (UnimplementedUserAPIServer) FinishWebAuthnRegistration(context.Context, *FinishWebAuthnRegistrationRequest) (*FinishWebAuthnRegistrationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FinishWebAuthnRegistration not implemented") +} +func (UnimplementedUserAPIServer) DeleteWebAuthnDevice(context.Context, *DeleteWebAuthnDeviceRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteWebAuthnDevice not implemented") +} +func (UnimplementedUserAPIServer) ListSessions(context.Context, *EmptyRequest) (*ListSessionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSessions not implemented") +} +func (UnimplementedUserAPIServer) DeleteSession(context.Context, *DeleteSessionRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteSession not implemented") +} +func (UnimplementedUserAPIServer) CreateLongLivedToken(context.Context, *CreateLongLivedTokenRequest) (*LongLivedToken, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateLongLivedToken not implemented") +} +func (UnimplementedUserAPIServer) ListLongLivedTokens(context.Context, *EmptyRequest) (*ListLongLivedTokensResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListLongLivedTokens not implemented") +} +func (UnimplementedUserAPIServer) RevokeLongLivedToken(context.Context, *RevokeLongLivedTokenRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RevokeLongLivedToken not implemented") +} +func (UnimplementedUserAPIServer) CreateProject(context.Context, *CreateProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateProject not implemented") +} +func (UnimplementedUserAPIServer) ChangeDefaultProject(context.Context, *ChangeDefaultProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeDefaultProject not implemented") +} +func (UnimplementedUserAPIServer) GetProject(context.Context, *GetProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProject not implemented") +} +func (UnimplementedUserAPIServer) SubscribeProjectNotifications(*SubscribeProjectNotificationsRequest, UserAPI_SubscribeProjectNotificationsServer) error { + return status.Errorf(codes.Unimplemented, "method SubscribeProjectNotifications not implemented") +} +func (UnimplementedUserAPIServer) GetProjectLogs(context.Context, *GetProjectLogsRequest) (*GetProjectLogsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectLogs not implemented") +} +func (UnimplementedUserAPIServer) GetProjectTraffic(context.Context, *GetProjectTrafficRequest) (*GetProjectTrafficResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectTraffic not implemented") +} +func (UnimplementedUserAPIServer) GetProjectFlavours(context.Context, *GetProjectFlavoursRequest) (*GetProjectFlavoursResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectFlavours not implemented") +} +func (UnimplementedUserAPIServer) UpdateProject(context.Context, *UpdateProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProject not implemented") +} +func (UnimplementedUserAPIServer) JoinProject(context.Context, *JoinProjectRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method JoinProject not implemented") +} +func (UnimplementedUserAPIServer) LeaveProject(context.Context, *LeaveProjectRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LeaveProject not implemented") +} +func (UnimplementedUserAPIServer) InviteMemberToProject(context.Context, *InviteMemberToProjectRequest) (*InviteMemberToProjectResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InviteMemberToProject not implemented") +} +func (UnimplementedUserAPIServer) RemoveMemberFromProject(context.Context, *RemoveMemberFromProjectRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveMemberFromProject not implemented") +} +func (UnimplementedUserAPIServer) ListProjects(context.Context, *EmptyRequest) (*ListProjectsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProjects not implemented") +} +func (UnimplementedUserAPIServer) DeleteProject(context.Context, *DeleteProjectRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteProject not implemented") +} +func (UnimplementedUserAPIServer) GetProjectCurrentBillingPreviewPdf(context.Context, *GetProjectCurrentBillingPreviewPdfRequest) (*GetProjectCurrentBillingPreviewPdfResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectCurrentBillingPreviewPdf not implemented") +} +func (UnimplementedUserAPIServer) GetProjectBillPdf(context.Context, *GetProjectBillPdfRequest) (*GetProjectBillPdfResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectBillPdf not implemented") +} +func (UnimplementedUserAPIServer) RedeemVoucher(context.Context, *RedeemVoucherRequest) (*RedeemVoucherResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RedeemVoucher not implemented") +} +func (UnimplementedUserAPIServer) PayProjectNow(context.Context, *PayProjectNowRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PayProjectNow not implemented") +} +func (UnimplementedUserAPIServer) GetProjectCurrentBillingPreview(context.Context, *GetProjectCurrentBillingPreviewRequest) (*GetProjectCurrentBillingPreviewResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectCurrentBillingPreview not implemented") +} +func (UnimplementedUserAPIServer) GetProjectsOutstandingBalance(context.Context, *EmptyRequest) (*GetProjectsOutstandingBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectsOutstandingBalance not implemented") +} +func (UnimplementedUserAPIServer) GetProjectBills(context.Context, *GetProjectBillsRequest) (*GetProjectBillsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectBills not implemented") +} +func (UnimplementedUserAPIServer) ListProjectSSHKeys(context.Context, *ListProjectSSHKeysRequest) (*ListProjectSSHKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProjectSSHKeys not implemented") +} +func (UnimplementedUserAPIServer) ListUserSSHKeys(context.Context, *EmptyRequest) (*ListUserSSHKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListUserSSHKeys not implemented") +} +func (UnimplementedUserAPIServer) CreateUserSSHKey(context.Context, *CreateUserSSHKeyRequest) (*SSHKey, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUserSSHKey not implemented") +} +func (UnimplementedUserAPIServer) DeleteUserSSHKey(context.Context, *DeleteUserSSHKeyRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteUserSSHKey not implemented") +} +func (UnimplementedUserAPIServer) CreateProjectSupportTicket(context.Context, *CreateProjectSupportTicketRequest) (*SupportTicket, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateProjectSupportTicket not implemented") +} +func (UnimplementedUserAPIServer) GetProjectSupportTicket(context.Context, *GetProjectSupportTicketRequest) (*SupportTicket, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectSupportTicket not implemented") +} +func (UnimplementedUserAPIServer) ListProjectSupportTickets(context.Context, *ListProjectSupportTicketsRequest) (*ListProjectSupportTicketsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProjectSupportTickets not implemented") +} +func (UnimplementedUserAPIServer) CloseProjectSupportTicket(context.Context, *CloseProjectSupportTicketRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseProjectSupportTicket not implemented") +} +func (UnimplementedUserAPIServer) AddProjectSupportTicketComment(context.Context, *AddProjectSupportTicketCommentRequest) (*SupportTicket, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddProjectSupportTicketComment not implemented") +} +func (UnimplementedUserAPIServer) ChangeProjectSupportPackage(context.Context, *ChangeProjectSupportPackageRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeProjectSupportPackage not implemented") +} +func (UnimplementedUserAPIServer) ListProjectSupportPackages(context.Context, *ListProjectSupportPackagesRequest) (*ListProjectSupportPackagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProjectSupportPackages not implemented") +} +func (UnimplementedUserAPIServer) CreateComputeResource(context.Context, *CreateComputeResourceRequest) (*CreateComputeResourceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateComputeResource not implemented") +} +func (UnimplementedUserAPIServer) ListComputeResources(context.Context, *ListComputeResourcesRequest) (*ListComputeResourcesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListComputeResources not implemented") +} +func (UnimplementedUserAPIServer) GetComputeResource(context.Context, *GetComputeResourceRequest) (*ComputeResource, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetComputeResource not implemented") +} +func (UnimplementedUserAPIServer) GetComputeResourceTraffic(context.Context, *GetComputeResourceTrafficRequest) (*GetComputeResourceTrafficResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetComputeResourceTraffic not implemented") +} +func (UnimplementedUserAPIServer) UpdateComputeResource(context.Context, *UpdateComputeResourceRequest) (*ComputeResource, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateComputeResource not implemented") +} +func (UnimplementedUserAPIServer) GetComputeResourceConsole(context.Context, *GetComputeResourceConsoleRequest) (*GetComputeResourceConsoleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetComputeResourceConsole not implemented") +} +func (UnimplementedUserAPIServer) ChangeComputeResourceRescueMode(context.Context, *ComputeResourceRescueModeRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeComputeResourceRescueMode not implemented") +} +func (UnimplementedUserAPIServer) PowerActionComputeResource(context.Context, *PowerActionComputeResourceRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PowerActionComputeResource not implemented") +} +func (UnimplementedUserAPIServer) ReinstallComputeResource(context.Context, *ReinstallComputeResourceRequest) (*ComputeResource, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReinstallComputeResource not implemented") +} +func (UnimplementedUserAPIServer) DestroyComputeResource(context.Context, *DestroyComputeResourceRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DestroyComputeResource not implemented") +} +func (UnimplementedUserAPIServer) ListProjectNetworks(context.Context, *ListProjectNetworksRequest) (*ListProjectNetworksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProjectNetworks not implemented") +} +func (UnimplementedUserAPIServer) GetProjectNetwork(context.Context, *GetProjectNetworkRequest) (*Network, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectNetwork not implemented") +} +func (UnimplementedUserAPIServer) UpdateProjectNetwork(context.Context, *UpdateProjectNetworkRequest) (*Network, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectNetwork not implemented") +} +func (UnimplementedUserAPIServer) CreateProjectNetworkSubnet(context.Context, *CreateProjectNetworkSubnetRequest) (*Subnet, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateProjectNetworkSubnet not implemented") +} +func (UnimplementedUserAPIServer) UpdateProjectNetworkSubnet(context.Context, *UpdateProjectNetworkSubnetRequest) (*Subnet, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectNetworkSubnet not implemented") +} +func (UnimplementedUserAPIServer) DeleteProjectNetworkSubnet(context.Context, *DeleteProjectNetworkSubnetRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectNetworkSubnet not implemented") +} +func (UnimplementedUserAPIServer) CreateProjectImage(context.Context, *CreateProjectImageRequest) (*Image, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateProjectImage not implemented") +} +func (UnimplementedUserAPIServer) ListProjectImages(context.Context, *ListProjectImagesRequest) (*ListProjectImagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProjectImages not implemented") +} +func (UnimplementedUserAPIServer) GetProjectImage(context.Context, *GetProjectImageRequest) (*Image, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectImage not implemented") +} +func (UnimplementedUserAPIServer) DeleteProjectImage(context.Context, *DeleteProjectImageRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectImage not implemented") +} +func (UnimplementedUserAPIServer) DeleteProjectImageVersion(context.Context, *DeleteProjectImageVersionRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectImageVersion not implemented") +} +func (UnimplementedUserAPIServer) ListDataCenters(context.Context, *EmptyRequest) (*ListDataCenterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDataCenters not implemented") +} +func (UnimplementedUserAPIServer) ListPublicImages(context.Context, *ListPublicImagesRequest) (*ListImagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPublicImages not implemented") +} +func (UnimplementedUserAPIServer) GetTwoFactorMethods(context.Context, *EmptyRequest) (*GetTwoFactorMethodsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTwoFactorMethods not implemented") +} +func (UnimplementedUserAPIServer) CreateTOTP(context.Context, *EmptyRequest) (*CreateTOTPResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTOTP not implemented") +} +func (UnimplementedUserAPIServer) RemoveTOTP(context.Context, *RemoveTOTPRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveTOTP not implemented") +} +func (UnimplementedUserAPIServer) AddTOTP(context.Context, *AddTOTPRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddTOTP not implemented") +} +func (UnimplementedUserAPIServer) RegenerateRecoveryCodes(context.Context, *RegenerateRecoveryCodesRequest) (*RegenerateRecoveryCodesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegenerateRecoveryCodes not implemented") +} +func (UnimplementedUserAPIServer) ListCreditCards(context.Context, *EmptyRequest) (*ListCreditCardsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListCreditCards not implemented") +} +func (UnimplementedUserAPIServer) AddCreditCard(context.Context, *AddCreditCardRequest) (*AddCreditCardResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddCreditCard not implemented") +} +func (UnimplementedUserAPIServer) DeleteCreditCard(context.Context, *DeleteCreditCardRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteCreditCard not implemented") +} +func (UnimplementedUserAPIServer) ListCountries(context.Context, *EmptyRequest) (*ListCountriesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListCountries not implemented") +} +func (UnimplementedUserAPIServer) CreateBillingAddress(context.Context, *CreateBillingAddressRequest) (*BillingAddress, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateBillingAddress not implemented") +} +func (UnimplementedUserAPIServer) ListBillingAddresses(context.Context, *EmptyRequest) (*ListBillingAddressesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListBillingAddresses not implemented") +} +func (UnimplementedUserAPIServer) DeleteBillingAddress(context.Context, *DeleteBillingAddressRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteBillingAddress not implemented") +} +func (UnimplementedUserAPIServer) GetSplaPrice(context.Context, *GetSplaPriceRequest) (*GetSplaPriceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSplaPrice not implemented") +} +func (UnimplementedUserAPIServer) mustEmbedUnimplementedUserAPIServer() {} + +// UnsafeUserAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to UserAPIServer will +// result in compilation errors. +type UnsafeUserAPIServer interface { + mustEmbedUnimplementedUserAPIServer() +} + +func RegisterUserAPIServer(s grpc.ServiceRegistrar, srv UserAPIServer) { + s.RegisterService(&UserAPI_ServiceDesc, srv) +} + +func _UserAPI_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetUser(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetUserComputeLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetUserComputeLimit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetUserComputeLimit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetUserComputeLimit(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).UpdateUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/UpdateUser", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).UpdateUser(ctx, req.(*UpdateUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ConfirmEMail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ConfirmEMailRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ConfirmEMail(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ConfirmEMail", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ConfirmEMail(ctx, req.(*ConfirmEMailRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ResendConfirmEMail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ResendConfirmEMail(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ResendConfirmEMail", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ResendConfirmEMail(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ChangeUserPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeUserPasswordRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ChangeUserPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ChangeUserPassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ChangeUserPassword(ctx, req.(*ChangeUserPasswordRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_BeginWebAuthnRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BeginWebAuthnRegistrationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).BeginWebAuthnRegistration(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/BeginWebAuthnRegistration", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).BeginWebAuthnRegistration(ctx, req.(*BeginWebAuthnRegistrationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_FinishWebAuthnRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FinishWebAuthnRegistrationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).FinishWebAuthnRegistration(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/FinishWebAuthnRegistration", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).FinishWebAuthnRegistration(ctx, req.(*FinishWebAuthnRegistrationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_DeleteWebAuthnDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteWebAuthnDeviceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).DeleteWebAuthnDevice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/DeleteWebAuthnDevice", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).DeleteWebAuthnDevice(ctx, req.(*DeleteWebAuthnDeviceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListSessions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListSessions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListSessions(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_DeleteSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteSessionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).DeleteSession(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/DeleteSession", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).DeleteSession(ctx, req.(*DeleteSessionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_CreateLongLivedToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateLongLivedTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).CreateLongLivedToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/CreateLongLivedToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).CreateLongLivedToken(ctx, req.(*CreateLongLivedTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListLongLivedTokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListLongLivedTokens(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListLongLivedTokens", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListLongLivedTokens(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_RevokeLongLivedToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RevokeLongLivedTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).RevokeLongLivedToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/RevokeLongLivedToken", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).RevokeLongLivedToken(ctx, req.(*RevokeLongLivedTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_CreateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).CreateProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/CreateProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).CreateProject(ctx, req.(*CreateProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ChangeDefaultProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeDefaultProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ChangeDefaultProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ChangeDefaultProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ChangeDefaultProject(ctx, req.(*ChangeDefaultProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProject(ctx, req.(*GetProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_SubscribeProjectNotifications_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SubscribeProjectNotificationsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(UserAPIServer).SubscribeProjectNotifications(m, &userAPISubscribeProjectNotificationsServer{stream}) +} + +type UserAPI_SubscribeProjectNotificationsServer interface { + Send(*ProjectNotification) error + grpc.ServerStream +} + +type userAPISubscribeProjectNotificationsServer struct { + grpc.ServerStream +} + +func (x *userAPISubscribeProjectNotificationsServer) Send(m *ProjectNotification) error { + return x.ServerStream.SendMsg(m) +} + +func _UserAPI_GetProjectLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectLogsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectLogs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectLogs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectLogs(ctx, req.(*GetProjectLogsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProjectTraffic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectTrafficRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectTraffic(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectTraffic", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectTraffic(ctx, req.(*GetProjectTrafficRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProjectFlavours_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectFlavoursRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectFlavours(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectFlavours", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectFlavours(ctx, req.(*GetProjectFlavoursRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_UpdateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).UpdateProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/UpdateProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).UpdateProject(ctx, req.(*UpdateProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_JoinProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JoinProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).JoinProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/JoinProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).JoinProject(ctx, req.(*JoinProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_LeaveProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LeaveProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).LeaveProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/LeaveProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).LeaveProject(ctx, req.(*LeaveProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_InviteMemberToProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InviteMemberToProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).InviteMemberToProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/InviteMemberToProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).InviteMemberToProject(ctx, req.(*InviteMemberToProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_RemoveMemberFromProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveMemberFromProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).RemoveMemberFromProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/RemoveMemberFromProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).RemoveMemberFromProject(ctx, req.(*RemoveMemberFromProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListProjects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListProjects", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListProjects(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_DeleteProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).DeleteProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/DeleteProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).DeleteProject(ctx, req.(*DeleteProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProjectCurrentBillingPreviewPdf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectCurrentBillingPreviewPdfRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectCurrentBillingPreviewPdf(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectCurrentBillingPreviewPdf", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectCurrentBillingPreviewPdf(ctx, req.(*GetProjectCurrentBillingPreviewPdfRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProjectBillPdf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectBillPdfRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectBillPdf(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectBillPdf", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectBillPdf(ctx, req.(*GetProjectBillPdfRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_RedeemVoucher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RedeemVoucherRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).RedeemVoucher(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/RedeemVoucher", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).RedeemVoucher(ctx, req.(*RedeemVoucherRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_PayProjectNow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PayProjectNowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).PayProjectNow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/PayProjectNow", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).PayProjectNow(ctx, req.(*PayProjectNowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProjectCurrentBillingPreview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectCurrentBillingPreviewRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectCurrentBillingPreview(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectCurrentBillingPreview", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectCurrentBillingPreview(ctx, req.(*GetProjectCurrentBillingPreviewRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProjectsOutstandingBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectsOutstandingBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectsOutstandingBalance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectsOutstandingBalance(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProjectBills_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectBillsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectBills(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectBills", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectBills(ctx, req.(*GetProjectBillsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListProjectSSHKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListProjectSSHKeysRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListProjectSSHKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListProjectSSHKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListProjectSSHKeys(ctx, req.(*ListProjectSSHKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListUserSSHKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListUserSSHKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListUserSSHKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListUserSSHKeys(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_CreateUserSSHKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateUserSSHKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).CreateUserSSHKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/CreateUserSSHKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).CreateUserSSHKey(ctx, req.(*CreateUserSSHKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_DeleteUserSSHKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteUserSSHKeyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).DeleteUserSSHKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/DeleteUserSSHKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).DeleteUserSSHKey(ctx, req.(*DeleteUserSSHKeyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_CreateProjectSupportTicket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateProjectSupportTicketRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).CreateProjectSupportTicket(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/CreateProjectSupportTicket", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).CreateProjectSupportTicket(ctx, req.(*CreateProjectSupportTicketRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProjectSupportTicket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectSupportTicketRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectSupportTicket(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectSupportTicket", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectSupportTicket(ctx, req.(*GetProjectSupportTicketRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListProjectSupportTickets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListProjectSupportTicketsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListProjectSupportTickets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListProjectSupportTickets", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListProjectSupportTickets(ctx, req.(*ListProjectSupportTicketsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_CloseProjectSupportTicket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseProjectSupportTicketRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).CloseProjectSupportTicket(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/CloseProjectSupportTicket", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).CloseProjectSupportTicket(ctx, req.(*CloseProjectSupportTicketRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_AddProjectSupportTicketComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddProjectSupportTicketCommentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).AddProjectSupportTicketComment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/AddProjectSupportTicketComment", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).AddProjectSupportTicketComment(ctx, req.(*AddProjectSupportTicketCommentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ChangeProjectSupportPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeProjectSupportPackageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ChangeProjectSupportPackage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ChangeProjectSupportPackage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ChangeProjectSupportPackage(ctx, req.(*ChangeProjectSupportPackageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListProjectSupportPackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListProjectSupportPackagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListProjectSupportPackages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListProjectSupportPackages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListProjectSupportPackages(ctx, req.(*ListProjectSupportPackagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_CreateComputeResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateComputeResourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).CreateComputeResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/CreateComputeResource", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).CreateComputeResource(ctx, req.(*CreateComputeResourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListComputeResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListComputeResourcesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListComputeResources(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListComputeResources", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListComputeResources(ctx, req.(*ListComputeResourcesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetComputeResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetComputeResourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetComputeResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetComputeResource", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetComputeResource(ctx, req.(*GetComputeResourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetComputeResourceTraffic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetComputeResourceTrafficRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetComputeResourceTraffic(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetComputeResourceTraffic", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetComputeResourceTraffic(ctx, req.(*GetComputeResourceTrafficRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_UpdateComputeResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateComputeResourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).UpdateComputeResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/UpdateComputeResource", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).UpdateComputeResource(ctx, req.(*UpdateComputeResourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetComputeResourceConsole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetComputeResourceConsoleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetComputeResourceConsole(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetComputeResourceConsole", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetComputeResourceConsole(ctx, req.(*GetComputeResourceConsoleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ChangeComputeResourceRescueMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ComputeResourceRescueModeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ChangeComputeResourceRescueMode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ChangeComputeResourceRescueMode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ChangeComputeResourceRescueMode(ctx, req.(*ComputeResourceRescueModeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_PowerActionComputeResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PowerActionComputeResourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).PowerActionComputeResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/PowerActionComputeResource", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).PowerActionComputeResource(ctx, req.(*PowerActionComputeResourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ReinstallComputeResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReinstallComputeResourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ReinstallComputeResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ReinstallComputeResource", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ReinstallComputeResource(ctx, req.(*ReinstallComputeResourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_DestroyComputeResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DestroyComputeResourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).DestroyComputeResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/DestroyComputeResource", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).DestroyComputeResource(ctx, req.(*DestroyComputeResourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListProjectNetworks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListProjectNetworksRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListProjectNetworks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListProjectNetworks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListProjectNetworks(ctx, req.(*ListProjectNetworksRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProjectNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectNetwork(ctx, req.(*GetProjectNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_UpdateProjectNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateProjectNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).UpdateProjectNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/UpdateProjectNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).UpdateProjectNetwork(ctx, req.(*UpdateProjectNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_CreateProjectNetworkSubnet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateProjectNetworkSubnetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).CreateProjectNetworkSubnet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/CreateProjectNetworkSubnet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).CreateProjectNetworkSubnet(ctx, req.(*CreateProjectNetworkSubnetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_UpdateProjectNetworkSubnet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateProjectNetworkSubnetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).UpdateProjectNetworkSubnet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/UpdateProjectNetworkSubnet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).UpdateProjectNetworkSubnet(ctx, req.(*UpdateProjectNetworkSubnetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_DeleteProjectNetworkSubnet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteProjectNetworkSubnetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).DeleteProjectNetworkSubnet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/DeleteProjectNetworkSubnet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).DeleteProjectNetworkSubnet(ctx, req.(*DeleteProjectNetworkSubnetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_CreateProjectImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateProjectImageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).CreateProjectImage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/CreateProjectImage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).CreateProjectImage(ctx, req.(*CreateProjectImageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListProjectImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListProjectImagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListProjectImages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListProjectImages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListProjectImages(ctx, req.(*ListProjectImagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetProjectImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProjectImageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetProjectImage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetProjectImage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetProjectImage(ctx, req.(*GetProjectImageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_DeleteProjectImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteProjectImageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).DeleteProjectImage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/DeleteProjectImage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).DeleteProjectImage(ctx, req.(*DeleteProjectImageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_DeleteProjectImageVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteProjectImageVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).DeleteProjectImageVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/DeleteProjectImageVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).DeleteProjectImageVersion(ctx, req.(*DeleteProjectImageVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListDataCenters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListDataCenters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListDataCenters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListDataCenters(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListPublicImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPublicImagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListPublicImages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListPublicImages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListPublicImages(ctx, req.(*ListPublicImagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetTwoFactorMethods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetTwoFactorMethods(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetTwoFactorMethods", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetTwoFactorMethods(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_CreateTOTP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).CreateTOTP(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/CreateTOTP", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).CreateTOTP(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_RemoveTOTP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveTOTPRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).RemoveTOTP(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/RemoveTOTP", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).RemoveTOTP(ctx, req.(*RemoveTOTPRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_AddTOTP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddTOTPRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).AddTOTP(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/AddTOTP", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).AddTOTP(ctx, req.(*AddTOTPRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_RegenerateRecoveryCodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RegenerateRecoveryCodesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).RegenerateRecoveryCodes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/RegenerateRecoveryCodes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).RegenerateRecoveryCodes(ctx, req.(*RegenerateRecoveryCodesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListCreditCards_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListCreditCards(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListCreditCards", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListCreditCards(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_AddCreditCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddCreditCardRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).AddCreditCard(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/AddCreditCard", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).AddCreditCard(ctx, req.(*AddCreditCardRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_DeleteCreditCard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteCreditCardRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).DeleteCreditCard(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/DeleteCreditCard", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).DeleteCreditCard(ctx, req.(*DeleteCreditCardRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListCountries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListCountries(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListCountries", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListCountries(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_CreateBillingAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateBillingAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).CreateBillingAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/CreateBillingAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).CreateBillingAddress(ctx, req.(*CreateBillingAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_ListBillingAddresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).ListBillingAddresses(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/ListBillingAddresses", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).ListBillingAddresses(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_DeleteBillingAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteBillingAddressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).DeleteBillingAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/DeleteBillingAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).DeleteBillingAddress(ctx, req.(*DeleteBillingAddressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserAPI_GetSplaPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSplaPriceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserAPIServer).GetSplaPrice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.UserAPI/GetSplaPrice", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserAPIServer).GetSplaPrice(ctx, req.(*GetSplaPriceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// UserAPI_ServiceDesc is the grpc.ServiceDesc for UserAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var UserAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.UserAPI", + HandlerType: (*UserAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetUser", + Handler: _UserAPI_GetUser_Handler, + }, + { + MethodName: "GetUserComputeLimit", + Handler: _UserAPI_GetUserComputeLimit_Handler, + }, + { + MethodName: "UpdateUser", + Handler: _UserAPI_UpdateUser_Handler, + }, + { + MethodName: "ConfirmEMail", + Handler: _UserAPI_ConfirmEMail_Handler, + }, + { + MethodName: "ResendConfirmEMail", + Handler: _UserAPI_ResendConfirmEMail_Handler, + }, + { + MethodName: "ChangeUserPassword", + Handler: _UserAPI_ChangeUserPassword_Handler, + }, + { + MethodName: "BeginWebAuthnRegistration", + Handler: _UserAPI_BeginWebAuthnRegistration_Handler, + }, + { + MethodName: "FinishWebAuthnRegistration", + Handler: _UserAPI_FinishWebAuthnRegistration_Handler, + }, + { + MethodName: "DeleteWebAuthnDevice", + Handler: _UserAPI_DeleteWebAuthnDevice_Handler, + }, + { + MethodName: "ListSessions", + Handler: _UserAPI_ListSessions_Handler, + }, + { + MethodName: "DeleteSession", + Handler: _UserAPI_DeleteSession_Handler, + }, + { + MethodName: "CreateLongLivedToken", + Handler: _UserAPI_CreateLongLivedToken_Handler, + }, + { + MethodName: "ListLongLivedTokens", + Handler: _UserAPI_ListLongLivedTokens_Handler, + }, + { + MethodName: "RevokeLongLivedToken", + Handler: _UserAPI_RevokeLongLivedToken_Handler, + }, + { + MethodName: "CreateProject", + Handler: _UserAPI_CreateProject_Handler, + }, + { + MethodName: "ChangeDefaultProject", + Handler: _UserAPI_ChangeDefaultProject_Handler, + }, + { + MethodName: "GetProject", + Handler: _UserAPI_GetProject_Handler, + }, + { + MethodName: "GetProjectLogs", + Handler: _UserAPI_GetProjectLogs_Handler, + }, + { + MethodName: "GetProjectTraffic", + Handler: _UserAPI_GetProjectTraffic_Handler, + }, + { + MethodName: "GetProjectFlavours", + Handler: _UserAPI_GetProjectFlavours_Handler, + }, + { + MethodName: "UpdateProject", + Handler: _UserAPI_UpdateProject_Handler, + }, + { + MethodName: "JoinProject", + Handler: _UserAPI_JoinProject_Handler, + }, + { + MethodName: "LeaveProject", + Handler: _UserAPI_LeaveProject_Handler, + }, + { + MethodName: "InviteMemberToProject", + Handler: _UserAPI_InviteMemberToProject_Handler, + }, + { + MethodName: "RemoveMemberFromProject", + Handler: _UserAPI_RemoveMemberFromProject_Handler, + }, + { + MethodName: "ListProjects", + Handler: _UserAPI_ListProjects_Handler, + }, + { + MethodName: "DeleteProject", + Handler: _UserAPI_DeleteProject_Handler, + }, + { + MethodName: "GetProjectCurrentBillingPreviewPdf", + Handler: _UserAPI_GetProjectCurrentBillingPreviewPdf_Handler, + }, + { + MethodName: "GetProjectBillPdf", + Handler: _UserAPI_GetProjectBillPdf_Handler, + }, + { + MethodName: "RedeemVoucher", + Handler: _UserAPI_RedeemVoucher_Handler, + }, + { + MethodName: "PayProjectNow", + Handler: _UserAPI_PayProjectNow_Handler, + }, + { + MethodName: "GetProjectCurrentBillingPreview", + Handler: _UserAPI_GetProjectCurrentBillingPreview_Handler, + }, + { + MethodName: "GetProjectsOutstandingBalance", + Handler: _UserAPI_GetProjectsOutstandingBalance_Handler, + }, + { + MethodName: "GetProjectBills", + Handler: _UserAPI_GetProjectBills_Handler, + }, + { + MethodName: "ListProjectSSHKeys", + Handler: _UserAPI_ListProjectSSHKeys_Handler, + }, + { + MethodName: "ListUserSSHKeys", + Handler: _UserAPI_ListUserSSHKeys_Handler, + }, + { + MethodName: "CreateUserSSHKey", + Handler: _UserAPI_CreateUserSSHKey_Handler, + }, + { + MethodName: "DeleteUserSSHKey", + Handler: _UserAPI_DeleteUserSSHKey_Handler, + }, + { + MethodName: "CreateProjectSupportTicket", + Handler: _UserAPI_CreateProjectSupportTicket_Handler, + }, + { + MethodName: "GetProjectSupportTicket", + Handler: _UserAPI_GetProjectSupportTicket_Handler, + }, + { + MethodName: "ListProjectSupportTickets", + Handler: _UserAPI_ListProjectSupportTickets_Handler, + }, + { + MethodName: "CloseProjectSupportTicket", + Handler: _UserAPI_CloseProjectSupportTicket_Handler, + }, + { + MethodName: "AddProjectSupportTicketComment", + Handler: _UserAPI_AddProjectSupportTicketComment_Handler, + }, + { + MethodName: "ChangeProjectSupportPackage", + Handler: _UserAPI_ChangeProjectSupportPackage_Handler, + }, + { + MethodName: "ListProjectSupportPackages", + Handler: _UserAPI_ListProjectSupportPackages_Handler, + }, + { + MethodName: "CreateComputeResource", + Handler: _UserAPI_CreateComputeResource_Handler, + }, + { + MethodName: "ListComputeResources", + Handler: _UserAPI_ListComputeResources_Handler, + }, + { + MethodName: "GetComputeResource", + Handler: _UserAPI_GetComputeResource_Handler, + }, + { + MethodName: "GetComputeResourceTraffic", + Handler: _UserAPI_GetComputeResourceTraffic_Handler, + }, + { + MethodName: "UpdateComputeResource", + Handler: _UserAPI_UpdateComputeResource_Handler, + }, + { + MethodName: "GetComputeResourceConsole", + Handler: _UserAPI_GetComputeResourceConsole_Handler, + }, + { + MethodName: "ChangeComputeResourceRescueMode", + Handler: _UserAPI_ChangeComputeResourceRescueMode_Handler, + }, + { + MethodName: "PowerActionComputeResource", + Handler: _UserAPI_PowerActionComputeResource_Handler, + }, + { + MethodName: "ReinstallComputeResource", + Handler: _UserAPI_ReinstallComputeResource_Handler, + }, + { + MethodName: "DestroyComputeResource", + Handler: _UserAPI_DestroyComputeResource_Handler, + }, + { + MethodName: "ListProjectNetworks", + Handler: _UserAPI_ListProjectNetworks_Handler, + }, + { + MethodName: "GetProjectNetwork", + Handler: _UserAPI_GetProjectNetwork_Handler, + }, + { + MethodName: "UpdateProjectNetwork", + Handler: _UserAPI_UpdateProjectNetwork_Handler, + }, + { + MethodName: "CreateProjectNetworkSubnet", + Handler: _UserAPI_CreateProjectNetworkSubnet_Handler, + }, + { + MethodName: "UpdateProjectNetworkSubnet", + Handler: _UserAPI_UpdateProjectNetworkSubnet_Handler, + }, + { + MethodName: "DeleteProjectNetworkSubnet", + Handler: _UserAPI_DeleteProjectNetworkSubnet_Handler, + }, + { + MethodName: "CreateProjectImage", + Handler: _UserAPI_CreateProjectImage_Handler, + }, + { + MethodName: "ListProjectImages", + Handler: _UserAPI_ListProjectImages_Handler, + }, + { + MethodName: "GetProjectImage", + Handler: _UserAPI_GetProjectImage_Handler, + }, + { + MethodName: "DeleteProjectImage", + Handler: _UserAPI_DeleteProjectImage_Handler, + }, + { + MethodName: "DeleteProjectImageVersion", + Handler: _UserAPI_DeleteProjectImageVersion_Handler, + }, + { + MethodName: "ListDataCenters", + Handler: _UserAPI_ListDataCenters_Handler, + }, + { + MethodName: "ListPublicImages", + Handler: _UserAPI_ListPublicImages_Handler, + }, + { + MethodName: "GetTwoFactorMethods", + Handler: _UserAPI_GetTwoFactorMethods_Handler, + }, + { + MethodName: "CreateTOTP", + Handler: _UserAPI_CreateTOTP_Handler, + }, + { + MethodName: "RemoveTOTP", + Handler: _UserAPI_RemoveTOTP_Handler, + }, + { + MethodName: "AddTOTP", + Handler: _UserAPI_AddTOTP_Handler, + }, + { + MethodName: "RegenerateRecoveryCodes", + Handler: _UserAPI_RegenerateRecoveryCodes_Handler, + }, + { + MethodName: "ListCreditCards", + Handler: _UserAPI_ListCreditCards_Handler, + }, + { + MethodName: "AddCreditCard", + Handler: _UserAPI_AddCreditCard_Handler, + }, + { + MethodName: "DeleteCreditCard", + Handler: _UserAPI_DeleteCreditCard_Handler, + }, + { + MethodName: "ListCountries", + Handler: _UserAPI_ListCountries_Handler, + }, + { + MethodName: "CreateBillingAddress", + Handler: _UserAPI_CreateBillingAddress_Handler, + }, + { + MethodName: "ListBillingAddresses", + Handler: _UserAPI_ListBillingAddresses_Handler, + }, + { + MethodName: "DeleteBillingAddress", + Handler: _UserAPI_DeleteBillingAddress_Handler, + }, + { + MethodName: "GetSplaPrice", + Handler: _UserAPI_GetSplaPrice_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "SubscribeProjectNotifications", + Handler: _UserAPI_SubscribeProjectNotifications_Handler, + ServerStreams: true, + }, + }, + Metadata: "service.proto", +} + +// GatewayAPIClient is the client API for GatewayAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type GatewayAPIClient interface { + // GetVnc Get VNC server information by token + GetVnc(ctx context.Context, in *GetVNCRequest, opts ...grpc.CallOption) (*GetVNCResponse, error) + // Get JWT Public Key List + ListJwtPublicKeys(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListJwtPublicKeysResponse, error) + // ImageUploadValidate Validate a image upload token + ImageUploadValidate(ctx context.Context, in *ValidateImageUploadTokenRequest, opts ...grpc.CallOption) (*ImageVersion, error) + // ImageUploadConfirm Confirms the successful upload of a image + ImageUploadConfirm(ctx context.Context, in *ConfirmImageUploadRequest, opts ...grpc.CallOption) (*EmptyResponse, error) +} + +type gatewayAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewGatewayAPIClient(cc grpc.ClientConnInterface) GatewayAPIClient { + return &gatewayAPIClient{cc} +} + +func (c *gatewayAPIClient) GetVnc(ctx context.Context, in *GetVNCRequest, opts ...grpc.CallOption) (*GetVNCResponse, error) { + out := new(GetVNCResponse) + err := c.cc.Invoke(ctx, "/api.GatewayAPI/GetVnc", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ListJwtPublicKeys(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListJwtPublicKeysResponse, error) { + out := new(ListJwtPublicKeysResponse) + err := c.cc.Invoke(ctx, "/api.GatewayAPI/ListJwtPublicKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ImageUploadValidate(ctx context.Context, in *ValidateImageUploadTokenRequest, opts ...grpc.CallOption) (*ImageVersion, error) { + out := new(ImageVersion) + err := c.cc.Invoke(ctx, "/api.GatewayAPI/ImageUploadValidate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *gatewayAPIClient) ImageUploadConfirm(ctx context.Context, in *ConfirmImageUploadRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.GatewayAPI/ImageUploadConfirm", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// GatewayAPIServer is the server API for GatewayAPI service. +// All implementations must embed UnimplementedGatewayAPIServer +// for forward compatibility +type GatewayAPIServer interface { + // GetVnc Get VNC server information by token + GetVnc(context.Context, *GetVNCRequest) (*GetVNCResponse, error) + // Get JWT Public Key List + ListJwtPublicKeys(context.Context, *EmptyRequest) (*ListJwtPublicKeysResponse, error) + // ImageUploadValidate Validate a image upload token + ImageUploadValidate(context.Context, *ValidateImageUploadTokenRequest) (*ImageVersion, error) + // ImageUploadConfirm Confirms the successful upload of a image + ImageUploadConfirm(context.Context, *ConfirmImageUploadRequest) (*EmptyResponse, error) + mustEmbedUnimplementedGatewayAPIServer() +} + +// UnimplementedGatewayAPIServer must be embedded to have forward compatible implementations. +type UnimplementedGatewayAPIServer struct { +} + +func (UnimplementedGatewayAPIServer) GetVnc(context.Context, *GetVNCRequest) (*GetVNCResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVnc not implemented") +} +func (UnimplementedGatewayAPIServer) ListJwtPublicKeys(context.Context, *EmptyRequest) (*ListJwtPublicKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListJwtPublicKeys not implemented") +} +func (UnimplementedGatewayAPIServer) ImageUploadValidate(context.Context, *ValidateImageUploadTokenRequest) (*ImageVersion, error) { + return nil, status.Errorf(codes.Unimplemented, "method ImageUploadValidate not implemented") +} +func (UnimplementedGatewayAPIServer) ImageUploadConfirm(context.Context, *ConfirmImageUploadRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ImageUploadConfirm not implemented") +} +func (UnimplementedGatewayAPIServer) mustEmbedUnimplementedGatewayAPIServer() {} + +// UnsafeGatewayAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to GatewayAPIServer will +// result in compilation errors. +type UnsafeGatewayAPIServer interface { + mustEmbedUnimplementedGatewayAPIServer() +} + +func RegisterGatewayAPIServer(s grpc.ServiceRegistrar, srv GatewayAPIServer) { + s.RegisterService(&GatewayAPI_ServiceDesc, srv) +} + +func _GatewayAPI_GetVnc_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetVNCRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).GetVnc(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.GatewayAPI/GetVnc", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).GetVnc(ctx, req.(*GetVNCRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ListJwtPublicKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ListJwtPublicKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.GatewayAPI/ListJwtPublicKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ListJwtPublicKeys(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ImageUploadValidate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidateImageUploadTokenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ImageUploadValidate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.GatewayAPI/ImageUploadValidate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ImageUploadValidate(ctx, req.(*ValidateImageUploadTokenRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _GatewayAPI_ImageUploadConfirm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ConfirmImageUploadRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(GatewayAPIServer).ImageUploadConfirm(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.GatewayAPI/ImageUploadConfirm", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(GatewayAPIServer).ImageUploadConfirm(ctx, req.(*ConfirmImageUploadRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// GatewayAPI_ServiceDesc is the grpc.ServiceDesc for GatewayAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var GatewayAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.GatewayAPI", + HandlerType: (*GatewayAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetVnc", + Handler: _GatewayAPI_GetVnc_Handler, + }, + { + MethodName: "ListJwtPublicKeys", + Handler: _GatewayAPI_ListJwtPublicKeys_Handler, + }, + { + MethodName: "ImageUploadValidate", + Handler: _GatewayAPI_ImageUploadValidate_Handler, + }, + { + MethodName: "ImageUploadConfirm", + Handler: _GatewayAPI_ImageUploadConfirm_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service.proto", +} + +// ServiceAPIClient is the client API for ServiceAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ServiceAPIClient interface { + // Requests the metadata information from Backend + GetMetadata(ctx context.Context, in *MetadataRequest, opts ...grpc.CallOption) (*Metadata, error) + // Requests password information from backend + GetMetadataPassword(ctx context.Context, in *MetadataRequest, opts ...grpc.CallOption) (*MetadataPasswordResponse, error) + // GetNetworkBootData Returns all information for network boot + GetNetworkBootData(ctx context.Context, in *NetworkBootDataRequest, opts ...grpc.CallOption) (*NetworkBootDataResponse, error) + // GetDHCPNetworks Returns all DHCP network information + GetDHCPNetworks(ctx context.Context, in *DHCPNetworksRequest, opts ...grpc.CallOption) (*DHCPNetworksResponse, error) + // PushHardwareInventory Push hardware inventory to database + PushHardwareInventory(ctx context.Context, in *PushHardwareInventoryRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // ListSwitches List all switches for agent + ListSwitches(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListSwitchesResponse, error) + // ListSwitches List all switches for agent + UpdateMacAddressMapping(ctx context.Context, in *UpdateMacAddressMappingRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // GetAutoRunScript Get auto-run script for server + GetAutoRunScript(ctx context.Context, in *GetAutoRunScriptRequest, opts ...grpc.CallOption) (*GetAutoRunScriptResponse, error) + // PostProvisioningCallback Post provisioning callback + PostProvisioningCallback(ctx context.Context, in *PostProvisioningCallbackRequest, opts ...grpc.CallOption) (*PostProvisioningCallbackResponse, error) + // FinishProvisioningCallback Post provisioning callback + FinishProvisioningCallback(ctx context.Context, in *FinishProvisioningCallbackRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // PostDeprovisioningCallback Post deprovisioning callback + PostDeprovisioningCallback(ctx context.Context, in *PostDeprovisioningCallbackRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // ListMonitoringTargets Returns all monitoring targets + ListMonitoringTargets(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListMonitoringTargetsResponse, error) + // UpdateMonitoringStatus Update monitoring status on backend + UpdateMonitoringStatus(ctx context.Context, in *UpdateMonitoringStatusRequest, opts ...grpc.CallOption) (*EmptyResponse, error) + // ListPlatformManagements List all platform managements for agent + ListPlatformManagements(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListPlatformManagementsResponse, error) +} + +type serviceAPIClient struct { + cc grpc.ClientConnInterface +} + +func NewServiceAPIClient(cc grpc.ClientConnInterface) ServiceAPIClient { + return &serviceAPIClient{cc} +} + +func (c *serviceAPIClient) GetMetadata(ctx context.Context, in *MetadataRequest, opts ...grpc.CallOption) (*Metadata, error) { + out := new(Metadata) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/GetMetadata", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) GetMetadataPassword(ctx context.Context, in *MetadataRequest, opts ...grpc.CallOption) (*MetadataPasswordResponse, error) { + out := new(MetadataPasswordResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/GetMetadataPassword", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) GetNetworkBootData(ctx context.Context, in *NetworkBootDataRequest, opts ...grpc.CallOption) (*NetworkBootDataResponse, error) { + out := new(NetworkBootDataResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/GetNetworkBootData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) GetDHCPNetworks(ctx context.Context, in *DHCPNetworksRequest, opts ...grpc.CallOption) (*DHCPNetworksResponse, error) { + out := new(DHCPNetworksResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/GetDHCPNetworks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) PushHardwareInventory(ctx context.Context, in *PushHardwareInventoryRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/PushHardwareInventory", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) ListSwitches(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListSwitchesResponse, error) { + out := new(ListSwitchesResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/ListSwitches", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) UpdateMacAddressMapping(ctx context.Context, in *UpdateMacAddressMappingRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/UpdateMacAddressMapping", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) GetAutoRunScript(ctx context.Context, in *GetAutoRunScriptRequest, opts ...grpc.CallOption) (*GetAutoRunScriptResponse, error) { + out := new(GetAutoRunScriptResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/GetAutoRunScript", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) PostProvisioningCallback(ctx context.Context, in *PostProvisioningCallbackRequest, opts ...grpc.CallOption) (*PostProvisioningCallbackResponse, error) { + out := new(PostProvisioningCallbackResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/PostProvisioningCallback", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) FinishProvisioningCallback(ctx context.Context, in *FinishProvisioningCallbackRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/FinishProvisioningCallback", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) PostDeprovisioningCallback(ctx context.Context, in *PostDeprovisioningCallbackRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/PostDeprovisioningCallback", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) ListMonitoringTargets(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListMonitoringTargetsResponse, error) { + out := new(ListMonitoringTargetsResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/ListMonitoringTargets", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) UpdateMonitoringStatus(ctx context.Context, in *UpdateMonitoringStatusRequest, opts ...grpc.CallOption) (*EmptyResponse, error) { + out := new(EmptyResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/UpdateMonitoringStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceAPIClient) ListPlatformManagements(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListPlatformManagementsResponse, error) { + out := new(ListPlatformManagementsResponse) + err := c.cc.Invoke(ctx, "/api.ServiceAPI/ListPlatformManagements", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ServiceAPIServer is the server API for ServiceAPI service. +// All implementations must embed UnimplementedServiceAPIServer +// for forward compatibility +type ServiceAPIServer interface { + // Requests the metadata information from Backend + GetMetadata(context.Context, *MetadataRequest) (*Metadata, error) + // Requests password information from backend + GetMetadataPassword(context.Context, *MetadataRequest) (*MetadataPasswordResponse, error) + // GetNetworkBootData Returns all information for network boot + GetNetworkBootData(context.Context, *NetworkBootDataRequest) (*NetworkBootDataResponse, error) + // GetDHCPNetworks Returns all DHCP network information + GetDHCPNetworks(context.Context, *DHCPNetworksRequest) (*DHCPNetworksResponse, error) + // PushHardwareInventory Push hardware inventory to database + PushHardwareInventory(context.Context, *PushHardwareInventoryRequest) (*EmptyResponse, error) + // ListSwitches List all switches for agent + ListSwitches(context.Context, *EmptyRequest) (*ListSwitchesResponse, error) + // ListSwitches List all switches for agent + UpdateMacAddressMapping(context.Context, *UpdateMacAddressMappingRequest) (*EmptyResponse, error) + // GetAutoRunScript Get auto-run script for server + GetAutoRunScript(context.Context, *GetAutoRunScriptRequest) (*GetAutoRunScriptResponse, error) + // PostProvisioningCallback Post provisioning callback + PostProvisioningCallback(context.Context, *PostProvisioningCallbackRequest) (*PostProvisioningCallbackResponse, error) + // FinishProvisioningCallback Post provisioning callback + FinishProvisioningCallback(context.Context, *FinishProvisioningCallbackRequest) (*EmptyResponse, error) + // PostDeprovisioningCallback Post deprovisioning callback + PostDeprovisioningCallback(context.Context, *PostDeprovisioningCallbackRequest) (*EmptyResponse, error) + // ListMonitoringTargets Returns all monitoring targets + ListMonitoringTargets(context.Context, *EmptyRequest) (*ListMonitoringTargetsResponse, error) + // UpdateMonitoringStatus Update monitoring status on backend + UpdateMonitoringStatus(context.Context, *UpdateMonitoringStatusRequest) (*EmptyResponse, error) + // ListPlatformManagements List all platform managements for agent + ListPlatformManagements(context.Context, *EmptyRequest) (*ListPlatformManagementsResponse, error) + mustEmbedUnimplementedServiceAPIServer() +} + +// UnimplementedServiceAPIServer must be embedded to have forward compatible implementations. +type UnimplementedServiceAPIServer struct { +} + +func (UnimplementedServiceAPIServer) GetMetadata(context.Context, *MetadataRequest) (*Metadata, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMetadata not implemented") +} +func (UnimplementedServiceAPIServer) GetMetadataPassword(context.Context, *MetadataRequest) (*MetadataPasswordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMetadataPassword not implemented") +} +func (UnimplementedServiceAPIServer) GetNetworkBootData(context.Context, *NetworkBootDataRequest) (*NetworkBootDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNetworkBootData not implemented") +} +func (UnimplementedServiceAPIServer) GetDHCPNetworks(context.Context, *DHCPNetworksRequest) (*DHCPNetworksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDHCPNetworks not implemented") +} +func (UnimplementedServiceAPIServer) PushHardwareInventory(context.Context, *PushHardwareInventoryRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PushHardwareInventory not implemented") +} +func (UnimplementedServiceAPIServer) ListSwitches(context.Context, *EmptyRequest) (*ListSwitchesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSwitches not implemented") +} +func (UnimplementedServiceAPIServer) UpdateMacAddressMapping(context.Context, *UpdateMacAddressMappingRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateMacAddressMapping not implemented") +} +func (UnimplementedServiceAPIServer) GetAutoRunScript(context.Context, *GetAutoRunScriptRequest) (*GetAutoRunScriptResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAutoRunScript not implemented") +} +func (UnimplementedServiceAPIServer) PostProvisioningCallback(context.Context, *PostProvisioningCallbackRequest) (*PostProvisioningCallbackResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PostProvisioningCallback not implemented") +} +func (UnimplementedServiceAPIServer) FinishProvisioningCallback(context.Context, *FinishProvisioningCallbackRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FinishProvisioningCallback not implemented") +} +func (UnimplementedServiceAPIServer) PostDeprovisioningCallback(context.Context, *PostDeprovisioningCallbackRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PostDeprovisioningCallback not implemented") +} +func (UnimplementedServiceAPIServer) ListMonitoringTargets(context.Context, *EmptyRequest) (*ListMonitoringTargetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListMonitoringTargets not implemented") +} +func (UnimplementedServiceAPIServer) UpdateMonitoringStatus(context.Context, *UpdateMonitoringStatusRequest) (*EmptyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateMonitoringStatus not implemented") +} +func (UnimplementedServiceAPIServer) ListPlatformManagements(context.Context, *EmptyRequest) (*ListPlatformManagementsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPlatformManagements not implemented") +} +func (UnimplementedServiceAPIServer) mustEmbedUnimplementedServiceAPIServer() {} + +// UnsafeServiceAPIServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ServiceAPIServer will +// result in compilation errors. +type UnsafeServiceAPIServer interface { + mustEmbedUnimplementedServiceAPIServer() +} + +func RegisterServiceAPIServer(s grpc.ServiceRegistrar, srv ServiceAPIServer) { + s.RegisterService(&ServiceAPI_ServiceDesc, srv) +} + +func _ServiceAPI_GetMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MetadataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).GetMetadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/GetMetadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).GetMetadata(ctx, req.(*MetadataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_GetMetadataPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MetadataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).GetMetadataPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/GetMetadataPassword", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).GetMetadataPassword(ctx, req.(*MetadataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_GetNetworkBootData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NetworkBootDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).GetNetworkBootData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/GetNetworkBootData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).GetNetworkBootData(ctx, req.(*NetworkBootDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_GetDHCPNetworks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DHCPNetworksRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).GetDHCPNetworks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/GetDHCPNetworks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).GetDHCPNetworks(ctx, req.(*DHCPNetworksRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_PushHardwareInventory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PushHardwareInventoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).PushHardwareInventory(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/PushHardwareInventory", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).PushHardwareInventory(ctx, req.(*PushHardwareInventoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_ListSwitches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).ListSwitches(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/ListSwitches", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).ListSwitches(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_UpdateMacAddressMapping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateMacAddressMappingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).UpdateMacAddressMapping(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/UpdateMacAddressMapping", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).UpdateMacAddressMapping(ctx, req.(*UpdateMacAddressMappingRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_GetAutoRunScript_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAutoRunScriptRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).GetAutoRunScript(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/GetAutoRunScript", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).GetAutoRunScript(ctx, req.(*GetAutoRunScriptRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_PostProvisioningCallback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PostProvisioningCallbackRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).PostProvisioningCallback(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/PostProvisioningCallback", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).PostProvisioningCallback(ctx, req.(*PostProvisioningCallbackRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_FinishProvisioningCallback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FinishProvisioningCallbackRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).FinishProvisioningCallback(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/FinishProvisioningCallback", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).FinishProvisioningCallback(ctx, req.(*FinishProvisioningCallbackRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_PostDeprovisioningCallback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PostDeprovisioningCallbackRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).PostDeprovisioningCallback(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/PostDeprovisioningCallback", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).PostDeprovisioningCallback(ctx, req.(*PostDeprovisioningCallbackRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_ListMonitoringTargets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).ListMonitoringTargets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/ListMonitoringTargets", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).ListMonitoringTargets(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_UpdateMonitoringStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateMonitoringStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).UpdateMonitoringStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/UpdateMonitoringStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).UpdateMonitoringStatus(ctx, req.(*UpdateMonitoringStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ServiceAPI_ListPlatformManagements_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EmptyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServiceAPIServer).ListPlatformManagements(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.ServiceAPI/ListPlatformManagements", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServiceAPIServer).ListPlatformManagements(ctx, req.(*EmptyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ServiceAPI_ServiceDesc is the grpc.ServiceDesc for ServiceAPI service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ServiceAPI_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "api.ServiceAPI", + HandlerType: (*ServiceAPIServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetMetadata", + Handler: _ServiceAPI_GetMetadata_Handler, + }, + { + MethodName: "GetMetadataPassword", + Handler: _ServiceAPI_GetMetadataPassword_Handler, + }, + { + MethodName: "GetNetworkBootData", + Handler: _ServiceAPI_GetNetworkBootData_Handler, + }, + { + MethodName: "GetDHCPNetworks", + Handler: _ServiceAPI_GetDHCPNetworks_Handler, + }, + { + MethodName: "PushHardwareInventory", + Handler: _ServiceAPI_PushHardwareInventory_Handler, + }, + { + MethodName: "ListSwitches", + Handler: _ServiceAPI_ListSwitches_Handler, + }, + { + MethodName: "UpdateMacAddressMapping", + Handler: _ServiceAPI_UpdateMacAddressMapping_Handler, + }, + { + MethodName: "GetAutoRunScript", + Handler: _ServiceAPI_GetAutoRunScript_Handler, + }, + { + MethodName: "PostProvisioningCallback", + Handler: _ServiceAPI_PostProvisioningCallback_Handler, + }, + { + MethodName: "FinishProvisioningCallback", + Handler: _ServiceAPI_FinishProvisioningCallback_Handler, + }, + { + MethodName: "PostDeprovisioningCallback", + Handler: _ServiceAPI_PostDeprovisioningCallback_Handler, + }, + { + MethodName: "ListMonitoringTargets", + Handler: _ServiceAPI_ListMonitoringTargets_Handler, + }, + { + MethodName: "UpdateMonitoringStatus", + Handler: _ServiceAPI_UpdateMonitoringStatus_Handler, + }, + { + MethodName: "ListPlatformManagements", + Handler: _ServiceAPI_ListPlatformManagements_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service.proto", +} diff --git a/pkg/gpcloud/ptypes/setting.pb.go b/pkg/gpcloud/ptypes/setting.pb.go new file mode 100644 index 0000000..88973b2 --- /dev/null +++ b/pkg/gpcloud/ptypes/setting.pb.go @@ -0,0 +1,534 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: setting.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + 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) +) + +type SettingType int32 + +const ( + SettingType_STRING SettingType = 0 +) + +// Enum value maps for SettingType. +var ( + SettingType_name = map[int32]string{ + 0: "STRING", + } + SettingType_value = map[string]int32{ + "STRING": 0, + } +) + +func (x SettingType) Enum() *SettingType { + p := new(SettingType) + *p = x + return p +} + +func (x SettingType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SettingType) Descriptor() protoreflect.EnumDescriptor { + return file_setting_proto_enumTypes[0].Descriptor() +} + +func (SettingType) Type() protoreflect.EnumType { + return &file_setting_proto_enumTypes[0] +} + +func (x SettingType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SettingType.Descriptor instead. +func (SettingType) EnumDescriptor() ([]byte, []int) { + return file_setting_proto_rawDescGZIP(), []int{0} +} + +type Setting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value *anypb.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Public bool `protobuf:"varint,4,opt,name=public,proto3" json:"public,omitempty"` +} + +func (x *Setting) Reset() { + *x = Setting{} + if protoimpl.UnsafeEnabled { + mi := &file_setting_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Setting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Setting) ProtoMessage() {} + +func (x *Setting) ProtoReflect() protoreflect.Message { + mi := &file_setting_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 Setting.ProtoReflect.Descriptor instead. +func (*Setting) Descriptor() ([]byte, []int) { + return file_setting_proto_rawDescGZIP(), []int{0} +} + +func (x *Setting) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Setting) GetValue() *anypb.Any { + if x != nil { + return x.Value + } + return nil +} + +func (x *Setting) GetPublic() bool { + if x != nil { + return x.Public + } + return false +} + +type StringValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *StringValue) Reset() { + *x = StringValue{} + if protoimpl.UnsafeEnabled { + mi := &file_setting_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StringValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringValue) ProtoMessage() {} + +func (x *StringValue) ProtoReflect() protoreflect.Message { + mi := &file_setting_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 StringValue.ProtoReflect.Descriptor instead. +func (*StringValue) Descriptor() ([]byte, []int) { + return file_setting_proto_rawDescGZIP(), []int{1} +} + +func (x *StringValue) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +type BoolValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *BoolValue) Reset() { + *x = BoolValue{} + if protoimpl.UnsafeEnabled { + mi := &file_setting_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoolValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoolValue) ProtoMessage() {} + +func (x *BoolValue) ProtoReflect() protoreflect.Message { + mi := &file_setting_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 BoolValue.ProtoReflect.Descriptor instead. +func (*BoolValue) Descriptor() ([]byte, []int) { + return file_setting_proto_rawDescGZIP(), []int{2} +} + +func (x *BoolValue) GetValue() bool { + if x != nil { + return x.Value + } + return false +} + +type IntegerValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *IntegerValue) Reset() { + *x = IntegerValue{} + if protoimpl.UnsafeEnabled { + mi := &file_setting_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IntegerValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IntegerValue) ProtoMessage() {} + +func (x *IntegerValue) ProtoReflect() protoreflect.Message { + mi := &file_setting_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 IntegerValue.ProtoReflect.Descriptor instead. +func (*IntegerValue) Descriptor() ([]byte, []int) { + return file_setting_proto_rawDescGZIP(), []int{3} +} + +func (x *IntegerValue) GetValue() bool { + if x != nil { + return x.Value + } + return false +} + +type AdminListSettingsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Settings []*Setting `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"` +} + +func (x *AdminListSettingsResponse) Reset() { + *x = AdminListSettingsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_setting_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListSettingsResponse) ProtoMessage() {} + +func (x *AdminListSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_setting_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 AdminListSettingsResponse.ProtoReflect.Descriptor instead. +func (*AdminListSettingsResponse) Descriptor() ([]byte, []int) { + return file_setting_proto_rawDescGZIP(), []int{4} +} + +func (x *AdminListSettingsResponse) GetSettings() []*Setting { + if x != nil { + return x.Settings + } + return nil +} + +type AdminUpdateSettingsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Settings []*Setting `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"` +} + +func (x *AdminUpdateSettingsRequest) Reset() { + *x = AdminUpdateSettingsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_setting_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminUpdateSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminUpdateSettingsRequest) ProtoMessage() {} + +func (x *AdminUpdateSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_setting_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 AdminUpdateSettingsRequest.ProtoReflect.Descriptor instead. +func (*AdminUpdateSettingsRequest) Descriptor() ([]byte, []int) { + return file_setting_proto_rawDescGZIP(), []int{5} +} + +func (x *AdminUpdateSettingsRequest) GetSettings() []*Setting { + if x != nil { + return x.Settings + } + return nil +} + +var File_setting_proto protoreflect.FileDescriptor + +var file_setting_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0c, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x19, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, + 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x61, 0x0a, 0x07, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x22, 0x23, 0x0a, 0x0b, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x22, 0x21, 0x0a, 0x09, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4e, 0x0a, 0x19, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, + 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x4f, 0x0a, 0x1a, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2a, 0x19, 0x0a, 0x0b, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, + 0x49, 0x4e, 0x47, 0x10, 0x00, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, + 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_setting_proto_rawDescOnce sync.Once + file_setting_proto_rawDescData = file_setting_proto_rawDesc +) + +func file_setting_proto_rawDescGZIP() []byte { + file_setting_proto_rawDescOnce.Do(func() { + file_setting_proto_rawDescData = protoimpl.X.CompressGZIP(file_setting_proto_rawDescData) + }) + return file_setting_proto_rawDescData +} + +var file_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_setting_proto_goTypes = []interface{}{ + (SettingType)(0), // 0: api.settings.SettingType + (*Setting)(nil), // 1: api.settings.Setting + (*StringValue)(nil), // 2: api.settings.StringValue + (*BoolValue)(nil), // 3: api.settings.BoolValue + (*IntegerValue)(nil), // 4: api.settings.IntegerValue + (*AdminListSettingsResponse)(nil), // 5: api.settings.AdminListSettingsResponse + (*AdminUpdateSettingsRequest)(nil), // 6: api.settings.AdminUpdateSettingsRequest + (*anypb.Any)(nil), // 7: google.protobuf.Any +} +var file_setting_proto_depIdxs = []int32{ + 7, // 0: api.settings.Setting.value:type_name -> google.protobuf.Any + 1, // 1: api.settings.AdminListSettingsResponse.settings:type_name -> api.settings.Setting + 1, // 2: api.settings.AdminUpdateSettingsRequest.settings:type_name -> api.settings.Setting + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_setting_proto_init() } +func file_setting_proto_init() { + if File_setting_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_setting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Setting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StringValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setting_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoolValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setting_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IntegerValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setting_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListSettingsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setting_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminUpdateSettingsRequest); 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_setting_proto_rawDesc, + NumEnums: 1, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_setting_proto_goTypes, + DependencyIndexes: file_setting_proto_depIdxs, + EnumInfos: file_setting_proto_enumTypes, + MessageInfos: file_setting_proto_msgTypes, + }.Build() + File_setting_proto = out.File + file_setting_proto_rawDesc = nil + file_setting_proto_goTypes = nil + file_setting_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/spla.pb.go b/pkg/gpcloud/ptypes/spla.pb.go new file mode 100644 index 0000000..a2a09c3 --- /dev/null +++ b/pkg/gpcloud/ptypes/spla.pb.go @@ -0,0 +1,291 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: spla.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + 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) +) + +type SplaPrice struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Base price for the first 8 cores + BasePrice *Price `protobuf:"bytes,1,opt,name=base_price,json=basePrice,proto3" json:"base_price,omitempty"` + // Additional price for 2 further CPU cores + Additional_2CoresPrice *Price `protobuf:"bytes,2,opt,name=additional_2_cores_price,json=additional2CoresPrice,proto3" json:"additional_2_cores_price,omitempty"` +} + +func (x *SplaPrice) Reset() { + *x = SplaPrice{} + if protoimpl.UnsafeEnabled { + mi := &file_spla_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SplaPrice) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SplaPrice) ProtoMessage() {} + +func (x *SplaPrice) ProtoReflect() protoreflect.Message { + mi := &file_spla_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 SplaPrice.ProtoReflect.Descriptor instead. +func (*SplaPrice) Descriptor() ([]byte, []int) { + return file_spla_proto_rawDescGZIP(), []int{0} +} + +func (x *SplaPrice) GetBasePrice() *Price { + if x != nil { + return x.BasePrice + } + return nil +} + +func (x *SplaPrice) GetAdditional_2CoresPrice() *Price { + if x != nil { + return x.Additional_2CoresPrice + } + return nil +} + +type GetSplaPriceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *GetSplaPriceRequest) Reset() { + *x = GetSplaPriceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spla_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSplaPriceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSplaPriceRequest) ProtoMessage() {} + +func (x *GetSplaPriceRequest) ProtoReflect() protoreflect.Message { + mi := &file_spla_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 GetSplaPriceRequest.ProtoReflect.Descriptor instead. +func (*GetSplaPriceRequest) Descriptor() ([]byte, []int) { + return file_spla_proto_rawDescGZIP(), []int{1} +} + +func (x *GetSplaPriceRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type GetSplaPriceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Price *SplaPrice `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` +} + +func (x *GetSplaPriceResponse) Reset() { + *x = GetSplaPriceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_spla_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetSplaPriceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetSplaPriceResponse) ProtoMessage() {} + +func (x *GetSplaPriceResponse) ProtoReflect() protoreflect.Message { + mi := &file_spla_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 GetSplaPriceResponse.ProtoReflect.Descriptor instead. +func (*GetSplaPriceResponse) Descriptor() ([]byte, []int) { + return file_spla_proto_rawDescGZIP(), []int{2} +} + +func (x *GetSplaPriceResponse) GetPrice() *SplaPrice { + if x != nil { + return x.Price + } + return nil +} + +var File_spla_proto protoreflect.FileDescriptor + +var file_spla_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x73, 0x70, 0x6c, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x70, + 0x69, 0x2e, 0x73, 0x70, 0x6c, 0x61, 0x1a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7b, 0x0a, 0x09, 0x53, 0x70, 0x6c, 0x61, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x12, 0x29, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, + 0x18, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x32, 0x5f, 0x63, 0x6f, + 0x72, 0x65, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x15, 0x61, 0x64, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x32, 0x43, 0x6f, 0x72, 0x65, 0x73, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x22, 0x34, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x70, 0x6c, 0x61, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x41, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x53, + 0x70, 0x6c, 0x61, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x29, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x70, 0x6c, 0x61, 0x2e, 0x53, 0x70, 0x6c, 0x61, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x42, 0x16, 0x5a, 0x14, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_spla_proto_rawDescOnce sync.Once + file_spla_proto_rawDescData = file_spla_proto_rawDesc +) + +func file_spla_proto_rawDescGZIP() []byte { + file_spla_proto_rawDescOnce.Do(func() { + file_spla_proto_rawDescData = protoimpl.X.CompressGZIP(file_spla_proto_rawDescData) + }) + return file_spla_proto_rawDescData +} + +var file_spla_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_spla_proto_goTypes = []interface{}{ + (*SplaPrice)(nil), // 0: api.spla.SplaPrice + (*GetSplaPriceRequest)(nil), // 1: api.spla.GetSplaPriceRequest + (*GetSplaPriceResponse)(nil), // 2: api.spla.GetSplaPriceResponse + (*Price)(nil), // 3: api.Price +} +var file_spla_proto_depIdxs = []int32{ + 3, // 0: api.spla.SplaPrice.base_price:type_name -> api.Price + 3, // 1: api.spla.SplaPrice.additional_2_cores_price:type_name -> api.Price + 0, // 2: api.spla.GetSplaPriceResponse.price:type_name -> api.spla.SplaPrice + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_spla_proto_init() } +func file_spla_proto_init() { + if File_spla_proto != nil { + return + } + file_generic_proto_init() + if !protoimpl.UnsafeEnabled { + file_spla_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SplaPrice); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spla_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSplaPriceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spla_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSplaPriceResponse); 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_spla_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_spla_proto_goTypes, + DependencyIndexes: file_spla_proto_depIdxs, + MessageInfos: file_spla_proto_msgTypes, + }.Build() + File_spla_proto = out.File + file_spla_proto_rawDesc = nil + file_spla_proto_goTypes = nil + file_spla_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/support.pb.go b/pkg/gpcloud/ptypes/support.pb.go new file mode 100644 index 0000000..f617aca --- /dev/null +++ b/pkg/gpcloud/ptypes/support.pb.go @@ -0,0 +1,1539 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: support.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type TicketStatus int32 + +const ( + TicketStatus_OPEN TicketStatus = 0 + TicketStatus_IN_PROGRESS TicketStatus = 1 + TicketStatus_CLOSED TicketStatus = 2 +) + +// Enum value maps for TicketStatus. +var ( + TicketStatus_name = map[int32]string{ + 0: "OPEN", + 1: "IN_PROGRESS", + 2: "CLOSED", + } + TicketStatus_value = map[string]int32{ + "OPEN": 0, + "IN_PROGRESS": 1, + "CLOSED": 2, + } +) + +func (x TicketStatus) Enum() *TicketStatus { + p := new(TicketStatus) + *p = x + return p +} + +func (x TicketStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TicketStatus) Descriptor() protoreflect.EnumDescriptor { + return file_support_proto_enumTypes[0].Descriptor() +} + +func (TicketStatus) Type() protoreflect.EnumType { + return &file_support_proto_enumTypes[0] +} + +func (x TicketStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TicketStatus.Descriptor instead. +func (TicketStatus) EnumDescriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{0} +} + +type SupportPackageType int32 + +const ( + SupportPackageType_BASIC_PLAN SupportPackageType = 0 + SupportPackageType_ADVANCED_PLAN SupportPackageType = 1 +) + +// Enum value maps for SupportPackageType. +var ( + SupportPackageType_name = map[int32]string{ + 0: "BASIC_PLAN", + 1: "ADVANCED_PLAN", + } + SupportPackageType_value = map[string]int32{ + "BASIC_PLAN": 0, + "ADVANCED_PLAN": 1, + } +) + +func (x SupportPackageType) Enum() *SupportPackageType { + p := new(SupportPackageType) + *p = x + return p +} + +func (x SupportPackageType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SupportPackageType) Descriptor() protoreflect.EnumDescriptor { + return file_support_proto_enumTypes[1].Descriptor() +} + +func (SupportPackageType) Type() protoreflect.EnumType { + return &file_support_proto_enumTypes[1] +} + +func (x SupportPackageType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SupportPackageType.Descriptor instead. +func (SupportPackageType) EnumDescriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{1} +} + +type TicketCommentType int32 + +const ( + TicketCommentType_CUSTOMER TicketCommentType = 0 + TicketCommentType_AGENT TicketCommentType = 1 +) + +// Enum value maps for TicketCommentType. +var ( + TicketCommentType_name = map[int32]string{ + 0: "CUSTOMER", + 1: "AGENT", + } + TicketCommentType_value = map[string]int32{ + "CUSTOMER": 0, + "AGENT": 1, + } +) + +func (x TicketCommentType) Enum() *TicketCommentType { + p := new(TicketCommentType) + *p = x + return p +} + +func (x TicketCommentType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TicketCommentType) Descriptor() protoreflect.EnumDescriptor { + return file_support_proto_enumTypes[2].Descriptor() +} + +func (TicketCommentType) Type() protoreflect.EnumType { + return &file_support_proto_enumTypes[2] +} + +func (x TicketCommentType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TicketCommentType.Descriptor instead. +func (TicketCommentType) EnumDescriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{2} +} + +type SupportTicketPriority int32 + +const ( + SupportTicketPriority_NORMAL SupportTicketPriority = 0 + SupportTicketPriority_LOW SupportTicketPriority = 1 + SupportTicketPriority_HIGH SupportTicketPriority = 2 +) + +// Enum value maps for SupportTicketPriority. +var ( + SupportTicketPriority_name = map[int32]string{ + 0: "NORMAL", + 1: "LOW", + 2: "HIGH", + } + SupportTicketPriority_value = map[string]int32{ + "NORMAL": 0, + "LOW": 1, + "HIGH": 2, + } +) + +func (x SupportTicketPriority) Enum() *SupportTicketPriority { + p := new(SupportTicketPriority) + *p = x + return p +} + +func (x SupportTicketPriority) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SupportTicketPriority) Descriptor() protoreflect.EnumDescriptor { + return file_support_proto_enumTypes[3].Descriptor() +} + +func (SupportTicketPriority) Type() protoreflect.EnumType { + return &file_support_proto_enumTypes[3] +} + +func (x SupportTicketPriority) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SupportTicketPriority.Descriptor instead. +func (SupportTicketPriority) EnumDescriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{3} +} + +type SupportTicket struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Priority SupportTicketPriority `protobuf:"varint,3,opt,name=priority,proto3,enum=api.support.SupportTicketPriority" json:"priority,omitempty"` + Status TicketStatus `protobuf:"varint,4,opt,name=status,proto3,enum=api.support.TicketStatus" json:"status,omitempty"` + User *BasicUser `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` + Number int64 `protobuf:"varint,6,opt,name=number,proto3" json:"number,omitempty"` + Comments []*SupportTicketComment `protobuf:"bytes,7,rep,name=comments,proto3" json:"comments,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *SupportTicket) Reset() { + *x = SupportTicket{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SupportTicket) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SupportTicket) ProtoMessage() {} + +func (x *SupportTicket) ProtoReflect() protoreflect.Message { + mi := &file_support_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 SupportTicket.ProtoReflect.Descriptor instead. +func (*SupportTicket) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{0} +} + +func (x *SupportTicket) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *SupportTicket) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *SupportTicket) GetPriority() SupportTicketPriority { + if x != nil { + return x.Priority + } + return SupportTicketPriority_NORMAL +} + +func (x *SupportTicket) GetStatus() TicketStatus { + if x != nil { + return x.Status + } + return TicketStatus_OPEN +} + +func (x *SupportTicket) GetUser() *BasicUser { + if x != nil { + return x.User + } + return nil +} + +func (x *SupportTicket) GetNumber() int64 { + if x != nil { + return x.Number + } + return 0 +} + +func (x *SupportTicket) GetComments() []*SupportTicketComment { + if x != nil { + return x.Comments + } + return nil +} + +func (x *SupportTicket) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *SupportTicket) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type SupportTicketComment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *BasicUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + Type TicketCommentType `protobuf:"varint,2,opt,name=type,proto3,enum=api.support.TicketCommentType" json:"type,omitempty"` + Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (x *SupportTicketComment) Reset() { + *x = SupportTicketComment{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SupportTicketComment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SupportTicketComment) ProtoMessage() {} + +func (x *SupportTicketComment) ProtoReflect() protoreflect.Message { + mi := &file_support_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 SupportTicketComment.ProtoReflect.Descriptor instead. +func (*SupportTicketComment) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{1} +} + +func (x *SupportTicketComment) GetUser() *BasicUser { + if x != nil { + return x.User + } + return nil +} + +func (x *SupportTicketComment) GetType() TicketCommentType { + if x != nil { + return x.Type + } + return TicketCommentType_CUSTOMER +} + +func (x *SupportTicketComment) GetComment() string { + if x != nil { + return x.Comment + } + return "" +} + +func (x *SupportTicketComment) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +// Support Packages +type SupportPackage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Plan SupportPackageType `protobuf:"varint,1,opt,name=plan,proto3,enum=api.support.SupportPackageType" json:"plan,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Price *Price `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` + Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` + Support *SupportPackageSupport `protobuf:"bytes,5,opt,name=support,proto3" json:"support,omitempty"` +} + +func (x *SupportPackage) Reset() { + *x = SupportPackage{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SupportPackage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SupportPackage) ProtoMessage() {} + +func (x *SupportPackage) ProtoReflect() protoreflect.Message { + mi := &file_support_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 SupportPackage.ProtoReflect.Descriptor instead. +func (*SupportPackage) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{2} +} + +func (x *SupportPackage) GetPlan() SupportPackageType { + if x != nil { + return x.Plan + } + return SupportPackageType_BASIC_PLAN +} + +func (x *SupportPackage) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SupportPackage) GetPrice() *Price { + if x != nil { + return x.Price + } + return nil +} + +func (x *SupportPackage) GetActive() bool { + if x != nil { + return x.Active + } + return false +} + +func (x *SupportPackage) GetSupport() *SupportPackageSupport { + if x != nil { + return x.Support + } + return nil +} + +type SupportPackageSupport struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ticket bool `protobuf:"varint,1,opt,name=ticket,proto3" json:"ticket,omitempty"` + Chat bool `protobuf:"varint,2,opt,name=chat,proto3" json:"chat,omitempty"` + Phone bool `protobuf:"varint,3,opt,name=phone,proto3" json:"phone,omitempty"` + TicketPriorities []SupportTicketPriority `protobuf:"varint,4,rep,packed,name=ticket_priorities,json=ticketPriorities,proto3,enum=api.support.SupportTicketPriority" json:"ticket_priorities,omitempty"` + TicketSlas []*SupportTicketSLA `protobuf:"bytes,5,rep,name=ticket_slas,json=ticketSlas,proto3" json:"ticket_slas,omitempty"` +} + +func (x *SupportPackageSupport) Reset() { + *x = SupportPackageSupport{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SupportPackageSupport) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SupportPackageSupport) ProtoMessage() {} + +func (x *SupportPackageSupport) ProtoReflect() protoreflect.Message { + mi := &file_support_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 SupportPackageSupport.ProtoReflect.Descriptor instead. +func (*SupportPackageSupport) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{3} +} + +func (x *SupportPackageSupport) GetTicket() bool { + if x != nil { + return x.Ticket + } + return false +} + +func (x *SupportPackageSupport) GetChat() bool { + if x != nil { + return x.Chat + } + return false +} + +func (x *SupportPackageSupport) GetPhone() bool { + if x != nil { + return x.Phone + } + return false +} + +func (x *SupportPackageSupport) GetTicketPriorities() []SupportTicketPriority { + if x != nil { + return x.TicketPriorities + } + return nil +} + +func (x *SupportPackageSupport) GetTicketSlas() []*SupportTicketSLA { + if x != nil { + return x.TicketSlas + } + return nil +} + +type SupportTicketSLA struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Priority SupportTicketPriority `protobuf:"varint,1,opt,name=priority,proto3,enum=api.support.SupportTicketPriority" json:"priority,omitempty"` + FirstReplyTimeHours int32 `protobuf:"varint,2,opt,name=first_reply_time_hours,json=firstReplyTimeHours,proto3" json:"first_reply_time_hours,omitempty"` + NextReplyTimeHours int32 `protobuf:"varint,3,opt,name=next_reply_time_hours,json=nextReplyTimeHours,proto3" json:"next_reply_time_hours,omitempty"` +} + +func (x *SupportTicketSLA) Reset() { + *x = SupportTicketSLA{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SupportTicketSLA) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SupportTicketSLA) ProtoMessage() {} + +func (x *SupportTicketSLA) ProtoReflect() protoreflect.Message { + mi := &file_support_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 SupportTicketSLA.ProtoReflect.Descriptor instead. +func (*SupportTicketSLA) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{4} +} + +func (x *SupportTicketSLA) GetPriority() SupportTicketPriority { + if x != nil { + return x.Priority + } + return SupportTicketPriority_NORMAL +} + +func (x *SupportTicketSLA) GetFirstReplyTimeHours() int32 { + if x != nil { + return x.FirstReplyTimeHours + } + return 0 +} + +func (x *SupportTicketSLA) GetNextReplyTimeHours() int32 { + if x != nil { + return x.NextReplyTimeHours + } + return 0 +} + +type ListProjectSupportPackagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *ListProjectSupportPackagesRequest) Reset() { + *x = ListProjectSupportPackagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectSupportPackagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectSupportPackagesRequest) ProtoMessage() {} + +func (x *ListProjectSupportPackagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_support_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 ListProjectSupportPackagesRequest.ProtoReflect.Descriptor instead. +func (*ListProjectSupportPackagesRequest) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{5} +} + +func (x *ListProjectSupportPackagesRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type ListProjectSupportPackagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Packages []*SupportPackage `protobuf:"bytes,1,rep,name=packages,proto3" json:"packages,omitempty"` +} + +func (x *ListProjectSupportPackagesResponse) Reset() { + *x = ListProjectSupportPackagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectSupportPackagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectSupportPackagesResponse) ProtoMessage() {} + +func (x *ListProjectSupportPackagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_support_proto_msgTypes[6] + 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 ListProjectSupportPackagesResponse.ProtoReflect.Descriptor instead. +func (*ListProjectSupportPackagesResponse) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{6} +} + +func (x *ListProjectSupportPackagesResponse) GetPackages() []*SupportPackage { + if x != nil { + return x.Packages + } + return nil +} + +type ChangeProjectSupportPackageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Plan SupportPackageType `protobuf:"varint,2,opt,name=plan,proto3,enum=api.support.SupportPackageType" json:"plan,omitempty"` +} + +func (x *ChangeProjectSupportPackageRequest) Reset() { + *x = ChangeProjectSupportPackageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeProjectSupportPackageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeProjectSupportPackageRequest) ProtoMessage() {} + +func (x *ChangeProjectSupportPackageRequest) ProtoReflect() protoreflect.Message { + mi := &file_support_proto_msgTypes[7] + 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 ChangeProjectSupportPackageRequest.ProtoReflect.Descriptor instead. +func (*ChangeProjectSupportPackageRequest) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{7} +} + +func (x *ChangeProjectSupportPackageRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *ChangeProjectSupportPackageRequest) GetPlan() SupportPackageType { + if x != nil { + return x.Plan + } + return SupportPackageType_BASIC_PLAN +} + +// Ticket Board +type ListProjectSupportTicketsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` +} + +func (x *ListProjectSupportTicketsRequest) Reset() { + *x = ListProjectSupportTicketsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectSupportTicketsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectSupportTicketsRequest) ProtoMessage() {} + +func (x *ListProjectSupportTicketsRequest) ProtoReflect() protoreflect.Message { + mi := &file_support_proto_msgTypes[8] + 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 ListProjectSupportTicketsRequest.ProtoReflect.Descriptor instead. +func (*ListProjectSupportTicketsRequest) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{8} +} + +func (x *ListProjectSupportTicketsRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +type ListProjectSupportTicketsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Tickets []*SupportTicket `protobuf:"bytes,1,rep,name=tickets,proto3" json:"tickets,omitempty"` + TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` +} + +func (x *ListProjectSupportTicketsResponse) Reset() { + *x = ListProjectSupportTicketsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectSupportTicketsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectSupportTicketsResponse) ProtoMessage() {} + +func (x *ListProjectSupportTicketsResponse) ProtoReflect() protoreflect.Message { + mi := &file_support_proto_msgTypes[9] + 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 ListProjectSupportTicketsResponse.ProtoReflect.Descriptor instead. +func (*ListProjectSupportTicketsResponse) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{9} +} + +func (x *ListProjectSupportTicketsResponse) GetTickets() []*SupportTicket { + if x != nil { + return x.Tickets + } + return nil +} + +func (x *ListProjectSupportTicketsResponse) GetTotalCount() int32 { + if x != nil { + return x.TotalCount + } + return 0 +} + +// Tickets +type CreateProjectSupportTicketRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + Priority SupportTicketPriority `protobuf:"varint,4,opt,name=priority,proto3,enum=api.support.SupportTicketPriority" json:"priority,omitempty"` +} + +func (x *CreateProjectSupportTicketRequest) Reset() { + *x = CreateProjectSupportTicketRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateProjectSupportTicketRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateProjectSupportTicketRequest) ProtoMessage() {} + +func (x *CreateProjectSupportTicketRequest) ProtoReflect() protoreflect.Message { + mi := &file_support_proto_msgTypes[10] + 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 CreateProjectSupportTicketRequest.ProtoReflect.Descriptor instead. +func (*CreateProjectSupportTicketRequest) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{10} +} + +func (x *CreateProjectSupportTicketRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *CreateProjectSupportTicketRequest) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *CreateProjectSupportTicketRequest) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *CreateProjectSupportTicketRequest) GetPriority() SupportTicketPriority { + if x != nil { + return x.Priority + } + return SupportTicketPriority_NORMAL +} + +type GetProjectSupportTicketRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *GetProjectSupportTicketRequest) Reset() { + *x = GetProjectSupportTicketRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProjectSupportTicketRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProjectSupportTicketRequest) ProtoMessage() {} + +func (x *GetProjectSupportTicketRequest) ProtoReflect() protoreflect.Message { + mi := &file_support_proto_msgTypes[11] + 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 GetProjectSupportTicketRequest.ProtoReflect.Descriptor instead. +func (*GetProjectSupportTicketRequest) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{11} +} + +func (x *GetProjectSupportTicketRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *GetProjectSupportTicketRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type CloseProjectSupportTicketRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *CloseProjectSupportTicketRequest) Reset() { + *x = CloseProjectSupportTicketRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseProjectSupportTicketRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseProjectSupportTicketRequest) ProtoMessage() {} + +func (x *CloseProjectSupportTicketRequest) ProtoReflect() protoreflect.Message { + mi := &file_support_proto_msgTypes[12] + 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 CloseProjectSupportTicketRequest.ProtoReflect.Descriptor instead. +func (*CloseProjectSupportTicketRequest) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{12} +} + +func (x *CloseProjectSupportTicketRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *CloseProjectSupportTicketRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type AddProjectSupportTicketCommentRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` +} + +func (x *AddProjectSupportTicketCommentRequest) Reset() { + *x = AddProjectSupportTicketCommentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_support_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddProjectSupportTicketCommentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddProjectSupportTicketCommentRequest) ProtoMessage() {} + +func (x *AddProjectSupportTicketCommentRequest) ProtoReflect() protoreflect.Message { + mi := &file_support_proto_msgTypes[13] + 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 AddProjectSupportTicketCommentRequest.ProtoReflect.Descriptor instead. +func (*AddProjectSupportTicketCommentRequest) Descriptor() ([]byte, []int) { + return file_support_proto_rawDescGZIP(), []int{13} +} + +func (x *AddProjectSupportTicketCommentRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *AddProjectSupportTicketCommentRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *AddProjectSupportTicketCommentRequest) GetComment() string { + if x != nil { + return x.Comment + } + return "" +} + +var File_support_proto protoreflect.FileDescriptor + +var file_support_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0b, 0x62, + 0x61, 0x73, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9f, 0x03, 0x0a, 0x0d, 0x53, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, + 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x50, + 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x69, 0x63, 0x2e, 0x42, + 0x61, 0x73, 0x69, 0x63, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x16, + 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, + 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6d, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xc9, 0x01, 0x0a, 0x14, + 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6d, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x69, 0x63, 0x2e, 0x42, + 0x61, 0x73, 0x69, 0x63, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x32, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, + 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x0a, 0x0a, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xd1, 0x01, 0x0a, 0x0e, 0x53, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x70, 0x6c, + 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x05, + 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x3c, 0x0a, + 0x07, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6f, + 0x72, 0x74, 0x52, 0x07, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x22, 0xea, 0x01, 0x0a, 0x15, + 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x63, 0x68, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x63, 0x68, 0x61, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x4f, 0x0a, 0x11, 0x74, 0x69, 0x63, 0x6b, 0x65, + 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x10, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x74, 0x69, 0x63, 0x6b, + 0x65, 0x74, 0x5f, 0x73, 0x6c, 0x61, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x4c, 0x41, 0x52, 0x0a, 0x74, 0x69, + 0x63, 0x6b, 0x65, 0x74, 0x53, 0x6c, 0x61, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x10, 0x53, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x4c, 0x41, 0x12, 0x3e, 0x0a, + 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x33, 0x0a, + 0x16, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x5f, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x66, + 0x69, 0x72, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x48, 0x6f, 0x75, + 0x72, 0x73, 0x12, 0x31, 0x0a, 0x15, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x79, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x12, 0x6e, 0x65, 0x78, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x54, 0x69, 0x6d, 0x65, + 0x48, 0x6f, 0x75, 0x72, 0x73, 0x22, 0x42, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x5d, 0x0a, 0x22, 0x4c, 0x69, 0x73, + 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x37, 0x0a, 0x08, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, + 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x08, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x22, 0x78, 0x0a, 0x22, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x33, 0x0a, + 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6c, + 0x61, 0x6e, 0x22, 0x41, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x7a, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x74, 0x69, + 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x07, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x22, 0xb2, 0x01, 0x0a, 0x21, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, + 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, + 0x63, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x70, 0x72, + 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x4f, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x20, 0x43, 0x6c, 0x6f, 0x73, 0x65, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, + 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x70, 0x0a, 0x25, 0x41, 0x64, + 0x64, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, + 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2a, 0x35, 0x0a, 0x0c, + 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x08, 0x0a, 0x04, + 0x4f, 0x50, 0x45, 0x4e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, + 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4c, 0x4f, 0x53, 0x45, + 0x44, 0x10, 0x02, 0x2a, 0x37, 0x0a, 0x12, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x42, 0x41, 0x53, + 0x49, 0x43, 0x5f, 0x50, 0x4c, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x44, 0x56, + 0x41, 0x4e, 0x43, 0x45, 0x44, 0x5f, 0x50, 0x4c, 0x41, 0x4e, 0x10, 0x01, 0x2a, 0x2c, 0x0a, 0x11, + 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x45, 0x52, 0x10, 0x00, 0x12, + 0x09, 0x0a, 0x05, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x2a, 0x36, 0x0a, 0x15, 0x53, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, + 0x69, 0x74, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x00, 0x12, + 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, + 0x10, 0x02, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_support_proto_rawDescOnce sync.Once + file_support_proto_rawDescData = file_support_proto_rawDesc +) + +func file_support_proto_rawDescGZIP() []byte { + file_support_proto_rawDescOnce.Do(func() { + file_support_proto_rawDescData = protoimpl.X.CompressGZIP(file_support_proto_rawDescData) + }) + return file_support_proto_rawDescData +} + +var file_support_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_support_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_support_proto_goTypes = []interface{}{ + (TicketStatus)(0), // 0: api.support.TicketStatus + (SupportPackageType)(0), // 1: api.support.SupportPackageType + (TicketCommentType)(0), // 2: api.support.TicketCommentType + (SupportTicketPriority)(0), // 3: api.support.SupportTicketPriority + (*SupportTicket)(nil), // 4: api.support.SupportTicket + (*SupportTicketComment)(nil), // 5: api.support.SupportTicketComment + (*SupportPackage)(nil), // 6: api.support.SupportPackage + (*SupportPackageSupport)(nil), // 7: api.support.SupportPackageSupport + (*SupportTicketSLA)(nil), // 8: api.support.SupportTicketSLA + (*ListProjectSupportPackagesRequest)(nil), // 9: api.support.ListProjectSupportPackagesRequest + (*ListProjectSupportPackagesResponse)(nil), // 10: api.support.ListProjectSupportPackagesResponse + (*ChangeProjectSupportPackageRequest)(nil), // 11: api.support.ChangeProjectSupportPackageRequest + (*ListProjectSupportTicketsRequest)(nil), // 12: api.support.ListProjectSupportTicketsRequest + (*ListProjectSupportTicketsResponse)(nil), // 13: api.support.ListProjectSupportTicketsResponse + (*CreateProjectSupportTicketRequest)(nil), // 14: api.support.CreateProjectSupportTicketRequest + (*GetProjectSupportTicketRequest)(nil), // 15: api.support.GetProjectSupportTicketRequest + (*CloseProjectSupportTicketRequest)(nil), // 16: api.support.CloseProjectSupportTicketRequest + (*AddProjectSupportTicketCommentRequest)(nil), // 17: api.support.AddProjectSupportTicketCommentRequest + (*BasicUser)(nil), // 18: api.basic.BasicUser + (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp + (*Price)(nil), // 20: api.Price +} +var file_support_proto_depIdxs = []int32{ + 3, // 0: api.support.SupportTicket.priority:type_name -> api.support.SupportTicketPriority + 0, // 1: api.support.SupportTicket.status:type_name -> api.support.TicketStatus + 18, // 2: api.support.SupportTicket.user:type_name -> api.basic.BasicUser + 5, // 3: api.support.SupportTicket.comments:type_name -> api.support.SupportTicketComment + 19, // 4: api.support.SupportTicket.created_at:type_name -> google.protobuf.Timestamp + 19, // 5: api.support.SupportTicket.updated_at:type_name -> google.protobuf.Timestamp + 18, // 6: api.support.SupportTicketComment.user:type_name -> api.basic.BasicUser + 2, // 7: api.support.SupportTicketComment.type:type_name -> api.support.TicketCommentType + 19, // 8: api.support.SupportTicketComment.created_at:type_name -> google.protobuf.Timestamp + 1, // 9: api.support.SupportPackage.plan:type_name -> api.support.SupportPackageType + 20, // 10: api.support.SupportPackage.price:type_name -> api.Price + 7, // 11: api.support.SupportPackage.support:type_name -> api.support.SupportPackageSupport + 3, // 12: api.support.SupportPackageSupport.ticket_priorities:type_name -> api.support.SupportTicketPriority + 8, // 13: api.support.SupportPackageSupport.ticket_slas:type_name -> api.support.SupportTicketSLA + 3, // 14: api.support.SupportTicketSLA.priority:type_name -> api.support.SupportTicketPriority + 6, // 15: api.support.ListProjectSupportPackagesResponse.packages:type_name -> api.support.SupportPackage + 1, // 16: api.support.ChangeProjectSupportPackageRequest.plan:type_name -> api.support.SupportPackageType + 4, // 17: api.support.ListProjectSupportTicketsResponse.tickets:type_name -> api.support.SupportTicket + 3, // 18: api.support.CreateProjectSupportTicketRequest.priority:type_name -> api.support.SupportTicketPriority + 19, // [19:19] is the sub-list for method output_type + 19, // [19:19] is the sub-list for method input_type + 19, // [19:19] is the sub-list for extension type_name + 19, // [19:19] is the sub-list for extension extendee + 0, // [0:19] is the sub-list for field type_name +} + +func init() { file_support_proto_init() } +func file_support_proto_init() { + if File_support_proto != nil { + return + } + file_basic_proto_init() + file_generic_proto_init() + if !protoimpl.UnsafeEnabled { + file_support_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SupportTicket); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SupportTicketComment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SupportPackage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SupportPackageSupport); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SupportTicketSLA); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectSupportPackagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectSupportPackagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChangeProjectSupportPackageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectSupportTicketsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectSupportTicketsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateProjectSupportTicketRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProjectSupportTicketRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseProjectSupportTicketRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_support_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddProjectSupportTicketCommentRequest); 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_support_proto_rawDesc, + NumEnums: 4, + NumMessages: 14, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_support_proto_goTypes, + DependencyIndexes: file_support_proto_depIdxs, + EnumInfos: file_support_proto_enumTypes, + MessageInfos: file_support_proto_msgTypes, + }.Build() + File_support_proto = out.File + file_support_proto_rawDesc = nil + file_support_proto_goTypes = nil + file_support_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/user.pb.go b/pkg/gpcloud/ptypes/user.pb.go new file mode 100644 index 0000000..01fae70 --- /dev/null +++ b/pkg/gpcloud/ptypes/user.pb.go @@ -0,0 +1,4247 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: user.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type TwoFactorMethod int32 + +const ( + TwoFactorMethod_RECOVERY_CODES TwoFactorMethod = 0 + TwoFactorMethod_TOTP TwoFactorMethod = 1 + TwoFactorMethod_FIDO2 TwoFactorMethod = 2 +) + +// Enum value maps for TwoFactorMethod. +var ( + TwoFactorMethod_name = map[int32]string{ + 0: "RECOVERY_CODES", + 1: "TOTP", + 2: "FIDO2", + } + TwoFactorMethod_value = map[string]int32{ + "RECOVERY_CODES": 0, + "TOTP": 1, + "FIDO2": 2, + } +) + +func (x TwoFactorMethod) Enum() *TwoFactorMethod { + p := new(TwoFactorMethod) + *p = x + return p +} + +func (x TwoFactorMethod) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TwoFactorMethod) Descriptor() protoreflect.EnumDescriptor { + return file_user_proto_enumTypes[0].Descriptor() +} + +func (TwoFactorMethod) Type() protoreflect.EnumType { + return &file_user_proto_enumTypes[0] +} + +func (x TwoFactorMethod) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TwoFactorMethod.Descriptor instead. +func (TwoFactorMethod) EnumDescriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{0} +} + +type WebAuthnAuthenticator int32 + +const ( + WebAuthnAuthenticator_UNKNOWN WebAuthnAuthenticator = 0 + WebAuthnAuthenticator_TOUCH_ID WebAuthnAuthenticator = 1 + WebAuthnAuthenticator_YUBIKEY WebAuthnAuthenticator = 2 +) + +// Enum value maps for WebAuthnAuthenticator. +var ( + WebAuthnAuthenticator_name = map[int32]string{ + 0: "UNKNOWN", + 1: "TOUCH_ID", + 2: "YUBIKEY", + } + WebAuthnAuthenticator_value = map[string]int32{ + "UNKNOWN": 0, + "TOUCH_ID": 1, + "YUBIKEY": 2, + } +) + +func (x WebAuthnAuthenticator) Enum() *WebAuthnAuthenticator { + p := new(WebAuthnAuthenticator) + *p = x + return p +} + +func (x WebAuthnAuthenticator) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WebAuthnAuthenticator) Descriptor() protoreflect.EnumDescriptor { + return file_user_proto_enumTypes[1].Descriptor() +} + +func (WebAuthnAuthenticator) Type() protoreflect.EnumType { + return &file_user_proto_enumTypes[1] +} + +func (x WebAuthnAuthenticator) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use WebAuthnAuthenticator.Descriptor instead. +func (WebAuthnAuthenticator) EnumDescriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{1} +} + +type User struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // UUID of user + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Customer number + Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"` + // Full name for user + FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` + // User e-mail address + Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` + // Returns true if user email is confirmed + Confirmed bool `protobuf:"varint,5,opt,name=confirmed,proto3" json:"confirmed,omitempty"` + // Returns true if user email is locked + Locked bool `protobuf:"varint,6,opt,name=locked,proto3" json:"locked,omitempty"` + // Returns true if user has admin permissions + Admin bool `protobuf:"varint,7,opt,name=admin,proto3" json:"admin,omitempty"` + // User avatar + Avatar string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"` + // Compute limit + ComputeLimit int32 `protobuf:"varint,9,opt,name=compute_limit,json=computeLimit,proto3" json:"compute_limit,omitempty"` + // User allowed payment methods + PaymentMethods []PaymentMethod `protobuf:"varint,10,rep,packed,name=payment_methods,json=paymentMethods,proto3,enum=api.payment.PaymentMethod" json:"payment_methods,omitempty"` + // User timestamps + LastLogin *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *User) Reset() { + *x = User{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_user_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 User.ProtoReflect.Descriptor instead. +func (*User) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{0} +} + +func (x *User) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *User) GetNumber() string { + if x != nil { + return x.Number + } + return "" +} + +func (x *User) GetFullName() string { + if x != nil { + return x.FullName + } + return "" +} + +func (x *User) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *User) GetConfirmed() bool { + if x != nil { + return x.Confirmed + } + return false +} + +func (x *User) GetLocked() bool { + if x != nil { + return x.Locked + } + return false +} + +func (x *User) GetAdmin() bool { + if x != nil { + return x.Admin + } + return false +} + +func (x *User) GetAvatar() string { + if x != nil { + return x.Avatar + } + return "" +} + +func (x *User) GetComputeLimit() int32 { + if x != nil { + return x.ComputeLimit + } + return 0 +} + +func (x *User) GetPaymentMethods() []PaymentMethod { + if x != nil { + return x.PaymentMethods + } + return nil +} + +func (x *User) GetLastLogin() *timestamppb.Timestamp { + if x != nil { + return x.LastLogin + } + return nil +} + +func (x *User) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *User) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type UserComputeLimit struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` + Current int32 `protobuf:"varint,2,opt,name=current,proto3" json:"current,omitempty"` +} + +func (x *UserComputeLimit) Reset() { + *x = UserComputeLimit{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserComputeLimit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserComputeLimit) ProtoMessage() {} + +func (x *UserComputeLimit) ProtoReflect() protoreflect.Message { + mi := &file_user_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 UserComputeLimit.ProtoReflect.Descriptor instead. +func (*UserComputeLimit) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{1} +} + +func (x *UserComputeLimit) GetLimit() int32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *UserComputeLimit) GetCurrent() int32 { + if x != nil { + return x.Current + } + return 0 +} + +type GetUserComputeLimitResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Limit *UserComputeLimit `protobuf:"bytes,1,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (x *GetUserComputeLimitResponse) Reset() { + *x = GetUserComputeLimitResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserComputeLimitResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserComputeLimitResponse) ProtoMessage() {} + +func (x *GetUserComputeLimitResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_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 GetUserComputeLimitResponse.ProtoReflect.Descriptor instead. +func (*GetUserComputeLimitResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{2} +} + +func (x *GetUserComputeLimitResponse) GetLimit() *UserComputeLimit { + if x != nil { + return x.Limit + } + return nil +} + +type LoginRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // E-Mail address of user + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + // User password + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + // Types that are assignable to TwoFactor: + // *LoginRequest_Totp + // *LoginRequest_RecoveryCode + // *LoginRequest_CredentialCreationResponse + TwoFactor isLoginRequest_TwoFactor `protobuf_oneof:"two_factor"` + // Optional platform information + Platform Platform `protobuf:"varint,6,opt,name=platform,proto3,enum=api.Platform" json:"platform,omitempty"` +} + +func (x *LoginRequest) Reset() { + *x = LoginRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LoginRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoginRequest) ProtoMessage() {} + +func (x *LoginRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_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 LoginRequest.ProtoReflect.Descriptor instead. +func (*LoginRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{3} +} + +func (x *LoginRequest) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *LoginRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (m *LoginRequest) GetTwoFactor() isLoginRequest_TwoFactor { + if m != nil { + return m.TwoFactor + } + return nil +} + +func (x *LoginRequest) GetTotp() string { + if x, ok := x.GetTwoFactor().(*LoginRequest_Totp); ok { + return x.Totp + } + return "" +} + +func (x *LoginRequest) GetRecoveryCode() string { + if x, ok := x.GetTwoFactor().(*LoginRequest_RecoveryCode); ok { + return x.RecoveryCode + } + return "" +} + +func (x *LoginRequest) GetCredentialCreationResponse() []byte { + if x, ok := x.GetTwoFactor().(*LoginRequest_CredentialCreationResponse); ok { + return x.CredentialCreationResponse + } + return nil +} + +func (x *LoginRequest) GetPlatform() Platform { + if x != nil { + return x.Platform + } + return Platform_UNKNOWN +} + +type isLoginRequest_TwoFactor interface { + isLoginRequest_TwoFactor() +} + +type LoginRequest_Totp struct { + // TOTP token if user has TOTP enabled + Totp string `protobuf:"bytes,3,opt,name=totp,proto3,oneof"` +} + +type LoginRequest_RecoveryCode struct { + // A recovery code + RecoveryCode string `protobuf:"bytes,4,opt,name=recovery_code,json=recoveryCode,proto3,oneof"` +} + +type LoginRequest_CredentialCreationResponse struct { + // A WebAuthn request + CredentialCreationResponse []byte `protobuf:"bytes,5,opt,name=credential_creation_response,json=credentialCreationResponse,proto3,oneof"` +} + +func (*LoginRequest_Totp) isLoginRequest_TwoFactor() {} + +func (*LoginRequest_RecoveryCode) isLoginRequest_TwoFactor() {} + +func (*LoginRequest_CredentialCreationResponse) isLoginRequest_TwoFactor() {} + +type AccessTokenPair struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` +} + +func (x *AccessTokenPair) Reset() { + *x = AccessTokenPair{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AccessTokenPair) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AccessTokenPair) ProtoMessage() {} + +func (x *AccessTokenPair) ProtoReflect() protoreflect.Message { + mi := &file_user_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 AccessTokenPair.ProtoReflect.Descriptor instead. +func (*AccessTokenPair) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{4} +} + +func (x *AccessTokenPair) GetAccessToken() string { + if x != nil { + return x.AccessToken + } + return "" +} + +func (x *AccessTokenPair) GetRefreshToken() string { + if x != nil { + return x.RefreshToken + } + return "" +} + +type TwoFactorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TwoFactorMethods []TwoFactorMethod `protobuf:"varint,1,rep,packed,name=two_factor_methods,json=twoFactorMethods,proto3,enum=api.user.TwoFactorMethod" json:"two_factor_methods,omitempty"` + CredentialCreation []byte `protobuf:"bytes,2,opt,name=credential_creation,json=credentialCreation,proto3" json:"credential_creation,omitempty"` +} + +func (x *TwoFactorResponse) Reset() { + *x = TwoFactorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TwoFactorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TwoFactorResponse) ProtoMessage() {} + +func (x *TwoFactorResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_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 TwoFactorResponse.ProtoReflect.Descriptor instead. +func (*TwoFactorResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{5} +} + +func (x *TwoFactorResponse) GetTwoFactorMethods() []TwoFactorMethod { + if x != nil { + return x.TwoFactorMethods + } + return nil +} + +func (x *TwoFactorResponse) GetCredentialCreation() []byte { + if x != nil { + return x.CredentialCreation + } + return nil +} + +type LoginResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Full user + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + // Types that are assignable to Response: + // *LoginResponse_Tokens + // *LoginResponse_TwoFactor + Response isLoginResponse_Response `protobuf_oneof:"response"` +} + +func (x *LoginResponse) Reset() { + *x = LoginResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LoginResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoginResponse) ProtoMessage() {} + +func (x *LoginResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[6] + 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 LoginResponse.ProtoReflect.Descriptor instead. +func (*LoginResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{6} +} + +func (x *LoginResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +func (m *LoginResponse) GetResponse() isLoginResponse_Response { + if m != nil { + return m.Response + } + return nil +} + +func (x *LoginResponse) GetTokens() *AccessTokenPair { + if x, ok := x.GetResponse().(*LoginResponse_Tokens); ok { + return x.Tokens + } + return nil +} + +func (x *LoginResponse) GetTwoFactor() *TwoFactorResponse { + if x, ok := x.GetResponse().(*LoginResponse_TwoFactor); ok { + return x.TwoFactor + } + return nil +} + +type isLoginResponse_Response interface { + isLoginResponse_Response() +} + +type LoginResponse_Tokens struct { + Tokens *AccessTokenPair `protobuf:"bytes,2,opt,name=tokens,proto3,oneof"` +} + +type LoginResponse_TwoFactor struct { + TwoFactor *TwoFactorResponse `protobuf:"bytes,3,opt,name=two_factor,json=twoFactor,proto3,oneof"` +} + +func (*LoginResponse_Tokens) isLoginResponse_Response() {} + +func (*LoginResponse_TwoFactor) isLoginResponse_Response() {} + +type ListUserSSHKeysResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SshKeys []*SSHKey `protobuf:"bytes,1,rep,name=ssh_keys,json=sshKeys,proto3" json:"ssh_keys,omitempty"` +} + +func (x *ListUserSSHKeysResponse) Reset() { + *x = ListUserSSHKeysResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserSSHKeysResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserSSHKeysResponse) ProtoMessage() {} + +func (x *ListUserSSHKeysResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[7] + 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 ListUserSSHKeysResponse.ProtoReflect.Descriptor instead. +func (*ListUserSSHKeysResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{7} +} + +func (x *ListUserSSHKeysResponse) GetSshKeys() []*SSHKey { + if x != nil { + return x.SshKeys + } + return nil +} + +type CreateUserSSHKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` +} + +func (x *CreateUserSSHKeyRequest) Reset() { + *x = CreateUserSSHKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUserSSHKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserSSHKeyRequest) ProtoMessage() {} + +func (x *CreateUserSSHKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[8] + 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 CreateUserSSHKeyRequest.ProtoReflect.Descriptor instead. +func (*CreateUserSSHKeyRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{8} +} + +func (x *CreateUserSSHKeyRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateUserSSHKeyRequest) GetPublicKey() string { + if x != nil { + return x.PublicKey + } + return "" +} + +type DeleteUserSSHKeyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SshKeyId string `protobuf:"bytes,1,opt,name=ssh_key_id,json=sshKeyId,proto3" json:"ssh_key_id,omitempty"` +} + +func (x *DeleteUserSSHKeyRequest) Reset() { + *x = DeleteUserSSHKeyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteUserSSHKeyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteUserSSHKeyRequest) ProtoMessage() {} + +func (x *DeleteUserSSHKeyRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[9] + 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 DeleteUserSSHKeyRequest.ProtoReflect.Descriptor instead. +func (*DeleteUserSSHKeyRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{9} +} + +func (x *DeleteUserSSHKeyRequest) GetSshKeyId() string { + if x != nil { + return x.SshKeyId + } + return "" +} + +type ChangeUserPasswordRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The current user password + CurrentPassword string `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"` + // The new password + NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` +} + +func (x *ChangeUserPasswordRequest) Reset() { + *x = ChangeUserPasswordRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeUserPasswordRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeUserPasswordRequest) ProtoMessage() {} + +func (x *ChangeUserPasswordRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[10] + 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 ChangeUserPasswordRequest.ProtoReflect.Descriptor instead. +func (*ChangeUserPasswordRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{10} +} + +func (x *ChangeUserPasswordRequest) GetCurrentPassword() string { + if x != nil { + return x.CurrentPassword + } + return "" +} + +func (x *ChangeUserPasswordRequest) GetNewPassword() string { + if x != nil { + return x.NewPassword + } + return "" +} + +type CreateTOTPResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // TOTP secret + Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` + // New image + QrCode *File `protobuf:"bytes,2,opt,name=qr_code,json=qrCode,proto3" json:"qr_code,omitempty"` +} + +func (x *CreateTOTPResponse) Reset() { + *x = CreateTOTPResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateTOTPResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTOTPResponse) ProtoMessage() {} + +func (x *CreateTOTPResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[11] + 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 CreateTOTPResponse.ProtoReflect.Descriptor instead. +func (*CreateTOTPResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{11} +} + +func (x *CreateTOTPResponse) GetSecret() string { + if x != nil { + return x.Secret + } + return "" +} + +func (x *CreateTOTPResponse) GetQrCode() *File { + if x != nil { + return x.QrCode + } + return nil +} + +type AddTOTPRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The TOTP secret from the + Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` + // Current TOTP code + Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` + // Current account password + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *AddTOTPRequest) Reset() { + *x = AddTOTPRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddTOTPRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddTOTPRequest) ProtoMessage() {} + +func (x *AddTOTPRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[12] + 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 AddTOTPRequest.ProtoReflect.Descriptor instead. +func (*AddTOTPRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{12} +} + +func (x *AddTOTPRequest) GetSecret() string { + if x != nil { + return x.Secret + } + return "" +} + +func (x *AddTOTPRequest) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *AddTOTPRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type RecoveryCode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` + UsedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=used_at,json=usedAt,proto3" json:"used_at,omitempty"` +} + +func (x *RecoveryCode) Reset() { + *x = RecoveryCode{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RecoveryCode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecoveryCode) ProtoMessage() {} + +func (x *RecoveryCode) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[13] + 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 RecoveryCode.ProtoReflect.Descriptor instead. +func (*RecoveryCode) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{13} +} + +func (x *RecoveryCode) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *RecoveryCode) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *RecoveryCode) GetUsedAt() *timestamppb.Timestamp { + if x != nil { + return x.UsedAt + } + return nil +} + +type GetTwoFactorMethodsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EnabledMethods []TwoFactorMethod `protobuf:"varint,1,rep,packed,name=enabled_methods,json=enabledMethods,proto3,enum=api.user.TwoFactorMethod" json:"enabled_methods,omitempty"` + WebauthnDevices []*WebAuthn `protobuf:"bytes,2,rep,name=webauthn_devices,json=webauthnDevices,proto3" json:"webauthn_devices,omitempty"` +} + +func (x *GetTwoFactorMethodsResponse) Reset() { + *x = GetTwoFactorMethodsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTwoFactorMethodsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTwoFactorMethodsResponse) ProtoMessage() {} + +func (x *GetTwoFactorMethodsResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[14] + 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 GetTwoFactorMethodsResponse.ProtoReflect.Descriptor instead. +func (*GetTwoFactorMethodsResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{14} +} + +func (x *GetTwoFactorMethodsResponse) GetEnabledMethods() []TwoFactorMethod { + if x != nil { + return x.EnabledMethods + } + return nil +} + +func (x *GetTwoFactorMethodsResponse) GetWebauthnDevices() []*WebAuthn { + if x != nil { + return x.WebauthnDevices + } + return nil +} + +type RemoveTOTPRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Current account password + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *RemoveTOTPRequest) Reset() { + *x = RemoveTOTPRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveTOTPRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveTOTPRequest) ProtoMessage() {} + +func (x *RemoveTOTPRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[15] + 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 RemoveTOTPRequest.ProtoReflect.Descriptor instead. +func (*RemoveTOTPRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{15} +} + +func (x *RemoveTOTPRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type RegenerateRecoveryCodesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Current account password + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *RegenerateRecoveryCodesRequest) Reset() { + *x = RegenerateRecoveryCodesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegenerateRecoveryCodesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegenerateRecoveryCodesRequest) ProtoMessage() {} + +func (x *RegenerateRecoveryCodesRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[16] + 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 RegenerateRecoveryCodesRequest.ProtoReflect.Descriptor instead. +func (*RegenerateRecoveryCodesRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{16} +} + +func (x *RegenerateRecoveryCodesRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type RegenerateRecoveryCodesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RecoveryCodes []*RecoveryCode `protobuf:"bytes,1,rep,name=recovery_codes,json=recoveryCodes,proto3" json:"recovery_codes,omitempty"` +} + +func (x *RegenerateRecoveryCodesResponse) Reset() { + *x = RegenerateRecoveryCodesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegenerateRecoveryCodesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegenerateRecoveryCodesResponse) ProtoMessage() {} + +func (x *RegenerateRecoveryCodesResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[17] + 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 RegenerateRecoveryCodesResponse.ProtoReflect.Descriptor instead. +func (*RegenerateRecoveryCodesResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{17} +} + +func (x *RegenerateRecoveryCodesResponse) GetRecoveryCodes() []*RecoveryCode { + if x != nil { + return x.RecoveryCodes + } + return nil +} + +type RefreshTokensRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A valid user refresh token + RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` +} + +func (x *RefreshTokensRequest) Reset() { + *x = RefreshTokensRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RefreshTokensRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RefreshTokensRequest) ProtoMessage() {} + +func (x *RefreshTokensRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[18] + 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 RefreshTokensRequest.ProtoReflect.Descriptor instead. +func (*RefreshTokensRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{18} +} + +func (x *RefreshTokensRequest) GetRefreshToken() string { + if x != nil { + return x.RefreshToken + } + return "" +} + +type RefreshTokensResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` +} + +func (x *RefreshTokensResponse) Reset() { + *x = RefreshTokensResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RefreshTokensResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RefreshTokensResponse) ProtoMessage() {} + +func (x *RefreshTokensResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[19] + 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 RefreshTokensResponse.ProtoReflect.Descriptor instead. +func (*RefreshTokensResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{19} +} + +func (x *RefreshTokensResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +func (x *RefreshTokensResponse) GetAccessToken() string { + if x != nil { + return x.AccessToken + } + return "" +} + +func (x *RefreshTokensResponse) GetRefreshToken() string { + if x != nil { + return x.RefreshToken + } + return "" +} + +type LongLivedToken struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` +} + +func (x *LongLivedToken) Reset() { + *x = LongLivedToken{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LongLivedToken) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LongLivedToken) ProtoMessage() {} + +func (x *LongLivedToken) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[20] + 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 LongLivedToken.ProtoReflect.Descriptor instead. +func (*LongLivedToken) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{20} +} + +func (x *LongLivedToken) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *LongLivedToken) GetTokenId() string { + if x != nil { + return x.TokenId + } + return "" +} + +func (x *LongLivedToken) GetAccessToken() string { + if x != nil { + return x.AccessToken + } + return "" +} + +func (x *LongLivedToken) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *LongLivedToken) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *LongLivedToken) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +type UserSession struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + Asn int64 `protobuf:"varint,3,opt,name=asn,proto3" json:"asn,omitempty"` + CountryCode string `protobuf:"bytes,4,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` + City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"` + Platform Platform `protobuf:"varint,6,opt,name=platform,proto3,enum=api.Platform" json:"platform,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` +} + +func (x *UserSession) Reset() { + *x = UserSession{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserSession) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserSession) ProtoMessage() {} + +func (x *UserSession) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[21] + 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 UserSession.ProtoReflect.Descriptor instead. +func (*UserSession) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{21} +} + +func (x *UserSession) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UserSession) GetIpAddress() string { + if x != nil { + return x.IpAddress + } + return "" +} + +func (x *UserSession) GetAsn() int64 { + if x != nil { + return x.Asn + } + return 0 +} + +func (x *UserSession) GetCountryCode() string { + if x != nil { + return x.CountryCode + } + return "" +} + +func (x *UserSession) GetCity() string { + if x != nil { + return x.City + } + return "" +} + +func (x *UserSession) GetPlatform() Platform { + if x != nil { + return x.Platform + } + return Platform_UNKNOWN +} + +func (x *UserSession) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *UserSession) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +type ListSessionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Sessions []*UserSession `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"` +} + +func (x *ListSessionsResponse) Reset() { + *x = ListSessionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSessionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSessionsResponse) ProtoMessage() {} + +func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[22] + 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 ListSessionsResponse.ProtoReflect.Descriptor instead. +func (*ListSessionsResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{22} +} + +func (x *ListSessionsResponse) GetSessions() []*UserSession { + if x != nil { + return x.Sessions + } + return nil +} + +type DeleteSessionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` +} + +func (x *DeleteSessionRequest) Reset() { + *x = DeleteSessionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteSessionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteSessionRequest) ProtoMessage() {} + +func (x *DeleteSessionRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[23] + 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 DeleteSessionRequest.ProtoReflect.Descriptor instead. +func (*DeleteSessionRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{23} +} + +func (x *DeleteSessionRequest) GetSessionId() string { + if x != nil { + return x.SessionId + } + return "" +} + +type CreateLongLivedTokenRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The user password + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` + // Token description + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *CreateLongLivedTokenRequest) Reset() { + *x = CreateLongLivedTokenRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateLongLivedTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateLongLivedTokenRequest) ProtoMessage() {} + +func (x *CreateLongLivedTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[24] + 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 CreateLongLivedTokenRequest.ProtoReflect.Descriptor instead. +func (*CreateLongLivedTokenRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{24} +} + +func (x *CreateLongLivedTokenRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *CreateLongLivedTokenRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +type ListLongLivedTokensResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Tokens []*LongLivedToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` +} + +func (x *ListLongLivedTokensResponse) Reset() { + *x = ListLongLivedTokensResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListLongLivedTokensResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListLongLivedTokensResponse) ProtoMessage() {} + +func (x *ListLongLivedTokensResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[25] + 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 ListLongLivedTokensResponse.ProtoReflect.Descriptor instead. +func (*ListLongLivedTokensResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{25} +} + +func (x *ListLongLivedTokensResponse) GetTokens() []*LongLivedToken { + if x != nil { + return x.Tokens + } + return nil +} + +type RevokeLongLivedTokenRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` +} + +func (x *RevokeLongLivedTokenRequest) Reset() { + *x = RevokeLongLivedTokenRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RevokeLongLivedTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RevokeLongLivedTokenRequest) ProtoMessage() {} + +func (x *RevokeLongLivedTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[26] + 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 RevokeLongLivedTokenRequest.ProtoReflect.Descriptor instead. +func (*RevokeLongLivedTokenRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{26} +} + +func (x *RevokeLongLivedTokenRequest) GetTokenId() string { + if x != nil { + return x.TokenId + } + return "" +} + +type RegisterRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // New e-mail address + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + // The user password + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + // reCAPTCHA v3 Token + RecaptchaToken string `protobuf:"bytes,3,opt,name=recaptcha_token,json=recaptchaToken,proto3" json:"recaptcha_token,omitempty"` + // Optional platform information + Platform Platform `protobuf:"varint,4,opt,name=platform,proto3,enum=api.Platform" json:"platform,omitempty"` +} + +func (x *RegisterRequest) Reset() { + *x = RegisterRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegisterRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterRequest) ProtoMessage() {} + +func (x *RegisterRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[27] + 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 RegisterRequest.ProtoReflect.Descriptor instead. +func (*RegisterRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{27} +} + +func (x *RegisterRequest) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *RegisterRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *RegisterRequest) GetRecaptchaToken() string { + if x != nil { + return x.RecaptchaToken + } + return "" +} + +func (x *RegisterRequest) GetPlatform() Platform { + if x != nil { + return x.Platform + } + return Platform_UNKNOWN +} + +type RegisterResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Full user + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + // Authentication tokens + AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` +} + +func (x *RegisterResponse) Reset() { + *x = RegisterResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RegisterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RegisterResponse) ProtoMessage() {} + +func (x *RegisterResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[28] + 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 RegisterResponse.ProtoReflect.Descriptor instead. +func (*RegisterResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{28} +} + +func (x *RegisterResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +func (x *RegisterResponse) GetAccessToken() string { + if x != nil { + return x.AccessToken + } + return "" +} + +func (x *RegisterResponse) GetRefreshToken() string { + if x != nil { + return x.RefreshToken + } + return "" +} + +type ConfirmEMailRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Activation token + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *ConfirmEMailRequest) Reset() { + *x = ConfirmEMailRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConfirmEMailRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfirmEMailRequest) ProtoMessage() {} + +func (x *ConfirmEMailRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[29] + 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 ConfirmEMailRequest.ProtoReflect.Descriptor instead. +func (*ConfirmEMailRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{29} +} + +func (x *ConfirmEMailRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type GetUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +} + +func (x *GetUserRequest) Reset() { + *x = GetUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserRequest) ProtoMessage() {} + +func (x *GetUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[30] + 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 GetUserRequest.ProtoReflect.Descriptor instead. +func (*GetUserRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{30} +} + +func (x *GetUserRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type GetUserResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *GetUserResponse) Reset() { + *x = GetUserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserResponse) ProtoMessage() {} + +func (x *GetUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[31] + 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 GetUserResponse.ProtoReflect.Descriptor instead. +func (*GetUserResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{31} +} + +func (x *GetUserResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +type UpdateUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FullName string `protobuf:"bytes,1,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` +} + +func (x *UpdateUserRequest) Reset() { + *x = UpdateUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserRequest) ProtoMessage() {} + +func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[32] + 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 UpdateUserRequest.ProtoReflect.Descriptor instead. +func (*UpdateUserRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{32} +} + +func (x *UpdateUserRequest) GetFullName() string { + if x != nil { + return x.FullName + } + return "" +} + +type UpdateUserResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *UpdateUserResponse) Reset() { + *x = UpdateUserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserResponse) ProtoMessage() {} + +func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[33] + 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 UpdateUserResponse.ProtoReflect.Descriptor instead. +func (*UpdateUserResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{33} +} + +func (x *UpdateUserResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +type AdminListUsersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // page number to load + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + // optional + Search string `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"` +} + +func (x *AdminListUsersRequest) Reset() { + *x = AdminListUsersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListUsersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListUsersRequest) ProtoMessage() {} + +func (x *AdminListUsersRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[34] + 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 AdminListUsersRequest.ProtoReflect.Descriptor instead. +func (*AdminListUsersRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{34} +} + +func (x *AdminListUsersRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *AdminListUsersRequest) GetSearch() string { + if x != nil { + return x.Search + } + return "" +} + +type AdminListUsersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + // Number of pages available + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *AdminListUsersResponse) Reset() { + *x = AdminListUsersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListUsersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListUsersResponse) ProtoMessage() {} + +func (x *AdminListUsersResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[35] + 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 AdminListUsersResponse.ProtoReflect.Descriptor instead. +func (*AdminListUsersResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{35} +} + +func (x *AdminListUsersResponse) GetUsers() []*User { + if x != nil { + return x.Users + } + return nil +} + +func (x *AdminListUsersResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type AdminImpersonateUserRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` +} + +func (x *AdminImpersonateUserRequest) Reset() { + *x = AdminImpersonateUserRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminImpersonateUserRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminImpersonateUserRequest) ProtoMessage() {} + +func (x *AdminImpersonateUserRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[36] + 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 AdminImpersonateUserRequest.ProtoReflect.Descriptor instead. +func (*AdminImpersonateUserRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{36} +} + +func (x *AdminImpersonateUserRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +type AdminImpersonateUserResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` + RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` +} + +func (x *AdminImpersonateUserResponse) Reset() { + *x = AdminImpersonateUserResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminImpersonateUserResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminImpersonateUserResponse) ProtoMessage() {} + +func (x *AdminImpersonateUserResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[37] + 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 AdminImpersonateUserResponse.ProtoReflect.Descriptor instead. +func (*AdminImpersonateUserResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{37} +} + +func (x *AdminImpersonateUserResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +func (x *AdminImpersonateUserResponse) GetAccessToken() string { + if x != nil { + return x.AccessToken + } + return "" +} + +func (x *AdminImpersonateUserResponse) GetRefreshToken() string { + if x != nil { + return x.RefreshToken + } + return "" +} + +type BeginWebAuthnRegistrationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *BeginWebAuthnRegistrationRequest) Reset() { + *x = BeginWebAuthnRegistrationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BeginWebAuthnRegistrationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BeginWebAuthnRegistrationRequest) ProtoMessage() {} + +func (x *BeginWebAuthnRegistrationRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[38] + 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 BeginWebAuthnRegistrationRequest.ProtoReflect.Descriptor instead. +func (*BeginWebAuthnRegistrationRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{38} +} + +func (x *BeginWebAuthnRegistrationRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type BeginWebAuthnRegistrationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CredentialCreation []byte `protobuf:"bytes,1,opt,name=credential_creation,json=credentialCreation,proto3" json:"credential_creation,omitempty"` +} + +func (x *BeginWebAuthnRegistrationResponse) Reset() { + *x = BeginWebAuthnRegistrationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BeginWebAuthnRegistrationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BeginWebAuthnRegistrationResponse) ProtoMessage() {} + +func (x *BeginWebAuthnRegistrationResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[39] + 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 BeginWebAuthnRegistrationResponse.ProtoReflect.Descriptor instead. +func (*BeginWebAuthnRegistrationResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{39} +} + +func (x *BeginWebAuthnRegistrationResponse) GetCredentialCreation() []byte { + if x != nil { + return x.CredentialCreation + } + return nil +} + +type FinishWebAuthnRegistrationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CredentialCreationResponse []byte `protobuf:"bytes,1,opt,name=credential_creation_response,json=credentialCreationResponse,proto3" json:"credential_creation_response,omitempty"` + // device name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *FinishWebAuthnRegistrationRequest) Reset() { + *x = FinishWebAuthnRegistrationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FinishWebAuthnRegistrationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FinishWebAuthnRegistrationRequest) ProtoMessage() {} + +func (x *FinishWebAuthnRegistrationRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[40] + 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 FinishWebAuthnRegistrationRequest.ProtoReflect.Descriptor instead. +func (*FinishWebAuthnRegistrationRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{40} +} + +func (x *FinishWebAuthnRegistrationRequest) GetCredentialCreationResponse() []byte { + if x != nil { + return x.CredentialCreationResponse + } + return nil +} + +func (x *FinishWebAuthnRegistrationRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type FinishWebAuthnRegistrationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Device *WebAuthn `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` +} + +func (x *FinishWebAuthnRegistrationResponse) Reset() { + *x = FinishWebAuthnRegistrationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FinishWebAuthnRegistrationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FinishWebAuthnRegistrationResponse) ProtoMessage() {} + +func (x *FinishWebAuthnRegistrationResponse) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[41] + 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 FinishWebAuthnRegistrationResponse.ProtoReflect.Descriptor instead. +func (*FinishWebAuthnRegistrationResponse) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{41} +} + +func (x *FinishWebAuthnRegistrationResponse) GetDevice() *WebAuthn { + if x != nil { + return x.Device + } + return nil +} + +type WebAuthn struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Authenticator WebAuthnAuthenticator `protobuf:"varint,3,opt,name=authenticator,proto3,enum=api.user.WebAuthnAuthenticator" json:"authenticator,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + LastUsedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_used_at,json=lastUsedAt,proto3" json:"last_used_at,omitempty"` +} + +func (x *WebAuthn) Reset() { + *x = WebAuthn{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WebAuthn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WebAuthn) ProtoMessage() {} + +func (x *WebAuthn) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[42] + 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 WebAuthn.ProtoReflect.Descriptor instead. +func (*WebAuthn) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{42} +} + +func (x *WebAuthn) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *WebAuthn) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *WebAuthn) GetAuthenticator() WebAuthnAuthenticator { + if x != nil { + return x.Authenticator + } + return WebAuthnAuthenticator_UNKNOWN +} + +func (x *WebAuthn) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *WebAuthn) GetLastUsedAt() *timestamppb.Timestamp { + if x != nil { + return x.LastUsedAt + } + return nil +} + +type DeleteWebAuthnDeviceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *DeleteWebAuthnDeviceRequest) Reset() { + *x = DeleteWebAuthnDeviceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteWebAuthnDeviceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteWebAuthnDeviceRequest) ProtoMessage() {} + +func (x *DeleteWebAuthnDeviceRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[43] + 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 DeleteWebAuthnDeviceRequest.ProtoReflect.Descriptor instead. +func (*DeleteWebAuthnDeviceRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{43} +} + +func (x *DeleteWebAuthnDeviceRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *DeleteWebAuthnDeviceRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type UserLock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + DeletedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` +} + +func (x *UserLock) Reset() { + *x = UserLock{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserLock) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserLock) ProtoMessage() {} + +func (x *UserLock) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[44] + 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 UserLock.ProtoReflect.Descriptor instead. +func (*UserLock) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{44} +} + +func (x *UserLock) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UserLock) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *UserLock) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *UserLock) GetDeletedAt() *timestamppb.Timestamp { + if x != nil { + return x.DeletedAt + } + return nil +} + +type AdminCreateUserRemarkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Remark string `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"` +} + +func (x *AdminCreateUserRemarkRequest) Reset() { + *x = AdminCreateUserRemarkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateUserRemarkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateUserRemarkRequest) ProtoMessage() {} + +func (x *AdminCreateUserRemarkRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[45] + 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 AdminCreateUserRemarkRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateUserRemarkRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{45} +} + +func (x *AdminCreateUserRemarkRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *AdminCreateUserRemarkRequest) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +type AdminDeleteUserRemarkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *AdminDeleteUserRemarkRequest) Reset() { + *x = AdminDeleteUserRemarkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteUserRemarkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteUserRemarkRequest) ProtoMessage() {} + +func (x *AdminDeleteUserRemarkRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[46] + 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 AdminDeleteUserRemarkRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteUserRemarkRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{46} +} + +func (x *AdminDeleteUserRemarkRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type UserRemark struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Admin *User `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` + Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (x *UserRemark) Reset() { + *x = UserRemark{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserRemark) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserRemark) ProtoMessage() {} + +func (x *UserRemark) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[47] + 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 UserRemark.ProtoReflect.Descriptor instead. +func (*UserRemark) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{47} +} + +func (x *UserRemark) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UserRemark) GetAdmin() *User { + if x != nil { + return x.Admin + } + return nil +} + +func (x *UserRemark) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *UserRemark) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +type RequestPasswordForgottenTokenRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` +} + +func (x *RequestPasswordForgottenTokenRequest) Reset() { + *x = RequestPasswordForgottenTokenRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestPasswordForgottenTokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestPasswordForgottenTokenRequest) ProtoMessage() {} + +func (x *RequestPasswordForgottenTokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[48] + 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 RequestPasswordForgottenTokenRequest.ProtoReflect.Descriptor instead. +func (*RequestPasswordForgottenTokenRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{48} +} + +func (x *RequestPasswordForgottenTokenRequest) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +type ResetUserPasswordRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *ResetUserPasswordRequest) Reset() { + *x = ResetUserPasswordRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResetUserPasswordRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetUserPasswordRequest) ProtoMessage() {} + +func (x *ResetUserPasswordRequest) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[49] + 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 ResetUserPasswordRequest.ProtoReflect.Descriptor instead. +func (*ResetUserPasswordRequest) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{49} +} + +func (x *ResetUserPasswordRequest) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *ResetUserPasswordRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *ResetUserPasswordRequest) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +var File_user_proto protoreflect.FileDescriptor + +var file_user_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x70, + 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe0, 0x03, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x65, + 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x12, + 0x14, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x23, 0x0a, + 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x12, 0x43, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, + 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, + 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x67, + 0x69, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, + 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x42, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, + 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x4f, 0x0a, 0x1b, + 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x4c, 0x69, + 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0xfa, 0x01, + 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, + 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x12, 0x14, 0x0a, 0x04, 0x74, 0x6f, 0x74, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x04, 0x74, 0x6f, 0x74, 0x70, 0x12, 0x25, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x0c, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x42, 0x0a, + 0x1c, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x1a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, + 0x6c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x29, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x0c, 0x0a, 0x0a, + 0x74, 0x77, 0x6f, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x59, 0x0a, 0x0f, 0x41, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x12, 0x21, 0x0a, + 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8d, 0x01, 0x0a, 0x11, 0x54, 0x77, 0x6f, 0x46, 0x61, 0x63, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x74, + 0x77, 0x6f, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x54, 0x77, 0x6f, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x52, 0x10, 0x74, 0x77, 0x6f, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x73, 0x12, 0x2f, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x61, 0x6c, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb2, 0x01, 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x06, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x50, 0x61, 0x69, 0x72, 0x48, 0x00, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x12, 0x3c, 0x0a, 0x0a, 0x74, 0x77, 0x6f, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x54, 0x77, 0x6f, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x00, 0x52, 0x09, 0x74, 0x77, 0x6f, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x0a, + 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x0a, 0x17, 0x4c, 0x69, + 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x6b, 0x65, 0x79, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, + 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x73, + 0x73, 0x68, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x4c, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, + 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x4b, 0x65, 0x79, 0x22, 0x37, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x53, 0x53, 0x48, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1c, 0x0a, 0x0a, 0x73, 0x73, 0x68, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x73, 0x68, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x69, 0x0a, + 0x19, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, + 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x50, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x54, 0x4f, 0x54, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x22, 0x0a, 0x07, 0x71, 0x72, 0x5f, 0x63, 0x6f, 0x64, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x46, 0x69, + 0x6c, 0x65, 0x52, 0x06, 0x71, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x58, 0x0a, 0x0e, 0x41, 0x64, + 0x64, 0x54, 0x4f, 0x54, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, + 0x63, 0x72, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x22, 0x67, 0x0a, 0x0c, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, + 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x64, + 0x5f, 0x61, 0x74, 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, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x75, 0x73, 0x65, 0x64, 0x41, 0x74, 0x22, 0xa0, 0x01, + 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x54, 0x77, 0x6f, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, + 0x0f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x54, 0x77, 0x6f, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x52, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x73, 0x12, 0x3d, 0x0a, 0x10, 0x77, 0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x5f, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x52, + 0x0f, 0x77, 0x65, 0x62, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x22, 0x2f, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x54, 0x4f, 0x54, 0x50, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x22, 0x3c, 0x0a, 0x1e, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, + 0x60, 0x0a, 0x1f, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, + 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0e, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x63, + 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, + 0x64, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, + 0x73, 0x22, 0x3b, 0x0a, 0x14, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, + 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x83, + 0x01, 0x0a, 0x15, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xf6, 0x01, 0x0a, 0x0e, 0x4c, 0x6f, 0x6e, 0x67, 0x4c, 0x69, 0x76, + 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x22, 0xa6, 0x02, + 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, + 0x61, 0x73, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x73, 0x6e, 0x12, 0x21, + 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x29, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x22, 0x49, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, + 0x0a, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x35, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4c, 0x6f, 0x6e, 0x67, 0x4c, 0x69, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4f, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x6e, + 0x67, 0x4c, 0x69, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x4c, 0x6f, 0x6e, 0x67, 0x4c, 0x69, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x22, 0x38, 0x0a, 0x1b, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, + 0x4c, 0x6f, 0x6e, 0x67, 0x4c, 0x69, 0x76, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, + 0x22, 0x97, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x61, 0x70, 0x74, + 0x63, 0x68, 0x61, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0e, 0x72, 0x65, 0x63, 0x61, 0x70, 0x74, 0x63, 0x68, 0x61, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x29, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x0d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x7e, 0x0a, 0x10, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, + 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, + 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x2b, 0x0a, 0x13, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x45, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x29, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x22, 0x35, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x30, 0x0a, 0x11, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, + 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x38, 0x0a, 0x12, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x22, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x43, 0x0a, 0x15, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, + 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, + 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x22, 0x5f, 0x0a, 0x16, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, + 0x67, 0x65, 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x36, 0x0a, 0x1b, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x6d, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x22, 0x8a, 0x01, 0x0a, 0x1c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x6d, 0x70, + 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72, + 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0x3e, 0x0a, 0x20, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, + 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x22, 0x54, 0x0a, 0x21, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, + 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x79, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, + 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x1c, 0x63, + 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x1a, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x50, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x57, 0x65, 0x62, 0x41, 0x75, + 0x74, 0x68, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x2e, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x52, 0x06, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x22, 0xee, 0x01, 0x0a, 0x08, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x41, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0d, 0x61, 0x75, + 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x39, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3c, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, + 0x73, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x73, + 0x65, 0x64, 0x41, 0x74, 0x22, 0x49, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x65, + 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x44, 0x65, 0x76, 0x69, 0x63, 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, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, + 0xa8, 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 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, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x39, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x4f, 0x0a, 0x1c, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x22, 0x2e, 0x0a, 0x1c, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x95, 0x01, 0x0a, 0x0a, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x05, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x22, 0x3c, 0x0a, 0x24, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x6f, 0x72, 0x67, 0x6f, 0x74, 0x74, 0x65, 0x6e, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, + 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x22, 0x62, 0x0a, 0x18, 0x52, 0x65, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, + 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, + 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2a, 0x3a, 0x0a, 0x0f, 0x54, 0x77, 0x6f, 0x46, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x45, 0x43, 0x4f, + 0x56, 0x45, 0x52, 0x59, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x53, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, + 0x54, 0x4f, 0x54, 0x50, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x44, 0x4f, 0x32, 0x10, + 0x02, 0x2a, 0x3f, 0x0a, 0x15, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x41, 0x75, 0x74, + 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x4f, 0x55, 0x43, 0x48, + 0x5f, 0x49, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x59, 0x55, 0x42, 0x49, 0x4b, 0x45, 0x59, + 0x10, 0x02, 0x42, 0x16, 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x3b, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_user_proto_rawDescOnce sync.Once + file_user_proto_rawDescData = file_user_proto_rawDesc +) + +func file_user_proto_rawDescGZIP() []byte { + file_user_proto_rawDescOnce.Do(func() { + file_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_proto_rawDescData) + }) + return file_user_proto_rawDescData +} + +var file_user_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 50) +var file_user_proto_goTypes = []interface{}{ + (TwoFactorMethod)(0), // 0: api.user.TwoFactorMethod + (WebAuthnAuthenticator)(0), // 1: api.user.WebAuthnAuthenticator + (*User)(nil), // 2: api.user.User + (*UserComputeLimit)(nil), // 3: api.user.UserComputeLimit + (*GetUserComputeLimitResponse)(nil), // 4: api.user.GetUserComputeLimitResponse + (*LoginRequest)(nil), // 5: api.user.LoginRequest + (*AccessTokenPair)(nil), // 6: api.user.AccessTokenPair + (*TwoFactorResponse)(nil), // 7: api.user.TwoFactorResponse + (*LoginResponse)(nil), // 8: api.user.LoginResponse + (*ListUserSSHKeysResponse)(nil), // 9: api.user.ListUserSSHKeysResponse + (*CreateUserSSHKeyRequest)(nil), // 10: api.user.CreateUserSSHKeyRequest + (*DeleteUserSSHKeyRequest)(nil), // 11: api.user.DeleteUserSSHKeyRequest + (*ChangeUserPasswordRequest)(nil), // 12: api.user.ChangeUserPasswordRequest + (*CreateTOTPResponse)(nil), // 13: api.user.CreateTOTPResponse + (*AddTOTPRequest)(nil), // 14: api.user.AddTOTPRequest + (*RecoveryCode)(nil), // 15: api.user.RecoveryCode + (*GetTwoFactorMethodsResponse)(nil), // 16: api.user.GetTwoFactorMethodsResponse + (*RemoveTOTPRequest)(nil), // 17: api.user.RemoveTOTPRequest + (*RegenerateRecoveryCodesRequest)(nil), // 18: api.user.RegenerateRecoveryCodesRequest + (*RegenerateRecoveryCodesResponse)(nil), // 19: api.user.RegenerateRecoveryCodesResponse + (*RefreshTokensRequest)(nil), // 20: api.user.RefreshTokensRequest + (*RefreshTokensResponse)(nil), // 21: api.user.RefreshTokensResponse + (*LongLivedToken)(nil), // 22: api.user.LongLivedToken + (*UserSession)(nil), // 23: api.user.UserSession + (*ListSessionsResponse)(nil), // 24: api.user.ListSessionsResponse + (*DeleteSessionRequest)(nil), // 25: api.user.DeleteSessionRequest + (*CreateLongLivedTokenRequest)(nil), // 26: api.user.CreateLongLivedTokenRequest + (*ListLongLivedTokensResponse)(nil), // 27: api.user.ListLongLivedTokensResponse + (*RevokeLongLivedTokenRequest)(nil), // 28: api.user.RevokeLongLivedTokenRequest + (*RegisterRequest)(nil), // 29: api.user.RegisterRequest + (*RegisterResponse)(nil), // 30: api.user.RegisterResponse + (*ConfirmEMailRequest)(nil), // 31: api.user.ConfirmEMailRequest + (*GetUserRequest)(nil), // 32: api.user.GetUserRequest + (*GetUserResponse)(nil), // 33: api.user.GetUserResponse + (*UpdateUserRequest)(nil), // 34: api.user.UpdateUserRequest + (*UpdateUserResponse)(nil), // 35: api.user.UpdateUserResponse + (*AdminListUsersRequest)(nil), // 36: api.user.AdminListUsersRequest + (*AdminListUsersResponse)(nil), // 37: api.user.AdminListUsersResponse + (*AdminImpersonateUserRequest)(nil), // 38: api.user.AdminImpersonateUserRequest + (*AdminImpersonateUserResponse)(nil), // 39: api.user.AdminImpersonateUserResponse + (*BeginWebAuthnRegistrationRequest)(nil), // 40: api.user.BeginWebAuthnRegistrationRequest + (*BeginWebAuthnRegistrationResponse)(nil), // 41: api.user.BeginWebAuthnRegistrationResponse + (*FinishWebAuthnRegistrationRequest)(nil), // 42: api.user.FinishWebAuthnRegistrationRequest + (*FinishWebAuthnRegistrationResponse)(nil), // 43: api.user.FinishWebAuthnRegistrationResponse + (*WebAuthn)(nil), // 44: api.user.WebAuthn + (*DeleteWebAuthnDeviceRequest)(nil), // 45: api.user.DeleteWebAuthnDeviceRequest + (*UserLock)(nil), // 46: api.user.UserLock + (*AdminCreateUserRemarkRequest)(nil), // 47: api.user.AdminCreateUserRemarkRequest + (*AdminDeleteUserRemarkRequest)(nil), // 48: api.user.AdminDeleteUserRemarkRequest + (*UserRemark)(nil), // 49: api.user.UserRemark + (*RequestPasswordForgottenTokenRequest)(nil), // 50: api.user.RequestPasswordForgottenTokenRequest + (*ResetUserPasswordRequest)(nil), // 51: api.user.ResetUserPasswordRequest + (PaymentMethod)(0), // 52: api.payment.PaymentMethod + (*timestamppb.Timestamp)(nil), // 53: google.protobuf.Timestamp + (Platform)(0), // 54: api.Platform + (*SSHKey)(nil), // 55: api.security.SSHKey + (*File)(nil), // 56: api.File +} +var file_user_proto_depIdxs = []int32{ + 52, // 0: api.user.User.payment_methods:type_name -> api.payment.PaymentMethod + 53, // 1: api.user.User.last_login:type_name -> google.protobuf.Timestamp + 53, // 2: api.user.User.created_at:type_name -> google.protobuf.Timestamp + 53, // 3: api.user.User.updated_at:type_name -> google.protobuf.Timestamp + 3, // 4: api.user.GetUserComputeLimitResponse.limit:type_name -> api.user.UserComputeLimit + 54, // 5: api.user.LoginRequest.platform:type_name -> api.Platform + 0, // 6: api.user.TwoFactorResponse.two_factor_methods:type_name -> api.user.TwoFactorMethod + 2, // 7: api.user.LoginResponse.user:type_name -> api.user.User + 6, // 8: api.user.LoginResponse.tokens:type_name -> api.user.AccessTokenPair + 7, // 9: api.user.LoginResponse.two_factor:type_name -> api.user.TwoFactorResponse + 55, // 10: api.user.ListUserSSHKeysResponse.ssh_keys:type_name -> api.security.SSHKey + 56, // 11: api.user.CreateTOTPResponse.qr_code:type_name -> api.File + 53, // 12: api.user.RecoveryCode.used_at:type_name -> google.protobuf.Timestamp + 0, // 13: api.user.GetTwoFactorMethodsResponse.enabled_methods:type_name -> api.user.TwoFactorMethod + 44, // 14: api.user.GetTwoFactorMethodsResponse.webauthn_devices:type_name -> api.user.WebAuthn + 15, // 15: api.user.RegenerateRecoveryCodesResponse.recovery_codes:type_name -> api.user.RecoveryCode + 2, // 16: api.user.RefreshTokensResponse.user:type_name -> api.user.User + 53, // 17: api.user.LongLivedToken.created_at:type_name -> google.protobuf.Timestamp + 53, // 18: api.user.LongLivedToken.expires_at:type_name -> google.protobuf.Timestamp + 54, // 19: api.user.UserSession.platform:type_name -> api.Platform + 53, // 20: api.user.UserSession.created_at:type_name -> google.protobuf.Timestamp + 53, // 21: api.user.UserSession.expires_at:type_name -> google.protobuf.Timestamp + 23, // 22: api.user.ListSessionsResponse.sessions:type_name -> api.user.UserSession + 22, // 23: api.user.ListLongLivedTokensResponse.tokens:type_name -> api.user.LongLivedToken + 54, // 24: api.user.RegisterRequest.platform:type_name -> api.Platform + 2, // 25: api.user.RegisterResponse.user:type_name -> api.user.User + 2, // 26: api.user.GetUserResponse.user:type_name -> api.user.User + 2, // 27: api.user.UpdateUserResponse.user:type_name -> api.user.User + 2, // 28: api.user.AdminListUsersResponse.users:type_name -> api.user.User + 2, // 29: api.user.AdminImpersonateUserResponse.user:type_name -> api.user.User + 44, // 30: api.user.FinishWebAuthnRegistrationResponse.device:type_name -> api.user.WebAuthn + 1, // 31: api.user.WebAuthn.authenticator:type_name -> api.user.WebAuthnAuthenticator + 53, // 32: api.user.WebAuthn.created_at:type_name -> google.protobuf.Timestamp + 53, // 33: api.user.WebAuthn.last_used_at:type_name -> google.protobuf.Timestamp + 53, // 34: api.user.UserLock.created_at:type_name -> google.protobuf.Timestamp + 53, // 35: api.user.UserLock.deleted_at:type_name -> google.protobuf.Timestamp + 2, // 36: api.user.UserRemark.admin:type_name -> api.user.User + 53, // 37: api.user.UserRemark.created_at:type_name -> google.protobuf.Timestamp + 38, // [38:38] is the sub-list for method output_type + 38, // [38:38] is the sub-list for method input_type + 38, // [38:38] is the sub-list for extension type_name + 38, // [38:38] is the sub-list for extension extendee + 0, // [0:38] is the sub-list for field type_name +} + +func init() { file_user_proto_init() } +func file_user_proto_init() { + if File_user_proto != nil { + return + } + file_generic_proto_init() + file_security_proto_init() + file_payment_proto_init() + if !protoimpl.UnsafeEnabled { + file_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserComputeLimit); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserComputeLimitResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoginRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccessTokenPair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TwoFactorResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoginResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserSSHKeysResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserSSHKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteUserSSHKeyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChangeUserPasswordRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateTOTPResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddTOTPRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecoveryCode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTwoFactorMethodsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveTOTPRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegenerateRecoveryCodesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegenerateRecoveryCodesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshTokensRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshTokensResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LongLivedToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserSession); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSessionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteSessionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateLongLivedTokenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListLongLivedTokensResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RevokeLongLivedTokenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegisterResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConfirmEMailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListUsersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListUsersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminImpersonateUserRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminImpersonateUserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BeginWebAuthnRegistrationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BeginWebAuthnRegistrationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FinishWebAuthnRegistrationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FinishWebAuthnRegistrationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WebAuthn); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteWebAuthnDeviceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserLock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateUserRemarkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteUserRemarkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserRemark); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestPasswordForgottenTokenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetUserPasswordRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_user_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*LoginRequest_Totp)(nil), + (*LoginRequest_RecoveryCode)(nil), + (*LoginRequest_CredentialCreationResponse)(nil), + } + file_user_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*LoginResponse_Tokens)(nil), + (*LoginResponse_TwoFactor)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_user_proto_rawDesc, + NumEnums: 2, + NumMessages: 50, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_user_proto_goTypes, + DependencyIndexes: file_user_proto_depIdxs, + EnumInfos: file_user_proto_enumTypes, + MessageInfos: file_user_proto_msgTypes, + }.Build() + File_user_proto = out.File + file_user_proto_rawDesc = nil + file_user_proto_goTypes = nil + file_user_proto_depIdxs = nil +} diff --git a/pkg/gpcloud/ptypes/voucher.pb.go b/pkg/gpcloud/ptypes/voucher.pb.go new file mode 100644 index 0000000..dd0083d --- /dev/null +++ b/pkg/gpcloud/ptypes/voucher.pb.go @@ -0,0 +1,721 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.6 +// source: voucher.proto + +package ptypes + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + 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) +) + +type Voucher struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` + Credit *Price `protobuf:"bytes,3,opt,name=credit,proto3" json:"credit,omitempty"` + Used bool `protobuf:"varint,4,opt,name=used,proto3" json:"used,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` +} + +func (x *Voucher) Reset() { + *x = Voucher{} + if protoimpl.UnsafeEnabled { + mi := &file_voucher_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Voucher) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Voucher) ProtoMessage() {} + +func (x *Voucher) ProtoReflect() protoreflect.Message { + mi := &file_voucher_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 Voucher.ProtoReflect.Descriptor instead. +func (*Voucher) Descriptor() ([]byte, []int) { + return file_voucher_proto_rawDescGZIP(), []int{0} +} + +func (x *Voucher) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Voucher) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *Voucher) GetCredit() *Price { + if x != nil { + return x.Credit + } + return nil +} + +func (x *Voucher) GetUsed() bool { + if x != nil { + return x.Used + } + return false +} + +func (x *Voucher) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Voucher) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +func (x *Voucher) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +type AdminListVouchersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` +} + +func (x *AdminListVouchersRequest) Reset() { + *x = AdminListVouchersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_voucher_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListVouchersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListVouchersRequest) ProtoMessage() {} + +func (x *AdminListVouchersRequest) ProtoReflect() protoreflect.Message { + mi := &file_voucher_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 AdminListVouchersRequest.ProtoReflect.Descriptor instead. +func (*AdminListVouchersRequest) Descriptor() ([]byte, []int) { + return file_voucher_proto_rawDescGZIP(), []int{1} +} + +func (x *AdminListVouchersRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +type AdminListVouchersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Vouchers []*Voucher `protobuf:"bytes,1,rep,name=vouchers,proto3" json:"vouchers,omitempty"` + PagesTotal int32 `protobuf:"varint,2,opt,name=pages_total,json=pagesTotal,proto3" json:"pages_total,omitempty"` +} + +func (x *AdminListVouchersResponse) Reset() { + *x = AdminListVouchersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_voucher_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminListVouchersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminListVouchersResponse) ProtoMessage() {} + +func (x *AdminListVouchersResponse) ProtoReflect() protoreflect.Message { + mi := &file_voucher_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 AdminListVouchersResponse.ProtoReflect.Descriptor instead. +func (*AdminListVouchersResponse) Descriptor() ([]byte, []int) { + return file_voucher_proto_rawDescGZIP(), []int{2} +} + +func (x *AdminListVouchersResponse) GetVouchers() []*Voucher { + if x != nil { + return x.Vouchers + } + return nil +} + +func (x *AdminListVouchersResponse) GetPagesTotal() int32 { + if x != nil { + return x.PagesTotal + } + return 0 +} + +type AdminCreateVouchersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Amount is given as hundredths of cents + Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` + Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"` + // How many vouchers we should create + Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` + // When should the new vouchers expire (default 30 days) + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` +} + +func (x *AdminCreateVouchersRequest) Reset() { + *x = AdminCreateVouchersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_voucher_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateVouchersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateVouchersRequest) ProtoMessage() {} + +func (x *AdminCreateVouchersRequest) ProtoReflect() protoreflect.Message { + mi := &file_voucher_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 AdminCreateVouchersRequest.ProtoReflect.Descriptor instead. +func (*AdminCreateVouchersRequest) Descriptor() ([]byte, []int) { + return file_voucher_proto_rawDescGZIP(), []int{3} +} + +func (x *AdminCreateVouchersRequest) GetAmount() int64 { + if x != nil { + return x.Amount + } + return 0 +} + +func (x *AdminCreateVouchersRequest) GetCurrency() string { + if x != nil { + return x.Currency + } + return "" +} + +func (x *AdminCreateVouchersRequest) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +func (x *AdminCreateVouchersRequest) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +type AdminCreateVouchersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Vouchers []*Voucher `protobuf:"bytes,1,rep,name=vouchers,proto3" json:"vouchers,omitempty"` +} + +func (x *AdminCreateVouchersResponse) Reset() { + *x = AdminCreateVouchersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_voucher_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminCreateVouchersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminCreateVouchersResponse) ProtoMessage() {} + +func (x *AdminCreateVouchersResponse) ProtoReflect() protoreflect.Message { + mi := &file_voucher_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 AdminCreateVouchersResponse.ProtoReflect.Descriptor instead. +func (*AdminCreateVouchersResponse) Descriptor() ([]byte, []int) { + return file_voucher_proto_rawDescGZIP(), []int{4} +} + +func (x *AdminCreateVouchersResponse) GetVouchers() []*Voucher { + if x != nil { + return x.Vouchers + } + return nil +} + +type RedeemVoucherRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` +} + +func (x *RedeemVoucherRequest) Reset() { + *x = RedeemVoucherRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_voucher_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RedeemVoucherRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RedeemVoucherRequest) ProtoMessage() {} + +func (x *RedeemVoucherRequest) ProtoReflect() protoreflect.Message { + mi := &file_voucher_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 RedeemVoucherRequest.ProtoReflect.Descriptor instead. +func (*RedeemVoucherRequest) Descriptor() ([]byte, []int) { + return file_voucher_proto_rawDescGZIP(), []int{5} +} + +func (x *RedeemVoucherRequest) GetProjectId() string { + if x != nil { + return x.ProjectId + } + return "" +} + +func (x *RedeemVoucherRequest) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +type RedeemVoucherResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Credit *Price `protobuf:"bytes,1,opt,name=credit,proto3" json:"credit,omitempty"` +} + +func (x *RedeemVoucherResponse) Reset() { + *x = RedeemVoucherResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_voucher_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RedeemVoucherResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RedeemVoucherResponse) ProtoMessage() {} + +func (x *RedeemVoucherResponse) ProtoReflect() protoreflect.Message { + mi := &file_voucher_proto_msgTypes[6] + 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 RedeemVoucherResponse.ProtoReflect.Descriptor instead. +func (*RedeemVoucherResponse) Descriptor() ([]byte, []int) { + return file_voucher_proto_rawDescGZIP(), []int{6} +} + +func (x *RedeemVoucherResponse) GetCredit() *Price { + if x != nil { + return x.Credit + } + return nil +} + +type AdminDeleteVoucherRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VoucherId string `protobuf:"bytes,1,opt,name=voucher_id,json=voucherId,proto3" json:"voucher_id,omitempty"` +} + +func (x *AdminDeleteVoucherRequest) Reset() { + *x = AdminDeleteVoucherRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_voucher_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AdminDeleteVoucherRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AdminDeleteVoucherRequest) ProtoMessage() {} + +func (x *AdminDeleteVoucherRequest) ProtoReflect() protoreflect.Message { + mi := &file_voucher_proto_msgTypes[7] + 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 AdminDeleteVoucherRequest.ProtoReflect.Descriptor instead. +func (*AdminDeleteVoucherRequest) Descriptor() ([]byte, []int) { + return file_voucher_proto_rawDescGZIP(), []int{7} +} + +func (x *AdminDeleteVoucherRequest) GetVoucherId() string { + if x != nil { + return x.VoucherId + } + return "" +} + +var File_voucher_proto protoreflect.FileDescriptor + +var file_voucher_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x02, 0x0a, + 0x07, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a, 0x06, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, + 0x75, 0x73, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x73, 0x41, 0x74, 0x22, 0x2e, 0x0a, 0x18, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, + 0x73, 0x74, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0x6e, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, + 0x73, 0x74, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x6f, 0x75, 0x63, 0x68, + 0x65, 0x72, 0x2e, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x52, 0x08, 0x76, 0x6f, 0x75, 0x63, + 0x68, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x73, + 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0xa1, 0x01, 0x0a, 0x1a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x39, + 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x22, 0x4f, 0x0a, 0x1b, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x76, 0x6f, 0x75, 0x63, + 0x68, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, + 0x52, 0x08, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x73, 0x22, 0x49, 0x0a, 0x14, 0x52, 0x65, + 0x64, 0x65, 0x65, 0x6d, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x3b, 0x0a, 0x15, 0x52, 0x65, 0x64, 0x65, 0x65, 0x6d, 0x56, + 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, + 0x0a, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x06, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x22, 0x3a, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x56, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x6f, 0x75, 0x63, 0x68, 0x65, 0x72, 0x49, 0x64, 0x42, 0x16, + 0x5a, 0x14, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x3b, + 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_voucher_proto_rawDescOnce sync.Once + file_voucher_proto_rawDescData = file_voucher_proto_rawDesc +) + +func file_voucher_proto_rawDescGZIP() []byte { + file_voucher_proto_rawDescOnce.Do(func() { + file_voucher_proto_rawDescData = protoimpl.X.CompressGZIP(file_voucher_proto_rawDescData) + }) + return file_voucher_proto_rawDescData +} + +var file_voucher_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_voucher_proto_goTypes = []interface{}{ + (*Voucher)(nil), // 0: api.voucher.Voucher + (*AdminListVouchersRequest)(nil), // 1: api.voucher.AdminListVouchersRequest + (*AdminListVouchersResponse)(nil), // 2: api.voucher.AdminListVouchersResponse + (*AdminCreateVouchersRequest)(nil), // 3: api.voucher.AdminCreateVouchersRequest + (*AdminCreateVouchersResponse)(nil), // 4: api.voucher.AdminCreateVouchersResponse + (*RedeemVoucherRequest)(nil), // 5: api.voucher.RedeemVoucherRequest + (*RedeemVoucherResponse)(nil), // 6: api.voucher.RedeemVoucherResponse + (*AdminDeleteVoucherRequest)(nil), // 7: api.voucher.AdminDeleteVoucherRequest + (*Price)(nil), // 8: api.Price + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp +} +var file_voucher_proto_depIdxs = []int32{ + 8, // 0: api.voucher.Voucher.credit:type_name -> api.Price + 9, // 1: api.voucher.Voucher.created_at:type_name -> google.protobuf.Timestamp + 9, // 2: api.voucher.Voucher.updated_at:type_name -> google.protobuf.Timestamp + 9, // 3: api.voucher.Voucher.expires_at:type_name -> google.protobuf.Timestamp + 0, // 4: api.voucher.AdminListVouchersResponse.vouchers:type_name -> api.voucher.Voucher + 9, // 5: api.voucher.AdminCreateVouchersRequest.expires_at:type_name -> google.protobuf.Timestamp + 0, // 6: api.voucher.AdminCreateVouchersResponse.vouchers:type_name -> api.voucher.Voucher + 8, // 7: api.voucher.RedeemVoucherResponse.credit:type_name -> api.Price + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_voucher_proto_init() } +func file_voucher_proto_init() { + if File_voucher_proto != nil { + return + } + file_generic_proto_init() + if !protoimpl.UnsafeEnabled { + file_voucher_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Voucher); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_voucher_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListVouchersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_voucher_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminListVouchersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_voucher_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateVouchersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_voucher_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminCreateVouchersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_voucher_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RedeemVoucherRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_voucher_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RedeemVoucherResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_voucher_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdminDeleteVoucherRequest); 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_voucher_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_voucher_proto_goTypes, + DependencyIndexes: file_voucher_proto_depIdxs, + MessageInfos: file_voucher_proto_msgTypes, + }.Build() + File_voucher_proto = out.File + file_voucher_proto_rawDesc = nil + file_voucher_proto_goTypes = nil + file_voucher_proto_depIdxs = nil +}