//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/vc/v1/keyapis_vc_company_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.Vc.V1 {
/// Holder for reflection information generated from keyapis/vc/v1/keyapis_vc_company_v1.proto
public static partial class KeyapisVcCompanyV1Reflection {
#region Descriptor
/// File descriptor for keyapis/vc/v1/keyapis_vc_company_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisVcCompanyV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CilrZXlhcGlzL3ZjL3YxL2tleWFwaXNfdmNfY29tcGFueV92MS5wcm90bxIN",
"a2V5YXBpcy52Yy52MRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxof",
"Z29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxofZ29vZ2xlL3Byb3Rv",
"YnVmL3RpbWVzdGFtcC5wcm90bxooa2V5YXBpcy92Yy92MS9rZXlhcGlzX3Zj",
"X2NhbWVyYV92MS5wcm90byI6Ch9Qb3N0Q29tcGFueUltcGVyc29uYXRpb25S",
"ZXF1ZXN0EhcKCmNvbXBhbnlfaWQYASABKAVCA+BBAiKqBQogUG9zdENvbXBh",
"bnlJbXBlcnNvbmF0aW9uUmVzcG9uc2USVAoEZGF0YRgBIAEoCzJELmtleWFw",
"aXMudmMudjEuUG9zdENvbXBhbnlJbXBlcnNvbmF0aW9uUmVzcG9uc2UuQ29t",
"cGFueUltcGVyc29uYXRpb25IABJGCgVlcnJvchgCIAEoCzI1LmtleWFwaXMu",
"dmMudjEuUG9zdENvbXBhbnlJbXBlcnNvbmF0aW9uUmVzcG9uc2UuRXJyb3JI",
"ABq1AwoFRXJyb3ISNAoKdmFsaWRhdGlvbhgBIAEoCzIeLmtleWFwaXMudmMu",
"djEuVmFsaWRhdGlvbkVycm9ySAASXgoPb3duZXJfbm90X2ZvdW5kGAIgASgL",
"MkMua2V5YXBpcy52Yy52MS5Qb3N0Q29tcGFueUltcGVyc29uYXRpb25SZXNw",
"b25zZS5FcnJvci5Pd25lck5vdEZvdW5kSAASZAoSdXNlcl9zZXJ2aWNlX2Vy",
"cm9yGAMgASgLMkYua2V5YXBpcy52Yy52MS5Qb3N0Q29tcGFueUltcGVyc29u",
"YXRpb25SZXNwb25zZS5FcnJvci5Vc2VyU2VydmljZUVycm9ySAASagoVdmNm",
"cm9udF9zZXJ2aWNlX2Vycm9yGAQgASgLMkkua2V5YXBpcy52Yy52MS5Qb3N0",
"Q29tcGFueUltcGVyc29uYXRpb25SZXNwb25zZS5FcnJvci5WY2Zyb250U2Vy",
"dmljZUVycm9ySAAaDwoNT3duZXJOb3RGb3VuZBoSChBVc2VyU2VydmljZUVy",
"cm9yGhUKE1ZjZnJvbnRTZXJ2aWNlRXJyb3JCCAoGcmVhc29uGigKFENvbXBh",
"bnlJbXBlcnNvbmF0aW9uEhAKA3VybBgBIAEoCUID4EECQgYKBHR5cGUyyAEK",
"DkNvbXBhbnlTZXJ2aWNlErUBChhQb3N0Q29tcGFueUltcGVyc29uYXRpb24S",
"Li5rZXlhcGlzLnZjLnYxLlBvc3RDb21wYW55SW1wZXJzb25hdGlvblJlcXVl",
"c3QaLy5rZXlhcGlzLnZjLnYxLlBvc3RDb21wYW55SW1wZXJzb25hdGlvblJl",
"c3BvbnNlIjiC0+STAjIiLS92Yy9hcGkvdjEvY29tcGFueS97Y29tcGFueV9p",
"ZH0vaW1wZXJzb25hdGlvbjoBKkJ+ChBydS5rZXlhcGlzLnZjLnYxQhBLZXlh",
"cGlzVmNWMVByb3RvSANQAFoOL2tleWFwaXNfdmNfdjHYAQH4AQGiAgtLRVlB",
"UElTVkNWMaoCDUtleWFwaXMuVmMuVjHKAg1LZXlhcGlzXFZjXFYx6gIPS2V5",
"YXBpczo6VmM6OlYxYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Keyapis.Vc.V1.KeyapisVcCameraV1Reflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.PostCompanyImpersonationRequest), global::Keyapis.Vc.V1.PostCompanyImpersonationRequest.Parser, new[]{ "CompanyId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.PostCompanyImpersonationResponse), global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error), global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Parser, new[]{ "Validation", "OwnerNotFound", "UserServiceError", "VcfrontServiceError" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.OwnerNotFound), global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.OwnerNotFound.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.UserServiceError), global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.UserServiceError.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.VcfrontServiceError), global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.VcfrontServiceError.Parser, null, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.CompanyImpersonation), global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.CompanyImpersonation.Parser, new[]{ "Url" }, null, null, null, null)})
}));
}
#endregion
}
#region Messages
///
/// Запрос генерации имперсонационной ссылки для компании
///
public sealed partial class PostCompanyImpersonationRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostCompanyImpersonationRequest());
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.Vc.V1.KeyapisVcCompanyV1Reflection.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 PostCompanyImpersonationRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCompanyImpersonationRequest(PostCompanyImpersonationRequest other) : this() {
companyId_ = other.companyId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCompanyImpersonationRequest Clone() {
return new PostCompanyImpersonationRequest(this);
}
/// Field number for the "company_id" field.
public const int CompanyIdFieldNumber = 1;
private int companyId_;
///
/// Идентификатор компании.
/// # Диапазон: 1..2147483647
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CompanyId {
get { return companyId_; }
set {
companyId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostCompanyImpersonationRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostCompanyImpersonationRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (CompanyId != other.CompanyId) 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 (CompanyId != 0) hash ^= CompanyId.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 (CompanyId != 0) {
output.WriteRawTag(8);
output.WriteInt32(CompanyId);
}
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 (CompanyId != 0) {
output.WriteRawTag(8);
output.WriteInt32(CompanyId);
}
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 (CompanyId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompanyId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostCompanyImpersonationRequest other) {
if (other == null) {
return;
}
if (other.CompanyId != 0) {
CompanyId = other.CompanyId;
}
_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: {
CompanyId = 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: {
CompanyId = input.ReadInt32();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос генерации имперсонационной ссылки для компании
///
public sealed partial class PostCompanyImpersonationResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostCompanyImpersonationResponse());
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.Vc.V1.KeyapisVcCompanyV1Reflection.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 PostCompanyImpersonationResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCompanyImpersonationResponse(PostCompanyImpersonationResponse 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 PostCompanyImpersonationResponse Clone() {
return new PostCompanyImpersonationResponse(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.Vc.V1.PostCompanyImpersonationResponse.Types.CompanyImpersonation Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.CompanyImpersonation) 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.Vc.V1.PostCompanyImpersonationResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.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 PostCompanyImpersonationResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostCompanyImpersonationResponse 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(PostCompanyImpersonationResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.CompanyImpersonation();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.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.Vc.V1.PostCompanyImpersonationResponse.Types.CompanyImpersonation subBuilder = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.CompanyImpersonation();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error subBuilder = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.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.Vc.V1.PostCompanyImpersonationResponse.Types.CompanyImpersonation subBuilder = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.CompanyImpersonation();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error subBuilder = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.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 PostCompanyImpersonationResponse 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.Vc.V1.PostCompanyImpersonationResponse.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.Validation:
Validation = other.Validation.Clone();
break;
case ReasonOneofCase.OwnerNotFound:
OwnerNotFound = other.OwnerNotFound.Clone();
break;
case ReasonOneofCase.UserServiceError:
UserServiceError = other.UserServiceError.Clone();
break;
case ReasonOneofCase.VcfrontServiceError:
VcfrontServiceError = other.VcfrontServiceError.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 "validation" field.
public const int ValidationFieldNumber = 1;
///
/// Ошибка валидации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Vc.V1.ValidationError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation;
}
}
/// Field number for the "owner_not_found" field.
public const int OwnerNotFoundFieldNumber = 2;
///
/// Владелец компании не найден
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.OwnerNotFound OwnerNotFound {
get { return reasonCase_ == ReasonOneofCase.OwnerNotFound ? (global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.OwnerNotFound) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.OwnerNotFound;
}
}
/// Field number for the "user_service_error" field.
public const int UserServiceErrorFieldNumber = 3;
///
/// Ошибка взаимодействия с сервисом User
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.UserServiceError UserServiceError {
get { return reasonCase_ == ReasonOneofCase.UserServiceError ? (global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.UserServiceError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.UserServiceError;
}
}
/// Field number for the "vcfront_service_error" field.
public const int VcfrontServiceErrorFieldNumber = 4;
///
/// Ошибка взаимодействия с сервисом vcfront
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.VcfrontServiceError VcfrontServiceError {
get { return reasonCase_ == ReasonOneofCase.VcfrontServiceError ? (global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.VcfrontServiceError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.VcfrontServiceError;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
Validation = 1,
OwnerNotFound = 2,
UserServiceError = 3,
VcfrontServiceError = 4,
}
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(Validation, other.Validation)) return false;
if (!object.Equals(OwnerNotFound, other.OwnerNotFound)) return false;
if (!object.Equals(UserServiceError, other.UserServiceError)) return false;
if (!object.Equals(VcfrontServiceError, other.VcfrontServiceError)) 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.Validation) hash ^= Validation.GetHashCode();
if (reasonCase_ == ReasonOneofCase.OwnerNotFound) hash ^= OwnerNotFound.GetHashCode();
if (reasonCase_ == ReasonOneofCase.UserServiceError) hash ^= UserServiceError.GetHashCode();
if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) hash ^= VcfrontServiceError.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.Validation) {
output.WriteRawTag(10);
output.WriteMessage(Validation);
}
if (reasonCase_ == ReasonOneofCase.OwnerNotFound) {
output.WriteRawTag(18);
output.WriteMessage(OwnerNotFound);
}
if (reasonCase_ == ReasonOneofCase.UserServiceError) {
output.WriteRawTag(26);
output.WriteMessage(UserServiceError);
}
if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) {
output.WriteRawTag(34);
output.WriteMessage(VcfrontServiceError);
}
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.Validation) {
output.WriteRawTag(10);
output.WriteMessage(Validation);
}
if (reasonCase_ == ReasonOneofCase.OwnerNotFound) {
output.WriteRawTag(18);
output.WriteMessage(OwnerNotFound);
}
if (reasonCase_ == ReasonOneofCase.UserServiceError) {
output.WriteRawTag(26);
output.WriteMessage(UserServiceError);
}
if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) {
output.WriteRawTag(34);
output.WriteMessage(VcfrontServiceError);
}
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.Validation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation);
}
if (reasonCase_ == ReasonOneofCase.OwnerNotFound) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(OwnerNotFound);
}
if (reasonCase_ == ReasonOneofCase.UserServiceError) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserServiceError);
}
if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(VcfrontServiceError);
}
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.Validation:
if (Validation == null) {
Validation = new global::Keyapis.Vc.V1.ValidationError();
}
Validation.MergeFrom(other.Validation);
break;
case ReasonOneofCase.OwnerNotFound:
if (OwnerNotFound == null) {
OwnerNotFound = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.OwnerNotFound();
}
OwnerNotFound.MergeFrom(other.OwnerNotFound);
break;
case ReasonOneofCase.UserServiceError:
if (UserServiceError == null) {
UserServiceError = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.UserServiceError();
}
UserServiceError.MergeFrom(other.UserServiceError);
break;
case ReasonOneofCase.VcfrontServiceError:
if (VcfrontServiceError == null) {
VcfrontServiceError = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.VcfrontServiceError();
}
VcfrontServiceError.MergeFrom(other.VcfrontServiceError);
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.Vc.V1.ValidationError subBuilder = new global::Keyapis.Vc.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
case 18: {
global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.OwnerNotFound subBuilder = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.OwnerNotFound();
if (reasonCase_ == ReasonOneofCase.OwnerNotFound) {
subBuilder.MergeFrom(OwnerNotFound);
}
input.ReadMessage(subBuilder);
OwnerNotFound = subBuilder;
break;
}
case 26: {
global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.UserServiceError subBuilder = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.UserServiceError();
if (reasonCase_ == ReasonOneofCase.UserServiceError) {
subBuilder.MergeFrom(UserServiceError);
}
input.ReadMessage(subBuilder);
UserServiceError = subBuilder;
break;
}
case 34: {
global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.VcfrontServiceError subBuilder = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.VcfrontServiceError();
if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) {
subBuilder.MergeFrom(VcfrontServiceError);
}
input.ReadMessage(subBuilder);
VcfrontServiceError = 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.Vc.V1.ValidationError subBuilder = new global::Keyapis.Vc.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
case 18: {
global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.OwnerNotFound subBuilder = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.OwnerNotFound();
if (reasonCase_ == ReasonOneofCase.OwnerNotFound) {
subBuilder.MergeFrom(OwnerNotFound);
}
input.ReadMessage(subBuilder);
OwnerNotFound = subBuilder;
break;
}
case 26: {
global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.UserServiceError subBuilder = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.UserServiceError();
if (reasonCase_ == ReasonOneofCase.UserServiceError) {
subBuilder.MergeFrom(UserServiceError);
}
input.ReadMessage(subBuilder);
UserServiceError = subBuilder;
break;
}
case 34: {
global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.VcfrontServiceError subBuilder = new global::Keyapis.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Types.VcfrontServiceError();
if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) {
subBuilder.MergeFrom(VcfrontServiceError);
}
input.ReadMessage(subBuilder);
VcfrontServiceError = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Error message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Владелец компании не найден
///
public sealed partial class OwnerNotFound : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnerNotFound());
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.Vc.V1.PostCompanyImpersonationResponse.Types.Error.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 OwnerNotFound() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OwnerNotFound(OwnerNotFound other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OwnerNotFound Clone() {
return new OwnerNotFound(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OwnerNotFound);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OwnerNotFound 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(OwnerNotFound 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
}
///
/// Ошибка взаимодействия с сервисом User
///
public sealed partial class UserServiceError : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserServiceError());
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.Vc.V1.PostCompanyImpersonationResponse.Types.Error.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 UserServiceError() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserServiceError(UserServiceError other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserServiceError Clone() {
return new UserServiceError(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as UserServiceError);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(UserServiceError 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(UserServiceError 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
}
///
/// Ошибка взаимодействия с сервисом vcfront
///
public sealed partial class VcfrontServiceError : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VcfrontServiceError());
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.Vc.V1.PostCompanyImpersonationResponse.Types.Error.Descriptor.NestedTypes[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 VcfrontServiceError() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VcfrontServiceError(VcfrontServiceError other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VcfrontServiceError Clone() {
return new VcfrontServiceError(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as VcfrontServiceError);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(VcfrontServiceError 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(VcfrontServiceError 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
}
///
/// Имперсонационная ссылка
///
public sealed partial class CompanyImpersonation : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CompanyImpersonation());
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.Vc.V1.PostCompanyImpersonationResponse.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 CompanyImpersonation() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CompanyImpersonation(CompanyImpersonation other) : this() {
url_ = other.url_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CompanyImpersonation Clone() {
return new CompanyImpersonation(this);
}
/// Field number for the "url" field.
public const int UrlFieldNumber = 1;
private string url_ = "";
///
/// Одноразовая ссылка для имперсонации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Url {
get { return url_; }
set {
url_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as CompanyImpersonation);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(CompanyImpersonation other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Url != other.Url) 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 (Url.Length != 0) hash ^= Url.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 (Url.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Url);
}
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 (Url.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Url);
}
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 (Url.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Url);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(CompanyImpersonation other) {
if (other == null) {
return;
}
if (other.Url.Length != 0) {
Url = other.Url;
}
_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: {
Url = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Url = input.ReadString();
break;
}
}
}
}
#endif
}
}
#endregion
}
#endregion
}
#endregion Designer generated code