567 lines
22 KiB
Go
567 lines
22 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 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 {
|
||
|
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
|
||
|
|
||
|
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"`
|
||
|
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
|
||
|
}
|
||
|
|
||
|
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"`
|
||
|
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
|
||
|
}
|
||
|
|
||
|
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{5}
|
||
|
}
|
||
|
|
||
|
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 CommunityRequestJoin struct {
|
||
|
EnsName string `protobuf:"bytes,1,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"`
|
||
|
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
|
CommunityId []byte `protobuf:"bytes,3,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 *CommunityRequestJoin) Reset() { *m = CommunityRequestJoin{} }
|
||
|
func (m *CommunityRequestJoin) String() string { return proto.CompactTextString(m) }
|
||
|
func (*CommunityRequestJoin) ProtoMessage() {}
|
||
|
func (*CommunityRequestJoin) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_f937943d74c1cd8b, []int{6}
|
||
|
}
|
||
|
|
||
|
func (m *CommunityRequestJoin) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_CommunityRequestJoin.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *CommunityRequestJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_CommunityRequestJoin.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *CommunityRequestJoin) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_CommunityRequestJoin.Merge(m, src)
|
||
|
}
|
||
|
func (m *CommunityRequestJoin) XXX_Size() int {
|
||
|
return xxx_messageInfo_CommunityRequestJoin.Size(m)
|
||
|
}
|
||
|
func (m *CommunityRequestJoin) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_CommunityRequestJoin.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_CommunityRequestJoin proto.InternalMessageInfo
|
||
|
|
||
|
func (m *CommunityRequestJoin) GetEnsName() string {
|
||
|
if m != nil {
|
||
|
return m.EnsName
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *CommunityRequestJoin) GetChatId() string {
|
||
|
if m != nil {
|
||
|
return m.ChatId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *CommunityRequestJoin) GetCommunityId() []byte {
|
||
|
if m != nil {
|
||
|
return m.CommunityId
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type CommunityRequestJoinResponse struct {
|
||
|
Community *CommunityDescription `protobuf:"bytes,1,opt,name=community,proto3" json:"community,omitempty"`
|
||
|
Accepted bool `protobuf:"varint,2,opt,name=accepted,proto3" json:"accepted,omitempty"`
|
||
|
Grant []byte `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *CommunityRequestJoinResponse) Reset() { *m = CommunityRequestJoinResponse{} }
|
||
|
func (m *CommunityRequestJoinResponse) String() string { return proto.CompactTextString(m) }
|
||
|
func (*CommunityRequestJoinResponse) ProtoMessage() {}
|
||
|
func (*CommunityRequestJoinResponse) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_f937943d74c1cd8b, []int{7}
|
||
|
}
|
||
|
|
||
|
func (m *CommunityRequestJoinResponse) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_CommunityRequestJoinResponse.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *CommunityRequestJoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_CommunityRequestJoinResponse.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *CommunityRequestJoinResponse) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_CommunityRequestJoinResponse.Merge(m, src)
|
||
|
}
|
||
|
func (m *CommunityRequestJoinResponse) XXX_Size() int {
|
||
|
return xxx_messageInfo_CommunityRequestJoinResponse.Size(m)
|
||
|
}
|
||
|
func (m *CommunityRequestJoinResponse) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_CommunityRequestJoinResponse.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_CommunityRequestJoinResponse proto.InternalMessageInfo
|
||
|
|
||
|
func (m *CommunityRequestJoinResponse) GetCommunity() *CommunityDescription {
|
||
|
if m != nil {
|
||
|
return m.Community
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *CommunityRequestJoinResponse) GetAccepted() bool {
|
||
|
if m != nil {
|
||
|
return m.Accepted
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (m *CommunityRequestJoinResponse) GetGrant() []byte {
|
||
|
if m != nil {
|
||
|
return m.Grant
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
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]*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((*CommunityInvitation)(nil), "protobuf.CommunityInvitation")
|
||
|
proto.RegisterType((*CommunityRequestJoin)(nil), "protobuf.CommunityRequestJoin")
|
||
|
proto.RegisterType((*CommunityRequestJoinResponse)(nil), "protobuf.CommunityRequestJoinResponse")
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterFile("communities.proto", fileDescriptor_f937943d74c1cd8b)
|
||
|
}
|
||
|
|
||
|
var fileDescriptor_f937943d74c1cd8b = []byte{
|
||
|
// 662 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xdd, 0x6e, 0xd3, 0x4a,
|
||
|
0x10, 0x3e, 0xb6, 0x9b, 0xc4, 0x99, 0xf4, 0x27, 0xdd, 0xf6, 0x9c, 0xba, 0x39, 0x80, 0x82, 0x05,
|
||
|
0x52, 0x10, 0x22, 0x48, 0xe9, 0x0d, 0x42, 0xfc, 0x95, 0x62, 0x81, 0x29, 0x75, 0xda, 0x4d, 0x0a,
|
||
|
0xe2, 0xca, 0x72, 0xec, 0x05, 0xac, 0xc6, 0x6b, 0xe3, 0x75, 0x22, 0xe5, 0x25, 0xb8, 0xe6, 0x82,
|
||
|
0xc7, 0xe2, 0x01, 0x78, 0x14, 0xe4, 0x5d, 0x3b, 0x76, 0xc1, 0x85, 0x4a, 0x88, 0xab, 0x64, 0x77,
|
||
|
0xf6, 0xfb, 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