promotedpb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: MIT Imports: 22 Imported by: 2

Documentation

Index

Constants

View Source
const (
)

Variables

View Source
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.

View Source
var File_promoted_v1_promoted_service_proto protoreflect.FileDescriptor
View Source
	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

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

Cause function returns cause value.

func (GetPromotedChatsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPromotedChatsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetPromotedChatsRequestValidationError) Field

Field function returns field value.

func (GetPromotedChatsRequestValidationError) Key

Key function returns key value.

func (GetPromotedChatsRequestValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (GetPromotedChatsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetPromotedChatsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetPromotedChatsResponseValidationError) Field

Field function returns field value.

func (GetPromotedChatsResponseValidationError) Key

Key function returns key value.

func (GetPromotedChatsResponseValidationError) Reason

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) Enum

func (GetPromotedChatsResponse_Result) EnumDescriptor deprecated

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

Deprecated: Use GetPromotedChatsResponse_Result.Descriptor instead.

func (GetPromotedChatsResponse_Result) Number

func (GetPromotedChatsResponse_Result) String

func (GetPromotedChatsResponse_Result) Type

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

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.

Jump to

Keyboard shortcuts

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