// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mediapipe/framework/stream_handler.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/framework/stream_handler.proto public static partial class StreamHandlerReflection { #region Descriptor /// File descriptor for mediapipe/framework/stream_handler.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static StreamHandlerReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CihtZWRpYXBpcGUvZnJhbWV3b3JrL3N0cmVhbV9oYW5kbGVyLnByb3RvEglt", "ZWRpYXBpcGUaK21lZGlhcGlwZS9mcmFtZXdvcmsvbWVkaWFwaXBlX29wdGlv", "bnMucHJvdG8igQEKGElucHV0U3RyZWFtSGFuZGxlckNvbmZpZxI3ChRpbnB1", "dF9zdHJlYW1faGFuZGxlchgBIAEoCToZRGVmYXVsdElucHV0U3RyZWFtSGFu", "ZGxlchIsCgdvcHRpb25zGAMgASgLMhsubWVkaWFwaXBlLk1lZGlhUGlwZU9w", "dGlvbnMinwEKGU91dHB1dFN0cmVhbUhhbmRsZXJDb25maWcSOQoVb3V0cHV0", "X3N0cmVhbV9oYW5kbGVyGAEgASgJOhpJbk9yZGVyT3V0cHV0U3RyZWFtSGFu", "ZGxlchIZChFpbnB1dF9zaWRlX3BhY2tldBgCIAMoCRIsCgdvcHRpb25zGAMg", "ASgLMhsubWVkaWFwaXBlLk1lZGlhUGlwZU9wdGlvbnNCMAoaY29tLmdvb2ds", "ZS5tZWRpYXBpcGUucHJvdG9CElN0cmVhbUhhbmRsZXJQcm90bw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Mediapipe.MediapipeOptionsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.InputStreamHandlerConfig), global::Mediapipe.InputStreamHandlerConfig.Parser, new[]{ "InputStreamHandler", "Options" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.OutputStreamHandlerConfig), global::Mediapipe.OutputStreamHandlerConfig.Parser, new[]{ "OutputStreamHandler", "InputSidePacket", "Options" }, null, null, null, null) })); } #endregion } #region Messages /// /// Settings specifying an input stream handler. /// public sealed partial class InputStreamHandlerConfig : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InputStreamHandlerConfig()); 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.StreamHandlerReflection.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 InputStreamHandlerConfig() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InputStreamHandlerConfig(InputStreamHandlerConfig other) : this() { inputStreamHandler_ = other.inputStreamHandler_; options_ = other.options_ != null ? other.options_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InputStreamHandlerConfig Clone() { return new InputStreamHandlerConfig(this); } /// Field number for the "input_stream_handler" field. public const int InputStreamHandlerFieldNumber = 1; private readonly static string InputStreamHandlerDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("RGVmYXVsdElucHV0U3RyZWFtSGFuZGxlcg=="), 0, 25); private string inputStreamHandler_; /// /// Name of the registered input stream handler class. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string InputStreamHandler { get { return inputStreamHandler_ ?? InputStreamHandlerDefaultValue; } set { inputStreamHandler_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Gets whether the "input_stream_handler" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasInputStreamHandler { get { return inputStreamHandler_ != null; } } /// Clears the value of the "input_stream_handler" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearInputStreamHandler() { inputStreamHandler_ = null; } /// Field number for the "options" field. public const int OptionsFieldNumber = 3; private global::Mediapipe.MediaPipeOptions options_; /// /// Options for the input stream handler. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Mediapipe.MediaPipeOptions Options { get { return options_; } set { options_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as InputStreamHandlerConfig); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(InputStreamHandlerConfig other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (InputStreamHandler != other.InputStreamHandler) return false; if (!object.Equals(Options, other.Options)) 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 (HasInputStreamHandler) hash ^= InputStreamHandler.GetHashCode(); if (options_ != null) hash ^= Options.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 (HasInputStreamHandler) { output.WriteRawTag(10); output.WriteString(InputStreamHandler); } if (options_ != null) { output.WriteRawTag(26); output.WriteMessage(Options); } 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 (HasInputStreamHandler) { output.WriteRawTag(10); output.WriteString(InputStreamHandler); } if (options_ != null) { output.WriteRawTag(26); output.WriteMessage(Options); } 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 (HasInputStreamHandler) { size += 1 + pb::CodedOutputStream.ComputeStringSize(InputStreamHandler); } if (options_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(InputStreamHandlerConfig other) { if (other == null) { return; } if (other.HasInputStreamHandler) { InputStreamHandler = other.InputStreamHandler; } if (other.options_ != null) { if (options_ == null) { Options = new global::Mediapipe.MediaPipeOptions(); } Options.MergeFrom(other.Options); } _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: { InputStreamHandler = input.ReadString(); break; } case 26: { if (options_ == null) { Options = new global::Mediapipe.MediaPipeOptions(); } input.ReadMessage(Options); 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: { InputStreamHandler = input.ReadString(); break; } case 26: { if (options_ == null) { Options = new global::Mediapipe.MediaPipeOptions(); } input.ReadMessage(Options); break; } } } } #endif } /// /// Settings specifying an output stream handler. /// public sealed partial class OutputStreamHandlerConfig : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OutputStreamHandlerConfig()); 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.StreamHandlerReflection.Descriptor.MessageTypes[1]; } } [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 OutputStreamHandlerConfig() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OutputStreamHandlerConfig(OutputStreamHandlerConfig other) : this() { outputStreamHandler_ = other.outputStreamHandler_; inputSidePacket_ = other.inputSidePacket_.Clone(); options_ = other.options_ != null ? other.options_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OutputStreamHandlerConfig Clone() { return new OutputStreamHandlerConfig(this); } /// Field number for the "output_stream_handler" field. public const int OutputStreamHandlerFieldNumber = 1; private readonly static string OutputStreamHandlerDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("SW5PcmRlck91dHB1dFN0cmVhbUhhbmRsZXI="), 0, 26); private string outputStreamHandler_; /// /// Name of the registered output stream handler class. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string OutputStreamHandler { get { return outputStreamHandler_ ?? OutputStreamHandlerDefaultValue; } set { outputStreamHandler_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Gets whether the "output_stream_handler" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasOutputStreamHandler { get { return outputStreamHandler_ != null; } } /// Clears the value of the "output_stream_handler" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearOutputStreamHandler() { outputStreamHandler_ = null; } /// Field number for the "input_side_packet" field. public const int InputSidePacketFieldNumber = 2; private static readonly pb::FieldCodec _repeated_inputSidePacket_codec = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField inputSidePacket_ = new pbc::RepeatedField(); /// /// Names of the input side packets for the handler specifically and distinct /// from the side packets for the calculator (but could be shared). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField InputSidePacket { get { return inputSidePacket_; } } /// Field number for the "options" field. public const int OptionsFieldNumber = 3; private global::Mediapipe.MediaPipeOptions options_; /// /// Options for the output stream handler. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Mediapipe.MediaPipeOptions Options { get { return options_; } set { options_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OutputStreamHandlerConfig); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OutputStreamHandlerConfig other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (OutputStreamHandler != other.OutputStreamHandler) return false; if(!inputSidePacket_.Equals(other.inputSidePacket_)) return false; if (!object.Equals(Options, other.Options)) 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 (HasOutputStreamHandler) hash ^= OutputStreamHandler.GetHashCode(); hash ^= inputSidePacket_.GetHashCode(); if (options_ != null) hash ^= Options.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 (HasOutputStreamHandler) { output.WriteRawTag(10); output.WriteString(OutputStreamHandler); } inputSidePacket_.WriteTo(output, _repeated_inputSidePacket_codec); if (options_ != null) { output.WriteRawTag(26); output.WriteMessage(Options); } 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 (HasOutputStreamHandler) { output.WriteRawTag(10); output.WriteString(OutputStreamHandler); } inputSidePacket_.WriteTo(ref output, _repeated_inputSidePacket_codec); if (options_ != null) { output.WriteRawTag(26); output.WriteMessage(Options); } 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 (HasOutputStreamHandler) { size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputStreamHandler); } size += inputSidePacket_.CalculateSize(_repeated_inputSidePacket_codec); if (options_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(OutputStreamHandlerConfig other) { if (other == null) { return; } if (other.HasOutputStreamHandler) { OutputStreamHandler = other.OutputStreamHandler; } inputSidePacket_.Add(other.inputSidePacket_); if (other.options_ != null) { if (options_ == null) { Options = new global::Mediapipe.MediaPipeOptions(); } Options.MergeFrom(other.Options); } _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: { OutputStreamHandler = input.ReadString(); break; } case 18: { inputSidePacket_.AddEntriesFrom(input, _repeated_inputSidePacket_codec); break; } case 26: { if (options_ == null) { Options = new global::Mediapipe.MediaPipeOptions(); } input.ReadMessage(Options); 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: { OutputStreamHandler = input.ReadString(); break; } case 18: { inputSidePacket_.AddEntriesFrom(ref input, _repeated_inputSidePacket_codec); break; } case 26: { if (options_ == null) { Options = new global::Mediapipe.MediaPipeOptions(); } input.ReadMessage(Options); break; } } } } #endif } #endregion } #endregion Designer generated code