From 6a7f28985a6e87c1acedbb54d48ed9e040f9365f Mon Sep 17 00:00:00 2001 From: Laurent Luce Date: Thu, 11 Apr 2024 12:58:49 -0400 Subject: [PATCH] chore: Merge the cloud admin backend methods into the cloud backend (#2366) ## Description As part of merging the cloud admin backend into the cloud backend, we need to add the cloud admin backend protobuf defs to the cloud backend protobuf defs. ## Is this change user facing? NO --- .../kurtosis_backend_server_api.pb.go | 1423 ++++++++++++++--- .../kurtosis_backend_server_api_grpc.pb.go | 150 +- .../kurtosis_backend_server_api.connect.go | 108 ++ .../kurtosis_backend_server_api.proto | 76 + .../kurtosis_backend_server_api_connect.ts | 40 +- .../src/kurtosis_backend_server_api_pb.ts | 577 ++++++- 6 files changed, 2183 insertions(+), 191 deletions(-) diff --git a/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_api.pb.go b/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_api.pb.go index 049fcd15e0..fc23861890 100644 --- a/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_api.pb.go +++ b/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc v4.23.4 // source: kurtosis_backend_server_api.proto package kurtosis_backend_server_rpc_api_bindings @@ -1179,6 +1179,747 @@ func (x *UpdateAddressArgs) GetCountry() string { return "" } +type DeleteInstanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + Ec2Id string `protobuf:"bytes,2,opt,name=ec2_id,json=ec2Id,proto3" json:"ec2_id,omitempty"` +} + +func (x *DeleteInstanceRequest) Reset() { + *x = DeleteInstanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_kurtosis_backend_server_api_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteInstanceRequest) ProtoMessage() {} + +func (x *DeleteInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_kurtosis_backend_server_api_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 DeleteInstanceRequest.ProtoReflect.Descriptor instead. +func (*DeleteInstanceRequest) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{17} +} + +func (x *DeleteInstanceRequest) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *DeleteInstanceRequest) GetEc2Id() string { + if x != nil { + return x.Ec2Id + } + return "" +} + +type DeleteInstanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *DeleteInstanceResponse) Reset() { + *x = DeleteInstanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_kurtosis_backend_server_api_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteInstanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteInstanceResponse) ProtoMessage() {} + +func (x *DeleteInstanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_kurtosis_backend_server_api_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 DeleteInstanceResponse.ProtoReflect.Descriptor instead. +func (*DeleteInstanceResponse) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{18} +} + +func (x *DeleteInstanceResponse) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +type GetInstancesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Instances map[string]*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *GetInstancesResponse) Reset() { + *x = GetInstancesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_kurtosis_backend_server_api_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetInstancesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetInstancesResponse) ProtoMessage() {} + +func (x *GetInstancesResponse) ProtoReflect() protoreflect.Message { + mi := &file_kurtosis_backend_server_api_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 GetInstancesResponse.ProtoReflect.Descriptor instead. +func (*GetInstancesResponse) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{19} +} + +func (x *GetInstancesResponse) GetInstances() map[string]*Instance { + if x != nil { + return x.Instances + } + return nil +} + +type ChangeUserActiveRequest 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"` + Active bool `protobuf:"varint,2,opt,name=active,proto3" json:"active,omitempty"` +} + +func (x *ChangeUserActiveRequest) Reset() { + *x = ChangeUserActiveRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_kurtosis_backend_server_api_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeUserActiveRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeUserActiveRequest) ProtoMessage() {} + +func (x *ChangeUserActiveRequest) ProtoReflect() protoreflect.Message { + mi := &file_kurtosis_backend_server_api_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 ChangeUserActiveRequest.ProtoReflect.Descriptor instead. +func (*ChangeUserActiveRequest) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{20} +} + +func (x *ChangeUserActiveRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *ChangeUserActiveRequest) GetActive() bool { + if x != nil { + return x.Active + } + return false +} + +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_kurtosis_backend_server_api_proto_msgTypes[21] + 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_kurtosis_backend_server_api_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 GetUserRequest.ProtoReflect.Descriptor instead. +func (*GetUserRequest) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{21} +} + +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_kurtosis_backend_server_api_proto_msgTypes[22] + 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_kurtosis_backend_server_api_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 GetUserResponse.ProtoReflect.Descriptor instead. +func (*GetUserResponse) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{22} +} + +func (x *GetUserResponse) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +type Auth0User struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Auth0UserId string `protobuf:"bytes,1,opt,name=Auth0UserId,proto3" json:"Auth0UserId,omitempty"` + Auth0Name *string `protobuf:"bytes,2,opt,name=Auth0Name,proto3,oneof" json:"Auth0Name,omitempty"` + Auth0GivenName *string `protobuf:"bytes,3,opt,name=Auth0GivenName,proto3,oneof" json:"Auth0GivenName,omitempty"` + Auth0FamilyName *string `protobuf:"bytes,4,opt,name=Auth0FamilyName,proto3,oneof" json:"Auth0FamilyName,omitempty"` + Auth0Email *string `protobuf:"bytes,5,opt,name=Auth0Email,proto3,oneof" json:"Auth0Email,omitempty"` + Auth0EmailVerified *bool `protobuf:"varint,6,opt,name=Auth0EmailVerified,proto3,oneof" json:"Auth0EmailVerified,omitempty"` + Auth0Provider *string `protobuf:"bytes,7,opt,name=Auth0Provider,proto3,oneof" json:"Auth0Provider,omitempty"` + Auth0Created *string `protobuf:"bytes,8,opt,name=Auth0Created,proto3,oneof" json:"Auth0Created,omitempty"` + Auth0LastLogin *string `protobuf:"bytes,9,opt,name=Auth0LastLogin,proto3,oneof" json:"Auth0LastLogin,omitempty"` + Auth0LastIp *string `protobuf:"bytes,10,opt,name=Auth0LastIp,proto3,oneof" json:"Auth0LastIp,omitempty"` + Auth0LoginsCount *int64 `protobuf:"varint,11,opt,name=Auth0LoginsCount,proto3,oneof" json:"Auth0LoginsCount,omitempty"` + Auth0Picture *string `protobuf:"bytes,12,opt,name=Auth0Picture,proto3,oneof" json:"Auth0Picture,omitempty"` + Auth0Location *string `protobuf:"bytes,13,opt,name=Auth0Location,proto3,oneof" json:"Auth0Location,omitempty"` +} + +func (x *Auth0User) Reset() { + *x = Auth0User{} + if protoimpl.UnsafeEnabled { + mi := &file_kurtosis_backend_server_api_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Auth0User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Auth0User) ProtoMessage() {} + +func (x *Auth0User) ProtoReflect() protoreflect.Message { + mi := &file_kurtosis_backend_server_api_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 Auth0User.ProtoReflect.Descriptor instead. +func (*Auth0User) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{23} +} + +func (x *Auth0User) GetAuth0UserId() string { + if x != nil { + return x.Auth0UserId + } + return "" +} + +func (x *Auth0User) GetAuth0Name() string { + if x != nil && x.Auth0Name != nil { + return *x.Auth0Name + } + return "" +} + +func (x *Auth0User) GetAuth0GivenName() string { + if x != nil && x.Auth0GivenName != nil { + return *x.Auth0GivenName + } + return "" +} + +func (x *Auth0User) GetAuth0FamilyName() string { + if x != nil && x.Auth0FamilyName != nil { + return *x.Auth0FamilyName + } + return "" +} + +func (x *Auth0User) GetAuth0Email() string { + if x != nil && x.Auth0Email != nil { + return *x.Auth0Email + } + return "" +} + +func (x *Auth0User) GetAuth0EmailVerified() bool { + if x != nil && x.Auth0EmailVerified != nil { + return *x.Auth0EmailVerified + } + return false +} + +func (x *Auth0User) GetAuth0Provider() string { + if x != nil && x.Auth0Provider != nil { + return *x.Auth0Provider + } + return "" +} + +func (x *Auth0User) GetAuth0Created() string { + if x != nil && x.Auth0Created != nil { + return *x.Auth0Created + } + return "" +} + +func (x *Auth0User) GetAuth0LastLogin() string { + if x != nil && x.Auth0LastLogin != nil { + return *x.Auth0LastLogin + } + return "" +} + +func (x *Auth0User) GetAuth0LastIp() string { + if x != nil && x.Auth0LastIp != nil { + return *x.Auth0LastIp + } + return "" +} + +func (x *Auth0User) GetAuth0LoginsCount() int64 { + if x != nil && x.Auth0LoginsCount != nil { + return *x.Auth0LoginsCount + } + return 0 +} + +func (x *Auth0User) GetAuth0Picture() string { + if x != nil && x.Auth0Picture != nil { + return *x.Auth0Picture + } + return "" +} + +func (x *Auth0User) GetAuth0Location() string { + if x != nil && x.Auth0Location != nil { + return *x.Auth0Location + } + return "" +} + +type Ec2Connection struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InstanceName string `protobuf:"bytes,1,opt,name=InstanceName,proto3" json:"InstanceName,omitempty"` + PublicDns string `protobuf:"bytes,2,opt,name=PublicDns,proto3" json:"PublicDns,omitempty"` + IpAddress string `protobuf:"bytes,3,opt,name=IpAddress,proto3" json:"IpAddress,omitempty"` + InstanceId string `protobuf:"bytes,4,opt,name=InstanceId,proto3" json:"InstanceId,omitempty"` +} + +func (x *Ec2Connection) Reset() { + *x = Ec2Connection{} + if protoimpl.UnsafeEnabled { + mi := &file_kurtosis_backend_server_api_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Ec2Connection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Ec2Connection) ProtoMessage() {} + +func (x *Ec2Connection) ProtoReflect() protoreflect.Message { + mi := &file_kurtosis_backend_server_api_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 Ec2Connection.ProtoReflect.Descriptor instead. +func (*Ec2Connection) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{24} +} + +func (x *Ec2Connection) GetInstanceName() string { + if x != nil { + return x.InstanceName + } + return "" +} + +func (x *Ec2Connection) GetPublicDns() string { + if x != nil { + return x.PublicDns + } + return "" +} + +func (x *Ec2Connection) GetIpAddress() string { + if x != nil { + return x.IpAddress + } + return "" +} + +func (x *Ec2Connection) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +type PaymentUser struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"` + Subscription string `protobuf:"bytes,2,opt,name=Subscription,proto3" json:"Subscription,omitempty"` +} + +func (x *PaymentUser) Reset() { + *x = PaymentUser{} + if protoimpl.UnsafeEnabled { + mi := &file_kurtosis_backend_server_api_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PaymentUser) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PaymentUser) ProtoMessage() {} + +func (x *PaymentUser) ProtoReflect() protoreflect.Message { + mi := &file_kurtosis_backend_server_api_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 PaymentUser.ProtoReflect.Descriptor instead. +func (*PaymentUser) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{25} +} + +func (x *PaymentUser) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *PaymentUser) GetSubscription() string { + if x != nil { + return x.Subscription + } + return "" +} + +type Instance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=Uuid,proto3" json:"Uuid,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=UserId,proto3" json:"UserId,omitempty"` + Auth0User *Auth0User `protobuf:"bytes,3,opt,name=Auth0User,proto3,oneof" json:"Auth0User,omitempty"` + Ec2Connection *Ec2Connection `protobuf:"bytes,4,opt,name=Ec2Connection,proto3,oneof" json:"Ec2Connection,omitempty"` + Status string `protobuf:"bytes,5,opt,name=Status,proto3" json:"Status,omitempty"` + Updated string `protobuf:"bytes,6,opt,name=Updated,proto3" json:"Updated,omitempty"` + Created string `protobuf:"bytes,7,opt,name=Created,proto3" json:"Created,omitempty"` + PaymentUser *PaymentUser `protobuf:"bytes,8,opt,name=PaymentUser,proto3,oneof" json:"PaymentUser,omitempty"` +} + +func (x *Instance) Reset() { + *x = Instance{} + if protoimpl.UnsafeEnabled { + mi := &file_kurtosis_backend_server_api_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Instance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Instance) ProtoMessage() {} + +func (x *Instance) ProtoReflect() protoreflect.Message { + mi := &file_kurtosis_backend_server_api_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 Instance.ProtoReflect.Descriptor instead. +func (*Instance) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{26} +} + +func (x *Instance) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *Instance) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *Instance) GetAuth0User() *Auth0User { + if x != nil { + return x.Auth0User + } + return nil +} + +func (x *Instance) GetEc2Connection() *Ec2Connection { + if x != nil { + return x.Ec2Connection + } + return nil +} + +func (x *Instance) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *Instance) GetUpdated() string { + if x != nil { + return x.Updated + } + return "" +} + +func (x *Instance) GetCreated() string { + if x != nil { + return x.Created + } + return "" +} + +func (x *Instance) GetPaymentUser() *PaymentUser { + if x != nil { + return x.PaymentUser + } + return nil +} + +type User struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"` + ExternalUserID string `protobuf:"bytes,2,opt,name=ExternalUserID,proto3" json:"ExternalUserID,omitempty"` + Active bool `protobuf:"varint,3,opt,name=Active,proto3" json:"Active,omitempty"` + Updated string `protobuf:"bytes,4,opt,name=Updated,proto3" json:"Updated,omitempty"` +} + +func (x *User) Reset() { + *x = User{} + if protoimpl.UnsafeEnabled { + mi := &file_kurtosis_backend_server_api_proto_msgTypes[27] + 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_kurtosis_backend_server_api_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 User.ProtoReflect.Descriptor instead. +func (*User) Descriptor() ([]byte, []int) { + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{27} +} + +func (x *User) GetUserID() string { + if x != nil { + return x.UserID + } + return "" +} + +func (x *User) GetExternalUserID() string { + if x != nil { + return x.ExternalUserID + } + return "" +} + +func (x *User) GetActive() bool { + if x != nil { + return x.Active + } + return false +} + +func (x *User) GetUpdated() string { + if x != nil { + return x.Updated + } + return "" +} + type GetUnlockedPortsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1192,7 +1933,7 @@ type GetUnlockedPortsRequest struct { func (x *GetUnlockedPortsRequest) Reset() { *x = GetUnlockedPortsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[17] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1205,7 +1946,7 @@ func (x *GetUnlockedPortsRequest) String() string { func (*GetUnlockedPortsRequest) ProtoMessage() {} func (x *GetUnlockedPortsRequest) ProtoReflect() protoreflect.Message { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[17] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1218,7 +1959,7 @@ func (x *GetUnlockedPortsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetUnlockedPortsRequest.ProtoReflect.Descriptor instead. func (*GetUnlockedPortsRequest) Descriptor() ([]byte, []int) { - return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{17} + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{28} } func (x *GetUnlockedPortsRequest) GetAccessToken() string { @@ -1253,7 +1994,7 @@ type CheckPortAuthorizationRequest struct { func (x *CheckPortAuthorizationRequest) Reset() { *x = CheckPortAuthorizationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[18] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1266,7 +2007,7 @@ func (x *CheckPortAuthorizationRequest) String() string { func (*CheckPortAuthorizationRequest) ProtoMessage() {} func (x *CheckPortAuthorizationRequest) ProtoReflect() protoreflect.Message { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[18] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1279,7 +2020,7 @@ func (x *CheckPortAuthorizationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CheckPortAuthorizationRequest.ProtoReflect.Descriptor instead. func (*CheckPortAuthorizationRequest) Descriptor() ([]byte, []int) { - return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{18} + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{29} } func (x *CheckPortAuthorizationRequest) GetPort() *Port { @@ -1301,7 +2042,7 @@ type UnlockPortRequest struct { func (x *UnlockPortRequest) Reset() { *x = UnlockPortRequest{} if protoimpl.UnsafeEnabled { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[19] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1314,7 +2055,7 @@ func (x *UnlockPortRequest) String() string { func (*UnlockPortRequest) ProtoMessage() {} func (x *UnlockPortRequest) ProtoReflect() protoreflect.Message { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[19] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1327,7 +2068,7 @@ func (x *UnlockPortRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UnlockPortRequest.ProtoReflect.Descriptor instead. func (*UnlockPortRequest) Descriptor() ([]byte, []int) { - return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{19} + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{30} } func (x *UnlockPortRequest) GetAccessToken() string { @@ -1356,7 +2097,7 @@ type LockPortRequest struct { func (x *LockPortRequest) Reset() { *x = LockPortRequest{} if protoimpl.UnsafeEnabled { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[20] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1369,7 +2110,7 @@ func (x *LockPortRequest) String() string { func (*LockPortRequest) ProtoMessage() {} func (x *LockPortRequest) ProtoReflect() protoreflect.Message { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[20] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1382,7 +2123,7 @@ func (x *LockPortRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use LockPortRequest.ProtoReflect.Descriptor instead. func (*LockPortRequest) Descriptor() ([]byte, []int) { - return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{20} + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{31} } func (x *LockPortRequest) GetAccessToken() string { @@ -1413,7 +2154,7 @@ type Port struct { func (x *Port) Reset() { *x = Port{} if protoimpl.UnsafeEnabled { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[21] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1426,7 +2167,7 @@ func (x *Port) String() string { func (*Port) ProtoMessage() {} func (x *Port) ProtoReflect() protoreflect.Message { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[21] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1439,7 +2180,7 @@ func (x *Port) ProtoReflect() protoreflect.Message { // Deprecated: Use Port.ProtoReflect.Descriptor instead. func (*Port) Descriptor() ([]byte, []int) { - return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{21} + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{32} } func (x *Port) GetPortNumber() uint32 { @@ -1481,7 +2222,7 @@ type GetUnlockedPortsResponse struct { func (x *GetUnlockedPortsResponse) Reset() { *x = GetUnlockedPortsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[22] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1494,7 +2235,7 @@ func (x *GetUnlockedPortsResponse) String() string { func (*GetUnlockedPortsResponse) ProtoMessage() {} func (x *GetUnlockedPortsResponse) ProtoReflect() protoreflect.Message { - mi := &file_kurtosis_backend_server_api_proto_msgTypes[22] + mi := &file_kurtosis_backend_server_api_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1507,7 +2248,7 @@ func (x *GetUnlockedPortsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetUnlockedPortsResponse.ProtoReflect.Descriptor instead. func (*GetUnlockedPortsResponse) Descriptor() ([]byte, []int) { - return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{22} + return file_kurtosis_backend_server_api_proto_rawDescGZIP(), []int{33} } func (x *GetUnlockedPortsResponse) GetPort() []*Port { @@ -1694,131 +2435,279 @@ var file_kurtosis_backend_server_api_proto_rawDesc = []byte{ 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x5f, - 0x32, 0x22, 0x9a, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, - 0x64, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 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, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x68, 0x6f, - 0x72, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x55, 0x75, 0x69, 0x64, - 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x72, - 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x65, 0x6e, - 0x63, 0x6c, 0x61, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x55, 0x75, 0x69, 0x64, 0x22, 0x49, - 0x0a, 0x1d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x28, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, - 0x6f, 0x72, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x60, 0x0a, 0x11, 0x55, 0x6e, 0x6c, - 0x6f, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 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, 0x28, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x32, 0x22, 0x4f, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, + 0x63, 0x32, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x63, 0x32, + 0x49, 0x64, 0x22, 0x30, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, + 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x33, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, + 0x1a, 0x56, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 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, 0x2e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4a, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 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, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x65, 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, + 0x3b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x8c, 0x06, 0x0a, + 0x09, 0x41, 0x75, 0x74, 0x68, 0x30, 0x55, 0x73, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x41, 0x75, + 0x74, 0x68, 0x30, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x41, 0x75, 0x74, 0x68, 0x30, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x09, + 0x41, 0x75, 0x74, 0x68, 0x30, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x09, 0x41, 0x75, 0x74, 0x68, 0x30, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, + 0x2b, 0x0a, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x30, 0x47, 0x69, 0x76, 0x65, 0x6e, 0x4e, 0x61, 0x6d, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x30, + 0x47, 0x69, 0x76, 0x65, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x2d, 0x0a, 0x0f, + 0x41, 0x75, 0x74, 0x68, 0x30, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0f, 0x41, 0x75, 0x74, 0x68, 0x30, 0x46, 0x61, + 0x6d, 0x69, 0x6c, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0a, 0x41, + 0x75, 0x74, 0x68, 0x30, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x03, 0x52, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x30, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, + 0x12, 0x33, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x30, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, + 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x04, 0x52, 0x12, + 0x41, 0x75, 0x74, 0x68, 0x30, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, + 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x29, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x30, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x05, 0x52, 0x0d, + 0x41, 0x75, 0x74, 0x68, 0x30, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, + 0x12, 0x27, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x30, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x06, 0x52, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x30, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2b, 0x0a, 0x0e, 0x41, 0x75, 0x74, + 0x68, 0x30, 0x4c, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x07, 0x52, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x30, 0x4c, 0x61, 0x73, 0x74, 0x4c, 0x6f, + 0x67, 0x69, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x30, 0x4c, + 0x61, 0x73, 0x74, 0x49, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x08, 0x52, 0x0b, 0x41, + 0x75, 0x74, 0x68, 0x30, 0x4c, 0x61, 0x73, 0x74, 0x49, 0x70, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, + 0x10, 0x41, 0x75, 0x74, 0x68, 0x30, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x48, 0x09, 0x52, 0x10, 0x41, 0x75, 0x74, 0x68, 0x30, + 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x27, + 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x30, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x0a, 0x52, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x30, 0x50, 0x69, 0x63, + 0x74, 0x75, 0x72, 0x65, 0x88, 0x01, 0x01, 0x12, 0x29, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x30, + 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x48, 0x0b, + 0x52, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x30, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, + 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x41, 0x75, 0x74, 0x68, 0x30, 0x4e, 0x61, 0x6d, 0x65, + 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x41, 0x75, 0x74, 0x68, 0x30, 0x47, 0x69, 0x76, 0x65, 0x6e, 0x4e, + 0x61, 0x6d, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x41, 0x75, 0x74, 0x68, 0x30, 0x46, 0x61, 0x6d, + 0x69, 0x6c, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x41, 0x75, 0x74, 0x68, + 0x30, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x41, 0x75, 0x74, 0x68, 0x30, + 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x42, 0x10, 0x0a, + 0x0e, 0x5f, 0x41, 0x75, 0x74, 0x68, 0x30, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x42, + 0x0f, 0x0a, 0x0d, 0x5f, 0x41, 0x75, 0x74, 0x68, 0x30, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x41, 0x75, 0x74, 0x68, 0x30, 0x4c, 0x61, 0x73, 0x74, 0x4c, 0x6f, + 0x67, 0x69, 0x6e, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x41, 0x75, 0x74, 0x68, 0x30, 0x4c, 0x61, 0x73, + 0x74, 0x49, 0x70, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x41, 0x75, 0x74, 0x68, 0x30, 0x4c, 0x6f, 0x67, + 0x69, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x41, 0x75, 0x74, + 0x68, 0x30, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x41, 0x75, + 0x74, 0x68, 0x30, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8f, 0x01, 0x0a, 0x0d, + 0x45, 0x63, 0x32, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, + 0x0c, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x44, 0x6e, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x44, 0x6e, 0x73, 0x12, + 0x1c, 0x0a, 0x09, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x49, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x0a, + 0x0a, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x49, 0x0a, + 0x0b, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xfe, 0x02, 0x0a, 0x08, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x55, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x55, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x3c, 0x0a, 0x09, 0x41, 0x75, 0x74, 0x68, 0x30, 0x55, 0x73, 0x65, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x30, 0x55, 0x73, 0x65, 0x72, 0x48, + 0x00, 0x52, 0x09, 0x41, 0x75, 0x74, 0x68, 0x30, 0x55, 0x73, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, + 0x48, 0x0a, 0x0d, 0x45, 0x63, 0x32, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, + 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x45, 0x63, 0x32, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x0d, 0x45, 0x63, 0x32, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x42, 0x0a, 0x0b, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6b, 0x75, 0x72, + 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, 0x61, 0x79, 0x6d, + 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x48, 0x02, 0x52, 0x0b, 0x50, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x41, 0x75, + 0x74, 0x68, 0x30, 0x55, 0x73, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x45, 0x63, 0x32, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x50, 0x61, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x22, 0x78, 0x0a, 0x04, 0x55, 0x73, 0x65, + 0x72, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x26, 0x0a, 0x0e, 0x45, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x49, + 0x44, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x06, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x6c, 0x6f, 0x63, + 0x6b, 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 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, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, + 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x11, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x55, 0x75, + 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x5f, 0x73, 0x68, + 0x6f, 0x72, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, + 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x55, 0x75, 0x69, 0x64, + 0x22, 0x49, 0x0a, 0x1d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x41, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x28, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x5e, 0x0a, 0x0f, 0x4c, - 0x6f, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 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, 0x28, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0xb3, 0x01, 0x0a, 0x04, - 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x6f, 0x72, 0x74, 0x4e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x11, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x68, 0x6f, 0x72, - 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x10, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x55, - 0x75, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x5f, 0x73, - 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x10, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x55, 0x75, 0x69, - 0x64, 0x22, 0x44, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, - 0x50, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, - 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6b, 0x75, - 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, 0x6f, 0x72, - 0x74, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x32, 0xb6, 0x09, 0x0a, 0x1a, 0x4b, 0x75, 0x72, 0x74, - 0x6f, 0x73, 0x69, 0x73, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x0b, 0x49, 0x73, 0x41, 0x76, 0x61, 0x69, - 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x79, 0x0a, 0x16, 0x47, 0x65, - 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x41, 0x72, 0x67, 0x73, - 0x1a, 0x2e, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x6a, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x12, 0x28, 0x2e, 0x6b, 0x75, 0x72, + 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x60, 0x0a, 0x11, 0x55, + 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 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, 0x28, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x5e, 0x0a, + 0x0f, 0x4c, 0x6f, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 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, 0x28, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0xb3, 0x01, + 0x0a, 0x04, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x6f, 0x72, + 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x68, + 0x6f, 0x72, 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x68, 0x6f, 0x72, + 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, + 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x10, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x55, + 0x75, 0x69, 0x64, 0x22, 0x44, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, + 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x28, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, + 0x6f, 0x72, 0x74, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x32, 0x90, 0x0c, 0x0a, 0x1a, 0x4b, 0x75, + 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x42, 0x61, 0x63, 0x6b, 0x65, + 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x0b, 0x49, 0x73, 0x41, 0x76, + 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x79, 0x0a, 0x16, + 0x47, 0x65, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, + 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x41, 0x72, + 0x67, 0x73, 0x1a, 0x2e, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x6a, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4f, 0x72, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x12, 0x28, 0x2e, 0x6b, + 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, + 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, + 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x70, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2a, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, - 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x70, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2a, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, - 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x7c, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x2c, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, + 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7c, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x2c, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x41, 0x72, 0x67, 0x73, 0x1a, + 0x30, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x30, 0x2e, - 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, - 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x68, 0x0a, 0x1b, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x44, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x12, 0x2f, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x41, 0x72, 0x67, - 0x73, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x19, 0x43, - 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, - 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, - 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x68, 0x0a, 0x1b, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x44, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x12, 0x2f, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x41, + 0x72, 0x67, 0x73, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x64, 0x0a, + 0x19, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x6b, 0x75, 0x72, + 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, - 0x00, 0x12, 0x4c, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x21, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x41, 0x72, 0x67, 0x73, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, - 0x64, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x6b, 0x75, 0x72, 0x74, - 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x50, 0x6f, 0x72, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x22, 0x03, 0x90, 0x02, 0x01, 0x12, 0x49, 0x0a, 0x0a, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x50, - 0x6f, 0x72, 0x74, 0x12, 0x21, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, - 0x12, 0x45, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1f, 0x2e, 0x6b, - 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4c, 0x6f, - 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x55, 0x6e, - 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x27, 0x2e, 0x6b, 0x75, - 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, - 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, - 0x64, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x42, 0x5d, 0x5a, 0x5b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, - 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x2d, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x6b, 0x75, 0x72, - 0x74, 0x6f, 0x73, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, - 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x72, - 0x70, 0x63, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x00, 0x12, 0x4e, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x24, 0x2e, 0x6b, 0x75, 0x72, 0x74, + 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x61, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x12, 0x25, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6b, 0x75, 0x72, + 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x12, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x27, 0x2e, 0x6b, 0x75, 0x72, + 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x4c, 0x0a, + 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, + 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, + 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x16, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, + 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, + 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x03, 0x90, 0x02, + 0x01, 0x12, 0x49, 0x0a, 0x0a, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x12, + 0x21, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x08, + 0x4c, 0x6f, 0x63, 0x6b, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1f, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, + 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4c, 0x6f, 0x63, 0x6b, 0x50, 0x6f, + 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, + 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x27, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, + 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x6c, 0x6f, + 0x63, 0x6b, 0x65, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x28, 0x2e, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x50, 0x6f, 0x72, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x5d, 0x5a, 0x5b, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x72, 0x74, 0x6f, + 0x73, 0x69, 0x73, 0x2d, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, + 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x6c, 0x61, + 0x6e, 0x67, 0x2f, 0x6b, 0x75, 0x72, 0x74, 0x6f, 0x73, 0x69, 0x73, 0x5f, 0x62, 0x61, 0x63, 0x6b, + 0x65, 0x6e, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x72, 0x70, 0x63, 0x5f, 0x61, + 0x70, 0x69, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -1834,7 +2723,7 @@ func file_kurtosis_backend_server_api_proto_rawDescGZIP() []byte { } var file_kurtosis_backend_server_api_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_kurtosis_backend_server_api_proto_msgTypes = make([]protoimpl.MessageInfo, 23) +var file_kurtosis_backend_server_api_proto_msgTypes = make([]protoimpl.MessageInfo, 35) var file_kurtosis_backend_server_api_proto_goTypes = []interface{}{ (PaymentSubscription_Status)(0), // 0: kurtosis_cloud.PaymentSubscription.Status (*GetOrCreateApiKeyRequest)(nil), // 1: kurtosis_cloud.GetOrCreateApiKeyRequest @@ -1854,13 +2743,25 @@ var file_kurtosis_backend_server_api_proto_goTypes = []interface{}{ (*AwsKey)(nil), // 15: kurtosis_cloud.AwsKey (*AwsEnvironment)(nil), // 16: kurtosis_cloud.AwsEnvironment (*UpdateAddressArgs)(nil), // 17: kurtosis_cloud.UpdateAddressArgs - (*GetUnlockedPortsRequest)(nil), // 18: kurtosis_cloud.GetUnlockedPortsRequest - (*CheckPortAuthorizationRequest)(nil), // 19: kurtosis_cloud.CheckPortAuthorizationRequest - (*UnlockPortRequest)(nil), // 20: kurtosis_cloud.UnlockPortRequest - (*LockPortRequest)(nil), // 21: kurtosis_cloud.LockPortRequest - (*Port)(nil), // 22: kurtosis_cloud.Port - (*GetUnlockedPortsResponse)(nil), // 23: kurtosis_cloud.GetUnlockedPortsResponse - (*emptypb.Empty)(nil), // 24: google.protobuf.Empty + (*DeleteInstanceRequest)(nil), // 18: kurtosis_cloud.DeleteInstanceRequest + (*DeleteInstanceResponse)(nil), // 19: kurtosis_cloud.DeleteInstanceResponse + (*GetInstancesResponse)(nil), // 20: kurtosis_cloud.GetInstancesResponse + (*ChangeUserActiveRequest)(nil), // 21: kurtosis_cloud.ChangeUserActiveRequest + (*GetUserRequest)(nil), // 22: kurtosis_cloud.GetUserRequest + (*GetUserResponse)(nil), // 23: kurtosis_cloud.GetUserResponse + (*Auth0User)(nil), // 24: kurtosis_cloud.Auth0User + (*Ec2Connection)(nil), // 25: kurtosis_cloud.Ec2Connection + (*PaymentUser)(nil), // 26: kurtosis_cloud.PaymentUser + (*Instance)(nil), // 27: kurtosis_cloud.Instance + (*User)(nil), // 28: kurtosis_cloud.User + (*GetUnlockedPortsRequest)(nil), // 29: kurtosis_cloud.GetUnlockedPortsRequest + (*CheckPortAuthorizationRequest)(nil), // 30: kurtosis_cloud.CheckPortAuthorizationRequest + (*UnlockPortRequest)(nil), // 31: kurtosis_cloud.UnlockPortRequest + (*LockPortRequest)(nil), // 32: kurtosis_cloud.LockPortRequest + (*Port)(nil), // 33: kurtosis_cloud.Port + (*GetUnlockedPortsResponse)(nil), // 34: kurtosis_cloud.GetUnlockedPortsResponse + nil, // 35: kurtosis_cloud.GetInstancesResponse.InstancesEntry + (*emptypb.Empty)(nil), // 36: google.protobuf.Empty } var file_kurtosis_backend_server_api_proto_depIdxs = []int32{ 6, // 0: kurtosis_cloud.GetCloudInstanceConfigResponse.launch_result:type_name -> kurtosis_cloud.LaunchResult @@ -1871,39 +2772,53 @@ var file_kurtosis_backend_server_api_proto_depIdxs = []int32{ 9, // 5: kurtosis_cloud.GetOrCreatePaymentConfigResponse.payment_method:type_name -> kurtosis_cloud.PaymentMethod 10, // 6: kurtosis_cloud.GetOrCreatePaymentConfigResponse.product:type_name -> kurtosis_cloud.PaymentProduct 11, // 7: kurtosis_cloud.GetOrCreatePaymentConfigResponse.subscription:type_name -> kurtosis_cloud.PaymentSubscription - 22, // 8: kurtosis_cloud.CheckPortAuthorizationRequest.port:type_name -> kurtosis_cloud.Port - 22, // 9: kurtosis_cloud.UnlockPortRequest.port:type_name -> kurtosis_cloud.Port - 22, // 10: kurtosis_cloud.LockPortRequest.port:type_name -> kurtosis_cloud.Port - 22, // 11: kurtosis_cloud.GetUnlockedPortsResponse.port:type_name -> kurtosis_cloud.Port - 24, // 12: kurtosis_cloud.KurtosisCloudBackendServer.IsAvailable:input_type -> google.protobuf.Empty - 5, // 13: kurtosis_cloud.KurtosisCloudBackendServer.GetCloudInstanceConfig:input_type -> kurtosis_cloud.GetCloudInstanceConfigArgs - 1, // 14: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreateApiKey:input_type -> kurtosis_cloud.GetOrCreateApiKeyRequest - 3, // 15: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreateInstance:input_type -> kurtosis_cloud.GetOrCreateInstanceRequest - 8, // 16: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreatePaymentConfig:input_type -> kurtosis_cloud.GetOrCreatePaymentConfigArgs - 13, // 17: kurtosis_cloud.KurtosisCloudBackendServer.RefreshDefaultPaymentMethod:input_type -> kurtosis_cloud.RefreshDefaultPaymentMethodArgs - 14, // 18: kurtosis_cloud.KurtosisCloudBackendServer.CancelPaymentSubscription:input_type -> kurtosis_cloud.CancelPaymentSubscriptionArgs - 17, // 19: kurtosis_cloud.KurtosisCloudBackendServer.UpdateAddress:input_type -> kurtosis_cloud.UpdateAddressArgs - 19, // 20: kurtosis_cloud.KurtosisCloudBackendServer.CheckPortAuthorization:input_type -> kurtosis_cloud.CheckPortAuthorizationRequest - 20, // 21: kurtosis_cloud.KurtosisCloudBackendServer.UnlockPort:input_type -> kurtosis_cloud.UnlockPortRequest - 21, // 22: kurtosis_cloud.KurtosisCloudBackendServer.LockPort:input_type -> kurtosis_cloud.LockPortRequest - 18, // 23: kurtosis_cloud.KurtosisCloudBackendServer.GetUnlockedPorts:input_type -> kurtosis_cloud.GetUnlockedPortsRequest - 24, // 24: kurtosis_cloud.KurtosisCloudBackendServer.IsAvailable:output_type -> google.protobuf.Empty - 7, // 25: kurtosis_cloud.KurtosisCloudBackendServer.GetCloudInstanceConfig:output_type -> kurtosis_cloud.GetCloudInstanceConfigResponse - 2, // 26: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreateApiKey:output_type -> kurtosis_cloud.GetOrCreateApiKeyResponse - 4, // 27: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreateInstance:output_type -> kurtosis_cloud.GetOrCreateInstanceResponse - 12, // 28: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreatePaymentConfig:output_type -> kurtosis_cloud.GetOrCreatePaymentConfigResponse - 24, // 29: kurtosis_cloud.KurtosisCloudBackendServer.RefreshDefaultPaymentMethod:output_type -> google.protobuf.Empty - 24, // 30: kurtosis_cloud.KurtosisCloudBackendServer.CancelPaymentSubscription:output_type -> google.protobuf.Empty - 24, // 31: kurtosis_cloud.KurtosisCloudBackendServer.UpdateAddress:output_type -> google.protobuf.Empty - 24, // 32: kurtosis_cloud.KurtosisCloudBackendServer.CheckPortAuthorization:output_type -> google.protobuf.Empty - 24, // 33: kurtosis_cloud.KurtosisCloudBackendServer.UnlockPort:output_type -> google.protobuf.Empty - 24, // 34: kurtosis_cloud.KurtosisCloudBackendServer.LockPort:output_type -> google.protobuf.Empty - 23, // 35: kurtosis_cloud.KurtosisCloudBackendServer.GetUnlockedPorts:output_type -> kurtosis_cloud.GetUnlockedPortsResponse - 24, // [24:36] is the sub-list for method output_type - 12, // [12:24] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 35, // 8: kurtosis_cloud.GetInstancesResponse.instances:type_name -> kurtosis_cloud.GetInstancesResponse.InstancesEntry + 28, // 9: kurtosis_cloud.GetUserResponse.user:type_name -> kurtosis_cloud.User + 24, // 10: kurtosis_cloud.Instance.Auth0User:type_name -> kurtosis_cloud.Auth0User + 25, // 11: kurtosis_cloud.Instance.Ec2Connection:type_name -> kurtosis_cloud.Ec2Connection + 26, // 12: kurtosis_cloud.Instance.PaymentUser:type_name -> kurtosis_cloud.PaymentUser + 33, // 13: kurtosis_cloud.CheckPortAuthorizationRequest.port:type_name -> kurtosis_cloud.Port + 33, // 14: kurtosis_cloud.UnlockPortRequest.port:type_name -> kurtosis_cloud.Port + 33, // 15: kurtosis_cloud.LockPortRequest.port:type_name -> kurtosis_cloud.Port + 33, // 16: kurtosis_cloud.GetUnlockedPortsResponse.port:type_name -> kurtosis_cloud.Port + 27, // 17: kurtosis_cloud.GetInstancesResponse.InstancesEntry.value:type_name -> kurtosis_cloud.Instance + 36, // 18: kurtosis_cloud.KurtosisCloudBackendServer.IsAvailable:input_type -> google.protobuf.Empty + 5, // 19: kurtosis_cloud.KurtosisCloudBackendServer.GetCloudInstanceConfig:input_type -> kurtosis_cloud.GetCloudInstanceConfigArgs + 1, // 20: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreateApiKey:input_type -> kurtosis_cloud.GetOrCreateApiKeyRequest + 3, // 21: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreateInstance:input_type -> kurtosis_cloud.GetOrCreateInstanceRequest + 8, // 22: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreatePaymentConfig:input_type -> kurtosis_cloud.GetOrCreatePaymentConfigArgs + 13, // 23: kurtosis_cloud.KurtosisCloudBackendServer.RefreshDefaultPaymentMethod:input_type -> kurtosis_cloud.RefreshDefaultPaymentMethodArgs + 14, // 24: kurtosis_cloud.KurtosisCloudBackendServer.CancelPaymentSubscription:input_type -> kurtosis_cloud.CancelPaymentSubscriptionArgs + 17, // 25: kurtosis_cloud.KurtosisCloudBackendServer.UpdateAddress:input_type -> kurtosis_cloud.UpdateAddressArgs + 36, // 26: kurtosis_cloud.KurtosisCloudBackendServer.GetInstances:input_type -> google.protobuf.Empty + 18, // 27: kurtosis_cloud.KurtosisCloudBackendServer.DeleteInstance:input_type -> kurtosis_cloud.DeleteInstanceRequest + 21, // 28: kurtosis_cloud.KurtosisCloudBackendServer.ChangeActiveStatus:input_type -> kurtosis_cloud.ChangeUserActiveRequest + 22, // 29: kurtosis_cloud.KurtosisCloudBackendServer.GetUser:input_type -> kurtosis_cloud.GetUserRequest + 30, // 30: kurtosis_cloud.KurtosisCloudBackendServer.CheckPortAuthorization:input_type -> kurtosis_cloud.CheckPortAuthorizationRequest + 31, // 31: kurtosis_cloud.KurtosisCloudBackendServer.UnlockPort:input_type -> kurtosis_cloud.UnlockPortRequest + 32, // 32: kurtosis_cloud.KurtosisCloudBackendServer.LockPort:input_type -> kurtosis_cloud.LockPortRequest + 29, // 33: kurtosis_cloud.KurtosisCloudBackendServer.GetUnlockedPorts:input_type -> kurtosis_cloud.GetUnlockedPortsRequest + 36, // 34: kurtosis_cloud.KurtosisCloudBackendServer.IsAvailable:output_type -> google.protobuf.Empty + 7, // 35: kurtosis_cloud.KurtosisCloudBackendServer.GetCloudInstanceConfig:output_type -> kurtosis_cloud.GetCloudInstanceConfigResponse + 2, // 36: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreateApiKey:output_type -> kurtosis_cloud.GetOrCreateApiKeyResponse + 4, // 37: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreateInstance:output_type -> kurtosis_cloud.GetOrCreateInstanceResponse + 12, // 38: kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreatePaymentConfig:output_type -> kurtosis_cloud.GetOrCreatePaymentConfigResponse + 36, // 39: kurtosis_cloud.KurtosisCloudBackendServer.RefreshDefaultPaymentMethod:output_type -> google.protobuf.Empty + 36, // 40: kurtosis_cloud.KurtosisCloudBackendServer.CancelPaymentSubscription:output_type -> google.protobuf.Empty + 36, // 41: kurtosis_cloud.KurtosisCloudBackendServer.UpdateAddress:output_type -> google.protobuf.Empty + 20, // 42: kurtosis_cloud.KurtosisCloudBackendServer.GetInstances:output_type -> kurtosis_cloud.GetInstancesResponse + 19, // 43: kurtosis_cloud.KurtosisCloudBackendServer.DeleteInstance:output_type -> kurtosis_cloud.DeleteInstanceResponse + 36, // 44: kurtosis_cloud.KurtosisCloudBackendServer.ChangeActiveStatus:output_type -> google.protobuf.Empty + 23, // 45: kurtosis_cloud.KurtosisCloudBackendServer.GetUser:output_type -> kurtosis_cloud.GetUserResponse + 36, // 46: kurtosis_cloud.KurtosisCloudBackendServer.CheckPortAuthorization:output_type -> google.protobuf.Empty + 36, // 47: kurtosis_cloud.KurtosisCloudBackendServer.UnlockPort:output_type -> google.protobuf.Empty + 36, // 48: kurtosis_cloud.KurtosisCloudBackendServer.LockPort:output_type -> google.protobuf.Empty + 34, // 49: kurtosis_cloud.KurtosisCloudBackendServer.GetUnlockedPorts:output_type -> kurtosis_cloud.GetUnlockedPortsResponse + 34, // [34:50] is the sub-list for method output_type + 18, // [18:34] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_kurtosis_backend_server_api_proto_init() } @@ -2117,7 +3032,7 @@ func file_kurtosis_backend_server_api_proto_init() { } } file_kurtosis_backend_server_api_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUnlockedPortsRequest); i { + switch v := v.(*DeleteInstanceRequest); i { case 0: return &v.state case 1: @@ -2129,7 +3044,7 @@ func file_kurtosis_backend_server_api_proto_init() { } } file_kurtosis_backend_server_api_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckPortAuthorizationRequest); i { + switch v := v.(*DeleteInstanceResponse); i { case 0: return &v.state case 1: @@ -2141,7 +3056,7 @@ func file_kurtosis_backend_server_api_proto_init() { } } file_kurtosis_backend_server_api_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnlockPortRequest); i { + switch v := v.(*GetInstancesResponse); i { case 0: return &v.state case 1: @@ -2153,7 +3068,7 @@ func file_kurtosis_backend_server_api_proto_init() { } } file_kurtosis_backend_server_api_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LockPortRequest); i { + switch v := v.(*ChangeUserActiveRequest); i { case 0: return &v.state case 1: @@ -2165,7 +3080,7 @@ func file_kurtosis_backend_server_api_proto_init() { } } file_kurtosis_backend_server_api_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Port); i { + switch v := v.(*GetUserRequest); i { case 0: return &v.state case 1: @@ -2177,6 +3092,138 @@ func file_kurtosis_backend_server_api_proto_init() { } } file_kurtosis_backend_server_api_proto_msgTypes[22].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_kurtosis_backend_server_api_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Auth0User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kurtosis_backend_server_api_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Ec2Connection); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kurtosis_backend_server_api_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PaymentUser); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kurtosis_backend_server_api_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Instance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kurtosis_backend_server_api_proto_msgTypes[27].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_kurtosis_backend_server_api_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetUnlockedPortsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kurtosis_backend_server_api_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckPortAuthorizationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kurtosis_backend_server_api_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnlockPortRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kurtosis_backend_server_api_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LockPortRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kurtosis_backend_server_api_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Port); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_kurtosis_backend_server_api_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetUnlockedPortsResponse); i { case 0: return &v.state @@ -2193,13 +3240,15 @@ func file_kurtosis_backend_server_api_proto_init() { file_kurtosis_backend_server_api_proto_msgTypes[6].OneofWrappers = []interface{}{} file_kurtosis_backend_server_api_proto_msgTypes[11].OneofWrappers = []interface{}{} file_kurtosis_backend_server_api_proto_msgTypes[16].OneofWrappers = []interface{}{} + file_kurtosis_backend_server_api_proto_msgTypes[23].OneofWrappers = []interface{}{} + file_kurtosis_backend_server_api_proto_msgTypes[26].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_kurtosis_backend_server_api_proto_rawDesc, NumEnums: 1, - NumMessages: 23, + NumMessages: 35, NumExtensions: 0, NumServices: 1, }, diff --git a/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_api_grpc.pb.go b/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_api_grpc.pb.go index 182349dbe8..1a12522537 100644 --- a/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_api_grpc.pb.go +++ b/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_api_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc v4.23.4 // source: kurtosis_backend_server_api.proto package kurtosis_backend_server_rpc_api_bindings @@ -28,6 +28,10 @@ const ( KurtosisCloudBackendServer_RefreshDefaultPaymentMethod_FullMethodName = "/kurtosis_cloud.KurtosisCloudBackendServer/RefreshDefaultPaymentMethod" KurtosisCloudBackendServer_CancelPaymentSubscription_FullMethodName = "/kurtosis_cloud.KurtosisCloudBackendServer/CancelPaymentSubscription" KurtosisCloudBackendServer_UpdateAddress_FullMethodName = "/kurtosis_cloud.KurtosisCloudBackendServer/UpdateAddress" + KurtosisCloudBackendServer_GetInstances_FullMethodName = "/kurtosis_cloud.KurtosisCloudBackendServer/GetInstances" + KurtosisCloudBackendServer_DeleteInstance_FullMethodName = "/kurtosis_cloud.KurtosisCloudBackendServer/DeleteInstance" + KurtosisCloudBackendServer_ChangeActiveStatus_FullMethodName = "/kurtosis_cloud.KurtosisCloudBackendServer/ChangeActiveStatus" + KurtosisCloudBackendServer_GetUser_FullMethodName = "/kurtosis_cloud.KurtosisCloudBackendServer/GetUser" KurtosisCloudBackendServer_CheckPortAuthorization_FullMethodName = "/kurtosis_cloud.KurtosisCloudBackendServer/CheckPortAuthorization" KurtosisCloudBackendServer_UnlockPort_FullMethodName = "/kurtosis_cloud.KurtosisCloudBackendServer/UnlockPort" KurtosisCloudBackendServer_LockPort_FullMethodName = "/kurtosis_cloud.KurtosisCloudBackendServer/LockPort" @@ -46,6 +50,10 @@ type KurtosisCloudBackendServerClient interface { RefreshDefaultPaymentMethod(ctx context.Context, in *RefreshDefaultPaymentMethodArgs, opts ...grpc.CallOption) (*emptypb.Empty, error) CancelPaymentSubscription(ctx context.Context, in *CancelPaymentSubscriptionArgs, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateAddress(ctx context.Context, in *UpdateAddressArgs, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetInstances(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetInstancesResponse, error) + DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*DeleteInstanceResponse, error) + ChangeActiveStatus(ctx context.Context, in *ChangeUserActiveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) CheckPortAuthorization(ctx context.Context, in *CheckPortAuthorizationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UnlockPort(ctx context.Context, in *UnlockPortRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) LockPort(ctx context.Context, in *LockPortRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) @@ -132,6 +140,42 @@ func (c *kurtosisCloudBackendServerClient) UpdateAddress(ctx context.Context, in return out, nil } +func (c *kurtosisCloudBackendServerClient) GetInstances(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetInstancesResponse, error) { + out := new(GetInstancesResponse) + err := c.cc.Invoke(ctx, KurtosisCloudBackendServer_GetInstances_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *kurtosisCloudBackendServerClient) DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*DeleteInstanceResponse, error) { + out := new(DeleteInstanceResponse) + err := c.cc.Invoke(ctx, KurtosisCloudBackendServer_DeleteInstance_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *kurtosisCloudBackendServerClient) ChangeActiveStatus(ctx context.Context, in *ChangeUserActiveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, KurtosisCloudBackendServer_ChangeActiveStatus_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *kurtosisCloudBackendServerClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) { + out := new(GetUserResponse) + err := c.cc.Invoke(ctx, KurtosisCloudBackendServer_GetUser_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *kurtosisCloudBackendServerClient) CheckPortAuthorization(ctx context.Context, in *CheckPortAuthorizationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, KurtosisCloudBackendServer_CheckPortAuthorization_FullMethodName, in, out, opts...) @@ -180,6 +224,10 @@ type KurtosisCloudBackendServerServer interface { RefreshDefaultPaymentMethod(context.Context, *RefreshDefaultPaymentMethodArgs) (*emptypb.Empty, error) CancelPaymentSubscription(context.Context, *CancelPaymentSubscriptionArgs) (*emptypb.Empty, error) UpdateAddress(context.Context, *UpdateAddressArgs) (*emptypb.Empty, error) + GetInstances(context.Context, *emptypb.Empty) (*GetInstancesResponse, error) + DeleteInstance(context.Context, *DeleteInstanceRequest) (*DeleteInstanceResponse, error) + ChangeActiveStatus(context.Context, *ChangeUserActiveRequest) (*emptypb.Empty, error) + GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) CheckPortAuthorization(context.Context, *CheckPortAuthorizationRequest) (*emptypb.Empty, error) UnlockPort(context.Context, *UnlockPortRequest) (*emptypb.Empty, error) LockPort(context.Context, *LockPortRequest) (*emptypb.Empty, error) @@ -214,6 +262,18 @@ func (UnimplementedKurtosisCloudBackendServerServer) CancelPaymentSubscription(c func (UnimplementedKurtosisCloudBackendServerServer) UpdateAddress(context.Context, *UpdateAddressArgs) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateAddress not implemented") } +func (UnimplementedKurtosisCloudBackendServerServer) GetInstances(context.Context, *emptypb.Empty) (*GetInstancesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetInstances not implemented") +} +func (UnimplementedKurtosisCloudBackendServerServer) DeleteInstance(context.Context, *DeleteInstanceRequest) (*DeleteInstanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteInstance not implemented") +} +func (UnimplementedKurtosisCloudBackendServerServer) ChangeActiveStatus(context.Context, *ChangeUserActiveRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeActiveStatus not implemented") +} +func (UnimplementedKurtosisCloudBackendServerServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") +} func (UnimplementedKurtosisCloudBackendServerServer) CheckPortAuthorization(context.Context, *CheckPortAuthorizationRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckPortAuthorization not implemented") } @@ -382,6 +442,78 @@ func _KurtosisCloudBackendServer_UpdateAddress_Handler(srv interface{}, ctx cont return interceptor(ctx, in, info, handler) } +func _KurtosisCloudBackendServer_GetInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KurtosisCloudBackendServerServer).GetInstances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KurtosisCloudBackendServer_GetInstances_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KurtosisCloudBackendServerServer).GetInstances(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _KurtosisCloudBackendServer_DeleteInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KurtosisCloudBackendServerServer).DeleteInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KurtosisCloudBackendServer_DeleteInstance_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KurtosisCloudBackendServerServer).DeleteInstance(ctx, req.(*DeleteInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KurtosisCloudBackendServer_ChangeActiveStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeUserActiveRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KurtosisCloudBackendServerServer).ChangeActiveStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KurtosisCloudBackendServer_ChangeActiveStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KurtosisCloudBackendServerServer).ChangeActiveStatus(ctx, req.(*ChangeUserActiveRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KurtosisCloudBackendServer_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KurtosisCloudBackendServerServer).GetUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KurtosisCloudBackendServer_GetUser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KurtosisCloudBackendServerServer).GetUser(ctx, req.(*GetUserRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _KurtosisCloudBackendServer_CheckPortAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CheckPortAuthorizationRequest) if err := dec(in); err != nil { @@ -493,6 +625,22 @@ var KurtosisCloudBackendServer_ServiceDesc = grpc.ServiceDesc{ MethodName: "UpdateAddress", Handler: _KurtosisCloudBackendServer_UpdateAddress_Handler, }, + { + MethodName: "GetInstances", + Handler: _KurtosisCloudBackendServer_GetInstances_Handler, + }, + { + MethodName: "DeleteInstance", + Handler: _KurtosisCloudBackendServer_DeleteInstance_Handler, + }, + { + MethodName: "ChangeActiveStatus", + Handler: _KurtosisCloudBackendServer_ChangeActiveStatus_Handler, + }, + { + MethodName: "GetUser", + Handler: _KurtosisCloudBackendServer_GetUser_Handler, + }, { MethodName: "CheckPortAuthorization", Handler: _KurtosisCloudBackendServer_CheckPortAuthorization_Handler, diff --git a/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_rpc_api_bindingsconnect/kurtosis_backend_server_api.connect.go b/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_rpc_api_bindingsconnect/kurtosis_backend_server_api.connect.go index 37358fa899..966655e212 100644 --- a/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_rpc_api_bindingsconnect/kurtosis_backend_server_api.connect.go +++ b/cloud/api/golang/kurtosis_backend_server_rpc_api_bindings/kurtosis_backend_server_rpc_api_bindingsconnect/kurtosis_backend_server_api.connect.go @@ -59,6 +59,18 @@ const ( // KurtosisCloudBackendServerUpdateAddressProcedure is the fully-qualified name of the // KurtosisCloudBackendServer's UpdateAddress RPC. KurtosisCloudBackendServerUpdateAddressProcedure = "/kurtosis_cloud.KurtosisCloudBackendServer/UpdateAddress" + // KurtosisCloudBackendServerGetInstancesProcedure is the fully-qualified name of the + // KurtosisCloudBackendServer's GetInstances RPC. + KurtosisCloudBackendServerGetInstancesProcedure = "/kurtosis_cloud.KurtosisCloudBackendServer/GetInstances" + // KurtosisCloudBackendServerDeleteInstanceProcedure is the fully-qualified name of the + // KurtosisCloudBackendServer's DeleteInstance RPC. + KurtosisCloudBackendServerDeleteInstanceProcedure = "/kurtosis_cloud.KurtosisCloudBackendServer/DeleteInstance" + // KurtosisCloudBackendServerChangeActiveStatusProcedure is the fully-qualified name of the + // KurtosisCloudBackendServer's ChangeActiveStatus RPC. + KurtosisCloudBackendServerChangeActiveStatusProcedure = "/kurtosis_cloud.KurtosisCloudBackendServer/ChangeActiveStatus" + // KurtosisCloudBackendServerGetUserProcedure is the fully-qualified name of the + // KurtosisCloudBackendServer's GetUser RPC. + KurtosisCloudBackendServerGetUserProcedure = "/kurtosis_cloud.KurtosisCloudBackendServer/GetUser" // KurtosisCloudBackendServerCheckPortAuthorizationProcedure is the fully-qualified name of the // KurtosisCloudBackendServer's CheckPortAuthorization RPC. KurtosisCloudBackendServerCheckPortAuthorizationProcedure = "/kurtosis_cloud.KurtosisCloudBackendServer/CheckPortAuthorization" @@ -84,6 +96,10 @@ type KurtosisCloudBackendServerClient interface { RefreshDefaultPaymentMethod(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.RefreshDefaultPaymentMethodArgs]) (*connect.Response[emptypb.Empty], error) CancelPaymentSubscription(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.CancelPaymentSubscriptionArgs]) (*connect.Response[emptypb.Empty], error) UpdateAddress(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.UpdateAddressArgs]) (*connect.Response[emptypb.Empty], error) + GetInstances(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.GetInstancesResponse], error) + DeleteInstance(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.DeleteInstanceRequest]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.DeleteInstanceResponse], error) + ChangeActiveStatus(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.ChangeUserActiveRequest]) (*connect.Response[emptypb.Empty], error) + GetUser(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.GetUserRequest]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.GetUserResponse], error) CheckPortAuthorization(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.CheckPortAuthorizationRequest]) (*connect.Response[emptypb.Empty], error) UnlockPort(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.UnlockPortRequest]) (*connect.Response[emptypb.Empty], error) LockPort(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.LockPortRequest]) (*connect.Response[emptypb.Empty], error) @@ -142,6 +158,26 @@ func NewKurtosisCloudBackendServerClient(httpClient connect.HTTPClient, baseURL baseURL+KurtosisCloudBackendServerUpdateAddressProcedure, opts..., ), + getInstances: connect.NewClient[emptypb.Empty, kurtosis_backend_server_rpc_api_bindings.GetInstancesResponse]( + httpClient, + baseURL+KurtosisCloudBackendServerGetInstancesProcedure, + opts..., + ), + deleteInstance: connect.NewClient[kurtosis_backend_server_rpc_api_bindings.DeleteInstanceRequest, kurtosis_backend_server_rpc_api_bindings.DeleteInstanceResponse]( + httpClient, + baseURL+KurtosisCloudBackendServerDeleteInstanceProcedure, + opts..., + ), + changeActiveStatus: connect.NewClient[kurtosis_backend_server_rpc_api_bindings.ChangeUserActiveRequest, emptypb.Empty]( + httpClient, + baseURL+KurtosisCloudBackendServerChangeActiveStatusProcedure, + opts..., + ), + getUser: connect.NewClient[kurtosis_backend_server_rpc_api_bindings.GetUserRequest, kurtosis_backend_server_rpc_api_bindings.GetUserResponse]( + httpClient, + baseURL+KurtosisCloudBackendServerGetUserProcedure, + opts..., + ), checkPortAuthorization: connect.NewClient[kurtosis_backend_server_rpc_api_bindings.CheckPortAuthorizationRequest, emptypb.Empty]( httpClient, baseURL+KurtosisCloudBackendServerCheckPortAuthorizationProcedure, @@ -176,6 +212,10 @@ type kurtosisCloudBackendServerClient struct { refreshDefaultPaymentMethod *connect.Client[kurtosis_backend_server_rpc_api_bindings.RefreshDefaultPaymentMethodArgs, emptypb.Empty] cancelPaymentSubscription *connect.Client[kurtosis_backend_server_rpc_api_bindings.CancelPaymentSubscriptionArgs, emptypb.Empty] updateAddress *connect.Client[kurtosis_backend_server_rpc_api_bindings.UpdateAddressArgs, emptypb.Empty] + getInstances *connect.Client[emptypb.Empty, kurtosis_backend_server_rpc_api_bindings.GetInstancesResponse] + deleteInstance *connect.Client[kurtosis_backend_server_rpc_api_bindings.DeleteInstanceRequest, kurtosis_backend_server_rpc_api_bindings.DeleteInstanceResponse] + changeActiveStatus *connect.Client[kurtosis_backend_server_rpc_api_bindings.ChangeUserActiveRequest, emptypb.Empty] + getUser *connect.Client[kurtosis_backend_server_rpc_api_bindings.GetUserRequest, kurtosis_backend_server_rpc_api_bindings.GetUserResponse] checkPortAuthorization *connect.Client[kurtosis_backend_server_rpc_api_bindings.CheckPortAuthorizationRequest, emptypb.Empty] unlockPort *connect.Client[kurtosis_backend_server_rpc_api_bindings.UnlockPortRequest, emptypb.Empty] lockPort *connect.Client[kurtosis_backend_server_rpc_api_bindings.LockPortRequest, emptypb.Empty] @@ -225,6 +265,26 @@ func (c *kurtosisCloudBackendServerClient) UpdateAddress(ctx context.Context, re return c.updateAddress.CallUnary(ctx, req) } +// GetInstances calls kurtosis_cloud.KurtosisCloudBackendServer.GetInstances. +func (c *kurtosisCloudBackendServerClient) GetInstances(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.GetInstancesResponse], error) { + return c.getInstances.CallUnary(ctx, req) +} + +// DeleteInstance calls kurtosis_cloud.KurtosisCloudBackendServer.DeleteInstance. +func (c *kurtosisCloudBackendServerClient) DeleteInstance(ctx context.Context, req *connect.Request[kurtosis_backend_server_rpc_api_bindings.DeleteInstanceRequest]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.DeleteInstanceResponse], error) { + return c.deleteInstance.CallUnary(ctx, req) +} + +// ChangeActiveStatus calls kurtosis_cloud.KurtosisCloudBackendServer.ChangeActiveStatus. +func (c *kurtosisCloudBackendServerClient) ChangeActiveStatus(ctx context.Context, req *connect.Request[kurtosis_backend_server_rpc_api_bindings.ChangeUserActiveRequest]) (*connect.Response[emptypb.Empty], error) { + return c.changeActiveStatus.CallUnary(ctx, req) +} + +// GetUser calls kurtosis_cloud.KurtosisCloudBackendServer.GetUser. +func (c *kurtosisCloudBackendServerClient) GetUser(ctx context.Context, req *connect.Request[kurtosis_backend_server_rpc_api_bindings.GetUserRequest]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.GetUserResponse], error) { + return c.getUser.CallUnary(ctx, req) +} + // CheckPortAuthorization calls kurtosis_cloud.KurtosisCloudBackendServer.CheckPortAuthorization. func (c *kurtosisCloudBackendServerClient) CheckPortAuthorization(ctx context.Context, req *connect.Request[kurtosis_backend_server_rpc_api_bindings.CheckPortAuthorizationRequest]) (*connect.Response[emptypb.Empty], error) { return c.checkPortAuthorization.CallUnary(ctx, req) @@ -256,6 +316,10 @@ type KurtosisCloudBackendServerHandler interface { RefreshDefaultPaymentMethod(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.RefreshDefaultPaymentMethodArgs]) (*connect.Response[emptypb.Empty], error) CancelPaymentSubscription(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.CancelPaymentSubscriptionArgs]) (*connect.Response[emptypb.Empty], error) UpdateAddress(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.UpdateAddressArgs]) (*connect.Response[emptypb.Empty], error) + GetInstances(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.GetInstancesResponse], error) + DeleteInstance(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.DeleteInstanceRequest]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.DeleteInstanceResponse], error) + ChangeActiveStatus(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.ChangeUserActiveRequest]) (*connect.Response[emptypb.Empty], error) + GetUser(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.GetUserRequest]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.GetUserResponse], error) CheckPortAuthorization(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.CheckPortAuthorizationRequest]) (*connect.Response[emptypb.Empty], error) UnlockPort(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.UnlockPortRequest]) (*connect.Response[emptypb.Empty], error) LockPort(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.LockPortRequest]) (*connect.Response[emptypb.Empty], error) @@ -310,6 +374,26 @@ func NewKurtosisCloudBackendServerHandler(svc KurtosisCloudBackendServerHandler, svc.UpdateAddress, opts..., ) + kurtosisCloudBackendServerGetInstancesHandler := connect.NewUnaryHandler( + KurtosisCloudBackendServerGetInstancesProcedure, + svc.GetInstances, + opts..., + ) + kurtosisCloudBackendServerDeleteInstanceHandler := connect.NewUnaryHandler( + KurtosisCloudBackendServerDeleteInstanceProcedure, + svc.DeleteInstance, + opts..., + ) + kurtosisCloudBackendServerChangeActiveStatusHandler := connect.NewUnaryHandler( + KurtosisCloudBackendServerChangeActiveStatusProcedure, + svc.ChangeActiveStatus, + opts..., + ) + kurtosisCloudBackendServerGetUserHandler := connect.NewUnaryHandler( + KurtosisCloudBackendServerGetUserProcedure, + svc.GetUser, + opts..., + ) kurtosisCloudBackendServerCheckPortAuthorizationHandler := connect.NewUnaryHandler( KurtosisCloudBackendServerCheckPortAuthorizationProcedure, svc.CheckPortAuthorization, @@ -349,6 +433,14 @@ func NewKurtosisCloudBackendServerHandler(svc KurtosisCloudBackendServerHandler, kurtosisCloudBackendServerCancelPaymentSubscriptionHandler.ServeHTTP(w, r) case KurtosisCloudBackendServerUpdateAddressProcedure: kurtosisCloudBackendServerUpdateAddressHandler.ServeHTTP(w, r) + case KurtosisCloudBackendServerGetInstancesProcedure: + kurtosisCloudBackendServerGetInstancesHandler.ServeHTTP(w, r) + case KurtosisCloudBackendServerDeleteInstanceProcedure: + kurtosisCloudBackendServerDeleteInstanceHandler.ServeHTTP(w, r) + case KurtosisCloudBackendServerChangeActiveStatusProcedure: + kurtosisCloudBackendServerChangeActiveStatusHandler.ServeHTTP(w, r) + case KurtosisCloudBackendServerGetUserProcedure: + kurtosisCloudBackendServerGetUserHandler.ServeHTTP(w, r) case KurtosisCloudBackendServerCheckPortAuthorizationProcedure: kurtosisCloudBackendServerCheckPortAuthorizationHandler.ServeHTTP(w, r) case KurtosisCloudBackendServerUnlockPortProcedure: @@ -398,6 +490,22 @@ func (UnimplementedKurtosisCloudBackendServerHandler) UpdateAddress(context.Cont return nil, connect.NewError(connect.CodeUnimplemented, errors.New("kurtosis_cloud.KurtosisCloudBackendServer.UpdateAddress is not implemented")) } +func (UnimplementedKurtosisCloudBackendServerHandler) GetInstances(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.GetInstancesResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("kurtosis_cloud.KurtosisCloudBackendServer.GetInstances is not implemented")) +} + +func (UnimplementedKurtosisCloudBackendServerHandler) DeleteInstance(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.DeleteInstanceRequest]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.DeleteInstanceResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("kurtosis_cloud.KurtosisCloudBackendServer.DeleteInstance is not implemented")) +} + +func (UnimplementedKurtosisCloudBackendServerHandler) ChangeActiveStatus(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.ChangeUserActiveRequest]) (*connect.Response[emptypb.Empty], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("kurtosis_cloud.KurtosisCloudBackendServer.ChangeActiveStatus is not implemented")) +} + +func (UnimplementedKurtosisCloudBackendServerHandler) GetUser(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.GetUserRequest]) (*connect.Response[kurtosis_backend_server_rpc_api_bindings.GetUserResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("kurtosis_cloud.KurtosisCloudBackendServer.GetUser is not implemented")) +} + func (UnimplementedKurtosisCloudBackendServerHandler) CheckPortAuthorization(context.Context, *connect.Request[kurtosis_backend_server_rpc_api_bindings.CheckPortAuthorizationRequest]) (*connect.Response[emptypb.Empty], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("kurtosis_cloud.KurtosisCloudBackendServer.CheckPortAuthorization is not implemented")) } diff --git a/cloud/api/protobuf/kurtosis_backend_server_api.proto b/cloud/api/protobuf/kurtosis_backend_server_api.proto index b9ddc1ac23..788d1f30a6 100644 --- a/cloud/api/protobuf/kurtosis_backend_server_api.proto +++ b/cloud/api/protobuf/kurtosis_backend_server_api.proto @@ -19,6 +19,10 @@ service KurtosisCloudBackendServer { rpc RefreshDefaultPaymentMethod (RefreshDefaultPaymentMethodArgs) returns (google.protobuf.Empty) {}; rpc CancelPaymentSubscription (CancelPaymentSubscriptionArgs) returns (google.protobuf.Empty) {}; rpc UpdateAddress(UpdateAddressArgs) returns (google.protobuf.Empty) {}; + rpc GetInstances(google.protobuf.Empty) returns (GetInstancesResponse) {}; + rpc DeleteInstance(DeleteInstanceRequest) returns (DeleteInstanceResponse) {}; + rpc ChangeActiveStatus(ChangeUserActiveRequest) returns (google.protobuf.Empty) {}; + rpc GetUser(GetUserRequest) returns (GetUserResponse) {}; rpc CheckPortAuthorization(CheckPortAuthorizationRequest) returns(google.protobuf.Empty){ option idempotency_level = NO_SIDE_EFFECTS; }; @@ -146,6 +150,78 @@ message UpdateAddressArgs { string country = 8; } +message DeleteInstanceRequest { + string instance_id = 1; + string ec2_id = 2; +} + +message DeleteInstanceResponse { + string status = 1; +} + +message GetInstancesResponse { + map instances = 1; +} + +message ChangeUserActiveRequest { + string user_id = 1; + bool active = 2; +} + +message GetUserRequest { + string user_id = 1; +} + +message GetUserResponse { + User user = 1; +} + +message Auth0User { + string Auth0UserId = 1; + optional string Auth0Name = 2; + optional string Auth0GivenName = 3; + optional string Auth0FamilyName = 4; + optional string Auth0Email = 5; + optional bool Auth0EmailVerified = 6; + optional string Auth0Provider = 7; + optional string Auth0Created = 8; + optional string Auth0LastLogin = 9; + optional string Auth0LastIp = 10; + optional int64 Auth0LoginsCount = 11; + optional string Auth0Picture = 12; + optional string Auth0Location = 13; +} + +message Ec2Connection { + string InstanceName = 1; + string PublicDns = 2; + string IpAddress = 3; + string InstanceId = 4; +} + +message PaymentUser { + string UserId = 1; + string Subscription = 2; +} + +message Instance { + string Uuid = 1; + string UserId = 2; + optional Auth0User Auth0User = 3; + optional Ec2Connection Ec2Connection = 4; + string Status = 5; + string Updated = 6; + string Created = 7; + optional PaymentUser PaymentUser = 8; +} + +message User { + string UserID = 1; + string ExternalUserID = 2; + bool Active = 3; + string Updated = 4; +} + message GetUnlockedPortsRequest { string access_token = 1; string instance_short_uuid=2; diff --git a/cloud/api/typescript/src/kurtosis_backend_server_api_connect.ts b/cloud/api/typescript/src/kurtosis_backend_server_api_connect.ts index 7629463258..3c32df8533 100644 --- a/cloud/api/typescript/src/kurtosis_backend_server_api_connect.ts +++ b/cloud/api/typescript/src/kurtosis_backend_server_api_connect.ts @@ -1,10 +1,10 @@ -// @generated by protoc-gen-connect-es v0.13.2 with parameter "target=ts" +// @generated by protoc-gen-connect-es v0.13.0 with parameter "target=ts" // @generated from file kurtosis_backend_server_api.proto (package kurtosis_cloud, syntax proto3) /* eslint-disable */ // @ts-nocheck import { Empty, MethodIdempotency, MethodKind } from "@bufbuild/protobuf"; -import { CancelPaymentSubscriptionArgs, CheckPortAuthorizationRequest, GetCloudInstanceConfigArgs, GetCloudInstanceConfigResponse, GetOrCreateApiKeyRequest, GetOrCreateApiKeyResponse, GetOrCreateInstanceRequest, GetOrCreateInstanceResponse, GetOrCreatePaymentConfigArgs, GetOrCreatePaymentConfigResponse, GetUnlockedPortsRequest, GetUnlockedPortsResponse, LockPortRequest, RefreshDefaultPaymentMethodArgs, UnlockPortRequest, UpdateAddressArgs } from "./kurtosis_backend_server_api_pb.js"; +import { CancelPaymentSubscriptionArgs, ChangeUserActiveRequest, CheckPortAuthorizationRequest, DeleteInstanceRequest, DeleteInstanceResponse, GetCloudInstanceConfigArgs, GetCloudInstanceConfigResponse, GetInstancesResponse, GetOrCreateApiKeyRequest, GetOrCreateApiKeyResponse, GetOrCreateInstanceRequest, GetOrCreateInstanceResponse, GetOrCreatePaymentConfigArgs, GetOrCreatePaymentConfigResponse, GetUnlockedPortsRequest, GetUnlockedPortsResponse, GetUserRequest, GetUserResponse, LockPortRequest, RefreshDefaultPaymentMethodArgs, UnlockPortRequest, UpdateAddressArgs } from "./kurtosis_backend_server_api_pb.js"; /** * @generated from service kurtosis_cloud.KurtosisCloudBackendServer @@ -86,6 +86,42 @@ export const KurtosisCloudBackendServer = { O: Empty, kind: MethodKind.Unary, }, + /** + * @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.GetInstances + */ + getInstances: { + name: "GetInstances", + I: Empty, + O: GetInstancesResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.DeleteInstance + */ + deleteInstance: { + name: "DeleteInstance", + I: DeleteInstanceRequest, + O: DeleteInstanceResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.ChangeActiveStatus + */ + changeActiveStatus: { + name: "ChangeActiveStatus", + I: ChangeUserActiveRequest, + O: Empty, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.GetUser + */ + getUser: { + name: "GetUser", + I: GetUserRequest, + O: GetUserResponse, + kind: MethodKind.Unary, + }, /** * @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.CheckPortAuthorization */ diff --git a/cloud/api/typescript/src/kurtosis_backend_server_api_pb.ts b/cloud/api/typescript/src/kurtosis_backend_server_api_pb.ts index 4a75cfecbd..4afb69f73a 100644 --- a/cloud/api/typescript/src/kurtosis_backend_server_api_pb.ts +++ b/cloud/api/typescript/src/kurtosis_backend_server_api_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.5.1 with parameter "target=ts" +// @generated by protoc-gen-es v1.8.0 with parameter "target=ts" // @generated from file kurtosis_backend_server_api.proto (package kurtosis_cloud, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -900,6 +900,581 @@ export class UpdateAddressArgs extends Message { } } +/** + * @generated from message kurtosis_cloud.DeleteInstanceRequest + */ +export class DeleteInstanceRequest extends Message { + /** + * @generated from field: string instance_id = 1; + */ + instanceId = ""; + + /** + * @generated from field: string ec2_id = 2; + */ + ec2Id = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.DeleteInstanceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "instance_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ec2_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteInstanceRequest { + return new DeleteInstanceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteInstanceRequest { + return new DeleteInstanceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DeleteInstanceRequest { + return new DeleteInstanceRequest().fromJsonString(jsonString, options); + } + + static equals(a: DeleteInstanceRequest | PlainMessage | undefined, b: DeleteInstanceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(DeleteInstanceRequest, a, b); + } +} + +/** + * @generated from message kurtosis_cloud.DeleteInstanceResponse + */ +export class DeleteInstanceResponse extends Message { + /** + * @generated from field: string status = 1; + */ + status = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.DeleteInstanceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteInstanceResponse { + return new DeleteInstanceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteInstanceResponse { + return new DeleteInstanceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DeleteInstanceResponse { + return new DeleteInstanceResponse().fromJsonString(jsonString, options); + } + + static equals(a: DeleteInstanceResponse | PlainMessage | undefined, b: DeleteInstanceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(DeleteInstanceResponse, a, b); + } +} + +/** + * @generated from message kurtosis_cloud.GetInstancesResponse + */ +export class GetInstancesResponse extends Message { + /** + * @generated from field: map instances = 1; + */ + instances: { [key: string]: Instance } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.GetInstancesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "instances", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Instance} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetInstancesResponse { + return new GetInstancesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetInstancesResponse { + return new GetInstancesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetInstancesResponse { + return new GetInstancesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetInstancesResponse | PlainMessage | undefined, b: GetInstancesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetInstancesResponse, a, b); + } +} + +/** + * @generated from message kurtosis_cloud.ChangeUserActiveRequest + */ +export class ChangeUserActiveRequest extends Message { + /** + * @generated from field: string user_id = 1; + */ + userId = ""; + + /** + * @generated from field: bool active = 2; + */ + active = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.ChangeUserActiveRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ChangeUserActiveRequest { + return new ChangeUserActiveRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ChangeUserActiveRequest { + return new ChangeUserActiveRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ChangeUserActiveRequest { + return new ChangeUserActiveRequest().fromJsonString(jsonString, options); + } + + static equals(a: ChangeUserActiveRequest | PlainMessage | undefined, b: ChangeUserActiveRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ChangeUserActiveRequest, a, b); + } +} + +/** + * @generated from message kurtosis_cloud.GetUserRequest + */ +export class GetUserRequest extends Message { + /** + * @generated from field: string user_id = 1; + */ + userId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.GetUserRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetUserRequest { + return new GetUserRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetUserRequest { + return new GetUserRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetUserRequest { + return new GetUserRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetUserRequest | PlainMessage | undefined, b: GetUserRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetUserRequest, a, b); + } +} + +/** + * @generated from message kurtosis_cloud.GetUserResponse + */ +export class GetUserResponse extends Message { + /** + * @generated from field: kurtosis_cloud.User user = 1; + */ + user?: User; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.GetUserResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "user", kind: "message", T: User }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetUserResponse { + return new GetUserResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetUserResponse { + return new GetUserResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetUserResponse { + return new GetUserResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetUserResponse | PlainMessage | undefined, b: GetUserResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetUserResponse, a, b); + } +} + +/** + * @generated from message kurtosis_cloud.Auth0User + */ +export class Auth0User extends Message { + /** + * @generated from field: string Auth0UserId = 1; + */ + Auth0UserId = ""; + + /** + * @generated from field: optional string Auth0Name = 2; + */ + Auth0Name?: string; + + /** + * @generated from field: optional string Auth0GivenName = 3; + */ + Auth0GivenName?: string; + + /** + * @generated from field: optional string Auth0FamilyName = 4; + */ + Auth0FamilyName?: string; + + /** + * @generated from field: optional string Auth0Email = 5; + */ + Auth0Email?: string; + + /** + * @generated from field: optional bool Auth0EmailVerified = 6; + */ + Auth0EmailVerified?: boolean; + + /** + * @generated from field: optional string Auth0Provider = 7; + */ + Auth0Provider?: string; + + /** + * @generated from field: optional string Auth0Created = 8; + */ + Auth0Created?: string; + + /** + * @generated from field: optional string Auth0LastLogin = 9; + */ + Auth0LastLogin?: string; + + /** + * @generated from field: optional string Auth0LastIp = 10; + */ + Auth0LastIp?: string; + + /** + * @generated from field: optional int64 Auth0LoginsCount = 11; + */ + Auth0LoginsCount?: bigint; + + /** + * @generated from field: optional string Auth0Picture = 12; + */ + Auth0Picture?: string; + + /** + * @generated from field: optional string Auth0Location = 13; + */ + Auth0Location?: string; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.Auth0User"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Auth0UserId", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "Auth0Name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 3, name: "Auth0GivenName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 4, name: "Auth0FamilyName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 5, name: "Auth0Email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 6, name: "Auth0EmailVerified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, + { no: 7, name: "Auth0Provider", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 8, name: "Auth0Created", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 9, name: "Auth0LastLogin", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 10, name: "Auth0LastIp", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 11, name: "Auth0LoginsCount", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true }, + { no: 12, name: "Auth0Picture", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 13, name: "Auth0Location", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Auth0User { + return new Auth0User().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Auth0User { + return new Auth0User().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Auth0User { + return new Auth0User().fromJsonString(jsonString, options); + } + + static equals(a: Auth0User | PlainMessage | undefined, b: Auth0User | PlainMessage | undefined): boolean { + return proto3.util.equals(Auth0User, a, b); + } +} + +/** + * @generated from message kurtosis_cloud.Ec2Connection + */ +export class Ec2Connection extends Message { + /** + * @generated from field: string InstanceName = 1; + */ + InstanceName = ""; + + /** + * @generated from field: string PublicDns = 2; + */ + PublicDns = ""; + + /** + * @generated from field: string IpAddress = 3; + */ + IpAddress = ""; + + /** + * @generated from field: string InstanceId = 4; + */ + InstanceId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.Ec2Connection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "InstanceName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "PublicDns", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "IpAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "InstanceId", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Ec2Connection { + return new Ec2Connection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Ec2Connection { + return new Ec2Connection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Ec2Connection { + return new Ec2Connection().fromJsonString(jsonString, options); + } + + static equals(a: Ec2Connection | PlainMessage | undefined, b: Ec2Connection | PlainMessage | undefined): boolean { + return proto3.util.equals(Ec2Connection, a, b); + } +} + +/** + * @generated from message kurtosis_cloud.PaymentUser + */ +export class PaymentUser extends Message { + /** + * @generated from field: string UserId = 1; + */ + UserId = ""; + + /** + * @generated from field: string Subscription = 2; + */ + Subscription = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.PaymentUser"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "UserId", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "Subscription", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PaymentUser { + return new PaymentUser().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PaymentUser { + return new PaymentUser().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PaymentUser { + return new PaymentUser().fromJsonString(jsonString, options); + } + + static equals(a: PaymentUser | PlainMessage | undefined, b: PaymentUser | PlainMessage | undefined): boolean { + return proto3.util.equals(PaymentUser, a, b); + } +} + +/** + * @generated from message kurtosis_cloud.Instance + */ +export class Instance extends Message { + /** + * @generated from field: string Uuid = 1; + */ + Uuid = ""; + + /** + * @generated from field: string UserId = 2; + */ + UserId = ""; + + /** + * @generated from field: optional kurtosis_cloud.Auth0User Auth0User = 3; + */ + Auth0User?: Auth0User; + + /** + * @generated from field: optional kurtosis_cloud.Ec2Connection Ec2Connection = 4; + */ + Ec2Connection?: Ec2Connection; + + /** + * @generated from field: string Status = 5; + */ + Status = ""; + + /** + * @generated from field: string Updated = 6; + */ + Updated = ""; + + /** + * @generated from field: string Created = 7; + */ + Created = ""; + + /** + * @generated from field: optional kurtosis_cloud.PaymentUser PaymentUser = 8; + */ + PaymentUser?: PaymentUser; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.Instance"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "UserId", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "Auth0User", kind: "message", T: Auth0User, opt: true }, + { no: 4, name: "Ec2Connection", kind: "message", T: Ec2Connection, opt: true }, + { no: 5, name: "Status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "Updated", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "Created", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "PaymentUser", kind: "message", T: PaymentUser, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Instance { + return new Instance().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Instance { + return new Instance().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Instance { + return new Instance().fromJsonString(jsonString, options); + } + + static equals(a: Instance | PlainMessage | undefined, b: Instance | PlainMessage | undefined): boolean { + return proto3.util.equals(Instance, a, b); + } +} + +/** + * @generated from message kurtosis_cloud.User + */ +export class User extends Message { + /** + * @generated from field: string UserID = 1; + */ + UserID = ""; + + /** + * @generated from field: string ExternalUserID = 2; + */ + ExternalUserID = ""; + + /** + * @generated from field: bool Active = 3; + */ + Active = false; + + /** + * @generated from field: string Updated = 4; + */ + Updated = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "kurtosis_cloud.User"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "UserID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ExternalUserID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "Active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "Updated", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): User { + return new User().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): User { + return new User().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): User { + return new User().fromJsonString(jsonString, options); + } + + static equals(a: User | PlainMessage | undefined, b: User | PlainMessage | undefined): boolean { + return proto3.util.equals(User, a, b); + } +} + /** * @generated from message kurtosis_cloud.GetUnlockedPortsRequest */