//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/bell/v1/keyapis_bell_events_v1.proto
//
#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 Keyapis.Bell.V1 {
/// Holder for reflection information generated from keyapis/bell/v1/keyapis_bell_events_v1.proto
public static partial class KeyapisBellEventsV1Reflection {
#region Descriptor
/// File descriptor for keyapis/bell/v1/keyapis_bell_events_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisBellEventsV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CixrZXlhcGlzL2JlbGwvdjEva2V5YXBpc19iZWxsX2V2ZW50c192MS5wcm90",
"bxIPa2V5YXBpcy5iZWxsLnYxGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9y",
"LnByb3RvIoICChhTZW5kUHVzaE5vdGlmaWNhdGlvblRhc2sSFwoKcmVxdWVz",
"dF9pZBgBIAEoCUID4EECEhIKBW9ycG9uGAIgASgDQgPgQQISGAoLcm9vbV9u",
"dW1iZXIYAyABKAlCA+BBAhITCgZoZWFkZXIYBCABKAlCA+BBAhIRCgR0ZXh0",
"GAUgASgJQgPgQQISRwoHcGF5bG9hZBgGIAMoCzI2LmtleWFwaXMuYmVsbC52",
"MS5TZW5kUHVzaE5vdGlmaWNhdGlvblRhc2suUGF5bG9hZEVudHJ5Gi4KDFBh",
"eWxvYWRFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBQowB",
"ChJydS5rZXlhcGlzLmJlbGwudjFCEktleWFwaXNCZWxsVjFQcm90b0gDUABa",
"EC9rZXlhcGlzX2JlbGxfdjHYAQH4AQGiAg1LRVlBUElTQkVMTFYxqgIPS2V5",
"YXBpcy5CZWxsLlYxygIPS2V5YXBpc1xCZWxsXFYx6gIRS2V5YXBpczo6QmVs",
"bDo6VjFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Bell.V1.SendPushNotificationTask), global::Keyapis.Bell.V1.SendPushNotificationTask.Parser, new[]{ "RequestId", "Orpon", "RoomNumber", "Header", "Text", "Payload" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
}));
}
#endregion
}
#region Messages
///
/// Задача на отправку уведомления.
/// Очередь key.bell.send_push_notification
///
public sealed partial class SendPushNotificationTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendPushNotificationTask());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.Bell.V1.KeyapisBellEventsV1Reflection.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 SendPushNotificationTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SendPushNotificationTask(SendPushNotificationTask other) : this() {
requestId_ = other.requestId_;
orpon_ = other.orpon_;
roomNumber_ = other.roomNumber_;
header_ = other.header_;
text_ = other.text_;
payload_ = other.payload_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SendPushNotificationTask Clone() {
return new SendPushNotificationTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "orpon" field.
public const int OrponFieldNumber = 2;
private long orpon_;
///
/// ОРПОН
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long Orpon {
get { return orpon_; }
set {
orpon_ = value;
}
}
/// Field number for the "room_number" field.
public const int RoomNumberFieldNumber = 3;
private string roomNumber_ = "";
///
/// Номер квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RoomNumber {
get { return roomNumber_; }
set {
roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "header" field.
public const int HeaderFieldNumber = 4;
private string header_ = "";
///
/// Заголовок уведомления
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Header {
get { return header_; }
set {
header_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "text" field.
public const int TextFieldNumber = 5;
private string text_ = "";
///
/// Текст уведомления
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Text {
get { return text_; }
set {
text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "payload" field.
public const int PayloadFieldNumber = 6;
private static readonly pbc::MapField.Codec _map_payload_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 50);
private readonly pbc::MapField payload_ = new pbc::MapField();
///
/// Полезная нагрузка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField Payload {
get { return payload_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as SendPushNotificationTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(SendPushNotificationTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if (Orpon != other.Orpon) return false;
if (RoomNumber != other.RoomNumber) return false;
if (Header != other.Header) return false;
if (Text != other.Text) return false;
if (!Payload.Equals(other.Payload)) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
if (Orpon != 0L) hash ^= Orpon.GetHashCode();
if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode();
if (Header.Length != 0) hash ^= Header.GetHashCode();
if (Text.Length != 0) hash ^= Text.GetHashCode();
hash ^= Payload.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (Orpon != 0L) {
output.WriteRawTag(16);
output.WriteInt64(Orpon);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (Header.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Header);
}
if (Text.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Text);
}
payload_.WriteTo(output, _map_payload_codec);
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (Orpon != 0L) {
output.WriteRawTag(16);
output.WriteInt64(Orpon);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (Header.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Header);
}
if (Text.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Text);
}
payload_.WriteTo(ref output, _map_payload_codec);
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
if (Orpon != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon);
}
if (RoomNumber.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber);
}
if (Header.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Header);
}
if (Text.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
}
size += payload_.CalculateSize(_map_payload_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(SendPushNotificationTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.Orpon != 0L) {
Orpon = other.Orpon;
}
if (other.RoomNumber.Length != 0) {
RoomNumber = other.RoomNumber;
}
if (other.Header.Length != 0) {
Header = other.Header;
}
if (other.Text.Length != 0) {
Text = other.Text;
}
payload_.MergeFrom(other.payload_);
_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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
Orpon = input.ReadInt64();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 34: {
Header = input.ReadString();
break;
}
case 42: {
Text = input.ReadString();
break;
}
case 50: {
payload_.AddEntriesFrom(input, _map_payload_codec);
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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
Orpon = input.ReadInt64();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 34: {
Header = input.ReadString();
break;
}
case 42: {
Text = input.ReadString();
break;
}
case 50: {
payload_.AddEntriesFrom(ref input, _map_payload_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code