//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/subscription/v1/keyapis_subscription_privilege_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_privilege_v1.proto
public static partial class KeyapisSubscriptionPrivilegeV1Reflection {
#region Descriptor
/// File descriptor for keyapis/subscription/v1/keyapis_subscription_privilege_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisSubscriptionPrivilegeV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cj9rZXlhcGlzL3N1YnNjcmlwdGlvbi92MS9rZXlhcGlzX3N1YnNjcmlwdGlv",
"bl9wcml2aWxlZ2VfdjEucHJvdG8SF2tleWFwaXMuc3Vic2NyaXB0aW9uLnYx",
"Ghxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9nb29nbGUvYXBpL2Zp",
"ZWxkX2JlaGF2aW9yLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRv",
"ci5wcm90byK4BgoJUHJpdmlsZWdlEhIKBW9ycG9uGAEgASgDQgPgQQISGAoL",
"ZmxhdF9udW1iZXIYAiABKAlCA+BBAhI6CgR0eXBlGAMgASgOMicua2V5YXBp",
"cy5zdWJzY3JpcHRpb24udjEuUHJpdmlsZWdlLlR5cGVCA+BBAhJFCgpzdGF0",
"ZV90eXBlGAQgASgOMiwua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuUHJpdmls",
"ZWdlLlN0YXRlVHlwZUID4EECIpEECgRUeXBlEhAKDFRZUEVfVU5LTk9XThAA",
"EhAKDElOVEVSQ09NX1VTRRABEhEKDUlOVEVSQ09NX09QRU4QAhIVChFJTlRF",
"UkNPTV9DT0RFX1VTRRADEhUKEUlOVEVSQ09NX1JGSURfVVNFEAQSFgoSSU5U",
"RVJDT01fRVZFTlRfVVNFEAUSFwoTSU5URVJDT01fQ0FNRVJBX1VTRRAGEhsK",
"F0lOVEVSQ09NX0NBTUVSQV9BUkNISVZFEAcSHQoZSU5URVJDT01fQ0FMTFJF",
"RElSRUNUX0FQUBAIEh4KGklOVEVSQ09NX0NBTExSRURJUkVDVF9QU1ROEAkS",
"HQoZSU5URVJDT01fQ0FMTFJFRElSRUNUX1NJUBAKEg8KC0JBUlJJRVJfVVNF",
"EAsSEAoMQkFSUklFUl9PUEVOEAwSFAoQQkFSUklFUl9DT0RFX1VTRRANEhUK",
"EUJBUlJJRVJfRVZFTlRfVVNFEA4SFgoSQkFSUklFUl9DQU1FUkFfVVNFEA8S",
"GgoWQkFSUklFUl9DQU1FUkFfQVJDSElWRRAQEgoKBkZSX1VTRRAREhEKDVRF",
"TEVNRVRSWV9VU0UQEhIOCgpDQU1FUkFfVVNFEBMSEgoOQ0FNRVJBX0FSQ0hJ",
"VkUQFBIbChdJTlRFUkNPTV9DTVNfUEhPTkVTX1VTRRAVEhQKEENBTUVSQV9F",
"VkVOVF9VU0UQFiJmCglTdGF0ZVR5cGUSFgoSU1RBVEVfVFlQRV9VTktOT1dO",
"EAASDwoLQ0FOX0JFX1BBSUQQARIMCghOT1RfUEFJRBACEg0KCVRVUk5TX09G",
"RhADEgkKBVBST01PEAQSCAoEUEFJRBAFIrYDCg9Qcml2aWxlZ2VGaWx0ZXIS",
"DgoGb3Jwb25zGAEgAygDEhQKDGZsYXRfbnVtYmVycxgCIAMoCRI2CgV0eXBl",
"cxgDIAMoDjInLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlByaXZpbGVnZS5U",
"eXBlEkEKC3N0YXRlX3R5cGVzGAQgAygOMiwua2V5YXBpcy5zdWJzY3JpcHRp",
"b24udjEuUHJpdmlsZWdlLlN0YXRlVHlwZRqBAgoPVmFsaWRhdGlvbkVycm9y",
"ElgKBm9ycG9ucxgBIAEoCzJGLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlBy",
"aXZpbGVnZUZpbHRlci5WYWxpZGF0aW9uRXJyb3IuT3Jwb25zSW52YWxpZEgA",
"EmMKDGZsYXRfbnVtYmVycxgCIAEoCzJLLmtleWFwaXMuc3Vic2NyaXB0aW9u",
"LnYxLlByaXZpbGVnZUZpbHRlci5WYWxpZGF0aW9uRXJyb3IuRmxhdE51bWJl",
"cnNJbnZhbGlkSAAaDwoNT3Jwb25zSW52YWxpZBoUChJGbGF0TnVtYmVyc0lu",
"dmFsaWRCCAoGcmVhc29uIrEECg9Qcml2aWxlZ2VQYWdpbmcSSwoNb3JkZXJf",
"YnlfdHlwZRgBIAEoDjI0LmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlByaXZp",
"bGVnZVBhZ2luZy5PcmRlckJ5VHlwZRJOCg5kaXJlY3Rpb25fdHlwZRgCIAEo",
"DjI2LmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlByaXZpbGVnZVBhZ2luZy5E",
"aXJlY3Rpb25UeXBlEg0KBWxpbWl0GAMgASgFEg4KBm9mZnNldBgEIAEoBRru",
"AQoPVmFsaWRhdGlvbkVycm9yElYKBWxpbWl0GAEgASgLMkUua2V5YXBpcy5z",
"dWJzY3JpcHRpb24udjEuUHJpdmlsZWdlUGFnaW5nLlZhbGlkYXRpb25FcnJv",
"ci5MaW1pdEludmFsaWRIABJYCgZvZmZzZXQYAiABKAsyRi5rZXlhcGlzLnN1",
"YnNjcmlwdGlvbi52MS5Qcml2aWxlZ2VQYWdpbmcuVmFsaWRhdGlvbkVycm9y",
"Lk9mZnNldEludmFsaWRIABoOCgxMaW1pdEludmFsaWQaDwoNT2Zmc2V0SW52",
"YWxpZEIICgZyZWFzb24iMQoLT3JkZXJCeVR5cGUSGQoVT1JERVJfQllfVFlQ",
"RV9VTktOT1dOEAASBwoDS0VZEAEiPgoNRGlyZWN0aW9uVHlwZRIaChZESVJF",
"Q1RJT05fVFlQRV9VTktOT1dOEAASCAoEREVTQxABEgcKA0FTQxACIp0BChdH",
"ZXRQcml2aWxlZ2VMaXN0UmVxdWVzdBI4CgZmaWx0ZXIYASABKAsyKC5rZXlh",
"cGlzLnN1YnNjcmlwdGlvbi52MS5Qcml2aWxlZ2VGaWx0ZXISOgoGcGFnaW5n",
"GAIgASgLMigua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuUHJpdmlsZWdlUGFn",
"aW5nSABCDAoKcGFnaW5hdGlvbiL2AgoYR2V0UHJpdmlsZWdlTGlzdFJlc3Bv",
"bnNlEjIKBGRhdGEYASABKAsyIi5rZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5Q",
"cml2aWxlZ2VIABJICgVlcnJvchgCIAEoCzI3LmtleWFwaXMuc3Vic2NyaXB0",
"aW9uLnYxLkdldFByaXZpbGVnZUxpc3RSZXNwb25zZS5FcnJvckgAGtMBCgVF",
"cnJvchJfChtwcml2aWxlZ2VfZmlsdGVyX3ZhbGlkYXRpb24YASABKAsyOC5r",
"ZXlhcGlzLnN1YnNjcmlwdGlvbi52MS5Qcml2aWxlZ2VGaWx0ZXIuVmFsaWRh",
"dGlvbkVycm9ySAASXwobcHJpdmlsZWdlX3BhZ2luZ192YWxpZGF0aW9uGAIg",
"ASgLMjgua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuUHJpdmlsZWdlUGFnaW5n",
"LlZhbGlkYXRpb25FcnJvckgAQggKBnJlYXNvbkIGCgR0eXBlIlQKGEdldFBy",
"aXZpbGVnZUNvdW50UmVxdWVzdBI4CgZmaWx0ZXIYASABKAsyKC5rZXlhcGlz",
"LnN1YnNjcmlwdGlvbi52MS5Qcml2aWxlZ2VGaWx0ZXIi8gEKGUdldFByaXZp",
"bGVnZUNvdW50UmVzcG9uc2USDgoEZGF0YRgBIAEoBUgAEkkKBWVycm9yGAIg",
"ASgLMjgua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuR2V0UHJpdmlsZWdlQ291",
"bnRSZXNwb25zZS5FcnJvckgAGnIKBUVycm9yEl8KG3ByaXZpbGVnZV9maWx0",
"ZXJfdmFsaWRhdGlvbhgBIAEoCzI4LmtleWFwaXMuc3Vic2NyaXB0aW9uLnYx",
"LlByaXZpbGVnZUZpbHRlci5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb25C",
"BgoEdHlwZSKOAQoYR2V0UHJpdmlsZWdlQ2hlY2tSZXF1ZXN0EhIKBW9ycG9u",
"GAEgASgDQgPgQQISGAoLZmxhdF9udW1iZXIYAiABKAlCA+BBAhJECg5wcml2",
"aWxlZ2VfdHlwZRgDIAEoDjInLmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxLlBy",
"aXZpbGVnZS5UeXBlQgPgQQIiMwoZR2V0UHJpdmlsZWdlQ2hlY2tSZXNwb25z",
"ZRIOCgRkYXRhGAEgASgISABCBgoEdHlwZTK4BAoQUHJpdmlsZWdlU2Vydmlj",
"ZRKmAQoQR2V0UHJpdmlsZWdlTGlzdBIwLmtleWFwaXMuc3Vic2NyaXB0aW9u",
"LnYxLkdldFByaXZpbGVnZUxpc3RSZXF1ZXN0GjEua2V5YXBpcy5zdWJzY3Jp",
"cHRpb24udjEuR2V0UHJpdmlsZWdlTGlzdFJlc3BvbnNlIiuC0+STAiUSIy9z",
"dWJzY3JpcHRpb24vYXBpL3YxL3ByaXZpbGVnZS9saXN0MAESqAEKEUdldFBy",
"aXZpbGVnZUNvdW50EjEua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuR2V0UHJp",
"dmlsZWdlQ291bnRSZXF1ZXN0GjIua2V5YXBpcy5zdWJzY3JpcHRpb24udjEu",
"R2V0UHJpdmlsZWdlQ291bnRSZXNwb25zZSIsgtPkkwImEiQvc3Vic2NyaXB0",
"aW9uL2FwaS92MS9wcml2aWxlZ2UvY291bnQSzwEKEUdldFByaXZpbGVnZUNo",
"ZWNrEjEua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuR2V0UHJpdmlsZWdlQ2hl",
"Y2tSZXF1ZXN0GjIua2V5YXBpcy5zdWJzY3JpcHRpb24udjEuR2V0UHJpdmls",
"ZWdlQ2hlY2tSZXNwb25zZSJTgtPkkwJNEksvc3Vic2NyaXB0aW9uL2FwaS92",
"MS9wcml2aWxlZ2UvY2hlY2sve29ycG9ufS97ZmxhdF9udW1iZXJ9L3twcml2",
"aWxlZ2VfdHlwZX1CxAEKGnJ1LmtleWFwaXMuc3Vic2NyaXB0aW9uLnYxQhpL",
"ZXlhcGlzU3Vic2NyaXB0aW9uVjFQcm90b0gDUABaGC9rZXlhcGlzX3N1YnNj",
"cmlwdGlvbl92MdgBAfgBAaICFUtFWUFQSVNTVUJTQ1JJUFRJT05WMaoCF0tl",
"eWFwaXMuU3Vic2NyaXB0aW9uLlYxygIXS2V5YXBpc1xTdWJzY3JpcHRpb25c",
"VjHqAhlLZXlhcGlzOjpTdWJzY3JpcHRpb246OlYxYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.Privilege), global::Keyapis.Subscription.V1.Privilege.Parser, new[]{ "Orpon", "FlatNumber", "Type", "StateType" }, null, new[]{ typeof(global::Keyapis.Subscription.V1.Privilege.Types.Type), typeof(global::Keyapis.Subscription.V1.Privilege.Types.StateType) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PrivilegeFilter), global::Keyapis.Subscription.V1.PrivilegeFilter.Parser, new[]{ "Orpons", "FlatNumbers", "Types_", "StateTypes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError), global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Parser, new[]{ "Orpons", "FlatNumbers" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.OrponsInvalid), global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.OrponsInvalid.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.FlatNumbersInvalid), global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.FlatNumbersInvalid.Parser, null, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PrivilegePaging), global::Keyapis.Subscription.V1.PrivilegePaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.Subscription.V1.PrivilegePaging.Types.OrderByType), typeof(global::Keyapis.Subscription.V1.PrivilegePaging.Types.DirectionType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError), global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError.Parser, new[]{ "Limit", "Offset" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError.Types.LimitInvalid), global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError.Types.LimitInvalid.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError.Types.OffsetInvalid), global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError.Types.OffsetInvalid.Parser, null, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPrivilegeListRequest), global::Keyapis.Subscription.V1.GetPrivilegeListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPrivilegeListResponse), global::Keyapis.Subscription.V1.GetPrivilegeListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPrivilegeListResponse.Types.Error), global::Keyapis.Subscription.V1.GetPrivilegeListResponse.Types.Error.Parser, new[]{ "PrivilegeFilterValidation", "PrivilegePagingValidation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPrivilegeCountRequest), global::Keyapis.Subscription.V1.GetPrivilegeCountRequest.Parser, new[]{ "Filter" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPrivilegeCountResponse), global::Keyapis.Subscription.V1.GetPrivilegeCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPrivilegeCountResponse.Types.Error), global::Keyapis.Subscription.V1.GetPrivilegeCountResponse.Types.Error.Parser, new[]{ "PrivilegeFilterValidation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPrivilegeCheckRequest), global::Keyapis.Subscription.V1.GetPrivilegeCheckRequest.Parser, new[]{ "Orpon", "FlatNumber", "PrivilegeType" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Subscription.V1.GetPrivilegeCheckResponse), global::Keyapis.Subscription.V1.GetPrivilegeCheckResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null)
}));
}
#endregion
}
#region Messages
///
/// Привилегия
///
public sealed partial class Privilege : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Privilege());
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.KeyapisSubscriptionPrivilegeV1Reflection.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 Privilege() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Privilege(Privilege other) : this() {
orpon_ = other.orpon_;
flatNumber_ = other.flatNumber_;
type_ = other.type_;
stateType_ = other.stateType_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Privilege Clone() {
return new Privilege(this);
}
/// Field number for the "orpon" field.
public const int OrponFieldNumber = 1;
private long orpon_;
///
/// ОРПОН.
/// Идентификатор дома.
/// Уникальный ключ: поля в порядке 1,2,3
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long Orpon {
get { return orpon_; }
set {
orpon_ = value;
}
}
/// Field number for the "flat_number" field.
public const int FlatNumberFieldNumber = 2;
private string flatNumber_ = "";
///
/// Номер квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string FlatNumber {
get { return flatNumber_; }
set {
flatNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "type" field.
public const int TypeFieldNumber = 3;
private global::Keyapis.Subscription.V1.Privilege.Types.Type type_ = global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown;
///
/// Тип привилегии
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.Privilege.Types.Type Type {
get { return type_; }
set {
type_ = value;
}
}
/// Field number for the "state_type" field.
public const int StateTypeFieldNumber = 4;
private global::Keyapis.Subscription.V1.Privilege.Types.StateType stateType_ = global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown;
///
/// Состояние привилегии
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.Privilege.Types.StateType StateType {
get { return stateType_; }
set {
stateType_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Privilege);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Privilege other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Orpon != other.Orpon) return false;
if (FlatNumber != other.FlatNumber) return false;
if (Type != other.Type) return false;
if (StateType != other.StateType) 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 (Orpon != 0L) hash ^= Orpon.GetHashCode();
if (FlatNumber.Length != 0) hash ^= FlatNumber.GetHashCode();
if (Type != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) hash ^= Type.GetHashCode();
if (StateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) hash ^= StateType.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 (Orpon != 0L) {
output.WriteRawTag(8);
output.WriteInt64(Orpon);
}
if (FlatNumber.Length != 0) {
output.WriteRawTag(18);
output.WriteString(FlatNumber);
}
if (Type != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) Type);
}
if (StateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) {
output.WriteRawTag(32);
output.WriteEnum((int) StateType);
}
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 (Orpon != 0L) {
output.WriteRawTag(8);
output.WriteInt64(Orpon);
}
if (FlatNumber.Length != 0) {
output.WriteRawTag(18);
output.WriteString(FlatNumber);
}
if (Type != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) Type);
}
if (StateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) {
output.WriteRawTag(32);
output.WriteEnum((int) StateType);
}
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 (Orpon != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon);
}
if (FlatNumber.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(FlatNumber);
}
if (Type != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (StateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StateType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Privilege other) {
if (other == null) {
return;
}
if (other.Orpon != 0L) {
Orpon = other.Orpon;
}
if (other.FlatNumber.Length != 0) {
FlatNumber = other.FlatNumber;
}
if (other.Type != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) {
Type = other.Type;
}
if (other.StateType != global::Keyapis.Subscription.V1.Privilege.Types.StateType.Unknown) {
StateType = other.StateType;
}
_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: {
Orpon = input.ReadInt64();
break;
}
case 18: {
FlatNumber = input.ReadString();
break;
}
case 24: {
Type = (global::Keyapis.Subscription.V1.Privilege.Types.Type) input.ReadEnum();
break;
}
case 32: {
StateType = (global::Keyapis.Subscription.V1.Privilege.Types.StateType) input.ReadEnum();
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: {
Orpon = input.ReadInt64();
break;
}
case 18: {
FlatNumber = input.ReadString();
break;
}
case 24: {
Type = (global::Keyapis.Subscription.V1.Privilege.Types.Type) input.ReadEnum();
break;
}
case 32: {
StateType = (global::Keyapis.Subscription.V1.Privilege.Types.StateType) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Privilege message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Типы привилегий
///
public enum Type {
///
/// Значение не указано
///
[pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0,
///
/// Умный домофон.
/// Базовые функции.
/// Право доступа к разделу с домофонами и калиткаи.
/// Действие.
/// Закрывает услуги: get_devices_intercom
///
[pbr::OriginalName("INTERCOM_USE")] IntercomUse = 1,
///
/// Умный домофон.
/// Базовые функции.
/// Право использовать функционал открытия двери домофона и калитки.
/// Действие.
/// Закрывает услуги: post_devices_open_intercom
///
[pbr::OriginalName("INTERCOM_OPEN")] IntercomOpen = 2,
///
/// Умный домофон.
/// Коды.
/// Право использовать функционал кодов домофонов и калиток.
/// Действие.
/// Закрывает услуги: get_devices_codes_intercom, post_devices_codes_intercom, delete_devices_codes_intercom
///
[pbr::OriginalName("INTERCOM_CODE_USE")] IntercomCodeUse = 3,
///
/// Умный домофон.
/// Ключи.
/// Право использовать функционал физических ключей домофонов и калиток.
/// Действие.
/// Закрывает услуги: get_devices_rfids_intercom, post_devices_rfids_barrier, delete_devices_rfids_barrier
///
[pbr::OriginalName("INTERCOM_RFID_USE")] IntercomRfidUse = 4,
///
/// Умный домофон.
/// События.
/// Право использовать функционал журнала событий домофонов и калиток.
/// Действие.
/// Закрывает услуги: get_events_intercom
///
[pbr::OriginalName("INTERCOM_EVENT_USE")] IntercomEventUse = 5,
///
/// Умный домофон.
/// Камеры.
/// Право использовать функционал просмотра камер и лайв видео с домофонов и калиток.
/// Действие.
/// Закрывает услуги: get_devices_camera_intercom
///
[pbr::OriginalName("INTERCOM_CAMERA_USE")] IntercomCameraUse = 6,
///
/// Умный домофон.
/// Камеры.
/// Право использовать функционал архива видео с камер домофонов и калиток.
/// Действие.
/// Закрывает услуги: get_video_archive_intercom
///
[pbr::OriginalName("INTERCOM_CAMERA_ARCHIVE")] IntercomCameraArchive = 7,
///
/// Умный домофон.
/// Переадресация.
/// Право перенаправления входящих вызова от домофона в приложения, используется только на сервере.
/// Поведение.
/// Закрывает услуги: devices_call_redirect_to_mobile_app_behavior
///
[pbr::OriginalName("INTERCOM_CALLREDIRECT_APP")] IntercomCallredirectApp = 8,
///
/// Умный домофон.
/// Переадресация.
/// Право перенаправление входящих вызовов от домофона на номера ТФОП, используется только на сервере.
/// Поведение.
/// Закрывает услуги: devices_call_redirect_to_pstn_behavior
///
[pbr::OriginalName("INTERCOM_CALLREDIRECT_PSTN")] IntercomCallredirectPstn = 9,
///
/// Умный домофон.
/// Переадресация.
/// Право перенаправление входящих вызовов от домофона на номера SIP, используется только на сервере.
/// Поведение.
/// Закрывает услуги: devices_call_redirect_to_sip_behavior
///
[pbr::OriginalName("INTERCOM_CALLREDIRECT_SIP")] IntercomCallredirectSip = 10,
///
/// Умный шлагбаум.
/// Базовые функции.
/// Право доступа к разделу шлагбаумов.
/// Действие.
/// Закрывает услуги: get_devices_barrier
///
[pbr::OriginalName("BARRIER_USE")] BarrierUse = 11,
///
/// Умный шлагбаум.
/// Базовые функции.
/// Право использовать функционала поднятия стрелы шлагбаума.
/// Действие.
/// Закрывает услуги: post_devices_open_barrier
///
[pbr::OriginalName("BARRIER_OPEN")] BarrierOpen = 12,
///
/// Умный шлагбаум.
/// Коды.
/// Право использовать функционал открытия шлагбаума по звонку на короткий номер.
/// Действие.
/// Закрывает услуги: get_devices_codes_barrier, post_devices_codes_barrier, delete_devices_codes_barrier
///
[pbr::OriginalName("BARRIER_CODE_USE")] BarrierCodeUse = 13,
///
/// Умный шлагбаум.
/// События.
/// Право использовать функционал журнала событий шлагбаума.
/// Действие.
/// Закрывает услуги: get_events_barrier
///
[pbr::OriginalName("BARRIER_EVENT_USE")] BarrierEventUse = 14,
///
/// Умный шлагбаум.
/// Камеры.
/// Право использовать функционал просмотра камер и лайв видео с шлагбаумов.
/// Действие.
/// Закрывает услуги: get_devices_camera_barrier
///
[pbr::OriginalName("BARRIER_CAMERA_USE")] BarrierCameraUse = 15,
///
/// Умный шлагбаум.
/// Камеры.
/// Право использовать функционал архива видео с камер, направленных на шлагбаум.
/// Действие.
/// Закрывает услуги: get_video_archive_barrier
///
[pbr::OriginalName("BARRIER_CAMERA_ARCHIVE")] BarrierCameraArchive = 16,
///
/// Распознавание лица.
/// Фото.
/// Право доступа к разделу распознавания лиц.
/// Действие.
/// Закрывает услуги: get_photo_fr_intercom, fr_intercom_access_behavior, post_photo_fr_intercom, delete_photo_fr_intercom
///
[pbr::OriginalName("FR_USE")] FrUse = 17,
///
/// Телеметрия.
/// Базовые функции.
/// Право доступа к разделу показаний приборов учёта.
/// Действие.
/// Закрывает услуги: get_telemetry_rooms_layout
///
[pbr::OriginalName("TELEMETRY_USE")] TelemetryUse = 18,
///
/// Камеры.
/// Базовые функции.
/// Право доступа к разделу камер и лайв видео с них.
/// Действие.
/// Закрывает услуги: get_devices_camera, get_events_camera, get_devices_camera_access_control_panel, get_devices_camera_barrier, get_devices_camera_intercom
///
[pbr::OriginalName("CAMERA_USE")] CameraUse = 19,
///
/// Камеры.
/// Базовые функции.
/// Право использовать функционал архива видео с камер видеонаблюдения.
/// Действие.
/// Закрывает услуги: get_video_archive, get_video_archive_access_control_panel
///
[pbr::OriginalName("CAMERA_ARCHIVE")] CameraArchive = 20,
///
/// Умный домофон.
/// Переадресация.
/// Право приёма входящих вызовов от домофона на аналоговую трубку, используется только на сервере.
/// Поведение.
/// Закрывает услуги: devices_call_to_cms_phones_behavior
///
[pbr::OriginalName("INTERCOM_CMS_PHONES_USE")] IntercomCmsPhonesUse = 21,
///
/// Умный домофон.
/// Переадресация.
/// Право приёма входящих вызовов от домофона на аналоговую трубку, используется только на сервере.
/// Поведение.
/// Закрывает услуги: get_events_camera
///
[pbr::OriginalName("CAMERA_EVENT_USE")] CameraEventUse = 22,
}
///
/// Типы состояний привилегий
///
public enum StateType {
///
/// Значение не указано
///
[pbr::OriginalName("STATE_TYPE_UNKNOWN")] Unknown = 0,
///
/// Услуга доступная для подключения на доме пользователя, но не активна.
/// Услуга есть в доступных КВ на ОРПОН, но её нет у пользователя
///
[pbr::OriginalName("CAN_BE_PAID")] CanBePaid = 1,
///
/// Услуга не оплачена и не активна.
/// Услуга есть в подписке в статусе: BLOCKED
///
[pbr::OriginalName("NOT_PAID")] NotPaid = 2,
///
/// Услуга отключается, но ещё активна.
/// Услуга есть в подписке в статусе: SCHEDULED_CANCELED
///
[pbr::OriginalName("TURNS_OFF")] TurnsOff = 3,
///
/// Услуга в промо-периоде и активна.
/// Услуга есть в подписке в статусе: SETUP.
/// Обычно так создают промоподписки
///
[pbr::OriginalName("PROMO")] Promo = 4,
///
/// Услуга оплачена и активна.
/// Услуга есть в подписке в статусе: ACTIVE.
/// Либо услуга есть в подписке с неблокируемой услугой
///
[pbr::OriginalName("PAID")] Paid = 5,
}
}
#endregion
}
///
/// Фильтр по привилегиям
///
public sealed partial class PrivilegeFilter : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrivilegeFilter());
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.KeyapisSubscriptionPrivilegeV1Reflection.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 PrivilegeFilter() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PrivilegeFilter(PrivilegeFilter other) : this() {
orpons_ = other.orpons_.Clone();
flatNumbers_ = other.flatNumbers_.Clone();
types_ = other.types_.Clone();
stateTypes_ = other.stateTypes_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PrivilegeFilter Clone() {
return new PrivilegeFilter(this);
}
/// Field number for the "orpons" field.
public const int OrponsFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_orpons_codec
= pb::FieldCodec.ForInt64(10);
private readonly pbc::RepeatedField orpons_ = new pbc::RepeatedField();
///
/// По ОРПОНам
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Orpons {
get { return orpons_; }
}
/// Field number for the "flat_numbers" field.
public const int FlatNumbersFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_flatNumbers_codec
= pb::FieldCodec.ForString(18);
private readonly pbc::RepeatedField flatNumbers_ = new pbc::RepeatedField();
///
/// Номера квартир
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField FlatNumbers {
get { return flatNumbers_; }
}
/// Field number for the "types" field.
public const int Types_FieldNumber = 3;
private static readonly pb::FieldCodec _repeated_types_codec
= pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::Keyapis.Subscription.V1.Privilege.Types.Type) x);
private readonly pbc::RepeatedField types_ = new pbc::RepeatedField();
///
/// По типам привилегий
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Types_ {
get { return types_; }
}
/// Field number for the "state_types" field.
public const int StateTypesFieldNumber = 4;
private static readonly pb::FieldCodec _repeated_stateTypes_codec
= pb::FieldCodec.ForEnum(34, x => (int) x, x => (global::Keyapis.Subscription.V1.Privilege.Types.StateType) x);
private readonly pbc::RepeatedField stateTypes_ = new pbc::RepeatedField();
///
/// По состояниям привилегий
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField StateTypes {
get { return stateTypes_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PrivilegeFilter);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PrivilegeFilter other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!orpons_.Equals(other.orpons_)) return false;
if(!flatNumbers_.Equals(other.flatNumbers_)) return false;
if(!types_.Equals(other.types_)) return false;
if(!stateTypes_.Equals(other.stateTypes_)) 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;
hash ^= orpons_.GetHashCode();
hash ^= flatNumbers_.GetHashCode();
hash ^= types_.GetHashCode();
hash ^= stateTypes_.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
orpons_.WriteTo(output, _repeated_orpons_codec);
flatNumbers_.WriteTo(output, _repeated_flatNumbers_codec);
types_.WriteTo(output, _repeated_types_codec);
stateTypes_.WriteTo(output, _repeated_stateTypes_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) {
orpons_.WriteTo(ref output, _repeated_orpons_codec);
flatNumbers_.WriteTo(ref output, _repeated_flatNumbers_codec);
types_.WriteTo(ref output, _repeated_types_codec);
stateTypes_.WriteTo(ref output, _repeated_stateTypes_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;
size += orpons_.CalculateSize(_repeated_orpons_codec);
size += flatNumbers_.CalculateSize(_repeated_flatNumbers_codec);
size += types_.CalculateSize(_repeated_types_codec);
size += stateTypes_.CalculateSize(_repeated_stateTypes_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PrivilegeFilter other) {
if (other == null) {
return;
}
orpons_.Add(other.orpons_);
flatNumbers_.Add(other.flatNumbers_);
types_.Add(other.types_);
stateTypes_.Add(other.stateTypes_);
_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:
case 8: {
orpons_.AddEntriesFrom(input, _repeated_orpons_codec);
break;
}
case 18: {
flatNumbers_.AddEntriesFrom(input, _repeated_flatNumbers_codec);
break;
}
case 26:
case 24: {
types_.AddEntriesFrom(input, _repeated_types_codec);
break;
}
case 34:
case 32: {
stateTypes_.AddEntriesFrom(input, _repeated_stateTypes_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:
case 8: {
orpons_.AddEntriesFrom(ref input, _repeated_orpons_codec);
break;
}
case 18: {
flatNumbers_.AddEntriesFrom(ref input, _repeated_flatNumbers_codec);
break;
}
case 26:
case 24: {
types_.AddEntriesFrom(ref input, _repeated_types_codec);
break;
}
case 34:
case 32: {
stateTypes_.AddEntriesFrom(ref input, _repeated_stateTypes_codec);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the PrivilegeFilter 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.PrivilegeFilter.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.Orpons:
Orpons = other.Orpons.Clone();
break;
case ReasonOneofCase.FlatNumbers:
FlatNumbers = other.FlatNumbers.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 "orpons" field.
public const int OrponsFieldNumber = 1;
///
/// Формат ОРПОН некорректен
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.OrponsInvalid Orpons {
get { return reasonCase_ == ReasonOneofCase.Orpons ? (global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.OrponsInvalid) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Orpons;
}
}
/// Field number for the "flat_numbers" field.
public const int FlatNumbersFieldNumber = 2;
///
/// Формат квартиры некорректен
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.FlatNumbersInvalid FlatNumbers {
get { return reasonCase_ == ReasonOneofCase.FlatNumbers ? (global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.FlatNumbersInvalid) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.FlatNumbers;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
Orpons = 1,
FlatNumbers = 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(Orpons, other.Orpons)) return false;
if (!object.Equals(FlatNumbers, other.FlatNumbers)) 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.Orpons) hash ^= Orpons.GetHashCode();
if (reasonCase_ == ReasonOneofCase.FlatNumbers) hash ^= FlatNumbers.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.Orpons) {
output.WriteRawTag(10);
output.WriteMessage(Orpons);
}
if (reasonCase_ == ReasonOneofCase.FlatNumbers) {
output.WriteRawTag(18);
output.WriteMessage(FlatNumbers);
}
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.Orpons) {
output.WriteRawTag(10);
output.WriteMessage(Orpons);
}
if (reasonCase_ == ReasonOneofCase.FlatNumbers) {
output.WriteRawTag(18);
output.WriteMessage(FlatNumbers);
}
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.Orpons) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Orpons);
}
if (reasonCase_ == ReasonOneofCase.FlatNumbers) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(FlatNumbers);
}
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.Orpons:
if (Orpons == null) {
Orpons = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.OrponsInvalid();
}
Orpons.MergeFrom(other.Orpons);
break;
case ReasonOneofCase.FlatNumbers:
if (FlatNumbers == null) {
FlatNumbers = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.FlatNumbersInvalid();
}
FlatNumbers.MergeFrom(other.FlatNumbers);
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.PrivilegeFilter.Types.ValidationError.Types.OrponsInvalid subBuilder = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.OrponsInvalid();
if (reasonCase_ == ReasonOneofCase.Orpons) {
subBuilder.MergeFrom(Orpons);
}
input.ReadMessage(subBuilder);
Orpons = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.FlatNumbersInvalid subBuilder = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.FlatNumbersInvalid();
if (reasonCase_ == ReasonOneofCase.FlatNumbers) {
subBuilder.MergeFrom(FlatNumbers);
}
input.ReadMessage(subBuilder);
FlatNumbers = 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.PrivilegeFilter.Types.ValidationError.Types.OrponsInvalid subBuilder = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.OrponsInvalid();
if (reasonCase_ == ReasonOneofCase.Orpons) {
subBuilder.MergeFrom(Orpons);
}
input.ReadMessage(subBuilder);
Orpons = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.FlatNumbersInvalid subBuilder = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError.Types.FlatNumbersInvalid();
if (reasonCase_ == ReasonOneofCase.FlatNumbers) {
subBuilder.MergeFrom(FlatNumbers);
}
input.ReadMessage(subBuilder);
FlatNumbers = 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 {
///
/// Причины:
/// - Формат ОРПОН некорректен;
/// - Передано отрицательное значение
///
public sealed partial class OrponsInvalid : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OrponsInvalid());
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.PrivilegeFilter.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 OrponsInvalid() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OrponsInvalid(OrponsInvalid other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OrponsInvalid Clone() {
return new OrponsInvalid(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OrponsInvalid);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OrponsInvalid 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(OrponsInvalid 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
}
///
/// Причины:
/// - Формат квартиры некорректен (например, длина номера квартира более 4 знаков);
/// - Номер квартиры содержит буквы
///
public sealed partial class FlatNumbersInvalid : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlatNumbersInvalid());
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.PrivilegeFilter.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 FlatNumbersInvalid() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FlatNumbersInvalid(FlatNumbersInvalid other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FlatNumbersInvalid Clone() {
return new FlatNumbersInvalid(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as FlatNumbersInvalid);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(FlatNumbersInvalid 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(FlatNumbersInvalid 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 PrivilegePaging : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrivilegePaging());
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.KeyapisSubscriptionPrivilegeV1Reflection.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 PrivilegePaging() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PrivilegePaging(PrivilegePaging 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 PrivilegePaging Clone() {
return new PrivilegePaging(this);
}
/// Field number for the "order_by_type" field.
public const int OrderByTypeFieldNumber = 1;
private global::Keyapis.Subscription.V1.PrivilegePaging.Types.OrderByType orderByType_ = global::Keyapis.Subscription.V1.PrivilegePaging.Types.OrderByType.Unknown;
///
/// Тип значения сортировки.
/// По умолчанию: KEY
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.Types.DirectionType directionType_ = global::Keyapis.Subscription.V1.PrivilegePaging.Types.DirectionType.Unknown;
///
/// Тип направления сортировки.
/// По умолчанию: DESC
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PrivilegePaging.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 PrivilegePaging);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PrivilegePaging 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.PrivilegePaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode();
if (DirectionType != global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.Types.OrderByType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType);
}
if (DirectionType != global::Keyapis.Subscription.V1.PrivilegePaging.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(PrivilegePaging other) {
if (other == null) {
return;
}
if (other.OrderByType != global::Keyapis.Subscription.V1.PrivilegePaging.Types.OrderByType.Unknown) {
OrderByType = other.OrderByType;
}
if (other.DirectionType != global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.Subscription.V1.PrivilegePaging.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 PrivilegePaging 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,
///
/// По уникальному ключу: orpon+flat_number+type
///
[pbr::OriginalName("KEY")] Key = 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.PrivilegePaging.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.PrivilegePaging.Types.ValidationError.Types.LimitInvalid Limit {
get { return reasonCase_ == ReasonOneofCase.Limit ? (global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.Types.ValidationError.Types.OffsetInvalid Offset {
get { return reasonCase_ == ReasonOneofCase.Offset ? (global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.Types.ValidationError.Types.LimitInvalid();
}
Limit.MergeFrom(other.Limit);
break;
case ReasonOneofCase.Offset:
if (Offset == null) {
Offset = new global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.Types.ValidationError.Types.LimitInvalid subBuilder = new global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError.Types.LimitInvalid();
if (reasonCase_ == ReasonOneofCase.Limit) {
subBuilder.MergeFrom(Limit);
}
input.ReadMessage(subBuilder);
Limit = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError.Types.OffsetInvalid subBuilder = new global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.Types.ValidationError.Types.LimitInvalid subBuilder = new global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError.Types.LimitInvalid();
if (reasonCase_ == ReasonOneofCase.Limit) {
subBuilder.MergeFrom(Limit);
}
input.ReadMessage(subBuilder);
Limit = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError.Types.OffsetInvalid subBuilder = new global::Keyapis.Subscription.V1.PrivilegePaging.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.PrivilegePaging.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.PrivilegePaging.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 GetPrivilegeListRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPrivilegeListRequest());
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.KeyapisSubscriptionPrivilegeV1Reflection.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 GetPrivilegeListRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPrivilegeListRequest(GetPrivilegeListRequest 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 GetPrivilegeListRequest Clone() {
return new GetPrivilegeListRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.Subscription.V1.PrivilegeFilter filter_;
///
/// Фильтр
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PrivilegeFilter 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.PrivilegePaging Paging {
get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.Subscription.V1.PrivilegePaging) 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 GetPrivilegeListRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPrivilegeListRequest 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(GetPrivilegeListRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.Subscription.V1.PrivilegeFilter();
}
Filter.MergeFrom(other.Filter);
}
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
if (Paging == null) {
Paging = new global::Keyapis.Subscription.V1.PrivilegePaging();
}
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.PrivilegeFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.Subscription.V1.PrivilegePaging subBuilder = new global::Keyapis.Subscription.V1.PrivilegePaging();
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.PrivilegeFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.Subscription.V1.PrivilegePaging subBuilder = new global::Keyapis.Subscription.V1.PrivilegePaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения привилегий
///
public sealed partial class GetPrivilegeListResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPrivilegeListResponse());
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.KeyapisSubscriptionPrivilegeV1Reflection.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 GetPrivilegeListResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPrivilegeListResponse(GetPrivilegeListResponse 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 GetPrivilegeListResponse Clone() {
return new GetPrivilegeListResponse(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.Privilege Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Subscription.V1.Privilege) 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.GetPrivilegeListResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.GetPrivilegeListResponse.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 GetPrivilegeListResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPrivilegeListResponse 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(GetPrivilegeListResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Subscription.V1.Privilege();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Subscription.V1.GetPrivilegeListResponse.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.Privilege subBuilder = new global::Keyapis.Subscription.V1.Privilege();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.GetPrivilegeListResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetPrivilegeListResponse.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.Privilege subBuilder = new global::Keyapis.Subscription.V1.Privilege();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.GetPrivilegeListResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetPrivilegeListResponse.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 GetPrivilegeListResponse 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.GetPrivilegeListResponse.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.PrivilegeFilterValidation:
PrivilegeFilterValidation = other.PrivilegeFilterValidation.Clone();
break;
case ReasonOneofCase.PrivilegePagingValidation:
PrivilegePagingValidation = other.PrivilegePagingValidation.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 "privilege_filter_validation" field.
public const int PrivilegeFilterValidationFieldNumber = 1;
///
/// Ошибка фильтрации по страницам
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError PrivilegeFilterValidation {
get { return reasonCase_ == ReasonOneofCase.PrivilegeFilterValidation ? (global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PrivilegeFilterValidation;
}
}
/// Field number for the "privilege_paging_validation" field.
public const int PrivilegePagingValidationFieldNumber = 2;
///
/// Ошибка пагинации по страницам
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError PrivilegePagingValidation {
get { return reasonCase_ == ReasonOneofCase.PrivilegePagingValidation ? (global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PrivilegePagingValidation;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
PrivilegeFilterValidation = 1,
PrivilegePagingValidation = 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(PrivilegeFilterValidation, other.PrivilegeFilterValidation)) return false;
if (!object.Equals(PrivilegePagingValidation, other.PrivilegePagingValidation)) 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.PrivilegeFilterValidation) hash ^= PrivilegeFilterValidation.GetHashCode();
if (reasonCase_ == ReasonOneofCase.PrivilegePagingValidation) hash ^= PrivilegePagingValidation.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.PrivilegeFilterValidation) {
output.WriteRawTag(10);
output.WriteMessage(PrivilegeFilterValidation);
}
if (reasonCase_ == ReasonOneofCase.PrivilegePagingValidation) {
output.WriteRawTag(18);
output.WriteMessage(PrivilegePagingValidation);
}
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.PrivilegeFilterValidation) {
output.WriteRawTag(10);
output.WriteMessage(PrivilegeFilterValidation);
}
if (reasonCase_ == ReasonOneofCase.PrivilegePagingValidation) {
output.WriteRawTag(18);
output.WriteMessage(PrivilegePagingValidation);
}
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.PrivilegeFilterValidation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrivilegeFilterValidation);
}
if (reasonCase_ == ReasonOneofCase.PrivilegePagingValidation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrivilegePagingValidation);
}
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.PrivilegeFilterValidation:
if (PrivilegeFilterValidation == null) {
PrivilegeFilterValidation = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError();
}
PrivilegeFilterValidation.MergeFrom(other.PrivilegeFilterValidation);
break;
case ReasonOneofCase.PrivilegePagingValidation:
if (PrivilegePagingValidation == null) {
PrivilegePagingValidation = new global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError();
}
PrivilegePagingValidation.MergeFrom(other.PrivilegePagingValidation);
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.PrivilegeFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PrivilegeFilterValidation) {
subBuilder.MergeFrom(PrivilegeFilterValidation);
}
input.ReadMessage(subBuilder);
PrivilegeFilterValidation = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PrivilegePagingValidation) {
subBuilder.MergeFrom(PrivilegePagingValidation);
}
input.ReadMessage(subBuilder);
PrivilegePagingValidation = 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.PrivilegeFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PrivilegeFilterValidation) {
subBuilder.MergeFrom(PrivilegeFilterValidation);
}
input.ReadMessage(subBuilder);
PrivilegeFilterValidation = subBuilder;
break;
}
case 18: {
global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PrivilegePaging.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PrivilegePagingValidation) {
subBuilder.MergeFrom(PrivilegePagingValidation);
}
input.ReadMessage(subBuilder);
PrivilegePagingValidation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос получения количества привилегий
///
public sealed partial class GetPrivilegeCountRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPrivilegeCountRequest());
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.KeyapisSubscriptionPrivilegeV1Reflection.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 GetPrivilegeCountRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPrivilegeCountRequest(GetPrivilegeCountRequest 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 GetPrivilegeCountRequest Clone() {
return new GetPrivilegeCountRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.Subscription.V1.PrivilegeFilter filter_;
///
/// Фильтр
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PrivilegeFilter 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 GetPrivilegeCountRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPrivilegeCountRequest 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(GetPrivilegeCountRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.Subscription.V1.PrivilegeFilter();
}
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.PrivilegeFilter();
}
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.PrivilegeFilter();
}
input.ReadMessage(Filter);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения количества привилегий
///
public sealed partial class GetPrivilegeCountResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPrivilegeCountResponse());
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.KeyapisSubscriptionPrivilegeV1Reflection.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 GetPrivilegeCountResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPrivilegeCountResponse(GetPrivilegeCountResponse 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 GetPrivilegeCountResponse Clone() {
return new GetPrivilegeCountResponse(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.GetPrivilegeCountResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Subscription.V1.GetPrivilegeCountResponse.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 GetPrivilegeCountResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPrivilegeCountResponse 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(GetPrivilegeCountResponse 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.GetPrivilegeCountResponse.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.GetPrivilegeCountResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetPrivilegeCountResponse.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.GetPrivilegeCountResponse.Types.Error subBuilder = new global::Keyapis.Subscription.V1.GetPrivilegeCountResponse.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 GetPrivilegeCountResponse 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.GetPrivilegeCountResponse.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.PrivilegeFilterValidation:
PrivilegeFilterValidation = other.PrivilegeFilterValidation.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 "privilege_filter_validation" field.
public const int PrivilegeFilterValidationFieldNumber = 1;
///
/// Ошибка фильтрации по страницам по привилегиям
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError PrivilegeFilterValidation {
get { return reasonCase_ == ReasonOneofCase.PrivilegeFilterValidation ? (global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PrivilegeFilterValidation;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
PrivilegeFilterValidation = 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(PrivilegeFilterValidation, other.PrivilegeFilterValidation)) 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.PrivilegeFilterValidation) hash ^= PrivilegeFilterValidation.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.PrivilegeFilterValidation) {
output.WriteRawTag(10);
output.WriteMessage(PrivilegeFilterValidation);
}
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.PrivilegeFilterValidation) {
output.WriteRawTag(10);
output.WriteMessage(PrivilegeFilterValidation);
}
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.PrivilegeFilterValidation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PrivilegeFilterValidation);
}
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.PrivilegeFilterValidation:
if (PrivilegeFilterValidation == null) {
PrivilegeFilterValidation = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError();
}
PrivilegeFilterValidation.MergeFrom(other.PrivilegeFilterValidation);
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.PrivilegeFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PrivilegeFilterValidation) {
subBuilder.MergeFrom(PrivilegeFilterValidation);
}
input.ReadMessage(subBuilder);
PrivilegeFilterValidation = 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.PrivilegeFilter.Types.ValidationError subBuilder = new global::Keyapis.Subscription.V1.PrivilegeFilter.Types.ValidationError();
if (reasonCase_ == ReasonOneofCase.PrivilegeFilterValidation) {
subBuilder.MergeFrom(PrivilegeFilterValidation);
}
input.ReadMessage(subBuilder);
PrivilegeFilterValidation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос проверки предоставленной привилегии
///
public sealed partial class GetPrivilegeCheckRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPrivilegeCheckRequest());
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.KeyapisSubscriptionPrivilegeV1Reflection.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 GetPrivilegeCheckRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPrivilegeCheckRequest(GetPrivilegeCheckRequest other) : this() {
orpon_ = other.orpon_;
flatNumber_ = other.flatNumber_;
privilegeType_ = other.privilegeType_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPrivilegeCheckRequest Clone() {
return new GetPrivilegeCheckRequest(this);
}
/// Field number for the "orpon" field.
public const int OrponFieldNumber = 1;
private long orpon_;
///
/// ОРПОН.
/// Идентификатор дома
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long Orpon {
get { return orpon_; }
set {
orpon_ = value;
}
}
/// Field number for the "flat_number" field.
public const int FlatNumberFieldNumber = 2;
private string flatNumber_ = "";
///
/// Номер квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string FlatNumber {
get { return flatNumber_; }
set {
flatNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "privilege_type" field.
public const int PrivilegeTypeFieldNumber = 3;
private global::Keyapis.Subscription.V1.Privilege.Types.Type privilegeType_ = global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown;
///
/// Тип привилегии
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Subscription.V1.Privilege.Types.Type PrivilegeType {
get { return privilegeType_; }
set {
privilegeType_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetPrivilegeCheckRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPrivilegeCheckRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Orpon != other.Orpon) return false;
if (FlatNumber != other.FlatNumber) return false;
if (PrivilegeType != other.PrivilegeType) 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 (Orpon != 0L) hash ^= Orpon.GetHashCode();
if (FlatNumber.Length != 0) hash ^= FlatNumber.GetHashCode();
if (PrivilegeType != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) hash ^= PrivilegeType.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 (Orpon != 0L) {
output.WriteRawTag(8);
output.WriteInt64(Orpon);
}
if (FlatNumber.Length != 0) {
output.WriteRawTag(18);
output.WriteString(FlatNumber);
}
if (PrivilegeType != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) PrivilegeType);
}
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 (Orpon != 0L) {
output.WriteRawTag(8);
output.WriteInt64(Orpon);
}
if (FlatNumber.Length != 0) {
output.WriteRawTag(18);
output.WriteString(FlatNumber);
}
if (PrivilegeType != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) PrivilegeType);
}
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 (Orpon != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon);
}
if (FlatNumber.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(FlatNumber);
}
if (PrivilegeType != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrivilegeType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetPrivilegeCheckRequest other) {
if (other == null) {
return;
}
if (other.Orpon != 0L) {
Orpon = other.Orpon;
}
if (other.FlatNumber.Length != 0) {
FlatNumber = other.FlatNumber;
}
if (other.PrivilegeType != global::Keyapis.Subscription.V1.Privilege.Types.Type.Unknown) {
PrivilegeType = other.PrivilegeType;
}
_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: {
Orpon = input.ReadInt64();
break;
}
case 18: {
FlatNumber = input.ReadString();
break;
}
case 24: {
PrivilegeType = (global::Keyapis.Subscription.V1.Privilege.Types.Type) input.ReadEnum();
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: {
Orpon = input.ReadInt64();
break;
}
case 18: {
FlatNumber = input.ReadString();
break;
}
case 24: {
PrivilegeType = (global::Keyapis.Subscription.V1.Privilege.Types.Type) input.ReadEnum();
break;
}
}
}
}
#endif
}
///
/// Результат запроса метода проверки предоставленной привилегии
///
public sealed partial class GetPrivilegeCheckResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPrivilegeCheckResponse());
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.KeyapisSubscriptionPrivilegeV1Reflection.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 GetPrivilegeCheckResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPrivilegeCheckResponse(GetPrivilegeCheckResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetPrivilegeCheckResponse Clone() {
return new GetPrivilegeCheckResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Доступна ли привилегия на квартире.
/// Вернётся true если статусы:
/// - PROMO;
/// - PAID;
/// - TURNS_OFF.
/// Вернётся false если статусы:
/// - NOT_PAID;
/// - CAN_BE_PAID;
/// - STATE_TYPE_UNKNOWN;
/// - Не найден
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Data {
get { return HasData ? (bool) type_ : false; }
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();
}
}
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 GetPrivilegeCheckResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetPrivilegeCheckResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (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 (HasData) 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 (HasData) {
output.WriteRawTag(8);
output.WriteBool(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 (HasData) {
output.WriteRawTag(8);
output.WriteBool(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 (HasData) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetPrivilegeCheckResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = 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 8: {
Data = input.ReadBool();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Data = input.ReadBool();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code