// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mediapipe/gpu/gl_surface_sink_calculator.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 { /// Holder for reflection information generated from mediapipe/gpu/gl_surface_sink_calculator.proto public static partial class GlSurfaceSinkCalculatorReflection { #region Descriptor /// File descriptor for mediapipe/gpu/gl_surface_sink_calculator.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static GlSurfaceSinkCalculatorReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ci5tZWRpYXBpcGUvZ3B1L2dsX3N1cmZhY2Vfc2lua19jYWxjdWxhdG9yLnBy", "b3RvEgltZWRpYXBpcGUaJG1lZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRv", "ci5wcm90bxoebWVkaWFwaXBlL2dwdS9zY2FsZV9tb2RlLnByb3RvIq4BCh5H", "bFN1cmZhY2VTaW5rQ2FsY3VsYXRvck9wdGlvbnMSMwoQZnJhbWVfc2NhbGVf", "bW9kZRgBIAEoDjIZLm1lZGlhcGlwZS5TY2FsZU1vZGUuTW9kZTJXCgNleHQS", "HC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMYivuDdCABKAsyKS5tZWRp", "YXBpcGUuR2xTdXJmYWNlU2lua0NhbGN1bGF0b3JPcHRpb25z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.ScaleModeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.GlSurfaceSinkCalculatorOptions), global::Mediapipe.GlSurfaceSinkCalculatorOptions.Parser, new[]{ "FrameScaleMode" }, null, null, new pb::Extension[] { global::Mediapipe.GlSurfaceSinkCalculatorOptions.Extensions.Ext }, null) })); } #endregion } #region Messages public sealed partial class GlSurfaceSinkCalculatorOptions : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GlSurfaceSinkCalculatorOptions()); 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.GlSurfaceSinkCalculatorReflection.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 GlSurfaceSinkCalculatorOptions() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GlSurfaceSinkCalculatorOptions(GlSurfaceSinkCalculatorOptions other) : this() { _hasBits0 = other._hasBits0; frameScaleMode_ = other.frameScaleMode_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GlSurfaceSinkCalculatorOptions Clone() { return new GlSurfaceSinkCalculatorOptions(this); } /// Field number for the "frame_scale_mode" field. public const int FrameScaleModeFieldNumber = 1; private readonly static global::Mediapipe.ScaleMode.Types.Mode FrameScaleModeDefaultValue = global::Mediapipe.ScaleMode.Types.Mode.Default; private global::Mediapipe.ScaleMode.Types.Mode frameScaleMode_; /// /// Output frame scale mode. Default is FILL_AND_CROP. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Mediapipe.ScaleMode.Types.Mode FrameScaleMode { get { if ((_hasBits0 & 1) != 0) { return frameScaleMode_; } else { return FrameScaleModeDefaultValue; } } set { _hasBits0 |= 1; frameScaleMode_ = value; } } /// Gets whether the "frame_scale_mode" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasFrameScaleMode { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "frame_scale_mode" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearFrameScaleMode() { _hasBits0 &= ~1; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GlSurfaceSinkCalculatorOptions); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GlSurfaceSinkCalculatorOptions other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (FrameScaleMode != other.FrameScaleMode) 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 (HasFrameScaleMode) hash ^= FrameScaleMode.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 (HasFrameScaleMode) { output.WriteRawTag(8); output.WriteEnum((int) FrameScaleMode); } 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 (HasFrameScaleMode) { output.WriteRawTag(8); output.WriteEnum((int) FrameScaleMode); } 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 (HasFrameScaleMode) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FrameScaleMode); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GlSurfaceSinkCalculatorOptions other) { if (other == null) { return; } if (other.HasFrameScaleMode) { FrameScaleMode = other.FrameScaleMode; } _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: { FrameScaleMode = (global::Mediapipe.ScaleMode.Types.Mode) input.ReadEnum(); 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: { FrameScaleMode = (global::Mediapipe.ScaleMode.Types.Mode) input.ReadEnum(); break; } } } } #endif #region Extensions /// Container for extensions for other messages declared in the GlSurfaceSinkCalculatorOptions message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Extensions { public static readonly pb::Extension Ext = new pb::Extension(243334538, pb::FieldCodec.ForMessage(1946676306, global::Mediapipe.GlSurfaceSinkCalculatorOptions.Parser)); } #endregion } #endregion } #endregion Designer generated code