1670 lines
58 KiB
Go
1670 lines
58 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc (unknown)
|
|
// source: api/v1/space_service.proto
|
|
|
|
package apiv1
|
|
|
|
import (
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type SpaceMember_Role int32
|
|
|
|
const (
|
|
SpaceMember_ROLE_UNSPECIFIED SpaceMember_Role = 0
|
|
SpaceMember_ADMIN SpaceMember_Role = 1
|
|
SpaceMember_USER SpaceMember_Role = 2
|
|
)
|
|
|
|
// Enum value maps for SpaceMember_Role.
|
|
var (
|
|
SpaceMember_Role_name = map[int32]string{
|
|
0: "ROLE_UNSPECIFIED",
|
|
1: "ADMIN",
|
|
2: "USER",
|
|
}
|
|
SpaceMember_Role_value = map[string]int32{
|
|
"ROLE_UNSPECIFIED": 0,
|
|
"ADMIN": 1,
|
|
"USER": 2,
|
|
}
|
|
)
|
|
|
|
func (x SpaceMember_Role) Enum() *SpaceMember_Role {
|
|
p := new(SpaceMember_Role)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x SpaceMember_Role) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (SpaceMember_Role) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_api_v1_space_service_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (SpaceMember_Role) Type() protoreflect.EnumType {
|
|
return &file_api_v1_space_service_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x SpaceMember_Role) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use SpaceMember_Role.Descriptor instead.
|
|
func (SpaceMember_Role) EnumDescriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{1, 0}
|
|
}
|
|
|
|
// Space is a collaboration boundary for placed memos.
|
|
type Space struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The resource name of the space. Format: spaces/{space}.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// Required. The human-readable title.
|
|
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
|
// Optional. A description of the space.
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
// Output only. The authenticated user's membership role in this space.
|
|
// ROLE_UNSPECIFIED when this Space is exposed as metadata-only.
|
|
CurrentUserRole SpaceMember_Role `protobuf:"varint,4,opt,name=current_user_role,json=currentUserRole,proto3,enum=memos.api.v1.SpaceMember_Role" json:"current_user_role,omitempty"`
|
|
// Output only. The number of accepted members in this space. Pending
|
|
// invitations are excluded. Zero when this Space is exposed as metadata-only.
|
|
MemberCount int32 `protobuf:"varint,5,opt,name=member_count,json=memberCount,proto3" json:"member_count,omitempty"`
|
|
// Optional. Display icon. Omit when updating with the "icon" mask to reset
|
|
// to the default Space mark.
|
|
Icon *Space_Icon `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Space) Reset() {
|
|
*x = Space{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Space) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Space) ProtoMessage() {}
|
|
|
|
func (x *Space) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Space.ProtoReflect.Descriptor instead.
|
|
func (*Space) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Space) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Space) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Space) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Space) GetCurrentUserRole() SpaceMember_Role {
|
|
if x != nil {
|
|
return x.CurrentUserRole
|
|
}
|
|
return SpaceMember_ROLE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Space) GetMemberCount() int32 {
|
|
if x != nil {
|
|
return x.MemberCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Space) GetIcon() *Space_Icon {
|
|
if x != nil {
|
|
return x.Icon
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SpaceMember is a user's membership and governance role in a space.
|
|
type SpaceMember struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The resource name. Format: spaces/{space}/members/{username}.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// Required. The member user. Format: users/{username}.
|
|
User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
|
|
// Required. The member's role within this space.
|
|
Role SpaceMember_Role `protobuf:"varint,3,opt,name=role,proto3,enum=memos.api.v1.SpaceMember_Role" json:"role,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SpaceMember) Reset() {
|
|
*x = SpaceMember{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SpaceMember) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SpaceMember) ProtoMessage() {}
|
|
|
|
func (x *SpaceMember) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SpaceMember.ProtoReflect.Descriptor instead.
|
|
func (*SpaceMember) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *SpaceMember) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SpaceMember) GetUser() string {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SpaceMember) GetRole() SpaceMember_Role {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return SpaceMember_ROLE_UNSPECIFIED
|
|
}
|
|
|
|
// SpaceInvitation is a pending invitation for an existing user to join a space.
|
|
type SpaceInvitation struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The resource name. Format: spaces/{space}/invitations/{username}.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// Required. The invited user. Format: users/{username}.
|
|
Invitee string `protobuf:"bytes,2,opt,name=invitee,proto3" json:"invitee,omitempty"`
|
|
// Required. The role the user will receive after accepting the invitation.
|
|
Role SpaceMember_Role `protobuf:"varint,3,opt,name=role,proto3,enum=memos.api.v1.SpaceMember_Role" json:"role,omitempty"`
|
|
// Output only. The Space the user is invited to. This lets an invitee
|
|
// understand the invitation without granting membership-based GetSpace access.
|
|
Space *Space `protobuf:"bytes,4,opt,name=space,proto3" json:"space,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SpaceInvitation) Reset() {
|
|
*x = SpaceInvitation{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SpaceInvitation) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SpaceInvitation) ProtoMessage() {}
|
|
|
|
func (x *SpaceInvitation) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SpaceInvitation.ProtoReflect.Descriptor instead.
|
|
func (*SpaceInvitation) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *SpaceInvitation) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SpaceInvitation) GetInvitee() string {
|
|
if x != nil {
|
|
return x.Invitee
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SpaceInvitation) GetRole() SpaceMember_Role {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return SpaceMember_ROLE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *SpaceInvitation) GetSpace() *Space {
|
|
if x != nil {
|
|
return x.Space
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateSpaceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The space to create.
|
|
Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"`
|
|
// Optional. The space UID to use for this space.
|
|
// If empty, a canonical UUID v4 will be generated.
|
|
// Format: ^[a-zA-Z0-9]([a-zA-Z0-9-]{0,34}[a-zA-Z0-9])?$
|
|
SpaceId string `protobuf:"bytes,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateSpaceRequest) Reset() {
|
|
*x = CreateSpaceRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateSpaceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateSpaceRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateSpaceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateSpaceRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateSpaceRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CreateSpaceRequest) GetSpace() *Space {
|
|
if x != nil {
|
|
return x.Space
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateSpaceRequest) GetSpaceId() string {
|
|
if x != nil {
|
|
return x.SpaceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListSpacesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Optional. The maximum number of spaces to return.
|
|
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
// Optional. A token from a previous ListSpaces response.
|
|
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSpacesRequest) Reset() {
|
|
*x = ListSpacesRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSpacesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSpacesRequest) ProtoMessage() {}
|
|
|
|
func (x *ListSpacesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSpacesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListSpacesRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ListSpacesRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListSpacesRequest) GetPageToken() string {
|
|
if x != nil {
|
|
return x.PageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListSpacesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Spaces []*Space `protobuf:"bytes,1,rep,name=spaces,proto3" json:"spaces,omitempty"`
|
|
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSpacesResponse) Reset() {
|
|
*x = ListSpacesResponse{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSpacesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSpacesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListSpacesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSpacesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListSpacesResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListSpacesResponse) GetSpaces() []*Space {
|
|
if x != nil {
|
|
return x.Spaces
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListSpacesResponse) GetNextPageToken() string {
|
|
if x != nil {
|
|
return x.NextPageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetSpaceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The resource name of the space.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSpaceRequest) Reset() {
|
|
*x = GetSpaceRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSpaceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSpaceRequest) ProtoMessage() {}
|
|
|
|
func (x *GetSpaceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetSpaceRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetSpaceRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *GetSpaceRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateSpaceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The space with updated values.
|
|
Space *Space `protobuf:"bytes,1,opt,name=space,proto3" json:"space,omitempty"`
|
|
// Required. The fields to update: title or description.
|
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateSpaceRequest) Reset() {
|
|
*x = UpdateSpaceRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateSpaceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateSpaceRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateSpaceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateSpaceRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateSpaceRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *UpdateSpaceRequest) GetSpace() *Space {
|
|
if x != nil {
|
|
return x.Space
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateSpaceRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|
if x != nil {
|
|
return x.UpdateMask
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteSpaceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The resource name of the space.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteSpaceRequest) Reset() {
|
|
*x = DeleteSpaceRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteSpaceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteSpaceRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteSpaceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteSpaceRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteSpaceRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *DeleteSpaceRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateSpaceInvitationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The parent space. Format: spaces/{space}.
|
|
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
|
// Required. The invitation to create.
|
|
SpaceInvitation *SpaceInvitation `protobuf:"bytes,2,opt,name=space_invitation,json=spaceInvitation,proto3" json:"space_invitation,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateSpaceInvitationRequest) Reset() {
|
|
*x = CreateSpaceInvitationRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateSpaceInvitationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateSpaceInvitationRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateSpaceInvitationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateSpaceInvitationRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateSpaceInvitationRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *CreateSpaceInvitationRequest) GetParent() string {
|
|
if x != nil {
|
|
return x.Parent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateSpaceInvitationRequest) GetSpaceInvitation() *SpaceInvitation {
|
|
if x != nil {
|
|
return x.SpaceInvitation
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListSpaceInvitationsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The parent space. Format: spaces/{space}.
|
|
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
|
// Optional. The maximum number of invitations to return.
|
|
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
// Optional. A token from a previous ListSpaceInvitations response.
|
|
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSpaceInvitationsRequest) Reset() {
|
|
*x = ListSpaceInvitationsRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSpaceInvitationsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSpaceInvitationsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListSpaceInvitationsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSpaceInvitationsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListSpaceInvitationsRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *ListSpaceInvitationsRequest) GetParent() string {
|
|
if x != nil {
|
|
return x.Parent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListSpaceInvitationsRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListSpaceInvitationsRequest) GetPageToken() string {
|
|
if x != nil {
|
|
return x.PageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListSpaceInvitationsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SpaceInvitations []*SpaceInvitation `protobuf:"bytes,1,rep,name=space_invitations,json=spaceInvitations,proto3" json:"space_invitations,omitempty"`
|
|
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSpaceInvitationsResponse) Reset() {
|
|
*x = ListSpaceInvitationsResponse{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSpaceInvitationsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSpaceInvitationsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListSpaceInvitationsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSpaceInvitationsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListSpaceInvitationsResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *ListSpaceInvitationsResponse) GetSpaceInvitations() []*SpaceInvitation {
|
|
if x != nil {
|
|
return x.SpaceInvitations
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListSpaceInvitationsResponse) GetNextPageToken() string {
|
|
if x != nil {
|
|
return x.NextPageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListUserSpaceInvitationsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The authenticated user. Format: users/{username}.
|
|
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
|
// Optional. The maximum number of invitations to return.
|
|
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
// Optional. A token from a previous ListUserSpaceInvitations response.
|
|
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListUserSpaceInvitationsRequest) Reset() {
|
|
*x = ListUserSpaceInvitationsRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListUserSpaceInvitationsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListUserSpaceInvitationsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListUserSpaceInvitationsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListUserSpaceInvitationsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListUserSpaceInvitationsRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *ListUserSpaceInvitationsRequest) GetParent() string {
|
|
if x != nil {
|
|
return x.Parent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListUserSpaceInvitationsRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListUserSpaceInvitationsRequest) GetPageToken() string {
|
|
if x != nil {
|
|
return x.PageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListUserSpaceInvitationsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SpaceInvitations []*SpaceInvitation `protobuf:"bytes,1,rep,name=space_invitations,json=spaceInvitations,proto3" json:"space_invitations,omitempty"`
|
|
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListUserSpaceInvitationsResponse) Reset() {
|
|
*x = ListUserSpaceInvitationsResponse{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListUserSpaceInvitationsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListUserSpaceInvitationsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListUserSpaceInvitationsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListUserSpaceInvitationsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListUserSpaceInvitationsResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *ListUserSpaceInvitationsResponse) GetSpaceInvitations() []*SpaceInvitation {
|
|
if x != nil {
|
|
return x.SpaceInvitations
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListUserSpaceInvitationsResponse) GetNextPageToken() string {
|
|
if x != nil {
|
|
return x.NextPageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetSpaceInvitationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. Format: spaces/{space}/invitations/{username}.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSpaceInvitationRequest) Reset() {
|
|
*x = GetSpaceInvitationRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSpaceInvitationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSpaceInvitationRequest) ProtoMessage() {}
|
|
|
|
func (x *GetSpaceInvitationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetSpaceInvitationRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetSpaceInvitationRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *GetSpaceInvitationRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteSpaceInvitationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. Format: spaces/{space}/invitations/{username}.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteSpaceInvitationRequest) Reset() {
|
|
*x = DeleteSpaceInvitationRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteSpaceInvitationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteSpaceInvitationRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteSpaceInvitationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteSpaceInvitationRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteSpaceInvitationRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *DeleteSpaceInvitationRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AcceptSpaceInvitationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. Format: spaces/{space}/invitations/{username}.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AcceptSpaceInvitationRequest) Reset() {
|
|
*x = AcceptSpaceInvitationRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AcceptSpaceInvitationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AcceptSpaceInvitationRequest) ProtoMessage() {}
|
|
|
|
func (x *AcceptSpaceInvitationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AcceptSpaceInvitationRequest.ProtoReflect.Descriptor instead.
|
|
func (*AcceptSpaceInvitationRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *AcceptSpaceInvitationRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeclineSpaceInvitationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. Format: spaces/{space}/invitations/{username}.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeclineSpaceInvitationRequest) Reset() {
|
|
*x = DeclineSpaceInvitationRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeclineSpaceInvitationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeclineSpaceInvitationRequest) ProtoMessage() {}
|
|
|
|
func (x *DeclineSpaceInvitationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeclineSpaceInvitationRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeclineSpaceInvitationRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *DeclineSpaceInvitationRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListSpaceMembersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The parent space. Format: spaces/{space}.
|
|
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
|
// Optional. The maximum number of members to return.
|
|
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
// Optional. A token from a previous ListSpaceMembers response.
|
|
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSpaceMembersRequest) Reset() {
|
|
*x = ListSpaceMembersRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSpaceMembersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSpaceMembersRequest) ProtoMessage() {}
|
|
|
|
func (x *ListSpaceMembersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSpaceMembersRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListSpaceMembersRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *ListSpaceMembersRequest) GetParent() string {
|
|
if x != nil {
|
|
return x.Parent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListSpaceMembersRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListSpaceMembersRequest) GetPageToken() string {
|
|
if x != nil {
|
|
return x.PageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListSpaceMembersResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SpaceMembers []*SpaceMember `protobuf:"bytes,1,rep,name=space_members,json=spaceMembers,proto3" json:"space_members,omitempty"`
|
|
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSpaceMembersResponse) Reset() {
|
|
*x = ListSpaceMembersResponse{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSpaceMembersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSpaceMembersResponse) ProtoMessage() {}
|
|
|
|
func (x *ListSpaceMembersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSpaceMembersResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListSpaceMembersResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *ListSpaceMembersResponse) GetSpaceMembers() []*SpaceMember {
|
|
if x != nil {
|
|
return x.SpaceMembers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListSpaceMembersResponse) GetNextPageToken() string {
|
|
if x != nil {
|
|
return x.NextPageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetSpaceMemberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. Format: spaces/{space}/members/{username}.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSpaceMemberRequest) Reset() {
|
|
*x = GetSpaceMemberRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSpaceMemberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSpaceMemberRequest) ProtoMessage() {}
|
|
|
|
func (x *GetSpaceMemberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetSpaceMemberRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetSpaceMemberRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *GetSpaceMemberRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateSpaceMemberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The membership with the new role.
|
|
SpaceMember *SpaceMember `protobuf:"bytes,1,opt,name=space_member,json=spaceMember,proto3" json:"space_member,omitempty"`
|
|
// Required. Only role is supported.
|
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateSpaceMemberRequest) Reset() {
|
|
*x = UpdateSpaceMemberRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateSpaceMemberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateSpaceMemberRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateSpaceMemberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateSpaceMemberRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateSpaceMemberRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *UpdateSpaceMemberRequest) GetSpaceMember() *SpaceMember {
|
|
if x != nil {
|
|
return x.SpaceMember
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateSpaceMemberRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|
if x != nil {
|
|
return x.UpdateMask
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteSpaceMemberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. Format: spaces/{space}/members/{username}.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteSpaceMemberRequest) Reset() {
|
|
*x = DeleteSpaceMemberRequest{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteSpaceMemberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteSpaceMemberRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteSpaceMemberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteSpaceMemberRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteSpaceMemberRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *DeleteSpaceMemberRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Space_Icon struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Value:
|
|
//
|
|
// *Space_Icon_Emoji
|
|
// *Space_Icon_Lucide
|
|
Value isSpace_Icon_Value `protobuf_oneof:"value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Space_Icon) Reset() {
|
|
*x = Space_Icon{}
|
|
mi := &file_api_v1_space_service_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Space_Icon) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Space_Icon) ProtoMessage() {}
|
|
|
|
func (x *Space_Icon) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_space_service_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Space_Icon.ProtoReflect.Descriptor instead.
|
|
func (*Space_Icon) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_space_service_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
func (x *Space_Icon) GetValue() isSpace_Icon_Value {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Space_Icon) GetEmoji() string {
|
|
if x != nil {
|
|
if x, ok := x.Value.(*Space_Icon_Emoji); ok {
|
|
return x.Emoji
|
|
}
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Space_Icon) GetLucide() string {
|
|
if x != nil {
|
|
if x, ok := x.Value.(*Space_Icon_Lucide); ok {
|
|
return x.Lucide
|
|
}
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type isSpace_Icon_Value interface {
|
|
isSpace_Icon_Value()
|
|
}
|
|
|
|
type Space_Icon_Emoji struct {
|
|
// A Unicode emoji sequence.
|
|
Emoji string `protobuf:"bytes,1,opt,name=emoji,proto3,oneof"`
|
|
}
|
|
|
|
type Space_Icon_Lucide struct {
|
|
// A canonical Lucide icon name, such as "leaf".
|
|
Lucide string `protobuf:"bytes,2,opt,name=lucide,proto3,oneof"`
|
|
}
|
|
|
|
func (*Space_Icon_Emoji) isSpace_Icon_Value() {}
|
|
|
|
func (*Space_Icon_Lucide) isSpace_Icon_Value() {}
|
|
|
|
var File_api_v1_space_service_proto protoreflect.FileDescriptor
|
|
|
|
const file_api_v1_space_service_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1aapi/v1/space_service.proto\x12\fmemos.api.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x8f\x03\n" +
|
|
"\x05Space\x12\x17\n" +
|
|
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12\x19\n" +
|
|
"\x05title\x18\x02 \x01(\tB\x03\xe0A\x02R\x05title\x12%\n" +
|
|
"\vdescription\x18\x03 \x01(\tB\x03\xe0A\x01R\vdescription\x12O\n" +
|
|
"\x11current_user_role\x18\x04 \x01(\x0e2\x1e.memos.api.v1.SpaceMember.RoleB\x03\xe0A\x03R\x0fcurrentUserRole\x12&\n" +
|
|
"\fmember_count\x18\x05 \x01(\x05B\x03\xe0A\x03R\vmemberCount\x121\n" +
|
|
"\x04icon\x18\x06 \x01(\v2\x18.memos.api.v1.Space.IconB\x03\xe0A\x01R\x04icon\x1aA\n" +
|
|
"\x04Icon\x12\x16\n" +
|
|
"\x05emoji\x18\x01 \x01(\tH\x00R\x05emoji\x12\x18\n" +
|
|
"\x06lucide\x18\x02 \x01(\tH\x00R\x06lucideB\a\n" +
|
|
"\x05value:<\xeaA9\n" +
|
|
"\x12memos.api.v1/Space\x12\x0espaces/{space}\x1a\x04name*\x06spaces2\x05space\"\xa2\x02\n" +
|
|
"\vSpaceMember\x12\x17\n" +
|
|
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12-\n" +
|
|
"\x04user\x18\x02 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +
|
|
"\x11memos.api.v1/UserR\x04user\x127\n" +
|
|
"\x04role\x18\x03 \x01(\x0e2\x1e.memos.api.v1.SpaceMember.RoleB\x03\xe0A\x02R\x04role\"1\n" +
|
|
"\x04Role\x12\x14\n" +
|
|
"\x10ROLE_UNSPECIFIED\x10\x00\x12\t\n" +
|
|
"\x05ADMIN\x10\x01\x12\b\n" +
|
|
"\x04USER\x10\x02:_\xeaA\\\n" +
|
|
"\x18memos.api.v1/SpaceMember\x12\x1fspaces/{space}/members/{member}\x1a\x04name*\fspaceMembers2\vspaceMember\"\xbd\x02\n" +
|
|
"\x0fSpaceInvitation\x12\x17\n" +
|
|
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x123\n" +
|
|
"\ainvitee\x18\x02 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +
|
|
"\x11memos.api.v1/UserR\ainvitee\x127\n" +
|
|
"\x04role\x18\x03 \x01(\x0e2\x1e.memos.api.v1.SpaceMember.RoleB\x03\xe0A\x02R\x04role\x12.\n" +
|
|
"\x05space\x18\x04 \x01(\v2\x13.memos.api.v1.SpaceB\x03\xe0A\x03R\x05space:s\xeaAp\n" +
|
|
"\x1cmemos.api.v1/SpaceInvitation\x12'spaces/{space}/invitations/{invitation}\x1a\x04name*\x10spaceInvitations2\x0fspaceInvitation\"d\n" +
|
|
"\x12CreateSpaceRequest\x12.\n" +
|
|
"\x05space\x18\x01 \x01(\v2\x13.memos.api.v1.SpaceB\x03\xe0A\x02R\x05space\x12\x1e\n" +
|
|
"\bspace_id\x18\x02 \x01(\tB\x03\xe0A\x01R\aspaceId\"Y\n" +
|
|
"\x11ListSpacesRequest\x12 \n" +
|
|
"\tpage_size\x18\x01 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
|
|
"\n" +
|
|
"page_token\x18\x02 \x01(\tB\x03\xe0A\x01R\tpageToken\"i\n" +
|
|
"\x12ListSpacesResponse\x12+\n" +
|
|
"\x06spaces\x18\x01 \x03(\v2\x13.memos.api.v1.SpaceR\x06spaces\x12&\n" +
|
|
"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"A\n" +
|
|
"\x0fGetSpaceRequest\x12.\n" +
|
|
"\x04name\x18\x01 \x01(\tB\x1a\xe0A\x02\xfaA\x14\n" +
|
|
"\x12memos.api.v1/SpaceR\x04name\"\x86\x01\n" +
|
|
"\x12UpdateSpaceRequest\x12.\n" +
|
|
"\x05space\x18\x01 \x01(\v2\x13.memos.api.v1.SpaceB\x03\xe0A\x02R\x05space\x12@\n" +
|
|
"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
|
|
"updateMask\"D\n" +
|
|
"\x12DeleteSpaceRequest\x12.\n" +
|
|
"\x04name\x18\x01 \x01(\tB\x1a\xe0A\x02\xfaA\x14\n" +
|
|
"\x12memos.api.v1/SpaceR\x04name\"\xab\x01\n" +
|
|
"\x1cCreateSpaceInvitationRequest\x12<\n" +
|
|
"\x06parent\x18\x01 \x01(\tB$\xe0A\x02\xfaA\x1e\x12\x1cmemos.api.v1/SpaceInvitationR\x06parent\x12M\n" +
|
|
"\x10space_invitation\x18\x02 \x01(\v2\x1d.memos.api.v1.SpaceInvitationB\x03\xe0A\x02R\x0fspaceInvitation\"\xa1\x01\n" +
|
|
"\x1bListSpaceInvitationsRequest\x12<\n" +
|
|
"\x06parent\x18\x01 \x01(\tB$\xe0A\x02\xfaA\x1e\x12\x1cmemos.api.v1/SpaceInvitationR\x06parent\x12 \n" +
|
|
"\tpage_size\x18\x02 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
|
|
"\n" +
|
|
"page_token\x18\x03 \x01(\tB\x03\xe0A\x01R\tpageToken\"\x92\x01\n" +
|
|
"\x1cListSpaceInvitationsResponse\x12J\n" +
|
|
"\x11space_invitations\x18\x01 \x03(\v2\x1d.memos.api.v1.SpaceInvitationR\x10spaceInvitations\x12&\n" +
|
|
"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x9a\x01\n" +
|
|
"\x1fListUserSpaceInvitationsRequest\x121\n" +
|
|
"\x06parent\x18\x01 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +
|
|
"\x11memos.api.v1/UserR\x06parent\x12 \n" +
|
|
"\tpage_size\x18\x02 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
|
|
"\n" +
|
|
"page_token\x18\x03 \x01(\tB\x03\xe0A\x01R\tpageToken\"\x96\x01\n" +
|
|
" ListUserSpaceInvitationsResponse\x12J\n" +
|
|
"\x11space_invitations\x18\x01 \x03(\v2\x1d.memos.api.v1.SpaceInvitationR\x10spaceInvitations\x12&\n" +
|
|
"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"U\n" +
|
|
"\x19GetSpaceInvitationRequest\x128\n" +
|
|
"\x04name\x18\x01 \x01(\tB$\xe0A\x02\xfaA\x1e\n" +
|
|
"\x1cmemos.api.v1/SpaceInvitationR\x04name\"X\n" +
|
|
"\x1cDeleteSpaceInvitationRequest\x128\n" +
|
|
"\x04name\x18\x01 \x01(\tB$\xe0A\x02\xfaA\x1e\n" +
|
|
"\x1cmemos.api.v1/SpaceInvitationR\x04name\"X\n" +
|
|
"\x1cAcceptSpaceInvitationRequest\x128\n" +
|
|
"\x04name\x18\x01 \x01(\tB$\xe0A\x02\xfaA\x1e\n" +
|
|
"\x1cmemos.api.v1/SpaceInvitationR\x04name\"Y\n" +
|
|
"\x1dDeclineSpaceInvitationRequest\x128\n" +
|
|
"\x04name\x18\x01 \x01(\tB$\xe0A\x02\xfaA\x1e\n" +
|
|
"\x1cmemos.api.v1/SpaceInvitationR\x04name\"\x99\x01\n" +
|
|
"\x17ListSpaceMembersRequest\x128\n" +
|
|
"\x06parent\x18\x01 \x01(\tB \xe0A\x02\xfaA\x1a\x12\x18memos.api.v1/SpaceMemberR\x06parent\x12 \n" +
|
|
"\tpage_size\x18\x02 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
|
|
"\n" +
|
|
"page_token\x18\x03 \x01(\tB\x03\xe0A\x01R\tpageToken\"\x82\x01\n" +
|
|
"\x18ListSpaceMembersResponse\x12>\n" +
|
|
"\rspace_members\x18\x01 \x03(\v2\x19.memos.api.v1.SpaceMemberR\fspaceMembers\x12&\n" +
|
|
"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"M\n" +
|
|
"\x15GetSpaceMemberRequest\x124\n" +
|
|
"\x04name\x18\x01 \x01(\tB \xe0A\x02\xfaA\x1a\n" +
|
|
"\x18memos.api.v1/SpaceMemberR\x04name\"\x9f\x01\n" +
|
|
"\x18UpdateSpaceMemberRequest\x12A\n" +
|
|
"\fspace_member\x18\x01 \x01(\v2\x19.memos.api.v1.SpaceMemberB\x03\xe0A\x02R\vspaceMember\x12@\n" +
|
|
"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
|
|
"updateMask\"P\n" +
|
|
"\x18DeleteSpaceMemberRequest\x124\n" +
|
|
"\x04name\x18\x01 \x01(\tB \xe0A\x02\xfaA\x1a\n" +
|
|
"\x18memos.api.v1/SpaceMemberR\x04name2\xb3\x12\n" +
|
|
"\fSpaceService\x12k\n" +
|
|
"\vCreateSpace\x12 .memos.api.v1.CreateSpaceRequest\x1a\x13.memos.api.v1.Space\"%\xdaA\x05space\x82\xd3\xe4\x93\x02\x17:\x05space\"\x0e/api/v1/spaces\x12j\n" +
|
|
"\n" +
|
|
"ListSpaces\x12\x1f.memos.api.v1.ListSpacesRequest\x1a .memos.api.v1.ListSpacesResponse\"\x19\xdaA\x00\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/spaces\x12f\n" +
|
|
"\bGetSpace\x12\x1d.memos.api.v1.GetSpaceRequest\x1a\x13.memos.api.v1.Space\"&\xdaA\x04name\x82\xd3\xe4\x93\x02\x19\x12\x17/api/v1/{name=spaces/*}\x12\x86\x01\n" +
|
|
"\vUpdateSpace\x12 .memos.api.v1.UpdateSpaceRequest\x1a\x13.memos.api.v1.Space\"@\xdaA\x11space,update_mask\x82\xd3\xe4\x93\x02&:\x05space2\x1d/api/v1/{space.name=spaces/*}\x12o\n" +
|
|
"\vDeleteSpace\x12 .memos.api.v1.DeleteSpaceRequest\x1a\x16.google.protobuf.Empty\"&\xdaA\x04name\x82\xd3\xe4\x93\x02\x19*\x17/api/v1/{name=spaces/*}\x12\xbd\x01\n" +
|
|
"\x15CreateSpaceInvitation\x12*.memos.api.v1.CreateSpaceInvitationRequest\x1a\x1d.memos.api.v1.SpaceInvitation\"Y\xdaA\x17parent,space_invitation\x82\xd3\xe4\x93\x029:\x10space_invitation\"%/api/v1/{parent=spaces/*}/invitations\x12\xa5\x01\n" +
|
|
"\x14ListSpaceInvitations\x12).memos.api.v1.ListSpaceInvitationsRequest\x1a*.memos.api.v1.ListSpaceInvitationsResponse\"6\xdaA\x06parent\x82\xd3\xe4\x93\x02'\x12%/api/v1/{parent=spaces/*}/invitations\x12\xb5\x01\n" +
|
|
"\x18ListUserSpaceInvitations\x12-.memos.api.v1.ListUserSpaceInvitationsRequest\x1a..memos.api.v1.ListUserSpaceInvitationsResponse\":\xdaA\x06parent\x82\xd3\xe4\x93\x02+\x12)/api/v1/{parent=users/*}/spaceInvitations\x12\x92\x01\n" +
|
|
"\x12GetSpaceInvitation\x12'.memos.api.v1.GetSpaceInvitationRequest\x1a\x1d.memos.api.v1.SpaceInvitation\"4\xdaA\x04name\x82\xd3\xe4\x93\x02'\x12%/api/v1/{name=spaces/*/invitations/*}\x12\x91\x01\n" +
|
|
"\x15DeleteSpaceInvitation\x12*.memos.api.v1.DeleteSpaceInvitationRequest\x1a\x16.google.protobuf.Empty\"4\xdaA\x04name\x82\xd3\xe4\x93\x02'*%/api/v1/{name=spaces/*/invitations/*}\x12\x9e\x01\n" +
|
|
"\x15AcceptSpaceInvitation\x12*.memos.api.v1.AcceptSpaceInvitationRequest\x1a\x19.memos.api.v1.SpaceMember\">\xdaA\x04name\x82\xd3\xe4\x93\x021:\x01*\",/api/v1/{name=spaces/*/invitations/*}:accept\x12\x9e\x01\n" +
|
|
"\x16DeclineSpaceInvitation\x12+.memos.api.v1.DeclineSpaceInvitationRequest\x1a\x16.google.protobuf.Empty\"?\xdaA\x04name\x82\xd3\xe4\x93\x022:\x01*\"-/api/v1/{name=spaces/*/invitations/*}:decline\x12\x95\x01\n" +
|
|
"\x10ListSpaceMembers\x12%.memos.api.v1.ListSpaceMembersRequest\x1a&.memos.api.v1.ListSpaceMembersResponse\"2\xdaA\x06parent\x82\xd3\xe4\x93\x02#\x12!/api/v1/{parent=spaces/*}/members\x12\x82\x01\n" +
|
|
"\x0eGetSpaceMember\x12#.memos.api.v1.GetSpaceMemberRequest\x1a\x19.memos.api.v1.SpaceMember\"0\xdaA\x04name\x82\xd3\xe4\x93\x02#\x12!/api/v1/{name=spaces/*/members/*}\x12\xb7\x01\n" +
|
|
"\x11UpdateSpaceMember\x12&.memos.api.v1.UpdateSpaceMemberRequest\x1a\x19.memos.api.v1.SpaceMember\"_\xdaA\x18space_member,update_mask\x82\xd3\xe4\x93\x02>:\fspace_member2./api/v1/{space_member.name=spaces/*/members/*}\x12\x85\x01\n" +
|
|
"\x11DeleteSpaceMember\x12&.memos.api.v1.DeleteSpaceMemberRequest\x1a\x16.google.protobuf.Empty\"0\xdaA\x04name\x82\xd3\xe4\x93\x02#*!/api/v1/{name=spaces/*/members/*}B\xa9\x01\n" +
|
|
"\x10com.memos.api.v1B\x11SpaceServiceProtoP\x01Z0github.com/usememos/memos/proto/gen/api/v1;apiv1\xa2\x02\x03MAX\xaa\x02\fMemos.Api.V1\xca\x02\fMemos\\Api\\V1\xe2\x02\x18Memos\\Api\\V1\\GPBMetadata\xea\x02\x0eMemos::Api::V1b\x06proto3"
|
|
|
|
var (
|
|
file_api_v1_space_service_proto_rawDescOnce sync.Once
|
|
file_api_v1_space_service_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_api_v1_space_service_proto_rawDescGZIP() []byte {
|
|
file_api_v1_space_service_proto_rawDescOnce.Do(func() {
|
|
file_api_v1_space_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_v1_space_service_proto_rawDesc), len(file_api_v1_space_service_proto_rawDesc)))
|
|
})
|
|
return file_api_v1_space_service_proto_rawDescData
|
|
}
|
|
|
|
var file_api_v1_space_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_api_v1_space_service_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
|
var file_api_v1_space_service_proto_goTypes = []any{
|
|
(SpaceMember_Role)(0), // 0: memos.api.v1.SpaceMember.Role
|
|
(*Space)(nil), // 1: memos.api.v1.Space
|
|
(*SpaceMember)(nil), // 2: memos.api.v1.SpaceMember
|
|
(*SpaceInvitation)(nil), // 3: memos.api.v1.SpaceInvitation
|
|
(*CreateSpaceRequest)(nil), // 4: memos.api.v1.CreateSpaceRequest
|
|
(*ListSpacesRequest)(nil), // 5: memos.api.v1.ListSpacesRequest
|
|
(*ListSpacesResponse)(nil), // 6: memos.api.v1.ListSpacesResponse
|
|
(*GetSpaceRequest)(nil), // 7: memos.api.v1.GetSpaceRequest
|
|
(*UpdateSpaceRequest)(nil), // 8: memos.api.v1.UpdateSpaceRequest
|
|
(*DeleteSpaceRequest)(nil), // 9: memos.api.v1.DeleteSpaceRequest
|
|
(*CreateSpaceInvitationRequest)(nil), // 10: memos.api.v1.CreateSpaceInvitationRequest
|
|
(*ListSpaceInvitationsRequest)(nil), // 11: memos.api.v1.ListSpaceInvitationsRequest
|
|
(*ListSpaceInvitationsResponse)(nil), // 12: memos.api.v1.ListSpaceInvitationsResponse
|
|
(*ListUserSpaceInvitationsRequest)(nil), // 13: memos.api.v1.ListUserSpaceInvitationsRequest
|
|
(*ListUserSpaceInvitationsResponse)(nil), // 14: memos.api.v1.ListUserSpaceInvitationsResponse
|
|
(*GetSpaceInvitationRequest)(nil), // 15: memos.api.v1.GetSpaceInvitationRequest
|
|
(*DeleteSpaceInvitationRequest)(nil), // 16: memos.api.v1.DeleteSpaceInvitationRequest
|
|
(*AcceptSpaceInvitationRequest)(nil), // 17: memos.api.v1.AcceptSpaceInvitationRequest
|
|
(*DeclineSpaceInvitationRequest)(nil), // 18: memos.api.v1.DeclineSpaceInvitationRequest
|
|
(*ListSpaceMembersRequest)(nil), // 19: memos.api.v1.ListSpaceMembersRequest
|
|
(*ListSpaceMembersResponse)(nil), // 20: memos.api.v1.ListSpaceMembersResponse
|
|
(*GetSpaceMemberRequest)(nil), // 21: memos.api.v1.GetSpaceMemberRequest
|
|
(*UpdateSpaceMemberRequest)(nil), // 22: memos.api.v1.UpdateSpaceMemberRequest
|
|
(*DeleteSpaceMemberRequest)(nil), // 23: memos.api.v1.DeleteSpaceMemberRequest
|
|
(*Space_Icon)(nil), // 24: memos.api.v1.Space.Icon
|
|
(*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask
|
|
(*emptypb.Empty)(nil), // 26: google.protobuf.Empty
|
|
}
|
|
var file_api_v1_space_service_proto_depIdxs = []int32{
|
|
0, // 0: memos.api.v1.Space.current_user_role:type_name -> memos.api.v1.SpaceMember.Role
|
|
24, // 1: memos.api.v1.Space.icon:type_name -> memos.api.v1.Space.Icon
|
|
0, // 2: memos.api.v1.SpaceMember.role:type_name -> memos.api.v1.SpaceMember.Role
|
|
0, // 3: memos.api.v1.SpaceInvitation.role:type_name -> memos.api.v1.SpaceMember.Role
|
|
1, // 4: memos.api.v1.SpaceInvitation.space:type_name -> memos.api.v1.Space
|
|
1, // 5: memos.api.v1.CreateSpaceRequest.space:type_name -> memos.api.v1.Space
|
|
1, // 6: memos.api.v1.ListSpacesResponse.spaces:type_name -> memos.api.v1.Space
|
|
1, // 7: memos.api.v1.UpdateSpaceRequest.space:type_name -> memos.api.v1.Space
|
|
25, // 8: memos.api.v1.UpdateSpaceRequest.update_mask:type_name -> google.protobuf.FieldMask
|
|
3, // 9: memos.api.v1.CreateSpaceInvitationRequest.space_invitation:type_name -> memos.api.v1.SpaceInvitation
|
|
3, // 10: memos.api.v1.ListSpaceInvitationsResponse.space_invitations:type_name -> memos.api.v1.SpaceInvitation
|
|
3, // 11: memos.api.v1.ListUserSpaceInvitationsResponse.space_invitations:type_name -> memos.api.v1.SpaceInvitation
|
|
2, // 12: memos.api.v1.ListSpaceMembersResponse.space_members:type_name -> memos.api.v1.SpaceMember
|
|
2, // 13: memos.api.v1.UpdateSpaceMemberRequest.space_member:type_name -> memos.api.v1.SpaceMember
|
|
25, // 14: memos.api.v1.UpdateSpaceMemberRequest.update_mask:type_name -> google.protobuf.FieldMask
|
|
4, // 15: memos.api.v1.SpaceService.CreateSpace:input_type -> memos.api.v1.CreateSpaceRequest
|
|
5, // 16: memos.api.v1.SpaceService.ListSpaces:input_type -> memos.api.v1.ListSpacesRequest
|
|
7, // 17: memos.api.v1.SpaceService.GetSpace:input_type -> memos.api.v1.GetSpaceRequest
|
|
8, // 18: memos.api.v1.SpaceService.UpdateSpace:input_type -> memos.api.v1.UpdateSpaceRequest
|
|
9, // 19: memos.api.v1.SpaceService.DeleteSpace:input_type -> memos.api.v1.DeleteSpaceRequest
|
|
10, // 20: memos.api.v1.SpaceService.CreateSpaceInvitation:input_type -> memos.api.v1.CreateSpaceInvitationRequest
|
|
11, // 21: memos.api.v1.SpaceService.ListSpaceInvitations:input_type -> memos.api.v1.ListSpaceInvitationsRequest
|
|
13, // 22: memos.api.v1.SpaceService.ListUserSpaceInvitations:input_type -> memos.api.v1.ListUserSpaceInvitationsRequest
|
|
15, // 23: memos.api.v1.SpaceService.GetSpaceInvitation:input_type -> memos.api.v1.GetSpaceInvitationRequest
|
|
16, // 24: memos.api.v1.SpaceService.DeleteSpaceInvitation:input_type -> memos.api.v1.DeleteSpaceInvitationRequest
|
|
17, // 25: memos.api.v1.SpaceService.AcceptSpaceInvitation:input_type -> memos.api.v1.AcceptSpaceInvitationRequest
|
|
18, // 26: memos.api.v1.SpaceService.DeclineSpaceInvitation:input_type -> memos.api.v1.DeclineSpaceInvitationRequest
|
|
19, // 27: memos.api.v1.SpaceService.ListSpaceMembers:input_type -> memos.api.v1.ListSpaceMembersRequest
|
|
21, // 28: memos.api.v1.SpaceService.GetSpaceMember:input_type -> memos.api.v1.GetSpaceMemberRequest
|
|
22, // 29: memos.api.v1.SpaceService.UpdateSpaceMember:input_type -> memos.api.v1.UpdateSpaceMemberRequest
|
|
23, // 30: memos.api.v1.SpaceService.DeleteSpaceMember:input_type -> memos.api.v1.DeleteSpaceMemberRequest
|
|
1, // 31: memos.api.v1.SpaceService.CreateSpace:output_type -> memos.api.v1.Space
|
|
6, // 32: memos.api.v1.SpaceService.ListSpaces:output_type -> memos.api.v1.ListSpacesResponse
|
|
1, // 33: memos.api.v1.SpaceService.GetSpace:output_type -> memos.api.v1.Space
|
|
1, // 34: memos.api.v1.SpaceService.UpdateSpace:output_type -> memos.api.v1.Space
|
|
26, // 35: memos.api.v1.SpaceService.DeleteSpace:output_type -> google.protobuf.Empty
|
|
3, // 36: memos.api.v1.SpaceService.CreateSpaceInvitation:output_type -> memos.api.v1.SpaceInvitation
|
|
12, // 37: memos.api.v1.SpaceService.ListSpaceInvitations:output_type -> memos.api.v1.ListSpaceInvitationsResponse
|
|
14, // 38: memos.api.v1.SpaceService.ListUserSpaceInvitations:output_type -> memos.api.v1.ListUserSpaceInvitationsResponse
|
|
3, // 39: memos.api.v1.SpaceService.GetSpaceInvitation:output_type -> memos.api.v1.SpaceInvitation
|
|
26, // 40: memos.api.v1.SpaceService.DeleteSpaceInvitation:output_type -> google.protobuf.Empty
|
|
2, // 41: memos.api.v1.SpaceService.AcceptSpaceInvitation:output_type -> memos.api.v1.SpaceMember
|
|
26, // 42: memos.api.v1.SpaceService.DeclineSpaceInvitation:output_type -> google.protobuf.Empty
|
|
20, // 43: memos.api.v1.SpaceService.ListSpaceMembers:output_type -> memos.api.v1.ListSpaceMembersResponse
|
|
2, // 44: memos.api.v1.SpaceService.GetSpaceMember:output_type -> memos.api.v1.SpaceMember
|
|
2, // 45: memos.api.v1.SpaceService.UpdateSpaceMember:output_type -> memos.api.v1.SpaceMember
|
|
26, // 46: memos.api.v1.SpaceService.DeleteSpaceMember:output_type -> google.protobuf.Empty
|
|
31, // [31:47] is the sub-list for method output_type
|
|
15, // [15:31] is the sub-list for method input_type
|
|
15, // [15:15] is the sub-list for extension type_name
|
|
15, // [15:15] is the sub-list for extension extendee
|
|
0, // [0:15] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_api_v1_space_service_proto_init() }
|
|
func file_api_v1_space_service_proto_init() {
|
|
if File_api_v1_space_service_proto != nil {
|
|
return
|
|
}
|
|
file_api_v1_space_service_proto_msgTypes[23].OneofWrappers = []any{
|
|
(*Space_Icon_Emoji)(nil),
|
|
(*Space_Icon_Lucide)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_v1_space_service_proto_rawDesc), len(file_api_v1_space_service_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 24,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_api_v1_space_service_proto_goTypes,
|
|
DependencyIndexes: file_api_v1_space_service_proto_depIdxs,
|
|
EnumInfos: file_api_v1_space_service_proto_enumTypes,
|
|
MessageInfos: file_api_v1_space_service_proto_msgTypes,
|
|
}.Build()
|
|
File_api_v1_space_service_proto = out.File
|
|
file_api_v1_space_service_proto_goTypes = nil
|
|
file_api_v1_space_service_proto_depIdxs = nil
|
|
}
|