//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/subscription/v1/keyapis_subscription_plan_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.Subscription.V1 {
/// Holder for reflection information generated from keyapis/subscription/v1/keyapis_subscription_plan_v1.proto
public static partial class KeyapisSubscriptionPlanV1Reflection {
#region Descriptor
/// File descriptor for keyapis/subscription/v1/keyapis_subscription_plan_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisSubscriptionPlanV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjprZXlhcGlzL3N1YnNjcmlwdGlvbi92MS9rZXlhcGlzX3N1YnNjcmlwdGlv",
"bl9wbGFuX3YxLnByb3RvEhdrZXlhcGlzLnN1YnNjcmlwdGlvbi52MRocZ29v",
"Z2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9i",
"ZWhhdmlvci5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJv",
"dG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90bxofZ29vZ2xlL3By",
"b3RvYnVmL3RpbWVzdGFtcC5wcm90bxo/a2V5YXBpcy9zdWJzY3JpcHRpb24v",
"djEva2V5YXBpc19zdWJzY3JpcHRpb25fcHJpdmlsZWdlX3YxLnByb3RvIr8F",
"CgRQbGFuEg8KAmlkGAEgASgFQgPgQQMSEgoFdGl0bGUYAiABKAlCA+BBAhIx",
"CgtkZXNjcmlwdGlvbhgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdW",
"YWx1ZRIzCgpjcmVhdGVkX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp",
"bWVzdGFtcEID4EEDEjMKCmNoYW5nZWRfYXQYBSABKAsyGi5nb29nbGUucHJv",
"dG9idWYuVGltZXN0YW1wQgPgQQMSEgoKcGFyZW50X2lkcxgGIAMoBRIOCgZy",
"Zl9pZHMYByADKAUSLQoHc3VtbWFyeRgIIAEoCzIcLmdvb2dsZS5wcm90b2J1",
"Zi5TdHJpbmdWYWx1ZRI5CglpY29uX3R5cGUYCSABKA4yJi5rZXlhcGlzLnN1",
"YnNjcmlwdGlvbi52MS5QbGFuLkljb25UeXBlEkwKE29wdGlvbl9kZXNjcmlw",
"dGlvbnMYCiADKAsyLy5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5QbGFuLk9w",
"dGlvbkRlc2NyaXB0aW9uEkAKD3ByaXZpbGVnZV90eXBlcxgLIAMoDjInLmtl",
"eWFwaXMuc3Vic2NyaXB0aW9uLnYxLlByaXZpbGVnZS5UeXBlGpEBChFPcHRp",
"b25EZXNjcmlwdGlvbhI5CglpY29uX3R5cGUYASABKA4yJi5rZXlhcGlzLnN1",
"YnNjcmlwdGlvbi52MS5QbGFuLkljb25UeXBlEhIKBXRpdGxlGAIgASgJQgPg",
"QQISLQoHc3VtbWFyeRgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdW",
"YWx1ZSJDCghJY29uVHlwZRIVChFJQ09OX1RZUEVfVU5LTk9XThAAEggKBEZB",
"U1QQARIMCghGQUNFX1JFQxACEggKBFNBRkUQAyLFAQoKUGxhbkZpbHRlchIq",
"CgR0ZXh0GAEgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEg4K",
"BnJmX2lkcxgCIAMoBRp7Cg9WYWxpZGF0aW9uRXJyb3ISTwoEdGV4dBgBIAEo",
"CzI/LmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlBsYW5GaWx0ZXIuVmFsaWRh",
"dGlvbkVycm9yLlRleHRJbnZhbGlkSAAaDQoLVGV4dEludmFsaWRCCAoGcmVh",
"c29uIpcECgpQbGFuUGFnaW5nEkYKDW9yZGVyX2J5X3R5cGUYASABKA4yLy5r",
"ZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5QbGFuUGFnaW5nLk9yZGVyQnlUeXBl",
"EkkKDmRpcmVjdGlvbl90eXBlGAIgASgOMjEua2V5YXBpcy5zdWJzY3JpcHRp",
"b24udjEuUGxhblBhZ2luZy5EaXJlY3Rpb25UeXBlEg0KBWxpbWl0GAMgASgF",
"Eg4KBm9mZnNldBgEIAEoBRrkAQoPVmFsaWRhdGlvbkVycm9yElEKBWxpbWl0",
"GAEgASgLMkAua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuUGxhblBhZ2luZy5W",
"YWxpZGF0aW9uRXJyb3IuTGltaXRJbnZhbGlkSAASUwoGb2Zmc2V0GAIgASgL",
"MkEua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuUGxhblBhZ2luZy5WYWxpZGF0",
"aW9uRXJyb3IuT2Zmc2V0SW52YWxpZEgAGg4KDExpbWl0SW52YWxpZBoPCg1P",
"ZmZzZXRJbnZhbGlkQggKBnJlYXNvbiIwCgtPcmRlckJ5VHlwZRIZChVPUkRF",
"Ul9CWV9UWVBFX1VOS05PV04QABIGCgJJRBABIj4KDURpcmVjdGlvblR5cGUS",
"GgoWRElSRUNUSU9OX1RZUEVfVU5LTk9XThAAEggKBERFU0MQARIHCgNBU0MQ",
"AiIhCg5HZXRQbGFuUmVxdWVzdBIPCgJpZBgBIAEoBUID4EECIkgKD0dldFBs",
"YW5SZXNwb25zZRItCgRkYXRhGAEgASgLMh0ua2V5YXBpcy5zdWJzY3JpcHRp",
"b24udjEuUGxhbkgAQgYKBHR5cGUikwEKEkdldFBsYW5MaXN0UmVxdWVzdBI4",
"CgZmaWx0ZXIYASABKAsyIy5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5QbGFu",
"RmlsdGVyQgPgQQISNQoGcGFnaW5nGAIgASgLMiMua2V5YXBpcy5zdWJzY3Jp",
"cHRpb24udjEuUGxhblBhZ2luZ0gAQgwKCnBhZ2luYXRpb24i0wIKE0dldFBs",
"YW5MaXN0UmVzcG9uc2USLQoEZGF0YRgBIAEoCzIdLmtleWFwaXMuc3Vic2Ny",
"aXB0aW9uLnYxLlBsYW5IABJDCgVlcnJvchgCIAEoCzIyLmtleWFwaXMuc3Vi",
"c2NyaXB0aW9uLnYxLkdldFBsYW5MaXN0UmVzcG9uc2UuRXJyb3JIABq/AQoF",
"RXJyb3ISVQoWcGxhbl9maWx0ZXJfdmFsaWRhdGlvbhgBIAEoCzIzLmtleWFw",
"aXMuc3Vic2NyaXB0aW9uLnYxLlBsYW5GaWx0ZXIuVmFsaWRhdGlvbkVycm9y",
"SAASVQoWcGxhbl9wYWdpbmdfdmFsaWRhdGlvbhgCIAEoCzIzLmtleWFwaXMu",
"c3Vic2NyaXB0aW9uLnYxLlBsYW5QYWdpbmcuVmFsaWRhdGlvbkVycm9ySABC",
"CAoGcmVhc29uQgYKBHR5cGUiSgoTR2V0UGxhbkNvdW50UmVxdWVzdBIzCgZm",
"aWx0ZXIYASABKAsyIy5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5QbGFuRmls",
"dGVyIt4BChRHZXRQbGFuQ291bnRSZXNwb25zZRIOCgRkYXRhGAEgASgFSAAS",
"RAoFZXJyb3IYAiABKAsyMy5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5HZXRQ",
"bGFuQ291bnRSZXNwb25zZS5FcnJvckgAGmgKBUVycm9yElUKFnBsYW5fZmls",
"dGVyX3ZhbGlkYXRpb24YASABKAsyMy5rZXlhcGlzLnN1YnNjcmlwdGlvbi52",
"MS5QbGFuRmlsdGVyLlZhbGlkYXRpb25FcnJvckgAQggKBnJlYXNvbkIGCgR0",
"eXBlMsADCgtQbGFuU2VydmljZRKEAQoHR2V0UGxhbhInLmtleWFwaXMuc3Vi",
"c2NyaXB0aW9uLnYxLkdldFBsYW5SZXF1ZXN0Gigua2V5YXBpcy5zdWJzY3Jp",
"cHRpb24udjEuR2V0UGxhblJlc3BvbnNlIiaC0+STAiASHi9zdWJzY3JpcHRp",
"b24vYXBpL3YxL3BsYW4ve2lkfRKSAQoLR2V0UGxhbkxpc3QSKy5rZXlhcGlz",
"LnN1YnNjcmlwdGlvbi52MS5HZXRQbGFuTGlzdFJlcXVlc3QaLC5rZXlhcGlz",
"LnN1YnNjcmlwdGlvbi52MS5HZXRQbGFuTGlzdFJlc3BvbnNlIiaC0+STAiAS",
"Hi9zdWJzY3JpcHRpb24vYXBpL3YxL3BsYW4vbGlzdDABEpQBCgxHZXRQbGFu",
"Q291bnQSLC5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5HZXRQbGFuQ291bnRS",
"ZXF1ZXN0Gi0ua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuR2V0UGxhbkNvdW50",
"UmVzcG9uc2UiJ4LT5JMCIRIfL3N1YnNjcmlwdGlvbi9hcGkvdjEvcGxhbi9j",
"b3VudELEAQoacnUua2V5YXBpcy5zdWJzY3JpcHRpb24udjFCGktleWFwaXNT",
"dWJzY3JpcHRpb25WMVByb3RvSANQAFoYL2tleWFwaXNfc3Vic2NyaXB0aW9u",
"X3Yx2AEB+AEBogIVS0VZQVBJU1NVQlNDUklQVElPTlYxqgIXS2V5YXBpcy5T",
"dWJzY3JpcHRpb24uVjHKAhdLZXlhcGlzXFN1YnNjcmlwdGlvblxWMeoCGUtl",
"eWFwaXM6OlN1YnNjcmlwdGlvbjo6VjFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Keyapis.Subscription.V1.KeyapisSubscriptionPrivilegeV1Reflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.Plan), global::Keyapis.Subscription.V1.Plan.Parser, new[]{ "Id", "Title", "Description", "CreatedAt", "ChangedAt", "ParentIds", "RfIds", "Summary", "IconType", "OptionDescriptions", "PrivilegeTypes" }, null, new[]{ typeof(global::Keyapis.Subscription.V1.Plan.Types.IconType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.Plan.Types.OptionDescription), global::Keyapis.Subscription.V1.Plan.Types.OptionDescription.Parser, new[]{ "IconType", "Title", "Summary" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PlanFilter), global::Keyapis.Subscription.V1.PlanFilter.Parser, new[]{ "Text", "RfIds" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError), global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError.Parser, new[]{ "Text" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError.Types.TextInvalid), global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError.Types.TextInvalid.Parser, null, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PlanPaging), global::Keyapis.Subscription.V1.PlanPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType), typeof(global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError), global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Parser, new[]{ "Limit", "Offset" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.LimitInvalid), global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.LimitInvalid.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.OffsetInvalid), global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.OffsetInvalid.Parser, null, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPlanRequest), global::Keyapis.Subscription.V1.GetPlanRequest.Parser, new[]{ "Id" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPlanResponse), global::Keyapis.Subscription.V1.GetPlanResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPlanListRequest), global::Keyapis.Subscription.V1.GetPlanListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPlanListResponse), global::Keyapis.Subscription.V1.GetPlanListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPlanListResponse.Types.Error), global::Keyapis.Subscription.V1.GetPlanListResponse.Types.Error.Parser, new[]{ "PlanFilterValidation", "PlanPagingValidation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPlanCountRequest), global::Keyapis.Subscription.V1.GetPlanCountRequest.Parser, new[]{ "Filter" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPlanCountResponse), global::Keyapis.Subscription.V1.GetPlanCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPlanCountResponse.Types.Error), global::Keyapis.Subscription.V1.GetPlanCountResponse.Types.Error.Parser, new[]{ "PlanFilterValidation" }, new[]{ "Reason" }, null, null, null)})
}));
}
#endregion
}
#region Messages
///
/// Технологический план(ТП)
///
public sealed partial class Plan : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Plan());
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.Subscription.V1.KeyapisSubscriptionPlanV1Reflection.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 Plan() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Plan(Plan other) : this() {
id_ = other.id_;
title_ = other.title_;
Description = other.Description;
createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null;
changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null;
parentIds_ = other.parentIds_.Clone();
rfIds_ = other.rfIds_.Clone();
Summary = other.Summary;
iconType_ = other.iconType_;
optionDescriptions_ = other.optionDescriptions_.Clone();
privilegeTypes_ = other.privilegeTypes_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Plan Clone() {
return new Plan(this);
}
/// Field number for the "id" field.
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;
}
}
/// Field number for the "title" field.
public const int TitleFieldNumber = 2;
private string title_ = "";
///
/// Название
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Title {
get { return title_; }
set {
title_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "description" field.
public const int DescriptionFieldNumber = 3;
private static readonly pb::FieldCodec _single_description_codec = pb::FieldCodec.ForClassWrapper(26);
private string description_;
///
/// Описание
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Description {
get { return description_; }
set {
description_ = value;
}
}
/// Field number for the "created_at" field.
public const int CreatedAtFieldNumber = 4;
private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_;
///
/// Дата создания записи.
/// Заполняется сервером
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt {
get { return createdAt_; }
set {
createdAt_ = value;
}
}
/// Field number for the "changed_at" field.
public const int ChangedAtFieldNumber = 5;
private global::Google.Protobuf.WellKnownTypes.Timestamp changedAt_;
///
/// Дата последнего изменения.
/// Заполняется и обновляется сервером.
/// Заполняется при создании и изменении.
/// Является версией объекта
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp ChangedAt {
get { return changedAt_; }
set {
changedAt_ = value;
}
}
/// Field number for the "parent_ids" field.
public const int ParentIdsFieldNumber = 6;
private static readonly pb::FieldCodec _repeated_parentIds_codec
= pb::FieldCodec.ForInt32(50);
private readonly pbc::RepeatedField parentIds_ = new pbc::RepeatedField();
///
/// Идентификаторы родительских технологических планов(ТП)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField ParentIds {
get { return parentIds_; }
}
/// Field number for the "rf_ids" field.
public const int RfIdsFieldNumber = 7;
private static readonly pb::FieldCodec _repeated_rfIds_codec
= pb::FieldCodec.ForInt32(58);
private readonly pbc::RepeatedField rfIds_ = new pbc::RepeatedField();
///
/// Идентификаторы регионов, в которых доступен технологический план(ТП)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField RfIds {
get { return rfIds_; }
}
/// Field number for the "summary" field.
public const int SummaryFieldNumber = 8;
private static readonly pb::FieldCodec _single_summary_codec = pb::FieldCodec.ForClassWrapper(66);
private string summary_;
///
/// Краткое описание
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Summary {
get { return summary_; }
set {
summary_ = value;
}
}
/// Field number for the "icon_type" field.
public const int IconTypeFieldNumber = 9;
private global::Keyapis.Subscription.V1.Plan.Types.IconType iconType_ = global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown;
///
/// Тип иконки
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.Plan.Types.IconType IconType {
get { return iconType_; }
set {
iconType_ = value;
}
}
/// Field number for the "option_descriptions" field.
public const int OptionDescriptionsFieldNumber = 10;
private static readonly pb::FieldCodec _repeated_optionDescriptions_codec
= pb::FieldCodec.ForMessage(82, global::Keyapis.Subscription.V1.Plan.Types.OptionDescription.Parser);
private readonly pbc::RepeatedField optionDescriptions_ = new pbc::RepeatedField();
///
/// Описание опций
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField OptionDescriptions {
get { return optionDescriptions_; }
}
/// Field number for the "privilege_types" field.
public const int PrivilegeTypesFieldNumber = 11;
private static readonly pb::FieldCodec _repeated_privilegeTypes_codec
= pb::FieldCodec.ForEnum(90, x => (int) x, x => (global::Keyapis.Subscription.V1.Privilege.Types.Type) x);
private readonly pbc::RepeatedField privilegeTypes_ = new pbc::RepeatedField();
///
/// Привилегии.
/// Массив услуг доступных по технологическому плану
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField PrivilegeTypes {
get { return privilegeTypes_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Plan);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Plan other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Title != other.Title) return false;
if (Description != other.Description) return false;
if (!object.Equals(CreatedAt, other.CreatedAt)) return false;
if (!object.Equals(ChangedAt, other.ChangedAt)) return false;
if(!parentIds_.Equals(other.parentIds_)) return false;
if(!rfIds_.Equals(other.rfIds_)) return false;
if (Summary != other.Summary) return false;
if (IconType != other.IconType) return false;
if(!optionDescriptions_.Equals(other.optionDescriptions_)) return false;
if(!privilegeTypes_.Equals(other.privilegeTypes_)) 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 (Title.Length != 0) hash ^= Title.GetHashCode();
if (description_ != null) hash ^= Description.GetHashCode();
if (createdAt_ != null) hash ^= CreatedAt.GetHashCode();
if (changedAt_ != null) hash ^= ChangedAt.GetHashCode();
hash ^= parentIds_.GetHashCode();
hash ^= rfIds_.GetHashCode();
if (summary_ != null) hash ^= Summary.GetHashCode();
if (IconType != global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown) hash ^= IconType.GetHashCode();
hash ^= optionDescriptions_.GetHashCode();
hash ^= privilegeTypes_.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 (Title.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Title);
}
if (description_ != null) {
_single_description_codec.WriteTagAndValue(output, Description);
}
if (createdAt_ != null) {
output.WriteRawTag(34);
output.WriteMessage(CreatedAt);
}
if (changedAt_ != null) {
output.WriteRawTag(42);
output.WriteMessage(ChangedAt);
}
parentIds_.WriteTo(output, _repeated_parentIds_codec);
rfIds_.WriteTo(output, _repeated_rfIds_codec);
if (summary_ != null) {
_single_summary_codec.WriteTagAndValue(output, Summary);
}
if (IconType != global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown) {
output.WriteRawTag(72);
output.WriteEnum((int) IconType);
}
optionDescriptions_.WriteTo(output, _repeated_optionDescriptions_codec);
privilegeTypes_.WriteTo(output, _repeated_privilegeTypes_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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Title.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Title);
}
if (description_ != null) {
_single_description_codec.WriteTagAndValue(ref output, Description);
}
if (createdAt_ != null) {
output.WriteRawTag(34);
output.WriteMessage(CreatedAt);
}
if (changedAt_ != null) {
output.WriteRawTag(42);
output.WriteMessage(ChangedAt);
}
parentIds_.WriteTo(ref output, _repeated_parentIds_codec);
rfIds_.WriteTo(ref output, _repeated_rfIds_codec);
if (summary_ != null) {
_single_summary_codec.WriteTagAndValue(ref output, Summary);
}
if (IconType != global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown) {
output.WriteRawTag(72);
output.WriteEnum((int) IconType);
}
optionDescriptions_.WriteTo(ref output, _repeated_optionDescriptions_codec);
privilegeTypes_.WriteTo(ref output, _repeated_privilegeTypes_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 (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
}
if (Title.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Title);
}
if (description_ != null) {
size += _single_description_codec.CalculateSizeWithTag(Description);
}
if (createdAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt);
}
if (changedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt);
}
size += parentIds_.CalculateSize(_repeated_parentIds_codec);
size += rfIds_.CalculateSize(_repeated_rfIds_codec);
if (summary_ != null) {
size += _single_summary_codec.CalculateSizeWithTag(Summary);
}
if (IconType != global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IconType);
}
size += optionDescriptions_.CalculateSize(_repeated_optionDescriptions_codec);
size += privilegeTypes_.CalculateSize(_repeated_privilegeTypes_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Plan other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Title.Length != 0) {
Title = other.Title;
}
if (other.description_ != null) {
if (description_ == null || other.Description != "") {
Description = other.Description;
}
}
if (other.createdAt_ != null) {
if (createdAt_ == null) {
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
CreatedAt.MergeFrom(other.CreatedAt);
}
if (other.changedAt_ != null) {
if (changedAt_ == null) {
ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
ChangedAt.MergeFrom(other.ChangedAt);
}
parentIds_.Add(other.parentIds_);
rfIds_.Add(other.rfIds_);
if (other.summary_ != null) {
if (summary_ == null || other.Summary != "") {
Summary = other.Summary;
}
}
if (other.IconType != global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown) {
IconType = other.IconType;
}
optionDescriptions_.Add(other.optionDescriptions_);
privilegeTypes_.Add(other.privilegeTypes_);
_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 8: {
Id = input.ReadInt32();
break;
}
case 18: {
Title = input.ReadString();
break;
}
case 26: {
string value = _single_description_codec.Read(input);
if (description_ == null || value != "") {
Description = value;
}
break;
}
case 34: {
if (createdAt_ == null) {
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreatedAt);
break;
}
case 42: {
if (changedAt_ == null) {
ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(ChangedAt);
break;
}
case 50:
case 48: {
parentIds_.AddEntriesFrom(input, _repeated_parentIds_codec);
break;
}
case 58:
case 56: {
rfIds_.AddEntriesFrom(input, _repeated_rfIds_codec);
break;
}
case 66: {
string value = _single_summary_codec.Read(input);
if (summary_ == null || value != "") {
Summary = value;
}
break;
}
case 72: {
IconType = (global::Keyapis.Subscription.V1.Plan.Types.IconType) input.ReadEnum();
break;
}
case 82: {
optionDescriptions_.AddEntriesFrom(input, _repeated_optionDescriptions_codec);
break;
}
case 90:
case 88: {
privilegeTypes_.AddEntriesFrom(input, _repeated_privilegeTypes_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 8: {
Id = input.ReadInt32();
break;
}
case 18: {
Title = input.ReadString();
break;
}
case 26: {
string value = _single_description_codec.Read(ref input);
if (description_ == null || value != "") {
Description = value;
}
break;
}
case 34: {
if (createdAt_ == null) {
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreatedAt);
break;
}
case 42: {
if (changedAt_ == null) {
ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(ChangedAt);
break;
}
case 50:
case 48: {
parentIds_.AddEntriesFrom(ref input, _repeated_parentIds_codec);
break;
}
case 58:
case 56: {
rfIds_.AddEntriesFrom(ref input, _repeated_rfIds_codec);
break;
}
case 66: {
string value = _single_summary_codec.Read(ref input);
if (summary_ == null || value != "") {
Summary = value;
}
break;
}
case 72: {
IconType = (global::Keyapis.Subscription.V1.Plan.Types.IconType) input.ReadEnum();
break;
}
case 82: {
optionDescriptions_.AddEntriesFrom(ref input, _repeated_optionDescriptions_codec);
break;
}
case 90:
case 88: {
privilegeTypes_.AddEntriesFrom(ref input, _repeated_privilegeTypes_codec);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Plan message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Справочник типов иконок
///
public enum IconType {
///
/// Значение не указано
///
[pbr::OriginalName("ICON_TYPE_UNKNOWN")] Unknown = 0,
///
/// Быстро
///
[pbr::OriginalName("FAST")] Fast = 1,
///
/// Распознавание лиц
///
[pbr::OriginalName("FACE_REC")] FaceRec = 2,
///
/// Безопасно
///
[pbr::OriginalName("SAFE")] Safe = 3,
}
///
/// Описание опции
///
public sealed partial class OptionDescription : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OptionDescription());
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.Subscription.V1.Plan.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 OptionDescription() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OptionDescription(OptionDescription other) : this() {
iconType_ = other.iconType_;
title_ = other.title_;
Summary = other.Summary;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OptionDescription Clone() {
return new OptionDescription(this);
}
/// Field number for the "icon_type" field.
public const int IconTypeFieldNumber = 1;
private global::Keyapis.Subscription.V1.Plan.Types.IconType iconType_ = global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown;
///
/// Тип иконки
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.Plan.Types.IconType IconType {
get { return iconType_; }
set {
iconType_ = value;
}
}
/// Field number for the "title" field.
public const int TitleFieldNumber = 2;
private string title_ = "";
///
/// Название
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Title {
get { return title_; }
set {
title_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "summary" field.
public const int SummaryFieldNumber = 3;
private static readonly pb::FieldCodec _single_summary_codec = pb::FieldCodec.ForClassWrapper(26);
private string summary_;
///
/// Краткое описание
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Summary {
get { return summary_; }
set {
summary_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OptionDescription);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OptionDescription other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (IconType != other.IconType) return false;
if (Title != other.Title) return false;
if (Summary != other.Summary) 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 (IconType != global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown) hash ^= IconType.GetHashCode();
if (Title.Length != 0) hash ^= Title.GetHashCode();
if (summary_ != null) hash ^= Summary.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 (IconType != global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) IconType);
}
if (Title.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Title);
}
if (summary_ != null) {
_single_summary_codec.WriteTagAndValue(output, Summary);
}
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 (IconType != global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) IconType);
}
if (Title.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Title);
}
if (summary_ != null) {
_single_summary_codec.WriteTagAndValue(ref output, Summary);
}
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 (IconType != global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IconType);
}
if (Title.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Title);
}
if (summary_ != null) {
size += _single_summary_codec.CalculateSizeWithTag(Summary);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(OptionDescription other) {
if (other == null) {
return;
}
if (other.IconType != global::Keyapis.Subscription.V1.Plan.Types.IconType.Unknown) {
IconType = other.IconType;
}
if (other.Title.Length != 0) {
Title = other.Title;
}
if (other.summary_ != null) {
if (summary_ == null || other.Summary != "") {
Summary = other.Summary;
}
}
_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 8: {
IconType = (global::Keyapis.Subscription.V1.Plan.Types.IconType) input.ReadEnum();
break;
}
case 18: {
Title = input.ReadString();
break;
}
case 26: {
string value = _single_summary_codec.Read(input);
if (summary_ == null || value != "") {
Summary = value;
}
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 8: {
IconType = (global::Keyapis.Subscription.V1.Plan.Types.IconType) input.ReadEnum();
break;
}
case 18: {
Title = input.ReadString();
break;
}
case 26: {
string value = _single_summary_codec.Read(ref input);
if (summary_ == null || value != "") {
Summary = value;
}
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Фильтр по технологическим планам
///
public sealed partial class PlanFilter : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlanFilter());
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.Subscription.V1.KeyapisSubscriptionPlanV1Reflection.Descriptor.MessageTypes[1]; }
}
[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 PlanFilter() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PlanFilter(PlanFilter other) : this() {
Text = other.Text;
rfIds_ = other.rfIds_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PlanFilter Clone() {
return new PlanFilter(this);
}
/// Field number for the "text" field.
public const int TextFieldNumber = 1;
private static readonly pb::FieldCodec _single_text_codec = pb::FieldCodec.ForClassWrapper(10);
private string text_;
///
/// По тексту.
/// Если значение не передано то поиск по нему не производится.
/// # Поиск производится по полям:
/// # - Название;
/// # - Описание;
/// # - Краткое описание
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Text {
get { return text_; }
set {
text_ = value;
}
}
/// Field number for the "rf_ids" field.
public const int RfIdsFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_rfIds_codec
= pb::FieldCodec.ForInt32(18);
private readonly pbc::RepeatedField rfIds_ = new pbc::RepeatedField();
///
/// По идентификаторам регионов
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField RfIds {
get { return rfIds_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PlanFilter);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PlanFilter other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Text != other.Text) return false;
if(!rfIds_.Equals(other.rfIds_)) 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 (text_ != null) hash ^= Text.GetHashCode();
hash ^= rfIds_.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 (text_ != null) {
_single_text_codec.WriteTagAndValue(output, Text);
}
rfIds_.WriteTo(output, _repeated_rfIds_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 (text_ != null) {
_single_text_codec.WriteTagAndValue(ref output, Text);
}
rfIds_.WriteTo(ref output, _repeated_rfIds_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 (text_ != null) {
size += _single_text_codec.CalculateSizeWithTag(Text);
}
size += rfIds_.CalculateSize(_repeated_rfIds_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PlanFilter other) {
if (other == null) {
return;
}
if (other.text_ != null) {
if (text_ == null || other.Text != "") {
Text = other.Text;
}
}
rfIds_.Add(other.rfIds_);
_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: {
string value = _single_text_codec.Read(input);
if (text_ == null || value != "") {
Text = value;
}
break;
}
case 18:
case 16: {
rfIds_.AddEntriesFrom(input, _repeated_rfIds_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: {
string value = _single_text_codec.Read(ref input);
if (text_ == null || value != "") {
Text = value;
}
break;
}
case 18:
case 16: {
rfIds_.AddEntriesFrom(ref input, _repeated_rfIds_codec);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the PlanFilter message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибки валидации фильтра по технологическим планам.
/// Эти проверки выполняются до обращения в базу данных
///
public sealed partial class ValidationError : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError());
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.Subscription.V1.PlanFilter.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 ValidationError() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ValidationError(ValidationError other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.Text:
Text = other.Text.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ValidationError Clone() {
return new ValidationError(this);
}
/// Field number for the "text" field.
public const int TextFieldNumber = 1;
///
/// Текст передан некорректно
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError.Types.TextInvalid Text {
get { return reasonCase_ == ReasonOneofCase.Text ? (global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError.Types.TextInvalid) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Text;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
Text = 1,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ValidationError);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ValidationError other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Text, other.Text)) return false;
if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.Text) hash ^= Text.GetHashCode();
hash ^= (int) reasonCase_;
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 (reasonCase_ == ReasonOneofCase.Text) {
output.WriteRawTag(10);
output.WriteMessage(Text);
}
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 (reasonCase_ == ReasonOneofCase.Text) {
output.WriteRawTag(10);
output.WriteMessage(Text);
}
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 (reasonCase_ == ReasonOneofCase.Text) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Text);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ValidationError other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.Text:
if (Text == null) {
Text = new global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError.Types.TextInvalid();
}
Text.MergeFrom(other.Text);
break;
}
_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: {
global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError.Types.TextInvalid subBuilder = new global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError.Types.TextInvalid();
if (reasonCase_ == ReasonOneofCase.Text) {
subBuilder.MergeFrom(Text);
}
input.ReadMessage(subBuilder);
Text = subBuilder;
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: {
global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError.Types.TextInvalid subBuilder = new global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError.Types.TextInvalid();
if (reasonCase_ == ReasonOneofCase.Text) {
subBuilder.MergeFrom(Text);
}
input.ReadMessage(subBuilder);
Text = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the ValidationError message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Причины:
/// - Длина текста < 3 символов и >= 64
///
public sealed partial class TextInvalid : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextInvalid());
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.Subscription.V1.PlanFilter.Types.ValidationError.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 TextInvalid() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TextInvalid(TextInvalid other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TextInvalid Clone() {
return new TextInvalid(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as TextInvalid);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(TextInvalid other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
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 (_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 (_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 (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(TextInvalid other) {
if (other == null) {
return;
}
_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;
}
}
#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;
}
}
}
#endif
}
}
#endregion
}
}
#endregion
}
///
/// Пагинация по технологическим планам
///
public sealed partial class PlanPaging : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlanPaging());
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.Subscription.V1.KeyapisSubscriptionPlanV1Reflection.Descriptor.MessageTypes[2]; }
}
[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 PlanPaging() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PlanPaging(PlanPaging other) : this() {
orderByType_ = other.orderByType_;
directionType_ = other.directionType_;
limit_ = other.limit_;
offset_ = other.offset_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PlanPaging Clone() {
return new PlanPaging(this);
}
/// Field number for the "order_by_type" field.
public const int OrderByTypeFieldNumber = 1;
private global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType orderByType_ = global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType.Unknown;
///
/// Тип значения сортировки.
/// По умолчанию: ID
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType OrderByType {
get { return orderByType_; }
set {
orderByType_ = value;
}
}
/// Field number for the "direction_type" field.
public const int DirectionTypeFieldNumber = 2;
private global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType directionType_ = global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType.Unknown;
///
/// Тип направления сортировки.
/// По умолчанию: DESC
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType DirectionType {
get { return directionType_; }
set {
directionType_ = value;
}
}
/// Field number for the "limit" field.
public const int LimitFieldNumber = 3;
private int limit_;
///
/// Количество записей на страницу.
/// Минимальное значение: 1.
/// Максимальное значение: 100.
/// По умолчанию: 20.
/// Если значение 0 (не передано), то выставляем значение по умолчанию
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Limit {
get { return limit_; }
set {
limit_ = value;
}
}
/// Field number for the "offset" field.
public const int OffsetFieldNumber = 4;
private int offset_;
///
/// Сдвиг.
/// По умолчанию: 0
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Offset {
get { return offset_; }
set {
offset_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PlanPaging);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PlanPaging other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (OrderByType != other.OrderByType) return false;
if (DirectionType != other.DirectionType) return false;
if (Limit != other.Limit) return false;
if (Offset != other.Offset) 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 (OrderByType != global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode();
if (DirectionType != global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType.Unknown) hash ^= DirectionType.GetHashCode();
if (Limit != 0) hash ^= Limit.GetHashCode();
if (Offset != 0) hash ^= Offset.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 (OrderByType != global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) DirectionType);
}
if (Limit != 0) {
output.WriteRawTag(24);
output.WriteInt32(Limit);
}
if (Offset != 0) {
output.WriteRawTag(32);
output.WriteInt32(Offset);
}
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 (OrderByType != global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) DirectionType);
}
if (Limit != 0) {
output.WriteRawTag(24);
output.WriteInt32(Limit);
}
if (Offset != 0) {
output.WriteRawTag(32);
output.WriteInt32(Offset);
}
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 (OrderByType != global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType);
}
if (DirectionType != global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DirectionType);
}
if (Limit != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit);
}
if (Offset != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PlanPaging other) {
if (other == null) {
return;
}
if (other.OrderByType != global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType.Unknown) {
OrderByType = other.OrderByType;
}
if (other.DirectionType != global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType.Unknown) {
DirectionType = other.DirectionType;
}
if (other.Limit != 0) {
Limit = other.Limit;
}
if (other.Offset != 0) {
Offset = other.Offset;
}
_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 8: {
OrderByType = (global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType) input.ReadEnum();
break;
}
case 24: {
Limit = input.ReadInt32();
break;
}
case 32: {
Offset = 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) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
OrderByType = (global::Keyapis.Subscription.V1.PlanPaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.Subscription.V1.PlanPaging.Types.DirectionType) input.ReadEnum();
break;
}
case 24: {
Limit = input.ReadInt32();
break;
}
case 32: {
Offset = input.ReadInt32();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the PlanPaging message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Справочник типов значений сортировки
///
public enum OrderByType {
///
/// Значение не указано
///
[pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0,
///
/// По идентификатору
///
[pbr::OriginalName("ID")] Id = 1,
}
///
/// Справочник типов направлений сортировки
///
public enum DirectionType {
///
/// Значение не указано
///
[pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0,
///
/// От большего к меньшему
///
[pbr::OriginalName("DESC")] Desc = 1,
///
/// От меньшего к большему
///
[pbr::OriginalName("ASC")] Asc = 2,
}
///
/// Ошибка валидации постраничной пагинации по технологическим планам.
/// Эти проверки выполняются до обращения в базу данных
///
public sealed partial class ValidationError : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError());
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.Subscription.V1.PlanPaging.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 ValidationError() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ValidationError(ValidationError other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.Limit:
Limit = other.Limit.Clone();
break;
case ReasonOneofCase.Offset:
Offset = other.Offset.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ValidationError Clone() {
return new ValidationError(this);
}
/// Field number for the "limit" field.
public const int LimitFieldNumber = 1;
///
/// Количество передано некорректно
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.LimitInvalid Limit {
get { return reasonCase_ == ReasonOneofCase.Limit ? (global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.LimitInvalid) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Limit;
}
}
/// Field number for the "offset" field.
public const int OffsetFieldNumber = 2;
///
/// Сдвиг передан некорректно
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.OffsetInvalid Offset {
get { return reasonCase_ == ReasonOneofCase.Offset ? (global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.OffsetInvalid) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Offset;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
Limit = 1,
Offset = 2,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ValidationError);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ValidationError other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Limit, other.Limit)) return false;
if (!object.Equals(Offset, other.Offset)) return false;
if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.Limit) hash ^= Limit.GetHashCode();
if (reasonCase_ == ReasonOneofCase.Offset) hash ^= Offset.GetHashCode();
hash ^= (int) reasonCase_;
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 (reasonCase_ == ReasonOneofCase.Limit) {
output.WriteRawTag(10);
output.WriteMessage(Limit);
}
if (reasonCase_ == ReasonOneofCase.Offset) {
output.WriteRawTag(18);
output.WriteMessage(Offset);
}
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 (reasonCase_ == ReasonOneofCase.Limit) {
output.WriteRawTag(10);
output.WriteMessage(Limit);
}
if (reasonCase_ == ReasonOneofCase.Offset) {
output.WriteRawTag(18);
output.WriteMessage(Offset);
}
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 (reasonCase_ == ReasonOneofCase.Limit) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limit);
}
if (reasonCase_ == ReasonOneofCase.Offset) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Offset);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ValidationError other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.Limit:
if (Limit == null) {
Limit = new global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.LimitInvalid();
}
Limit.MergeFrom(other.Limit);
break;
case ReasonOneofCase.Offset:
if (Offset == null) {
Offset = new global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.OffsetInvalid();
}
Offset.MergeFrom(other.Offset);
break;
}
_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: {
global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.LimitInvalid subBuilder = new global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.LimitInvalid();
if (reasonCase_ == ReasonOneofCase.Limit) {
subBuilder.MergeFrom(Limit);
}
input.ReadMessage(subBuilder);
Limit = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.OffsetInvalid subBuilder = new global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.OffsetInvalid();
if (reasonCase_ == ReasonOneofCase.Offset) {
subBuilder.MergeFrom(Offset);
}
input.ReadMessage(subBuilder);
Offset = subBuilder;
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: {
global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.LimitInvalid subBuilder = new global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.LimitInvalid();
if (reasonCase_ == ReasonOneofCase.Limit) {
subBuilder.MergeFrom(Limit);
}
input.ReadMessage(subBuilder);
Limit = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.OffsetInvalid subBuilder = new global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError.Types.OffsetInvalid();
if (reasonCase_ == ReasonOneofCase.Offset) {
subBuilder.MergeFrom(Offset);
}
input.ReadMessage(subBuilder);
Offset = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the ValidationError message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Причины:
/// - Значение количества < 0 или > 100
///
public sealed partial class LimitInvalid : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LimitInvalid());
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.Subscription.V1.PlanPaging.Types.ValidationError.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 LimitInvalid() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LimitInvalid(LimitInvalid other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LimitInvalid Clone() {
return new LimitInvalid(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as LimitInvalid);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(LimitInvalid other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
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 (_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 (_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 (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(LimitInvalid other) {
if (other == null) {
return;
}
_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;
}
}
#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;
}
}
}
#endif
}
///
/// Причины:
/// - Значение сдвига < 0
///
public sealed partial class OffsetInvalid : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OffsetInvalid());
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.Subscription.V1.PlanPaging.Types.ValidationError.Descriptor.NestedTypes[1]; }
}
[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 OffsetInvalid() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OffsetInvalid(OffsetInvalid other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OffsetInvalid Clone() {
return new OffsetInvalid(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OffsetInvalid);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OffsetInvalid other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
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 (_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 (_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 (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(OffsetInvalid other) {
if (other == null) {
return;
}
_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;
}
}
#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;
}
}
}
#endif
}
}
#endregion
}
}
#endregion
}
///
/// Запрос получения технологического плана
///
public sealed partial class GetPlanRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlanRequest());
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.Subscription.V1.KeyapisSubscriptionPlanV1Reflection.Descriptor.MessageTypes[3]; }
}
[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 GetPlanRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanRequest(GetPlanRequest other) : this() {
id_ = other.id_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanRequest Clone() {
return new GetPlanRequest(this);
}
/// Field number for the "id" field.
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;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetPlanRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPlanRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetPlanRequest other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
_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 8: {
Id = 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) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Id = input.ReadInt32();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения технологического плана
///
public sealed partial class GetPlanResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlanResponse());
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.Subscription.V1.KeyapisSubscriptionPlanV1Reflection.Descriptor.MessageTypes[4]; }
}
[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 GetPlanResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanResponse(GetPlanResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanResponse Clone() {
return new GetPlanResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Технологический план
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.Plan Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Subscription.V1.Plan) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetPlanResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPlanResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) return false;
if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode();
hash ^= (int) typeCase_;
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 (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
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 (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
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 (typeCase_ == TypeOneofCase.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetPlanResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Subscription.V1.Plan();
}
Data.MergeFrom(other.Data);
break;
}
_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: {
global::Keyapis.Subscription.V1.Plan subBuilder = new global::Keyapis.Subscription.V1.Plan();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
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: {
global::Keyapis.Subscription.V1.Plan subBuilder = new global::Keyapis.Subscription.V1.Plan();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Запрос получения технологических планов
///
public sealed partial class GetPlanListRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlanListRequest());
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.Subscription.V1.KeyapisSubscriptionPlanV1Reflection.Descriptor.MessageTypes[5]; }
}
[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 GetPlanListRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanListRequest(GetPlanListRequest other) : this() {
filter_ = other.filter_ != null ? other.filter_.Clone() : null;
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
Paging = other.Paging.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanListRequest Clone() {
return new GetPlanListRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.Subscription.V1.PlanFilter filter_;
///
/// Фильтр
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanFilter Filter {
get { return filter_; }
set {
filter_ = value;
}
}
/// Field number for the "paging" field.
public const int PagingFieldNumber = 2;
///
/// Пагинация
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanPaging Paging {
get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.Subscription.V1.PlanPaging) pagination_ : null; }
set {
pagination_ = value;
paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging;
}
}
private object pagination_;
/// Enum of possible cases for the "pagination" oneof.
public enum PaginationOneofCase {
None = 0,
Paging = 2,
}
private PaginationOneofCase paginationCase_ = PaginationOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PaginationOneofCase PaginationCase {
get { return paginationCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPagination() {
paginationCase_ = PaginationOneofCase.None;
pagination_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetPlanListRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPlanListRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Filter, other.Filter)) return false;
if (!object.Equals(Paging, other.Paging)) return false;
if (PaginationCase != other.PaginationCase) 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 (filter_ != null) hash ^= Filter.GetHashCode();
if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode();
hash ^= (int) paginationCase_;
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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
output.WriteRawTag(18);
output.WriteMessage(Paging);
}
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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
output.WriteRawTag(18);
output.WriteMessage(Paging);
}
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 (filter_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetPlanListRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.Subscription.V1.PlanFilter();
}
Filter.MergeFrom(other.Filter);
}
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
if (Paging == null) {
Paging = new global::Keyapis.Subscription.V1.PlanPaging();
}
Paging.MergeFrom(other.Paging);
break;
}
_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: {
if (filter_ == null) {
Filter = new global::Keyapis.Subscription.V1.PlanFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.Subscription.V1.PlanPaging subBuilder = new global::Keyapis.Subscription.V1.PlanPaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = subBuilder;
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: {
if (filter_ == null) {
Filter = new global::Keyapis.Subscription.V1.PlanFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.Subscription.V1.PlanPaging subBuilder = new global::Keyapis.Subscription.V1.PlanPaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения технологических планов
///
public sealed partial class GetPlanListResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlanListResponse());
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.Subscription.V1.KeyapisSubscriptionPlanV1Reflection.Descriptor.MessageTypes[6]; }
}
[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 GetPlanListResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanListResponse(GetPlanListResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanListResponse Clone() {
return new GetPlanListResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Технологический план
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.Plan Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Subscription.V1.Plan) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.GetPlanListResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.GetPlanListResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
Error = 2,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetPlanListResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPlanListResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) return false;
if (!object.Equals(Error, other.Error)) return false;
if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
hash ^= (int) typeCase_;
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 (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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 (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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 (typeCase_ == TypeOneofCase.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetPlanListResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Subscription.V1.Plan();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Subscription.V1.GetPlanListResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
}
_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: {
global::Keyapis.Subscription.V1.Plan subBuilder = new global::Keyapis.Subscription.V1.Plan();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.GetPlanListResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetPlanListResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
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: {
global::Keyapis.Subscription.V1.Plan subBuilder = new global::Keyapis.Subscription.V1.Plan();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.GetPlanListResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetPlanListResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the GetPlanListResponse message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибка запроса получения технологических планов
///
public sealed partial class Error : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error());
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.Subscription.V1.GetPlanListResponse.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 Error() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error(Error other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.PlanFilterValidation:
PlanFilterValidation = other.PlanFilterValidation.Clone();
break;
case ReasonOneofCase.PlanPagingValidation:
PlanPagingValidation = other.PlanPagingValidation.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error Clone() {
return new Error(this);
}
/// Field number for the "plan_filter_validation" field.
public const int PlanFilterValidationFieldNumber = 1;
///
/// Ошибка фильтрации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError PlanFilterValidation {
get { return reasonCase_ == ReasonOneofCase.PlanFilterValidation ? (global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PlanFilterValidation;
}
}
/// Field number for the "plan_paging_validation" field.
public const int PlanPagingValidationFieldNumber = 2;
///
/// Ошибка пагинации по страницам
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError PlanPagingValidation {
get { return reasonCase_ == ReasonOneofCase.PlanPagingValidation ? (global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PlanPagingValidation;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
PlanFilterValidation = 1,
PlanPagingValidation = 2,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(PlanFilterValidation, other.PlanFilterValidation)) return false;
if (!object.Equals(PlanPagingValidation, other.PlanPagingValidation)) return false;
if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.PlanFilterValidation) hash ^= PlanFilterValidation.GetHashCode();
if (reasonCase_ == ReasonOneofCase.PlanPagingValidation) hash ^= PlanPagingValidation.GetHashCode();
hash ^= (int) reasonCase_;
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 (reasonCase_ == ReasonOneofCase.PlanFilterValidation) {
output.WriteRawTag(10);
output.WriteMessage(PlanFilterValidation);
}
if (reasonCase_ == ReasonOneofCase.PlanPagingValidation) {
output.WriteRawTag(18);
output.WriteMessage(PlanPagingValidation);
}
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 (reasonCase_ == ReasonOneofCase.PlanFilterValidation) {
output.WriteRawTag(10);
output.WriteMessage(PlanFilterValidation);
}
if (reasonCase_ == ReasonOneofCase.PlanPagingValidation) {
output.WriteRawTag(18);
output.WriteMessage(PlanPagingValidation);
}
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 (reasonCase_ == ReasonOneofCase.PlanFilterValidation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlanFilterValidation);
}
if (reasonCase_ == ReasonOneofCase.PlanPagingValidation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlanPagingValidation);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Error other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.PlanFilterValidation:
if (PlanFilterValidation == null) {
PlanFilterValidation = new global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError();
}
PlanFilterValidation.MergeFrom(other.PlanFilterValidation);
break;
case ReasonOneofCase.PlanPagingValidation:
if (PlanPagingValidation == null) {
PlanPagingValidation = new global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError();
}
PlanPagingValidation.MergeFrom(other.PlanPagingValidation);
break;
}
_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: {
global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PlanFilterValidation) {
subBuilder.MergeFrom(PlanFilterValidation);
}
input.ReadMessage(subBuilder);
PlanFilterValidation = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PlanPagingValidation) {
subBuilder.MergeFrom(PlanPagingValidation);
}
input.ReadMessage(subBuilder);
PlanPagingValidation = subBuilder;
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: {
global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PlanFilterValidation) {
subBuilder.MergeFrom(PlanFilterValidation);
}
input.ReadMessage(subBuilder);
PlanFilterValidation = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PlanPaging.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PlanPagingValidation) {
subBuilder.MergeFrom(PlanPagingValidation);
}
input.ReadMessage(subBuilder);
PlanPagingValidation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос получения количества технологических планов
///
public sealed partial class GetPlanCountRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlanCountRequest());
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.Subscription.V1.KeyapisSubscriptionPlanV1Reflection.Descriptor.MessageTypes[7]; }
}
[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 GetPlanCountRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanCountRequest(GetPlanCountRequest other) : this() {
filter_ = other.filter_ != null ? other.filter_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanCountRequest Clone() {
return new GetPlanCountRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.Subscription.V1.PlanFilter filter_;
///
/// Фильтр
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanFilter Filter {
get { return filter_; }
set {
filter_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetPlanCountRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPlanCountRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Filter, other.Filter)) 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 (filter_ != null) hash ^= Filter.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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
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 (filter_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Filter);
}
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 (filter_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetPlanCountRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.Subscription.V1.PlanFilter();
}
Filter.MergeFrom(other.Filter);
}
_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: {
if (filter_ == null) {
Filter = new global::Keyapis.Subscription.V1.PlanFilter();
}
input.ReadMessage(Filter);
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: {
if (filter_ == null) {
Filter = new global::Keyapis.Subscription.V1.PlanFilter();
}
input.ReadMessage(Filter);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения количества технологических планов
///
public sealed partial class GetPlanCountResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPlanCountResponse());
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.Subscription.V1.KeyapisSubscriptionPlanV1Reflection.Descriptor.MessageTypes[8]; }
}
[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 GetPlanCountResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanCountResponse(GetPlanCountResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data;
break;
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPlanCountResponse Clone() {
return new GetPlanCountResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Всего технологических планов
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Data {
get { return HasData ? (int) type_ : 0; }
set {
type_ = value;
typeCase_ = TypeOneofCase.Data;
}
}
/// Gets whether the "data" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasData {
get { return typeCase_ == TypeOneofCase.Data; }
}
/// Clears the value of the oneof if it's currently set to "data"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearData() {
if (HasData) {
ClearType();
}
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.GetPlanCountResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.GetPlanCountResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
Error = 2,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetPlanCountResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPlanCountResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Data != other.Data) return false;
if (!object.Equals(Error, other.Error)) return false;
if (TypeCase != other.TypeCase) 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 (HasData) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
hash ^= (int) typeCase_;
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 (HasData) {
output.WriteRawTag(8);
output.WriteInt32(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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 (HasData) {
output.WriteRawTag(8);
output.WriteInt32(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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 (HasData) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetPlanCountResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data;
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Subscription.V1.GetPlanCountResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
}
_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 8: {
Data = input.ReadInt32();
break;
}
case 18: {
global::Keyapis.Subscription.V1.GetPlanCountResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetPlanCountResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
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 8: {
Data = input.ReadInt32();
break;
}
case 18: {
global::Keyapis.Subscription.V1.GetPlanCountResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetPlanCountResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the GetPlanCountResponse message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибка запроса получения количества технологических планов
///
public sealed partial class Error : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error());
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.Subscription.V1.GetPlanCountResponse.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 Error() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error(Error other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.PlanFilterValidation:
PlanFilterValidation = other.PlanFilterValidation.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error Clone() {
return new Error(this);
}
/// Field number for the "plan_filter_validation" field.
public const int PlanFilterValidationFieldNumber = 1;
///
/// Ошибка фильтрации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError PlanFilterValidation {
get { return reasonCase_ == ReasonOneofCase.PlanFilterValidation ? (global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PlanFilterValidation;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
PlanFilterValidation = 1,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(PlanFilterValidation, other.PlanFilterValidation)) return false;
if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.PlanFilterValidation) hash ^= PlanFilterValidation.GetHashCode();
hash ^= (int) reasonCase_;
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 (reasonCase_ == ReasonOneofCase.PlanFilterValidation) {
output.WriteRawTag(10);
output.WriteMessage(PlanFilterValidation);
}
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 (reasonCase_ == ReasonOneofCase.PlanFilterValidation) {
output.WriteRawTag(10);
output.WriteMessage(PlanFilterValidation);
}
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 (reasonCase_ == ReasonOneofCase.PlanFilterValidation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlanFilterValidation);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Error other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.PlanFilterValidation:
if (PlanFilterValidation == null) {
PlanFilterValidation = new global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError();
}
PlanFilterValidation.MergeFrom(other.PlanFilterValidation);
break;
}
_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: {
global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PlanFilterValidation) {
subBuilder.MergeFrom(PlanFilterValidation);
}
input.ReadMessage(subBuilder);
PlanFilterValidation = subBuilder;
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: {
global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PlanFilter.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PlanFilterValidation) {
subBuilder.MergeFrom(PlanFilterValidation);
}
input.ReadMessage(subBuilder);
PlanFilterValidation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
#endregion
}
#endregion Designer generated code