// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mediapipe/modules/face_geometry/protos/face_geometry.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/face_geometry.proto public static partial class FaceGeometryReflection { #region Descriptor /// File descriptor for mediapipe/modules/face_geometry/protos/face_geometry.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static FaceGeometryReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjptZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L3Byb3Rvcy9mYWNl", "X2dlb21ldHJ5LnByb3RvEhdtZWRpYXBpcGUuZmFjZV9nZW9tZXRyeRotbWVk", "aWFwaXBlL2ZyYW1ld29yay9mb3JtYXRzL21hdHJpeF9kYXRhLnByb3RvGjRt", "ZWRpYXBpcGUvbW9kdWxlcy9mYWNlX2dlb21ldHJ5L3Byb3Rvcy9tZXNoXzNk", "LnByb3RvInMKDEZhY2VHZW9tZXRyeRItCgRtZXNoGAEgASgLMh8ubWVkaWFw", "aXBlLmZhY2VfZ2VvbWV0cnkuTWVzaDNkEjQKFXBvc2VfdHJhbnNmb3JtX21h", "dHJpeBgCIAEoCzIVLm1lZGlhcGlwZS5NYXRyaXhEYXRhQj4KKWNvbS5nb29n", "bGUubWVkaWFwaXBlLm1vZHVsZXMuZmFjZWdlb21ldHJ5QhFGYWNlR2VvbWV0", "cnlQcm90bw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Mediapipe.MatrixDataReflection.Descriptor, global::Mediapipe.FaceGeometry.Mesh3DReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FaceGeometry.FaceGeometry), global::Mediapipe.FaceGeometry.FaceGeometry.Parser, new[]{ "Mesh", "PoseTransformMatrix" }, null, null, null, null) })); } #endregion } #region Messages /// /// Defines the face geometry pipeline estimation result format. /// public sealed partial class FaceGeometry : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FaceGeometry()); private pb::UnknownFieldSet _unknownFields; [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.FaceGeometryReflection.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 FaceGeometry() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FaceGeometry(FaceGeometry other) : this() { mesh_ = other.mesh_ != null ? other.mesh_.Clone() : null; poseTransformMatrix_ = other.poseTransformMatrix_ != null ? other.poseTransformMatrix_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FaceGeometry Clone() { return new FaceGeometry(this); } /// Field number for the "mesh" field. public const int MeshFieldNumber = 1; private global::Mediapipe.FaceGeometry.Mesh3d mesh_; /// /// Defines a mesh surface for a face. The face mesh vertex IDs are the same as /// the face landmark IDs. /// /// XYZ coordinates exist in the right-handed Metric 3D space configured by an /// environment. UV coodinates are taken from the canonical face mesh model. /// /// XY coordinates are guaranteed to match the screen positions of /// the input face landmarks after (1) being multiplied by the face pose /// transformation matrix and then (2) being projected with a perspective /// camera matrix of the same environment. /// /// NOTE: the triangular topology of the face mesh is only useful when derived /// from the 468 face landmarks, not from the 6 face detection landmarks /// (keypoints). The former don't cover the entire face and this mesh is /// defined here only to comply with the API. It should be considered as /// a placeholder and/or for debugging purposes. /// /// Use the face geometry derived from the face detection landmarks /// (keypoints) for the face pose transformation matrix, not the mesh. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Mediapipe.FaceGeometry.Mesh3d Mesh { get { return mesh_; } set { mesh_ = value; } } /// Field number for the "pose_transform_matrix" field. public const int PoseTransformMatrixFieldNumber = 2; private global::Mediapipe.MatrixData poseTransformMatrix_; /// /// Defines a face pose transformation matrix, which provides mapping from /// the static canonical face model to the runtime face. Tries to distinguish /// a head pose change from a facial expression change and to only reflect the /// former. /// /// Is a 4x4 matrix and contains only the following components: /// * Uniform scale /// * Rotation /// * Translation /// /// The last row is guaranteed to be `[0 0 0 1]`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Mediapipe.MatrixData PoseTransformMatrix { get { return poseTransformMatrix_; } set { poseTransformMatrix_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as FaceGeometry); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(FaceGeometry other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Mesh, other.Mesh)) return false; if (!object.Equals(PoseTransformMatrix, other.PoseTransformMatrix)) 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 (mesh_ != null) hash ^= Mesh.GetHashCode(); if (poseTransformMatrix_ != null) hash ^= PoseTransformMatrix.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 (mesh_ != null) { output.WriteRawTag(10); output.WriteMessage(Mesh); } if (poseTransformMatrix_ != null) { output.WriteRawTag(18); output.WriteMessage(PoseTransformMatrix); } 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 (mesh_ != null) { output.WriteRawTag(10); output.WriteMessage(Mesh); } if (poseTransformMatrix_ != null) { output.WriteRawTag(18); output.WriteMessage(PoseTransformMatrix); } 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 (mesh_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Mesh); } if (poseTransformMatrix_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PoseTransformMatrix); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(FaceGeometry other) { if (other == null) { return; } if (other.mesh_ != null) { if (mesh_ == null) { Mesh = new global::Mediapipe.FaceGeometry.Mesh3d(); } Mesh.MergeFrom(other.Mesh); } if (other.poseTransformMatrix_ != null) { if (poseTransformMatrix_ == null) { PoseTransformMatrix = new global::Mediapipe.MatrixData(); } PoseTransformMatrix.MergeFrom(other.PoseTransformMatrix); } _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 10: { if (mesh_ == null) { Mesh = new global::Mediapipe.FaceGeometry.Mesh3d(); } input.ReadMessage(Mesh); break; } case 18: { if (poseTransformMatrix_ == null) { PoseTransformMatrix = new global::Mediapipe.MatrixData(); } input.ReadMessage(PoseTransformMatrix); 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 10: { if (mesh_ == null) { Mesh = new global::Mediapipe.FaceGeometry.Mesh3d(); } input.ReadMessage(Mesh); break; } case 18: { if (poseTransformMatrix_ == null) { PoseTransformMatrix = new global::Mediapipe.MatrixData(); } input.ReadMessage(PoseTransformMatrix); break; } } } } #endif } #endregion } #endregion Designer generated code