Files
blitzkit/src/BlitzKit.CLI/Protos/Tank.cs
T

447 lines
15 KiB
C#
Raw Normal View History

2025-02-25 18:09:22 -06:00
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: packages/core/src/protos/tank.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 Blitzkit {
/// <summary>Holder for reflection information generated from packages/core/src/protos/tank.proto</summary>
public static partial class TankReflection {
#region Descriptor
/// <summary>File descriptor for packages/core/src/protos/tank.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static TankReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiNwYWNrYWdlcy9jb3JlL3NyYy9wcm90b3MvdGFuay5wcm90bxIIYmxpdHpr",
2025-03-03 16:07:39 -06:00
"aXQaI3BhY2thZ2VzL2NvcmUvc3JjL3Byb3Rvcy9pMThuLnByb3RvInYKBFRh",
"bmsSCgoCaWQYASACKAkSHAoEbmFtZRgCIAIoCzIOLmJsaXR6a2l0LkkxOG4S",
"IgoFY2xhc3MYAyACKA4yEy5ibGl0emtpdC5UYW5rQ2xhc3MSIAoEdHlwZRgE",
"IAIoDjISLmJsaXR6a2l0LlRhbmtUeXBlKkEKCVRhbmtDbGFzcxIJCgVMSUdI",
"VBABEgoKBk1FRElVTRACEgkKBUhFQVZZEAMSEgoOVEFOS19ERVNUUk9ZRVIQ",
"BCo4CghUYW5rVHlwZRIQCgxSRVNFQVJDSEFCTEUQARILCgdQUkVNSVVNEAIS",
"DQoJQ09MTEVDVE9SEAMqLwoJU2hlbGxUeXBlEgYKAkFQEAESCAoEQVBDUhAC",
"EggKBEhFQVQQAxIGCgJIRRAEKksKCENyZXdUeXBlEg0KCUNPTU1BTkRFUhAB",
"EgoKBkRSSVZFUhACEgoKBkdVTk5FUhADEgoKBkxPQURFUhAEEgwKCFJBRElP",
"TUFOEAU="));
2025-02-25 18:09:22 -06:00
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Blitzkit.I18NReflection.Descriptor, },
2025-03-03 16:07:39 -06:00
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Blitzkit.TankClass), typeof(global::Blitzkit.TankType), typeof(global::Blitzkit.ShellType), typeof(global::Blitzkit.CrewType), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Blitzkit.Tank), global::Blitzkit.Tank.Parser, new[]{ "Id", "Name", "Class", "Type" }, null, null, null, null)
2025-02-25 18:09:22 -06:00
}));
}
#endregion
}
#region Enums
2025-03-03 16:07:39 -06:00
public enum TankClass {
[pbr::OriginalName("LIGHT")] Light = 1,
[pbr::OriginalName("MEDIUM")] Medium = 2,
[pbr::OriginalName("HEAVY")] Heavy = 3,
[pbr::OriginalName("TANK_DESTROYER")] TankDestroyer = 4,
}
public enum TankType {
[pbr::OriginalName("RESEARCHABLE")] Researchable = 1,
[pbr::OriginalName("PREMIUM")] Premium = 2,
[pbr::OriginalName("COLLECTOR")] Collector = 3,
}
public enum ShellType {
[pbr::OriginalName("AP")] Ap = 1,
[pbr::OriginalName("APCR")] Apcr = 2,
[pbr::OriginalName("HEAT")] Heat = 3,
[pbr::OriginalName("HE")] He = 4,
}
2025-02-25 18:09:22 -06:00
public enum CrewType {
2025-03-03 16:07:39 -06:00
[pbr::OriginalName("COMMANDER")] Commander = 1,
[pbr::OriginalName("DRIVER")] Driver = 2,
[pbr::OriginalName("GUNNER")] Gunner = 3,
[pbr::OriginalName("LOADER")] Loader = 4,
[pbr::OriginalName("RADIOMAN")] Radioman = 5,
2025-02-25 18:09:22 -06:00
}
#endregion
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class Tank : pb::IMessage<Tank>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Tank> _parser = new pb::MessageParser<Tank>(() => new Tank());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Tank> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Blitzkit.TankReflection.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 Tank() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Tank(Tank other) : this() {
_hasBits0 = other._hasBits0;
id_ = other.id_;
name_ = other.name_ != null ? other.name_.Clone() : null;
class_ = other.class_;
2025-03-03 16:07:39 -06:00
type_ = other.type_;
2025-02-25 18:09:22 -06:00
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Tank Clone() {
return new Tank(this);
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 1;
private readonly static string IdDefaultValue = "";
private string id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Id {
get { return id_ ?? IdDefaultValue; }
set {
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasId {
get { return id_ != null; }
}
/// <summary>Clears the value of the "id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearId() {
id_ = null;
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 2;
private global::Blitzkit.I18n name_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Blitzkit.I18n Name {
get { return name_; }
set {
name_ = value;
}
}
/// <summary>Field number for the "class" field.</summary>
2025-03-03 16:07:39 -06:00
public const int ClassFieldNumber = 3;
private readonly static global::Blitzkit.TankClass ClassDefaultValue = global::Blitzkit.TankClass.Light;
2025-02-25 18:09:22 -06:00
2025-03-03 16:07:39 -06:00
private global::Blitzkit.TankClass class_;
2025-02-25 18:09:22 -06:00
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2025-03-03 16:07:39 -06:00
public global::Blitzkit.TankClass Class {
get { if ((_hasBits0 & 1) != 0) { return class_; } else { return ClassDefaultValue; } }
2025-02-25 18:09:22 -06:00
set {
2025-03-03 16:07:39 -06:00
_hasBits0 |= 1;
class_ = value;
2025-02-25 18:09:22 -06:00
}
}
/// <summary>Gets whether the "class" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasClass {
2025-03-03 16:07:39 -06:00
get { return (_hasBits0 & 1) != 0; }
2025-02-25 18:09:22 -06:00
}
/// <summary>Clears the value of the "class" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearClass() {
_hasBits0 &= ~1;
}
2025-03-03 16:07:39 -06:00
/// <summary>Field number for the "type" field.</summary>
public const int TypeFieldNumber = 4;
private readonly static global::Blitzkit.TankType TypeDefaultValue = global::Blitzkit.TankType.Researchable;
2025-02-25 18:09:22 -06:00
2025-03-03 16:07:39 -06:00
private global::Blitzkit.TankType type_;
2025-02-25 18:09:22 -06:00
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2025-03-03 16:07:39 -06:00
public global::Blitzkit.TankType Type {
get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } }
2025-02-25 18:09:22 -06:00
set {
_hasBits0 |= 2;
2025-03-03 16:07:39 -06:00
type_ = value;
2025-02-25 18:09:22 -06:00
}
}
2025-03-03 16:07:39 -06:00
/// <summary>Gets whether the "type" field is set</summary>
2025-02-25 18:09:22 -06:00
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2025-03-03 16:07:39 -06:00
public bool HasType {
2025-02-25 18:09:22 -06:00
get { return (_hasBits0 & 2) != 0; }
}
2025-03-03 16:07:39 -06:00
/// <summary>Clears the value of the "type" field</summary>
2025-02-25 18:09:22 -06:00
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2025-03-03 16:07:39 -06:00
public void ClearType() {
2025-02-25 18:09:22 -06:00
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Tank);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Tank other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (!object.Equals(Name, other.Name)) return false;
if (Class != other.Class) return false;
2025-03-03 16:07:39 -06:00
if (Type != other.Type) return false;
2025-02-25 18:09:22 -06:00
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasId) hash ^= Id.GetHashCode();
if (name_ != null) hash ^= Name.GetHashCode();
if (HasClass) hash ^= Class.GetHashCode();
2025-03-03 16:07:39 -06:00
if (HasType) hash ^= Type.GetHashCode();
2025-02-25 18:09:22 -06:00
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 (HasId) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (name_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Name);
}
if (HasClass) {
2025-03-03 16:07:39 -06:00
output.WriteRawTag(24);
output.WriteEnum((int) Class);
2025-02-25 18:09:22 -06:00
}
2025-03-03 16:07:39 -06:00
if (HasType) {
output.WriteRawTag(32);
output.WriteEnum((int) Type);
2025-02-25 18:09:22 -06:00
}
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 (HasId) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (name_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Name);
}
if (HasClass) {
2025-03-03 16:07:39 -06:00
output.WriteRawTag(24);
output.WriteEnum((int) Class);
2025-02-25 18:09:22 -06:00
}
2025-03-03 16:07:39 -06:00
if (HasType) {
output.WriteRawTag(32);
output.WriteEnum((int) Type);
2025-02-25 18:09:22 -06:00
}
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 (HasId) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
}
if (name_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Name);
}
if (HasClass) {
2025-03-03 16:07:39 -06:00
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Class);
2025-02-25 18:09:22 -06:00
}
2025-03-03 16:07:39 -06:00
if (HasType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
2025-02-25 18:09:22 -06:00
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Tank other) {
if (other == null) {
return;
}
if (other.HasId) {
Id = other.Id;
}
if (other.name_ != null) {
if (name_ == null) {
Name = new global::Blitzkit.I18n();
}
Name.MergeFrom(other.Name);
}
if (other.HasClass) {
Class = other.Class;
}
if (other.HasType) {
Type = other.Type;
}
_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;
2025-03-03 16:07:39 -06:00
case 10: {
Id = input.ReadString();
2025-02-25 18:09:22 -06:00
break;
}
2025-03-03 16:07:39 -06:00
case 18: {
if (name_ == null) {
Name = new global::Blitzkit.I18n();
}
input.ReadMessage(Name);
break;
}
case 24: {
Class = (global::Blitzkit.TankClass) input.ReadEnum();
break;
}
case 32: {
Type = (global::Blitzkit.TankType) input.ReadEnum();
2025-02-25 18:09:22 -06:00
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;
2025-03-03 16:07:39 -06:00
case 10: {
Id = input.ReadString();
2025-02-25 18:09:22 -06:00
break;
}
2025-03-03 16:07:39 -06:00
case 18: {
if (name_ == null) {
Name = new global::Blitzkit.I18n();
}
input.ReadMessage(Name);
2025-02-25 18:09:22 -06:00
break;
}
2025-03-03 16:07:39 -06:00
case 24: {
Class = (global::Blitzkit.TankClass) input.ReadEnum();
2025-02-25 18:09:22 -06:00
break;
}
2025-03-03 16:07:39 -06:00
case 32: {
Type = (global::Blitzkit.TankType) input.ReadEnum();
2025-02-25 18:09:22 -06:00
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code