Files
arpack/benchmarks/proto/move.pb.go
T

254 lines
7.4 KiB
Go
Raw Normal View History

2026-03-23 12:52:30 +03:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.10
// protoc v6.33.0
// source: benchmarks/proto/move.proto
package proto
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 Vector3 struct {
state protoimpl.MessageState `protogen:"open.v1"`
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Vector3) Reset() {
*x = Vector3{}
mi := &file_benchmarks_proto_move_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Vector3) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Vector3) ProtoMessage() {}
func (x *Vector3) ProtoReflect() protoreflect.Message {
mi := &file_benchmarks_proto_move_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 Vector3.ProtoReflect.Descriptor instead.
func (*Vector3) Descriptor() ([]byte, []int) {
return file_benchmarks_proto_move_proto_rawDescGZIP(), []int{0}
}
func (x *Vector3) GetX() float32 {
if x != nil {
return x.X
}
return 0
}
func (x *Vector3) GetY() float32 {
if x != nil {
return x.Y
}
return 0
}
func (x *Vector3) GetZ() float32 {
if x != nil {
return x.Z
}
return 0
}
type MoveMessage struct {
state protoimpl.MessageState `protogen:"open.v1"`
Position *Vector3 `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
Velocity []float32 `protobuf:"fixed32,2,rep,packed,name=velocity,proto3" json:"velocity,omitempty"`
Waypoints []*Vector3 `protobuf:"bytes,3,rep,name=waypoints,proto3" json:"waypoints,omitempty"`
PlayerId uint32 `protobuf:"varint,4,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"`
Visible bool `protobuf:"varint,6,opt,name=visible,proto3" json:"visible,omitempty"`
Ghost bool `protobuf:"varint,7,opt,name=ghost,proto3" json:"ghost,omitempty"`
Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MoveMessage) Reset() {
*x = MoveMessage{}
mi := &file_benchmarks_proto_move_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MoveMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MoveMessage) ProtoMessage() {}
func (x *MoveMessage) ProtoReflect() protoreflect.Message {
mi := &file_benchmarks_proto_move_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 MoveMessage.ProtoReflect.Descriptor instead.
func (*MoveMessage) Descriptor() ([]byte, []int) {
return file_benchmarks_proto_move_proto_rawDescGZIP(), []int{1}
}
func (x *MoveMessage) GetPosition() *Vector3 {
if x != nil {
return x.Position
}
return nil
}
func (x *MoveMessage) GetVelocity() []float32 {
if x != nil {
return x.Velocity
}
return nil
}
func (x *MoveMessage) GetWaypoints() []*Vector3 {
if x != nil {
return x.Waypoints
}
return nil
}
func (x *MoveMessage) GetPlayerId() uint32 {
if x != nil {
return x.PlayerId
}
return 0
}
func (x *MoveMessage) GetActive() bool {
if x != nil {
return x.Active
}
return false
}
func (x *MoveMessage) GetVisible() bool {
if x != nil {
return x.Visible
}
return false
}
func (x *MoveMessage) GetGhost() bool {
if x != nil {
return x.Ghost
}
return false
}
func (x *MoveMessage) GetName() string {
if x != nil {
return x.Name
}
return ""
}
var File_benchmarks_proto_move_proto protoreflect.FileDescriptor
const file_benchmarks_proto_move_proto_rawDesc = "" +
"\n" +
"\x1bbenchmarks/proto/move.proto\x12\n" +
"benchproto\"3\n" +
"\aVector3\x12\f\n" +
"\x01x\x18\x01 \x01(\x02R\x01x\x12\f\n" +
"\x01y\x18\x02 \x01(\x02R\x01y\x12\f\n" +
"\x01z\x18\x03 \x01(\x02R\x01z\"\x86\x02\n" +
"\vMoveMessage\x12/\n" +
"\bposition\x18\x01 \x01(\v2\x13.benchproto.Vector3R\bposition\x12\x1a\n" +
"\bvelocity\x18\x02 \x03(\x02R\bvelocity\x121\n" +
"\twaypoints\x18\x03 \x03(\v2\x13.benchproto.Vector3R\twaypoints\x12\x1b\n" +
"\tplayer_id\x18\x04 \x01(\rR\bplayerId\x12\x16\n" +
"\x06active\x18\x05 \x01(\bR\x06active\x12\x18\n" +
"\avisible\x18\x06 \x01(\bR\avisible\x12\x14\n" +
"\x05ghost\x18\a \x01(\bR\x05ghost\x12\x12\n" +
"\x04name\x18\b \x01(\tR\x04nameB-Z+github.com/edmand46/arpack/benchmarks/protob\x06proto3"
var (
file_benchmarks_proto_move_proto_rawDescOnce sync.Once
file_benchmarks_proto_move_proto_rawDescData []byte
)
func file_benchmarks_proto_move_proto_rawDescGZIP() []byte {
file_benchmarks_proto_move_proto_rawDescOnce.Do(func() {
file_benchmarks_proto_move_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_benchmarks_proto_move_proto_rawDesc), len(file_benchmarks_proto_move_proto_rawDesc)))
})
return file_benchmarks_proto_move_proto_rawDescData
}
var file_benchmarks_proto_move_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_benchmarks_proto_move_proto_goTypes = []any{
(*Vector3)(nil), // 0: benchproto.Vector3
(*MoveMessage)(nil), // 1: benchproto.MoveMessage
}
var file_benchmarks_proto_move_proto_depIdxs = []int32{
0, // 0: benchproto.MoveMessage.position:type_name -> benchproto.Vector3
0, // 1: benchproto.MoveMessage.waypoints:type_name -> benchproto.Vector3
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_benchmarks_proto_move_proto_init() }
func file_benchmarks_proto_move_proto_init() {
if File_benchmarks_proto_move_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_benchmarks_proto_move_proto_rawDesc), len(file_benchmarks_proto_move_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_benchmarks_proto_move_proto_goTypes,
DependencyIndexes: file_benchmarks_proto_move_proto_depIdxs,
MessageInfos: file_benchmarks_proto_move_proto_msgTypes,
}.Build()
File_benchmarks_proto_move_proto = out.File
file_benchmarks_proto_move_proto_goTypes = nil
file_benchmarks_proto_move_proto_depIdxs = nil
}