go-kratos/api/websocket/socket.pb.go

184 lines
5.6 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v4.25.0
// source: websocket/socket.proto
package websocket
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type SendMessageRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
To []string `protobuf:"bytes,1,rep,name=to,proto3" json:"to,omitempty"`
From []string `protobuf:"bytes,2,rep,name=from,proto3" json:"from,omitempty"`
Message []string `protobuf:"bytes,3,rep,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SendMessageRequest) Reset() {
*x = SendMessageRequest{}
mi := &file_websocket_socket_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SendMessageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SendMessageRequest) ProtoMessage() {}
func (x *SendMessageRequest) ProtoReflect() protoreflect.Message {
mi := &file_websocket_socket_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.
func (*SendMessageRequest) Descriptor() ([]byte, []int) {
return file_websocket_socket_proto_rawDescGZIP(), []int{0}
}
func (x *SendMessageRequest) GetTo() []string {
if x != nil {
return x.To
}
return nil
}
func (x *SendMessageRequest) GetFrom() []string {
if x != nil {
return x.From
}
return nil
}
func (x *SendMessageRequest) GetMessage() []string {
if x != nil {
return x.Message
}
return nil
}
type SendMessageReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SendMessageReply) Reset() {
*x = SendMessageReply{}
mi := &file_websocket_socket_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SendMessageReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SendMessageReply) ProtoMessage() {}
func (x *SendMessageReply) ProtoReflect() protoreflect.Message {
mi := &file_websocket_socket_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SendMessageReply.ProtoReflect.Descriptor instead.
func (*SendMessageReply) Descriptor() ([]byte, []int) {
return file_websocket_socket_proto_rawDescGZIP(), []int{1}
}
var File_websocket_socket_proto protoreflect.FileDescriptor
const file_websocket_socket_proto_rawDesc = "" +
"\n" +
"\x16websocket/socket.proto\x12\rapi.websocket\"R\n" +
"\x12SendMessageRequest\x12\x0e\n" +
"\x02to\x18\x01 \x03(\tR\x02to\x12\x12\n" +
"\x04from\x18\x02 \x03(\tR\x04from\x12\x18\n" +
"\amessage\x18\x03 \x03(\tR\amessage\"\x12\n" +
"\x10SendMessageReply2]\n" +
"\x06Socket\x12S\n" +
"\vSendMessage\x12!.api.websocket.SendMessageRequest\x1a\x1f.api.websocket.SendMessageReply\"\x00B7\n" +
"\rapi.websocketP\x01Z$ky-go-kratos/api/websocket;websocketb\x06proto3"
var (
file_websocket_socket_proto_rawDescOnce sync.Once
file_websocket_socket_proto_rawDescData []byte
)
func file_websocket_socket_proto_rawDescGZIP() []byte {
file_websocket_socket_proto_rawDescOnce.Do(func() {
file_websocket_socket_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_websocket_socket_proto_rawDesc), len(file_websocket_socket_proto_rawDesc)))
})
return file_websocket_socket_proto_rawDescData
}
var file_websocket_socket_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_websocket_socket_proto_goTypes = []any{
(*SendMessageRequest)(nil), // 0: api.websocket.SendMessageRequest
(*SendMessageReply)(nil), // 1: api.websocket.SendMessageReply
}
var file_websocket_socket_proto_depIdxs = []int32{
0, // 0: api.websocket.Socket.SendMessage:input_type -> api.websocket.SendMessageRequest
1, // 1: api.websocket.Socket.SendMessage:output_type -> api.websocket.SendMessageReply
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_websocket_socket_proto_init() }
func file_websocket_socket_proto_init() {
if File_websocket_socket_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_websocket_socket_proto_rawDesc), len(file_websocket_socket_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_websocket_socket_proto_goTypes,
DependencyIndexes: file_websocket_socket_proto_depIdxs,
MessageInfos: file_websocket_socket_proto_msgTypes,
}.Build()
File_websocket_socket_proto = out.File
file_websocket_socket_proto_goTypes = nil
file_websocket_socket_proto_depIdxs = nil
}