private_message

package
v0.0.0-...-5b44b94 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PrivateMessageResponse_Status_name = map[int32]string{
		0: "OK",
		1: "PLAYER_NOT_ONLINE",
		2: "PRIVACY_BLOCKED",
	}
	PrivateMessageResponse_Status_value = map[string]int32{
		"OK":                0,
		"PLAYER_NOT_ONLINE": 1,
		"PRIVACY_BLOCKED":   2,
	}
)

Enum value maps for PrivateMessageResponse_Status.

View Source
var File_private_message_proto protoreflect.FileDescriptor
View Source
var PrivateMessage_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "towerdefence.cc.service.private_message.PrivateMessage",
	HandlerType: (*PrivateMessageServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendPrivateMessage",
			Handler:    _PrivateMessage_SendPrivateMessage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "private_message.proto",
}

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

Functions

func RegisterPrivateMessageServer

func RegisterPrivateMessageServer(s grpc.ServiceRegistrar, srv PrivateMessageServer)

Types

type PrivateMessageClient

type PrivateMessageClient interface {
	SendPrivateMessage(ctx context.Context, in *PrivateMessageRequest, opts ...grpc.CallOption) (*PrivateMessageResponse, error)
}

PrivateMessageClient is the client API for PrivateMessage service.

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

type PrivateMessageRequest

type PrivateMessageRequest struct {
	SenderId       string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
	SenderUsername string `protobuf:"bytes,2,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"`
	RecipientId    string `protobuf:"bytes,3,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"`
	Message        string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivateMessageRequest) Descriptor deprecated

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

Deprecated: Use PrivateMessageRequest.ProtoReflect.Descriptor instead.

func (*PrivateMessageRequest) GetMessage

func (x *PrivateMessageRequest) GetMessage() string

func (*PrivateMessageRequest) GetRecipientId

func (x *PrivateMessageRequest) GetRecipientId() string

func (*PrivateMessageRequest) GetSenderId

func (x *PrivateMessageRequest) GetSenderId() string

func (*PrivateMessageRequest) GetSenderUsername

func (x *PrivateMessageRequest) GetSenderUsername() string

func (*PrivateMessageRequest) ProtoMessage

func (*PrivateMessageRequest) ProtoMessage()

func (*PrivateMessageRequest) ProtoReflect

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

func (*PrivateMessageRequest) Reset

func (x *PrivateMessageRequest) Reset()

func (*PrivateMessageRequest) String

func (x *PrivateMessageRequest) String() string

type PrivateMessageResponse

type PrivateMessageResponse struct {
	Status  PrivateMessageResponse_Status `` /* 141-byte string literal not displayed */
	Message string                        `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivateMessageResponse) Descriptor deprecated

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

Deprecated: Use PrivateMessageResponse.ProtoReflect.Descriptor instead.

func (*PrivateMessageResponse) GetMessage

func (x *PrivateMessageResponse) GetMessage() string

func (*PrivateMessageResponse) GetStatus

func (*PrivateMessageResponse) ProtoMessage

func (*PrivateMessageResponse) ProtoMessage()

func (*PrivateMessageResponse) ProtoReflect

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

func (*PrivateMessageResponse) Reset

func (x *PrivateMessageResponse) Reset()

func (*PrivateMessageResponse) String

func (x *PrivateMessageResponse) String() string

type PrivateMessageResponse_Status

type PrivateMessageResponse_Status int32
const (
	PrivateMessageResponse_OK                PrivateMessageResponse_Status = 0
	PrivateMessageResponse_PLAYER_NOT_ONLINE PrivateMessageResponse_Status = 1
	PrivateMessageResponse_PRIVACY_BLOCKED   PrivateMessageResponse_Status = 2
)

func (PrivateMessageResponse_Status) Descriptor

func (PrivateMessageResponse_Status) Enum

func (PrivateMessageResponse_Status) EnumDescriptor deprecated

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

Deprecated: Use PrivateMessageResponse_Status.Descriptor instead.

func (PrivateMessageResponse_Status) Number

func (PrivateMessageResponse_Status) String

func (PrivateMessageResponse_Status) Type

type PrivateMessageServer

type PrivateMessageServer interface {
	SendPrivateMessage(context.Context, *PrivateMessageRequest) (*PrivateMessageResponse, error)
	// contains filtered or unexported methods
}

PrivateMessageServer is the server API for PrivateMessage service. All implementations must embed UnimplementedPrivateMessageServer for forward compatibility

type UnimplementedPrivateMessageServer

type UnimplementedPrivateMessageServer struct {
}

UnimplementedPrivateMessageServer must be embedded to have forward compatible implementations.

func (UnimplementedPrivateMessageServer) SendPrivateMessage

type UnsafePrivateMessageServer

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

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

Jump to

Keyboard shortcuts

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