Documentation ¶
Overview ¶
Package chats_v1beta is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterChatsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterChatsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChatsServiceClient) error
- func RegisterChatsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterChatsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChatsServiceServer) error
- func RegisterChatsServiceServer(s grpc.ServiceRegistrar, srv ChatsServiceServer)
- type ChatsServiceClient
- type ChatsServiceServer
- type ChatsService_WatchRecordsClient
- type ChatsService_WatchRecordsServer
- type DescribeSessionRequest
- func (*DescribeSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeSessionRequest) GetSessionId() string
- func (*DescribeSessionRequest) ProtoMessage()
- func (x *DescribeSessionRequest) ProtoReflect() protoreflect.Message
- func (x *DescribeSessionRequest) Reset()
- func (x *DescribeSessionRequest) String() string
- func (m *DescribeSessionRequest) Validate() error
- func (m *DescribeSessionRequest) ValidateAll() error
- type DescribeSessionRequestMultiError
- type DescribeSessionRequestValidationError
- func (e DescribeSessionRequestValidationError) Cause() error
- func (e DescribeSessionRequestValidationError) Error() string
- func (e DescribeSessionRequestValidationError) ErrorName() string
- func (e DescribeSessionRequestValidationError) Field() string
- func (e DescribeSessionRequestValidationError) Key() bool
- func (e DescribeSessionRequestValidationError) Reason() string
- type DescribeSessionResponse
- func (*DescribeSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeSessionResponse) GetItem() *Session
- func (*DescribeSessionResponse) ProtoMessage()
- func (x *DescribeSessionResponse) ProtoReflect() protoreflect.Message
- func (x *DescribeSessionResponse) Reset()
- func (x *DescribeSessionResponse) String() string
- func (m *DescribeSessionResponse) Validate() error
- func (m *DescribeSessionResponse) ValidateAll() error
- type DescribeSessionResponseMultiError
- type DescribeSessionResponseValidationError
- func (e DescribeSessionResponseValidationError) Cause() error
- func (e DescribeSessionResponseValidationError) Error() string
- func (e DescribeSessionResponseValidationError) ErrorName() string
- func (e DescribeSessionResponseValidationError) Field() string
- func (e DescribeSessionResponseValidationError) Key() bool
- func (e DescribeSessionResponseValidationError) Reason() string
- type ListRecordsRequest
- func (*ListRecordsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRecordsRequest) GetCursor() *wrapperspb.StringValue
- func (x *ListRecordsRequest) GetSessionId() *wrapperspb.StringValue
- func (x *ListRecordsRequest) GetSize() int32
- func (*ListRecordsRequest) ProtoMessage()
- func (x *ListRecordsRequest) ProtoReflect() protoreflect.Message
- func (x *ListRecordsRequest) Reset()
- func (x *ListRecordsRequest) String() string
- func (m *ListRecordsRequest) Validate() error
- func (m *ListRecordsRequest) ValidateAll() error
- type ListRecordsRequestMultiError
- type ListRecordsRequestValidationError
- func (e ListRecordsRequestValidationError) Cause() error
- func (e ListRecordsRequestValidationError) Error() string
- func (e ListRecordsRequestValidationError) ErrorName() string
- func (e ListRecordsRequestValidationError) Field() string
- func (e ListRecordsRequestValidationError) Key() bool
- func (e ListRecordsRequestValidationError) Reason() string
- type ListRecordsResponse
- func (*ListRecordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRecordsResponse) GetItems() []*Record
- func (*ListRecordsResponse) ProtoMessage()
- func (x *ListRecordsResponse) ProtoReflect() protoreflect.Message
- func (x *ListRecordsResponse) Reset()
- func (x *ListRecordsResponse) String() string
- func (m *ListRecordsResponse) Validate() error
- func (m *ListRecordsResponse) ValidateAll() error
- type ListRecordsResponseMultiError
- type ListRecordsResponseValidationError
- func (e ListRecordsResponseValidationError) Cause() error
- func (e ListRecordsResponseValidationError) Error() string
- func (e ListRecordsResponseValidationError) ErrorName() string
- func (e ListRecordsResponseValidationError) Field() string
- func (e ListRecordsResponseValidationError) Key() bool
- func (e ListRecordsResponseValidationError) Reason() string
- type ListSessionsRequest
- func (*ListSessionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSessionsRequest) GetPage() int32
- func (x *ListSessionsRequest) GetSize() int32
- func (x *ListSessionsRequest) GetSort() string
- func (*ListSessionsRequest) ProtoMessage()
- func (x *ListSessionsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSessionsRequest) Reset()
- func (x *ListSessionsRequest) String() string
- func (m *ListSessionsRequest) Validate() error
- func (m *ListSessionsRequest) ValidateAll() error
- type ListSessionsRequestMultiError
- type ListSessionsRequestValidationError
- func (e ListSessionsRequestValidationError) Cause() error
- func (e ListSessionsRequestValidationError) Error() string
- func (e ListSessionsRequestValidationError) ErrorName() string
- func (e ListSessionsRequestValidationError) Field() string
- func (e ListSessionsRequestValidationError) Key() bool
- func (e ListSessionsRequestValidationError) Reason() string
- type ListSessionsResponse
- func (*ListSessionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSessionsResponse) GetItems() []*Session
- func (x *ListSessionsResponse) GetPage() int32
- func (x *ListSessionsResponse) GetSize() int32
- func (x *ListSessionsResponse) GetTotal() int64
- func (*ListSessionsResponse) ProtoMessage()
- func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSessionsResponse) Reset()
- func (x *ListSessionsResponse) String() string
- func (m *ListSessionsResponse) Validate() error
- func (m *ListSessionsResponse) ValidateAll() error
- type ListSessionsResponseMultiError
- type ListSessionsResponseValidationError
- func (e ListSessionsResponseValidationError) Cause() error
- func (e ListSessionsResponseValidationError) Error() string
- func (e ListSessionsResponseValidationError) ErrorName() string
- func (e ListSessionsResponseValidationError) Field() string
- func (e ListSessionsResponseValidationError) Key() bool
- func (e ListSessionsResponseValidationError) Reason() string
- type Member
- func (*Member) Descriptor() ([]byte, []int)deprecated
- func (x *Member) GetAvatarUrl() *wrapperspb.StringValue
- func (x *Member) GetCreatedAt() *timestamppb.Timestamp
- func (x *Member) GetDisplayName() string
- func (x *Member) GetGender() gender.Gender
- func (x *Member) GetPermission() int64
- func (x *Member) GetSessionId() string
- func (x *Member) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Member) GetUserId() string
- func (*Member) ProtoMessage()
- func (x *Member) ProtoReflect() protoreflect.Message
- func (x *Member) Reset()
- func (x *Member) String() string
- func (m *Member) Validate() error
- func (m *Member) ValidateAll() error
- type MemberMultiError
- type MemberValidationError
- type ReadSessionRequest
- func (*ReadSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadSessionRequest) GetCursor() *wrapperspb.StringValue
- func (x *ReadSessionRequest) GetSessionId() string
- func (*ReadSessionRequest) ProtoMessage()
- func (x *ReadSessionRequest) ProtoReflect() protoreflect.Message
- func (x *ReadSessionRequest) Reset()
- func (x *ReadSessionRequest) String() string
- func (m *ReadSessionRequest) Validate() error
- func (m *ReadSessionRequest) ValidateAll() error
- type ReadSessionRequestMultiError
- type ReadSessionRequestValidationError
- func (e ReadSessionRequestValidationError) Cause() error
- func (e ReadSessionRequestValidationError) Error() string
- func (e ReadSessionRequestValidationError) ErrorName() string
- func (e ReadSessionRequestValidationError) Field() string
- func (e ReadSessionRequestValidationError) Key() bool
- func (e ReadSessionRequestValidationError) Reason() string
- type ReadSessionResponse
- func (*ReadSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (*ReadSessionResponse) ProtoMessage()
- func (x *ReadSessionResponse) ProtoReflect() protoreflect.Message
- func (x *ReadSessionResponse) Reset()
- func (x *ReadSessionResponse) String() string
- func (m *ReadSessionResponse) Validate() error
- func (m *ReadSessionResponse) ValidateAll() error
- type ReadSessionResponseMultiError
- type ReadSessionResponseValidationError
- func (e ReadSessionResponseValidationError) Cause() error
- func (e ReadSessionResponseValidationError) Error() string
- func (e ReadSessionResponseValidationError) ErrorName() string
- func (e ReadSessionResponseValidationError) Field() string
- func (e ReadSessionResponseValidationError) Key() bool
- func (e ReadSessionResponseValidationError) Reason() string
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetContent() []byte
- func (x *Record) GetCreatedAt() *timestamppb.Timestamp
- func (x *Record) GetCreatorId() string
- func (x *Record) GetDeletedAt() *timestamppb.Timestamp
- func (x *Record) GetHeaders() map[string]string
- func (x *Record) GetId() string
- func (x *Record) GetSessionId() string
- func (x *Record) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Record) GetVersion() string
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- func (m *Record) Validate() error
- func (m *Record) ValidateAll() error
- type RecordMultiError
- type RecordValidationError
- type RecordsCreatedEvent
- func (*RecordsCreatedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *RecordsCreatedEvent) GetItems() []*Record
- func (*RecordsCreatedEvent) ProtoMessage()
- func (x *RecordsCreatedEvent) ProtoReflect() protoreflect.Message
- func (x *RecordsCreatedEvent) Reset()
- func (x *RecordsCreatedEvent) String() string
- func (m *RecordsCreatedEvent) Validate() error
- func (m *RecordsCreatedEvent) ValidateAll() error
- type RecordsCreatedEventMultiError
- type RecordsCreatedEventValidationError
- func (e RecordsCreatedEventValidationError) Cause() error
- func (e RecordsCreatedEventValidationError) Error() string
- func (e RecordsCreatedEventValidationError) ErrorName() string
- func (e RecordsCreatedEventValidationError) Field() string
- func (e RecordsCreatedEventValidationError) Key() bool
- func (e RecordsCreatedEventValidationError) Reason() string
- type SendRecordRequest
- func (*SendRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendRecordRequest) GetContent() []byte
- func (x *SendRecordRequest) GetHeaders() map[string]string
- func (x *SendRecordRequest) GetSessionId() string
- func (*SendRecordRequest) ProtoMessage()
- func (x *SendRecordRequest) ProtoReflect() protoreflect.Message
- func (x *SendRecordRequest) Reset()
- func (x *SendRecordRequest) String() string
- func (m *SendRecordRequest) Validate() error
- func (m *SendRecordRequest) ValidateAll() error
- type SendRecordRequestMultiError
- type SendRecordRequestValidationError
- func (e SendRecordRequestValidationError) Cause() error
- func (e SendRecordRequestValidationError) Error() string
- func (e SendRecordRequestValidationError) ErrorName() string
- func (e SendRecordRequestValidationError) Field() string
- func (e SendRecordRequestValidationError) Key() bool
- func (e SendRecordRequestValidationError) Reason() string
- type SendRecordResponse
- func (*SendRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendRecordResponse) GetId() string
- func (*SendRecordResponse) ProtoMessage()
- func (x *SendRecordResponse) ProtoReflect() protoreflect.Message
- func (x *SendRecordResponse) Reset()
- func (x *SendRecordResponse) String() string
- func (m *SendRecordResponse) Validate() error
- func (m *SendRecordResponse) ValidateAll() error
- type SendRecordResponseMultiError
- type SendRecordResponseValidationError
- func (e SendRecordResponseValidationError) Cause() error
- func (e SendRecordResponseValidationError) Error() string
- func (e SendRecordResponseValidationError) ErrorName() string
- func (e SendRecordResponseValidationError) Field() string
- func (e SendRecordResponseValidationError) Key() bool
- func (e SendRecordResponseValidationError) Reason() string
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetCreatedAt() *timestamppb.Timestamp
- func (x *Session) GetDeletedAt() *timestamppb.Timestamp
- func (x *Session) GetIconUrl() *wrapperspb.StringValue
- func (x *Session) GetId() string
- func (x *Session) GetIntroduction() *wrapperspb.StringValue
- func (x *Session) GetLastRecord() *Record
- func (x *Session) GetMembers() []*Member
- func (x *Session) GetReadCursor() *wrapperspb.StringValue
- func (x *Session) GetReadonly() bool
- func (x *Session) GetTitle() string
- func (x *Session) GetUpdatedAt() *timestamppb.Timestamp
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- func (m *Session) Validate() error
- func (m *Session) ValidateAll() error
- type SessionMultiError
- type SessionValidationError
- type UnimplementedChatsServiceServer
- func (UnimplementedChatsServiceServer) DescribeSession(context.Context, *DescribeSessionRequest) (*DescribeSessionResponse, error)
- func (UnimplementedChatsServiceServer) ListRecords(context.Context, *ListRecordsRequest) (*ListRecordsResponse, error)
- func (UnimplementedChatsServiceServer) ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error)
- func (UnimplementedChatsServiceServer) ReadSession(context.Context, *ReadSessionRequest) (*ReadSessionResponse, error)
- func (UnimplementedChatsServiceServer) SendRecord(context.Context, *SendRecordRequest) (*SendRecordResponse, error)
- func (UnimplementedChatsServiceServer) WatchRecords(*WatchRecordsRequest, grpc.ServerStreamingServer[WatchRecordsResponse]) error
- type UnsafeChatsServiceServer
- type WatchRecordsRequest
- func (*WatchRecordsRequest) Descriptor() ([]byte, []int)deprecated
- func (*WatchRecordsRequest) ProtoMessage()
- func (x *WatchRecordsRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRecordsRequest) Reset()
- func (x *WatchRecordsRequest) String() string
- func (m *WatchRecordsRequest) Validate() error
- func (m *WatchRecordsRequest) ValidateAll() error
- type WatchRecordsRequestMultiError
- type WatchRecordsRequestValidationError
- func (e WatchRecordsRequestValidationError) Cause() error
- func (e WatchRecordsRequestValidationError) Error() string
- func (e WatchRecordsRequestValidationError) ErrorName() string
- func (e WatchRecordsRequestValidationError) Field() string
- func (e WatchRecordsRequestValidationError) Key() bool
- func (e WatchRecordsRequestValidationError) Reason() string
- type WatchRecordsResponse
- func (*WatchRecordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRecordsResponse) GetItems() []*Record
- func (*WatchRecordsResponse) ProtoMessage()
- func (x *WatchRecordsResponse) ProtoReflect() protoreflect.Message
- func (x *WatchRecordsResponse) Reset()
- func (x *WatchRecordsResponse) String() string
- func (m *WatchRecordsResponse) Validate() error
- func (m *WatchRecordsResponse) ValidateAll() error
- type WatchRecordsResponseMultiError
- type WatchRecordsResponseValidationError
- func (e WatchRecordsResponseValidationError) Cause() error
- func (e WatchRecordsResponseValidationError) Error() string
- func (e WatchRecordsResponseValidationError) ErrorName() string
- func (e WatchRecordsResponseValidationError) Field() string
- func (e WatchRecordsResponseValidationError) Key() bool
- func (e WatchRecordsResponseValidationError) Reason() string
Constants ¶
const ( ChatsService_ListSessions_FullMethodName = "/gommerce.chats.v1beta.ChatsService/ListSessions" ChatsService_DescribeSession_FullMethodName = "/gommerce.chats.v1beta.ChatsService/DescribeSession" ChatsService_ReadSession_FullMethodName = "/gommerce.chats.v1beta.ChatsService/ReadSession" ChatsService_SendRecord_FullMethodName = "/gommerce.chats.v1beta.ChatsService/SendRecord" ChatsService_ListRecords_FullMethodName = "/gommerce.chats.v1beta.ChatsService/ListRecords" ChatsService_WatchRecords_FullMethodName = "/gommerce.chats.v1beta.ChatsService/WatchRecords" )
Variables ¶
var ChatsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gommerce.chats.v1beta.ChatsService", HandlerType: (*ChatsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListSessions", Handler: _ChatsService_ListSessions_Handler, }, { MethodName: "DescribeSession", Handler: _ChatsService_DescribeSession_Handler, }, { MethodName: "ReadSession", Handler: _ChatsService_ReadSession_Handler, }, { MethodName: "SendRecord", Handler: _ChatsService_SendRecord_Handler, }, { MethodName: "ListRecords", Handler: _ChatsService_ListRecords_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)
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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) DescribeSession(ctx context.Context, in *DescribeSessionRequest, opts ...grpc.CallOption) (*DescribeSessionResponse, error) ReadSession(ctx context.Context, in *ReadSessionRequest, opts ...grpc.CallOption) (*ReadSessionResponse, error) SendRecord(ctx context.Context, in *SendRecordRequest, opts ...grpc.CallOption) (*SendRecordResponse, error) ListRecords(ctx context.Context, in *ListRecordsRequest, opts ...grpc.CallOption) (*ListRecordsResponse, error) WatchRecords(ctx context.Context, in *WatchRecordsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[WatchRecordsResponse], 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.
func NewChatsServiceClient ¶
func NewChatsServiceClient(cc grpc.ClientConnInterface) ChatsServiceClient
type ChatsServiceServer ¶
type ChatsServiceServer interface { ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error) DescribeSession(context.Context, *DescribeSessionRequest) (*DescribeSessionResponse, error) ReadSession(context.Context, *ReadSessionRequest) (*ReadSessionResponse, error) SendRecord(context.Context, *SendRecordRequest) (*SendRecordResponse, error) ListRecords(context.Context, *ListRecordsRequest) (*ListRecordsResponse, error) WatchRecords(*WatchRecordsRequest, grpc.ServerStreamingServer[WatchRecordsResponse]) 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 = grpc.ServerStreamingClient[WatchRecordsResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ChatsService_WatchRecordsServer ¶
type ChatsService_WatchRecordsServer = grpc.ServerStreamingServer[WatchRecordsResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type DescribeSessionRequest ¶
type DescribeSessionRequest struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*DescribeSessionRequest) Descriptor
deprecated
func (*DescribeSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DescribeSessionRequest.ProtoReflect.Descriptor instead.
func (*DescribeSessionRequest) GetSessionId ¶
func (x *DescribeSessionRequest) GetSessionId() string
func (*DescribeSessionRequest) ProtoMessage ¶
func (*DescribeSessionRequest) ProtoMessage()
func (*DescribeSessionRequest) ProtoReflect ¶
func (x *DescribeSessionRequest) ProtoReflect() protoreflect.Message
func (*DescribeSessionRequest) Reset ¶
func (x *DescribeSessionRequest) Reset()
func (*DescribeSessionRequest) String ¶
func (x *DescribeSessionRequest) String() string
func (*DescribeSessionRequest) Validate ¶
func (m *DescribeSessionRequest) Validate() error
Validate checks the field values on DescribeSessionRequest 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 (*DescribeSessionRequest) ValidateAll ¶
func (m *DescribeSessionRequest) ValidateAll() error
ValidateAll checks the field values on DescribeSessionRequest 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 DescribeSessionRequestMultiError, or nil if none found.
type DescribeSessionRequestMultiError ¶
type DescribeSessionRequestMultiError []error
DescribeSessionRequestMultiError is an error wrapping multiple validation errors returned by DescribeSessionRequest.ValidateAll() if the designated constraints aren't met.
func (DescribeSessionRequestMultiError) AllErrors ¶
func (m DescribeSessionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DescribeSessionRequestMultiError) Error ¶
func (m DescribeSessionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DescribeSessionRequestValidationError ¶
type DescribeSessionRequestValidationError struct {
// contains filtered or unexported fields
}
DescribeSessionRequestValidationError is the validation error returned by DescribeSessionRequest.Validate if the designated constraints aren't met.
func (DescribeSessionRequestValidationError) Cause ¶
func (e DescribeSessionRequestValidationError) Cause() error
Cause function returns cause value.
func (DescribeSessionRequestValidationError) Error ¶
func (e DescribeSessionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DescribeSessionRequestValidationError) ErrorName ¶
func (e DescribeSessionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DescribeSessionRequestValidationError) Field ¶
func (e DescribeSessionRequestValidationError) Field() string
Field function returns field value.
func (DescribeSessionRequestValidationError) Key ¶
func (e DescribeSessionRequestValidationError) Key() bool
Key function returns key value.
func (DescribeSessionRequestValidationError) Reason ¶
func (e DescribeSessionRequestValidationError) Reason() string
Reason function returns reason value.
type DescribeSessionResponse ¶
type DescribeSessionResponse struct { Item *Session `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*DescribeSessionResponse) Descriptor
deprecated
func (*DescribeSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use DescribeSessionResponse.ProtoReflect.Descriptor instead.
func (*DescribeSessionResponse) GetItem ¶
func (x *DescribeSessionResponse) GetItem() *Session
func (*DescribeSessionResponse) ProtoMessage ¶
func (*DescribeSessionResponse) ProtoMessage()
func (*DescribeSessionResponse) ProtoReflect ¶
func (x *DescribeSessionResponse) ProtoReflect() protoreflect.Message
func (*DescribeSessionResponse) Reset ¶
func (x *DescribeSessionResponse) Reset()
func (*DescribeSessionResponse) String ¶
func (x *DescribeSessionResponse) String() string
func (*DescribeSessionResponse) Validate ¶
func (m *DescribeSessionResponse) Validate() error
Validate checks the field values on DescribeSessionResponse 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 (*DescribeSessionResponse) ValidateAll ¶
func (m *DescribeSessionResponse) ValidateAll() error
ValidateAll checks the field values on DescribeSessionResponse 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 DescribeSessionResponseMultiError, or nil if none found.
type DescribeSessionResponseMultiError ¶
type DescribeSessionResponseMultiError []error
DescribeSessionResponseMultiError is an error wrapping multiple validation errors returned by DescribeSessionResponse.ValidateAll() if the designated constraints aren't met.
func (DescribeSessionResponseMultiError) AllErrors ¶
func (m DescribeSessionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DescribeSessionResponseMultiError) Error ¶
func (m DescribeSessionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DescribeSessionResponseValidationError ¶
type DescribeSessionResponseValidationError struct {
// contains filtered or unexported fields
}
DescribeSessionResponseValidationError is the validation error returned by DescribeSessionResponse.Validate if the designated constraints aren't met.
func (DescribeSessionResponseValidationError) Cause ¶
func (e DescribeSessionResponseValidationError) Cause() error
Cause function returns cause value.
func (DescribeSessionResponseValidationError) Error ¶
func (e DescribeSessionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DescribeSessionResponseValidationError) ErrorName ¶
func (e DescribeSessionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DescribeSessionResponseValidationError) Field ¶
func (e DescribeSessionResponseValidationError) Field() string
Field function returns field value.
func (DescribeSessionResponseValidationError) Key ¶
func (e DescribeSessionResponseValidationError) Key() bool
Key function returns key value.
func (DescribeSessionResponseValidationError) Reason ¶
func (e DescribeSessionResponseValidationError) Reason() string
Reason function returns reason value.
type ListRecordsRequest ¶
type ListRecordsRequest struct { SessionId *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` Cursor *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*ListRecordsRequest) Descriptor
deprecated
func (*ListRecordsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRecordsRequest.ProtoReflect.Descriptor instead.
func (*ListRecordsRequest) GetCursor ¶
func (x *ListRecordsRequest) GetCursor() *wrapperspb.StringValue
func (*ListRecordsRequest) GetSessionId ¶
func (x *ListRecordsRequest) GetSessionId() *wrapperspb.StringValue
func (*ListRecordsRequest) GetSize ¶
func (x *ListRecordsRequest) GetSize() int32
func (*ListRecordsRequest) ProtoMessage ¶
func (*ListRecordsRequest) ProtoMessage()
func (*ListRecordsRequest) ProtoReflect ¶
func (x *ListRecordsRequest) ProtoReflect() protoreflect.Message
func (*ListRecordsRequest) Reset ¶
func (x *ListRecordsRequest) Reset()
func (*ListRecordsRequest) String ¶
func (x *ListRecordsRequest) String() string
func (*ListRecordsRequest) Validate ¶
func (m *ListRecordsRequest) Validate() error
Validate checks the field values on ListRecordsRequest 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 (*ListRecordsRequest) ValidateAll ¶
func (m *ListRecordsRequest) ValidateAll() error
ValidateAll checks the field values on ListRecordsRequest 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 ListRecordsRequestMultiError, or nil if none found.
type ListRecordsRequestMultiError ¶
type ListRecordsRequestMultiError []error
ListRecordsRequestMultiError is an error wrapping multiple validation errors returned by ListRecordsRequest.ValidateAll() if the designated constraints aren't met.
func (ListRecordsRequestMultiError) AllErrors ¶
func (m ListRecordsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRecordsRequestMultiError) Error ¶
func (m ListRecordsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRecordsRequestValidationError ¶
type ListRecordsRequestValidationError struct {
// contains filtered or unexported fields
}
ListRecordsRequestValidationError is the validation error returned by ListRecordsRequest.Validate if the designated constraints aren't met.
func (ListRecordsRequestValidationError) Cause ¶
func (e ListRecordsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRecordsRequestValidationError) Error ¶
func (e ListRecordsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRecordsRequestValidationError) ErrorName ¶
func (e ListRecordsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRecordsRequestValidationError) Field ¶
func (e ListRecordsRequestValidationError) Field() string
Field function returns field value.
func (ListRecordsRequestValidationError) Key ¶
func (e ListRecordsRequestValidationError) Key() bool
Key function returns key value.
func (ListRecordsRequestValidationError) Reason ¶
func (e ListRecordsRequestValidationError) Reason() string
Reason function returns reason value.
type ListRecordsResponse ¶
type ListRecordsResponse struct { Items []*Record `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListRecordsResponse) Descriptor
deprecated
func (*ListRecordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRecordsResponse.ProtoReflect.Descriptor instead.
func (*ListRecordsResponse) GetItems ¶
func (x *ListRecordsResponse) GetItems() []*Record
func (*ListRecordsResponse) ProtoMessage ¶
func (*ListRecordsResponse) ProtoMessage()
func (*ListRecordsResponse) ProtoReflect ¶
func (x *ListRecordsResponse) ProtoReflect() protoreflect.Message
func (*ListRecordsResponse) Reset ¶
func (x *ListRecordsResponse) Reset()
func (*ListRecordsResponse) String ¶
func (x *ListRecordsResponse) String() string
func (*ListRecordsResponse) Validate ¶
func (m *ListRecordsResponse) Validate() error
Validate checks the field values on ListRecordsResponse 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 (*ListRecordsResponse) ValidateAll ¶
func (m *ListRecordsResponse) ValidateAll() error
ValidateAll checks the field values on ListRecordsResponse 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 ListRecordsResponseMultiError, or nil if none found.
type ListRecordsResponseMultiError ¶
type ListRecordsResponseMultiError []error
ListRecordsResponseMultiError is an error wrapping multiple validation errors returned by ListRecordsResponse.ValidateAll() if the designated constraints aren't met.
func (ListRecordsResponseMultiError) AllErrors ¶
func (m ListRecordsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRecordsResponseMultiError) Error ¶
func (m ListRecordsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRecordsResponseValidationError ¶
type ListRecordsResponseValidationError struct {
// contains filtered or unexported fields
}
ListRecordsResponseValidationError is the validation error returned by ListRecordsResponse.Validate if the designated constraints aren't met.
func (ListRecordsResponseValidationError) Cause ¶
func (e ListRecordsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListRecordsResponseValidationError) Error ¶
func (e ListRecordsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListRecordsResponseValidationError) ErrorName ¶
func (e ListRecordsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListRecordsResponseValidationError) Field ¶
func (e ListRecordsResponseValidationError) Field() string
Field function returns field value.
func (ListRecordsResponseValidationError) Key ¶
func (e ListRecordsResponseValidationError) Key() bool
Key function returns key value.
func (ListRecordsResponseValidationError) Reason ¶
func (e ListRecordsResponseValidationError) Reason() string
Reason function returns reason value.
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 ¶
func (m ListSessionsRequestMultiError) Error() string
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 ¶
func (e ListSessionsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListSessionsRequestValidationError) Error ¶
func (e ListSessionsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListSessionsRequestValidationError) ErrorName ¶
func (e ListSessionsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListSessionsRequestValidationError) Field ¶
func (e ListSessionsRequestValidationError) Field() string
Field function returns field value.
func (ListSessionsRequestValidationError) Key ¶
func (e ListSessionsRequestValidationError) Key() bool
Key function returns key value.
func (ListSessionsRequestValidationError) Reason ¶
func (e ListSessionsRequestValidationError) Reason() string
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 ¶
func (m ListSessionsResponseMultiError) Error() string
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 ¶
func (e ListSessionsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListSessionsResponseValidationError) Error ¶
func (e ListSessionsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListSessionsResponseValidationError) ErrorName ¶
func (e ListSessionsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListSessionsResponseValidationError) Field ¶
func (e ListSessionsResponseValidationError) Field() string
Field function returns field value.
func (ListSessionsResponseValidationError) Key ¶
func (e ListSessionsResponseValidationError) Key() bool
Key function returns key value.
func (ListSessionsResponseValidationError) Reason ¶
func (e ListSessionsResponseValidationError) Reason() string
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"` Permission int64 `protobuf:"varint,5,opt,name=permission,proto3" json:"permission,omitempty"` Gender gender.Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=gommerce.types.v1.Gender" json:"gender,omitempty"` DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` AvatarUrl *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // contains filtered or unexported fields }
func (*Member) Descriptor
deprecated
func (*Member) GetAvatarUrl ¶
func (x *Member) GetAvatarUrl() *wrapperspb.StringValue
func (*Member) GetCreatedAt ¶
func (x *Member) GetCreatedAt() *timestamppb.Timestamp
func (*Member) GetDisplayName ¶
func (*Member) GetPermission ¶
func (*Member) GetSessionId ¶
func (*Member) GetUpdatedAt ¶
func (x *Member) GetUpdatedAt() *timestamppb.Timestamp
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) ProtoReflect ¶
func (x *Member) ProtoReflect() protoreflect.Message
func (*Member) Validate ¶
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 ¶
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"` Cursor *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` // contains filtered or unexported fields }
func (*ReadSessionRequest) Descriptor
deprecated
func (*ReadSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadSessionRequest.ProtoReflect.Descriptor instead.
func (*ReadSessionRequest) GetCursor ¶
func (x *ReadSessionRequest) GetCursor() *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 ¶
func (m ReadSessionRequestMultiError) Error() string
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 ¶
func (e ReadSessionRequestValidationError) Cause() error
Cause function returns cause value.
func (ReadSessionRequestValidationError) Error ¶
func (e ReadSessionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReadSessionRequestValidationError) ErrorName ¶
func (e ReadSessionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReadSessionRequestValidationError) Field ¶
func (e ReadSessionRequestValidationError) Field() string
Field function returns field value.
func (ReadSessionRequestValidationError) Key ¶
func (e ReadSessionRequestValidationError) Key() bool
Key function returns key value.
func (ReadSessionRequestValidationError) Reason ¶
func (e ReadSessionRequestValidationError) Reason() string
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 ¶
func (m ReadSessionResponseMultiError) Error() string
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 ¶
func (e ReadSessionResponseValidationError) Cause() error
Cause function returns cause value.
func (ReadSessionResponseValidationError) Error ¶
func (e ReadSessionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReadSessionResponseValidationError) ErrorName ¶
func (e ReadSessionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReadSessionResponseValidationError) Field ¶
func (e ReadSessionResponseValidationError) Field() string
Field function returns field value.
func (ReadSessionResponseValidationError) Key ¶
func (e ReadSessionResponseValidationError) Key() bool
Key function returns key value.
func (ReadSessionResponseValidationError) Reason ¶
func (e ReadSessionResponseValidationError) Reason() string
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) GetContent ¶
func (*Record) GetCreatedAt ¶
func (x *Record) GetCreatedAt() *timestamppb.Timestamp
func (*Record) GetCreatorId ¶
func (*Record) GetDeletedAt ¶
func (x *Record) GetDeletedAt() *timestamppb.Timestamp
func (*Record) GetHeaders ¶
func (*Record) GetSessionId ¶
func (*Record) GetUpdatedAt ¶
func (x *Record) GetUpdatedAt() *timestamppb.Timestamp
func (*Record) GetVersion ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
func (*Record) Validate ¶
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 ¶
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 ¶
func (m RecordsCreatedEventMultiError) Error() string
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 ¶
func (e RecordsCreatedEventValidationError) Cause() error
Cause function returns cause value.
func (RecordsCreatedEventValidationError) Error ¶
func (e RecordsCreatedEventValidationError) Error() string
Error satisfies the builtin error interface
func (RecordsCreatedEventValidationError) ErrorName ¶
func (e RecordsCreatedEventValidationError) ErrorName() string
ErrorName returns error name.
func (RecordsCreatedEventValidationError) Field ¶
func (e RecordsCreatedEventValidationError) Field() string
Field function returns field value.
func (RecordsCreatedEventValidationError) Key ¶
func (e RecordsCreatedEventValidationError) Key() bool
Key function returns key value.
func (RecordsCreatedEventValidationError) Reason ¶
func (e RecordsCreatedEventValidationError) Reason() string
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 ¶
func (m SendRecordRequestMultiError) Error() string
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 ¶
func (e SendRecordRequestValidationError) Cause() error
Cause function returns cause value.
func (SendRecordRequestValidationError) Error ¶
func (e SendRecordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SendRecordRequestValidationError) ErrorName ¶
func (e SendRecordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SendRecordRequestValidationError) Field ¶
func (e SendRecordRequestValidationError) Field() string
Field function returns field value.
func (SendRecordRequestValidationError) Key ¶
func (e SendRecordRequestValidationError) Key() bool
Key function returns key value.
func (SendRecordRequestValidationError) Reason ¶
func (e SendRecordRequestValidationError) Reason() string
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 ¶
func (m SendRecordResponseMultiError) Error() string
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 ¶
func (e SendRecordResponseValidationError) Cause() error
Cause function returns cause value.
func (SendRecordResponseValidationError) Error ¶
func (e SendRecordResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SendRecordResponseValidationError) ErrorName ¶
func (e SendRecordResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SendRecordResponseValidationError) Field ¶
func (e SendRecordResponseValidationError) Field() string
Field function returns field value.
func (SendRecordResponseValidationError) Key ¶
func (e SendRecordResponseValidationError) Key() bool
Key function returns key value.
func (SendRecordResponseValidationError) Reason ¶
func (e SendRecordResponseValidationError) Reason() string
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"` Members []*Member `protobuf:"bytes,9,rep,name=members,proto3" json:"members,omitempty"` LastRecord *Record `protobuf:"bytes,10,opt,name=last_record,json=lastRecord,proto3" json:"last_record,omitempty"` ReadCursor *wrapperspb.StringValue `protobuf:"bytes,11,opt,name=read_cursor,json=readCursor,proto3" json:"read_cursor,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
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) GetIntroduction ¶
func (x *Session) GetIntroduction() *wrapperspb.StringValue
func (*Session) GetLastRecord ¶
func (*Session) GetMembers ¶
func (*Session) GetReadCursor ¶
func (x *Session) GetReadCursor() *wrapperspb.StringValue
func (*Session) GetReadonly ¶
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) Validate ¶
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 ¶
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.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedChatsServiceServer) DescribeSession ¶
func (UnimplementedChatsServiceServer) DescribeSession(context.Context, *DescribeSessionRequest) (*DescribeSessionResponse, error)
func (UnimplementedChatsServiceServer) ListRecords ¶
func (UnimplementedChatsServiceServer) ListRecords(context.Context, *ListRecordsRequest) (*ListRecordsResponse, error)
func (UnimplementedChatsServiceServer) ListSessions ¶
func (UnimplementedChatsServiceServer) ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error)
func (UnimplementedChatsServiceServer) ReadSession ¶
func (UnimplementedChatsServiceServer) ReadSession(context.Context, *ReadSessionRequest) (*ReadSessionResponse, error)
func (UnimplementedChatsServiceServer) SendRecord ¶
func (UnimplementedChatsServiceServer) SendRecord(context.Context, *SendRecordRequest) (*SendRecordResponse, error)
func (UnimplementedChatsServiceServer) WatchRecords ¶
func (UnimplementedChatsServiceServer) WatchRecords(*WatchRecordsRequest, grpc.ServerStreamingServer[WatchRecordsResponse]) error
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 ¶
func (m WatchRecordsRequestMultiError) Error() string
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 ¶
func (e WatchRecordsRequestValidationError) Cause() error
Cause function returns cause value.
func (WatchRecordsRequestValidationError) Error ¶
func (e WatchRecordsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WatchRecordsRequestValidationError) ErrorName ¶
func (e WatchRecordsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WatchRecordsRequestValidationError) Field ¶
func (e WatchRecordsRequestValidationError) Field() string
Field function returns field value.
func (WatchRecordsRequestValidationError) Key ¶
func (e WatchRecordsRequestValidationError) Key() bool
Key function returns key value.
func (WatchRecordsRequestValidationError) Reason ¶
func (e WatchRecordsRequestValidationError) Reason() string
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 ¶
func (m WatchRecordsResponseMultiError) Error() string
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 ¶
func (e WatchRecordsResponseValidationError) Cause() error
Cause function returns cause value.
func (WatchRecordsResponseValidationError) Error ¶
func (e WatchRecordsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (WatchRecordsResponseValidationError) ErrorName ¶
func (e WatchRecordsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (WatchRecordsResponseValidationError) Field ¶
func (e WatchRecordsResponseValidationError) Field() string
Field function returns field value.
func (WatchRecordsResponseValidationError) Key ¶
func (e WatchRecordsResponseValidationError) Key() bool
Key function returns key value.
func (WatchRecordsResponseValidationError) Reason ¶
func (e WatchRecordsResponseValidationError) Reason() string
Reason function returns reason value.