Protobuf...
This commit is contained in:
469
ConstantObjectiveMarkerNodeData.cs
Normal file
469
ConstantObjectiveMarkerNodeData.cs
Normal file
@@ -0,0 +1,469 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: circuits_v2/constant_objective_marker_node_data.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021, 8981
|
||||
#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 CircuitsV2.Protobuf {
|
||||
|
||||
/// <summary>Holder for reflection information generated from circuits_v2/constant_objective_marker_node_data.proto</summary>
|
||||
public static partial class ConstantObjectiveMarkerNodeDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for circuits_v2/constant_objective_marker_node_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ConstantObjectiveMarkerNodeDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjVjaXJjdWl0c192Mi9jb25zdGFudF9vYmplY3RpdmVfbWFya2VyX25vZGVf",
|
||||
"ZGF0YS5wcm90bxILY2lyY3VpdHNfdjIi2AEKG0NvbnN0YW50T2JqZWN0aXZl",
|
||||
"TWFya2VyRGF0YRIVCg1mcmllbmRseV9uYW1lGAEgASgJEg8KB2NvbG9ySWQY",
|
||||
"AiABKAUSDQoFbGFiZWwYAyABKAkSFQoNbGFiZWxfZW5hYmxlZBgEIAEoCBIi",
|
||||
"ChpkaXN0YW5jZV9pbmRpY2F0b3JfZW5hYmxlZBgFIAEoCBIlCh1wcmlvcml0",
|
||||
"aXplX2Rpc3RhbmNlX2luZGljYXRvchgGIAEoCBIgChhwcm94aW1pdHlfZmFk",
|
||||
"ZV90aHJlc2hvbGQYByABKAJCFqoCE0NpcmN1aXRzVjIuUHJvdG9idWZiBnBy",
|
||||
"b3RvMw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::CircuitsV2.Protobuf.ConstantObjectiveMarkerData), global::CircuitsV2.Protobuf.ConstantObjectiveMarkerData.Parser, new[]{ "FriendlyName", "ColorId", "Label", "LabelEnabled", "DistanceIndicatorEnabled", "PrioritizeDistanceIndicator", "ProximityFadeThreshold" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class ConstantObjectiveMarkerData : pb::IMessage<ConstantObjectiveMarkerData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<ConstantObjectiveMarkerData> _parser = new pb::MessageParser<ConstantObjectiveMarkerData>(() => new ConstantObjectiveMarkerData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<ConstantObjectiveMarkerData> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::CircuitsV2.Protobuf.ConstantObjectiveMarkerNodeDataReflection.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 ConstantObjectiveMarkerData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ConstantObjectiveMarkerData(ConstantObjectiveMarkerData other) : this() {
|
||||
friendlyName_ = other.friendlyName_;
|
||||
colorId_ = other.colorId_;
|
||||
label_ = other.label_;
|
||||
labelEnabled_ = other.labelEnabled_;
|
||||
distanceIndicatorEnabled_ = other.distanceIndicatorEnabled_;
|
||||
prioritizeDistanceIndicator_ = other.prioritizeDistanceIndicator_;
|
||||
proximityFadeThreshold_ = other.proximityFadeThreshold_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ConstantObjectiveMarkerData Clone() {
|
||||
return new ConstantObjectiveMarkerData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "friendly_name" field.</summary>
|
||||
public const int FriendlyNameFieldNumber = 1;
|
||||
private string friendlyName_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string FriendlyName {
|
||||
get { return friendlyName_; }
|
||||
set {
|
||||
friendlyName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "colorId" field.</summary>
|
||||
public const int ColorIdFieldNumber = 2;
|
||||
private int colorId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int ColorId {
|
||||
get { return colorId_; }
|
||||
set {
|
||||
colorId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label" field.</summary>
|
||||
public const int LabelFieldNumber = 3;
|
||||
private string label_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string Label {
|
||||
get { return label_; }
|
||||
set {
|
||||
label_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label_enabled" field.</summary>
|
||||
public const int LabelEnabledFieldNumber = 4;
|
||||
private bool labelEnabled_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool LabelEnabled {
|
||||
get { return labelEnabled_; }
|
||||
set {
|
||||
labelEnabled_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "distance_indicator_enabled" field.</summary>
|
||||
public const int DistanceIndicatorEnabledFieldNumber = 5;
|
||||
private bool distanceIndicatorEnabled_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool DistanceIndicatorEnabled {
|
||||
get { return distanceIndicatorEnabled_; }
|
||||
set {
|
||||
distanceIndicatorEnabled_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "prioritize_distance_indicator" field.</summary>
|
||||
public const int PrioritizeDistanceIndicatorFieldNumber = 6;
|
||||
private bool prioritizeDistanceIndicator_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool PrioritizeDistanceIndicator {
|
||||
get { return prioritizeDistanceIndicator_; }
|
||||
set {
|
||||
prioritizeDistanceIndicator_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "proximity_fade_threshold" field.</summary>
|
||||
public const int ProximityFadeThresholdFieldNumber = 7;
|
||||
private float proximityFadeThreshold_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float ProximityFadeThreshold {
|
||||
get { return proximityFadeThreshold_; }
|
||||
set {
|
||||
proximityFadeThreshold_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ConstantObjectiveMarkerData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(ConstantObjectiveMarkerData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (FriendlyName != other.FriendlyName) return false;
|
||||
if (ColorId != other.ColorId) return false;
|
||||
if (Label != other.Label) return false;
|
||||
if (LabelEnabled != other.LabelEnabled) return false;
|
||||
if (DistanceIndicatorEnabled != other.DistanceIndicatorEnabled) return false;
|
||||
if (PrioritizeDistanceIndicator != other.PrioritizeDistanceIndicator) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(ProximityFadeThreshold, other.ProximityFadeThreshold)) 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 (FriendlyName.Length != 0) hash ^= FriendlyName.GetHashCode();
|
||||
if (ColorId != 0) hash ^= ColorId.GetHashCode();
|
||||
if (Label.Length != 0) hash ^= Label.GetHashCode();
|
||||
if (LabelEnabled != false) hash ^= LabelEnabled.GetHashCode();
|
||||
if (DistanceIndicatorEnabled != false) hash ^= DistanceIndicatorEnabled.GetHashCode();
|
||||
if (PrioritizeDistanceIndicator != false) hash ^= PrioritizeDistanceIndicator.GetHashCode();
|
||||
if (ProximityFadeThreshold != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ProximityFadeThreshold);
|
||||
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 (FriendlyName.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(FriendlyName);
|
||||
}
|
||||
if (ColorId != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(ColorId);
|
||||
}
|
||||
if (Label.Length != 0) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(Label);
|
||||
}
|
||||
if (LabelEnabled != false) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(LabelEnabled);
|
||||
}
|
||||
if (DistanceIndicatorEnabled != false) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(DistanceIndicatorEnabled);
|
||||
}
|
||||
if (PrioritizeDistanceIndicator != false) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(PrioritizeDistanceIndicator);
|
||||
}
|
||||
if (ProximityFadeThreshold != 0F) {
|
||||
output.WriteRawTag(61);
|
||||
output.WriteFloat(ProximityFadeThreshold);
|
||||
}
|
||||
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 (FriendlyName.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(FriendlyName);
|
||||
}
|
||||
if (ColorId != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(ColorId);
|
||||
}
|
||||
if (Label.Length != 0) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(Label);
|
||||
}
|
||||
if (LabelEnabled != false) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(LabelEnabled);
|
||||
}
|
||||
if (DistanceIndicatorEnabled != false) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(DistanceIndicatorEnabled);
|
||||
}
|
||||
if (PrioritizeDistanceIndicator != false) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(PrioritizeDistanceIndicator);
|
||||
}
|
||||
if (ProximityFadeThreshold != 0F) {
|
||||
output.WriteRawTag(61);
|
||||
output.WriteFloat(ProximityFadeThreshold);
|
||||
}
|
||||
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 (FriendlyName.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(FriendlyName);
|
||||
}
|
||||
if (ColorId != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ColorId);
|
||||
}
|
||||
if (Label.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
|
||||
}
|
||||
if (LabelEnabled != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (DistanceIndicatorEnabled != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (PrioritizeDistanceIndicator != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (ProximityFadeThreshold != 0F) {
|
||||
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(ConstantObjectiveMarkerData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.FriendlyName.Length != 0) {
|
||||
FriendlyName = other.FriendlyName;
|
||||
}
|
||||
if (other.ColorId != 0) {
|
||||
ColorId = other.ColorId;
|
||||
}
|
||||
if (other.Label.Length != 0) {
|
||||
Label = other.Label;
|
||||
}
|
||||
if (other.LabelEnabled != false) {
|
||||
LabelEnabled = other.LabelEnabled;
|
||||
}
|
||||
if (other.DistanceIndicatorEnabled != false) {
|
||||
DistanceIndicatorEnabled = other.DistanceIndicatorEnabled;
|
||||
}
|
||||
if (other.PrioritizeDistanceIndicator != false) {
|
||||
PrioritizeDistanceIndicator = other.PrioritizeDistanceIndicator;
|
||||
}
|
||||
if (other.ProximityFadeThreshold != 0F) {
|
||||
ProximityFadeThreshold = other.ProximityFadeThreshold;
|
||||
}
|
||||
_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) {
|
||||
if ((tag & 7) == 4) {
|
||||
// Abort on any end group tag.
|
||||
return;
|
||||
}
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
FriendlyName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
ColorId = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
Label = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
LabelEnabled = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
DistanceIndicatorEnabled = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
PrioritizeDistanceIndicator = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 61: {
|
||||
ProximityFadeThreshold = 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) {
|
||||
if ((tag & 7) == 4) {
|
||||
// Abort on any end group tag.
|
||||
return;
|
||||
}
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 10: {
|
||||
FriendlyName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
ColorId = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
Label = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
LabelEnabled = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
DistanceIndicatorEnabled = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
PrioritizeDistanceIndicator = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 61: {
|
||||
ProximityFadeThreshold = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user