// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mediapipe/calculators/util/packet_frequency.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/calculators/util/packet_frequency.proto public static partial class PacketFrequencyReflection { #region Descriptor /// File descriptor for mediapipe/calculators/util/packet_frequency.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static PacketFrequencyReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjFtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdXRpbC9wYWNrZXRfZnJlcXVlbmN5", "LnByb3RvEgltZWRpYXBpcGUiPQoPUGFja2V0RnJlcXVlbmN5EhsKE3BhY2tl", "dF9mcmVxdWVuY3lfaHoYASABKAESDQoFbGFiZWwYAiABKAk=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PacketFrequency), global::Mediapipe.PacketFrequency.Parser, new[]{ "PacketFrequencyHz", "Label" }, null, null, null, null) })); } #endregion } #region Messages /// /// Contains the packet frequency information. /// public sealed partial class PacketFrequency : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PacketFrequency()); 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.PacketFrequencyReflection.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 PacketFrequency() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PacketFrequency(PacketFrequency other) : this() { _hasBits0 = other._hasBits0; packetFrequencyHz_ = other.packetFrequencyHz_; label_ = other.label_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PacketFrequency Clone() { return new PacketFrequency(this); } /// Field number for the "packet_frequency_hz" field. public const int PacketFrequencyHzFieldNumber = 1; private readonly static double PacketFrequencyHzDefaultValue = 0D; private double packetFrequencyHz_; /// /// Packet frequency (packets per second). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double PacketFrequencyHz { get { if ((_hasBits0 & 1) != 0) { return packetFrequencyHz_; } else { return PacketFrequencyHzDefaultValue; } } set { _hasBits0 |= 1; packetFrequencyHz_ = value; } } /// Gets whether the "packet_frequency_hz" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasPacketFrequencyHz { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "packet_frequency_hz" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearPacketFrequencyHz() { _hasBits0 &= ~1; } /// Field number for the "label" field. public const int LabelFieldNumber = 2; private readonly static string LabelDefaultValue = ""; private string label_; /// /// A label that identifies what this packet frequency is for. Eg. "Gaze", /// "Gesture", etc. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Label { get { return label_ ?? LabelDefaultValue; } set { label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Gets whether the "label" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasLabel { get { return label_ != null; } } /// Clears the value of the "label" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearLabel() { label_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PacketFrequency); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PacketFrequency other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(PacketFrequencyHz, other.PacketFrequencyHz)) return false; if (Label != other.Label) 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 (HasPacketFrequencyHz) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PacketFrequencyHz); if (HasLabel) hash ^= Label.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 (HasPacketFrequencyHz) { output.WriteRawTag(9); output.WriteDouble(PacketFrequencyHz); } if (HasLabel) { output.WriteRawTag(18); output.WriteString(Label); } 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 (HasPacketFrequencyHz) { output.WriteRawTag(9); output.WriteDouble(PacketFrequencyHz); } if (HasLabel) { output.WriteRawTag(18); output.WriteString(Label); } 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 (HasPacketFrequencyHz) { size += 1 + 8; } if (HasLabel) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PacketFrequency other) { if (other == null) { return; } if (other.HasPacketFrequencyHz) { PacketFrequencyHz = other.PacketFrequencyHz; } if (other.HasLabel) { Label = other.Label; } _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 9: { PacketFrequencyHz = input.ReadDouble(); break; } case 18: { Label = input.ReadString(); 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 9: { PacketFrequencyHz = input.ReadDouble(); break; } case 18: { Label = input.ReadString(); break; } } } } #endif } #endregion } #endregion Designer generated code