599 lines
23 KiB
C#
599 lines
23 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: mediapipe/framework/stream_handler.proto
|
|
// </auto-generated>
|
|
#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 {
|
|
|
|
/// <summary>Holder for reflection information generated from mediapipe/framework/stream_handler.proto</summary>
|
|
public static partial class StreamHandlerReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for mediapipe/framework/stream_handler.proto</summary>
|
|
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
|
|
/// <summary>
|
|
/// Settings specifying an input stream handler.
|
|
/// </summary>
|
|
public sealed partial class InputStreamHandlerConfig : pb::IMessage<InputStreamHandlerConfig>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<InputStreamHandlerConfig> _parser = new pb::MessageParser<InputStreamHandlerConfig>(() => new InputStreamHandlerConfig());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<InputStreamHandlerConfig> 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);
|
|
}
|
|
|
|
/// <summary>Field number for the "input_stream_handler" field.</summary>
|
|
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_;
|
|
/// <summary>
|
|
/// Name of the registered input stream handler class.
|
|
/// </summary>
|
|
[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");
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "input_stream_handler" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasInputStreamHandler {
|
|
get { return inputStreamHandler_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the "input_stream_handler" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearInputStreamHandler() {
|
|
inputStreamHandler_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "options" field.</summary>
|
|
public const int OptionsFieldNumber = 3;
|
|
private global::Mediapipe.MediaPipeOptions options_;
|
|
/// <summary>
|
|
/// Options for the input stream handler.
|
|
/// </summary>
|
|
[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
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Settings specifying an output stream handler.
|
|
/// </summary>
|
|
public sealed partial class OutputStreamHandlerConfig : pb::IMessage<OutputStreamHandlerConfig>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<OutputStreamHandlerConfig> _parser = new pb::MessageParser<OutputStreamHandlerConfig>(() => new OutputStreamHandlerConfig());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<OutputStreamHandlerConfig> 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);
|
|
}
|
|
|
|
/// <summary>Field number for the "output_stream_handler" field.</summary>
|
|
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_;
|
|
/// <summary>
|
|
/// Name of the registered output stream handler class.
|
|
/// </summary>
|
|
[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");
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "output_stream_handler" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasOutputStreamHandler {
|
|
get { return outputStreamHandler_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the "output_stream_handler" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearOutputStreamHandler() {
|
|
outputStreamHandler_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "input_side_packet" field.</summary>
|
|
public const int InputSidePacketFieldNumber = 2;
|
|
private static readonly pb::FieldCodec<string> _repeated_inputSidePacket_codec
|
|
= pb::FieldCodec.ForString(18);
|
|
private readonly pbc::RepeatedField<string> inputSidePacket_ = new pbc::RepeatedField<string>();
|
|
/// <summary>
|
|
/// Names of the input side packets for the handler specifically and distinct
|
|
/// from the side packets for the calculator (but could be shared).
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<string> InputSidePacket {
|
|
get { return inputSidePacket_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "options" field.</summary>
|
|
public const int OptionsFieldNumber = 3;
|
|
private global::Mediapipe.MediaPipeOptions options_;
|
|
/// <summary>
|
|
/// Options for the output stream handler.
|
|
/// </summary>
|
|
[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
|