// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v5.29.3
// source: packets/message_common.proto

package packets

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 PacketBase struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	TypeName      string                 `protobuf:"bytes,1,opt,name=typeName,proto3" json:"typeName,omitempty"`
	Nonce         int32                  `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Data          []byte                 `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	ResponseNonce int32                  `protobuf:"varint,4,opt,name=responseNonce,proto3" json:"responseNonce,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *PacketBase) Reset() {
	*x = PacketBase{}
	mi := &file_packets_message_common_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *PacketBase) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*PacketBase) ProtoMessage() {}

func (x *PacketBase) ProtoReflect() protoreflect.Message {
	mi := &file_packets_message_common_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 PacketBase.ProtoReflect.Descriptor instead.
func (*PacketBase) Descriptor() ([]byte, []int) {
	return file_packets_message_common_proto_rawDescGZIP(), []int{0}
}

func (x *PacketBase) GetTypeName() string {
	if x != nil {
		return x.TypeName
	}
	return ""
}

func (x *PacketBase) GetNonce() int32 {
	if x != nil {
		return x.Nonce
	}
	return 0
}

func (x *PacketBase) GetData() []byte {
	if x != nil {
		return x.Data
	}
	return nil
}

func (x *PacketBase) GetResponseNonce() int32 {
	if x != nil {
		return x.ResponseNonce
	}
	return 0
}

type HeartBeat struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *HeartBeat) Reset() {
	*x = HeartBeat{}
	mi := &file_packets_message_common_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *HeartBeat) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*HeartBeat) ProtoMessage() {}

func (x *HeartBeat) ProtoReflect() protoreflect.Message {
	mi := &file_packets_message_common_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 HeartBeat.ProtoReflect.Descriptor instead.
func (*HeartBeat) Descriptor() ([]byte, []int) {
	return file_packets_message_common_proto_rawDescGZIP(), []int{1}
}

type TestData struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Index         int32                  `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Message       string                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TestData) Reset() {
	*x = TestData{}
	mi := &file_packets_message_common_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *TestData) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*TestData) ProtoMessage() {}

func (x *TestData) ProtoReflect() protoreflect.Message {
	mi := &file_packets_message_common_proto_msgTypes[2]
	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 TestData.ProtoReflect.Descriptor instead.
func (*TestData) Descriptor() ([]byte, []int) {
	return file_packets_message_common_proto_rawDescGZIP(), []int{2}
}

func (x *TestData) GetIndex() int32 {
	if x != nil {
		return x.Index
	}
	return 0
}

func (x *TestData) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

var File_packets_message_common_proto protoreflect.FileDescriptor

const file_packets_message_common_proto_rawDesc = "" +
	"\n" +
	"\x1cpackets/message_common.proto\x12\fproto_socket\"x\n" +
	"\n" +
	"PacketBase\x12\x1a\n" +
	"\btypeName\x18\x01 \x01(\tR\btypeName\x12\x14\n" +
	"\x05nonce\x18\x02 \x01(\x05R\x05nonce\x12\x12\n" +
	"\x04data\x18\x03 \x01(\fR\x04data\x12$\n" +
	"\rresponseNonce\x18\x04 \x01(\x05R\rresponseNonce\"\v\n" +
	"\tHeartBeat\":\n" +
	"\bTestData\x12\x14\n" +
	"\x05index\x18\x01 \x01(\x05R\x05index\x12\x18\n" +
	"\amessage\x18\x02 \x01(\tR\amessageB0Z.git.toki-labs.com/toki/proto-socket/go/packetsb\x06proto3"

var (
	file_packets_message_common_proto_rawDescOnce sync.Once
	file_packets_message_common_proto_rawDescData []byte
)

func file_packets_message_common_proto_rawDescGZIP() []byte {
	file_packets_message_common_proto_rawDescOnce.Do(func() {
		file_packets_message_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_packets_message_common_proto_rawDesc), len(file_packets_message_common_proto_rawDesc)))
	})
	return file_packets_message_common_proto_rawDescData
}

var file_packets_message_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_packets_message_common_proto_goTypes = []any{
	(*PacketBase)(nil), // 0: proto_socket.PacketBase
	(*HeartBeat)(nil),  // 1: proto_socket.HeartBeat
	(*TestData)(nil),   // 2: proto_socket.TestData
}
var file_packets_message_common_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] 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_packets_message_common_proto_init() }
func file_packets_message_common_proto_init() {
	if File_packets_message_common_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_packets_message_common_proto_rawDesc), len(file_packets_message_common_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_packets_message_common_proto_goTypes,
		DependencyIndexes: file_packets_message_common_proto_depIdxs,
		MessageInfos:      file_packets_message_common_proto_msgTypes,
	}.Build()
	File_packets_message_common_proto = out.File
	file_packets_message_common_proto_goTypes = nil
	file_packets_message_common_proto_depIdxs = nil
}
