Bnet/Services: Updated bnet proto files

This commit is contained in:
hondacrx
2020-04-25 00:12:46 -04:00
parent 8a9bd6504c
commit fbd2922b3d
68 changed files with 104838 additions and 37901 deletions
+362 -285
View File
@@ -1,16 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/report_service.proto
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/report_service.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = Google.Protobuf;
using pbc = Google.Protobuf.Collections;
using pbr = Google.Protobuf.Reflection;
namespace Bgs.Protocol.Report.V1
{
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Bgs.Protocol.Report.V1 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/report_service.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
/// <summary>Holder for reflection information generated from bgs/low/pb/client/report_service.proto</summary>
public static partial class ReportServiceReflection {
#region Descriptor
@@ -21,316 +22,128 @@ namespace Bgs.Protocol.Report.V1
private static pbr::FileDescriptor descriptor;
static ReportServiceReflection() {
byte[] descriptorData = System.Convert.FromBase64String(
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiZiZ3MvbG93L3BiL2NsaWVudC9yZXBvcnRfc2VydmljZS5wcm90bxIWYmdz",
"LnByb3RvY29sLnJlcG9ydC52MRonYmdzL2xvdy9wYi9jbGllbnQvYXR0cmli",
"dXRlX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlw",
"ZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90byLi",
"AQoGUmVwb3J0EhMKC3JlcG9ydF90eXBlGAEgASgJEioKCWF0dHJpYnV0ZRgC",
"IAMoCzIXLmJncy5wcm90b2NvbC5BdHRyaWJ1dGUSEgoKcmVwb3J0X3FvcxgD",
"IAEoBRIxChFyZXBvcnRpbmdfYWNjb3VudBgEIAEoCzIWLmJncy5wcm90b2Nv",
"bC5FbnRpdHlJZBI2ChZyZXBvcnRpbmdfZ2FtZV9hY2NvdW50GAUgASgLMhYu",
"YmdzLnByb3RvY29sLkVudGl0eUlkEhgKEHJlcG9ydF90aW1lc3RhbXAYBiAB",
"KAYiQwoRU2VuZFJlcG9ydFJlcXVlc3QSLgoGcmVwb3J0GAEgASgLMh4uYmdz",
"LnByb3RvY29sLnJlcG9ydC52MS5SZXBvcnQyXgoNUmVwb3J0U2VydmljZRJN",
"CgpTZW5kUmVwb3J0EikuYmdzLnByb3RvY29sLnJlcG9ydC52MS5TZW5kUmVw",
"b3J0UmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGFCBUgCgAEAYgZwcm90",
"bzM="));
"LnByb3RvY29sLnJlcG9ydC52MRolYmdzL2xvdy9wYi9jbGllbnQvYWNjb3Vu",
"dF90eXBlcy5wcm90bxokYmdzL2xvdy9wYi9jbGllbnQvcmVwb3J0X3R5cGVz",
"LnByb3RvGiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJvdG8aOWJn",
"cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21lc3NhZ2Vfb3B0",
"aW9ucy5wcm90bxo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lv",
"bnMvZmllbGRfb3B0aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGllbnQvZ2xv",
"YmFsX2V4dGVuc2lvbnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJncy9sb3cv",
"cGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL3NlcnZpY2Vfb3B0aW9ucy5w",
"cm90byJcChFTZW5kUmVwb3J0UmVxdWVzdBIuCgZyZXBvcnQYASACKAsyHi5i",
"Z3MucHJvdG9jb2wucmVwb3J0LnYxLlJlcG9ydBIPCgdwcm9ncmFtGAIgASgN",
"OgaC+SsCEAEipQEKE1N1Ym1pdFJlcG9ydFJlcXVlc3QSPAoIYWdlbnRfaWQY",
"ASABKAsyKi5iZ3MucHJvdG9jb2wuYWNjb3VudC52MS5HYW1lQWNjb3VudEhh",
"bmRsZRI3CgtyZXBvcnRfdHlwZRgCIAEoCzIiLmJncy5wcm90b2NvbC5yZXBv",
"cnQudjEuUmVwb3J0VHlwZRIPCgdwcm9ncmFtGAMgASgNOgaC+SsCEAEy/QEK",
"DVJlcG9ydFNlcnZpY2USVQoKU2VuZFJlcG9ydBIpLmJncy5wcm90b2NvbC5y",
"ZXBvcnQudjEuU2VuZFJlcG9ydFJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9E",
"YXRhIgaC+SsCCAESWQoMU3VibWl0UmVwb3J0EisuYmdzLnByb3RvY29sLnJl",
"cG9ydC52MS5TdWJtaXRSZXBvcnRSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5v",
"RGF0YSIGgvkrAggCGjqC+SskCiJibmV0LnByb3RvY29sLnJlcG9ydC5SZXBv",
"cnRTZXJ2aWNlgvkrCCoGcmVwb3J0ivkrAhABQgOAAQA="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Report.V1.Report), Bgs.Protocol.Report.V1.Report.Parser, new[]{ "ReportType", "Attribute", "ReportQos", "ReportingAccount", "ReportingGameAccount", "ReportTimestamp" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Report.V1.SendReportRequest), Bgs.Protocol.Report.V1.SendReportRequest.Parser, new[]{ "Report" }, null, null, null)
new pbr::FileDescriptor[] { global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.Report.V1.ReportTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.SendReportRequest), global::Bgs.Protocol.Report.V1.SendReportRequest.Parser, new[]{ "Report", "Program" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V1.SubmitReportRequest), global::Bgs.Protocol.Report.V1.SubmitReportRequest.Parser, new[]{ "AgentId", "ReportType", "Program" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class Report : pb::IMessage<Report> {
private static readonly pb::MessageParser<Report> _parser = new pb::MessageParser<Report>(() => new Report());
public static pb::MessageParser<Report> Parser { get { return _parser; } }
public static pbr::MessageDescriptor Descriptor {
get { return Bgs.Protocol.Report.V1.ReportServiceReflection.Descriptor.MessageTypes[0]; }
}
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
public Report() {
OnConstruction();
}
partial void OnConstruction();
public Report(Report other) : this() {
reportType_ = other.reportType_;
attribute_ = other.attribute_.Clone();
reportQos_ = other.reportQos_;
ReportingAccount = other.reportingAccount_ != null ? other.ReportingAccount.Clone() : null;
ReportingGameAccount = other.reportingGameAccount_ != null ? other.ReportingGameAccount.Clone() : null;
reportTimestamp_ = other.reportTimestamp_;
}
public Report Clone() {
return new Report(this);
}
/// <summary>Field number for the "report_type" field.</summary>
public const int ReportTypeFieldNumber = 1;
private string reportType_ = "";
public string ReportType {
get { return reportType_; }
set {
reportType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 2;
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(18, Bgs.Protocol.Attribute.Parser);
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>();
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attribute {
get { return attribute_; }
}
/// <summary>Field number for the "report_qos" field.</summary>
public const int ReportQosFieldNumber = 3;
private int reportQos_;
public int ReportQos {
get { return reportQos_; }
set {
reportQos_ = value;
}
}
/// <summary>Field number for the "reporting_account" field.</summary>
public const int ReportingAccountFieldNumber = 4;
private Bgs.Protocol.EntityId reportingAccount_;
public Bgs.Protocol.EntityId ReportingAccount {
get { return reportingAccount_; }
set {
reportingAccount_ = value;
}
}
/// <summary>Field number for the "reporting_game_account" field.</summary>
public const int ReportingGameAccountFieldNumber = 5;
private Bgs.Protocol.EntityId reportingGameAccount_;
public Bgs.Protocol.EntityId ReportingGameAccount {
get { return reportingGameAccount_; }
set {
reportingGameAccount_ = value;
}
}
/// <summary>Field number for the "report_timestamp" field.</summary>
public const int ReportTimestampFieldNumber = 6;
private ulong reportTimestamp_;
public ulong ReportTimestamp {
get { return reportTimestamp_; }
set {
reportTimestamp_ = value;
}
}
public override bool Equals(object other) {
return Equals(other as Report);
}
public bool Equals(Report other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ReportType != other.ReportType) return false;
if(!attribute_.Equals(other.attribute_)) return false;
if (ReportQos != other.ReportQos) return false;
if (!object.Equals(ReportingAccount, other.ReportingAccount)) return false;
if (!object.Equals(ReportingGameAccount, other.ReportingGameAccount)) return false;
if (ReportTimestamp != other.ReportTimestamp) return false;
return true;
}
public override int GetHashCode() {
int hash = 1;
if (ReportType.Length != 0) hash ^= ReportType.GetHashCode();
hash ^= attribute_.GetHashCode();
if (ReportQos != 0) hash ^= ReportQos.GetHashCode();
if (reportingAccount_ != null) hash ^= ReportingAccount.GetHashCode();
if (reportingGameAccount_ != null) hash ^= ReportingGameAccount.GetHashCode();
if (ReportTimestamp != 0UL) hash ^= ReportTimestamp.GetHashCode();
return hash;
}
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
public void WriteTo(pb::CodedOutputStream output) {
if (ReportType.Length != 0) {
output.WriteRawTag(10);
output.WriteString(ReportType);
}
attribute_.WriteTo(output, _repeated_attribute_codec);
if (ReportQos != 0) {
output.WriteRawTag(24);
output.WriteInt32(ReportQos);
}
if (reportingAccount_ != null) {
output.WriteRawTag(34);
output.WriteMessage(ReportingAccount);
}
if (reportingGameAccount_ != null) {
output.WriteRawTag(42);
output.WriteMessage(ReportingGameAccount);
}
if (ReportTimestamp != 0UL) {
output.WriteRawTag(49);
output.WriteFixed64(ReportTimestamp);
}
}
public int CalculateSize() {
int size = 0;
if (ReportType.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ReportType);
}
size += attribute_.CalculateSize(_repeated_attribute_codec);
if (ReportQos != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReportQos);
}
if (reportingAccount_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportingAccount);
}
if (reportingGameAccount_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportingGameAccount);
}
if (ReportTimestamp != 0UL) {
size += 1 + 8;
}
return size;
}
public void MergeFrom(Report other) {
if (other == null) {
return;
}
if (other.ReportType.Length != 0) {
ReportType = other.ReportType;
}
attribute_.Add(other.attribute_);
if (other.ReportQos != 0) {
ReportQos = other.ReportQos;
}
if (other.reportingAccount_ != null) {
if (reportingAccount_ == null) {
reportingAccount_ = new Bgs.Protocol.EntityId();
}
ReportingAccount.MergeFrom(other.ReportingAccount);
}
if (other.reportingGameAccount_ != null) {
if (reportingGameAccount_ == null) {
reportingGameAccount_ = new Bgs.Protocol.EntityId();
}
ReportingGameAccount.MergeFrom(other.ReportingGameAccount);
}
if (other.ReportTimestamp != 0UL) {
ReportTimestamp = other.ReportTimestamp;
}
}
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
break;
case 10: {
ReportType = input.ReadString();
break;
}
case 18: {
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
break;
}
case 24: {
ReportQos = input.ReadInt32();
break;
}
case 34: {
if (reportingAccount_ == null) {
reportingAccount_ = new Bgs.Protocol.EntityId();
}
input.ReadMessage(reportingAccount_);
break;
}
case 42: {
if (reportingGameAccount_ == null) {
reportingGameAccount_ = new Bgs.Protocol.EntityId();
}
input.ReadMessage(reportingGameAccount_);
break;
}
case 49: {
ReportTimestamp = input.ReadFixed64();
break;
}
}
}
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class SendReportRequest : pb::IMessage<SendReportRequest> {
private static readonly pb::MessageParser<SendReportRequest> _parser = new pb::MessageParser<SendReportRequest>(() => new SendReportRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SendReportRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return Bgs.Protocol.Report.V1.ReportServiceReflection.Descriptor.MessageTypes[1]; }
get { return global::Bgs.Protocol.Report.V1.ReportServiceReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SendReportRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SendReportRequest(SendReportRequest other) : this() {
Report = other.report_ != null ? other.Report.Clone() : null;
_hasBits0 = other._hasBits0;
report_ = other.HasReport ? other.report_.Clone() : null;
program_ = other.program_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SendReportRequest Clone() {
return new SendReportRequest(this);
}
/// <summary>Field number for the "report" field.</summary>
public const int ReportFieldNumber = 1;
private Bgs.Protocol.Report.V1.Report report_;
public Bgs.Protocol.Report.V1.Report Report {
private global::Bgs.Protocol.Report.V1.Report report_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V1.Report Report {
get { return report_; }
set {
report_ = value;
}
}
/// <summary>Gets whether the report field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReport {
get { return report_ != null; }
}
/// <summary>Clears the value of the report field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReport() {
report_ = null;
}
/// <summary>Field number for the "program" field.</summary>
public const int ProgramFieldNumber = 2;
private readonly static uint ProgramDefaultValue = 0;
private uint program_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Program {
get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } }
set {
_hasBits0 |= 1;
program_ = value;
}
}
/// <summary>Gets whether the "program" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasProgram {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "program" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearProgram() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SendReportRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SendReportRequest other) {
if (ReferenceEquals(other, null)) {
return false;
@@ -339,58 +152,322 @@ namespace Bgs.Protocol.Report.V1
return true;
}
if (!object.Equals(Report, other.Report)) return false;
return true;
if (Program != other.Program) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (report_ != null) hash ^= Report.GetHashCode();
if (HasReport) hash ^= Report.GetHashCode();
if (HasProgram) hash ^= Program.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.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 (report_ != null) {
if (HasReport) {
output.WriteRawTag(10);
output.WriteMessage(Report);
}
if (HasProgram) {
output.WriteRawTag(16);
output.WriteUInt32(Program);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (report_ != null) {
if (HasReport) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Report);
}
if (HasProgram) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SendReportRequest other) {
if (other == null) {
return;
}
if (other.report_ != null) {
if (report_ == null) {
report_ = new Bgs.Protocol.Report.V1.Report();
if (other.HasReport) {
if (!HasReport) {
Report = new global::Bgs.Protocol.Report.V1.Report();
}
Report.MergeFrom(other.Report);
}
if (other.HasProgram) {
Program = other.Program;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
input.SkipLastField();
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (report_ == null) {
report_ = new Bgs.Protocol.Report.V1.Report();
if (!HasReport) {
Report = new global::Bgs.Protocol.Report.V1.Report();
}
input.ReadMessage(report_);
input.ReadMessage(Report);
break;
}
case 16: {
Program = input.ReadUInt32();
break;
}
}
}
}
}
public sealed partial class SubmitReportRequest : pb::IMessage<SubmitReportRequest> {
private static readonly pb::MessageParser<SubmitReportRequest> _parser = new pb::MessageParser<SubmitReportRequest>(() => new SubmitReportRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubmitReportRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Report.V1.ReportServiceReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubmitReportRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubmitReportRequest(SubmitReportRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
reportType_ = other.HasReportType ? other.reportType_.Clone() : null;
program_ = other.program_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubmitReportRequest Clone() {
return new SubmitReportRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Account.V1.GameAccountHandle agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Account.V1.GameAccountHandle AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "report_type" field.</summary>
public const int ReportTypeFieldNumber = 2;
private global::Bgs.Protocol.Report.V1.ReportType reportType_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V1.ReportType ReportType {
get { return reportType_; }
set {
reportType_ = value;
}
}
/// <summary>Gets whether the report_type field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReportType {
get { return reportType_ != null; }
}
/// <summary>Clears the value of the report_type field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReportType() {
reportType_ = null;
}
/// <summary>Field number for the "program" field.</summary>
public const int ProgramFieldNumber = 3;
private readonly static uint ProgramDefaultValue = 0;
private uint program_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Program {
get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } }
set {
_hasBits0 |= 1;
program_ = value;
}
}
/// <summary>Gets whether the "program" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasProgram {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "program" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearProgram() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SubmitReportRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SubmitReportRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (!object.Equals(ReportType, other.ReportType)) return false;
if (Program != other.Program) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasReportType) hash ^= ReportType.GetHashCode();
if (HasProgram) hash ^= Program.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasReportType) {
output.WriteRawTag(18);
output.WriteMessage(ReportType);
}
if (HasProgram) {
output.WriteRawTag(24);
output.WriteUInt32(Program);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasReportType) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportType);
}
if (HasProgram) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SubmitReportRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Account.V1.GameAccountHandle();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasReportType) {
if (!HasReportType) {
ReportType = new global::Bgs.Protocol.Report.V1.ReportType();
}
ReportType.MergeFrom(other.ReportType);
}
if (other.HasProgram) {
Program = other.Program;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Account.V1.GameAccountHandle();
}
input.ReadMessage(AgentId);
break;
}
case 18: {
if (!HasReportType) {
ReportType = new global::Bgs.Protocol.Report.V1.ReportType();
}
input.ReadMessage(ReportType);
break;
}
case 24: {
Program = input.ReadUInt32();
break;
}
}