//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/modules/face_geometry/protos/mesh_3d.proto
//
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Mediapipe.FaceGeometry {
/// Holder for reflection information generated from mediapipe/modules/face_geometry/protos/mesh_3d.proto
public static partial class Mesh3DReflection {
#region Descriptor
/// File descriptor for mediapipe/modules/face_geometry/protos/mesh_3d.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static Mesh3DReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjRtZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L3Byb3Rvcy9tZXNo",
"XzNkLnByb3RvEhdtZWRpYXBpcGUuZmFjZV9nZW9tZXRyeSL5AQoGTWVzaDNk",
"Ej8KC3ZlcnRleF90eXBlGAEgASgOMioubWVkaWFwaXBlLmZhY2VfZ2VvbWV0",
"cnkuTWVzaDNkLlZlcnRleFR5cGUSRQoOcHJpbWl0aXZlX3R5cGUYAiABKA4y",
"LS5tZWRpYXBpcGUuZmFjZV9nZW9tZXRyeS5NZXNoM2QuUHJpbWl0aXZlVHlw",
"ZRIVCg12ZXJ0ZXhfYnVmZmVyGAMgAygCEhQKDGluZGV4X2J1ZmZlchgEIAMo",
"DSIbCgpWZXJ0ZXhUeXBlEg0KCVZFUlRFWF9QVBAAIh0KDVByaW1pdGl2ZVR5",
"cGUSDAoIVFJJQU5HTEUQAEI4Ciljb20uZ29vZ2xlLm1lZGlhcGlwZS5tb2R1",
"bGVzLmZhY2VnZW9tZXRyeUILTWVzaDNkUHJvdG8="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FaceGeometry.Mesh3d), global::Mediapipe.FaceGeometry.Mesh3d.Parser, new[]{ "VertexType", "PrimitiveType", "VertexBuffer", "IndexBuffer" }, null, new[]{ typeof(global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType), typeof(global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType) }, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class Mesh3d : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Mesh3d());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.FaceGeometry.Mesh3DReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Mesh3d() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Mesh3d(Mesh3d other) : this() {
_hasBits0 = other._hasBits0;
vertexType_ = other.vertexType_;
primitiveType_ = other.primitiveType_;
vertexBuffer_ = other.vertexBuffer_.Clone();
indexBuffer_ = other.indexBuffer_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Mesh3d Clone() {
return new Mesh3d(this);
}
/// Field number for the "vertex_type" field.
public const int VertexTypeFieldNumber = 1;
private readonly static global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType VertexTypeDefaultValue = global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType.VertexPt;
private global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType vertexType_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType VertexType {
get { if ((_hasBits0 & 1) != 0) { return vertexType_; } else { return VertexTypeDefaultValue; } }
set {
_hasBits0 |= 1;
vertexType_ = value;
}
}
/// Gets whether the "vertex_type" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasVertexType {
get { return (_hasBits0 & 1) != 0; }
}
/// Clears the value of the "vertex_type" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearVertexType() {
_hasBits0 &= ~1;
}
/// Field number for the "primitive_type" field.
public const int PrimitiveTypeFieldNumber = 2;
private readonly static global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType PrimitiveTypeDefaultValue = global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType.Triangle;
private global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType primitiveType_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType PrimitiveType {
get { if ((_hasBits0 & 2) != 0) { return primitiveType_; } else { return PrimitiveTypeDefaultValue; } }
set {
_hasBits0 |= 2;
primitiveType_ = value;
}
}
/// Gets whether the "primitive_type" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasPrimitiveType {
get { return (_hasBits0 & 2) != 0; }
}
/// Clears the value of the "primitive_type" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPrimitiveType() {
_hasBits0 &= ~2;
}
/// Field number for the "vertex_buffer" field.
public const int VertexBufferFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_vertexBuffer_codec
= pb::FieldCodec.ForFloat(29);
private readonly pbc::RepeatedField vertexBuffer_ = new pbc::RepeatedField();
///
/// Vertex buffer size is a multiple of the vertex size (e.g., 5 for
/// VERTEX_PT).
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField VertexBuffer {
get { return vertexBuffer_; }
}
/// Field number for the "index_buffer" field.
public const int IndexBufferFieldNumber = 4;
private static readonly pb::FieldCodec _repeated_indexBuffer_codec
= pb::FieldCodec.ForUInt32(32);
private readonly pbc::RepeatedField indexBuffer_ = new pbc::RepeatedField();
///
/// Index buffer size is a multiple of the primitive size (e.g., 3 for
/// TRIANGLE).
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField IndexBuffer {
get { return indexBuffer_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Mesh3d);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Mesh3d other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (VertexType != other.VertexType) return false;
if (PrimitiveType != other.PrimitiveType) return false;
if(!vertexBuffer_.Equals(other.vertexBuffer_)) return false;
if(!indexBuffer_.Equals(other.indexBuffer_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasVertexType) hash ^= VertexType.GetHashCode();
if (HasPrimitiveType) hash ^= PrimitiveType.GetHashCode();
hash ^= vertexBuffer_.GetHashCode();
hash ^= indexBuffer_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasVertexType) {
output.WriteRawTag(8);
output.WriteEnum((int) VertexType);
}
if (HasPrimitiveType) {
output.WriteRawTag(16);
output.WriteEnum((int) PrimitiveType);
}
vertexBuffer_.WriteTo(output, _repeated_vertexBuffer_codec);
indexBuffer_.WriteTo(output, _repeated_indexBuffer_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasVertexType) {
output.WriteRawTag(8);
output.WriteEnum((int) VertexType);
}
if (HasPrimitiveType) {
output.WriteRawTag(16);
output.WriteEnum((int) PrimitiveType);
}
vertexBuffer_.WriteTo(ref output, _repeated_vertexBuffer_codec);
indexBuffer_.WriteTo(ref output, _repeated_indexBuffer_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasVertexType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VertexType);
}
if (HasPrimitiveType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrimitiveType);
}
size += vertexBuffer_.CalculateSize(_repeated_vertexBuffer_codec);
size += indexBuffer_.CalculateSize(_repeated_indexBuffer_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Mesh3d other) {
if (other == null) {
return;
}
if (other.HasVertexType) {
VertexType = other.VertexType;
}
if (other.HasPrimitiveType) {
PrimitiveType = other.PrimitiveType;
}
vertexBuffer_.Add(other.vertexBuffer_);
indexBuffer_.Add(other.indexBuffer_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
VertexType = (global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType) input.ReadEnum();
break;
}
case 16: {
PrimitiveType = (global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType) input.ReadEnum();
break;
}
case 26:
case 29: {
vertexBuffer_.AddEntriesFrom(input, _repeated_vertexBuffer_codec);
break;
}
case 34:
case 32: {
indexBuffer_.AddEntriesFrom(input, _repeated_indexBuffer_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
VertexType = (global::Mediapipe.FaceGeometry.Mesh3d.Types.VertexType) input.ReadEnum();
break;
}
case 16: {
PrimitiveType = (global::Mediapipe.FaceGeometry.Mesh3d.Types.PrimitiveType) input.ReadEnum();
break;
}
case 26:
case 29: {
vertexBuffer_.AddEntriesFrom(ref input, _repeated_vertexBuffer_codec);
break;
}
case 34:
case 32: {
indexBuffer_.AddEntriesFrom(ref input, _repeated_indexBuffer_codec);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Mesh3d message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public enum VertexType {
///
/// Is defined by 5 coordinates: Position (XYZ) + Texture coordinate (UV).
///
[pbr::OriginalName("VERTEX_PT")] VertexPt = 0,
}
public enum PrimitiveType {
///
/// Is defined by 3 indices: triangle vertex IDs.
///
[pbr::OriginalName("TRIANGLE")] Triangle = 0,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code