mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-13 06:54:48 +01:00
804 lines
25 KiB
C#
804 lines
25 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: Chat.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 Nova.Client {
|
|
|
|
/// <summary>Holder for reflection information generated from Chat.proto</summary>
|
|
public static partial class ChatReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for Chat.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ChatReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"CgpDaGF0LnByb3RvIssCCgRDaGF0EgoKAmlkGAEgASgFEhcKD2FkZHJlc3Nf",
|
|
"Ym9va19pZBgCIAEoBRIQCghhX3ZfZ19pZBgDIAEoCRIWCg5hX3ZfZ19ncm91",
|
|
"cF9pZBgEIAEoCRITCgtwcmVfY2hhdF9pZBgFIAEoBRIQCghwcmlvcml0eRgG",
|
|
"IAEoBRIUCgx0cmlnZ2VyX3R5cGUYByABKAUSEwoLYXV0b19wb3BfdXAYCCAB",
|
|
"KAgSFAoMdHJpZ2dlcl9jb25kGAkgASgFEhoKEnRyaWdnZXJfY29uZF9wYXJh",
|
|
"bRgKIAEoCRIPCgdyZXdhcmQxGAsgASgFEhMKC3Jld2FyZF9xdHkxGAwgASgF",
|
|
"Eg8KB3Jld2FyZDIYDSABKAUSEwoLcmV3YXJkX3F0eTIYDiABKAUSDwoHcmV3",
|
|
"YXJkMxgPIAEoBRITCgtyZXdhcmRfcXR5MxgQIAEoBUIOqgILTm92YS5DbGll",
|
|
"bnRiBnByb3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Chat), global::Nova.Client.Chat.Parser, new[]{ "Id", "AddressBookId", "AVGId", "AVGGroupId", "PreChatId", "Priority", "TriggerType", "AutoPopUp", "TriggerCond", "TriggerCondParam", "Reward1", "RewardQty1", "Reward2", "RewardQty2", "Reward3", "RewardQty3" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class Chat : pb::IMessage<Chat>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Chat> _parser = new pb::MessageParser<Chat>(() => new Chat());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Chat> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Nova.Client.ChatReflection.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 Chat() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Chat(Chat other) : this() {
|
|
id_ = other.id_;
|
|
addressBookId_ = other.addressBookId_;
|
|
aVGId_ = other.aVGId_;
|
|
aVGGroupId_ = other.aVGGroupId_;
|
|
preChatId_ = other.preChatId_;
|
|
priority_ = other.priority_;
|
|
triggerType_ = other.triggerType_;
|
|
autoPopUp_ = other.autoPopUp_;
|
|
triggerCond_ = other.triggerCond_;
|
|
triggerCondParam_ = other.triggerCondParam_;
|
|
reward1_ = other.reward1_;
|
|
rewardQty1_ = other.rewardQty1_;
|
|
reward2_ = other.reward2_;
|
|
rewardQty2_ = other.rewardQty2_;
|
|
reward3_ = other.reward3_;
|
|
rewardQty3_ = other.rewardQty3_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Chat Clone() {
|
|
return new Chat(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private int id_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "address_book_id" field.</summary>
|
|
public const int AddressBookIdFieldNumber = 2;
|
|
private int addressBookId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int AddressBookId {
|
|
get { return addressBookId_; }
|
|
set {
|
|
addressBookId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "a_v_g_id" field.</summary>
|
|
public const int AVGIdFieldNumber = 3;
|
|
private string aVGId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string AVGId {
|
|
get { return aVGId_; }
|
|
set {
|
|
aVGId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "a_v_g_group_id" field.</summary>
|
|
public const int AVGGroupIdFieldNumber = 4;
|
|
private string aVGGroupId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string AVGGroupId {
|
|
get { return aVGGroupId_; }
|
|
set {
|
|
aVGGroupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "pre_chat_id" field.</summary>
|
|
public const int PreChatIdFieldNumber = 5;
|
|
private int preChatId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int PreChatId {
|
|
get { return preChatId_; }
|
|
set {
|
|
preChatId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "priority" field.</summary>
|
|
public const int PriorityFieldNumber = 6;
|
|
private int priority_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Priority {
|
|
get { return priority_; }
|
|
set {
|
|
priority_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "trigger_type" field.</summary>
|
|
public const int TriggerTypeFieldNumber = 7;
|
|
private int triggerType_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int TriggerType {
|
|
get { return triggerType_; }
|
|
set {
|
|
triggerType_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "auto_pop_up" field.</summary>
|
|
public const int AutoPopUpFieldNumber = 8;
|
|
private bool autoPopUp_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool AutoPopUp {
|
|
get { return autoPopUp_; }
|
|
set {
|
|
autoPopUp_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "trigger_cond" field.</summary>
|
|
public const int TriggerCondFieldNumber = 9;
|
|
private int triggerCond_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int TriggerCond {
|
|
get { return triggerCond_; }
|
|
set {
|
|
triggerCond_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "trigger_cond_param" field.</summary>
|
|
public const int TriggerCondParamFieldNumber = 10;
|
|
private string triggerCondParam_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string TriggerCondParam {
|
|
get { return triggerCondParam_; }
|
|
set {
|
|
triggerCondParam_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "reward1" field.</summary>
|
|
public const int Reward1FieldNumber = 11;
|
|
private int reward1_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Reward1 {
|
|
get { return reward1_; }
|
|
set {
|
|
reward1_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "reward_qty1" field.</summary>
|
|
public const int RewardQty1FieldNumber = 12;
|
|
private int rewardQty1_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int RewardQty1 {
|
|
get { return rewardQty1_; }
|
|
set {
|
|
rewardQty1_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "reward2" field.</summary>
|
|
public const int Reward2FieldNumber = 13;
|
|
private int reward2_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Reward2 {
|
|
get { return reward2_; }
|
|
set {
|
|
reward2_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "reward_qty2" field.</summary>
|
|
public const int RewardQty2FieldNumber = 14;
|
|
private int rewardQty2_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int RewardQty2 {
|
|
get { return rewardQty2_; }
|
|
set {
|
|
rewardQty2_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "reward3" field.</summary>
|
|
public const int Reward3FieldNumber = 15;
|
|
private int reward3_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Reward3 {
|
|
get { return reward3_; }
|
|
set {
|
|
reward3_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "reward_qty3" field.</summary>
|
|
public const int RewardQty3FieldNumber = 16;
|
|
private int rewardQty3_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int RewardQty3 {
|
|
get { return rewardQty3_; }
|
|
set {
|
|
rewardQty3_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Chat);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Chat other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (AddressBookId != other.AddressBookId) return false;
|
|
if (AVGId != other.AVGId) return false;
|
|
if (AVGGroupId != other.AVGGroupId) return false;
|
|
if (PreChatId != other.PreChatId) return false;
|
|
if (Priority != other.Priority) return false;
|
|
if (TriggerType != other.TriggerType) return false;
|
|
if (AutoPopUp != other.AutoPopUp) return false;
|
|
if (TriggerCond != other.TriggerCond) return false;
|
|
if (TriggerCondParam != other.TriggerCondParam) return false;
|
|
if (Reward1 != other.Reward1) return false;
|
|
if (RewardQty1 != other.RewardQty1) return false;
|
|
if (Reward2 != other.Reward2) return false;
|
|
if (RewardQty2 != other.RewardQty2) return false;
|
|
if (Reward3 != other.Reward3) return false;
|
|
if (RewardQty3 != other.RewardQty3) 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 (Id != 0) hash ^= Id.GetHashCode();
|
|
if (AddressBookId != 0) hash ^= AddressBookId.GetHashCode();
|
|
if (AVGId.Length != 0) hash ^= AVGId.GetHashCode();
|
|
if (AVGGroupId.Length != 0) hash ^= AVGGroupId.GetHashCode();
|
|
if (PreChatId != 0) hash ^= PreChatId.GetHashCode();
|
|
if (Priority != 0) hash ^= Priority.GetHashCode();
|
|
if (TriggerType != 0) hash ^= TriggerType.GetHashCode();
|
|
if (AutoPopUp != false) hash ^= AutoPopUp.GetHashCode();
|
|
if (TriggerCond != 0) hash ^= TriggerCond.GetHashCode();
|
|
if (TriggerCondParam.Length != 0) hash ^= TriggerCondParam.GetHashCode();
|
|
if (Reward1 != 0) hash ^= Reward1.GetHashCode();
|
|
if (RewardQty1 != 0) hash ^= RewardQty1.GetHashCode();
|
|
if (Reward2 != 0) hash ^= Reward2.GetHashCode();
|
|
if (RewardQty2 != 0) hash ^= RewardQty2.GetHashCode();
|
|
if (Reward3 != 0) hash ^= Reward3.GetHashCode();
|
|
if (RewardQty3 != 0) hash ^= RewardQty3.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 (Id != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(Id);
|
|
}
|
|
if (AddressBookId != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(AddressBookId);
|
|
}
|
|
if (AVGId.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(AVGId);
|
|
}
|
|
if (AVGGroupId.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(AVGGroupId);
|
|
}
|
|
if (PreChatId != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(PreChatId);
|
|
}
|
|
if (Priority != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(Priority);
|
|
}
|
|
if (TriggerType != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteInt32(TriggerType);
|
|
}
|
|
if (AutoPopUp != false) {
|
|
output.WriteRawTag(64);
|
|
output.WriteBool(AutoPopUp);
|
|
}
|
|
if (TriggerCond != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteInt32(TriggerCond);
|
|
}
|
|
if (TriggerCondParam.Length != 0) {
|
|
output.WriteRawTag(82);
|
|
output.WriteString(TriggerCondParam);
|
|
}
|
|
if (Reward1 != 0) {
|
|
output.WriteRawTag(88);
|
|
output.WriteInt32(Reward1);
|
|
}
|
|
if (RewardQty1 != 0) {
|
|
output.WriteRawTag(96);
|
|
output.WriteInt32(RewardQty1);
|
|
}
|
|
if (Reward2 != 0) {
|
|
output.WriteRawTag(104);
|
|
output.WriteInt32(Reward2);
|
|
}
|
|
if (RewardQty2 != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteInt32(RewardQty2);
|
|
}
|
|
if (Reward3 != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteInt32(Reward3);
|
|
}
|
|
if (RewardQty3 != 0) {
|
|
output.WriteRawTag(128, 1);
|
|
output.WriteInt32(RewardQty3);
|
|
}
|
|
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 (Id != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(Id);
|
|
}
|
|
if (AddressBookId != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(AddressBookId);
|
|
}
|
|
if (AVGId.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(AVGId);
|
|
}
|
|
if (AVGGroupId.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(AVGGroupId);
|
|
}
|
|
if (PreChatId != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(PreChatId);
|
|
}
|
|
if (Priority != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(Priority);
|
|
}
|
|
if (TriggerType != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteInt32(TriggerType);
|
|
}
|
|
if (AutoPopUp != false) {
|
|
output.WriteRawTag(64);
|
|
output.WriteBool(AutoPopUp);
|
|
}
|
|
if (TriggerCond != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteInt32(TriggerCond);
|
|
}
|
|
if (TriggerCondParam.Length != 0) {
|
|
output.WriteRawTag(82);
|
|
output.WriteString(TriggerCondParam);
|
|
}
|
|
if (Reward1 != 0) {
|
|
output.WriteRawTag(88);
|
|
output.WriteInt32(Reward1);
|
|
}
|
|
if (RewardQty1 != 0) {
|
|
output.WriteRawTag(96);
|
|
output.WriteInt32(RewardQty1);
|
|
}
|
|
if (Reward2 != 0) {
|
|
output.WriteRawTag(104);
|
|
output.WriteInt32(Reward2);
|
|
}
|
|
if (RewardQty2 != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteInt32(RewardQty2);
|
|
}
|
|
if (Reward3 != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteInt32(Reward3);
|
|
}
|
|
if (RewardQty3 != 0) {
|
|
output.WriteRawTag(128, 1);
|
|
output.WriteInt32(RewardQty3);
|
|
}
|
|
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 (Id != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
|
|
}
|
|
if (AddressBookId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(AddressBookId);
|
|
}
|
|
if (AVGId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(AVGId);
|
|
}
|
|
if (AVGGroupId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(AVGGroupId);
|
|
}
|
|
if (PreChatId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PreChatId);
|
|
}
|
|
if (Priority != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority);
|
|
}
|
|
if (TriggerType != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TriggerType);
|
|
}
|
|
if (AutoPopUp != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (TriggerCond != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TriggerCond);
|
|
}
|
|
if (TriggerCondParam.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerCondParam);
|
|
}
|
|
if (Reward1 != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward1);
|
|
}
|
|
if (RewardQty1 != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty1);
|
|
}
|
|
if (Reward2 != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward2);
|
|
}
|
|
if (RewardQty2 != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RewardQty2);
|
|
}
|
|
if (Reward3 != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Reward3);
|
|
}
|
|
if (RewardQty3 != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeInt32Size(RewardQty3);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Chat other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.AddressBookId != 0) {
|
|
AddressBookId = other.AddressBookId;
|
|
}
|
|
if (other.AVGId.Length != 0) {
|
|
AVGId = other.AVGId;
|
|
}
|
|
if (other.AVGGroupId.Length != 0) {
|
|
AVGGroupId = other.AVGGroupId;
|
|
}
|
|
if (other.PreChatId != 0) {
|
|
PreChatId = other.PreChatId;
|
|
}
|
|
if (other.Priority != 0) {
|
|
Priority = other.Priority;
|
|
}
|
|
if (other.TriggerType != 0) {
|
|
TriggerType = other.TriggerType;
|
|
}
|
|
if (other.AutoPopUp != false) {
|
|
AutoPopUp = other.AutoPopUp;
|
|
}
|
|
if (other.TriggerCond != 0) {
|
|
TriggerCond = other.TriggerCond;
|
|
}
|
|
if (other.TriggerCondParam.Length != 0) {
|
|
TriggerCondParam = other.TriggerCondParam;
|
|
}
|
|
if (other.Reward1 != 0) {
|
|
Reward1 = other.Reward1;
|
|
}
|
|
if (other.RewardQty1 != 0) {
|
|
RewardQty1 = other.RewardQty1;
|
|
}
|
|
if (other.Reward2 != 0) {
|
|
Reward2 = other.Reward2;
|
|
}
|
|
if (other.RewardQty2 != 0) {
|
|
RewardQty2 = other.RewardQty2;
|
|
}
|
|
if (other.Reward3 != 0) {
|
|
Reward3 = other.Reward3;
|
|
}
|
|
if (other.RewardQty3 != 0) {
|
|
RewardQty3 = other.RewardQty3;
|
|
}
|
|
_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 8: {
|
|
Id = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
AddressBookId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 26: {
|
|
AVGId = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
AVGGroupId = input.ReadString();
|
|
break;
|
|
}
|
|
case 40: {
|
|
PreChatId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
Priority = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
TriggerType = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
AutoPopUp = input.ReadBool();
|
|
break;
|
|
}
|
|
case 72: {
|
|
TriggerCond = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 82: {
|
|
TriggerCondParam = input.ReadString();
|
|
break;
|
|
}
|
|
case 88: {
|
|
Reward1 = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 96: {
|
|
RewardQty1 = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
Reward2 = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 112: {
|
|
RewardQty2 = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
Reward3 = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 128: {
|
|
RewardQty3 = input.ReadInt32();
|
|
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 8: {
|
|
Id = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
AddressBookId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 26: {
|
|
AVGId = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
AVGGroupId = input.ReadString();
|
|
break;
|
|
}
|
|
case 40: {
|
|
PreChatId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
Priority = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
TriggerType = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
AutoPopUp = input.ReadBool();
|
|
break;
|
|
}
|
|
case 72: {
|
|
TriggerCond = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 82: {
|
|
TriggerCondParam = input.ReadString();
|
|
break;
|
|
}
|
|
case 88: {
|
|
Reward1 = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 96: {
|
|
RewardQty1 = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
Reward2 = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 112: {
|
|
RewardQty2 = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 120: {
|
|
Reward3 = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 128: {
|
|
RewardQty3 = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|