Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterBadgeServer(s grpc.ServiceRegistrar, srv BadgeServer)
- type BadgeClient
- type BadgeServer
- type ResetBadgeCountRequest
- func (*ResetBadgeCountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetBadgeCountRequest) GetAuth() *v1.Auth
- func (x *ResetBadgeCountRequest) GetUserId() *v1.UserId
- func (*ResetBadgeCountRequest) ProtoMessage()
- func (x *ResetBadgeCountRequest) ProtoReflect() protoreflect.Message
- func (x *ResetBadgeCountRequest) Reset()
- func (x *ResetBadgeCountRequest) String() string
- func (m *ResetBadgeCountRequest) Validate() error
- func (m *ResetBadgeCountRequest) ValidateAll() error
- type ResetBadgeCountRequestMultiError
- type ResetBadgeCountRequestValidationError
- func (e ResetBadgeCountRequestValidationError) Cause() error
- func (e ResetBadgeCountRequestValidationError) Error() string
- func (e ResetBadgeCountRequestValidationError) ErrorName() string
- func (e ResetBadgeCountRequestValidationError) Field() string
- func (e ResetBadgeCountRequestValidationError) Key() bool
- func (e ResetBadgeCountRequestValidationError) Reason() string
- type ResetBadgeCountResponse
- func (*ResetBadgeCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResetBadgeCountResponse) GetResult() ResetBadgeCountResponse_Result
- func (*ResetBadgeCountResponse) ProtoMessage()
- func (x *ResetBadgeCountResponse) ProtoReflect() protoreflect.Message
- func (x *ResetBadgeCountResponse) Reset()
- func (x *ResetBadgeCountResponse) String() string
- func (m *ResetBadgeCountResponse) Validate() error
- func (m *ResetBadgeCountResponse) ValidateAll() error
- type ResetBadgeCountResponseMultiError
- type ResetBadgeCountResponseValidationError
- func (e ResetBadgeCountResponseValidationError) Cause() error
- func (e ResetBadgeCountResponseValidationError) Error() string
- func (e ResetBadgeCountResponseValidationError) ErrorName() string
- func (e ResetBadgeCountResponseValidationError) Field() string
- func (e ResetBadgeCountResponseValidationError) Key() bool
- func (e ResetBadgeCountResponseValidationError) Reason() string
- type ResetBadgeCountResponse_Result
- func (ResetBadgeCountResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x ResetBadgeCountResponse_Result) Enum() *ResetBadgeCountResponse_Result
- func (ResetBadgeCountResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResetBadgeCountResponse_Result) Number() protoreflect.EnumNumber
- func (x ResetBadgeCountResponse_Result) String() string
- func (ResetBadgeCountResponse_Result) Type() protoreflect.EnumType
- type UnimplementedBadgeServer
- type UnsafeBadgeServer
Constants ¶
const (
Badge_ResetBadgeCount_FullMethodName = "/flipchat.badge.v1.Badge/ResetBadgeCount"
)
Variables ¶
var ( ResetBadgeCountResponse_Result_name = map[int32]string{ 0: "OK", } ResetBadgeCountResponse_Result_value = map[string]int32{ "OK": 0, } )
Enum value maps for ResetBadgeCountResponse_Result.
var Badge_ServiceDesc = grpc.ServiceDesc{ ServiceName: "flipchat.badge.v1.Badge", HandlerType: (*BadgeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ResetBadgeCount", Handler: _Badge_ResetBadgeCount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "badge/v1/badge_service.proto", }
Badge_ServiceDesc is the grpc.ServiceDesc for Badge service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_badge_v1_badge_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBadgeServer ¶
func RegisterBadgeServer(s grpc.ServiceRegistrar, srv BadgeServer)
Types ¶
type BadgeClient ¶
type BadgeClient interface { // ResetBadgeCount resets an owner account's app icon badge count back to zero ResetBadgeCount(ctx context.Context, in *ResetBadgeCountRequest, opts ...grpc.CallOption) (*ResetBadgeCountResponse, error) }
BadgeClient is the client API for Badge 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 NewBadgeClient ¶
func NewBadgeClient(cc grpc.ClientConnInterface) BadgeClient
type BadgeServer ¶
type BadgeServer interface { // ResetBadgeCount resets an owner account's app icon badge count back to zero ResetBadgeCount(context.Context, *ResetBadgeCountRequest) (*ResetBadgeCountResponse, error) // contains filtered or unexported methods }
BadgeServer is the server API for Badge service. All implementations must embed UnimplementedBadgeServer for forward compatibility.
type ResetBadgeCountRequest ¶
type ResetBadgeCountRequest struct { UserId *v1.UserId `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Auth *v1.Auth `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*ResetBadgeCountRequest) Descriptor
deprecated
func (*ResetBadgeCountRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetBadgeCountRequest.ProtoReflect.Descriptor instead.
func (*ResetBadgeCountRequest) GetAuth ¶
func (x *ResetBadgeCountRequest) GetAuth() *v1.Auth
func (*ResetBadgeCountRequest) GetUserId ¶
func (x *ResetBadgeCountRequest) GetUserId() *v1.UserId
func (*ResetBadgeCountRequest) ProtoMessage ¶
func (*ResetBadgeCountRequest) ProtoMessage()
func (*ResetBadgeCountRequest) ProtoReflect ¶
func (x *ResetBadgeCountRequest) ProtoReflect() protoreflect.Message
func (*ResetBadgeCountRequest) Reset ¶
func (x *ResetBadgeCountRequest) Reset()
func (*ResetBadgeCountRequest) String ¶
func (x *ResetBadgeCountRequest) String() string
func (*ResetBadgeCountRequest) Validate ¶
func (m *ResetBadgeCountRequest) Validate() error
Validate checks the field values on ResetBadgeCountRequest 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 (*ResetBadgeCountRequest) ValidateAll ¶
func (m *ResetBadgeCountRequest) ValidateAll() error
ValidateAll checks the field values on ResetBadgeCountRequest 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 ResetBadgeCountRequestMultiError, or nil if none found.
type ResetBadgeCountRequestMultiError ¶
type ResetBadgeCountRequestMultiError []error
ResetBadgeCountRequestMultiError is an error wrapping multiple validation errors returned by ResetBadgeCountRequest.ValidateAll() if the designated constraints aren't met.
func (ResetBadgeCountRequestMultiError) AllErrors ¶
func (m ResetBadgeCountRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResetBadgeCountRequestMultiError) Error ¶
func (m ResetBadgeCountRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResetBadgeCountRequestValidationError ¶
type ResetBadgeCountRequestValidationError struct {
// contains filtered or unexported fields
}
ResetBadgeCountRequestValidationError is the validation error returned by ResetBadgeCountRequest.Validate if the designated constraints aren't met.
func (ResetBadgeCountRequestValidationError) Cause ¶
func (e ResetBadgeCountRequestValidationError) Cause() error
Cause function returns cause value.
func (ResetBadgeCountRequestValidationError) Error ¶
func (e ResetBadgeCountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ResetBadgeCountRequestValidationError) ErrorName ¶
func (e ResetBadgeCountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ResetBadgeCountRequestValidationError) Field ¶
func (e ResetBadgeCountRequestValidationError) Field() string
Field function returns field value.
func (ResetBadgeCountRequestValidationError) Key ¶
func (e ResetBadgeCountRequestValidationError) Key() bool
Key function returns key value.
func (ResetBadgeCountRequestValidationError) Reason ¶
func (e ResetBadgeCountRequestValidationError) Reason() string
Reason function returns reason value.
type ResetBadgeCountResponse ¶
type ResetBadgeCountResponse struct { Result ResetBadgeCountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.badge.v1.ResetBadgeCountResponse_Result" json:"result,omitempty"` // contains filtered or unexported fields }
func (*ResetBadgeCountResponse) Descriptor
deprecated
func (*ResetBadgeCountResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResetBadgeCountResponse.ProtoReflect.Descriptor instead.
func (*ResetBadgeCountResponse) GetResult ¶
func (x *ResetBadgeCountResponse) GetResult() ResetBadgeCountResponse_Result
func (*ResetBadgeCountResponse) ProtoMessage ¶
func (*ResetBadgeCountResponse) ProtoMessage()
func (*ResetBadgeCountResponse) ProtoReflect ¶
func (x *ResetBadgeCountResponse) ProtoReflect() protoreflect.Message
func (*ResetBadgeCountResponse) Reset ¶
func (x *ResetBadgeCountResponse) Reset()
func (*ResetBadgeCountResponse) String ¶
func (x *ResetBadgeCountResponse) String() string
func (*ResetBadgeCountResponse) Validate ¶
func (m *ResetBadgeCountResponse) Validate() error
Validate checks the field values on ResetBadgeCountResponse 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 (*ResetBadgeCountResponse) ValidateAll ¶
func (m *ResetBadgeCountResponse) ValidateAll() error
ValidateAll checks the field values on ResetBadgeCountResponse 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 ResetBadgeCountResponseMultiError, or nil if none found.
type ResetBadgeCountResponseMultiError ¶
type ResetBadgeCountResponseMultiError []error
ResetBadgeCountResponseMultiError is an error wrapping multiple validation errors returned by ResetBadgeCountResponse.ValidateAll() if the designated constraints aren't met.
func (ResetBadgeCountResponseMultiError) AllErrors ¶
func (m ResetBadgeCountResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResetBadgeCountResponseMultiError) Error ¶
func (m ResetBadgeCountResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResetBadgeCountResponseValidationError ¶
type ResetBadgeCountResponseValidationError struct {
// contains filtered or unexported fields
}
ResetBadgeCountResponseValidationError is the validation error returned by ResetBadgeCountResponse.Validate if the designated constraints aren't met.
func (ResetBadgeCountResponseValidationError) Cause ¶
func (e ResetBadgeCountResponseValidationError) Cause() error
Cause function returns cause value.
func (ResetBadgeCountResponseValidationError) Error ¶
func (e ResetBadgeCountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResetBadgeCountResponseValidationError) ErrorName ¶
func (e ResetBadgeCountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResetBadgeCountResponseValidationError) Field ¶
func (e ResetBadgeCountResponseValidationError) Field() string
Field function returns field value.
func (ResetBadgeCountResponseValidationError) Key ¶
func (e ResetBadgeCountResponseValidationError) Key() bool
Key function returns key value.
func (ResetBadgeCountResponseValidationError) Reason ¶
func (e ResetBadgeCountResponseValidationError) Reason() string
Reason function returns reason value.
type ResetBadgeCountResponse_Result ¶
type ResetBadgeCountResponse_Result int32
const (
ResetBadgeCountResponse_OK ResetBadgeCountResponse_Result = 0
)
func (ResetBadgeCountResponse_Result) Descriptor ¶
func (ResetBadgeCountResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (ResetBadgeCountResponse_Result) Enum ¶
func (x ResetBadgeCountResponse_Result) Enum() *ResetBadgeCountResponse_Result
func (ResetBadgeCountResponse_Result) EnumDescriptor
deprecated
func (ResetBadgeCountResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResetBadgeCountResponse_Result.Descriptor instead.
func (ResetBadgeCountResponse_Result) Number ¶
func (x ResetBadgeCountResponse_Result) Number() protoreflect.EnumNumber
func (ResetBadgeCountResponse_Result) String ¶
func (x ResetBadgeCountResponse_Result) String() string
func (ResetBadgeCountResponse_Result) Type ¶
func (ResetBadgeCountResponse_Result) Type() protoreflect.EnumType
type UnimplementedBadgeServer ¶
type UnimplementedBadgeServer struct{}
UnimplementedBadgeServer 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 (UnimplementedBadgeServer) ResetBadgeCount ¶
func (UnimplementedBadgeServer) ResetBadgeCount(context.Context, *ResetBadgeCountRequest) (*ResetBadgeCountResponse, error)
type UnsafeBadgeServer ¶
type UnsafeBadgeServer interface {
// contains filtered or unexported methods
}
UnsafeBadgeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BadgeServer will result in compilation errors.