chats_v1beta

package
v0.0.0-...-1e276a6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package chats_v1beta is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ChatsService_ListSessions_FullMethodName = "/gommerce.chats.v1beta.ChatsService/ListSessions"
	ChatsService_ReadSession_FullMethodName  = "/gommerce.chats.v1beta.ChatsService/ReadSession"
	ChatsService_SendRecord_FullMethodName   = "/gommerce.chats.v1beta.ChatsService/SendRecord"
	ChatsService_WatchRecords_FullMethodName = "/gommerce.chats.v1beta.ChatsService/WatchRecords"
)

Variables

View Source
var ChatsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gommerce.chats.v1beta.ChatsService",
	HandlerType: (*ChatsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListSessions",
			Handler:    _ChatsService_ListSessions_Handler,
		},
		{
			MethodName: "ReadSession",
			Handler:    _ChatsService_ReadSession_Handler,
		},
		{
			MethodName: "SendRecord",
			Handler:    _ChatsService_SendRecord_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "WatchRecords",
			Handler:       _ChatsService_WatchRecords_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "gommerce/chats/v1beta/chats.proto",
}

ChatsService_ServiceDesc is the grpc.ServiceDesc for ChatsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_gommerce_chats_v1beta_chats_proto protoreflect.FileDescriptor

Functions

func RegisterChatsServiceHandler

func RegisterChatsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterChatsServiceHandler registers the http handlers for service ChatsService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterChatsServiceHandlerClient

func RegisterChatsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChatsServiceClient) error

RegisterChatsServiceHandlerClient registers the http handlers for service ChatsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ChatsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ChatsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ChatsServiceClient" to call the correct interceptors.

func RegisterChatsServiceHandlerFromEndpoint

func RegisterChatsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterChatsServiceHandlerFromEndpoint is same as RegisterChatsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterChatsServiceHandlerServer

func RegisterChatsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChatsServiceServer) error

RegisterChatsServiceHandlerServer registers the http handlers for service ChatsService to "mux". UnaryRPC :call ChatsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterChatsServiceHandlerFromEndpoint instead.

func RegisterChatsServiceServer

func RegisterChatsServiceServer(s grpc.ServiceRegistrar, srv ChatsServiceServer)

Types

type ChatsServiceClient

type ChatsServiceClient interface {
	ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error)
	ReadSession(ctx context.Context, in *ReadSessionRequest, opts ...grpc.CallOption) (*ReadSessionResponse, error)
	SendRecord(ctx context.Context, in *SendRecordRequest, opts ...grpc.CallOption) (*SendRecordResponse, error)
	WatchRecords(ctx context.Context, in *WatchRecordsRequest, opts ...grpc.CallOption) (ChatsService_WatchRecordsClient, error)
}

ChatsServiceClient is the client API for ChatsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ChatsServiceServer

type ChatsServiceServer interface {
	ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error)
	ReadSession(context.Context, *ReadSessionRequest) (*ReadSessionResponse, error)
	SendRecord(context.Context, *SendRecordRequest) (*SendRecordResponse, error)
	WatchRecords(*WatchRecordsRequest, ChatsService_WatchRecordsServer) error
	// contains filtered or unexported methods
}

ChatsServiceServer is the server API for ChatsService service. All implementations must embed UnimplementedChatsServiceServer for forward compatibility

type ChatsService_WatchRecordsClient

type ChatsService_WatchRecordsClient interface {
	Recv() (*WatchRecordsResponse, error)
	grpc.ClientStream
}

type ChatsService_WatchRecordsServer

type ChatsService_WatchRecordsServer interface {
	Send(*WatchRecordsResponse) error
	grpc.ServerStream
}

type ListSessionsRequest

type ListSessionsRequest struct {
	Page int32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size int32  `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Sort string `protobuf:"bytes,3,opt,name=sort,proto3" json:"sort,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSessionsRequest) Descriptor deprecated

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

Deprecated: Use ListSessionsRequest.ProtoReflect.Descriptor instead.

func (*ListSessionsRequest) GetPage

func (x *ListSessionsRequest) GetPage() int32

func (*ListSessionsRequest) GetSize

func (x *ListSessionsRequest) GetSize() int32

func (*ListSessionsRequest) GetSort

func (x *ListSessionsRequest) GetSort() string

func (*ListSessionsRequest) ProtoMessage

func (*ListSessionsRequest) ProtoMessage()

func (*ListSessionsRequest) ProtoReflect

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

func (*ListSessionsRequest) Reset

func (x *ListSessionsRequest) Reset()

func (*ListSessionsRequest) String

func (x *ListSessionsRequest) String() string

func (*ListSessionsRequest) Validate

func (m *ListSessionsRequest) Validate() error

Validate checks the field values on ListSessionsRequest 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 (*ListSessionsRequest) ValidateAll

func (m *ListSessionsRequest) ValidateAll() error

ValidateAll checks the field values on ListSessionsRequest 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 ListSessionsRequestMultiError, or nil if none found.

type ListSessionsRequestMultiError

type ListSessionsRequestMultiError []error

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

func (ListSessionsRequestMultiError) AllErrors

func (m ListSessionsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListSessionsRequestMultiError) Error

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

type ListSessionsRequestValidationError

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

ListSessionsRequestValidationError is the validation error returned by ListSessionsRequest.Validate if the designated constraints aren't met.

func (ListSessionsRequestValidationError) Cause

Cause function returns cause value.

func (ListSessionsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListSessionsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListSessionsRequestValidationError) Field

Field function returns field value.

func (ListSessionsRequestValidationError) Key

Key function returns key value.

func (ListSessionsRequestValidationError) Reason

Reason function returns reason value.

type ListSessionsResponse

type ListSessionsResponse struct {
	Items []*Session `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Page  int32      `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Size  int32      `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Total int64      `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSessionsResponse) Descriptor deprecated

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

Deprecated: Use ListSessionsResponse.ProtoReflect.Descriptor instead.

func (*ListSessionsResponse) GetItems

func (x *ListSessionsResponse) GetItems() []*Session

func (*ListSessionsResponse) GetPage

func (x *ListSessionsResponse) GetPage() int32

func (*ListSessionsResponse) GetSize

func (x *ListSessionsResponse) GetSize() int32

func (*ListSessionsResponse) GetTotal

func (x *ListSessionsResponse) GetTotal() int64

func (*ListSessionsResponse) ProtoMessage

func (*ListSessionsResponse) ProtoMessage()

func (*ListSessionsResponse) ProtoReflect

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

func (*ListSessionsResponse) Reset

func (x *ListSessionsResponse) Reset()

func (*ListSessionsResponse) String

func (x *ListSessionsResponse) String() string

func (*ListSessionsResponse) Validate

func (m *ListSessionsResponse) Validate() error

Validate checks the field values on ListSessionsResponse 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 (*ListSessionsResponse) ValidateAll

func (m *ListSessionsResponse) ValidateAll() error

ValidateAll checks the field values on ListSessionsResponse 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 ListSessionsResponseMultiError, or nil if none found.

type ListSessionsResponseMultiError

type ListSessionsResponseMultiError []error

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

func (ListSessionsResponseMultiError) AllErrors

func (m ListSessionsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListSessionsResponseMultiError) Error

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

type ListSessionsResponseValidationError

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

ListSessionsResponseValidationError is the validation error returned by ListSessionsResponse.Validate if the designated constraints aren't met.

func (ListSessionsResponseValidationError) Cause

Cause function returns cause value.

func (ListSessionsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListSessionsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListSessionsResponseValidationError) Field

Field function returns field value.

func (ListSessionsResponseValidationError) Key

Key function returns key value.

func (ListSessionsResponseValidationError) Reason

Reason function returns reason value.

type Member

type Member struct {
	UserId      string                  `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	SessionId   string                  `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	CreatedAt   *timestamppb.Timestamp  `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp  `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	ReadCursor  *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=read_cursor,json=readCursor,proto3" json:"read_cursor,omitempty"`
	Permission  int64                   `protobuf:"varint,6,opt,name=permission,proto3" json:"permission,omitempty"`
	Gender      gender.Gender           `protobuf:"varint,7,opt,name=gender,proto3,enum=gommerce.types.v1.Gender" json:"gender,omitempty"`
	DisplayName string                  `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	AvatarUrl   *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	// contains filtered or unexported fields
}

func (*Member) Descriptor deprecated

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

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetAvatarUrl

func (x *Member) GetAvatarUrl() *wrapperspb.StringValue

func (*Member) GetCreatedAt

func (x *Member) GetCreatedAt() *timestamppb.Timestamp

func (*Member) GetDisplayName

func (x *Member) GetDisplayName() string

func (*Member) GetGender

func (x *Member) GetGender() gender.Gender

func (*Member) GetPermission

func (x *Member) GetPermission() int64

func (*Member) GetReadCursor

func (x *Member) GetReadCursor() *wrapperspb.StringValue

func (*Member) GetSessionId

func (x *Member) GetSessionId() string

func (*Member) GetUpdatedAt

func (x *Member) GetUpdatedAt() *timestamppb.Timestamp

func (*Member) GetUserId

func (x *Member) GetUserId() string

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) ProtoReflect

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

func (*Member) Reset

func (x *Member) Reset()

func (*Member) String

func (x *Member) String() string

func (*Member) Validate

func (m *Member) Validate() error

Validate checks the field values on Member 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 (*Member) ValidateAll

func (m *Member) ValidateAll() error

ValidateAll checks the field values on Member 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 MemberMultiError, or nil if none found.

type MemberMultiError

type MemberMultiError []error

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

func (MemberMultiError) AllErrors

func (m MemberMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MemberMultiError) Error

func (m MemberMultiError) Error() string

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

type MemberValidationError

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

MemberValidationError is the validation error returned by Member.Validate if the designated constraints aren't met.

func (MemberValidationError) Cause

func (e MemberValidationError) Cause() error

Cause function returns cause value.

func (MemberValidationError) Error

func (e MemberValidationError) Error() string

Error satisfies the builtin error interface

func (MemberValidationError) ErrorName

func (e MemberValidationError) ErrorName() string

ErrorName returns error name.

func (MemberValidationError) Field

func (e MemberValidationError) Field() string

Field function returns field value.

func (MemberValidationError) Key

func (e MemberValidationError) Key() bool

Key function returns key value.

func (MemberValidationError) Reason

func (e MemberValidationError) Reason() string

Reason function returns reason value.

type ReadSessionRequest

type ReadSessionRequest struct {
	SessionId  string                  `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	ReadCursor *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=read_cursor,json=readCursor,proto3" json:"read_cursor,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadSessionRequest) Descriptor deprecated

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

Deprecated: Use ReadSessionRequest.ProtoReflect.Descriptor instead.

func (*ReadSessionRequest) GetReadCursor

func (x *ReadSessionRequest) GetReadCursor() *wrapperspb.StringValue

func (*ReadSessionRequest) GetSessionId

func (x *ReadSessionRequest) GetSessionId() string

func (*ReadSessionRequest) ProtoMessage

func (*ReadSessionRequest) ProtoMessage()

func (*ReadSessionRequest) ProtoReflect

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

func (*ReadSessionRequest) Reset

func (x *ReadSessionRequest) Reset()

func (*ReadSessionRequest) String

func (x *ReadSessionRequest) String() string

func (*ReadSessionRequest) Validate

func (m *ReadSessionRequest) Validate() error

Validate checks the field values on ReadSessionRequest 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 (*ReadSessionRequest) ValidateAll

func (m *ReadSessionRequest) ValidateAll() error

ValidateAll checks the field values on ReadSessionRequest 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 ReadSessionRequestMultiError, or nil if none found.

type ReadSessionRequestMultiError

type ReadSessionRequestMultiError []error

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

func (ReadSessionRequestMultiError) AllErrors

func (m ReadSessionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReadSessionRequestMultiError) Error

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

type ReadSessionRequestValidationError

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

ReadSessionRequestValidationError is the validation error returned by ReadSessionRequest.Validate if the designated constraints aren't met.

func (ReadSessionRequestValidationError) Cause

Cause function returns cause value.

func (ReadSessionRequestValidationError) Error

Error satisfies the builtin error interface

func (ReadSessionRequestValidationError) ErrorName

ErrorName returns error name.

func (ReadSessionRequestValidationError) Field

Field function returns field value.

func (ReadSessionRequestValidationError) Key

Key function returns key value.

func (ReadSessionRequestValidationError) Reason

Reason function returns reason value.

type ReadSessionResponse

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

func (*ReadSessionResponse) Descriptor deprecated

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

Deprecated: Use ReadSessionResponse.ProtoReflect.Descriptor instead.

func (*ReadSessionResponse) ProtoMessage

func (*ReadSessionResponse) ProtoMessage()

func (*ReadSessionResponse) ProtoReflect

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

func (*ReadSessionResponse) Reset

func (x *ReadSessionResponse) Reset()

func (*ReadSessionResponse) String

func (x *ReadSessionResponse) String() string

func (*ReadSessionResponse) Validate

func (m *ReadSessionResponse) Validate() error

Validate checks the field values on ReadSessionResponse 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 (*ReadSessionResponse) ValidateAll

func (m *ReadSessionResponse) ValidateAll() error

ValidateAll checks the field values on ReadSessionResponse 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 ReadSessionResponseMultiError, or nil if none found.

type ReadSessionResponseMultiError

type ReadSessionResponseMultiError []error

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

func (ReadSessionResponseMultiError) AllErrors

func (m ReadSessionResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReadSessionResponseMultiError) Error

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

type ReadSessionResponseValidationError

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

ReadSessionResponseValidationError is the validation error returned by ReadSessionResponse.Validate if the designated constraints aren't met.

func (ReadSessionResponseValidationError) Cause

Cause function returns cause value.

func (ReadSessionResponseValidationError) Error

Error satisfies the builtin error interface

func (ReadSessionResponseValidationError) ErrorName

ErrorName returns error name.

func (ReadSessionResponseValidationError) Field

Field function returns field value.

func (ReadSessionResponseValidationError) Key

Key function returns key value.

func (ReadSessionResponseValidationError) Reason

Reason function returns reason value.

type Record

type Record struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	SessionId string                 `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	CreatorId string                 `protobuf:"bytes,3,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	Version   string                 `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
	Headers   map[string]string      `` /* 155-byte string literal not displayed */
	Content   []byte                 `protobuf:"bytes,9,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetContent

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

func (*Record) GetCreatedAt

func (x *Record) GetCreatedAt() *timestamppb.Timestamp

func (*Record) GetCreatorId

func (x *Record) GetCreatorId() string

func (*Record) GetDeletedAt

func (x *Record) GetDeletedAt() *timestamppb.Timestamp

func (*Record) GetHeaders

func (x *Record) GetHeaders() map[string]string

func (*Record) GetId

func (x *Record) GetId() string

func (*Record) GetSessionId

func (x *Record) GetSessionId() string

func (*Record) GetUpdatedAt

func (x *Record) GetUpdatedAt() *timestamppb.Timestamp

func (*Record) GetVersion

func (x *Record) GetVersion() string

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

func (*Record) Validate

func (m *Record) Validate() error

Validate checks the field values on Record 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 (*Record) ValidateAll

func (m *Record) ValidateAll() error

ValidateAll checks the field values on Record 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 RecordMultiError, or nil if none found.

type RecordMultiError

type RecordMultiError []error

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

func (RecordMultiError) AllErrors

func (m RecordMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RecordMultiError) Error

func (m RecordMultiError) Error() string

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

type RecordValidationError

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

RecordValidationError is the validation error returned by Record.Validate if the designated constraints aren't met.

func (RecordValidationError) Cause

func (e RecordValidationError) Cause() error

Cause function returns cause value.

func (RecordValidationError) Error

func (e RecordValidationError) Error() string

Error satisfies the builtin error interface

func (RecordValidationError) ErrorName

func (e RecordValidationError) ErrorName() string

ErrorName returns error name.

func (RecordValidationError) Field

func (e RecordValidationError) Field() string

Field function returns field value.

func (RecordValidationError) Key

func (e RecordValidationError) Key() bool

Key function returns key value.

func (RecordValidationError) Reason

func (e RecordValidationError) Reason() string

Reason function returns reason value.

type RecordsCreatedEvent

type RecordsCreatedEvent struct {
	Items []*Record `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordsCreatedEvent) Descriptor deprecated

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

Deprecated: Use RecordsCreatedEvent.ProtoReflect.Descriptor instead.

func (*RecordsCreatedEvent) GetItems

func (x *RecordsCreatedEvent) GetItems() []*Record

func (*RecordsCreatedEvent) ProtoMessage

func (*RecordsCreatedEvent) ProtoMessage()

func (*RecordsCreatedEvent) ProtoReflect

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

func (*RecordsCreatedEvent) Reset

func (x *RecordsCreatedEvent) Reset()

func (*RecordsCreatedEvent) String

func (x *RecordsCreatedEvent) String() string

func (*RecordsCreatedEvent) Validate

func (m *RecordsCreatedEvent) Validate() error

Validate checks the field values on RecordsCreatedEvent 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 (*RecordsCreatedEvent) ValidateAll

func (m *RecordsCreatedEvent) ValidateAll() error

ValidateAll checks the field values on RecordsCreatedEvent 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 RecordsCreatedEventMultiError, or nil if none found.

type RecordsCreatedEventMultiError

type RecordsCreatedEventMultiError []error

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

func (RecordsCreatedEventMultiError) AllErrors

func (m RecordsCreatedEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RecordsCreatedEventMultiError) Error

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

type RecordsCreatedEventValidationError

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

RecordsCreatedEventValidationError is the validation error returned by RecordsCreatedEvent.Validate if the designated constraints aren't met.

func (RecordsCreatedEventValidationError) Cause

Cause function returns cause value.

func (RecordsCreatedEventValidationError) Error

Error satisfies the builtin error interface

func (RecordsCreatedEventValidationError) ErrorName

ErrorName returns error name.

func (RecordsCreatedEventValidationError) Field

Field function returns field value.

func (RecordsCreatedEventValidationError) Key

Key function returns key value.

func (RecordsCreatedEventValidationError) Reason

Reason function returns reason value.

type SendRecordRequest

type SendRecordRequest struct {
	SessionId string            `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Headers   map[string]string `` /* 155-byte string literal not displayed */
	Content   []byte            `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*SendRecordRequest) Descriptor deprecated

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

Deprecated: Use SendRecordRequest.ProtoReflect.Descriptor instead.

func (*SendRecordRequest) GetContent

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

func (*SendRecordRequest) GetHeaders

func (x *SendRecordRequest) GetHeaders() map[string]string

func (*SendRecordRequest) GetSessionId

func (x *SendRecordRequest) GetSessionId() string

func (*SendRecordRequest) ProtoMessage

func (*SendRecordRequest) ProtoMessage()

func (*SendRecordRequest) ProtoReflect

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

func (*SendRecordRequest) Reset

func (x *SendRecordRequest) Reset()

func (*SendRecordRequest) String

func (x *SendRecordRequest) String() string

func (*SendRecordRequest) Validate

func (m *SendRecordRequest) Validate() error

Validate checks the field values on SendRecordRequest 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 (*SendRecordRequest) ValidateAll

func (m *SendRecordRequest) ValidateAll() error

ValidateAll checks the field values on SendRecordRequest 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 SendRecordRequestMultiError, or nil if none found.

type SendRecordRequestMultiError

type SendRecordRequestMultiError []error

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

func (SendRecordRequestMultiError) AllErrors

func (m SendRecordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendRecordRequestMultiError) Error

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

type SendRecordRequestValidationError

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

SendRecordRequestValidationError is the validation error returned by SendRecordRequest.Validate if the designated constraints aren't met.

func (SendRecordRequestValidationError) Cause

Cause function returns cause value.

func (SendRecordRequestValidationError) Error

Error satisfies the builtin error interface

func (SendRecordRequestValidationError) ErrorName

ErrorName returns error name.

func (SendRecordRequestValidationError) Field

Field function returns field value.

func (SendRecordRequestValidationError) Key

Key function returns key value.

func (SendRecordRequestValidationError) Reason

Reason function returns reason value.

type SendRecordResponse

type SendRecordResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SendRecordResponse) Descriptor deprecated

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

Deprecated: Use SendRecordResponse.ProtoReflect.Descriptor instead.

func (*SendRecordResponse) GetId

func (x *SendRecordResponse) GetId() string

func (*SendRecordResponse) ProtoMessage

func (*SendRecordResponse) ProtoMessage()

func (*SendRecordResponse) ProtoReflect

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

func (*SendRecordResponse) Reset

func (x *SendRecordResponse) Reset()

func (*SendRecordResponse) String

func (x *SendRecordResponse) String() string

func (*SendRecordResponse) Validate

func (m *SendRecordResponse) Validate() error

Validate checks the field values on SendRecordResponse 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 (*SendRecordResponse) ValidateAll

func (m *SendRecordResponse) ValidateAll() error

ValidateAll checks the field values on SendRecordResponse 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 SendRecordResponseMultiError, or nil if none found.

type SendRecordResponseMultiError

type SendRecordResponseMultiError []error

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

func (SendRecordResponseMultiError) AllErrors

func (m SendRecordResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SendRecordResponseMultiError) Error

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

type SendRecordResponseValidationError

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

SendRecordResponseValidationError is the validation error returned by SendRecordResponse.Validate if the designated constraints aren't met.

func (SendRecordResponseValidationError) Cause

Cause function returns cause value.

func (SendRecordResponseValidationError) Error

Error satisfies the builtin error interface

func (SendRecordResponseValidationError) ErrorName

ErrorName returns error name.

func (SendRecordResponseValidationError) Field

Field function returns field value.

func (SendRecordResponseValidationError) Key

Key function returns key value.

func (SendRecordResponseValidationError) Reason

Reason function returns reason value.

type Session

type Session struct {
	Id           string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Readonly     bool                    `protobuf:"varint,2,opt,name=readonly,proto3" json:"readonly,omitempty"`
	CreatedAt    *timestamppb.Timestamp  `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt    *timestamppb.Timestamp  `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt    *timestamppb.Timestamp  `protobuf:"bytes,5,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	IconUrl      *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=icon_url,json=iconUrl,proto3" json:"icon_url,omitempty"`
	Title        string                  `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
	Introduction *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=introduction,proto3" json:"introduction,omitempty"`
	ReadCursor   *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=read_cursor,json=readCursor,proto3" json:"read_cursor,omitempty"`
	Members      []*Member               `protobuf:"bytes,10,rep,name=members,proto3" json:"members,omitempty"`
	Records      []*Record               `protobuf:"bytes,11,rep,name=records,proto3" json:"records,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetCreatedAt

func (x *Session) GetCreatedAt() *timestamppb.Timestamp

func (*Session) GetDeletedAt

func (x *Session) GetDeletedAt() *timestamppb.Timestamp

func (*Session) GetIconUrl

func (x *Session) GetIconUrl() *wrapperspb.StringValue

func (*Session) GetId

func (x *Session) GetId() string

func (*Session) GetIntroduction

func (x *Session) GetIntroduction() *wrapperspb.StringValue

func (*Session) GetMembers

func (x *Session) GetMembers() []*Member

func (*Session) GetReadCursor

func (x *Session) GetReadCursor() *wrapperspb.StringValue

func (*Session) GetReadonly

func (x *Session) GetReadonly() bool

func (*Session) GetRecords

func (x *Session) GetRecords() []*Record

func (*Session) GetTitle

func (x *Session) GetTitle() string

func (*Session) GetUpdatedAt

func (x *Session) GetUpdatedAt() *timestamppb.Timestamp

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

func (*Session) Validate

func (m *Session) Validate() error

Validate checks the field values on Session 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 (*Session) ValidateAll

func (m *Session) ValidateAll() error

ValidateAll checks the field values on Session 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 SessionMultiError, or nil if none found.

type SessionMultiError

type SessionMultiError []error

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

func (SessionMultiError) AllErrors

func (m SessionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SessionMultiError) Error

func (m SessionMultiError) Error() string

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

type SessionValidationError

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

SessionValidationError is the validation error returned by Session.Validate if the designated constraints aren't met.

func (SessionValidationError) Cause

func (e SessionValidationError) Cause() error

Cause function returns cause value.

func (SessionValidationError) Error

func (e SessionValidationError) Error() string

Error satisfies the builtin error interface

func (SessionValidationError) ErrorName

func (e SessionValidationError) ErrorName() string

ErrorName returns error name.

func (SessionValidationError) Field

func (e SessionValidationError) Field() string

Field function returns field value.

func (SessionValidationError) Key

func (e SessionValidationError) Key() bool

Key function returns key value.

func (SessionValidationError) Reason

func (e SessionValidationError) Reason() string

Reason function returns reason value.

type UnimplementedChatsServiceServer

type UnimplementedChatsServiceServer struct {
}

UnimplementedChatsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedChatsServiceServer) ListSessions

func (UnimplementedChatsServiceServer) ReadSession

func (UnimplementedChatsServiceServer) SendRecord

func (UnimplementedChatsServiceServer) WatchRecords

type UnsafeChatsServiceServer

type UnsafeChatsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeChatsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChatsServiceServer will result in compilation errors.

type WatchRecordsRequest

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

func (*WatchRecordsRequest) Descriptor deprecated

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

Deprecated: Use WatchRecordsRequest.ProtoReflect.Descriptor instead.

func (*WatchRecordsRequest) ProtoMessage

func (*WatchRecordsRequest) ProtoMessage()

func (*WatchRecordsRequest) ProtoReflect

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

func (*WatchRecordsRequest) Reset

func (x *WatchRecordsRequest) Reset()

func (*WatchRecordsRequest) String

func (x *WatchRecordsRequest) String() string

func (*WatchRecordsRequest) Validate

func (m *WatchRecordsRequest) Validate() error

Validate checks the field values on WatchRecordsRequest 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 (*WatchRecordsRequest) ValidateAll

func (m *WatchRecordsRequest) ValidateAll() error

ValidateAll checks the field values on WatchRecordsRequest 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 WatchRecordsRequestMultiError, or nil if none found.

type WatchRecordsRequestMultiError

type WatchRecordsRequestMultiError []error

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

func (WatchRecordsRequestMultiError) AllErrors

func (m WatchRecordsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WatchRecordsRequestMultiError) Error

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

type WatchRecordsRequestValidationError

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

WatchRecordsRequestValidationError is the validation error returned by WatchRecordsRequest.Validate if the designated constraints aren't met.

func (WatchRecordsRequestValidationError) Cause

Cause function returns cause value.

func (WatchRecordsRequestValidationError) Error

Error satisfies the builtin error interface

func (WatchRecordsRequestValidationError) ErrorName

ErrorName returns error name.

func (WatchRecordsRequestValidationError) Field

Field function returns field value.

func (WatchRecordsRequestValidationError) Key

Key function returns key value.

func (WatchRecordsRequestValidationError) Reason

Reason function returns reason value.

type WatchRecordsResponse

type WatchRecordsResponse struct {
	Items []*Record `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*WatchRecordsResponse) Descriptor deprecated

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

Deprecated: Use WatchRecordsResponse.ProtoReflect.Descriptor instead.

func (*WatchRecordsResponse) GetItems

func (x *WatchRecordsResponse) GetItems() []*Record

func (*WatchRecordsResponse) ProtoMessage

func (*WatchRecordsResponse) ProtoMessage()

func (*WatchRecordsResponse) ProtoReflect

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

func (*WatchRecordsResponse) Reset

func (x *WatchRecordsResponse) Reset()

func (*WatchRecordsResponse) String

func (x *WatchRecordsResponse) String() string

func (*WatchRecordsResponse) Validate

func (m *WatchRecordsResponse) Validate() error

Validate checks the field values on WatchRecordsResponse 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 (*WatchRecordsResponse) ValidateAll

func (m *WatchRecordsResponse) ValidateAll() error

ValidateAll checks the field values on WatchRecordsResponse 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 WatchRecordsResponseMultiError, or nil if none found.

type WatchRecordsResponseMultiError

type WatchRecordsResponseMultiError []error

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

func (WatchRecordsResponseMultiError) AllErrors

func (m WatchRecordsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (WatchRecordsResponseMultiError) Error

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

type WatchRecordsResponseValidationError

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

WatchRecordsResponseValidationError is the validation error returned by WatchRecordsResponse.Validate if the designated constraints aren't met.

func (WatchRecordsResponseValidationError) Cause

Cause function returns cause value.

func (WatchRecordsResponseValidationError) Error

Error satisfies the builtin error interface

func (WatchRecordsResponseValidationError) ErrorName

ErrorName returns error name.

func (WatchRecordsResponseValidationError) Field

Field function returns field value.

func (WatchRecordsResponseValidationError) Key

Key function returns key value.

func (WatchRecordsResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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