// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: DetectionInput.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Tango.PMR.TCC {
/// Holder for reflection information generated from DetectionInput.proto
public static partial class DetectionInputReflection {
#region Descriptor
/// File descriptor for DetectionInput.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static DetectionInputReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChREZXRlY3Rpb25JbnB1dC5wcm90bxINVGFuZ28uUE1SLlRDQxoYRGV0ZWN0",
"aW9uQmVuY2htYXJrLnByb3RvItgBCg5EZXRlY3Rpb25JbnB1dBIOCgZCaXRt",
"YXAYASABKAwSDwoHQ29sdW1ucxgCIAEoBRIMCgRSb3dzGAMgASgFEhMKC1Rh",
"cmdldEluZGV4GAQgASgFEhkKEVJlcXVlc3REZWJ1Z0ltYWdlGAUgASgIEhoK",
"ElJlcXVlc3RDb2xvck1hdHJpeBgGIAEoCBI1CgpCZW5jaG1hcmtzGAcgAygL",
"MiEuVGFuZ28uUE1SLlRDQy5EZXRlY3Rpb25CZW5jaG1hcmsSFAoMUGVyZm9y",
"bUNMQUhFGAggASgIQhkKF2NvbS50d2luZS50YW5nby5wbXIudGNjYgZwcm90",
"bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.TCC.DetectionBenchmarkReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.TCC.DetectionInput), global::Tango.PMR.TCC.DetectionInput.Parser, new[]{ "Bitmap", "Columns", "Rows", "TargetIndex", "RequestDebugImage", "RequestColorMatrix", "Benchmarks", "PerformCLAHE" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class DetectionInput : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DetectionInput());
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tango.PMR.TCC.DetectionInputReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DetectionInput() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DetectionInput(DetectionInput other) : this() {
bitmap_ = other.bitmap_;
columns_ = other.columns_;
rows_ = other.rows_;
targetIndex_ = other.targetIndex_;
requestDebugImage_ = other.requestDebugImage_;
requestColorMatrix_ = other.requestColorMatrix_;
benchmarks_ = other.benchmarks_.Clone();
performCLAHE_ = other.performCLAHE_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DetectionInput Clone() {
return new DetectionInput(this);
}
/// Field number for the "Bitmap" field.
public const int BitmapFieldNumber = 1;
private pb::ByteString bitmap_ = pb::ByteString.Empty;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pb::ByteString Bitmap {
get { return bitmap_; }
set {
bitmap_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "Columns" field.
public const int ColumnsFieldNumber = 2;
private int columns_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Columns {
get { return columns_; }
set {
columns_ = value;
}
}
/// Field number for the "Rows" field.
public const int RowsFieldNumber = 3;
private int rows_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Rows {
get { return rows_; }
set {
rows_ = value;
}
}
/// Field number for the "TargetIndex" field.
public const int TargetIndexFieldNumber = 4;
private int targetIndex_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int TargetIndex {
get { return targetIndex_; }
set {
targetIndex_ = value;
}
}
/// Field number for the "RequestDebugImage" field.
public const int RequestDebugImageFieldNumber = 5;
private bool requestDebugImage_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool RequestDebugImage {
get { return requestDebugImage_; }
set {
requestDebugImage_ = value;
}
}
/// Field number for the "RequestColorMatrix" field.
public const int RequestColorMatrixFieldNumber = 6;
private bool requestColorMatrix_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool RequestColorMatrix {
get { return requestColorMatrix_; }
set {
requestColorMatrix_ = value;
}
}
/// Field number for the "Benchmarks" field.
public const int BenchmarksFieldNumber = 7;
private static readonly pb::FieldCodec _repeated_benchmarks_codec
= pb::FieldCodec.ForMessage(58, global::Tango.PMR.TCC.DetectionBenchmark.Parser);
private readonly pbc::RepeatedField benchmarks_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Benchmarks {
get { return benchmarks_; }
}
/// Field number for the "PerformCLAHE" field.
public const int PerformCLAHEFieldNumber = 8;
private bool performCLAHE_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool PerformCLAHE {
get { return performCLAHE_; }
set {
performCLAHE_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as DetectionInput);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(DetectionInput other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Bitmap != other.Bitmap) return false;
if (Columns != other.Columns) return false;
if (Rows != other.Rows) return false;
if (TargetIndex != other.TargetIndex) return false;
if (RequestDebugImage != other.RequestDebugImage) return false;
if (RequestColorMatrix != other.RequestColorMatrix) return false;
if(!benchmarks_.Equals(other.benchmarks_)) return false;
if (PerformCLAHE != other.PerformCLAHE) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Bitmap.Length != 0) hash ^= Bitmap.GetHashCode();
if (Columns != 0) hash ^= Columns.GetHashCode();
if (Rows != 0) hash ^= Rows.GetHashCode();
if (TargetIndex != 0) hash ^= TargetIndex.GetHashCode();
if (RequestDebugImage != false) hash ^= RequestDebugImage.GetHashCode();
if (RequestColorMatrix != false) hash ^= RequestColorMatrix.GetHashCode();
hash ^= benchmarks_.GetHashCode();
if (PerformCLAHE != false) hash ^= PerformCLAHE.GetHashCode();
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Bitmap.Length != 0) {
output.WriteRawTag(10);
output.WriteBytes(Bitmap);
}
if (Columns != 0) {
output.WriteRawTag(16);
output.WriteInt32(Columns);
}
if (Rows != 0) {
output.WriteRawTag(24);
output.WriteInt32(Rows);
}
if (TargetIndex != 0) {
output.WriteRawTag(32);
output.WriteInt32(TargetIndex);
}
if (RequestDebugImage != false) {
output.WriteRawTag(40);
output.WriteBool(RequestDebugImage);
}
if (RequestColorMatrix != false) {
output.WriteRawTag(48);
output.WriteBool(RequestColorMatrix);
}
benchmarks_.WriteTo(output, _repeated_benchmarks_codec);
if (PerformCLAHE != false) {
output.WriteRawTag(64);
output.WriteBool(PerformCLAHE);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Bitmap.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Bitmap);
}
if (Columns != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Columns);
}
if (Rows != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rows);
}
if (TargetIndex != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TargetIndex);
}
if (RequestDebugImage != false) {
size += 1 + 1;
}
if (RequestColorMatrix != false) {
size += 1 + 1;
}
size += benchmarks_.CalculateSize(_repeated_benchmarks_codec);
if (PerformCLAHE != false) {
size += 1 + 1;
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(DetectionInput other) {
if (other == null) {
return;
}
if (other.Bitmap.Length != 0) {
Bitmap = other.Bitmap;
}
if (other.Columns != 0) {
Columns = other.Columns;
}
if (other.Rows != 0) {
Rows = other.Rows;
}
if (other.TargetIndex != 0) {
TargetIndex = other.TargetIndex;
}
if (other.RequestDebugImage != false) {
RequestDebugImage = other.RequestDebugImage;
}
if (other.RequestColorMatrix != false) {
RequestColorMatrix = other.RequestColorMatrix;
}
benchmarks_.Add(other.benchmarks_);
if (other.PerformCLAHE != false) {
PerformCLAHE = other.PerformCLAHE;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 10: {
Bitmap = input.ReadBytes();
break;
}
case 16: {
Columns = input.ReadInt32();
break;
}
case 24: {
Rows = input.ReadInt32();
break;
}
case 32: {
TargetIndex = input.ReadInt32();
break;
}
case 40: {
RequestDebugImage = input.ReadBool();
break;
}
case 48: {
RequestColorMatrix = input.ReadBool();
break;
}
case 58: {
benchmarks_.AddEntriesFrom(input, _repeated_benchmarks_codec);
break;
}
case 64: {
PerformCLAHE = input.ReadBool();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code