// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/ad/v1/keyapis_ad_marketplace_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.Ad.V1 { /// Holder for reflection information generated from keyapis/ad/v1/keyapis_ad_marketplace_v1.proto public static partial class KeyapisAdMarketplaceV1Reflection { #region Descriptor /// File descriptor for keyapis/ad/v1/keyapis_ad_marketplace_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisAdMarketplaceV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ci1rZXlhcGlzL2FkL3YxL2tleWFwaXNfYWRfbWFya2V0cGxhY2VfdjEucHJv", "dG8SDWtleWFwaXMuYWQudjEaH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAu", "cHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9h", "cGkvZmllbGRfYmVoYXZpb3IucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9kZXNj", "cmlwdG9yLnByb3RvGh5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8i", "7gIKC01hcmtldHBsYWNlEg8KAmlkGAEgASgFQgPgQQMSEgoFdGl0bGUYAiAB", "KAlCA+BBAhIyCgR0eXBlGAMgASgOMh8ua2V5YXBpcy5hZC52MS5NYXJrZXRw", "bGFjZS5UeXBlQgPgQQISEwoLaXNfZGlzYWJsZWQYBCABKAgSLgoIY2FyZF91", "cmwYBSABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSMwoKY3Jl", "YXRlZF9hdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB", "AxIzCgpjaGFuZ2VkX2F0GAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", "dGFtcEID4EEDIlcKBFR5cGUSEAoMVFlQRV9VTktOT1dOEAASCAoET1pPThAB", "Eg8KC1dJTERCRVJSSUVTEAISEQoNWUFOREVYX01BUktFVBADEg8KC1NCRVJf", "TUFSS0VUEAQiRwoWUG9zdE1hcmtldHBsYWNlUmVxdWVzdBItCgRkYXRhGAEg", "ASgLMhoua2V5YXBpcy5hZC52MS5NYXJrZXRwbGFjZUID4EECIk0KF1Bvc3RN", "YXJrZXRwbGFjZVJlc3BvbnNlEioKBGRhdGEYASABKAsyGi5rZXlhcGlzLmFk", "LnYxLk1hcmtldHBsYWNlSABCBgoEdHlwZSIoChVHZXRNYXJrZXRwbGFjZVJl", "cXVlc3QSDwoCaWQYASABKAVCA+BBAiJMChZHZXRNYXJrZXRwbGFjZVJlc3Bv", "bnNlEioKBGRhdGEYASABKAsyGi5rZXlhcGlzLmFkLnYxLk1hcmtldHBsYWNl", "SABCBgoEdHlwZSIbChlHZXRNYXJrZXRwbGFjZUxpc3RSZXF1ZXN0IlAKGkdl", "dE1hcmtldHBsYWNlTGlzdFJlc3BvbnNlEioKBGRhdGEYASABKAsyGi5rZXlh", "cGlzLmFkLnYxLk1hcmtldHBsYWNlSABCBgoEdHlwZSIcChpHZXRNYXJrZXRw", "bGFjZUNvdW50UmVxdWVzdCI1ChtHZXRNYXJrZXRwbGFjZUNvdW50UmVzcG9u", "c2USDgoEZGF0YRgBIAEoBUgAQgYKBHR5cGUyxwQKEk1hcmtldHBsYWNlU2Vy", "dmljZRKDAQoPUG9zdE1hcmtldHBsYWNlEiUua2V5YXBpcy5hZC52MS5Qb3N0", "TWFya2V0cGxhY2VSZXF1ZXN0GiYua2V5YXBpcy5hZC52MS5Qb3N0TWFya2V0", "cGxhY2VSZXNwb25zZSIhgtPkkwIbIhYvYWQvYXBpL3YxL21hcmtldHBsYWNl", "OgEqEoIBCg5HZXRNYXJrZXRwbGFjZRIkLmtleWFwaXMuYWQudjEuR2V0TWFy", "a2V0cGxhY2VSZXF1ZXN0GiUua2V5YXBpcy5hZC52MS5HZXRNYXJrZXRwbGFj", "ZVJlc3BvbnNlIiOC0+STAh0SGy9hZC9hcGkvdjEvbWFya2V0cGxhY2Uve2lk", "fRKQAQoSR2V0TWFya2V0cGxhY2VMaXN0Eigua2V5YXBpcy5hZC52MS5HZXRN", "YXJrZXRwbGFjZUxpc3RSZXF1ZXN0Gikua2V5YXBpcy5hZC52MS5HZXRNYXJr", "ZXRwbGFjZUxpc3RSZXNwb25zZSIjgtPkkwIdEhsvYWQvYXBpL3YxL21hcmtl", "dHBsYWNlL2xpc3QwARKSAQoTR2V0TWFya2V0cGxhY2VDb3VudBIpLmtleWFw", "aXMuYWQudjEuR2V0TWFya2V0cGxhY2VDb3VudFJlcXVlc3QaKi5rZXlhcGlz", "LmFkLnYxLkdldE1hcmtldHBsYWNlQ291bnRSZXNwb25zZSIkgtPkkwIeEhwv", "YWQvYXBpL3YxL21hcmtldHBsYWNlL2NvdW50Qn4KEHJ1LmtleWFwaXMuYWQu", "djFCEEtleWFwaXNBZFYxUHJvdG9IA1AAWg4va2V5YXBpc19hZF92MdgBAfgB", "AaICC0tFWUFQSVNBRFYxqgINS2V5YXBpcy5BZC5WMcoCDUtleWFwaXNcQWRc", "VjHqAg9LZXlhcGlzOjpBZDo6VjFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Ad.V1.Marketplace), global::Keyapis.Ad.V1.Marketplace.Parser, new[]{ "Id", "Title", "Type", "IsDisabled", "CardUrl", "CreatedAt", "ChangedAt" }, null, new[]{ typeof(global::Keyapis.Ad.V1.Marketplace.Types.Type) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Ad.V1.PostMarketplaceRequest), global::Keyapis.Ad.V1.PostMarketplaceRequest.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Ad.V1.PostMarketplaceResponse), global::Keyapis.Ad.V1.PostMarketplaceResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Ad.V1.GetMarketplaceRequest), global::Keyapis.Ad.V1.GetMarketplaceRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Ad.V1.GetMarketplaceResponse), global::Keyapis.Ad.V1.GetMarketplaceResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Ad.V1.GetMarketplaceListRequest), global::Keyapis.Ad.V1.GetMarketplaceListRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Ad.V1.GetMarketplaceListResponse), global::Keyapis.Ad.V1.GetMarketplaceListResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Ad.V1.GetMarketplaceCountRequest), global::Keyapis.Ad.V1.GetMarketplaceCountRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Ad.V1.GetMarketplaceCountResponse), global::Keyapis.Ad.V1.GetMarketplaceCountResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null) })); } #endregion } #region Messages /// /// Маркетплейс /// public sealed partial class Marketplace : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Marketplace()); 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.Ad.V1.KeyapisAdMarketplaceV1Reflection.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 Marketplace() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Marketplace(Marketplace other) : this() { id_ = other.id_; title_ = other.title_; type_ = other.type_; isDisabled_ = other.isDisabled_; CardUrl = other.CardUrl; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Marketplace Clone() { return new Marketplace(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "title" field. public const int TitleFieldNumber = 2; private string title_ = ""; /// /// Название /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "type" field. public const int TypeFieldNumber = 3; private global::Keyapis.Ad.V1.Marketplace.Types.Type type_ = global::Keyapis.Ad.V1.Marketplace.Types.Type.Unknown; /// /// Тип маркетплейса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Ad.V1.Marketplace.Types.Type Type { get { return type_; } set { type_ = value; } } /// Field number for the "is_disabled" field. public const int IsDisabledFieldNumber = 4; private bool isDisabled_; /// /// Выключен ли маркетплейс /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsDisabled { get { return isDisabled_; } set { isDisabled_ = value; } } /// Field number for the "card_url" field. public const int CardUrlFieldNumber = 5; private static readonly pb::FieldCodec _single_cardUrl_codec = pb::FieldCodec.ForClassWrapper(42); private string cardUrl_; /// /// Ссылка на карточку товара ключа в маркетплейсе /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CardUrl { get { return cardUrl_; } set { cardUrl_ = value; } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 6; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата создания /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "changed_at" field. public const int ChangedAtFieldNumber = 7; private global::Google.Protobuf.WellKnownTypes.Timestamp changedAt_; /// /// Дата последнего изменения. /// Заполняется и обновляется сервером. /// Заполняется при создании и изменении. /// Является версией объекта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ChangedAt { get { return changedAt_; } set { changedAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Marketplace); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Marketplace other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Title != other.Title) return false; if (Type != other.Type) return false; if (IsDisabled != other.IsDisabled) return false; if (CardUrl != other.CardUrl) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(ChangedAt, other.ChangedAt)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (Type != global::Keyapis.Ad.V1.Marketplace.Types.Type.Unknown) hash ^= Type.GetHashCode(); if (IsDisabled != false) hash ^= IsDisabled.GetHashCode(); if (cardUrl_ != null) hash ^= CardUrl.GetHashCode(); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (changedAt_ != null) hash ^= ChangedAt.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (Title.Length != 0) { output.WriteRawTag(18); output.WriteString(Title); } if (Type != global::Keyapis.Ad.V1.Marketplace.Types.Type.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) Type); } if (IsDisabled != false) { output.WriteRawTag(32); output.WriteBool(IsDisabled); } if (cardUrl_ != null) { _single_cardUrl_codec.WriteTagAndValue(output, CardUrl); } if (createdAt_ != null) { output.WriteRawTag(50); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(58); output.WriteMessage(ChangedAt); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (Title.Length != 0) { output.WriteRawTag(18); output.WriteString(Title); } if (Type != global::Keyapis.Ad.V1.Marketplace.Types.Type.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) Type); } if (IsDisabled != false) { output.WriteRawTag(32); output.WriteBool(IsDisabled); } if (cardUrl_ != null) { _single_cardUrl_codec.WriteTagAndValue(ref output, CardUrl); } if (createdAt_ != null) { output.WriteRawTag(50); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(58); output.WriteMessage(ChangedAt); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (Type != global::Keyapis.Ad.V1.Marketplace.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (IsDisabled != false) { size += 1 + 1; } if (cardUrl_ != null) { size += _single_cardUrl_codec.CalculateSizeWithTag(CardUrl); } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (changedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Marketplace other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.Title.Length != 0) { Title = other.Title; } if (other.Type != global::Keyapis.Ad.V1.Marketplace.Types.Type.Unknown) { Type = other.Type; } if (other.IsDisabled != false) { IsDisabled = other.IsDisabled; } if (other.cardUrl_ != null) { if (cardUrl_ == null || other.CardUrl != "") { CardUrl = other.CardUrl; } } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.changedAt_ != null) { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ChangedAt.MergeFrom(other.ChangedAt); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } case 18: { Title = input.ReadString(); break; } case 24: { Type = (global::Keyapis.Ad.V1.Marketplace.Types.Type) input.ReadEnum(); break; } case 32: { IsDisabled = input.ReadBool(); break; } case 42: { string value = _single_cardUrl_codec.Read(input); if (cardUrl_ == null || value != "") { CardUrl = value; } break; } case 50: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 58: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 18: { Title = input.ReadString(); break; } case 24: { Type = (global::Keyapis.Ad.V1.Marketplace.Types.Type) input.ReadEnum(); break; } case 32: { IsDisabled = input.ReadBool(); break; } case 42: { string value = _single_cardUrl_codec.Read(ref input); if (cardUrl_ == null || value != "") { CardUrl = value; } break; } case 50: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 58: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } } } } #endif #region Nested types /// Container for nested types declared in the Marketplace 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, /// /// Озон /// [pbr::OriginalName("OZON")] Ozon = 1, /// /// Вайлдберриз /// [pbr::OriginalName("WILDBERRIES")] Wildberries = 2, /// /// Яндекс маркет /// [pbr::OriginalName("YANDEX_MARKET")] YandexMarket = 3, /// /// Яндекс маркет /// [pbr::OriginalName("SBER_MARKET")] SberMarket = 4, } } #endregion } /// /// Запрос сохранения маркетплейса /// public sealed partial class PostMarketplaceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMarketplaceRequest()); 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.Ad.V1.KeyapisAdMarketplaceV1Reflection.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 PostMarketplaceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMarketplaceRequest(PostMarketplaceRequest other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMarketplaceRequest Clone() { return new PostMarketplaceRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Keyapis.Ad.V1.Marketplace data_; /// /// Маркетплейс /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Ad.V1.Marketplace Data { get { return data_; } set { data_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostMarketplaceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostMarketplaceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) 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 (data_ != null) hash ^= Data.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 (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (data_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostMarketplaceRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Keyapis.Ad.V1.Marketplace(); } Data.MergeFrom(other.Data); } _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 (data_ == null) { Data = new global::Keyapis.Ad.V1.Marketplace(); } input.ReadMessage(Data); 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 (data_ == null) { Data = new global::Keyapis.Ad.V1.Marketplace(); } input.ReadMessage(Data); break; } } } } #endif } /// /// Ответ на запрос сохранения маркетплейса /// public sealed partial class PostMarketplaceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMarketplaceResponse()); 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.Ad.V1.KeyapisAdMarketplaceV1Reflection.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 PostMarketplaceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMarketplaceResponse(PostMarketplaceResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMarketplaceResponse Clone() { return new PostMarketplaceResponse(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.Ad.V1.Marketplace Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Ad.V1.Marketplace) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostMarketplaceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostMarketplaceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostMarketplaceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Ad.V1.Marketplace(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Ad.V1.Marketplace subBuilder = new global::Keyapis.Ad.V1.Marketplace(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Ad.V1.Marketplace subBuilder = new global::Keyapis.Ad.V1.Marketplace(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос получения маркетплейса /// public sealed partial class GetMarketplaceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMarketplaceRequest()); 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.Ad.V1.KeyapisAdMarketplaceV1Reflection.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 GetMarketplaceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceRequest(GetMarketplaceRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceRequest Clone() { return new GetMarketplaceRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор маркетплейса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetMarketplaceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetMarketplaceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetMarketplaceRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос получения маркетплейса /// public sealed partial class GetMarketplaceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMarketplaceResponse()); 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.Ad.V1.KeyapisAdMarketplaceV1Reflection.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 GetMarketplaceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceResponse(GetMarketplaceResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceResponse Clone() { return new GetMarketplaceResponse(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.Ad.V1.Marketplace Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Ad.V1.Marketplace) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetMarketplaceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetMarketplaceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetMarketplaceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Ad.V1.Marketplace(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Ad.V1.Marketplace subBuilder = new global::Keyapis.Ad.V1.Marketplace(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Ad.V1.Marketplace subBuilder = new global::Keyapis.Ad.V1.Marketplace(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос получения списка маркетплейсов /// public sealed partial class GetMarketplaceListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMarketplaceListRequest()); 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.Ad.V1.KeyapisAdMarketplaceV1Reflection.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 GetMarketplaceListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceListRequest(GetMarketplaceListRequest other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceListRequest Clone() { return new GetMarketplaceListRequest(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetMarketplaceListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetMarketplaceListRequest 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(GetMarketplaceListRequest 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 } /// /// Ответ на запрос получения списка маркетплейсов /// public sealed partial class GetMarketplaceListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMarketplaceListResponse()); 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.Ad.V1.KeyapisAdMarketplaceV1Reflection.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 GetMarketplaceListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceListResponse(GetMarketplaceListResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceListResponse Clone() { return new GetMarketplaceListResponse(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.Ad.V1.Marketplace Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Ad.V1.Marketplace) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetMarketplaceListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetMarketplaceListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetMarketplaceListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Ad.V1.Marketplace(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Ad.V1.Marketplace subBuilder = new global::Keyapis.Ad.V1.Marketplace(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Ad.V1.Marketplace subBuilder = new global::Keyapis.Ad.V1.Marketplace(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос получения количества маркетплейсов /// public sealed partial class GetMarketplaceCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMarketplaceCountRequest()); 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.Ad.V1.KeyapisAdMarketplaceV1Reflection.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 GetMarketplaceCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceCountRequest(GetMarketplaceCountRequest other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceCountRequest Clone() { return new GetMarketplaceCountRequest(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetMarketplaceCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetMarketplaceCountRequest 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(GetMarketplaceCountRequest 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 } /// /// Ответ на запрос получения количества маркетплейсов /// public sealed partial class GetMarketplaceCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMarketplaceCountResponse()); 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.Ad.V1.KeyapisAdMarketplaceV1Reflection.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 GetMarketplaceCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetMarketplaceCountResponse(GetMarketplaceCountResponse 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 GetMarketplaceCountResponse Clone() { return new GetMarketplaceCountResponse(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(); } } 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 GetMarketplaceCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetMarketplaceCountResponse 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.WriteInt32(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.WriteInt32(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 + pb::CodedOutputStream.ComputeInt32Size(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetMarketplaceCountResponse 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.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: { Data = input.ReadInt32(); break; } } } } #endif } #endregion } #endregion Designer generated code