Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPromotedServer(s grpc.ServiceRegistrar, srv PromotedServer)
- type GetPromotedChatsRequest
- func (*GetPromotedChatsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPromotedChatsRequest) GetTopic() string
- func (*GetPromotedChatsRequest) ProtoMessage()
- func (x *GetPromotedChatsRequest) ProtoReflect() protoreflect.Message
- func (x *GetPromotedChatsRequest) Reset()
- func (x *GetPromotedChatsRequest) String() string
- func (m *GetPromotedChatsRequest) Validate() error
- func (m *GetPromotedChatsRequest) ValidateAll() error
- type GetPromotedChatsRequestMultiError
- type GetPromotedChatsRequestValidationError
- func (e GetPromotedChatsRequestValidationError) Cause() error
- func (e GetPromotedChatsRequestValidationError) Error() string
- func (e GetPromotedChatsRequestValidationError) ErrorName() string
- func (e GetPromotedChatsRequestValidationError) Field() string
- func (e GetPromotedChatsRequestValidationError) Key() bool
- func (e GetPromotedChatsRequestValidationError) Reason() string
- type GetPromotedChatsResponse
- func (*GetPromotedChatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPromotedChatsResponse) GetChats() []*v1.ChatId
- func (x *GetPromotedChatsResponse) GetResult() GetPromotedChatsResponse_Result
- func (*GetPromotedChatsResponse) ProtoMessage()
- func (x *GetPromotedChatsResponse) ProtoReflect() protoreflect.Message
- func (x *GetPromotedChatsResponse) Reset()
- func (x *GetPromotedChatsResponse) String() string
- func (m *GetPromotedChatsResponse) Validate() error
- func (m *GetPromotedChatsResponse) ValidateAll() error
- type GetPromotedChatsResponseMultiError
- type GetPromotedChatsResponseValidationError
- func (e GetPromotedChatsResponseValidationError) Cause() error
- func (e GetPromotedChatsResponseValidationError) Error() string
- func (e GetPromotedChatsResponseValidationError) ErrorName() string
- func (e GetPromotedChatsResponseValidationError) Field() string
- func (e GetPromotedChatsResponseValidationError) Key() bool
- func (e GetPromotedChatsResponseValidationError) Reason() string
- type GetPromotedChatsResponse_Result
- func (GetPromotedChatsResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetPromotedChatsResponse_Result) Enum() *GetPromotedChatsResponse_Result
- func (GetPromotedChatsResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetPromotedChatsResponse_Result) Number() protoreflect.EnumNumber
- func (x GetPromotedChatsResponse_Result) String() string
- func (GetPromotedChatsResponse_Result) Type() protoreflect.EnumType
- type PromotedClient
- type PromotedServer
- type UnimplementedPromotedServer
- type UnsafePromotedServer
Constants ¶
const (
Promoted_GetPromotedChats_FullMethodName = "/flipchat.promoted.v1.Promoted/GetPromotedChats"
)
Variables ¶
var ( GetPromotedChatsResponse_Result_name = map[int32]string{ 0: "OK", 1: "DENIED", 2: "INVALID_REQUEST", 3: "UNKNOWN_TOPIC", } GetPromotedChatsResponse_Result_value = map[string]int32{ "OK": 0, "DENIED": 1, "INVALID_REQUEST": 2, "UNKNOWN_TOPIC": 3, } )
Enum value maps for GetPromotedChatsResponse_Result.
var File_promoted_v1_promoted_service_proto protoreflect.FileDescriptor
var Promoted_ServiceDesc = grpc.ServiceDesc{ ServiceName: "flipchat.promoted.v1.Promoted", HandlerType: (*PromotedServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPromotedChats", Handler: _Promoted_GetPromotedChats_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "promoted/v1/promoted_service.proto", }
Promoted_ServiceDesc is the grpc.ServiceDesc for Promoted service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPromotedServer ¶
func RegisterPromotedServer(s grpc.ServiceRegistrar, srv PromotedServer)
Types ¶
type GetPromotedChatsRequest ¶
type GetPromotedChatsRequest struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` // contains filtered or unexported fields }
func (*GetPromotedChatsRequest) Descriptor
deprecated
func (*GetPromotedChatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPromotedChatsRequest.ProtoReflect.Descriptor instead.
func (*GetPromotedChatsRequest) GetTopic ¶
func (x *GetPromotedChatsRequest) GetTopic() string
func (*GetPromotedChatsRequest) ProtoMessage ¶
func (*GetPromotedChatsRequest) ProtoMessage()
func (*GetPromotedChatsRequest) ProtoReflect ¶
func (x *GetPromotedChatsRequest) ProtoReflect() protoreflect.Message
func (*GetPromotedChatsRequest) Reset ¶
func (x *GetPromotedChatsRequest) Reset()
func (*GetPromotedChatsRequest) String ¶
func (x *GetPromotedChatsRequest) String() string
func (*GetPromotedChatsRequest) Validate ¶
func (m *GetPromotedChatsRequest) Validate() error
Validate checks the field values on GetPromotedChatsRequest 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 (*GetPromotedChatsRequest) ValidateAll ¶
func (m *GetPromotedChatsRequest) ValidateAll() error
ValidateAll checks the field values on GetPromotedChatsRequest 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 GetPromotedChatsRequestMultiError, or nil if none found.
type GetPromotedChatsRequestMultiError ¶
type GetPromotedChatsRequestMultiError []error
GetPromotedChatsRequestMultiError is an error wrapping multiple validation errors returned by GetPromotedChatsRequest.ValidateAll() if the designated constraints aren't met.
func (GetPromotedChatsRequestMultiError) AllErrors ¶
func (m GetPromotedChatsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPromotedChatsRequestMultiError) Error ¶
func (m GetPromotedChatsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPromotedChatsRequestValidationError ¶
type GetPromotedChatsRequestValidationError struct {
// contains filtered or unexported fields
}
GetPromotedChatsRequestValidationError is the validation error returned by GetPromotedChatsRequest.Validate if the designated constraints aren't met.
func (GetPromotedChatsRequestValidationError) Cause ¶
func (e GetPromotedChatsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPromotedChatsRequestValidationError) Error ¶
func (e GetPromotedChatsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPromotedChatsRequestValidationError) ErrorName ¶
func (e GetPromotedChatsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPromotedChatsRequestValidationError) Field ¶
func (e GetPromotedChatsRequestValidationError) Field() string
Field function returns field value.
func (GetPromotedChatsRequestValidationError) Key ¶
func (e GetPromotedChatsRequestValidationError) Key() bool
Key function returns key value.
func (GetPromotedChatsRequestValidationError) Reason ¶
func (e GetPromotedChatsRequestValidationError) Reason() string
Reason function returns reason value.
type GetPromotedChatsResponse ¶
type GetPromotedChatsResponse struct { Result GetPromotedChatsResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=flipchat.promoted.v1.GetPromotedChatsResponse_Result" json:"result,omitempty"` Chats []*v1.ChatId `protobuf:"bytes,2,rep,name=chats,proto3" json:"chats,omitempty"` // contains filtered or unexported fields }
func (*GetPromotedChatsResponse) Descriptor
deprecated
func (*GetPromotedChatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPromotedChatsResponse.ProtoReflect.Descriptor instead.
func (*GetPromotedChatsResponse) GetChats ¶
func (x *GetPromotedChatsResponse) GetChats() []*v1.ChatId
func (*GetPromotedChatsResponse) GetResult ¶
func (x *GetPromotedChatsResponse) GetResult() GetPromotedChatsResponse_Result
func (*GetPromotedChatsResponse) ProtoMessage ¶
func (*GetPromotedChatsResponse) ProtoMessage()
func (*GetPromotedChatsResponse) ProtoReflect ¶
func (x *GetPromotedChatsResponse) ProtoReflect() protoreflect.Message
func (*GetPromotedChatsResponse) Reset ¶
func (x *GetPromotedChatsResponse) Reset()
func (*GetPromotedChatsResponse) String ¶
func (x *GetPromotedChatsResponse) String() string
func (*GetPromotedChatsResponse) Validate ¶
func (m *GetPromotedChatsResponse) Validate() error
Validate checks the field values on GetPromotedChatsResponse 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 (*GetPromotedChatsResponse) ValidateAll ¶
func (m *GetPromotedChatsResponse) ValidateAll() error
ValidateAll checks the field values on GetPromotedChatsResponse 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 GetPromotedChatsResponseMultiError, or nil if none found.
type GetPromotedChatsResponseMultiError ¶
type GetPromotedChatsResponseMultiError []error
GetPromotedChatsResponseMultiError is an error wrapping multiple validation errors returned by GetPromotedChatsResponse.ValidateAll() if the designated constraints aren't met.
func (GetPromotedChatsResponseMultiError) AllErrors ¶
func (m GetPromotedChatsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPromotedChatsResponseMultiError) Error ¶
func (m GetPromotedChatsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPromotedChatsResponseValidationError ¶
type GetPromotedChatsResponseValidationError struct {
// contains filtered or unexported fields
}
GetPromotedChatsResponseValidationError is the validation error returned by GetPromotedChatsResponse.Validate if the designated constraints aren't met.
func (GetPromotedChatsResponseValidationError) Cause ¶
func (e GetPromotedChatsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetPromotedChatsResponseValidationError) Error ¶
func (e GetPromotedChatsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetPromotedChatsResponseValidationError) ErrorName ¶
func (e GetPromotedChatsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetPromotedChatsResponseValidationError) Field ¶
func (e GetPromotedChatsResponseValidationError) Field() string
Field function returns field value.
func (GetPromotedChatsResponseValidationError) Key ¶
func (e GetPromotedChatsResponseValidationError) Key() bool
Key function returns key value.
func (GetPromotedChatsResponseValidationError) Reason ¶
func (e GetPromotedChatsResponseValidationError) Reason() string
Reason function returns reason value.
type GetPromotedChatsResponse_Result ¶
type GetPromotedChatsResponse_Result int32
const ( GetPromotedChatsResponse_OK GetPromotedChatsResponse_Result = 0 GetPromotedChatsResponse_DENIED GetPromotedChatsResponse_Result = 1 GetPromotedChatsResponse_INVALID_REQUEST GetPromotedChatsResponse_Result = 2 GetPromotedChatsResponse_UNKNOWN_TOPIC GetPromotedChatsResponse_Result = 3 )
func (GetPromotedChatsResponse_Result) Descriptor ¶
func (GetPromotedChatsResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetPromotedChatsResponse_Result) Enum ¶
func (x GetPromotedChatsResponse_Result) Enum() *GetPromotedChatsResponse_Result
func (GetPromotedChatsResponse_Result) EnumDescriptor
deprecated
func (GetPromotedChatsResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetPromotedChatsResponse_Result.Descriptor instead.
func (GetPromotedChatsResponse_Result) Number ¶
func (x GetPromotedChatsResponse_Result) Number() protoreflect.EnumNumber
func (GetPromotedChatsResponse_Result) String ¶
func (x GetPromotedChatsResponse_Result) String() string
func (GetPromotedChatsResponse_Result) Type ¶
func (GetPromotedChatsResponse_Result) Type() protoreflect.EnumType
type PromotedClient ¶
type PromotedClient interface {
GetPromotedChats(ctx context.Context, in *GetPromotedChatsRequest, opts ...grpc.CallOption) (*GetPromotedChatsResponse, error)
}
PromotedClient is the client API for Promoted 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 NewPromotedClient ¶
func NewPromotedClient(cc grpc.ClientConnInterface) PromotedClient
type PromotedServer ¶
type PromotedServer interface { GetPromotedChats(context.Context, *GetPromotedChatsRequest) (*GetPromotedChatsResponse, error) // contains filtered or unexported methods }
PromotedServer is the server API for Promoted service. All implementations must embed UnimplementedPromotedServer for forward compatibility.
type UnimplementedPromotedServer ¶
type UnimplementedPromotedServer struct{}
UnimplementedPromotedServer 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 (UnimplementedPromotedServer) GetPromotedChats ¶
func (UnimplementedPromotedServer) GetPromotedChats(context.Context, *GetPromotedChatsRequest) (*GetPromotedChatsResponse, error)
type UnsafePromotedServer ¶
type UnsafePromotedServer interface {
// contains filtered or unexported methods
}
UnsafePromotedServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PromotedServer will result in compilation errors.