Wes xx mediapipe integration

This commit is contained in:
Jelle De Geest
2023-03-12 20:34:16 +00:00
parent 8349b5f149
commit b11eeb465c
975 changed files with 192230 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: bb6752375d46fcfab80ce60282bace77
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,316 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/calculator_options.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/calculator_options.proto</summary>
public static partial class CalculatorOptionsReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/calculator_options.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static CalculatorOptionsReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CixtZWRpYXBpcGUvZnJhbWV3b3JrL2NhbGN1bGF0b3Jfb3B0aW9ucy5wcm90",
"bxIJbWVkaWFwaXBlIjkKEUNhbGN1bGF0b3JPcHRpb25zEhgKDG1lcmdlX2Zp",
"ZWxkcxgBIAEoCEICGAEqCgignAEQgICAgAJCNAoaY29tLmdvb2dsZS5tZWRp",
"YXBpcGUucHJvdG9CFkNhbGN1bGF0b3JPcHRpb25zUHJvdG8="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.CalculatorOptions), global::Mediapipe.CalculatorOptions.Parser, new[]{ "MergeFields" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Options for Calculators. Each Calculator implementation should
/// have its own options proto, which should look like this:
///
/// message MyCalculatorOptions {
/// extend CalculatorOptions {
/// optional MyCalculatorOptions ext = &lt;unique id, e.g. the CL#>;
/// }
/// optional string field_needed_by_my_calculator = 1;
/// optional int32 another_field = 2;
/// // etc
/// }
/// </summary>
public sealed partial class CalculatorOptions : pb::IExtendableMessage<CalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<CalculatorOptions> _parser = new pb::MessageParser<CalculatorOptions>(() => new CalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet<CalculatorOptions> _extensions;
private pb::ExtensionSet<CalculatorOptions> _Extensions { get { return _extensions; } }
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<CalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.CalculatorOptionsReflection.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 CalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CalculatorOptions(CalculatorOptions other) : this() {
_hasBits0 = other._hasBits0;
mergeFields_ = other.mergeFields_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
_extensions = pb::ExtensionSet.Clone(other._extensions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CalculatorOptions Clone() {
return new CalculatorOptions(this);
}
/// <summary>Field number for the "merge_fields" field.</summary>
public const int MergeFieldsFieldNumber = 1;
private readonly static bool MergeFieldsDefaultValue = false;
private bool mergeFields_;
/// <summary>
/// If true, this proto specifies a subset of field values,
/// which should override corresponding field values.
/// </summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool MergeFields {
get { if ((_hasBits0 & 1) != 0) { return mergeFields_; } else { return MergeFieldsDefaultValue; } }
set {
_hasBits0 |= 1;
mergeFields_ = value;
}
}
/// <summary>Gets whether the "merge_fields" field is set</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasMergeFields {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "merge_fields" field</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearMergeFields() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as CalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(CalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (MergeFields != other.MergeFields) return false;
if (!Equals(_extensions, other._extensions)) {
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 (HasMergeFields) hash ^= MergeFields.GetHashCode();
if (_extensions != null) {
hash ^= _extensions.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 (HasMergeFields) {
output.WriteRawTag(8);
output.WriteBool(MergeFields);
}
if (_extensions != null) {
_extensions.WriteTo(output);
}
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 (HasMergeFields) {
output.WriteRawTag(8);
output.WriteBool(MergeFields);
}
if (_extensions != null) {
_extensions.WriteTo(ref output);
}
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 (HasMergeFields) {
size += 1 + 1;
}
if (_extensions != null) {
size += _extensions.CalculateSize();
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(CalculatorOptions other) {
if (other == null) {
return;
}
if (other.HasMergeFields) {
MergeFields = other.MergeFields;
}
pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
_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:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
}
break;
case 8: {
MergeFields = input.ReadBool();
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:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
}
break;
case 8: {
MergeFields = input.ReadBool();
break;
}
}
}
}
#endif
public TValue GetExtension<TValue>(pb::Extension<CalculatorOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<CalculatorOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<CalculatorOptions, TValue> extension) {
return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
}
public void SetExtension<TValue>(pb::Extension<CalculatorOptions, TValue> extension, TValue value) {
pb::ExtensionSet.Set(ref _extensions, extension, value);
}
public bool HasExtension<TValue>(pb::Extension<CalculatorOptions, TValue> extension) {
return pb::ExtensionSet.Has(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::Extension<CalculatorOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::RepeatedExtension<CalculatorOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0cb942f2d3bb91bfd86552daa2d128fb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: cd30252ab0ccfd362ad469d8fde0f8df
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0ba1fc5f91ea86247a7464f0230283fd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,659 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/formats/affine_transform_data.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/formats/affine_transform_data.proto</summary>
public static partial class AffineTransformDataReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/formats/affine_transform_data.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static AffineTransformDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjdtZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvYWZmaW5lX3RyYW5zZm9y",
"bV9kYXRhLnByb3RvEgltZWRpYXBpcGUiIwoLVmVjdG9yMkRhdGESCQoBeBgB",
"IAEoAhIJCgF5GAIgASgCIqIBChNBZmZpbmVUcmFuc2Zvcm1EYXRhEisKC3Ry",
"YW5zbGF0aW9uGAEgASgLMhYubWVkaWFwaXBlLlZlY3RvcjJEYXRhEiUKBXNj",
"YWxlGAIgASgLMhYubWVkaWFwaXBlLlZlY3RvcjJEYXRhEiUKBXNoZWFyGAMg",
"ASgLMhYubWVkaWFwaXBlLlZlY3RvcjJEYXRhEhAKCHJvdGF0aW9uGAQgASgC"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Vector2Data), global::Mediapipe.Vector2Data.Parser, new[]{ "X", "Y" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.AffineTransformData), global::Mediapipe.AffineTransformData.Parser, new[]{ "Translation", "Scale", "Shear", "Rotation" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Proto for serializing Vector2 data
/// </summary>
public sealed partial class Vector2Data : pb::IMessage<Vector2Data>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Vector2Data> _parser = new pb::MessageParser<Vector2Data>(() => new Vector2Data());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Vector2Data> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.AffineTransformDataReflection.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 Vector2Data() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Vector2Data(Vector2Data other) : this() {
_hasBits0 = other._hasBits0;
x_ = other.x_;
y_ = other.y_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Vector2Data Clone() {
return new Vector2Data(this);
}
/// <summary>Field number for the "x" field.</summary>
public const int XFieldNumber = 1;
private readonly static float XDefaultValue = 0F;
private float x_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float X {
get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } }
set {
_hasBits0 |= 1;
x_ = value;
}
}
/// <summary>Gets whether the "x" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasX {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "x" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearX() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "y" field.</summary>
public const int YFieldNumber = 2;
private readonly static float YDefaultValue = 0F;
private float y_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Y {
get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } }
set {
_hasBits0 |= 2;
y_ = value;
}
}
/// <summary>Gets whether the "y" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasY {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "y" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearY() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Vector2Data);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Vector2Data other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) 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 (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
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 (HasX) {
output.WriteRawTag(13);
output.WriteFloat(X);
}
if (HasY) {
output.WriteRawTag(21);
output.WriteFloat(Y);
}
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 (HasX) {
output.WriteRawTag(13);
output.WriteFloat(X);
}
if (HasY) {
output.WriteRawTag(21);
output.WriteFloat(Y);
}
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 (HasX) {
size += 1 + 4;
}
if (HasY) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Vector2Data other) {
if (other == null) {
return;
}
if (other.HasX) {
X = other.X;
}
if (other.HasY) {
Y = other.Y;
}
_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 13: {
X = input.ReadFloat();
break;
}
case 21: {
Y = input.ReadFloat();
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 13: {
X = input.ReadFloat();
break;
}
case 21: {
Y = input.ReadFloat();
break;
}
}
}
}
#endif
}
/// <summary>
/// Proto for serializing Affine Transform data.
/// </summary>
public sealed partial class AffineTransformData : pb::IMessage<AffineTransformData>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<AffineTransformData> _parser = new pb::MessageParser<AffineTransformData>(() => new AffineTransformData());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<AffineTransformData> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.AffineTransformDataReflection.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 AffineTransformData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AffineTransformData(AffineTransformData other) : this() {
_hasBits0 = other._hasBits0;
translation_ = other.translation_ != null ? other.translation_.Clone() : null;
scale_ = other.scale_ != null ? other.scale_.Clone() : null;
shear_ = other.shear_ != null ? other.shear_.Clone() : null;
rotation_ = other.rotation_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AffineTransformData Clone() {
return new AffineTransformData(this);
}
/// <summary>Field number for the "translation" field.</summary>
public const int TranslationFieldNumber = 1;
private global::Mediapipe.Vector2Data translation_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.Vector2Data Translation {
get { return translation_; }
set {
translation_ = value;
}
}
/// <summary>Field number for the "scale" field.</summary>
public const int ScaleFieldNumber = 2;
private global::Mediapipe.Vector2Data scale_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.Vector2Data Scale {
get { return scale_; }
set {
scale_ = value;
}
}
/// <summary>Field number for the "shear" field.</summary>
public const int ShearFieldNumber = 3;
private global::Mediapipe.Vector2Data shear_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.Vector2Data Shear {
get { return shear_; }
set {
shear_ = value;
}
}
/// <summary>Field number for the "rotation" field.</summary>
public const int RotationFieldNumber = 4;
private readonly static float RotationDefaultValue = 0F;
private float rotation_;
/// <summary>
/// in radians
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Rotation {
get { if ((_hasBits0 & 1) != 0) { return rotation_; } else { return RotationDefaultValue; } }
set {
_hasBits0 |= 1;
rotation_ = value;
}
}
/// <summary>Gets whether the "rotation" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasRotation {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "rotation" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearRotation() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AffineTransformData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AffineTransformData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Translation, other.Translation)) return false;
if (!object.Equals(Scale, other.Scale)) return false;
if (!object.Equals(Shear, other.Shear)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rotation, other.Rotation)) 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 (translation_ != null) hash ^= Translation.GetHashCode();
if (scale_ != null) hash ^= Scale.GetHashCode();
if (shear_ != null) hash ^= Shear.GetHashCode();
if (HasRotation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rotation);
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 (translation_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Translation);
}
if (scale_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Scale);
}
if (shear_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Shear);
}
if (HasRotation) {
output.WriteRawTag(37);
output.WriteFloat(Rotation);
}
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 (translation_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Translation);
}
if (scale_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Scale);
}
if (shear_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Shear);
}
if (HasRotation) {
output.WriteRawTag(37);
output.WriteFloat(Rotation);
}
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 (translation_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Translation);
}
if (scale_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scale);
}
if (shear_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shear);
}
if (HasRotation) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AffineTransformData other) {
if (other == null) {
return;
}
if (other.translation_ != null) {
if (translation_ == null) {
Translation = new global::Mediapipe.Vector2Data();
}
Translation.MergeFrom(other.Translation);
}
if (other.scale_ != null) {
if (scale_ == null) {
Scale = new global::Mediapipe.Vector2Data();
}
Scale.MergeFrom(other.Scale);
}
if (other.shear_ != null) {
if (shear_ == null) {
Shear = new global::Mediapipe.Vector2Data();
}
Shear.MergeFrom(other.Shear);
}
if (other.HasRotation) {
Rotation = other.Rotation;
}
_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 (translation_ == null) {
Translation = new global::Mediapipe.Vector2Data();
}
input.ReadMessage(Translation);
break;
}
case 18: {
if (scale_ == null) {
Scale = new global::Mediapipe.Vector2Data();
}
input.ReadMessage(Scale);
break;
}
case 26: {
if (shear_ == null) {
Shear = new global::Mediapipe.Vector2Data();
}
input.ReadMessage(Shear);
break;
}
case 37: {
Rotation = input.ReadFloat();
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 (translation_ == null) {
Translation = new global::Mediapipe.Vector2Data();
}
input.ReadMessage(Translation);
break;
}
case 18: {
if (scale_ == null) {
Scale = new global::Mediapipe.Vector2Data();
}
input.ReadMessage(Scale);
break;
}
case 26: {
if (shear_ == null) {
Shear = new global::Mediapipe.Vector2Data();
}
input.ReadMessage(Shear);
break;
}
case 37: {
Rotation = input.ReadFloat();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 881600dc6afee0d00a3573e5f1c82935
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3460eef1722d0874fb83e5914ce68f34
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d0ce23cd032a4e3fc8c97cf73787a889
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,555 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/formats/annotation/rasterization.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/formats/annotation/rasterization.proto</summary>
public static partial class RasterizationReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/formats/annotation/rasterization.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static RasterizationReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjptZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvYW5ub3RhdGlvbi9yYXN0",
"ZXJpemF0aW9uLnByb3RvEgltZWRpYXBpcGUifAoNUmFzdGVyaXphdGlvbhIz",
"CghpbnRlcnZhbBgBIAMoCzIhLm1lZGlhcGlwZS5SYXN0ZXJpemF0aW9uLklu",
"dGVydmFsGjYKCEludGVydmFsEgkKAXkYASACKAUSDgoGbGVmdF94GAIgAigF",
"Eg8KB3JpZ2h0X3gYAyACKAVCQwotY29tLmdvb2dsZS5tZWRpYXBpcGUuZm9y",
"bWF0cy5hbm5vdGF0aW9uLnByb3RvQhJSYXN0ZXJpemF0aW9uUHJvdG8="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Rasterization), global::Mediapipe.Rasterization.Parser, new[]{ "Interval" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Rasterization.Types.Interval), global::Mediapipe.Rasterization.Types.Interval.Parser, new[]{ "Y", "LeftX", "RightX" }, null, null, null, null)})
}));
}
#endregion
}
#region Messages
/// <summary>
/// A Region can be represented in each frame as a set of scanlines
/// (compressed RLE, similar to rasterization of polygons).
/// For each scanline with y-coordinate y, we save (possibly multiple) intervals
/// of occupied pixels represented as a pair [left_x, right_x].
/// </summary>
public sealed partial class Rasterization : pb::IMessage<Rasterization>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Rasterization> _parser = new pb::MessageParser<Rasterization>(() => new Rasterization());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Rasterization> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.RasterizationReflection.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 Rasterization() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Rasterization(Rasterization other) : this() {
interval_ = other.interval_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Rasterization Clone() {
return new Rasterization(this);
}
/// <summary>Field number for the "interval" field.</summary>
public const int IntervalFieldNumber = 1;
private static readonly pb::FieldCodec<global::Mediapipe.Rasterization.Types.Interval> _repeated_interval_codec
= pb::FieldCodec.ForMessage(10, global::Mediapipe.Rasterization.Types.Interval.Parser);
private readonly pbc::RepeatedField<global::Mediapipe.Rasterization.Types.Interval> interval_ = new pbc::RepeatedField<global::Mediapipe.Rasterization.Types.Interval>();
/// <summary>
/// Intervals are always sorted by y-coordinate.
/// Therefore, a region occupies a set of scanlines ranging
/// from interval(0).y() to interval(interval_size() - 1)).y().
/// Note: In video, at some scanlines no interval might be present.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Mediapipe.Rasterization.Types.Interval> Interval {
get { return interval_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Rasterization);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Rasterization other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!interval_.Equals(other.interval_)) 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;
hash ^= interval_.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
interval_.WriteTo(output, _repeated_interval_codec);
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) {
interval_.WriteTo(ref output, _repeated_interval_codec);
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;
size += interval_.CalculateSize(_repeated_interval_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Rasterization other) {
if (other == null) {
return;
}
interval_.Add(other.interval_);
_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: {
interval_.AddEntriesFrom(input, _repeated_interval_codec);
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: {
interval_.AddEntriesFrom(ref input, _repeated_interval_codec);
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the Rasterization message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public sealed partial class Interval : pb::IMessage<Interval>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Interval> _parser = new pb::MessageParser<Interval>(() => new Interval());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Interval> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.Rasterization.Descriptor.NestedTypes[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 Interval() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Interval(Interval other) : this() {
_hasBits0 = other._hasBits0;
y_ = other.y_;
leftX_ = other.leftX_;
rightX_ = other.rightX_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Interval Clone() {
return new Interval(this);
}
/// <summary>Field number for the "y" field.</summary>
public const int YFieldNumber = 1;
private readonly static int YDefaultValue = 0;
private int y_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Y {
get { if ((_hasBits0 & 1) != 0) { return y_; } else { return YDefaultValue; } }
set {
_hasBits0 |= 1;
y_ = value;
}
}
/// <summary>Gets whether the "y" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasY {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "y" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearY() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "left_x" field.</summary>
public const int LeftXFieldNumber = 2;
private readonly static int LeftXDefaultValue = 0;
private int leftX_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int LeftX {
get { if ((_hasBits0 & 2) != 0) { return leftX_; } else { return LeftXDefaultValue; } }
set {
_hasBits0 |= 2;
leftX_ = value;
}
}
/// <summary>Gets whether the "left_x" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasLeftX {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "left_x" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearLeftX() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "right_x" field.</summary>
public const int RightXFieldNumber = 3;
private readonly static int RightXDefaultValue = 0;
private int rightX_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RightX {
get { if ((_hasBits0 & 4) != 0) { return rightX_; } else { return RightXDefaultValue; } }
set {
_hasBits0 |= 4;
rightX_ = value;
}
}
/// <summary>Gets whether the "right_x" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasRightX {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "right_x" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearRightX() {
_hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Interval);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Interval other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Y != other.Y) return false;
if (LeftX != other.LeftX) return false;
if (RightX != other.RightX) 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 (HasY) hash ^= Y.GetHashCode();
if (HasLeftX) hash ^= LeftX.GetHashCode();
if (HasRightX) hash ^= RightX.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 (HasY) {
output.WriteRawTag(8);
output.WriteInt32(Y);
}
if (HasLeftX) {
output.WriteRawTag(16);
output.WriteInt32(LeftX);
}
if (HasRightX) {
output.WriteRawTag(24);
output.WriteInt32(RightX);
}
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 (HasY) {
output.WriteRawTag(8);
output.WriteInt32(Y);
}
if (HasLeftX) {
output.WriteRawTag(16);
output.WriteInt32(LeftX);
}
if (HasRightX) {
output.WriteRawTag(24);
output.WriteInt32(RightX);
}
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 (HasY) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
}
if (HasLeftX) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LeftX);
}
if (HasRightX) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RightX);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Interval other) {
if (other == null) {
return;
}
if (other.HasY) {
Y = other.Y;
}
if (other.HasLeftX) {
LeftX = other.LeftX;
}
if (other.HasRightX) {
RightX = other.RightX;
}
_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: {
Y = input.ReadInt32();
break;
}
case 16: {
LeftX = input.ReadInt32();
break;
}
case 24: {
RightX = input.ReadInt32();
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: {
Y = input.ReadInt32();
break;
}
case 16: {
LeftX = input.ReadInt32();
break;
}
case 24: {
RightX = input.ReadInt32();
break;
}
}
}
}
#endif
}
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: bedb393db8070b50d8ba4d6448a065d8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,786 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/formats/classification.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/formats/classification.proto</summary>
public static partial class ClassificationReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/formats/classification.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ClassificationReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjBtZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvY2xhc3NpZmljYXRpb24u",
"cHJvdG8SCW1lZGlhcGlwZSJTCg5DbGFzc2lmaWNhdGlvbhINCgVpbmRleBgB",
"IAEoBRINCgVzY29yZRgCIAEoAhINCgVsYWJlbBgDIAEoCRIUCgxkaXNwbGF5",
"X25hbWUYBCABKAkiRwoSQ2xhc3NpZmljYXRpb25MaXN0EjEKDmNsYXNzaWZp",
"Y2F0aW9uGAEgAygLMhkubWVkaWFwaXBlLkNsYXNzaWZpY2F0aW9uIloKHENs",
"YXNzaWZpY2F0aW9uTGlzdENvbGxlY3Rpb24SOgoTY2xhc3NpZmljYXRpb25f",
"bGlzdBgBIAMoCzIdLm1lZGlhcGlwZS5DbGFzc2lmaWNhdGlvbkxpc3RCOQoi",
"Y29tLmdvb2dsZS5tZWRpYXBpcGUuZm9ybWF0cy5wcm90b0ITQ2xhc3NpZmlj",
"YXRpb25Qcm90bw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Classification), global::Mediapipe.Classification.Parser, new[]{ "Index", "Score", "Label", "DisplayName" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ClassificationList), global::Mediapipe.ClassificationList.Parser, new[]{ "Classification" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ClassificationListCollection), global::Mediapipe.ClassificationListCollection.Parser, new[]{ "ClassificationList" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class Classification : pb::IMessage<Classification>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Classification> _parser = new pb::MessageParser<Classification>(() => new Classification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Classification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.ClassificationReflection.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 Classification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Classification(Classification other) : this() {
_hasBits0 = other._hasBits0;
index_ = other.index_;
score_ = other.score_;
label_ = other.label_;
displayName_ = other.displayName_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Classification Clone() {
return new Classification(this);
}
/// <summary>Field number for the "index" field.</summary>
public const int IndexFieldNumber = 1;
private readonly static int IndexDefaultValue = 0;
private int index_;
/// <summary>
/// The index of the class in the corresponding label map.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Index {
get { if ((_hasBits0 & 1) != 0) { return index_; } else { return IndexDefaultValue; } }
set {
_hasBits0 |= 1;
index_ = value;
}
}
/// <summary>Gets whether the "index" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasIndex {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "index" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearIndex() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "score" field.</summary>
public const int ScoreFieldNumber = 2;
private readonly static float ScoreDefaultValue = 0F;
private float score_;
/// <summary>
/// The probability score for this class.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float Score {
get { if ((_hasBits0 & 2) != 0) { return score_; } else { return ScoreDefaultValue; } }
set {
_hasBits0 |= 2;
score_ = value;
}
}
/// <summary>Gets whether the "score" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasScore {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "score" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearScore() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "label" field.</summary>
public const int LabelFieldNumber = 3;
private readonly static string LabelDefaultValue = "";
private string label_;
/// <summary>
/// Label or name of the class.
/// </summary>
[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");
}
}
/// <summary>Gets whether the "label" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasLabel {
get { return label_ != null; }
}
/// <summary>Clears the value of the "label" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearLabel() {
label_ = null;
}
/// <summary>Field number for the "display_name" field.</summary>
public const int DisplayNameFieldNumber = 4;
private readonly static string DisplayNameDefaultValue = "";
private string displayName_;
/// <summary>
/// Optional human-readable string for display purposes.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string DisplayName {
get { return displayName_ ?? DisplayNameDefaultValue; }
set {
displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "display_name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDisplayName {
get { return displayName_ != null; }
}
/// <summary>Clears the value of the "display_name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDisplayName() {
displayName_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Classification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Classification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Index != other.Index) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Score, other.Score)) return false;
if (Label != other.Label) return false;
if (DisplayName != other.DisplayName) 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 (HasIndex) hash ^= Index.GetHashCode();
if (HasScore) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Score);
if (HasLabel) hash ^= Label.GetHashCode();
if (HasDisplayName) hash ^= DisplayName.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 (HasIndex) {
output.WriteRawTag(8);
output.WriteInt32(Index);
}
if (HasScore) {
output.WriteRawTag(21);
output.WriteFloat(Score);
}
if (HasLabel) {
output.WriteRawTag(26);
output.WriteString(Label);
}
if (HasDisplayName) {
output.WriteRawTag(34);
output.WriteString(DisplayName);
}
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 (HasIndex) {
output.WriteRawTag(8);
output.WriteInt32(Index);
}
if (HasScore) {
output.WriteRawTag(21);
output.WriteFloat(Score);
}
if (HasLabel) {
output.WriteRawTag(26);
output.WriteString(Label);
}
if (HasDisplayName) {
output.WriteRawTag(34);
output.WriteString(DisplayName);
}
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 (HasIndex) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index);
}
if (HasScore) {
size += 1 + 4;
}
if (HasLabel) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
}
if (HasDisplayName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Classification other) {
if (other == null) {
return;
}
if (other.HasIndex) {
Index = other.Index;
}
if (other.HasScore) {
Score = other.Score;
}
if (other.HasLabel) {
Label = other.Label;
}
if (other.HasDisplayName) {
DisplayName = other.DisplayName;
}
_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: {
Index = input.ReadInt32();
break;
}
case 21: {
Score = input.ReadFloat();
break;
}
case 26: {
Label = input.ReadString();
break;
}
case 34: {
DisplayName = 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 8: {
Index = input.ReadInt32();
break;
}
case 21: {
Score = input.ReadFloat();
break;
}
case 26: {
Label = input.ReadString();
break;
}
case 34: {
DisplayName = input.ReadString();
break;
}
}
}
}
#endif
}
/// <summary>
/// Group of Classification protos.
/// </summary>
public sealed partial class ClassificationList : pb::IMessage<ClassificationList>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ClassificationList> _parser = new pb::MessageParser<ClassificationList>(() => new ClassificationList());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ClassificationList> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.ClassificationReflection.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 ClassificationList() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ClassificationList(ClassificationList other) : this() {
classification_ = other.classification_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ClassificationList Clone() {
return new ClassificationList(this);
}
/// <summary>Field number for the "classification" field.</summary>
public const int ClassificationFieldNumber = 1;
private static readonly pb::FieldCodec<global::Mediapipe.Classification> _repeated_classification_codec
= pb::FieldCodec.ForMessage(10, global::Mediapipe.Classification.Parser);
private readonly pbc::RepeatedField<global::Mediapipe.Classification> classification_ = new pbc::RepeatedField<global::Mediapipe.Classification>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Mediapipe.Classification> Classification {
get { return classification_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ClassificationList);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ClassificationList other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!classification_.Equals(other.classification_)) 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;
hash ^= classification_.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
classification_.WriteTo(output, _repeated_classification_codec);
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) {
classification_.WriteTo(ref output, _repeated_classification_codec);
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;
size += classification_.CalculateSize(_repeated_classification_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ClassificationList other) {
if (other == null) {
return;
}
classification_.Add(other.classification_);
_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: {
classification_.AddEntriesFrom(input, _repeated_classification_codec);
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: {
classification_.AddEntriesFrom(ref input, _repeated_classification_codec);
break;
}
}
}
}
#endif
}
/// <summary>
/// Group of ClassificationList protos.
/// </summary>
public sealed partial class ClassificationListCollection : pb::IMessage<ClassificationListCollection>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ClassificationListCollection> _parser = new pb::MessageParser<ClassificationListCollection>(() => new ClassificationListCollection());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ClassificationListCollection> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.ClassificationReflection.Descriptor.MessageTypes[2]; }
}
[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 ClassificationListCollection() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ClassificationListCollection(ClassificationListCollection other) : this() {
classificationList_ = other.classificationList_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ClassificationListCollection Clone() {
return new ClassificationListCollection(this);
}
/// <summary>Field number for the "classification_list" field.</summary>
public const int ClassificationListFieldNumber = 1;
private static readonly pb::FieldCodec<global::Mediapipe.ClassificationList> _repeated_classificationList_codec
= pb::FieldCodec.ForMessage(10, global::Mediapipe.ClassificationList.Parser);
private readonly pbc::RepeatedField<global::Mediapipe.ClassificationList> classificationList_ = new pbc::RepeatedField<global::Mediapipe.ClassificationList>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Mediapipe.ClassificationList> ClassificationList {
get { return classificationList_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ClassificationListCollection);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ClassificationListCollection other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!classificationList_.Equals(other.classificationList_)) 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;
hash ^= classificationList_.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
classificationList_.WriteTo(output, _repeated_classificationList_codec);
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) {
classificationList_.WriteTo(ref output, _repeated_classificationList_codec);
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;
size += classificationList_.CalculateSize(_repeated_classificationList_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ClassificationListCollection other) {
if (other == null) {
return;
}
classificationList_.Add(other.classificationList_);
_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: {
classificationList_.AddEntriesFrom(input, _repeated_classificationList_codec);
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: {
classificationList_.AddEntriesFrom(ref input, _repeated_classificationList_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f38215582182a0826954a8789b14676a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8959a6aaf727953d7bf3e26020dc1421
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,475 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/formats/image_file_properties.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/formats/image_file_properties.proto</summary>
public static partial class ImageFilePropertiesReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/formats/image_file_properties.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ImageFilePropertiesReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjdtZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvaW1hZ2VfZmlsZV9wcm9w",
"ZXJ0aWVzLnByb3RvEgltZWRpYXBpcGUikQEKE0ltYWdlRmlsZVByb3BlcnRp",
"ZXMSEwoLaW1hZ2Vfd2lkdGgYASABKA0SFAoMaW1hZ2VfaGVpZ2h0GAIgASgN",
"EhcKD2ZvY2FsX2xlbmd0aF9tbRgDIAEoARIZChFmb2NhbF9sZW5ndGhfMzVt",
"bRgEIAEoARIbChNmb2NhbF9sZW5ndGhfcGl4ZWxzGAUgASgB"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ImageFileProperties), global::Mediapipe.ImageFileProperties.Parser, new[]{ "ImageWidth", "ImageHeight", "FocalLengthMm", "FocalLength35Mm", "FocalLengthPixels" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// A list of properties extracted from EXIF metadata from an image file.
/// </summary>
public sealed partial class ImageFileProperties : pb::IMessage<ImageFileProperties>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ImageFileProperties> _parser = new pb::MessageParser<ImageFileProperties>(() => new ImageFileProperties());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ImageFileProperties> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.ImageFilePropertiesReflection.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 ImageFileProperties() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ImageFileProperties(ImageFileProperties other) : this() {
_hasBits0 = other._hasBits0;
imageWidth_ = other.imageWidth_;
imageHeight_ = other.imageHeight_;
focalLengthMm_ = other.focalLengthMm_;
focalLength35Mm_ = other.focalLength35Mm_;
focalLengthPixels_ = other.focalLengthPixels_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ImageFileProperties Clone() {
return new ImageFileProperties(this);
}
/// <summary>Field number for the "image_width" field.</summary>
public const int ImageWidthFieldNumber = 1;
private readonly static uint ImageWidthDefaultValue = 0;
private uint imageWidth_;
/// <summary>
/// Image dimensions.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint ImageWidth {
get { if ((_hasBits0 & 1) != 0) { return imageWidth_; } else { return ImageWidthDefaultValue; } }
set {
_hasBits0 |= 1;
imageWidth_ = value;
}
}
/// <summary>Gets whether the "image_width" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasImageWidth {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "image_width" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearImageWidth() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "image_height" field.</summary>
public const int ImageHeightFieldNumber = 2;
private readonly static uint ImageHeightDefaultValue = 0;
private uint imageHeight_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public uint ImageHeight {
get { if ((_hasBits0 & 2) != 0) { return imageHeight_; } else { return ImageHeightDefaultValue; } }
set {
_hasBits0 |= 2;
imageHeight_ = value;
}
}
/// <summary>Gets whether the "image_height" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasImageHeight {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "image_height" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearImageHeight() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "focal_length_mm" field.</summary>
public const int FocalLengthMmFieldNumber = 3;
private readonly static double FocalLengthMmDefaultValue = 0D;
private double focalLengthMm_;
/// <summary>
/// Focal length of camera lens in millimeters.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double FocalLengthMm {
get { if ((_hasBits0 & 4) != 0) { return focalLengthMm_; } else { return FocalLengthMmDefaultValue; } }
set {
_hasBits0 |= 4;
focalLengthMm_ = value;
}
}
/// <summary>Gets whether the "focal_length_mm" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasFocalLengthMm {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "focal_length_mm" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearFocalLengthMm() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "focal_length_35mm" field.</summary>
public const int FocalLength35MmFieldNumber = 4;
private readonly static double FocalLength35MmDefaultValue = 0D;
private double focalLength35Mm_;
/// <summary>
/// Focal length of camera lens in 35 mm equivalent.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double FocalLength35Mm {
get { if ((_hasBits0 & 8) != 0) { return focalLength35Mm_; } else { return FocalLength35MmDefaultValue; } }
set {
_hasBits0 |= 8;
focalLength35Mm_ = value;
}
}
/// <summary>Gets whether the "focal_length_35mm" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasFocalLength35Mm {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "focal_length_35mm" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearFocalLength35Mm() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "focal_length_pixels" field.</summary>
public const int FocalLengthPixelsFieldNumber = 5;
private readonly static double FocalLengthPixelsDefaultValue = 0D;
private double focalLengthPixels_;
/// <summary>
/// Focal length in pixels.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double FocalLengthPixels {
get { if ((_hasBits0 & 16) != 0) { return focalLengthPixels_; } else { return FocalLengthPixelsDefaultValue; } }
set {
_hasBits0 |= 16;
focalLengthPixels_ = value;
}
}
/// <summary>Gets whether the "focal_length_pixels" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasFocalLengthPixels {
get { return (_hasBits0 & 16) != 0; }
}
/// <summary>Clears the value of the "focal_length_pixels" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearFocalLengthPixels() {
_hasBits0 &= ~16;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ImageFileProperties);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ImageFileProperties other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ImageWidth != other.ImageWidth) return false;
if (ImageHeight != other.ImageHeight) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FocalLengthMm, other.FocalLengthMm)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FocalLength35Mm, other.FocalLength35Mm)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FocalLengthPixels, other.FocalLengthPixels)) 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 (HasImageWidth) hash ^= ImageWidth.GetHashCode();
if (HasImageHeight) hash ^= ImageHeight.GetHashCode();
if (HasFocalLengthMm) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FocalLengthMm);
if (HasFocalLength35Mm) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FocalLength35Mm);
if (HasFocalLengthPixels) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FocalLengthPixels);
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 (HasImageWidth) {
output.WriteRawTag(8);
output.WriteUInt32(ImageWidth);
}
if (HasImageHeight) {
output.WriteRawTag(16);
output.WriteUInt32(ImageHeight);
}
if (HasFocalLengthMm) {
output.WriteRawTag(25);
output.WriteDouble(FocalLengthMm);
}
if (HasFocalLength35Mm) {
output.WriteRawTag(33);
output.WriteDouble(FocalLength35Mm);
}
if (HasFocalLengthPixels) {
output.WriteRawTag(41);
output.WriteDouble(FocalLengthPixels);
}
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 (HasImageWidth) {
output.WriteRawTag(8);
output.WriteUInt32(ImageWidth);
}
if (HasImageHeight) {
output.WriteRawTag(16);
output.WriteUInt32(ImageHeight);
}
if (HasFocalLengthMm) {
output.WriteRawTag(25);
output.WriteDouble(FocalLengthMm);
}
if (HasFocalLength35Mm) {
output.WriteRawTag(33);
output.WriteDouble(FocalLength35Mm);
}
if (HasFocalLengthPixels) {
output.WriteRawTag(41);
output.WriteDouble(FocalLengthPixels);
}
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 (HasImageWidth) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ImageWidth);
}
if (HasImageHeight) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ImageHeight);
}
if (HasFocalLengthMm) {
size += 1 + 8;
}
if (HasFocalLength35Mm) {
size += 1 + 8;
}
if (HasFocalLengthPixels) {
size += 1 + 8;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ImageFileProperties other) {
if (other == null) {
return;
}
if (other.HasImageWidth) {
ImageWidth = other.ImageWidth;
}
if (other.HasImageHeight) {
ImageHeight = other.ImageHeight;
}
if (other.HasFocalLengthMm) {
FocalLengthMm = other.FocalLengthMm;
}
if (other.HasFocalLength35Mm) {
FocalLength35Mm = other.FocalLength35Mm;
}
if (other.HasFocalLengthPixels) {
FocalLengthPixels = other.FocalLengthPixels;
}
_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: {
ImageWidth = input.ReadUInt32();
break;
}
case 16: {
ImageHeight = input.ReadUInt32();
break;
}
case 25: {
FocalLengthMm = input.ReadDouble();
break;
}
case 33: {
FocalLength35Mm = input.ReadDouble();
break;
}
case 41: {
FocalLengthPixels = input.ReadDouble();
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: {
ImageWidth = input.ReadUInt32();
break;
}
case 16: {
ImageHeight = input.ReadUInt32();
break;
}
case 25: {
FocalLengthMm = input.ReadDouble();
break;
}
case 33: {
FocalLength35Mm = input.ReadDouble();
break;
}
case 41: {
FocalLengthPixels = input.ReadDouble();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0228463cfe686d54b97cfb6a22bf08b9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,273 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/formats/image_format.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/formats/image_format.proto</summary>
public static partial class ImageFormatReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/formats/image_format.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ImageFormatReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ci5tZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvaW1hZ2VfZm9ybWF0LnBy",
"b3RvEgltZWRpYXBpcGUiuQEKC0ltYWdlRm9ybWF0IqkBCgZGb3JtYXQSCwoH",
"VU5LTk9XThAAEggKBFNSR0IQARIJCgVTUkdCQRACEgkKBUdSQVk4EAMSCgoG",
"R1JBWTE2EAQSDQoJWUNCQ1I0MjBQEAUSDwoLWUNCQ1I0MjBQMTAQBhIKCgZT",
"UkdCNDgQBxILCgdTUkdCQTY0EAgSCwoHVkVDMzJGMRAJEgsKB1ZFQzMyRjIQ",
"DBIICgRMQUI4EAoSCQoFU0JHUkEQC0I2CiJjb20uZ29vZ2xlLm1lZGlhcGlw",
"ZS5mb3JtYXRzLnByb3RvQhBJbWFnZUZvcm1hdFByb3Rv"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ImageFormat), global::Mediapipe.ImageFormat.Parser, null, null, new[]{ typeof(global::Mediapipe.ImageFormat.Types.Format) }, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class ImageFormat : pb::IMessage<ImageFormat>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ImageFormat> _parser = new pb::MessageParser<ImageFormat>(() => new ImageFormat());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ImageFormat> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.ImageFormatReflection.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 ImageFormat() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ImageFormat(ImageFormat other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ImageFormat Clone() {
return new ImageFormat(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ImageFormat);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ImageFormat other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
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 (_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 (_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 (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ImageFormat other) {
if (other == null) {
return;
}
_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;
}
}
#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;
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the ImageFormat message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public enum Format {
/// <summary>
/// The format is unknown. It is not valid for an ImageFrame to be
/// initialized with this value.
/// </summary>
[pbr::OriginalName("UNKNOWN")] Unknown = 0,
/// <summary>
/// sRGB, interleaved: one byte for R, then one byte for G, then one
/// byte for B for each pixel.
/// </summary>
[pbr::OriginalName("SRGB")] Srgb = 1,
/// <summary>
/// sRGBA, interleaved: one byte for R, one byte for G, one byte for B,
/// one byte for alpha or unused.
/// </summary>
[pbr::OriginalName("SRGBA")] Srgba = 2,
/// <summary>
/// Grayscale, one byte per pixel.
/// </summary>
[pbr::OriginalName("GRAY8")] Gray8 = 3,
/// <summary>
/// Grayscale, one uint16 per pixel.
/// </summary>
[pbr::OriginalName("GRAY16")] Gray16 = 4,
/// <summary>
/// YCbCr420P (1 bpp for Y, 0.25 bpp for U and V).
/// NOTE: NOT a valid ImageFrame format, but intended for
/// ScaleImageCalculatorOptions, VideoHeader, etc. to indicate that
/// YUVImage is used in place of ImageFrame.
/// </summary>
[pbr::OriginalName("YCBCR420P")] Ycbcr420P = 5,
/// <summary>
/// Similar to YCbCr420P, but the data is represented as the lower 10bits of
/// a uint16. Like YCbCr420P, this is NOT a valid ImageFrame, and the data is
/// carried within a YUVImage.
/// </summary>
[pbr::OriginalName("YCBCR420P10")] Ycbcr420P10 = 6,
/// <summary>
/// sRGB, interleaved, each component is a uint16.
/// </summary>
[pbr::OriginalName("SRGB48")] Srgb48 = 7,
/// <summary>
/// sRGBA, interleaved, each component is a uint16.
/// </summary>
[pbr::OriginalName("SRGBA64")] Srgba64 = 8,
/// <summary>
/// One float per pixel.
/// </summary>
[pbr::OriginalName("VEC32F1")] Vec32F1 = 9,
/// <summary>
/// Two floats per pixel.
/// </summary>
[pbr::OriginalName("VEC32F2")] Vec32F2 = 12,
/// <summary>
/// LAB, interleaved: one byte for L, then one byte for a, then one
/// byte for b for each pixel.
/// </summary>
[pbr::OriginalName("LAB8")] Lab8 = 10,
/// <summary>
/// sBGRA, interleaved: one byte for B, one byte for G, one byte for R,
/// one byte for alpha or unused. This is the N32 format for Skia.
/// </summary>
[pbr::OriginalName("SBGRA")] Sbgra = 11,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 42b9b71153dfe3f078eb289643ba4e11
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 78c597cedf10ba4f8994d0386ada83f9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2a74389b68d1b8516a3d72cf9140826a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,407 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/formats/matrix_data.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/formats/matrix_data.proto</summary>
public static partial class MatrixDataReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/formats/matrix_data.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static MatrixDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ci1tZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvbWF0cml4X2RhdGEucHJv",
"dG8SCW1lZGlhcGlwZSKoAQoKTWF0cml4RGF0YRIMCgRyb3dzGAEgASgFEgwK",
"BGNvbHMYAiABKAUSFwoLcGFja2VkX2RhdGEYAyADKAJCAhABEjoKBmxheW91",
"dBgEIAEoDjIcLm1lZGlhcGlwZS5NYXRyaXhEYXRhLkxheW91dDoMQ09MVU1O",
"X01BSk9SIikKBkxheW91dBIQCgxDT0xVTU5fTUFKT1IQABINCglST1dfTUFK",
"T1IQAUI1CiJjb20uZ29vZ2xlLm1lZGlhcGlwZS5mb3JtYXRzLnByb3RvQg9N",
"YXRyaXhEYXRhUHJvdG8="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MatrixData), global::Mediapipe.MatrixData.Parser, new[]{ "Rows", "Cols", "PackedData", "Layout" }, null, new[]{ typeof(global::Mediapipe.MatrixData.Types.Layout) }, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Proto for serializing Matrix data.
/// Data are stored in column-major order by default.
/// </summary>
public sealed partial class MatrixData : pb::IMessage<MatrixData>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MatrixData> _parser = new pb::MessageParser<MatrixData>(() => new MatrixData());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MatrixData> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.MatrixDataReflection.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 MatrixData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MatrixData(MatrixData other) : this() {
_hasBits0 = other._hasBits0;
rows_ = other.rows_;
cols_ = other.cols_;
packedData_ = other.packedData_.Clone();
layout_ = other.layout_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MatrixData Clone() {
return new MatrixData(this);
}
/// <summary>Field number for the "rows" field.</summary>
public const int RowsFieldNumber = 1;
private readonly static int RowsDefaultValue = 0;
private int rows_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Rows {
get { if ((_hasBits0 & 1) != 0) { return rows_; } else { return RowsDefaultValue; } }
set {
_hasBits0 |= 1;
rows_ = value;
}
}
/// <summary>Gets whether the "rows" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasRows {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "rows" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearRows() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "cols" field.</summary>
public const int ColsFieldNumber = 2;
private readonly static int ColsDefaultValue = 0;
private int cols_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Cols {
get { if ((_hasBits0 & 2) != 0) { return cols_; } else { return ColsDefaultValue; } }
set {
_hasBits0 |= 2;
cols_ = value;
}
}
/// <summary>Gets whether the "cols" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasCols {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "cols" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearCols() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "packed_data" field.</summary>
public const int PackedDataFieldNumber = 3;
private static readonly pb::FieldCodec<float> _repeated_packedData_codec
= pb::FieldCodec.ForFloat(26);
private readonly pbc::RepeatedField<float> packedData_ = new pbc::RepeatedField<float>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<float> PackedData {
get { return packedData_; }
}
/// <summary>Field number for the "layout" field.</summary>
public const int LayoutFieldNumber = 4;
private readonly static global::Mediapipe.MatrixData.Types.Layout LayoutDefaultValue = global::Mediapipe.MatrixData.Types.Layout.ColumnMajor;
private global::Mediapipe.MatrixData.Types.Layout layout_;
/// <summary>
/// Order in which the data are stored. Defaults to COLUMN_MAJOR, which matches
/// the default for mediapipe::Matrix and Eigen::Matrix*.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.MatrixData.Types.Layout Layout {
get { if ((_hasBits0 & 4) != 0) { return layout_; } else { return LayoutDefaultValue; } }
set {
_hasBits0 |= 4;
layout_ = value;
}
}
/// <summary>Gets whether the "layout" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasLayout {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "layout" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearLayout() {
_hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as MatrixData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MatrixData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Rows != other.Rows) return false;
if (Cols != other.Cols) return false;
if(!packedData_.Equals(other.packedData_)) return false;
if (Layout != other.Layout) 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 (HasRows) hash ^= Rows.GetHashCode();
if (HasCols) hash ^= Cols.GetHashCode();
hash ^= packedData_.GetHashCode();
if (HasLayout) hash ^= Layout.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 (HasRows) {
output.WriteRawTag(8);
output.WriteInt32(Rows);
}
if (HasCols) {
output.WriteRawTag(16);
output.WriteInt32(Cols);
}
packedData_.WriteTo(output, _repeated_packedData_codec);
if (HasLayout) {
output.WriteRawTag(32);
output.WriteEnum((int) Layout);
}
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 (HasRows) {
output.WriteRawTag(8);
output.WriteInt32(Rows);
}
if (HasCols) {
output.WriteRawTag(16);
output.WriteInt32(Cols);
}
packedData_.WriteTo(ref output, _repeated_packedData_codec);
if (HasLayout) {
output.WriteRawTag(32);
output.WriteEnum((int) Layout);
}
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 (HasRows) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rows);
}
if (HasCols) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cols);
}
size += packedData_.CalculateSize(_repeated_packedData_codec);
if (HasLayout) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Layout);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MatrixData other) {
if (other == null) {
return;
}
if (other.HasRows) {
Rows = other.Rows;
}
if (other.HasCols) {
Cols = other.Cols;
}
packedData_.Add(other.packedData_);
if (other.HasLayout) {
Layout = other.Layout;
}
_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: {
Rows = input.ReadInt32();
break;
}
case 16: {
Cols = input.ReadInt32();
break;
}
case 26:
case 29: {
packedData_.AddEntriesFrom(input, _repeated_packedData_codec);
break;
}
case 32: {
Layout = (global::Mediapipe.MatrixData.Types.Layout) 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: {
Rows = input.ReadInt32();
break;
}
case 16: {
Cols = input.ReadInt32();
break;
}
case 26:
case 29: {
packedData_.AddEntriesFrom(ref input, _repeated_packedData_codec);
break;
}
case 32: {
Layout = (global::Mediapipe.MatrixData.Types.Layout) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the MatrixData message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public enum Layout {
[pbr::OriginalName("COLUMN_MAJOR")] ColumnMajor = 0,
[pbr::OriginalName("ROW_MAJOR")] RowMajor = 1,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 929f5350423bf1842a3e76a8bf6398c6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a44707eeaf10f764e815e490588c2ea3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,362 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/formats/motion/optical_flow_field_data.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/formats/motion/optical_flow_field_data.proto</summary>
public static partial class OpticalFlowFieldDataReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/formats/motion/optical_flow_field_data.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static OpticalFlowFieldDataReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CkBtZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvbW90aW9uL29wdGljYWxf",
"Zmxvd19maWVsZF9kYXRhLnByb3RvEgltZWRpYXBpcGUiVQoUT3B0aWNhbEZs",
"b3dGaWVsZERhdGESDQoFd2lkdGgYASABKAUSDgoGaGVpZ2h0GAIgASgFEg4K",
"AmR4GAMgAygCQgIQARIOCgJkeRgEIAMoAkICEAE="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.OpticalFlowFieldData), global::Mediapipe.OpticalFlowFieldData.Parser, new[]{ "Width", "Height", "Dx", "Dy" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class OpticalFlowFieldData : pb::IMessage<OpticalFlowFieldData>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<OpticalFlowFieldData> _parser = new pb::MessageParser<OpticalFlowFieldData>(() => new OpticalFlowFieldData());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<OpticalFlowFieldData> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.OpticalFlowFieldDataReflection.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 OpticalFlowFieldData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OpticalFlowFieldData(OpticalFlowFieldData other) : this() {
_hasBits0 = other._hasBits0;
width_ = other.width_;
height_ = other.height_;
dx_ = other.dx_.Clone();
dy_ = other.dy_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OpticalFlowFieldData Clone() {
return new OpticalFlowFieldData(this);
}
/// <summary>Field number for the "width" field.</summary>
public const int WidthFieldNumber = 1;
private readonly static int WidthDefaultValue = 0;
private int width_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Width {
get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } }
set {
_hasBits0 |= 1;
width_ = value;
}
}
/// <summary>Gets whether the "width" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasWidth {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "width" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearWidth() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "height" field.</summary>
public const int HeightFieldNumber = 2;
private readonly static int HeightDefaultValue = 0;
private int height_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Height {
get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } }
set {
_hasBits0 |= 2;
height_ = value;
}
}
/// <summary>Gets whether the "height" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasHeight {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "height" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearHeight() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "dx" field.</summary>
public const int DxFieldNumber = 3;
private static readonly pb::FieldCodec<float> _repeated_dx_codec
= pb::FieldCodec.ForFloat(26);
private readonly pbc::RepeatedField<float> dx_ = new pbc::RepeatedField<float>();
/// <summary>
/// Stores the two channels of the flow field in raster order.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<float> Dx {
get { return dx_; }
}
/// <summary>Field number for the "dy" field.</summary>
public const int DyFieldNumber = 4;
private static readonly pb::FieldCodec<float> _repeated_dy_codec
= pb::FieldCodec.ForFloat(34);
private readonly pbc::RepeatedField<float> dy_ = new pbc::RepeatedField<float>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<float> Dy {
get { return dy_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OpticalFlowFieldData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OpticalFlowFieldData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Width != other.Width) return false;
if (Height != other.Height) return false;
if(!dx_.Equals(other.dx_)) return false;
if(!dy_.Equals(other.dy_)) 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 (HasWidth) hash ^= Width.GetHashCode();
if (HasHeight) hash ^= Height.GetHashCode();
hash ^= dx_.GetHashCode();
hash ^= dy_.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 (HasWidth) {
output.WriteRawTag(8);
output.WriteInt32(Width);
}
if (HasHeight) {
output.WriteRawTag(16);
output.WriteInt32(Height);
}
dx_.WriteTo(output, _repeated_dx_codec);
dy_.WriteTo(output, _repeated_dy_codec);
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 (HasWidth) {
output.WriteRawTag(8);
output.WriteInt32(Width);
}
if (HasHeight) {
output.WriteRawTag(16);
output.WriteInt32(Height);
}
dx_.WriteTo(ref output, _repeated_dx_codec);
dy_.WriteTo(ref output, _repeated_dy_codec);
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 (HasWidth) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Width);
}
if (HasHeight) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Height);
}
size += dx_.CalculateSize(_repeated_dx_codec);
size += dy_.CalculateSize(_repeated_dy_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(OpticalFlowFieldData other) {
if (other == null) {
return;
}
if (other.HasWidth) {
Width = other.Width;
}
if (other.HasHeight) {
Height = other.Height;
}
dx_.Add(other.dx_);
dy_.Add(other.dy_);
_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: {
Width = input.ReadInt32();
break;
}
case 16: {
Height = input.ReadInt32();
break;
}
case 26:
case 29: {
dx_.AddEntriesFrom(input, _repeated_dx_codec);
break;
}
case 34:
case 37: {
dy_.AddEntriesFrom(input, _repeated_dy_codec);
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: {
Width = input.ReadInt32();
break;
}
case 16: {
Height = input.ReadInt32();
break;
}
case 26:
case 29: {
dx_.AddEntriesFrom(ref input, _repeated_dx_codec);
break;
}
case 34:
case 37: {
dy_.AddEntriesFrom(ref input, _repeated_dy_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9b75b15ae6d2ff83a8d6d211e1698c98
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cd4d7de934069ee4d89debb25bb3c024
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,419 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/formats/object_detection/anchor.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/formats/object_detection/anchor.proto</summary>
public static partial class AnchorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/formats/object_detection/anchor.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static AnchorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjltZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvb2JqZWN0X2RldGVjdGlv",
"bi9hbmNob3IucHJvdG8SCW1lZGlhcGlwZSJCCgZBbmNob3ISEAoIeF9jZW50",
"ZXIYASACKAISEAoIeV9jZW50ZXIYAiACKAISCQoBaBgDIAIoAhIJCgF3GAQg",
"AigC"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Anchor), global::Mediapipe.Anchor.Parser, new[]{ "XCenter", "YCenter", "H", "W" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// The anchor representation for object detection.
/// </summary>
public sealed partial class Anchor : pb::IMessage<Anchor>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Anchor> _parser = new pb::MessageParser<Anchor>(() => new Anchor());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Anchor> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.AnchorReflection.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 Anchor() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Anchor(Anchor other) : this() {
_hasBits0 = other._hasBits0;
xCenter_ = other.xCenter_;
yCenter_ = other.yCenter_;
h_ = other.h_;
w_ = other.w_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Anchor Clone() {
return new Anchor(this);
}
/// <summary>Field number for the "x_center" field.</summary>
public const int XCenterFieldNumber = 1;
private readonly static float XCenterDefaultValue = 0F;
private float xCenter_;
/// <summary>
/// Encoded anchor box center.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float XCenter {
get { if ((_hasBits0 & 1) != 0) { return xCenter_; } else { return XCenterDefaultValue; } }
set {
_hasBits0 |= 1;
xCenter_ = value;
}
}
/// <summary>Gets whether the "x_center" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasXCenter {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "x_center" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearXCenter() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "y_center" field.</summary>
public const int YCenterFieldNumber = 2;
private readonly static float YCenterDefaultValue = 0F;
private float yCenter_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float YCenter {
get { if ((_hasBits0 & 2) != 0) { return yCenter_; } else { return YCenterDefaultValue; } }
set {
_hasBits0 |= 2;
yCenter_ = value;
}
}
/// <summary>Gets whether the "y_center" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasYCenter {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "y_center" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearYCenter() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "h" field.</summary>
public const int HFieldNumber = 3;
private readonly static float HDefaultValue = 0F;
private float h_;
/// <summary>
/// Encoded anchor box height.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float H {
get { if ((_hasBits0 & 4) != 0) { return h_; } else { return HDefaultValue; } }
set {
_hasBits0 |= 4;
h_ = value;
}
}
/// <summary>Gets whether the "h" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasH {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "h" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearH() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "w" field.</summary>
public const int WFieldNumber = 4;
private readonly static float WDefaultValue = 0F;
private float w_;
/// <summary>
/// Encoded anchor box width.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float W {
get { if ((_hasBits0 & 8) != 0) { return w_; } else { return WDefaultValue; } }
set {
_hasBits0 |= 8;
w_ = value;
}
}
/// <summary>Gets whether the "w" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasW {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "w" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearW() {
_hasBits0 &= ~8;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Anchor);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Anchor other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(XCenter, other.XCenter)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(YCenter, other.YCenter)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H, other.H)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) 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 (HasXCenter) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(XCenter);
if (HasYCenter) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(YCenter);
if (HasH) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H);
if (HasW) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W);
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 (HasXCenter) {
output.WriteRawTag(13);
output.WriteFloat(XCenter);
}
if (HasYCenter) {
output.WriteRawTag(21);
output.WriteFloat(YCenter);
}
if (HasH) {
output.WriteRawTag(29);
output.WriteFloat(H);
}
if (HasW) {
output.WriteRawTag(37);
output.WriteFloat(W);
}
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 (HasXCenter) {
output.WriteRawTag(13);
output.WriteFloat(XCenter);
}
if (HasYCenter) {
output.WriteRawTag(21);
output.WriteFloat(YCenter);
}
if (HasH) {
output.WriteRawTag(29);
output.WriteFloat(H);
}
if (HasW) {
output.WriteRawTag(37);
output.WriteFloat(W);
}
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 (HasXCenter) {
size += 1 + 4;
}
if (HasYCenter) {
size += 1 + 4;
}
if (HasH) {
size += 1 + 4;
}
if (HasW) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Anchor other) {
if (other == null) {
return;
}
if (other.HasXCenter) {
XCenter = other.XCenter;
}
if (other.HasYCenter) {
YCenter = other.YCenter;
}
if (other.HasH) {
H = other.H;
}
if (other.HasW) {
W = other.W;
}
_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 13: {
XCenter = input.ReadFloat();
break;
}
case 21: {
YCenter = input.ReadFloat();
break;
}
case 29: {
H = input.ReadFloat();
break;
}
case 37: {
W = input.ReadFloat();
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 13: {
XCenter = input.ReadFloat();
break;
}
case 21: {
YCenter = input.ReadFloat();
break;
}
case 29: {
H = input.ReadFloat();
break;
}
case 37: {
W = input.ReadFloat();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 615465bf568b94fee8a1e1a67bc072a8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0d0ab6ed8000b4ec99584572ab00de53
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,798 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/formats/time_series_header.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/formats/time_series_header.proto</summary>
public static partial class TimeSeriesHeaderReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/formats/time_series_header.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static TimeSeriesHeaderReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjRtZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvdGltZV9zZXJpZXNfaGVh",
"ZGVyLnByb3RvEgltZWRpYXBpcGUijgEKEFRpbWVTZXJpZXNIZWFkZXISEwoL",
"c2FtcGxlX3JhdGUYASABKAESFAoMbnVtX2NoYW5uZWxzGAIgASgFEhMKC251",
"bV9zYW1wbGVzGAMgASgFEhMKC3BhY2tldF9yYXRlGAQgASgBEhkKEWF1ZGlv",
"X3NhbXBsZV9yYXRlGAUgASgBKgoIoJwBEICAgIACImsKG011bHRpU3RyZWFt",
"VGltZVNlcmllc0hlYWRlchI3ChJ0aW1lX3Nlcmllc19oZWFkZXIYASABKAsy",
"Gy5tZWRpYXBpcGUuVGltZVNlcmllc0hlYWRlchITCgtudW1fc3RyZWFtcxgC",
"IAEoBQ=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TimeSeriesHeader), global::Mediapipe.TimeSeriesHeader.Parser, new[]{ "SampleRate", "NumChannels", "NumSamples", "PacketRate", "AudioSampleRate" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MultiStreamTimeSeriesHeader), global::Mediapipe.MultiStreamTimeSeriesHeader.Parser, new[]{ "TimeSeriesHeader", "NumStreams" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Header for a uniformly sampled time series stream. Each Packet in
/// the stream is a Matrix, and each column is a (vector-valued) sample of
/// the series, i.e. each column corresponds to a distinct sample in time.
/// </summary>
public sealed partial class TimeSeriesHeader : pb::IExtendableMessage<TimeSeriesHeader>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<TimeSeriesHeader> _parser = new pb::MessageParser<TimeSeriesHeader>(() => new TimeSeriesHeader());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet<TimeSeriesHeader> _extensions;
private pb::ExtensionSet<TimeSeriesHeader> _Extensions { get { return _extensions; } }
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<TimeSeriesHeader> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.TimeSeriesHeaderReflection.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 TimeSeriesHeader() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TimeSeriesHeader(TimeSeriesHeader other) : this() {
_hasBits0 = other._hasBits0;
sampleRate_ = other.sampleRate_;
numChannels_ = other.numChannels_;
numSamples_ = other.numSamples_;
packetRate_ = other.packetRate_;
audioSampleRate_ = other.audioSampleRate_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
_extensions = pb::ExtensionSet.Clone(other._extensions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TimeSeriesHeader Clone() {
return new TimeSeriesHeader(this);
}
/// <summary>Field number for the "sample_rate" field.</summary>
public const int SampleRateFieldNumber = 1;
private readonly static double SampleRateDefaultValue = 0D;
private double sampleRate_;
/// <summary>
/// Number of samples per second (hertz). The sample_rate is the
/// reciprocal of the period between consecutive samples within a
/// packet. Required, and must be greater than zero.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double SampleRate {
get { if ((_hasBits0 & 1) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } }
set {
_hasBits0 |= 1;
sampleRate_ = value;
}
}
/// <summary>Gets whether the "sample_rate" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasSampleRate {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "sample_rate" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearSampleRate() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "num_channels" field.</summary>
public const int NumChannelsFieldNumber = 2;
private readonly static int NumChannelsDefaultValue = 0;
private int numChannels_;
/// <summary>
/// The number of channels in each sample. This is the number of
/// rows in the matrix. Required, and must be greater than zero.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int NumChannels {
get { if ((_hasBits0 & 2) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
set {
_hasBits0 |= 2;
numChannels_ = value;
}
}
/// <summary>Gets whether the "num_channels" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasNumChannels {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "num_channels" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearNumChannels() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "num_samples" field.</summary>
public const int NumSamplesFieldNumber = 3;
private readonly static int NumSamplesDefaultValue = 0;
private int numSamples_;
/// <summary>
/// For streams that output a fixed number of samples per packet.
/// This field should not be set if the number of samples varies from
/// packet to packet. This is the number of columns in the matrix.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int NumSamples {
get { if ((_hasBits0 & 4) != 0) { return numSamples_; } else { return NumSamplesDefaultValue; } }
set {
_hasBits0 |= 4;
numSamples_ = value;
}
}
/// <summary>Gets whether the "num_samples" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasNumSamples {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "num_samples" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearNumSamples() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "packet_rate" field.</summary>
public const int PacketRateFieldNumber = 4;
private readonly static double PacketRateDefaultValue = 0D;
private double packetRate_;
/// <summary>
/// For streams that output Packets at a fixed rate, in Packets per
/// second. In other words, the reciprocal of the difference between
/// consecutive Packet timestamps.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double PacketRate {
get { if ((_hasBits0 & 8) != 0) { return packetRate_; } else { return PacketRateDefaultValue; } }
set {
_hasBits0 |= 8;
packetRate_ = value;
}
}
/// <summary>Gets whether the "packet_rate" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasPacketRate {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "packet_rate" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPacketRate() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "audio_sample_rate" field.</summary>
public const int AudioSampleRateFieldNumber = 5;
private readonly static double AudioSampleRateDefaultValue = 0D;
private double audioSampleRate_;
/// <summary>
/// Spectral representations (e.g. from SpectrogramCalculator) will
/// have their sample_rate field indicating the frame rate (e.g. 100
/// Hz), but downstream consumers need to know the sample_rate of the
/// source time-domain waveform in order to correctly interpret the
/// spectral bins. Units are hertz.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double AudioSampleRate {
get { if ((_hasBits0 & 16) != 0) { return audioSampleRate_; } else { return AudioSampleRateDefaultValue; } }
set {
_hasBits0 |= 16;
audioSampleRate_ = value;
}
}
/// <summary>Gets whether the "audio_sample_rate" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasAudioSampleRate {
get { return (_hasBits0 & 16) != 0; }
}
/// <summary>Clears the value of the "audio_sample_rate" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearAudioSampleRate() {
_hasBits0 &= ~16;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as TimeSeriesHeader);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(TimeSeriesHeader other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SampleRate, other.SampleRate)) return false;
if (NumChannels != other.NumChannels) return false;
if (NumSamples != other.NumSamples) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(PacketRate, other.PacketRate)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AudioSampleRate, other.AudioSampleRate)) return false;
if (!Equals(_extensions, other._extensions)) {
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 (HasSampleRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SampleRate);
if (HasNumChannels) hash ^= NumChannels.GetHashCode();
if (HasNumSamples) hash ^= NumSamples.GetHashCode();
if (HasPacketRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PacketRate);
if (HasAudioSampleRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AudioSampleRate);
if (_extensions != null) {
hash ^= _extensions.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 (HasSampleRate) {
output.WriteRawTag(9);
output.WriteDouble(SampleRate);
}
if (HasNumChannels) {
output.WriteRawTag(16);
output.WriteInt32(NumChannels);
}
if (HasNumSamples) {
output.WriteRawTag(24);
output.WriteInt32(NumSamples);
}
if (HasPacketRate) {
output.WriteRawTag(33);
output.WriteDouble(PacketRate);
}
if (HasAudioSampleRate) {
output.WriteRawTag(41);
output.WriteDouble(AudioSampleRate);
}
if (_extensions != null) {
_extensions.WriteTo(output);
}
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 (HasSampleRate) {
output.WriteRawTag(9);
output.WriteDouble(SampleRate);
}
if (HasNumChannels) {
output.WriteRawTag(16);
output.WriteInt32(NumChannels);
}
if (HasNumSamples) {
output.WriteRawTag(24);
output.WriteInt32(NumSamples);
}
if (HasPacketRate) {
output.WriteRawTag(33);
output.WriteDouble(PacketRate);
}
if (HasAudioSampleRate) {
output.WriteRawTag(41);
output.WriteDouble(AudioSampleRate);
}
if (_extensions != null) {
_extensions.WriteTo(ref output);
}
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 (HasSampleRate) {
size += 1 + 8;
}
if (HasNumChannels) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumChannels);
}
if (HasNumSamples) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumSamples);
}
if (HasPacketRate) {
size += 1 + 8;
}
if (HasAudioSampleRate) {
size += 1 + 8;
}
if (_extensions != null) {
size += _extensions.CalculateSize();
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(TimeSeriesHeader other) {
if (other == null) {
return;
}
if (other.HasSampleRate) {
SampleRate = other.SampleRate;
}
if (other.HasNumChannels) {
NumChannels = other.NumChannels;
}
if (other.HasNumSamples) {
NumSamples = other.NumSamples;
}
if (other.HasPacketRate) {
PacketRate = other.PacketRate;
}
if (other.HasAudioSampleRate) {
AudioSampleRate = other.AudioSampleRate;
}
pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
_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:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
}
break;
case 9: {
SampleRate = input.ReadDouble();
break;
}
case 16: {
NumChannels = input.ReadInt32();
break;
}
case 24: {
NumSamples = input.ReadInt32();
break;
}
case 33: {
PacketRate = input.ReadDouble();
break;
}
case 41: {
AudioSampleRate = input.ReadDouble();
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:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
}
break;
case 9: {
SampleRate = input.ReadDouble();
break;
}
case 16: {
NumChannels = input.ReadInt32();
break;
}
case 24: {
NumSamples = input.ReadInt32();
break;
}
case 33: {
PacketRate = input.ReadDouble();
break;
}
case 41: {
AudioSampleRate = input.ReadDouble();
break;
}
}
}
}
#endif
public TValue GetExtension<TValue>(pb::Extension<TimeSeriesHeader, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TimeSeriesHeader, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TimeSeriesHeader, TValue> extension) {
return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
}
public void SetExtension<TValue>(pb::Extension<TimeSeriesHeader, TValue> extension, TValue value) {
pb::ExtensionSet.Set(ref _extensions, extension, value);
}
public bool HasExtension<TValue>(pb::Extension<TimeSeriesHeader, TValue> extension) {
return pb::ExtensionSet.Has(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::Extension<TimeSeriesHeader, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::RepeatedExtension<TimeSeriesHeader, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
}
/// <summary>
/// Header for a multi-stream time series. Each packet in the
/// associated stream is a vector&lt;Matrix> of size num_streams. Each
/// Matrix in the vector is as specified by the time_series_header
/// field.
/// </summary>
public sealed partial class MultiStreamTimeSeriesHeader : pb::IMessage<MultiStreamTimeSeriesHeader>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MultiStreamTimeSeriesHeader> _parser = new pb::MessageParser<MultiStreamTimeSeriesHeader>(() => new MultiStreamTimeSeriesHeader());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MultiStreamTimeSeriesHeader> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.TimeSeriesHeaderReflection.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 MultiStreamTimeSeriesHeader() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MultiStreamTimeSeriesHeader(MultiStreamTimeSeriesHeader other) : this() {
_hasBits0 = other._hasBits0;
timeSeriesHeader_ = other.timeSeriesHeader_ != null ? other.timeSeriesHeader_.Clone() : null;
numStreams_ = other.numStreams_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MultiStreamTimeSeriesHeader Clone() {
return new MultiStreamTimeSeriesHeader(this);
}
/// <summary>Field number for the "time_series_header" field.</summary>
public const int TimeSeriesHeaderFieldNumber = 1;
private global::Mediapipe.TimeSeriesHeader timeSeriesHeader_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.TimeSeriesHeader TimeSeriesHeader {
get { return timeSeriesHeader_; }
set {
timeSeriesHeader_ = value;
}
}
/// <summary>Field number for the "num_streams" field.</summary>
public const int NumStreamsFieldNumber = 2;
private readonly static int NumStreamsDefaultValue = 0;
private int numStreams_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int NumStreams {
get { if ((_hasBits0 & 1) != 0) { return numStreams_; } else { return NumStreamsDefaultValue; } }
set {
_hasBits0 |= 1;
numStreams_ = value;
}
}
/// <summary>Gets whether the "num_streams" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasNumStreams {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "num_streams" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearNumStreams() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as MultiStreamTimeSeriesHeader);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MultiStreamTimeSeriesHeader other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(TimeSeriesHeader, other.TimeSeriesHeader)) return false;
if (NumStreams != other.NumStreams) 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 (timeSeriesHeader_ != null) hash ^= TimeSeriesHeader.GetHashCode();
if (HasNumStreams) hash ^= NumStreams.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 (timeSeriesHeader_ != null) {
output.WriteRawTag(10);
output.WriteMessage(TimeSeriesHeader);
}
if (HasNumStreams) {
output.WriteRawTag(16);
output.WriteInt32(NumStreams);
}
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 (timeSeriesHeader_ != null) {
output.WriteRawTag(10);
output.WriteMessage(TimeSeriesHeader);
}
if (HasNumStreams) {
output.WriteRawTag(16);
output.WriteInt32(NumStreams);
}
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 (timeSeriesHeader_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeSeriesHeader);
}
if (HasNumStreams) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumStreams);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MultiStreamTimeSeriesHeader other) {
if (other == null) {
return;
}
if (other.timeSeriesHeader_ != null) {
if (timeSeriesHeader_ == null) {
TimeSeriesHeader = new global::Mediapipe.TimeSeriesHeader();
}
TimeSeriesHeader.MergeFrom(other.TimeSeriesHeader);
}
if (other.HasNumStreams) {
NumStreams = other.NumStreams;
}
_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 (timeSeriesHeader_ == null) {
TimeSeriesHeader = new global::Mediapipe.TimeSeriesHeader();
}
input.ReadMessage(TimeSeriesHeader);
break;
}
case 16: {
NumStreams = input.ReadInt32();
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 (timeSeriesHeader_ == null) {
TimeSeriesHeader = new global::Mediapipe.TimeSeriesHeader();
}
input.ReadMessage(TimeSeriesHeader);
break;
}
case 16: {
NumStreams = input.ReadInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0169013c78498316488386bfa21d8994
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,245 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/mediapipe_options.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/mediapipe_options.proto</summary>
public static partial class MediapipeOptionsReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/mediapipe_options.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static MediapipeOptionsReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CittZWRpYXBpcGUvZnJhbWV3b3JrL21lZGlhcGlwZV9vcHRpb25zLnByb3Rv",
"EgltZWRpYXBpcGUiHgoQTWVkaWFQaXBlT3B0aW9ucyoKCKCcARCAgICAAkIz",
"Chpjb20uZ29vZ2xlLm1lZGlhcGlwZS5wcm90b0IVTWVkaWFQaXBlT3B0aW9u",
"c1Byb3Rv"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MediaPipeOptions), global::Mediapipe.MediaPipeOptions.Parser, null, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Options used by a MediaPipe object.
/// </summary>
public sealed partial class MediaPipeOptions : pb::IExtendableMessage<MediaPipeOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<MediaPipeOptions> _parser = new pb::MessageParser<MediaPipeOptions>(() => new MediaPipeOptions());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet<MediaPipeOptions> _extensions;
private pb::ExtensionSet<MediaPipeOptions> _Extensions { get { return _extensions; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<MediaPipeOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.MediapipeOptionsReflection.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 MediaPipeOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MediaPipeOptions(MediaPipeOptions other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
_extensions = pb::ExtensionSet.Clone(other._extensions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public MediaPipeOptions Clone() {
return new MediaPipeOptions(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as MediaPipeOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(MediaPipeOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!Equals(_extensions, other._extensions)) {
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 (_extensions != null) {
hash ^= _extensions.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 (_extensions != null) {
_extensions.WriteTo(output);
}
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 (_extensions != null) {
_extensions.WriteTo(ref output);
}
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 (_extensions != null) {
size += _extensions.CalculateSize();
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(MediaPipeOptions other) {
if (other == null) {
return;
}
pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
_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:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
}
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:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
}
break;
}
}
}
#endif
public TValue GetExtension<TValue>(pb::Extension<MediaPipeOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MediaPipeOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<MediaPipeOptions, TValue> extension) {
return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
}
public void SetExtension<TValue>(pb::Extension<MediaPipeOptions, TValue> extension, TValue value) {
pb::ExtensionSet.Set(ref _extensions, extension, value);
}
public bool HasExtension<TValue>(pb::Extension<MediaPipeOptions, TValue> extension) {
return pb::ExtensionSet.Has(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::Extension<MediaPipeOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::RepeatedExtension<MediaPipeOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7fb4306bf765ed020b56723aef9429ef
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,799 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/packet_factory.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/packet_factory.proto</summary>
public static partial class PacketFactoryReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/packet_factory.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static PacketFactoryReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CihtZWRpYXBpcGUvZnJhbWV3b3JrL3BhY2tldF9mYWN0b3J5LnByb3RvEglt",
"ZWRpYXBpcGUiIgoUUGFja2V0RmFjdG9yeU9wdGlvbnMqCgignAEQgICAgAIi",
"lQEKE1BhY2tldEZhY3RvcnlDb25maWcSFgoOcGFja2V0X2ZhY3RvcnkYASAB",
"KAkSGgoSb3V0cHV0X3NpZGVfcGFja2V0GAIgASgJEhgKD2V4dGVybmFsX291",
"dHB1dBjqByABKAkSMAoHb3B0aW9ucxgDIAEoCzIfLm1lZGlhcGlwZS5QYWNr",
"ZXRGYWN0b3J5T3B0aW9ucyJFChNQYWNrZXRNYW5hZ2VyQ29uZmlnEi4KBnBh",
"Y2tldBgBIAMoCzIeLm1lZGlhcGlwZS5QYWNrZXRGYWN0b3J5Q29uZmlnQjAK",
"GmNvbS5nb29nbGUubWVkaWFwaXBlLnByb3RvQhJQYWNrZXRGYWN0b3J5UHJv",
"dG8="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PacketFactoryOptions), global::Mediapipe.PacketFactoryOptions.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PacketFactoryConfig), global::Mediapipe.PacketFactoryConfig.Parser, new[]{ "PacketFactory", "OutputSidePacket", "ExternalOutput", "Options" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PacketManagerConfig), global::Mediapipe.PacketManagerConfig.Parser, new[]{ "Packet" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Options used by a PacketFactory to create the Packet.
/// </summary>
public sealed partial class PacketFactoryOptions : pb::IExtendableMessage<PacketFactoryOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PacketFactoryOptions> _parser = new pb::MessageParser<PacketFactoryOptions>(() => new PacketFactoryOptions());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet<PacketFactoryOptions> _extensions;
private pb::ExtensionSet<PacketFactoryOptions> _Extensions { get { return _extensions; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PacketFactoryOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.PacketFactoryReflection.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 PacketFactoryOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PacketFactoryOptions(PacketFactoryOptions other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
_extensions = pb::ExtensionSet.Clone(other._extensions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PacketFactoryOptions Clone() {
return new PacketFactoryOptions(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PacketFactoryOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PacketFactoryOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!Equals(_extensions, other._extensions)) {
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 (_extensions != null) {
hash ^= _extensions.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 (_extensions != null) {
_extensions.WriteTo(output);
}
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 (_extensions != null) {
_extensions.WriteTo(ref output);
}
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 (_extensions != null) {
size += _extensions.CalculateSize();
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PacketFactoryOptions other) {
if (other == null) {
return;
}
pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
_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:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
}
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:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
}
break;
}
}
}
#endif
public TValue GetExtension<TValue>(pb::Extension<PacketFactoryOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<PacketFactoryOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<PacketFactoryOptions, TValue> extension) {
return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
}
public void SetExtension<TValue>(pb::Extension<PacketFactoryOptions, TValue> extension, TValue value) {
pb::ExtensionSet.Set(ref _extensions, extension, value);
}
public bool HasExtension<TValue>(pb::Extension<PacketFactoryOptions, TValue> extension) {
return pb::ExtensionSet.Has(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::Extension<PacketFactoryOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::RepeatedExtension<PacketFactoryOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
}
/// <summary>
/// A PacketFactory creates a side packet.
/// </summary>
public sealed partial class PacketFactoryConfig : pb::IMessage<PacketFactoryConfig>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PacketFactoryConfig> _parser = new pb::MessageParser<PacketFactoryConfig>(() => new PacketFactoryConfig());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PacketFactoryConfig> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.PacketFactoryReflection.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 PacketFactoryConfig() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PacketFactoryConfig(PacketFactoryConfig other) : this() {
packetFactory_ = other.packetFactory_;
outputSidePacket_ = other.outputSidePacket_;
externalOutput_ = other.externalOutput_;
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 PacketFactoryConfig Clone() {
return new PacketFactoryConfig(this);
}
/// <summary>Field number for the "packet_factory" field.</summary>
public const int PacketFactoryFieldNumber = 1;
private readonly static string PacketFactoryDefaultValue = "";
private string packetFactory_;
/// <summary>
/// The name of the registered packet factory class.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PacketFactory {
get { return packetFactory_ ?? PacketFactoryDefaultValue; }
set {
packetFactory_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "packet_factory" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasPacketFactory {
get { return packetFactory_ != null; }
}
/// <summary>Clears the value of the "packet_factory" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPacketFactory() {
packetFactory_ = null;
}
/// <summary>Field number for the "output_side_packet" field.</summary>
public const int OutputSidePacketFieldNumber = 2;
private readonly static string OutputSidePacketDefaultValue = "";
private string outputSidePacket_;
/// <summary>
/// The name of the output side packet that this packet factory creates.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string OutputSidePacket {
get { return outputSidePacket_ ?? OutputSidePacketDefaultValue; }
set {
outputSidePacket_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "output_side_packet" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasOutputSidePacket {
get { return outputSidePacket_ != null; }
}
/// <summary>Clears the value of the "output_side_packet" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearOutputSidePacket() {
outputSidePacket_ = null;
}
/// <summary>Field number for the "external_output" field.</summary>
public const int ExternalOutputFieldNumber = 1002;
private readonly static string ExternalOutputDefaultValue = "";
private string externalOutput_;
/// <summary>
/// DEPRECATED: The old name for output_side_packet.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ExternalOutput {
get { return externalOutput_ ?? ExternalOutputDefaultValue; }
set {
externalOutput_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "external_output" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasExternalOutput {
get { return externalOutput_ != null; }
}
/// <summary>Clears the value of the "external_output" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearExternalOutput() {
externalOutput_ = null;
}
/// <summary>Field number for the "options" field.</summary>
public const int OptionsFieldNumber = 3;
private global::Mediapipe.PacketFactoryOptions options_;
/// <summary>
/// The options for the packet factory.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.PacketFactoryOptions 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 PacketFactoryConfig);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PacketFactoryConfig other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (PacketFactory != other.PacketFactory) return false;
if (OutputSidePacket != other.OutputSidePacket) return false;
if (ExternalOutput != other.ExternalOutput) 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 (HasPacketFactory) hash ^= PacketFactory.GetHashCode();
if (HasOutputSidePacket) hash ^= OutputSidePacket.GetHashCode();
if (HasExternalOutput) hash ^= ExternalOutput.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 (HasPacketFactory) {
output.WriteRawTag(10);
output.WriteString(PacketFactory);
}
if (HasOutputSidePacket) {
output.WriteRawTag(18);
output.WriteString(OutputSidePacket);
}
if (options_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Options);
}
if (HasExternalOutput) {
output.WriteRawTag(210, 62);
output.WriteString(ExternalOutput);
}
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 (HasPacketFactory) {
output.WriteRawTag(10);
output.WriteString(PacketFactory);
}
if (HasOutputSidePacket) {
output.WriteRawTag(18);
output.WriteString(OutputSidePacket);
}
if (options_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Options);
}
if (HasExternalOutput) {
output.WriteRawTag(210, 62);
output.WriteString(ExternalOutput);
}
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 (HasPacketFactory) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PacketFactory);
}
if (HasOutputSidePacket) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputSidePacket);
}
if (HasExternalOutput) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(ExternalOutput);
}
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(PacketFactoryConfig other) {
if (other == null) {
return;
}
if (other.HasPacketFactory) {
PacketFactory = other.PacketFactory;
}
if (other.HasOutputSidePacket) {
OutputSidePacket = other.OutputSidePacket;
}
if (other.HasExternalOutput) {
ExternalOutput = other.ExternalOutput;
}
if (other.options_ != null) {
if (options_ == null) {
Options = new global::Mediapipe.PacketFactoryOptions();
}
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: {
PacketFactory = input.ReadString();
break;
}
case 18: {
OutputSidePacket = input.ReadString();
break;
}
case 26: {
if (options_ == null) {
Options = new global::Mediapipe.PacketFactoryOptions();
}
input.ReadMessage(Options);
break;
}
case 8018: {
ExternalOutput = 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 10: {
PacketFactory = input.ReadString();
break;
}
case 18: {
OutputSidePacket = input.ReadString();
break;
}
case 26: {
if (options_ == null) {
Options = new global::Mediapipe.PacketFactoryOptions();
}
input.ReadMessage(Options);
break;
}
case 8018: {
ExternalOutput = input.ReadString();
break;
}
}
}
}
#endif
}
/// <summary>
/// The configuration for a PacketManager.
/// </summary>
public sealed partial class PacketManagerConfig : pb::IMessage<PacketManagerConfig>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PacketManagerConfig> _parser = new pb::MessageParser<PacketManagerConfig>(() => new PacketManagerConfig());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PacketManagerConfig> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.PacketFactoryReflection.Descriptor.MessageTypes[2]; }
}
[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 PacketManagerConfig() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PacketManagerConfig(PacketManagerConfig other) : this() {
packet_ = other.packet_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PacketManagerConfig Clone() {
return new PacketManagerConfig(this);
}
/// <summary>Field number for the "packet" field.</summary>
public const int PacketFieldNumber = 1;
private static readonly pb::FieldCodec<global::Mediapipe.PacketFactoryConfig> _repeated_packet_codec
= pb::FieldCodec.ForMessage(10, global::Mediapipe.PacketFactoryConfig.Parser);
private readonly pbc::RepeatedField<global::Mediapipe.PacketFactoryConfig> packet_ = new pbc::RepeatedField<global::Mediapipe.PacketFactoryConfig>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Mediapipe.PacketFactoryConfig> Packet {
get { return packet_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PacketManagerConfig);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PacketManagerConfig other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!packet_.Equals(other.packet_)) 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;
hash ^= packet_.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
packet_.WriteTo(output, _repeated_packet_codec);
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) {
packet_.WriteTo(ref output, _repeated_packet_codec);
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;
size += packet_.CalculateSize(_repeated_packet_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PacketManagerConfig other) {
if (other == null) {
return;
}
packet_.Add(other.packet_);
_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: {
packet_.AddEntriesFrom(input, _repeated_packet_codec);
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: {
packet_.AddEntriesFrom(ref input, _repeated_packet_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 829f26255b03dd08bbdcd4815faacf47
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,686 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/packet_generator.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/packet_generator.proto</summary>
public static partial class PacketGeneratorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/packet_generator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static PacketGeneratorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiptZWRpYXBpcGUvZnJhbWV3b3JrL3BhY2tldF9nZW5lcmF0b3IucHJvdG8S",
"CW1lZGlhcGlwZSJAChZQYWNrZXRHZW5lcmF0b3JPcHRpb25zEhoKDG1lcmdl",
"X2ZpZWxkcxgBIAEoCDoEdHJ1ZSoKCKCcARCAgICAAiLPAQoVUGFja2V0R2Vu",
"ZXJhdG9yQ29uZmlnEhgKEHBhY2tldF9nZW5lcmF0b3IYASABKAkSGQoRaW5w",
"dXRfc2lkZV9wYWNrZXQYAiADKAkSFwoOZXh0ZXJuYWxfaW5wdXQY6gcgAygJ",
"EhoKEm91dHB1dF9zaWRlX3BhY2tldBgDIAMoCRIYCg9leHRlcm5hbF9vdXRw",
"dXQY6wcgAygJEjIKB29wdGlvbnMYBCABKAsyIS5tZWRpYXBpcGUuUGFja2V0",
"R2VuZXJhdG9yT3B0aW9uc0IyChpjb20uZ29vZ2xlLm1lZGlhcGlwZS5wcm90",
"b0IUUGFja2V0R2VuZXJhdG9yUHJvdG8="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PacketGeneratorOptions), global::Mediapipe.PacketGeneratorOptions.Parser, new[]{ "MergeFields" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PacketGeneratorConfig), global::Mediapipe.PacketGeneratorConfig.Parser, new[]{ "PacketGenerator", "InputSidePacket", "ExternalInput", "OutputSidePacket", "ExternalOutput", "Options" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Options used by a PacketGenerator.
/// </summary>
public sealed partial class PacketGeneratorOptions : pb::IExtendableMessage<PacketGeneratorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PacketGeneratorOptions> _parser = new pb::MessageParser<PacketGeneratorOptions>(() => new PacketGeneratorOptions());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet<PacketGeneratorOptions> _extensions;
private pb::ExtensionSet<PacketGeneratorOptions> _Extensions { get { return _extensions; } }
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PacketGeneratorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.PacketGeneratorReflection.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 PacketGeneratorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PacketGeneratorOptions(PacketGeneratorOptions other) : this() {
_hasBits0 = other._hasBits0;
mergeFields_ = other.mergeFields_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
_extensions = pb::ExtensionSet.Clone(other._extensions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PacketGeneratorOptions Clone() {
return new PacketGeneratorOptions(this);
}
/// <summary>Field number for the "merge_fields" field.</summary>
public const int MergeFieldsFieldNumber = 1;
private readonly static bool MergeFieldsDefaultValue = true;
private bool mergeFields_;
/// <summary>
/// If true, this proto specifies a subset of field values,
/// which should override corresponding field values.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool MergeFields {
get { if ((_hasBits0 & 1) != 0) { return mergeFields_; } else { return MergeFieldsDefaultValue; } }
set {
_hasBits0 |= 1;
mergeFields_ = value;
}
}
/// <summary>Gets whether the "merge_fields" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasMergeFields {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "merge_fields" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearMergeFields() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PacketGeneratorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PacketGeneratorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (MergeFields != other.MergeFields) return false;
if (!Equals(_extensions, other._extensions)) {
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 (HasMergeFields) hash ^= MergeFields.GetHashCode();
if (_extensions != null) {
hash ^= _extensions.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 (HasMergeFields) {
output.WriteRawTag(8);
output.WriteBool(MergeFields);
}
if (_extensions != null) {
_extensions.WriteTo(output);
}
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 (HasMergeFields) {
output.WriteRawTag(8);
output.WriteBool(MergeFields);
}
if (_extensions != null) {
_extensions.WriteTo(ref output);
}
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 (HasMergeFields) {
size += 1 + 1;
}
if (_extensions != null) {
size += _extensions.CalculateSize();
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PacketGeneratorOptions other) {
if (other == null) {
return;
}
if (other.HasMergeFields) {
MergeFields = other.MergeFields;
}
pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
_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:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
}
break;
case 8: {
MergeFields = input.ReadBool();
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:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
}
break;
case 8: {
MergeFields = input.ReadBool();
break;
}
}
}
}
#endif
public TValue GetExtension<TValue>(pb::Extension<PacketGeneratorOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<PacketGeneratorOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<PacketGeneratorOptions, TValue> extension) {
return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
}
public void SetExtension<TValue>(pb::Extension<PacketGeneratorOptions, TValue> extension, TValue value) {
pb::ExtensionSet.Set(ref _extensions, extension, value);
}
public bool HasExtension<TValue>(pb::Extension<PacketGeneratorOptions, TValue> extension) {
return pb::ExtensionSet.Has(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::Extension<PacketGeneratorOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::RepeatedExtension<PacketGeneratorOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
}
/// <summary>
/// The settings specifying a packet generator and how it is connected.
/// </summary>
public sealed partial class PacketGeneratorConfig : pb::IMessage<PacketGeneratorConfig>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PacketGeneratorConfig> _parser = new pb::MessageParser<PacketGeneratorConfig>(() => new PacketGeneratorConfig());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PacketGeneratorConfig> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.PacketGeneratorReflection.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 PacketGeneratorConfig() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PacketGeneratorConfig(PacketGeneratorConfig other) : this() {
packetGenerator_ = other.packetGenerator_;
inputSidePacket_ = other.inputSidePacket_.Clone();
externalInput_ = other.externalInput_.Clone();
outputSidePacket_ = other.outputSidePacket_.Clone();
externalOutput_ = other.externalOutput_.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 PacketGeneratorConfig Clone() {
return new PacketGeneratorConfig(this);
}
/// <summary>Field number for the "packet_generator" field.</summary>
public const int PacketGeneratorFieldNumber = 1;
private readonly static string PacketGeneratorDefaultValue = "";
private string packetGenerator_;
/// <summary>
/// The name of the registered packet generator class.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PacketGenerator {
get { return packetGenerator_ ?? PacketGeneratorDefaultValue; }
set {
packetGenerator_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "packet_generator" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasPacketGenerator {
get { return packetGenerator_ != null; }
}
/// <summary>Clears the value of the "packet_generator" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPacketGenerator() {
packetGenerator_ = 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>
/// The names of the input side packets. The PacketGenerator can choose
/// to access its input side packets either by index or by tag.
/// </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 "external_input" field.</summary>
public const int ExternalInputFieldNumber = 1002;
private static readonly pb::FieldCodec<string> _repeated_externalInput_codec
= pb::FieldCodec.ForString(8018);
private readonly pbc::RepeatedField<string> externalInput_ = new pbc::RepeatedField<string>();
/// <summary>
/// DEPRECATED(mgeorg) The old name for input_side_packet.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> ExternalInput {
get { return externalInput_; }
}
/// <summary>Field number for the "output_side_packet" field.</summary>
public const int OutputSidePacketFieldNumber = 3;
private static readonly pb::FieldCodec<string> _repeated_outputSidePacket_codec
= pb::FieldCodec.ForString(26);
private readonly pbc::RepeatedField<string> outputSidePacket_ = new pbc::RepeatedField<string>();
/// <summary>
/// The names of the output side packets that this generator produces.
/// The PacketGenerator can choose to access its output side packets
/// either by index or by tag.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> OutputSidePacket {
get { return outputSidePacket_; }
}
/// <summary>Field number for the "external_output" field.</summary>
public const int ExternalOutputFieldNumber = 1003;
private static readonly pb::FieldCodec<string> _repeated_externalOutput_codec
= pb::FieldCodec.ForString(8026);
private readonly pbc::RepeatedField<string> externalOutput_ = new pbc::RepeatedField<string>();
/// <summary>
/// DEPRECATED(mgeorg) The old name for output_side_packet.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> ExternalOutput {
get { return externalOutput_; }
}
/// <summary>Field number for the "options" field.</summary>
public const int OptionsFieldNumber = 4;
private global::Mediapipe.PacketGeneratorOptions options_;
/// <summary>
/// The options for the packet generator.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.PacketGeneratorOptions 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 PacketGeneratorConfig);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PacketGeneratorConfig other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (PacketGenerator != other.PacketGenerator) return false;
if(!inputSidePacket_.Equals(other.inputSidePacket_)) return false;
if(!externalInput_.Equals(other.externalInput_)) return false;
if(!outputSidePacket_.Equals(other.outputSidePacket_)) return false;
if(!externalOutput_.Equals(other.externalOutput_)) 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 (HasPacketGenerator) hash ^= PacketGenerator.GetHashCode();
hash ^= inputSidePacket_.GetHashCode();
hash ^= externalInput_.GetHashCode();
hash ^= outputSidePacket_.GetHashCode();
hash ^= externalOutput_.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 (HasPacketGenerator) {
output.WriteRawTag(10);
output.WriteString(PacketGenerator);
}
inputSidePacket_.WriteTo(output, _repeated_inputSidePacket_codec);
outputSidePacket_.WriteTo(output, _repeated_outputSidePacket_codec);
if (options_ != null) {
output.WriteRawTag(34);
output.WriteMessage(Options);
}
externalInput_.WriteTo(output, _repeated_externalInput_codec);
externalOutput_.WriteTo(output, _repeated_externalOutput_codec);
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 (HasPacketGenerator) {
output.WriteRawTag(10);
output.WriteString(PacketGenerator);
}
inputSidePacket_.WriteTo(ref output, _repeated_inputSidePacket_codec);
outputSidePacket_.WriteTo(ref output, _repeated_outputSidePacket_codec);
if (options_ != null) {
output.WriteRawTag(34);
output.WriteMessage(Options);
}
externalInput_.WriteTo(ref output, _repeated_externalInput_codec);
externalOutput_.WriteTo(ref output, _repeated_externalOutput_codec);
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 (HasPacketGenerator) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PacketGenerator);
}
size += inputSidePacket_.CalculateSize(_repeated_inputSidePacket_codec);
size += externalInput_.CalculateSize(_repeated_externalInput_codec);
size += outputSidePacket_.CalculateSize(_repeated_outputSidePacket_codec);
size += externalOutput_.CalculateSize(_repeated_externalOutput_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(PacketGeneratorConfig other) {
if (other == null) {
return;
}
if (other.HasPacketGenerator) {
PacketGenerator = other.PacketGenerator;
}
inputSidePacket_.Add(other.inputSidePacket_);
externalInput_.Add(other.externalInput_);
outputSidePacket_.Add(other.outputSidePacket_);
externalOutput_.Add(other.externalOutput_);
if (other.options_ != null) {
if (options_ == null) {
Options = new global::Mediapipe.PacketGeneratorOptions();
}
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: {
PacketGenerator = input.ReadString();
break;
}
case 18: {
inputSidePacket_.AddEntriesFrom(input, _repeated_inputSidePacket_codec);
break;
}
case 26: {
outputSidePacket_.AddEntriesFrom(input, _repeated_outputSidePacket_codec);
break;
}
case 34: {
if (options_ == null) {
Options = new global::Mediapipe.PacketGeneratorOptions();
}
input.ReadMessage(Options);
break;
}
case 8018: {
externalInput_.AddEntriesFrom(input, _repeated_externalInput_codec);
break;
}
case 8026: {
externalOutput_.AddEntriesFrom(input, _repeated_externalOutput_codec);
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: {
PacketGenerator = input.ReadString();
break;
}
case 18: {
inputSidePacket_.AddEntriesFrom(ref input, _repeated_inputSidePacket_codec);
break;
}
case 26: {
outputSidePacket_.AddEntriesFrom(ref input, _repeated_outputSidePacket_codec);
break;
}
case 34: {
if (options_ == null) {
Options = new global::Mediapipe.PacketGeneratorOptions();
}
input.ReadMessage(Options);
break;
}
case 8018: {
externalInput_.AddEntriesFrom(ref input, _repeated_externalInput_codec);
break;
}
case 8026: {
externalOutput_.AddEntriesFrom(ref input, _repeated_externalOutput_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: bf6b21134f073285e9e457e2762ef4fb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,368 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/status_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/status_handler.proto</summary>
public static partial class StatusHandlerReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/status_handler.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static StatusHandlerReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CihtZWRpYXBpcGUvZnJhbWV3b3JrL3N0YXR1c19oYW5kbGVyLnByb3RvEglt",
"ZWRpYXBpcGUaK21lZGlhcGlwZS9mcmFtZXdvcmsvbWVkaWFwaXBlX29wdGlv",
"bnMucHJvdG8ijwEKE1N0YXR1c0hhbmRsZXJDb25maWcSFgoOc3RhdHVzX2hh",
"bmRsZXIYASABKAkSGQoRaW5wdXRfc2lkZV9wYWNrZXQYAiADKAkSFwoOZXh0",
"ZXJuYWxfaW5wdXQY6gcgAygJEiwKB29wdGlvbnMYAyABKAsyGy5tZWRpYXBp",
"cGUuTWVkaWFQaXBlT3B0aW9uc0IwChpjb20uZ29vZ2xlLm1lZGlhcGlwZS5w",
"cm90b0ISU3RhdHVzSGFuZGxlclByb3Rv"));
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.StatusHandlerConfig), global::Mediapipe.StatusHandlerConfig.Parser, new[]{ "StatusHandler", "InputSidePacket", "ExternalInput", "Options" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// The settings specifying a status handler and its required external inputs.
/// </summary>
public sealed partial class StatusHandlerConfig : pb::IMessage<StatusHandlerConfig>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<StatusHandlerConfig> _parser = new pb::MessageParser<StatusHandlerConfig>(() => new StatusHandlerConfig());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<StatusHandlerConfig> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.StatusHandlerReflection.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 StatusHandlerConfig() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public StatusHandlerConfig(StatusHandlerConfig other) : this() {
statusHandler_ = other.statusHandler_;
inputSidePacket_ = other.inputSidePacket_.Clone();
externalInput_ = other.externalInput_.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 StatusHandlerConfig Clone() {
return new StatusHandlerConfig(this);
}
/// <summary>Field number for the "status_handler" field.</summary>
public const int StatusHandlerFieldNumber = 1;
private readonly static string StatusHandlerDefaultValue = "";
private string statusHandler_;
/// <summary>
/// The name of the registered status handler class.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string StatusHandler {
get { return statusHandler_ ?? StatusHandlerDefaultValue; }
set {
statusHandler_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "status_handler" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasStatusHandler {
get { return statusHandler_ != null; }
}
/// <summary>Clears the value of the "status_handler" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearStatusHandler() {
statusHandler_ = 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>
/// The name of the input side packets. The StatusHandler can access its
/// input side packets by index or by tag. A StatusHandler will only
/// be called if all of its requested input side packets are available
/// (and won't be called if a PacketFactory or PacketGenerator which
/// produces one fails).
/// </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 "external_input" field.</summary>
public const int ExternalInputFieldNumber = 1002;
private static readonly pb::FieldCodec<string> _repeated_externalInput_codec
= pb::FieldCodec.ForString(8018);
private readonly pbc::RepeatedField<string> externalInput_ = new pbc::RepeatedField<string>();
/// <summary>
/// DEPRECATED(mgeorg) The old name for input_side_packet.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> ExternalInput {
get { return externalInput_; }
}
/// <summary>Field number for the "options" field.</summary>
public const int OptionsFieldNumber = 3;
private global::Mediapipe.MediaPipeOptions options_;
/// <summary>
/// The options for the status 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 StatusHandlerConfig);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(StatusHandlerConfig other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (StatusHandler != other.StatusHandler) return false;
if(!inputSidePacket_.Equals(other.inputSidePacket_)) return false;
if(!externalInput_.Equals(other.externalInput_)) 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 (HasStatusHandler) hash ^= StatusHandler.GetHashCode();
hash ^= inputSidePacket_.GetHashCode();
hash ^= externalInput_.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 (HasStatusHandler) {
output.WriteRawTag(10);
output.WriteString(StatusHandler);
}
inputSidePacket_.WriteTo(output, _repeated_inputSidePacket_codec);
if (options_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Options);
}
externalInput_.WriteTo(output, _repeated_externalInput_codec);
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 (HasStatusHandler) {
output.WriteRawTag(10);
output.WriteString(StatusHandler);
}
inputSidePacket_.WriteTo(ref output, _repeated_inputSidePacket_codec);
if (options_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Options);
}
externalInput_.WriteTo(ref output, _repeated_externalInput_codec);
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 (HasStatusHandler) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StatusHandler);
}
size += inputSidePacket_.CalculateSize(_repeated_inputSidePacket_codec);
size += externalInput_.CalculateSize(_repeated_externalInput_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(StatusHandlerConfig other) {
if (other == null) {
return;
}
if (other.HasStatusHandler) {
StatusHandler = other.StatusHandler;
}
inputSidePacket_.Add(other.inputSidePacket_);
externalInput_.Add(other.externalInput_);
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: {
StatusHandler = 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;
}
case 8018: {
externalInput_.AddEntriesFrom(input, _repeated_externalInput_codec);
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: {
StatusHandler = 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;
}
case 8018: {
externalInput_.AddEntriesFrom(ref input, _repeated_externalInput_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b1e3e4b165949a853abfa2cdb9666bc1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,598 @@
// <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

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0fd32667399239461813fefe99012c04
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,521 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/thread_pool_executor.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/thread_pool_executor.proto</summary>
public static partial class ThreadPoolExecutorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/framework/thread_pool_executor.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ThreadPoolExecutorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ci5tZWRpYXBpcGUvZnJhbWV3b3JrL3RocmVhZF9wb29sX2V4ZWN1dG9yLnBy",
"b3RvEgltZWRpYXBpcGUaK21lZGlhcGlwZS9mcmFtZXdvcmsvbWVkaWFwaXBl",
"X29wdGlvbnMucHJvdG8i6QIKGVRocmVhZFBvb2xFeGVjdXRvck9wdGlvbnMS",
"EwoLbnVtX3RocmVhZHMYASABKAUSEgoKc3RhY2tfc2l6ZRgCIAEoBRIbChNu",
"aWNlX3ByaW9yaXR5X2xldmVsGAMgASgFEmAKHXJlcXVpcmVfcHJvY2Vzc29y",
"X3BlcmZvcm1hbmNlGAQgASgOMjkubWVkaWFwaXBlLlRocmVhZFBvb2xFeGVj",
"dXRvck9wdGlvbnMuUHJvY2Vzc29yUGVyZm9ybWFuY2USGgoSdGhyZWFkX25h",
"bWVfcHJlZml4GAUgASgJIjUKFFByb2Nlc3NvclBlcmZvcm1hbmNlEgoKBk5P",
"Uk1BTBAAEgcKA0xPVxABEggKBEhJR0gQAjJRCgNleHQSGy5tZWRpYXBpcGUu",
"TWVkaWFQaXBlT3B0aW9ucxiT0/VKIAEoCzIkLm1lZGlhcGlwZS5UaHJlYWRQ",
"b29sRXhlY3V0b3JPcHRpb25z"));
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.ThreadPoolExecutorOptions), global::Mediapipe.ThreadPoolExecutorOptions.Parser, new[]{ "NumThreads", "StackSize", "NicePriorityLevel", "RequireProcessorPerformance", "ThreadNamePrefix" }, null, new[]{ typeof(global::Mediapipe.ThreadPoolExecutorOptions.Types.ProcessorPerformance) }, new pb::Extension[] { global::Mediapipe.ThreadPoolExecutorOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
public sealed partial class ThreadPoolExecutorOptions : pb::IMessage<ThreadPoolExecutorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ThreadPoolExecutorOptions> _parser = new pb::MessageParser<ThreadPoolExecutorOptions>(() => new ThreadPoolExecutorOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ThreadPoolExecutorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.ThreadPoolExecutorReflection.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 ThreadPoolExecutorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ThreadPoolExecutorOptions(ThreadPoolExecutorOptions other) : this() {
_hasBits0 = other._hasBits0;
numThreads_ = other.numThreads_;
stackSize_ = other.stackSize_;
nicePriorityLevel_ = other.nicePriorityLevel_;
requireProcessorPerformance_ = other.requireProcessorPerformance_;
threadNamePrefix_ = other.threadNamePrefix_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ThreadPoolExecutorOptions Clone() {
return new ThreadPoolExecutorOptions(this);
}
/// <summary>Field number for the "num_threads" field.</summary>
public const int NumThreadsFieldNumber = 1;
private readonly static int NumThreadsDefaultValue = 0;
private int numThreads_;
/// <summary>
/// Number of threads for running calculators in multithreaded mode.
///
/// When ThreadPoolExecutorOptions is used in the ExecutorOptions for the
/// default executor with the executor type unspecified, the num_threads
/// field is allowed to be -1 or 0. If not specified or -1, the scheduler
/// will pick an appropriate number of threads depending on the number of
/// available processors.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int NumThreads {
get { if ((_hasBits0 & 1) != 0) { return numThreads_; } else { return NumThreadsDefaultValue; } }
set {
_hasBits0 |= 1;
numThreads_ = value;
}
}
/// <summary>Gets whether the "num_threads" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasNumThreads {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "num_threads" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearNumThreads() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "stack_size" field.</summary>
public const int StackSizeFieldNumber = 2;
private readonly static int StackSizeDefaultValue = 0;
private int stackSize_;
/// <summary>
/// Make all worker threads have the specified stack size (in bytes).
/// NOTE: The stack_size option may not be implemented on some platforms.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int StackSize {
get { if ((_hasBits0 & 2) != 0) { return stackSize_; } else { return StackSizeDefaultValue; } }
set {
_hasBits0 |= 2;
stackSize_ = value;
}
}
/// <summary>Gets whether the "stack_size" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasStackSize {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "stack_size" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearStackSize() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "nice_priority_level" field.</summary>
public const int NicePriorityLevelFieldNumber = 3;
private readonly static int NicePriorityLevelDefaultValue = 0;
private int nicePriorityLevel_;
/// <summary>
/// The nice priority level of the worker threads.
/// The nice priority level is 0 by default, and lower value means higher
/// priority. The valid thread nice priority level value range varies by OS.
/// Refer to system documentation for more details.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int NicePriorityLevel {
get { if ((_hasBits0 & 4) != 0) { return nicePriorityLevel_; } else { return NicePriorityLevelDefaultValue; } }
set {
_hasBits0 |= 4;
nicePriorityLevel_ = value;
}
}
/// <summary>Gets whether the "nice_priority_level" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasNicePriorityLevel {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "nice_priority_level" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearNicePriorityLevel() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "require_processor_performance" field.</summary>
public const int RequireProcessorPerformanceFieldNumber = 4;
private readonly static global::Mediapipe.ThreadPoolExecutorOptions.Types.ProcessorPerformance RequireProcessorPerformanceDefaultValue = global::Mediapipe.ThreadPoolExecutorOptions.Types.ProcessorPerformance.Normal;
private global::Mediapipe.ThreadPoolExecutorOptions.Types.ProcessorPerformance requireProcessorPerformance_;
/// <summary>
/// The performance hint of the processor(s) that the threads will be bound to.
/// Framework will make the best effort to run the threads on the specific
/// processors based on the performance hint.
/// The attempt may fail for various reasons. Success isn't guaranteed.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.ThreadPoolExecutorOptions.Types.ProcessorPerformance RequireProcessorPerformance {
get { if ((_hasBits0 & 8) != 0) { return requireProcessorPerformance_; } else { return RequireProcessorPerformanceDefaultValue; } }
set {
_hasBits0 |= 8;
requireProcessorPerformance_ = value;
}
}
/// <summary>Gets whether the "require_processor_performance" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasRequireProcessorPerformance {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "require_processor_performance" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearRequireProcessorPerformance() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "thread_name_prefix" field.</summary>
public const int ThreadNamePrefixFieldNumber = 5;
private readonly static string ThreadNamePrefixDefaultValue = "";
private string threadNamePrefix_;
/// <summary>
/// Name prefix for worker threads, which can be useful for debugging
/// multithreaded applications.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ThreadNamePrefix {
get { return threadNamePrefix_ ?? ThreadNamePrefixDefaultValue; }
set {
threadNamePrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "thread_name_prefix" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasThreadNamePrefix {
get { return threadNamePrefix_ != null; }
}
/// <summary>Clears the value of the "thread_name_prefix" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearThreadNamePrefix() {
threadNamePrefix_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ThreadPoolExecutorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ThreadPoolExecutorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (NumThreads != other.NumThreads) return false;
if (StackSize != other.StackSize) return false;
if (NicePriorityLevel != other.NicePriorityLevel) return false;
if (RequireProcessorPerformance != other.RequireProcessorPerformance) return false;
if (ThreadNamePrefix != other.ThreadNamePrefix) 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 (HasNumThreads) hash ^= NumThreads.GetHashCode();
if (HasStackSize) hash ^= StackSize.GetHashCode();
if (HasNicePriorityLevel) hash ^= NicePriorityLevel.GetHashCode();
if (HasRequireProcessorPerformance) hash ^= RequireProcessorPerformance.GetHashCode();
if (HasThreadNamePrefix) hash ^= ThreadNamePrefix.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 (HasNumThreads) {
output.WriteRawTag(8);
output.WriteInt32(NumThreads);
}
if (HasStackSize) {
output.WriteRawTag(16);
output.WriteInt32(StackSize);
}
if (HasNicePriorityLevel) {
output.WriteRawTag(24);
output.WriteInt32(NicePriorityLevel);
}
if (HasRequireProcessorPerformance) {
output.WriteRawTag(32);
output.WriteEnum((int) RequireProcessorPerformance);
}
if (HasThreadNamePrefix) {
output.WriteRawTag(42);
output.WriteString(ThreadNamePrefix);
}
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 (HasNumThreads) {
output.WriteRawTag(8);
output.WriteInt32(NumThreads);
}
if (HasStackSize) {
output.WriteRawTag(16);
output.WriteInt32(StackSize);
}
if (HasNicePriorityLevel) {
output.WriteRawTag(24);
output.WriteInt32(NicePriorityLevel);
}
if (HasRequireProcessorPerformance) {
output.WriteRawTag(32);
output.WriteEnum((int) RequireProcessorPerformance);
}
if (HasThreadNamePrefix) {
output.WriteRawTag(42);
output.WriteString(ThreadNamePrefix);
}
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 (HasNumThreads) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumThreads);
}
if (HasStackSize) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(StackSize);
}
if (HasNicePriorityLevel) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NicePriorityLevel);
}
if (HasRequireProcessorPerformance) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RequireProcessorPerformance);
}
if (HasThreadNamePrefix) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ThreadNamePrefix);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ThreadPoolExecutorOptions other) {
if (other == null) {
return;
}
if (other.HasNumThreads) {
NumThreads = other.NumThreads;
}
if (other.HasStackSize) {
StackSize = other.StackSize;
}
if (other.HasNicePriorityLevel) {
NicePriorityLevel = other.NicePriorityLevel;
}
if (other.HasRequireProcessorPerformance) {
RequireProcessorPerformance = other.RequireProcessorPerformance;
}
if (other.HasThreadNamePrefix) {
ThreadNamePrefix = other.ThreadNamePrefix;
}
_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: {
NumThreads = input.ReadInt32();
break;
}
case 16: {
StackSize = input.ReadInt32();
break;
}
case 24: {
NicePriorityLevel = input.ReadInt32();
break;
}
case 32: {
RequireProcessorPerformance = (global::Mediapipe.ThreadPoolExecutorOptions.Types.ProcessorPerformance) input.ReadEnum();
break;
}
case 42: {
ThreadNamePrefix = 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 8: {
NumThreads = input.ReadInt32();
break;
}
case 16: {
StackSize = input.ReadInt32();
break;
}
case 24: {
NicePriorityLevel = input.ReadInt32();
break;
}
case 32: {
RequireProcessorPerformance = (global::Mediapipe.ThreadPoolExecutorOptions.Types.ProcessorPerformance) input.ReadEnum();
break;
}
case 42: {
ThreadNamePrefix = input.ReadString();
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the ThreadPoolExecutorOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
/// <summary>
/// Processor performance enum.
/// </summary>
public enum ProcessorPerformance {
[pbr::OriginalName("NORMAL")] Normal = 0,
[pbr::OriginalName("LOW")] Low = 1,
[pbr::OriginalName("HIGH")] High = 2,
}
}
#endregion
#region Extensions
/// <summary>Container for extensions for other messages declared in the ThreadPoolExecutorOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Extensions {
public static readonly pb::Extension<global::Mediapipe.MediaPipeOptions, global::Mediapipe.ThreadPoolExecutorOptions> Ext =
new pb::Extension<global::Mediapipe.MediaPipeOptions, global::Mediapipe.ThreadPoolExecutorOptions>(157116819, pb::FieldCodec.ForMessage(1256934554, global::Mediapipe.ThreadPoolExecutorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 15eb1ffc03c83d25592251d6e502968e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: