cc

package
v0.0.0-...-6443788 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Role_name = map[int32]string{
		0: "NOACCESS",
		1: "USER",
		2: "OWNER",
		3: "ADMIN",
	}
	Role_value = map[string]int32{
		"NOACCESS": 0,
		"USER":     1,
		"OWNER":    2,
		"ADMIN":    3,
	}
)

Enum value maps for Role.

View Source
var (
	Status_name = map[int32]string{
		0: "NEW",
		1: "OPEN",
		2: "RESOLVE",
		3: "CLOSE",
	}
	Status_value = map[string]int32{
		"NEW":     0,
		"OPEN":    1,
		"RESOLVE": 2,
		"CLOSE":   3,
	}
)

Enum value maps for Status.

View Source
var (
	Kind_name = map[int32]string{
		0: "DEFAULT",
		1: "ADMIN_ONLY",
		2: "FOR_BOT",
	}
	Kind_value = map[string]int32{
		"DEFAULT":    0,
		"ADMIN_ONLY": 1,
		"FOR_BOT":    2,
	}
)

Enum value maps for Kind.

View Source
var (
	EventType_name = map[int32]string{
		0: "PING",
		1: "CHAT_CREATED",
		2: "CHAT_UPDATED",
		3: "CHAT_DELETED",
		4: "CHAT_READ",
		5: "MESSAGE_SENT",
		6: "MESSAGE_UPDATED",
		7: "MESSAGE_DELETED",
	}
	EventType_value = map[string]int32{
		"PING":            0,
		"CHAT_CREATED":    1,
		"CHAT_UPDATED":    2,
		"CHAT_DELETED":    3,
		"CHAT_READ":       4,
		"MESSAGE_SENT":    5,
		"MESSAGE_UPDATED": 6,
		"MESSAGE_DELETED": 7,
	}
)

Enum value maps for EventType.

View Source
var File_cc_cc_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Type    string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Attachment) Descriptor deprecated

func (*Attachment) Descriptor() ([]byte, []int)

Deprecated: Use Attachment.ProtoReflect.Descriptor instead.

func (*Attachment) GetContent

func (x *Attachment) GetContent() []byte

func (*Attachment) GetType

func (x *Attachment) GetType() string

func (*Attachment) ProtoMessage

func (*Attachment) ProtoMessage()

func (*Attachment) ProtoReflect

func (x *Attachment) ProtoReflect() protoreflect.Message

func (*Attachment) Reset

func (x *Attachment) Reset()

func (*Attachment) String

func (x *Attachment) String() string

func (*Attachment) Validate

func (m *Attachment) Validate() error

Validate checks the field values on Attachment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Attachment) ValidateAll

func (m *Attachment) ValidateAll() error

ValidateAll checks the field values on Attachment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttachmentMultiError, or nil if none found.

type AttachmentMultiError

type AttachmentMultiError []error

AttachmentMultiError is an error wrapping multiple validation errors returned by Attachment.ValidateAll() if the designated constraints aren't met.

func (AttachmentMultiError) AllErrors

func (m AttachmentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AttachmentMultiError) Error

func (m AttachmentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AttachmentValidationError

type AttachmentValidationError struct {
	// contains filtered or unexported fields
}

AttachmentValidationError is the validation error returned by Attachment.Validate if the designated constraints aren't met.

func (AttachmentValidationError) Cause

func (e AttachmentValidationError) Cause() error

Cause function returns cause value.

func (AttachmentValidationError) Error

Error satisfies the builtin error interface

func (AttachmentValidationError) ErrorName

func (e AttachmentValidationError) ErrorName() string

ErrorName returns error name.

func (AttachmentValidationError) Field

Field function returns field value.

func (AttachmentValidationError) Key

Key function returns key value.

func (AttachmentValidationError) Reason

func (e AttachmentValidationError) Reason() string

Reason function returns reason value.

type Chat

type Chat struct {
	Uuid        string                     `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Users       []string                   `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
	Admins      []string                   `protobuf:"bytes,3,rep,name=admins,proto3" json:"admins,omitempty"`
	Owner       string                     `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	Gateways    []string                   `protobuf:"bytes,5,rep,name=gateways,proto3" json:"gateways,omitempty"`
	Role        Role                       `protobuf:"varint,6,opt,name=role,proto3,enum=cc.Role" json:"role,omitempty"`
	Topic       *string                    `protobuf:"bytes,7,opt,name=topic,proto3,oneof" json:"topic,omitempty"`
	Meta        *ChatMeta                  `protobuf:"bytes,8,opt,name=meta,proto3,oneof" json:"meta,omitempty"`
	Created     int64                      `protobuf:"varint,9,opt,name=created,proto3" json:"created,omitempty"`
	Status      Status                     `protobuf:"varint,10,opt,name=status,proto3,enum=cc.Status" json:"status,omitempty"`
	Department  string                     `protobuf:"bytes,11,opt,name=department,proto3" json:"department,omitempty"`
	Responsible *string                    `protobuf:"bytes,12,opt,name=responsible,proto3,oneof" json:"responsible,omitempty"`
	BotState    map[string]*structpb.Value `` /* 174-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Chat) Descriptor deprecated

func (*Chat) Descriptor() ([]byte, []int)

Deprecated: Use Chat.ProtoReflect.Descriptor instead.

func (*Chat) GetAdmins

func (x *Chat) GetAdmins() []string

func (*Chat) GetBotState

func (x *Chat) GetBotState() map[string]*structpb.Value

func (*Chat) GetCreated

func (x *Chat) GetCreated() int64

func (*Chat) GetDepartment

func (x *Chat) GetDepartment() string

func (*Chat) GetGateways

func (x *Chat) GetGateways() []string

func (*Chat) GetMeta

func (x *Chat) GetMeta() *ChatMeta

func (*Chat) GetOwner

func (x *Chat) GetOwner() string

func (*Chat) GetResponsible

func (x *Chat) GetResponsible() string

func (*Chat) GetRole

func (x *Chat) GetRole() Role

func (*Chat) GetStatus

func (x *Chat) GetStatus() Status

func (*Chat) GetTopic

func (x *Chat) GetTopic() string

func (*Chat) GetUsers

func (x *Chat) GetUsers() []string

func (*Chat) GetUuid

func (x *Chat) GetUuid() string

func (*Chat) ProtoMessage

func (*Chat) ProtoMessage()

func (*Chat) ProtoReflect

func (x *Chat) ProtoReflect() protoreflect.Message

func (*Chat) Reset

func (x *Chat) Reset()

func (*Chat) String

func (x *Chat) String() string

func (*Chat) Validate

func (m *Chat) Validate() error

Validate checks the field values on Chat with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Chat) ValidateAll

func (m *Chat) ValidateAll() error

ValidateAll checks the field values on Chat with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChatMultiError, or nil if none found.

type ChatMeta

type ChatMeta struct {
	Unread       int32                      `protobuf:"varint,1,opt,name=unread,proto3" json:"unread,omitempty"`
	FirstMessage *Message                   `protobuf:"bytes,2,opt,name=first_message,json=firstMessage,proto3" json:"first_message,omitempty"`
	LastMessage  *Message                   `protobuf:"bytes,3,opt,name=last_message,json=lastMessage,proto3" json:"last_message,omitempty"`
	Data         map[string]*structpb.Value `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ChatMeta) Descriptor deprecated

func (*ChatMeta) Descriptor() ([]byte, []int)

Deprecated: Use ChatMeta.ProtoReflect.Descriptor instead.

func (*ChatMeta) GetData

func (x *ChatMeta) GetData() map[string]*structpb.Value

func (*ChatMeta) GetFirstMessage

func (x *ChatMeta) GetFirstMessage() *Message

func (*ChatMeta) GetLastMessage

func (x *ChatMeta) GetLastMessage() *Message

func (*ChatMeta) GetUnread

func (x *ChatMeta) GetUnread() int32

func (*ChatMeta) ProtoMessage

func (*ChatMeta) ProtoMessage()

func (*ChatMeta) ProtoReflect

func (x *ChatMeta) ProtoReflect() protoreflect.Message

func (*ChatMeta) Reset

func (x *ChatMeta) Reset()

func (*ChatMeta) String

func (x *ChatMeta) String() string

func (*ChatMeta) Validate

func (m *ChatMeta) Validate() error

Validate checks the field values on ChatMeta with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ChatMeta) ValidateAll

func (m *ChatMeta) ValidateAll() error

ValidateAll checks the field values on ChatMeta with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChatMetaMultiError, or nil if none found.

type ChatMetaMultiError

type ChatMetaMultiError []error

ChatMetaMultiError is an error wrapping multiple validation errors returned by ChatMeta.ValidateAll() if the designated constraints aren't met.

func (ChatMetaMultiError) AllErrors

func (m ChatMetaMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChatMetaMultiError) Error

func (m ChatMetaMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ChatMetaValidationError

type ChatMetaValidationError struct {
	// contains filtered or unexported fields
}

ChatMetaValidationError is the validation error returned by ChatMeta.Validate if the designated constraints aren't met.

func (ChatMetaValidationError) Cause

func (e ChatMetaValidationError) Cause() error

Cause function returns cause value.

func (ChatMetaValidationError) Error

func (e ChatMetaValidationError) Error() string

Error satisfies the builtin error interface

func (ChatMetaValidationError) ErrorName

func (e ChatMetaValidationError) ErrorName() string

ErrorName returns error name.

func (ChatMetaValidationError) Field

func (e ChatMetaValidationError) Field() string

Field function returns field value.

func (ChatMetaValidationError) Key

func (e ChatMetaValidationError) Key() bool

Key function returns key value.

func (ChatMetaValidationError) Reason

func (e ChatMetaValidationError) Reason() string

Reason function returns reason value.

type ChatMultiError

type ChatMultiError []error

ChatMultiError is an error wrapping multiple validation errors returned by Chat.ValidateAll() if the designated constraints aren't met.

func (ChatMultiError) AllErrors

func (m ChatMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChatMultiError) Error

func (m ChatMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ChatValidationError

type ChatValidationError struct {
	// contains filtered or unexported fields
}

ChatValidationError is the validation error returned by Chat.Validate if the designated constraints aren't met.

func (ChatValidationError) Cause

func (e ChatValidationError) Cause() error

Cause function returns cause value.

func (ChatValidationError) Error

func (e ChatValidationError) Error() string

Error satisfies the builtin error interface

func (ChatValidationError) ErrorName

func (e ChatValidationError) ErrorName() string

ErrorName returns error name.

func (ChatValidationError) Field

func (e ChatValidationError) Field() string

Field function returns field value.

func (ChatValidationError) Key

func (e ChatValidationError) Key() bool

Key function returns key value.

func (ChatValidationError) Reason

func (e ChatValidationError) Reason() string

Reason function returns reason value.

type Chats

type Chats struct {
	Chats []*Chat `protobuf:"bytes,1,rep,name=chats,proto3" json:"chats,omitempty"`
	// contains filtered or unexported fields
}

func (*Chats) Descriptor deprecated

func (*Chats) Descriptor() ([]byte, []int)

Deprecated: Use Chats.ProtoReflect.Descriptor instead.

func (*Chats) GetChats

func (x *Chats) GetChats() []*Chat

func (*Chats) ProtoMessage

func (*Chats) ProtoMessage()

func (*Chats) ProtoReflect

func (x *Chats) ProtoReflect() protoreflect.Message

func (*Chats) Reset

func (x *Chats) Reset()

func (*Chats) String

func (x *Chats) String() string

func (*Chats) Validate

func (m *Chats) Validate() error

Validate checks the field values on Chats with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Chats) ValidateAll

func (m *Chats) ValidateAll() error

ValidateAll checks the field values on Chats with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChatsMultiError, or nil if none found.

type ChatsMultiError

type ChatsMultiError []error

ChatsMultiError is an error wrapping multiple validation errors returned by Chats.ValidateAll() if the designated constraints aren't met.

func (ChatsMultiError) AllErrors

func (m ChatsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChatsMultiError) Error

func (m ChatsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ChatsValidationError

type ChatsValidationError struct {
	// contains filtered or unexported fields
}

ChatsValidationError is the validation error returned by Chats.Validate if the designated constraints aren't met.

func (ChatsValidationError) Cause

func (e ChatsValidationError) Cause() error

Cause function returns cause value.

func (ChatsValidationError) Error

func (e ChatsValidationError) Error() string

Error satisfies the builtin error interface

func (ChatsValidationError) ErrorName

func (e ChatsValidationError) ErrorName() string

ErrorName returns error name.

func (ChatsValidationError) Field

func (e ChatsValidationError) Field() string

Field function returns field value.

func (ChatsValidationError) Key

func (e ChatsValidationError) Key() bool

Key function returns key value.

func (ChatsValidationError) Reason

func (e ChatsValidationError) Reason() string

Reason function returns reason value.

type Defaults

type Defaults struct {
	Gateways    []string           `protobuf:"bytes,1,rep,name=gateways,proto3" json:"gateways,omitempty"`
	Admins      []string           `protobuf:"bytes,2,rep,name=admins,proto3" json:"admins,omitempty"`
	Departments []*Department      `protobuf:"bytes,3,rep,name=departments,proto3" json:"departments,omitempty"`
	Metrics     map[string]*Metric `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Defaults) Descriptor deprecated

func (*Defaults) Descriptor() ([]byte, []int)

Deprecated: Use Defaults.ProtoReflect.Descriptor instead.

func (*Defaults) GetAdmins

func (x *Defaults) GetAdmins() []string

func (*Defaults) GetDepartments

func (x *Defaults) GetDepartments() []*Department

func (*Defaults) GetGateways

func (x *Defaults) GetGateways() []string

func (*Defaults) GetMetrics

func (x *Defaults) GetMetrics() map[string]*Metric

func (*Defaults) ProtoMessage

func (*Defaults) ProtoMessage()

func (*Defaults) ProtoReflect

func (x *Defaults) ProtoReflect() protoreflect.Message

func (*Defaults) Reset

func (x *Defaults) Reset()

func (*Defaults) String

func (x *Defaults) String() string

func (*Defaults) Validate

func (m *Defaults) Validate() error

Validate checks the field values on Defaults with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Defaults) ValidateAll

func (m *Defaults) ValidateAll() error

ValidateAll checks the field values on Defaults with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DefaultsMultiError, or nil if none found.

type DefaultsMultiError

type DefaultsMultiError []error

DefaultsMultiError is an error wrapping multiple validation errors returned by Defaults.ValidateAll() if the designated constraints aren't met.

func (DefaultsMultiError) AllErrors

func (m DefaultsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DefaultsMultiError) Error

func (m DefaultsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DefaultsValidationError

type DefaultsValidationError struct {
	// contains filtered or unexported fields
}

DefaultsValidationError is the validation error returned by Defaults.Validate if the designated constraints aren't met.

func (DefaultsValidationError) Cause

func (e DefaultsValidationError) Cause() error

Cause function returns cause value.

func (DefaultsValidationError) Error

func (e DefaultsValidationError) Error() string

Error satisfies the builtin error interface

func (DefaultsValidationError) ErrorName

func (e DefaultsValidationError) ErrorName() string

ErrorName returns error name.

func (DefaultsValidationError) Field

func (e DefaultsValidationError) Field() string

Field function returns field value.

func (DefaultsValidationError) Key

func (e DefaultsValidationError) Key() bool

Key function returns key value.

func (DefaultsValidationError) Reason

func (e DefaultsValidationError) Reason() string

Reason function returns reason value.

type Department

type Department struct {
	Key         string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Title       string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Admins      []string `protobuf:"bytes,4,rep,name=admins,proto3" json:"admins,omitempty"`
	Public      bool     `protobuf:"varint,5,opt,name=public,proto3" json:"public,omitempty"`
	WhmcsId     *string  `protobuf:"bytes,6,opt,name=whmcs_id,json=whmcsId,proto3,oneof" json:"whmcs_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Department) Descriptor deprecated

func (*Department) Descriptor() ([]byte, []int)

Deprecated: Use Department.ProtoReflect.Descriptor instead.

func (*Department) GetAdmins

func (x *Department) GetAdmins() []string

func (*Department) GetDescription

func (x *Department) GetDescription() string

func (*Department) GetKey

func (x *Department) GetKey() string

func (*Department) GetPublic

func (x *Department) GetPublic() bool

func (*Department) GetTitle

func (x *Department) GetTitle() string

func (*Department) GetWhmcsId

func (x *Department) GetWhmcsId() string

func (*Department) ProtoMessage

func (*Department) ProtoMessage()

func (*Department) ProtoReflect

func (x *Department) ProtoReflect() protoreflect.Message

func (*Department) Reset

func (x *Department) Reset()

func (*Department) String

func (x *Department) String() string

func (*Department) Validate

func (m *Department) Validate() error

Validate checks the field values on Department with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Department) ValidateAll

func (m *Department) ValidateAll() error

ValidateAll checks the field values on Department with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DepartmentMultiError, or nil if none found.

type DepartmentMultiError

type DepartmentMultiError []error

DepartmentMultiError is an error wrapping multiple validation errors returned by Department.ValidateAll() if the designated constraints aren't met.

func (DepartmentMultiError) AllErrors

func (m DepartmentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DepartmentMultiError) Error

func (m DepartmentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DepartmentValidationError

type DepartmentValidationError struct {
	// contains filtered or unexported fields
}

DepartmentValidationError is the validation error returned by Department.Validate if the designated constraints aren't met.

func (DepartmentValidationError) Cause

func (e DepartmentValidationError) Cause() error

Cause function returns cause value.

func (DepartmentValidationError) Error

Error satisfies the builtin error interface

func (DepartmentValidationError) ErrorName

func (e DepartmentValidationError) ErrorName() string

ErrorName returns error name.

func (DepartmentValidationError) Field

Field function returns field value.

func (DepartmentValidationError) Key

Key function returns key value.

func (DepartmentValidationError) Reason

func (e DepartmentValidationError) Reason() string

Reason function returns reason value.

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

func (*Empty) Validate

func (m *Empty) Validate() error

Validate checks the field values on Empty with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Empty) ValidateAll

func (m *Empty) ValidateAll() error

ValidateAll checks the field values on Empty with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EmptyMultiError, or nil if none found.

type EmptyMultiError

type EmptyMultiError []error

EmptyMultiError is an error wrapping multiple validation errors returned by Empty.ValidateAll() if the designated constraints aren't met.

func (EmptyMultiError) AllErrors

func (m EmptyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmptyMultiError) Error

func (m EmptyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EmptyValidationError

type EmptyValidationError struct {
	// contains filtered or unexported fields
}

EmptyValidationError is the validation error returned by Empty.Validate if the designated constraints aren't met.

func (EmptyValidationError) Cause

func (e EmptyValidationError) Cause() error

Cause function returns cause value.

func (EmptyValidationError) Error

func (e EmptyValidationError) Error() string

Error satisfies the builtin error interface

func (EmptyValidationError) ErrorName

func (e EmptyValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyValidationError) Field

func (e EmptyValidationError) Field() string

Field function returns field value.

func (EmptyValidationError) Key

func (e EmptyValidationError) Key() bool

Key function returns key value.

func (EmptyValidationError) Reason

func (e EmptyValidationError) Reason() string

Reason function returns reason value.

type Event

type Event struct {
	Type EventType `protobuf:"varint,1,opt,name=type,proto3,enum=cc.EventType" json:"type,omitempty"`
	// Types that are assignable to Item:
	//
	//	*Event_Chat
	//	*Event_Msg
	Item isEvent_Item `protobuf_oneof:"item"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetChat

func (x *Event) GetChat() *Chat

func (*Event) GetItem

func (m *Event) GetItem() isEvent_Item

func (*Event) GetMsg

func (x *Event) GetMsg() *Message

func (*Event) GetType

func (x *Event) GetType() EventType

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

func (*Event) Validate

func (m *Event) Validate() error

Validate checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Event) ValidateAll

func (m *Event) ValidateAll() error

ValidateAll checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EventMultiError, or nil if none found.

type EventMultiError

type EventMultiError []error

EventMultiError is an error wrapping multiple validation errors returned by Event.ValidateAll() if the designated constraints aren't met.

func (EventMultiError) AllErrors

func (m EventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventMultiError) Error

func (m EventMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EventType

type EventType int32
const (
	EventType_PING            EventType = 0
	EventType_CHAT_CREATED    EventType = 1
	EventType_CHAT_UPDATED    EventType = 2
	EventType_CHAT_DELETED    EventType = 3
	EventType_CHAT_READ       EventType = 4
	EventType_MESSAGE_SENT    EventType = 5
	EventType_MESSAGE_UPDATED EventType = 6
	EventType_MESSAGE_DELETED EventType = 7
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

func (EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

type EventValidationError

type EventValidationError struct {
	// contains filtered or unexported fields
}

EventValidationError is the validation error returned by Event.Validate if the designated constraints aren't met.

func (EventValidationError) Cause

func (e EventValidationError) Cause() error

Cause function returns cause value.

func (EventValidationError) Error

func (e EventValidationError) Error() string

Error satisfies the builtin error interface

func (EventValidationError) ErrorName

func (e EventValidationError) ErrorName() string

ErrorName returns error name.

func (EventValidationError) Field

func (e EventValidationError) Field() string

Field function returns field value.

func (EventValidationError) Key

func (e EventValidationError) Key() bool

Key function returns key value.

func (EventValidationError) Reason

func (e EventValidationError) Reason() string

Reason function returns reason value.

type Event_Chat

type Event_Chat struct {
	Chat *Chat `protobuf:"bytes,2,opt,name=chat,proto3,oneof"`
}

type Event_Msg

type Event_Msg struct {
	Msg *Message `protobuf:"bytes,3,opt,name=msg,proto3,oneof"`
}

type Kind

type Kind int32
const (
	Kind_DEFAULT    Kind = 0
	Kind_ADMIN_ONLY Kind = 1
	Kind_FOR_BOT    Kind = 2
)

func (Kind) Descriptor

func (Kind) Descriptor() protoreflect.EnumDescriptor

func (Kind) Enum

func (x Kind) Enum() *Kind

func (Kind) EnumDescriptor deprecated

func (Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use Kind.Descriptor instead.

func (Kind) Number

func (x Kind) Number() protoreflect.EnumNumber

func (Kind) String

func (x Kind) String() string

func (Kind) Type

func (Kind) Type() protoreflect.EnumType

type Message

type Message struct {
	Uuid        string                     `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Kind        Kind                       `protobuf:"varint,2,opt,name=kind,proto3,enum=cc.Kind" json:"kind,omitempty"`
	Sender      string                     `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	Content     string                     `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	Attachments []string                   `protobuf:"bytes,5,rep,name=attachments,proto3" json:"attachments,omitempty"`
	Gateways    []string                   `protobuf:"bytes,6,rep,name=gateways,proto3" json:"gateways,omitempty"`
	Chat        *string                    `protobuf:"bytes,7,opt,name=chat,proto3,oneof" json:"chat,omitempty"` // Required for Send, Update and Delete requests
	Sent        int64                      `protobuf:"varint,8,opt,name=sent,proto3" json:"sent,omitempty"`
	Edited      int64                      `protobuf:"varint,9,opt,name=edited,proto3" json:"edited,omitempty"`
	UnderReview bool                       `protobuf:"varint,10,opt,name=under_review,json=underReview,proto3" json:"under_review,omitempty"`
	Readers     []string                   `protobuf:"bytes,11,rep,name=readers,proto3" json:"readers,omitempty"`
	Meta        map[string]*structpb.Value `` /* 150-byte string literal not displayed */
	Mentioned   []string                   `protobuf:"bytes,13,rep,name=mentioned,proto3" json:"mentioned,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

func (*Message) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetAttachments

func (x *Message) GetAttachments() []string

func (*Message) GetChat

func (x *Message) GetChat() string

func (*Message) GetContent

func (x *Message) GetContent() string

func (*Message) GetEdited

func (x *Message) GetEdited() int64

func (*Message) GetGateways

func (x *Message) GetGateways() []string

func (*Message) GetKind

func (x *Message) GetKind() Kind

func (*Message) GetMentioned

func (x *Message) GetMentioned() []string

func (*Message) GetMeta

func (x *Message) GetMeta() map[string]*structpb.Value

func (*Message) GetReaders

func (x *Message) GetReaders() []string

func (*Message) GetSender

func (x *Message) GetSender() string

func (*Message) GetSent

func (x *Message) GetSent() int64

func (*Message) GetUnderReview

func (x *Message) GetUnderReview() bool

func (*Message) GetUuid

func (x *Message) GetUuid() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

func (*Message) Validate

func (m *Message) Validate() error

Validate checks the field values on Message with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Message) ValidateAll

func (m *Message) ValidateAll() error

ValidateAll checks the field values on Message with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageMultiError, or nil if none found.

type MessageMultiError

type MessageMultiError []error

MessageMultiError is an error wrapping multiple validation errors returned by Message.ValidateAll() if the designated constraints aren't met.

func (MessageMultiError) AllErrors

func (m MessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MessageMultiError) Error

func (m MessageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MessageValidationError

type MessageValidationError struct {
	// contains filtered or unexported fields
}

MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.

func (MessageValidationError) Cause

func (e MessageValidationError) Cause() error

Cause function returns cause value.

func (MessageValidationError) Error

func (e MessageValidationError) Error() string

Error satisfies the builtin error interface

func (MessageValidationError) ErrorName

func (e MessageValidationError) ErrorName() string

ErrorName returns error name.

func (MessageValidationError) Field

func (e MessageValidationError) Field() string

Field function returns field value.

func (MessageValidationError) Key

func (e MessageValidationError) Key() bool

Key function returns key value.

func (MessageValidationError) Reason

func (e MessageValidationError) Reason() string

Reason function returns reason value.

type Messages

type Messages struct {
	Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*Messages) Descriptor deprecated

func (*Messages) Descriptor() ([]byte, []int)

Deprecated: Use Messages.ProtoReflect.Descriptor instead.

func (*Messages) GetMessages

func (x *Messages) GetMessages() []*Message

func (*Messages) ProtoMessage

func (*Messages) ProtoMessage()

func (*Messages) ProtoReflect

func (x *Messages) ProtoReflect() protoreflect.Message

func (*Messages) Reset

func (x *Messages) Reset()

func (*Messages) String

func (x *Messages) String() string

func (*Messages) Validate

func (m *Messages) Validate() error

Validate checks the field values on Messages with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Messages) ValidateAll

func (m *Messages) ValidateAll() error

ValidateAll checks the field values on Messages with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessagesMultiError, or nil if none found.

type MessagesMultiError

type MessagesMultiError []error

MessagesMultiError is an error wrapping multiple validation errors returned by Messages.ValidateAll() if the designated constraints aren't met.

func (MessagesMultiError) AllErrors

func (m MessagesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MessagesMultiError) Error

func (m MessagesMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MessagesValidationError

type MessagesValidationError struct {
	// contains filtered or unexported fields
}

MessagesValidationError is the validation error returned by Messages.Validate if the designated constraints aren't met.

func (MessagesValidationError) Cause

func (e MessagesValidationError) Cause() error

Cause function returns cause value.

func (MessagesValidationError) Error

func (e MessagesValidationError) Error() string

Error satisfies the builtin error interface

func (MessagesValidationError) ErrorName

func (e MessagesValidationError) ErrorName() string

ErrorName returns error name.

func (MessagesValidationError) Field

func (e MessagesValidationError) Field() string

Field function returns field value.

func (MessagesValidationError) Key

func (e MessagesValidationError) Key() bool

Key function returns key value.

func (MessagesValidationError) Reason

func (e MessagesValidationError) Reason() string

Reason function returns reason value.

type Metric

type Metric struct {
	Title   string    `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Options []*Option `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Metric) Descriptor deprecated

func (*Metric) Descriptor() ([]byte, []int)

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetOptions

func (x *Metric) GetOptions() []*Option

func (*Metric) GetTitle

func (x *Metric) GetTitle() string

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) ProtoReflect

func (x *Metric) ProtoReflect() protoreflect.Message

func (*Metric) Reset

func (x *Metric) Reset()

func (*Metric) String

func (x *Metric) String() string

func (*Metric) Validate

func (m *Metric) Validate() error

Validate checks the field values on Metric with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Metric) ValidateAll

func (m *Metric) ValidateAll() error

ValidateAll checks the field values on Metric with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MetricMultiError, or nil if none found.

type MetricMultiError

type MetricMultiError []error

MetricMultiError is an error wrapping multiple validation errors returned by Metric.ValidateAll() if the designated constraints aren't met.

func (MetricMultiError) AllErrors

func (m MetricMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MetricMultiError) Error

func (m MetricMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MetricValidationError

type MetricValidationError struct {
	// contains filtered or unexported fields
}

MetricValidationError is the validation error returned by Metric.Validate if the designated constraints aren't met.

func (MetricValidationError) Cause

func (e MetricValidationError) Cause() error

Cause function returns cause value.

func (MetricValidationError) Error

func (e MetricValidationError) Error() string

Error satisfies the builtin error interface

func (MetricValidationError) ErrorName

func (e MetricValidationError) ErrorName() string

ErrorName returns error name.

func (MetricValidationError) Field

func (e MetricValidationError) Field() string

Field function returns field value.

func (MetricValidationError) Key

func (e MetricValidationError) Key() bool

Key function returns key value.

func (MetricValidationError) Reason

func (e MetricValidationError) Reason() string

Reason function returns reason value.

type Option

type Option struct {
	Key   string  `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value float32 `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Option) Descriptor deprecated

func (*Option) Descriptor() ([]byte, []int)

Deprecated: Use Option.ProtoReflect.Descriptor instead.

func (*Option) GetKey

func (x *Option) GetKey() string

func (*Option) GetValue

func (x *Option) GetValue() float32

func (*Option) ProtoMessage

func (*Option) ProtoMessage()

func (*Option) ProtoReflect

func (x *Option) ProtoReflect() protoreflect.Message

func (*Option) Reset

func (x *Option) Reset()

func (*Option) String

func (x *Option) String() string

func (*Option) Validate

func (m *Option) Validate() error

Validate checks the field values on Option with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Option) ValidateAll

func (m *Option) ValidateAll() error

ValidateAll checks the field values on Option with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OptionMultiError, or nil if none found.

type OptionMultiError

type OptionMultiError []error

OptionMultiError is an error wrapping multiple validation errors returned by Option.ValidateAll() if the designated constraints aren't met.

func (OptionMultiError) AllErrors

func (m OptionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OptionMultiError) Error

func (m OptionMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OptionValidationError

type OptionValidationError struct {
	// contains filtered or unexported fields
}

OptionValidationError is the validation error returned by Option.Validate if the designated constraints aren't met.

func (OptionValidationError) Cause

func (e OptionValidationError) Cause() error

Cause function returns cause value.

func (OptionValidationError) Error

func (e OptionValidationError) Error() string

Error satisfies the builtin error interface

func (OptionValidationError) ErrorName

func (e OptionValidationError) ErrorName() string

ErrorName returns error name.

func (OptionValidationError) Field

func (e OptionValidationError) Field() string

Field function returns field value.

func (OptionValidationError) Key

func (e OptionValidationError) Key() bool

Key function returns key value.

func (OptionValidationError) Reason

func (e OptionValidationError) Reason() string

Reason function returns reason value.

type Role

type Role int32
const (
	Role_NOACCESS Role = 0
	Role_USER     Role = 1
	Role_OWNER    Role = 2
	Role_ADMIN    Role = 3
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

func (Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

type Status

type Status int32
const (
	Status_NEW     Status = 0
	Status_OPEN    Status = 1
	Status_RESOLVE Status = 2
	Status_CLOSE   Status = 3
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type StreamRequest

type StreamRequest struct {
	Commands map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StreamRequest) Descriptor deprecated

func (*StreamRequest) Descriptor() ([]byte, []int)

Deprecated: Use StreamRequest.ProtoReflect.Descriptor instead.

func (*StreamRequest) GetCommands

func (x *StreamRequest) GetCommands() map[string]string

func (*StreamRequest) ProtoMessage

func (*StreamRequest) ProtoMessage()

func (*StreamRequest) ProtoReflect

func (x *StreamRequest) ProtoReflect() protoreflect.Message

func (*StreamRequest) Reset

func (x *StreamRequest) Reset()

func (*StreamRequest) String

func (x *StreamRequest) String() string

func (*StreamRequest) Validate

func (m *StreamRequest) Validate() error

Validate checks the field values on StreamRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StreamRequest) ValidateAll

func (m *StreamRequest) ValidateAll() error

ValidateAll checks the field values on StreamRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StreamRequestMultiError, or nil if none found.

type StreamRequestMultiError

type StreamRequestMultiError []error

StreamRequestMultiError is an error wrapping multiple validation errors returned by StreamRequest.ValidateAll() if the designated constraints aren't met.

func (StreamRequestMultiError) AllErrors

func (m StreamRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StreamRequestMultiError) Error

func (m StreamRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StreamRequestValidationError

type StreamRequestValidationError struct {
	// contains filtered or unexported fields
}

StreamRequestValidationError is the validation error returned by StreamRequest.Validate if the designated constraints aren't met.

func (StreamRequestValidationError) Cause

Cause function returns cause value.

func (StreamRequestValidationError) Error

Error satisfies the builtin error interface

func (StreamRequestValidationError) ErrorName

func (e StreamRequestValidationError) ErrorName() string

ErrorName returns error name.

func (StreamRequestValidationError) Field

Field function returns field value.

func (StreamRequestValidationError) Key

Key function returns key value.

func (StreamRequestValidationError) Reason

Reason function returns reason value.

type User

type User struct {
	Uuid       string            `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Title      string            `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Data       *structpb.Struct  `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	CcIsBot    bool              `protobuf:"varint,4,opt,name=cc_is_bot,json=ccIsBot,proto3" json:"cc_is_bot,omitempty"`
	CcUsername string            `protobuf:"bytes,5,opt,name=cc_username,json=ccUsername,proto3" json:"cc_username,omitempty"`
	CcCommands map[string]string `` /* 179-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCcCommands

func (x *User) GetCcCommands() map[string]string

func (*User) GetCcIsBot

func (x *User) GetCcIsBot() bool

func (*User) GetCcUsername

func (x *User) GetCcUsername() string

func (*User) GetData

func (x *User) GetData() *structpb.Struct

func (*User) GetTitle

func (x *User) GetTitle() string

func (*User) GetUuid

func (x *User) GetUuid() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

type Users

type Users struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*Users) Descriptor deprecated

func (*Users) Descriptor() ([]byte, []int)

Deprecated: Use Users.ProtoReflect.Descriptor instead.

func (*Users) GetUsers

func (x *Users) GetUsers() []*User

func (*Users) ProtoMessage

func (*Users) ProtoMessage()

func (*Users) ProtoReflect

func (x *Users) ProtoReflect() protoreflect.Message

func (*Users) Reset

func (x *Users) Reset()

func (*Users) String

func (x *Users) String() string

func (*Users) Validate

func (m *Users) Validate() error

Validate checks the field values on Users with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Users) ValidateAll

func (m *Users) ValidateAll() error

ValidateAll checks the field values on Users with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UsersMultiError, or nil if none found.

type UsersMultiError

type UsersMultiError []error

UsersMultiError is an error wrapping multiple validation errors returned by Users.ValidateAll() if the designated constraints aren't met.

func (UsersMultiError) AllErrors

func (m UsersMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UsersMultiError) Error

func (m UsersMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UsersValidationError

type UsersValidationError struct {
	// contains filtered or unexported fields
}

UsersValidationError is the validation error returned by Users.Validate if the designated constraints aren't met.

func (UsersValidationError) Cause

func (e UsersValidationError) Cause() error

Cause function returns cause value.

func (UsersValidationError) Error

func (e UsersValidationError) Error() string

Error satisfies the builtin error interface

func (UsersValidationError) ErrorName

func (e UsersValidationError) ErrorName() string

ErrorName returns error name.

func (UsersValidationError) Field

func (e UsersValidationError) Field() string

Field function returns field value.

func (UsersValidationError) Key

func (e UsersValidationError) Key() bool

Key function returns key value.

func (UsersValidationError) Reason

func (e UsersValidationError) Reason() string

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL