mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
386 lines
14 KiB
C#
386 lines
14 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: PrivacySettings.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 EggLink.DanhengServer.Proto {
|
|
|
|
/// <summary>Holder for reflection information generated from PrivacySettings.proto</summary>
|
|
public static partial class PrivacySettingsReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for PrivacySettings.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static PrivacySettingsReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChVQcml2YWN5U2V0dGluZ3MucHJvdG8irAEKD1ByaXZhY3lTZXR0aW5ncxIc",
|
|
"ChRkaXNwbGF5X2FjdGl2ZV9zdGF0ZRgMIAEoCBIdChVkaXNwbGF5X2JhdHRs",
|
|
"ZV9yZWNvcmQYBSABKAgSGgoSZGlzcGxheV9jb2xsZWN0aW9uGAMgASgIEh4K",
|
|
"FmRpc3BsYXlfcmVjZW50bHlfc3RhdGUYByABKAgSIAoYZGlzcGxheV9jaGFs",
|
|
"bGVuZ2VfbGluZXVwGAkgASgIQh6qAhtFZ2dMaW5rLkRhbmhlbmdTZXJ2ZXIu",
|
|
"UHJvdG9iBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::EggLink.DanhengServer.Proto.PrivacySettings), global::EggLink.DanhengServer.Proto.PrivacySettings.Parser, new[]{ "DisplayActiveState", "DisplayBattleRecord", "DisplayCollection", "DisplayRecentlyState", "DisplayChallengeLineup" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class PrivacySettings : pb::IMessage<PrivacySettings>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<PrivacySettings> _parser = new pb::MessageParser<PrivacySettings>(() => new PrivacySettings());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<PrivacySettings> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::EggLink.DanhengServer.Proto.PrivacySettingsReflection.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 PrivacySettings() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PrivacySettings(PrivacySettings other) : this() {
|
|
displayActiveState_ = other.displayActiveState_;
|
|
displayBattleRecord_ = other.displayBattleRecord_;
|
|
displayCollection_ = other.displayCollection_;
|
|
displayRecentlyState_ = other.displayRecentlyState_;
|
|
displayChallengeLineup_ = other.displayChallengeLineup_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PrivacySettings Clone() {
|
|
return new PrivacySettings(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "display_active_state" field.</summary>
|
|
public const int DisplayActiveStateFieldNumber = 12;
|
|
private bool displayActiveState_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool DisplayActiveState {
|
|
get { return displayActiveState_; }
|
|
set {
|
|
displayActiveState_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "display_battle_record" field.</summary>
|
|
public const int DisplayBattleRecordFieldNumber = 5;
|
|
private bool displayBattleRecord_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool DisplayBattleRecord {
|
|
get { return displayBattleRecord_; }
|
|
set {
|
|
displayBattleRecord_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "display_collection" field.</summary>
|
|
public const int DisplayCollectionFieldNumber = 3;
|
|
private bool displayCollection_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool DisplayCollection {
|
|
get { return displayCollection_; }
|
|
set {
|
|
displayCollection_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "display_recently_state" field.</summary>
|
|
public const int DisplayRecentlyStateFieldNumber = 7;
|
|
private bool displayRecentlyState_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool DisplayRecentlyState {
|
|
get { return displayRecentlyState_; }
|
|
set {
|
|
displayRecentlyState_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "display_challenge_lineup" field.</summary>
|
|
public const int DisplayChallengeLineupFieldNumber = 9;
|
|
private bool displayChallengeLineup_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool DisplayChallengeLineup {
|
|
get { return displayChallengeLineup_; }
|
|
set {
|
|
displayChallengeLineup_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as PrivacySettings);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(PrivacySettings other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (DisplayActiveState != other.DisplayActiveState) return false;
|
|
if (DisplayBattleRecord != other.DisplayBattleRecord) return false;
|
|
if (DisplayCollection != other.DisplayCollection) return false;
|
|
if (DisplayRecentlyState != other.DisplayRecentlyState) return false;
|
|
if (DisplayChallengeLineup != other.DisplayChallengeLineup) 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 (DisplayActiveState != false) hash ^= DisplayActiveState.GetHashCode();
|
|
if (DisplayBattleRecord != false) hash ^= DisplayBattleRecord.GetHashCode();
|
|
if (DisplayCollection != false) hash ^= DisplayCollection.GetHashCode();
|
|
if (DisplayRecentlyState != false) hash ^= DisplayRecentlyState.GetHashCode();
|
|
if (DisplayChallengeLineup != false) hash ^= DisplayChallengeLineup.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 (DisplayCollection != false) {
|
|
output.WriteRawTag(24);
|
|
output.WriteBool(DisplayCollection);
|
|
}
|
|
if (DisplayBattleRecord != false) {
|
|
output.WriteRawTag(40);
|
|
output.WriteBool(DisplayBattleRecord);
|
|
}
|
|
if (DisplayRecentlyState != false) {
|
|
output.WriteRawTag(56);
|
|
output.WriteBool(DisplayRecentlyState);
|
|
}
|
|
if (DisplayChallengeLineup != false) {
|
|
output.WriteRawTag(72);
|
|
output.WriteBool(DisplayChallengeLineup);
|
|
}
|
|
if (DisplayActiveState != false) {
|
|
output.WriteRawTag(96);
|
|
output.WriteBool(DisplayActiveState);
|
|
}
|
|
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 (DisplayCollection != false) {
|
|
output.WriteRawTag(24);
|
|
output.WriteBool(DisplayCollection);
|
|
}
|
|
if (DisplayBattleRecord != false) {
|
|
output.WriteRawTag(40);
|
|
output.WriteBool(DisplayBattleRecord);
|
|
}
|
|
if (DisplayRecentlyState != false) {
|
|
output.WriteRawTag(56);
|
|
output.WriteBool(DisplayRecentlyState);
|
|
}
|
|
if (DisplayChallengeLineup != false) {
|
|
output.WriteRawTag(72);
|
|
output.WriteBool(DisplayChallengeLineup);
|
|
}
|
|
if (DisplayActiveState != false) {
|
|
output.WriteRawTag(96);
|
|
output.WriteBool(DisplayActiveState);
|
|
}
|
|
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 (DisplayActiveState != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (DisplayBattleRecord != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (DisplayCollection != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (DisplayRecentlyState != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (DisplayChallengeLineup != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(PrivacySettings other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.DisplayActiveState != false) {
|
|
DisplayActiveState = other.DisplayActiveState;
|
|
}
|
|
if (other.DisplayBattleRecord != false) {
|
|
DisplayBattleRecord = other.DisplayBattleRecord;
|
|
}
|
|
if (other.DisplayCollection != false) {
|
|
DisplayCollection = other.DisplayCollection;
|
|
}
|
|
if (other.DisplayRecentlyState != false) {
|
|
DisplayRecentlyState = other.DisplayRecentlyState;
|
|
}
|
|
if (other.DisplayChallengeLineup != false) {
|
|
DisplayChallengeLineup = other.DisplayChallengeLineup;
|
|
}
|
|
_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 24: {
|
|
DisplayCollection = input.ReadBool();
|
|
break;
|
|
}
|
|
case 40: {
|
|
DisplayBattleRecord = input.ReadBool();
|
|
break;
|
|
}
|
|
case 56: {
|
|
DisplayRecentlyState = input.ReadBool();
|
|
break;
|
|
}
|
|
case 72: {
|
|
DisplayChallengeLineup = input.ReadBool();
|
|
break;
|
|
}
|
|
case 96: {
|
|
DisplayActiveState = 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:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 24: {
|
|
DisplayCollection = input.ReadBool();
|
|
break;
|
|
}
|
|
case 40: {
|
|
DisplayBattleRecord = input.ReadBool();
|
|
break;
|
|
}
|
|
case 56: {
|
|
DisplayRecentlyState = input.ReadBool();
|
|
break;
|
|
}
|
|
case 72: {
|
|
DisplayChallengeLineup = input.ReadBool();
|
|
break;
|
|
}
|
|
case 96: {
|
|
DisplayActiveState = input.ReadBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|