// Copyright 2025 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.9
// 	protoc        (unknown)
// source: rsb/mesh/mesh.proto

// This schema is taken from the Rust Serialization Benchmark. It is
// additionally covered by the following license:
//
// Copyright 2023-2025 David Koloski
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the “Software”), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.

// buf:lint:ignore PACKAGE_VERSION_SUFFIX
// buf:lint:ignore PACKAGE_DIRECTORY_MATCH

package mesh

import (
	_ "buf.build/go/hyperpb/internal/gen/rsb"
	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_rsb_mesh_mesh_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_rsb_mesh_mesh_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_rsb_mesh_mesh_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 Triangle struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	V0            *Vector3               `protobuf:"bytes,1,opt,name=v0,proto3" json:"v0,omitempty"`
	V1            *Vector3               `protobuf:"bytes,2,opt,name=v1,proto3" json:"v1,omitempty"`
	V2            *Vector3               `protobuf:"bytes,3,opt,name=v2,proto3" json:"v2,omitempty"`
	Normal        *Vector3               `protobuf:"bytes,4,opt,name=normal,proto3" json:"normal,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Triangle) ProtoMessage() {}

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

func (x *Triangle) GetV0() *Vector3 {
	if x != nil {
		return x.V0
	}
	return nil
}

func (x *Triangle) GetV1() *Vector3 {
	if x != nil {
		return x.V1
	}
	return nil
}

func (x *Triangle) GetV2() *Vector3 {
	if x != nil {
		return x.V2
	}
	return nil
}

func (x *Triangle) GetNormal() *Vector3 {
	if x != nil {
		return x.Normal
	}
	return nil
}

type Mesh struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Triangles     []*Triangle            `protobuf:"bytes,1,rep,name=triangles,proto3" json:"triangles,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Mesh) ProtoMessage() {}

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

func (x *Mesh) GetTriangles() []*Triangle {
	if x != nil {
		return x.Triangles
	}
	return nil
}

var File_rsb_mesh_mesh_proto protoreflect.FileDescriptor

const file_rsb_mesh_mesh_proto_rawDesc = "" +
	"\n" +
	"\x13rsb/mesh/mesh.proto\x12\x10hyperpb.rsb.mesh\x1a\x11rsb/options.proto\"c\n" +
	"\aVector3\x12\x1c\n" +
	"\x01x\x18\x01 \x01(\x02B\x0e\x8a\xe3\xfb\x02\t\t\x00\x00\x00\x00\x00\x00\xf0?R\x01x\x12\x1c\n" +
	"\x01y\x18\x02 \x01(\x02B\x0e\x8a\xe3\xfb\x02\t\t\x00\x00\x00\x00\x00\x00\xf0?R\x01y\x12\x1c\n" +
	"\x01z\x18\x03 \x01(\x02B\x0e\x8a\xe3\xfb\x02\t\t\x00\x00\x00\x00\x00\x00\xf0?R\x01z\"\xfe\x01\n" +
	"\bTriangle\x129\n" +
	"\x02v0\x18\x01 \x01(\v2\x19.hyperpb.rsb.mesh.Vector3B\x0e\x8a\xe3\xfb\x02\t\t\x00\x00\x00\x00\x00\x00\xf0?R\x02v0\x129\n" +
	"\x02v1\x18\x02 \x01(\v2\x19.hyperpb.rsb.mesh.Vector3B\x0e\x8a\xe3\xfb\x02\t\t\x00\x00\x00\x00\x00\x00\xf0?R\x02v1\x129\n" +
	"\x02v2\x18\x03 \x01(\v2\x19.hyperpb.rsb.mesh.Vector3B\x0e\x8a\xe3\xfb\x02\t\t\x00\x00\x00\x00\x00\x00\xf0?R\x02v2\x12A\n" +
	"\x06normal\x18\x04 \x01(\v2\x19.hyperpb.rsb.mesh.Vector3B\x0e\x8a\xe3\xfb\x02\t\t\x00\x00\x00\x00\x00\x00\xf0?R\x06normal\"Z\n" +
	"\x04Mesh\x12R\n" +
	"\ttriangles\x18\x01 \x03(\v2\x1a.hyperpb.rsb.mesh.TriangleB\x18\x8a\xe3\xfb\x02\x13\t\x00\x00\x00\x00\x00\x00\xf0?R\b\b\xa0\x8d\x06\x10\xa0\x8d\x06R\ttrianglesB\xaf\x01\n" +
	"\x14com.hyperpb.rsb.meshB\tMeshProtoP\x01Z*buf.build/go/hyperpb/internal/gen/rsb/mesh\xa2\x02\x03HRM\xaa\x02\x10Hyperpb.Rsb.Mesh\xca\x02\x10Hyperpb\\Rsb\\Mesh\xe2\x02\x1cHyperpb\\Rsb\\Mesh\\GPBMetadata\xea\x02\x12Hyperpb::Rsb::Meshb\x06proto3"

var (
	file_rsb_mesh_mesh_proto_rawDescOnce sync.Once
	file_rsb_mesh_mesh_proto_rawDescData []byte
)

func file_rsb_mesh_mesh_proto_rawDescGZIP() []byte {
	file_rsb_mesh_mesh_proto_rawDescOnce.Do(func() {
		file_rsb_mesh_mesh_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rsb_mesh_mesh_proto_rawDesc), len(file_rsb_mesh_mesh_proto_rawDesc)))
	})
	return file_rsb_mesh_mesh_proto_rawDescData
}

var file_rsb_mesh_mesh_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_rsb_mesh_mesh_proto_goTypes = []any{
	(*Vector3)(nil),  // 0: hyperpb.rsb.mesh.Vector3
	(*Triangle)(nil), // 1: hyperpb.rsb.mesh.Triangle
	(*Mesh)(nil),     // 2: hyperpb.rsb.mesh.Mesh
}
var file_rsb_mesh_mesh_proto_depIdxs = []int32{
	0, // 0: hyperpb.rsb.mesh.Triangle.v0:type_name -> hyperpb.rsb.mesh.Vector3
	0, // 1: hyperpb.rsb.mesh.Triangle.v1:type_name -> hyperpb.rsb.mesh.Vector3
	0, // 2: hyperpb.rsb.mesh.Triangle.v2:type_name -> hyperpb.rsb.mesh.Vector3
	0, // 3: hyperpb.rsb.mesh.Triangle.normal:type_name -> hyperpb.rsb.mesh.Vector3
	1, // 4: hyperpb.rsb.mesh.Mesh.triangles:type_name -> hyperpb.rsb.mesh.Triangle
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_rsb_mesh_mesh_proto_init() }
func file_rsb_mesh_mesh_proto_init() {
	if File_rsb_mesh_mesh_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_rsb_mesh_mesh_proto_rawDesc), len(file_rsb_mesh_mesh_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_rsb_mesh_mesh_proto_goTypes,
		DependencyIndexes: file_rsb_mesh_mesh_proto_depIdxs,
		MessageInfos:      file_rsb_mesh_mesh_proto_msgTypes,
	}.Build()
	File_rsb_mesh_mesh_proto = out.File
	file_rsb_mesh_mesh_proto_goTypes = nil
	file_rsb_mesh_mesh_proto_depIdxs = nil
}
