//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/exchange/v1/keyapis_exchange_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.Exchange.V1 {
/// Holder for reflection information generated from keyapis/exchange/v1/keyapis_exchange_events_v1.proto
public static partial class KeyapisExchangeEventsV1Reflection {
#region Descriptor
/// File descriptor for keyapis/exchange/v1/keyapis_exchange_events_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisExchangeEventsV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjRrZXlhcGlzL2V4Y2hhbmdlL3YxL2tleWFwaXNfZXhjaGFuZ2VfZXZlbnRz",
"X3YxLnByb3RvEhNrZXlhcGlzLmV4Y2hhbmdlLnYxGh9nb29nbGUvYXBpL2Zp",
"ZWxkX2JlaGF2aW9yLnByb3RvIuwBCg5TZW5kaW5nU21zVGFzaxIXCgpyZXF1",
"ZXN0X2lkGAEgASgJQgPgQQISGgoNdGVtcGxhdGVfa2luZBgCIAEoCUID4EEC",
"EhgKC2Rlc3RpbmF0aW9uGAMgASgJQgPgQQISUAoSdGVtcGxhdGVfdmFyaWFi",
"bGVzGAQgAygLMjQua2V5YXBpcy5leGNoYW5nZS52MS5TZW5kaW5nU21zVGFz",
"ay5UZW1wbGF0ZVZhcmlhYmxlGjkKEFRlbXBsYXRlVmFyaWFibGUSEQoEbmFt",
"ZRgBIAEoCUID4EECEhIKBXZhbHVlGAIgASgJQgPgQQJCqQEKFnJ1LmtleWFw",
"aXMuZXhjaGFuZ2UudjFCFktleWFwaXNFeGNoYW5nZVYxUHJvdG9IA1AAWhQv",
"a2V5YXBpc19leGNoYW5nZV92MdgBAfgBAaICEktFWUFQSVNFWENIQU5HRVlW",
"MaoCE0tleWFwaXMuRXhjaGFuZ2UuVjHKAhNLZXlhcGlzXEV4Y2hhbmdlXFYx",
"6gIVS2V5YXBpczo6RXhjaGFuZ2U6OlYxYgZwcm90bzM="));
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.Exchange.V1.SendingSmsTask), global::Keyapis.Exchange.V1.SendingSmsTask.Parser, new[]{ "RequestId", "TemplateKind", "Destination", "TemplateVariables" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.SendingSmsTask.Types.TemplateVariable), global::Keyapis.Exchange.V1.SendingSmsTask.Types.TemplateVariable.Parser, new[]{ "Name", "Value" }, null, null, null, null)})
}));
}
#endregion
}
#region Messages
///
/// Задача на отправку СМС.
/// Очередь key.exchange.sending_sms
///
public sealed partial class SendingSmsTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendingSmsTask());
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.Exchange.V1.KeyapisExchangeEventsV1Reflection.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 SendingSmsTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SendingSmsTask(SendingSmsTask other) : this() {
requestId_ = other.requestId_;
templateKind_ = other.templateKind_;
destination_ = other.destination_;
templateVariables_ = other.templateVariables_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SendingSmsTask Clone() {
return new SendingSmsTask(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 "template_kind" field.
public const int TemplateKindFieldNumber = 2;
private string templateKind_ = "";
///
/// Тип шаблона
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string TemplateKind {
get { return templateKind_; }
set {
templateKind_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "destination" field.
public const int DestinationFieldNumber = 3;
private string destination_ = "";
///
/// Назначение
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Destination {
get { return destination_; }
set {
destination_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "template_variables" field.
public const int TemplateVariablesFieldNumber = 4;
private static readonly pb::FieldCodec _repeated_templateVariables_codec
= pb::FieldCodec.ForMessage(34, global::Keyapis.Exchange.V1.SendingSmsTask.Types.TemplateVariable.Parser);
private readonly pbc::RepeatedField templateVariables_ = new pbc::RepeatedField();
///
/// Переменные шаблона
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField TemplateVariables {
get { return templateVariables_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as SendingSmsTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(SendingSmsTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if (TemplateKind != other.TemplateKind) return false;
if (Destination != other.Destination) return false;
if(!templateVariables_.Equals(other.templateVariables_)) 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 (TemplateKind.Length != 0) hash ^= TemplateKind.GetHashCode();
if (Destination.Length != 0) hash ^= Destination.GetHashCode();
hash ^= templateVariables_.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 (TemplateKind.Length != 0) {
output.WriteRawTag(18);
output.WriteString(TemplateKind);
}
if (Destination.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Destination);
}
templateVariables_.WriteTo(output, _repeated_templateVariables_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 (TemplateKind.Length != 0) {
output.WriteRawTag(18);
output.WriteString(TemplateKind);
}
if (Destination.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Destination);
}
templateVariables_.WriteTo(ref output, _repeated_templateVariables_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 (TemplateKind.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(TemplateKind);
}
if (Destination.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Destination);
}
size += templateVariables_.CalculateSize(_repeated_templateVariables_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(SendingSmsTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.TemplateKind.Length != 0) {
TemplateKind = other.TemplateKind;
}
if (other.Destination.Length != 0) {
Destination = other.Destination;
}
templateVariables_.Add(other.templateVariables_);
_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 18: {
TemplateKind = input.ReadString();
break;
}
case 26: {
Destination = input.ReadString();
break;
}
case 34: {
templateVariables_.AddEntriesFrom(input, _repeated_templateVariables_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 18: {
TemplateKind = input.ReadString();
break;
}
case 26: {
Destination = input.ReadString();
break;
}
case 34: {
templateVariables_.AddEntriesFrom(ref input, _repeated_templateVariables_codec);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the SendingSmsTask message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Переменные шаблона
///
public sealed partial class TemplateVariable : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TemplateVariable());
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.Exchange.V1.SendingSmsTask.Descriptor.NestedTypes[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 TemplateVariable() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TemplateVariable(TemplateVariable other) : this() {
name_ = other.name_;
value_ = other.value_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TemplateVariable Clone() {
return new TemplateVariable(this);
}
/// Field number for the "name" field.
public const int NameFieldNumber = 1;
private string name_ = "";
///
/// Наименование
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "value" field.
public const int ValueFieldNumber = 2;
private string value_ = "";
///
/// Значение
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Value {
get { return value_; }
set {
value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as TemplateVariable);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(TemplateVariable other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Name != other.Name) return false;
if (Value != other.Value) 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 (Name.Length != 0) hash ^= Name.GetHashCode();
if (Value.Length != 0) hash ^= Value.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 (Name.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Name);
}
if (Value.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Value);
}
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 (Name.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Name);
}
if (Value.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Value);
}
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 (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Value.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(TemplateVariable other) {
if (other == null) {
return;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Value.Length != 0) {
Value = other.Value;
}
_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: {
Name = input.ReadString();
break;
}
case 18: {
Value = input.ReadString();
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: {
Name = input.ReadString();
break;
}
case 18: {
Value = input.ReadString();
break;
}
}
}
}
#endif
}
}
#endregion
}
#endregion
}
#endregion Designer generated code