721 lines
28 KiB
Go
721 lines
28 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: communities.proto
|
|
|
|
package protobuf
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type CommunityMember_Roles int32
|
|
|
|
const (
|
|
CommunityMember_UNKNOWN_ROLE CommunityMember_Roles = 0
|
|
CommunityMember_ROLE_ALL CommunityMember_Roles = 1
|
|
CommunityMember_ROLE_MANAGE_USERS CommunityMember_Roles = 2
|
|
)
|
|
|
|
var CommunityMember_Roles_name = map[int32]string{
|
|
0: "UNKNOWN_ROLE",
|
|
1: "ROLE_ALL",
|
|
2: "ROLE_MANAGE_USERS",
|
|
}
|
|
|
|
var CommunityMember_Roles_value = map[string]int32{
|
|
"UNKNOWN_ROLE": 0,
|
|
"ROLE_ALL": 1,
|
|
"ROLE_MANAGE_USERS": 2,
|
|
}
|
|
|
|
func (x CommunityMember_Roles) String() string {
|
|
return proto.EnumName(CommunityMember_Roles_name, int32(x))
|
|
}
|
|
|
|
func (CommunityMember_Roles) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{1, 0}
|
|
}
|
|
|
|
type CommunityPermissions_Access int32
|
|
|
|
const (
|
|
CommunityPermissions_UNKNOWN_ACCESS CommunityPermissions_Access = 0
|
|
CommunityPermissions_NO_MEMBERSHIP CommunityPermissions_Access = 1
|
|
CommunityPermissions_INVITATION_ONLY CommunityPermissions_Access = 2
|
|
CommunityPermissions_ON_REQUEST CommunityPermissions_Access = 3
|
|
)
|
|
|
|
var CommunityPermissions_Access_name = map[int32]string{
|
|
0: "UNKNOWN_ACCESS",
|
|
1: "NO_MEMBERSHIP",
|
|
2: "INVITATION_ONLY",
|
|
3: "ON_REQUEST",
|
|
}
|
|
|
|
var CommunityPermissions_Access_value = map[string]int32{
|
|
"UNKNOWN_ACCESS": 0,
|
|
"NO_MEMBERSHIP": 1,
|
|
"INVITATION_ONLY": 2,
|
|
"ON_REQUEST": 3,
|
|
}
|
|
|
|
func (x CommunityPermissions_Access) String() string {
|
|
return proto.EnumName(CommunityPermissions_Access_name, int32(x))
|
|
}
|
|
|
|
func (CommunityPermissions_Access) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{2, 0}
|
|
}
|
|
|
|
type Grant struct {
|
|
CommunityId []byte `protobuf:"bytes,1,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"`
|
|
MemberId []byte `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
|
|
ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
|
Clock uint64 `protobuf:"varint,4,opt,name=clock,proto3" json:"clock,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Grant) Reset() { *m = Grant{} }
|
|
func (m *Grant) String() string { return proto.CompactTextString(m) }
|
|
func (*Grant) ProtoMessage() {}
|
|
func (*Grant) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{0}
|
|
}
|
|
|
|
func (m *Grant) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Grant.Unmarshal(m, b)
|
|
}
|
|
func (m *Grant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Grant.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Grant) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Grant.Merge(m, src)
|
|
}
|
|
func (m *Grant) XXX_Size() int {
|
|
return xxx_messageInfo_Grant.Size(m)
|
|
}
|
|
func (m *Grant) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Grant.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Grant proto.InternalMessageInfo
|
|
|
|
func (m *Grant) GetCommunityId() []byte {
|
|
if m != nil {
|
|
return m.CommunityId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Grant) GetMemberId() []byte {
|
|
if m != nil {
|
|
return m.MemberId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Grant) GetChatId() string {
|
|
if m != nil {
|
|
return m.ChatId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Grant) GetClock() uint64 {
|
|
if m != nil {
|
|
return m.Clock
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CommunityMember struct {
|
|
Roles []CommunityMember_Roles `protobuf:"varint,1,rep,packed,name=roles,proto3,enum=protobuf.CommunityMember_Roles" json:"roles,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommunityMember) Reset() { *m = CommunityMember{} }
|
|
func (m *CommunityMember) String() string { return proto.CompactTextString(m) }
|
|
func (*CommunityMember) ProtoMessage() {}
|
|
func (*CommunityMember) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{1}
|
|
}
|
|
|
|
func (m *CommunityMember) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CommunityMember.Unmarshal(m, b)
|
|
}
|
|
func (m *CommunityMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CommunityMember.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CommunityMember) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommunityMember.Merge(m, src)
|
|
}
|
|
func (m *CommunityMember) XXX_Size() int {
|
|
return xxx_messageInfo_CommunityMember.Size(m)
|
|
}
|
|
func (m *CommunityMember) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommunityMember.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommunityMember proto.InternalMessageInfo
|
|
|
|
func (m *CommunityMember) GetRoles() []CommunityMember_Roles {
|
|
if m != nil {
|
|
return m.Roles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CommunityPermissions struct {
|
|
EnsOnly bool `protobuf:"varint,1,opt,name=ens_only,json=ensOnly,proto3" json:"ens_only,omitempty"`
|
|
// https://gitlab.matrix.org/matrix-org/olm/blob/master/docs/megolm.md is a candidate for the algorithm to be used in case we want to have private communityal chats, lighter than pairwise encryption using the DR, less secure, but more efficient for large number of participants
|
|
Private bool `protobuf:"varint,2,opt,name=private,proto3" json:"private,omitempty"`
|
|
Access CommunityPermissions_Access `protobuf:"varint,3,opt,name=access,proto3,enum=protobuf.CommunityPermissions_Access" json:"access,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommunityPermissions) Reset() { *m = CommunityPermissions{} }
|
|
func (m *CommunityPermissions) String() string { return proto.CompactTextString(m) }
|
|
func (*CommunityPermissions) ProtoMessage() {}
|
|
func (*CommunityPermissions) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{2}
|
|
}
|
|
|
|
func (m *CommunityPermissions) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CommunityPermissions.Unmarshal(m, b)
|
|
}
|
|
func (m *CommunityPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CommunityPermissions.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CommunityPermissions) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommunityPermissions.Merge(m, src)
|
|
}
|
|
func (m *CommunityPermissions) XXX_Size() int {
|
|
return xxx_messageInfo_CommunityPermissions.Size(m)
|
|
}
|
|
func (m *CommunityPermissions) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommunityPermissions.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommunityPermissions proto.InternalMessageInfo
|
|
|
|
func (m *CommunityPermissions) GetEnsOnly() bool {
|
|
if m != nil {
|
|
return m.EnsOnly
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *CommunityPermissions) GetPrivate() bool {
|
|
if m != nil {
|
|
return m.Private
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *CommunityPermissions) GetAccess() CommunityPermissions_Access {
|
|
if m != nil {
|
|
return m.Access
|
|
}
|
|
return CommunityPermissions_UNKNOWN_ACCESS
|
|
}
|
|
|
|
type CommunityDescription struct {
|
|
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
|
Members map[string]*CommunityMember `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
Permissions *CommunityPermissions `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
|
Identity *ChatIdentity `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"`
|
|
Chats map[string]*CommunityChat `protobuf:"bytes,6,rep,name=chats,proto3" json:"chats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
BanList []string `protobuf:"bytes,7,rep,name=ban_list,json=banList,proto3" json:"ban_list,omitempty"`
|
|
Categories map[string]*CommunityCategory `protobuf:"bytes,8,rep,name=categories,proto3" json:"categories,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommunityDescription) Reset() { *m = CommunityDescription{} }
|
|
func (m *CommunityDescription) String() string { return proto.CompactTextString(m) }
|
|
func (*CommunityDescription) ProtoMessage() {}
|
|
func (*CommunityDescription) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{3}
|
|
}
|
|
|
|
func (m *CommunityDescription) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CommunityDescription.Unmarshal(m, b)
|
|
}
|
|
func (m *CommunityDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CommunityDescription.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CommunityDescription) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommunityDescription.Merge(m, src)
|
|
}
|
|
func (m *CommunityDescription) XXX_Size() int {
|
|
return xxx_messageInfo_CommunityDescription.Size(m)
|
|
}
|
|
func (m *CommunityDescription) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommunityDescription.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommunityDescription proto.InternalMessageInfo
|
|
|
|
func (m *CommunityDescription) GetClock() uint64 {
|
|
if m != nil {
|
|
return m.Clock
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *CommunityDescription) GetMembers() map[string]*CommunityMember {
|
|
if m != nil {
|
|
return m.Members
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityDescription) GetPermissions() *CommunityPermissions {
|
|
if m != nil {
|
|
return m.Permissions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityDescription) GetIdentity() *ChatIdentity {
|
|
if m != nil {
|
|
return m.Identity
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityDescription) GetChats() map[string]*CommunityChat {
|
|
if m != nil {
|
|
return m.Chats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityDescription) GetBanList() []string {
|
|
if m != nil {
|
|
return m.BanList
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityDescription) GetCategories() map[string]*CommunityCategory {
|
|
if m != nil {
|
|
return m.Categories
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CommunityChat struct {
|
|
Members map[string]*CommunityMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
Permissions *CommunityPermissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"`
|
|
Identity *ChatIdentity `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
|
|
CategoryId string `protobuf:"bytes,4,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
|
|
Position int32 `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommunityChat) Reset() { *m = CommunityChat{} }
|
|
func (m *CommunityChat) String() string { return proto.CompactTextString(m) }
|
|
func (*CommunityChat) ProtoMessage() {}
|
|
func (*CommunityChat) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{4}
|
|
}
|
|
|
|
func (m *CommunityChat) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CommunityChat.Unmarshal(m, b)
|
|
}
|
|
func (m *CommunityChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CommunityChat.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CommunityChat) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommunityChat.Merge(m, src)
|
|
}
|
|
func (m *CommunityChat) XXX_Size() int {
|
|
return xxx_messageInfo_CommunityChat.Size(m)
|
|
}
|
|
func (m *CommunityChat) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommunityChat.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommunityChat proto.InternalMessageInfo
|
|
|
|
func (m *CommunityChat) GetMembers() map[string]*CommunityMember {
|
|
if m != nil {
|
|
return m.Members
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityChat) GetPermissions() *CommunityPermissions {
|
|
if m != nil {
|
|
return m.Permissions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityChat) GetIdentity() *ChatIdentity {
|
|
if m != nil {
|
|
return m.Identity
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityChat) GetCategoryId() string {
|
|
if m != nil {
|
|
return m.CategoryId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommunityChat) GetPosition() int32 {
|
|
if m != nil {
|
|
return m.Position
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CommunityCategory struct {
|
|
CategoryId string `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Position int32 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommunityCategory) Reset() { *m = CommunityCategory{} }
|
|
func (m *CommunityCategory) String() string { return proto.CompactTextString(m) }
|
|
func (*CommunityCategory) ProtoMessage() {}
|
|
func (*CommunityCategory) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{5}
|
|
}
|
|
|
|
func (m *CommunityCategory) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CommunityCategory.Unmarshal(m, b)
|
|
}
|
|
func (m *CommunityCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CommunityCategory.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CommunityCategory) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommunityCategory.Merge(m, src)
|
|
}
|
|
func (m *CommunityCategory) XXX_Size() int {
|
|
return xxx_messageInfo_CommunityCategory.Size(m)
|
|
}
|
|
func (m *CommunityCategory) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommunityCategory.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommunityCategory proto.InternalMessageInfo
|
|
|
|
func (m *CommunityCategory) GetCategoryId() string {
|
|
if m != nil {
|
|
return m.CategoryId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommunityCategory) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommunityCategory) GetPosition() int32 {
|
|
if m != nil {
|
|
return m.Position
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CommunityInvitation struct {
|
|
CommunityDescription []byte `protobuf:"bytes,1,opt,name=community_description,json=communityDescription,proto3" json:"community_description,omitempty"`
|
|
Grant []byte `protobuf:"bytes,2,opt,name=grant,proto3" json:"grant,omitempty"`
|
|
ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
|
PublicKey []byte `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommunityInvitation) Reset() { *m = CommunityInvitation{} }
|
|
func (m *CommunityInvitation) String() string { return proto.CompactTextString(m) }
|
|
func (*CommunityInvitation) ProtoMessage() {}
|
|
func (*CommunityInvitation) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{6}
|
|
}
|
|
|
|
func (m *CommunityInvitation) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CommunityInvitation.Unmarshal(m, b)
|
|
}
|
|
func (m *CommunityInvitation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CommunityInvitation.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CommunityInvitation) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommunityInvitation.Merge(m, src)
|
|
}
|
|
func (m *CommunityInvitation) XXX_Size() int {
|
|
return xxx_messageInfo_CommunityInvitation.Size(m)
|
|
}
|
|
func (m *CommunityInvitation) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommunityInvitation.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommunityInvitation proto.InternalMessageInfo
|
|
|
|
func (m *CommunityInvitation) GetCommunityDescription() []byte {
|
|
if m != nil {
|
|
return m.CommunityDescription
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityInvitation) GetGrant() []byte {
|
|
if m != nil {
|
|
return m.Grant
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityInvitation) GetChatId() string {
|
|
if m != nil {
|
|
return m.ChatId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommunityInvitation) GetPublicKey() []byte {
|
|
if m != nil {
|
|
return m.PublicKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CommunityRequestToJoin struct {
|
|
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
|
EnsName string `protobuf:"bytes,2,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"`
|
|
ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
|
CommunityId []byte `protobuf:"bytes,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommunityRequestToJoin) Reset() { *m = CommunityRequestToJoin{} }
|
|
func (m *CommunityRequestToJoin) String() string { return proto.CompactTextString(m) }
|
|
func (*CommunityRequestToJoin) ProtoMessage() {}
|
|
func (*CommunityRequestToJoin) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{7}
|
|
}
|
|
|
|
func (m *CommunityRequestToJoin) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CommunityRequestToJoin.Unmarshal(m, b)
|
|
}
|
|
func (m *CommunityRequestToJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CommunityRequestToJoin.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CommunityRequestToJoin) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommunityRequestToJoin.Merge(m, src)
|
|
}
|
|
func (m *CommunityRequestToJoin) XXX_Size() int {
|
|
return xxx_messageInfo_CommunityRequestToJoin.Size(m)
|
|
}
|
|
func (m *CommunityRequestToJoin) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommunityRequestToJoin.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommunityRequestToJoin proto.InternalMessageInfo
|
|
|
|
func (m *CommunityRequestToJoin) GetClock() uint64 {
|
|
if m != nil {
|
|
return m.Clock
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *CommunityRequestToJoin) GetEnsName() string {
|
|
if m != nil {
|
|
return m.EnsName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommunityRequestToJoin) GetChatId() string {
|
|
if m != nil {
|
|
return m.ChatId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CommunityRequestToJoin) GetCommunityId() []byte {
|
|
if m != nil {
|
|
return m.CommunityId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CommunityRequestToJoinResponse struct {
|
|
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
|
Community *CommunityDescription `protobuf:"bytes,2,opt,name=community,proto3" json:"community,omitempty"`
|
|
Accepted bool `protobuf:"varint,3,opt,name=accepted,proto3" json:"accepted,omitempty"`
|
|
Grant []byte `protobuf:"bytes,4,opt,name=grant,proto3" json:"grant,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CommunityRequestToJoinResponse) Reset() { *m = CommunityRequestToJoinResponse{} }
|
|
func (m *CommunityRequestToJoinResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CommunityRequestToJoinResponse) ProtoMessage() {}
|
|
func (*CommunityRequestToJoinResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f937943d74c1cd8b, []int{8}
|
|
}
|
|
|
|
func (m *CommunityRequestToJoinResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CommunityRequestToJoinResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *CommunityRequestToJoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CommunityRequestToJoinResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CommunityRequestToJoinResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CommunityRequestToJoinResponse.Merge(m, src)
|
|
}
|
|
func (m *CommunityRequestToJoinResponse) XXX_Size() int {
|
|
return xxx_messageInfo_CommunityRequestToJoinResponse.Size(m)
|
|
}
|
|
func (m *CommunityRequestToJoinResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CommunityRequestToJoinResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CommunityRequestToJoinResponse proto.InternalMessageInfo
|
|
|
|
func (m *CommunityRequestToJoinResponse) GetClock() uint64 {
|
|
if m != nil {
|
|
return m.Clock
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *CommunityRequestToJoinResponse) GetCommunity() *CommunityDescription {
|
|
if m != nil {
|
|
return m.Community
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CommunityRequestToJoinResponse) GetAccepted() bool {
|
|
if m != nil {
|
|
return m.Accepted
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *CommunityRequestToJoinResponse) GetGrant() []byte {
|
|
if m != nil {
|
|
return m.Grant
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("protobuf.CommunityMember_Roles", CommunityMember_Roles_name, CommunityMember_Roles_value)
|
|
proto.RegisterEnum("protobuf.CommunityPermissions_Access", CommunityPermissions_Access_name, CommunityPermissions_Access_value)
|
|
proto.RegisterType((*Grant)(nil), "protobuf.Grant")
|
|
proto.RegisterType((*CommunityMember)(nil), "protobuf.CommunityMember")
|
|
proto.RegisterType((*CommunityPermissions)(nil), "protobuf.CommunityPermissions")
|
|
proto.RegisterType((*CommunityDescription)(nil), "protobuf.CommunityDescription")
|
|
proto.RegisterMapType((map[string]*CommunityCategory)(nil), "protobuf.CommunityDescription.CategoriesEntry")
|
|
proto.RegisterMapType((map[string]*CommunityChat)(nil), "protobuf.CommunityDescription.ChatsEntry")
|
|
proto.RegisterMapType((map[string]*CommunityMember)(nil), "protobuf.CommunityDescription.MembersEntry")
|
|
proto.RegisterType((*CommunityChat)(nil), "protobuf.CommunityChat")
|
|
proto.RegisterMapType((map[string]*CommunityMember)(nil), "protobuf.CommunityChat.MembersEntry")
|
|
proto.RegisterType((*CommunityCategory)(nil), "protobuf.CommunityCategory")
|
|
proto.RegisterType((*CommunityInvitation)(nil), "protobuf.CommunityInvitation")
|
|
proto.RegisterType((*CommunityRequestToJoin)(nil), "protobuf.CommunityRequestToJoin")
|
|
proto.RegisterType((*CommunityRequestToJoinResponse)(nil), "protobuf.CommunityRequestToJoinResponse")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("communities.proto", fileDescriptor_f937943d74c1cd8b)
|
|
}
|
|
|
|
var fileDescriptor_f937943d74c1cd8b = []byte{
|
|
// 859 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x6d, 0x8f, 0xdb, 0x44,
|
|
0x10, 0xee, 0x26, 0x71, 0xe2, 0x4c, 0x72, 0x77, 0xbe, 0xbd, 0x6b, 0xeb, 0x5e, 0x45, 0x1b, 0x2c,
|
|
0x90, 0x82, 0x10, 0xa9, 0x48, 0x85, 0x84, 0x78, 0x29, 0xa4, 0x87, 0x55, 0x4c, 0x73, 0x4e, 0xbb,
|
|
0xc9, 0x81, 0xe8, 0x17, 0xcb, 0x71, 0x96, 0xb2, 0x6a, 0x62, 0x1b, 0xaf, 0x73, 0x52, 0x7e, 0x00,
|
|
0x12, 0x3f, 0x01, 0x89, 0xef, 0xfc, 0x27, 0xbe, 0xf1, 0x53, 0xd0, 0xee, 0xc6, 0x2f, 0xc9, 0x25,
|
|
0x6d, 0x25, 0xd4, 0x4f, 0xf1, 0xec, 0xee, 0x3c, 0xf3, 0xcc, 0x33, 0x93, 0x19, 0x38, 0x0e, 0xa2,
|
|
0xc5, 0x62, 0x19, 0xb2, 0x94, 0x51, 0xde, 0x8b, 0x93, 0x28, 0x8d, 0xb0, 0x2e, 0x7f, 0xa6, 0xcb,
|
|
0x5f, 0xce, 0x4e, 0x82, 0x5f, 0xfd, 0xd4, 0x63, 0x33, 0x1a, 0xa6, 0x2c, 0x5d, 0xa9, 0x6b, 0xeb,
|
|
0x0a, 0xb4, 0x27, 0x89, 0x1f, 0xa6, 0xf8, 0x7d, 0x68, 0x67, 0xce, 0x2b, 0x8f, 0xcd, 0x4c, 0xd4,
|
|
0x41, 0xdd, 0x36, 0x69, 0xe5, 0x67,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