//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/vc/v1/keyapis_vc_camera_video_data_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_camera_video_data_v1.proto
public static partial class KeyapisVcCameraVideoDataV1Reflection {
#region Descriptor
/// File descriptor for keyapis/vc/v1/keyapis_vc_camera_video_data_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisVcCameraVideoDataV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjNrZXlhcGlzL3ZjL3YxL2tleWFwaXNfdmNfY2FtZXJhX3ZpZGVvX2RhdGFf",
"djEucHJvdG8SDWtleWFwaXMudmMudjEaHGdvb2dsZS9hcGkvYW5ub3RhdGlv",
"bnMucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aH2dv",
"b2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aKGtleWFwaXMvdmMvdjEv",
"a2V5YXBpc192Y19jYW1lcmFfdjEucHJvdG8i1wYKD0NhbWVyYVZpZGVvRGF0",
"YRIQCgN1aWQYASABKAlCA+BBAhI5CghjYXRlZ29yeRgCIAEoCzInLmtleWFw",
"aXMudmMudjEuQ2FtZXJhVmlkZW9EYXRhLkNhdGVnb3J5EhIKBXRpdGxlGAMg",
"ASgJQgPgQQISGgoNc2VyaWFsX251bWJlchgEIAEoCUID4EECEg8KAmlwGAUg",
"ASgJQgPgQQISGQoMc3RyZWFtZXJfdXJsGAYgASgJQgPgQQISEAoDbWFjGAcg",
"ASgJQgPgQQISDQoFbW9kZWwYCCABKAkSDgoGdmVuZG9yGAkgASgJEjoKBnN0",
"YXR1cxgKIAEoCzIlLmtleWFwaXMudmMudjEuQ2FtZXJhVmlkZW9EYXRhLlN0",
"YXR1c0ID4EECEiQKF3NjcmVlbnNob3RfdXJsX3RlbXBsYXRlGAsgASgJQgPg",
"QQISLAofc2NyZWVuc2hvdF9wcmVjaXNlX3VybF90ZW1wbGF0ZRgMIAEoCUID",
"4EECEhcKCnVzZXJfdG9rZW4YDSABKAlCA+BBAhIbCg5zdHJlYW1lcl90b2tl",
"bhgOIAEoCUID4EECEh0KEHNjcmVlbnNob3RfdG9rZW4YDyABKAlCA+BBAhIW",
"Cg5hcmNoaXZlX2xlbmd0aBgQIAEoBRI5Cghsb2NhdGlvbhgRIAEoCzInLmtl",
"eWFwaXMudmMudjEuQ2FtZXJhVmlkZW9EYXRhLkxvY2F0aW9uEjMKCmNyZWF0",
"ZWRfYXQYEiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMS",
"MwoKdXBkYXRlZF9hdBgTIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh",
"bXBCA+BBAxISCgp1dGNfb2Zmc2V0GBQgASgFGkIKCENhdGVnb3J5Eg8KAmlk",
"GAEgASgFQgPgQQISEQoEdHlwZRgCIAEoCUID4EECEhIKBXRpdGxlGAMgASgJ",
"QgPgQQIaLgoITG9jYXRpb24SEAoDbGF0GAEgASgBQgPgQQISEAoDbG5nGAIg",
"ASgBQgPgQQIaQAoGU3RhdHVzEg8KAmlkGAEgASgFQgPgQQISEQoEdHlwZRgC",
"IAEoCUID4EECEhIKBXRpdGxlGAMgASgJQgPgQQIidgoVQ2FtZXJhVmlkZW9E",
"YXRhRmlsdGVyEgwKBHVpZHMYASADKAkSDQoFdGl0bGUYAiADKAkSCwoDbWFj",
"GAMgAygJEgoKAmlwGAQgAygJEhUKDXNlcmlhbF9udW1iZXIYBSADKAkSEAoI",
"Y2F0ZWdvcnkYBiADKAkixQIKFUNhbWVyYVZpZGVvRGF0YVBhZ2luZxJHCg1v",
"cmRlcl9ieV90eXBlGAEgASgOMjAua2V5YXBpcy52Yy52MS5DYW1lcmFWaWRl",
"b0RhdGFQYWdpbmcuT3JkZXJCeVR5cGUSSgoOZGlyZWN0aW9uX3R5cGUYAiAB",
"KA4yMi5rZXlhcGlzLnZjLnYxLkNhbWVyYVZpZGVvRGF0YVBhZ2luZy5EaXJl",
"Y3Rpb25UeXBlEg0KBWxpbWl0GAMgASgFEg4KBm9mZnNldBgEIAEoBSI+Cg1E",
"aXJlY3Rpb25UeXBlEhoKFkRJUkVDVElPTl9UWVBFX1VOS05PV04QABIICgRE",
"RVNDEAESBwoDQVNDEAIiOAoLT3JkZXJCeVR5cGUSGQoVT1JERVJfQllfVFlQ",
"RV9VTktOT1dOEAASDgoKQ1JFQVRFRF9BVBABIkgKFENhbWVyYVZpZGVvRGF0",
"YVNjb3BlEhQKCmNvbXBhbnlfaWQYASABKANIABIRCgd1c2VyX2lkGAIgASgF",
"SABCBwoFc2NvcGUiigEKHkdldENhbWVyYVZpZGVvRGF0YUNvdW50UmVxdWVz",
"dBIyCgVzY29wZRgBIAEoCzIjLmtleWFwaXMudmMudjEuQ2FtZXJhVmlkZW9E",
"YXRhU2NvcGUSNAoGZmlsdGVyGAIgASgLMiQua2V5YXBpcy52Yy52MS5DYW1l",
"cmFWaWRlb0RhdGFGaWx0ZXIiyQEKH0dldENhbWVyYVZpZGVvRGF0YUNvdW50",
"UmVzcG9uc2USDgoEZGF0YRgBIAEoBUgAEkUKBWVycm9yGAIgASgLMjQua2V5",
"YXBpcy52Yy52MS5HZXRDYW1lcmFWaWRlb0RhdGFDb3VudFJlc3BvbnNlLkVy",
"cm9ySAAaRwoFRXJyb3ISNAoKdmFsaWRhdGlvbhgBIAEoCzIeLmtleWFwaXMu",
"dmMudjEuVmFsaWRhdGlvbkVycm9ySABCCAoGcmVhc29uQgYKBHR5cGUizwEK",
"HUdldENhbWVyYVZpZGVvRGF0YUxpc3RSZXF1ZXN0EjIKBXNjb3BlGAEgASgL",
"MiMua2V5YXBpcy52Yy52MS5DYW1lcmFWaWRlb0RhdGFTY29wZRI0CgZmaWx0",
"ZXIYAiABKAsyJC5rZXlhcGlzLnZjLnYxLkNhbWVyYVZpZGVvRGF0YUZpbHRl",
"chI2CgZwYWdpbmcYAyABKAsyJC5rZXlhcGlzLnZjLnYxLkNhbWVyYVZpZGVv",
"RGF0YVBhZ2luZ0gAQgwKCnBhZ2luYXRpb24i2wEKHkdldENhbWVyYVZpZGVv",
"RGF0YUxpc3RSZXNwb25zZRIsCgRkYXRhGAEgAygLMh4ua2V5YXBpcy52Yy52",
"MS5DYW1lcmFWaWRlb0RhdGESQgoFZXJyb3IYAiABKAsyMy5rZXlhcGlzLnZj",
"LnYxLkdldENhbWVyYVZpZGVvRGF0YUxpc3RSZXNwb25zZS5FcnJvchpHCgVF",
"cnJvchI0Cgp2YWxpZGF0aW9uGAEgASgLMh4ua2V5YXBpcy52Yy52MS5WYWxp",
"ZGF0aW9uRXJyb3JIAEIICgZyZWFzb24y4gIKFkNhbWVyYVZpZGVvRGF0YVNl",
"cnZpY2USpAEKF0dldENhbWVyYVZpZGVvRGF0YUNvdW50Ei0ua2V5YXBpcy52",
"Yy52MS5HZXRDYW1lcmFWaWRlb0RhdGFDb3VudFJlcXVlc3QaLi5rZXlhcGlz",
"LnZjLnYxLkdldENhbWVyYVZpZGVvRGF0YUNvdW50UmVzcG9uc2UiKoLT5JMC",
"JBIiL3ZjL2FwaS92MS9jYW1lcmFfdmlkZW9fZGF0YS9jb3VudBKgAQoWR2V0",
"Q2FtZXJhVmlkZW9EYXRhTGlzdBIsLmtleWFwaXMudmMudjEuR2V0Q2FtZXJh",
"VmlkZW9EYXRhTGlzdFJlcXVlc3QaLS5rZXlhcGlzLnZjLnYxLkdldENhbWVy",
"YVZpZGVvRGF0YUxpc3RSZXNwb25zZSIpgtPkkwIjEiEvdmMvYXBpL3YxL2Nh",
"bWVyYV92aWRlb19kYXRhL2xpc3RCfgoQcnUua2V5YXBpcy52Yy52MUIQS2V5",
"YXBpc1ZjVjFQcm90b0gDUABaDi9rZXlhcGlzX3ZjX3Yx2AEB+AEBogILS0VZ",
"QVBJU1ZDVjGqAg1LZXlhcGlzLlZjLlYxygINS2V5YXBpc1xWY1xWMeoCD0tl",
"eWFwaXM6OlZjOjpWMWIGcHJvdG8z"));
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.CameraVideoData), global::Keyapis.Vc.V1.CameraVideoData.Parser, new[]{ "Uid", "Category", "Title", "SerialNumber", "Ip", "StreamerUrl", "Mac", "Model", "Vendor", "Status", "ScreenshotUrlTemplate", "ScreenshotPreciseUrlTemplate", "UserToken", "StreamerToken", "ScreenshotToken", "ArchiveLength", "Location", "CreatedAt", "UpdatedAt", "UtcOffset" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraVideoData.Types.Category), global::Keyapis.Vc.V1.CameraVideoData.Types.Category.Parser, new[]{ "Id", "Type", "Title" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraVideoData.Types.Location), global::Keyapis.Vc.V1.CameraVideoData.Types.Location.Parser, new[]{ "Lat", "Lng" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraVideoData.Types.Status), global::Keyapis.Vc.V1.CameraVideoData.Types.Status.Parser, new[]{ "Id", "Type", "Title" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraVideoDataFilter), global::Keyapis.Vc.V1.CameraVideoDataFilter.Parser, new[]{ "Uids", "Title", "Mac", "Ip", "SerialNumber", "Category" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraVideoDataPaging), global::Keyapis.Vc.V1.CameraVideoDataPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType), typeof(global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraVideoDataScope), global::Keyapis.Vc.V1.CameraVideoDataScope.Parser, new[]{ "CompanyId", "UserId" }, new[]{ "Scope" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetCameraVideoDataCountRequest), global::Keyapis.Vc.V1.GetCameraVideoDataCountRequest.Parser, new[]{ "Scope", "Filter" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse), global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse.Types.Error), global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetCameraVideoDataListRequest), global::Keyapis.Vc.V1.GetCameraVideoDataListRequest.Parser, new[]{ "Scope", "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetCameraVideoDataListResponse), global::Keyapis.Vc.V1.GetCameraVideoDataListResponse.Parser, new[]{ "Data", "Error" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetCameraVideoDataListResponse.Types.Error), global::Keyapis.Vc.V1.GetCameraVideoDataListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)})
}));
}
#endregion
}
#region Messages
///
/// Камера
///
public sealed partial class CameraVideoData : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CameraVideoData());
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.KeyapisVcCameraVideoDataV1Reflection.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 CameraVideoData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CameraVideoData(CameraVideoData other) : this() {
uid_ = other.uid_;
category_ = other.category_ != null ? other.category_.Clone() : null;
title_ = other.title_;
serialNumber_ = other.serialNumber_;
ip_ = other.ip_;
streamerUrl_ = other.streamerUrl_;
mac_ = other.mac_;
model_ = other.model_;
vendor_ = other.vendor_;
status_ = other.status_ != null ? other.status_.Clone() : null;
screenshotUrlTemplate_ = other.screenshotUrlTemplate_;
screenshotPreciseUrlTemplate_ = other.screenshotPreciseUrlTemplate_;
userToken_ = other.userToken_;
streamerToken_ = other.streamerToken_;
screenshotToken_ = other.screenshotToken_;
archiveLength_ = other.archiveLength_;
location_ = other.location_ != null ? other.location_.Clone() : null;
createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null;
updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null;
utcOffset_ = other.utcOffset_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CameraVideoData Clone() {
return new CameraVideoData(this);
}
/// Field number for the "uid" field.
public const int UidFieldNumber = 1;
private string uid_ = "";
///
/// Идентификатор камеры в системе Видеокомфорт.
/// Тип: Guid
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Uid {
get { return uid_; }
set {
uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "category" field.
public const int CategoryFieldNumber = 2;
private global::Keyapis.Vc.V1.CameraVideoData.Types.Category category_;
///
/// Категория камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraVideoData.Types.Category Category {
get { return category_; }
set {
category_ = value;
}
}
/// Field number for the "title" field.
public const int TitleFieldNumber = 3;
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 "serial_number" field.
public const int SerialNumberFieldNumber = 4;
private string serialNumber_ = "";
///
/// Серийный номер камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string SerialNumber {
get { return serialNumber_; }
set {
serialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "ip" field.
public const int IpFieldNumber = 5;
private string ip_ = "";
///
/// IP камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Ip {
get { return ip_; }
set {
ip_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "streamer_url" field.
public const int StreamerUrlFieldNumber = 6;
private string streamerUrl_ = "";
///
/// Адрес видео-потока (https соединение)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string StreamerUrl {
get { return streamerUrl_; }
set {
streamerUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "mac" field.
public const int MacFieldNumber = 7;
private string mac_ = "";
///
/// MAC-адрес камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Mac {
get { return mac_; }
set {
mac_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "model" field.
public const int ModelFieldNumber = 8;
private string model_ = "";
///
/// Модель камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Model {
get { return model_; }
set {
model_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "vendor" field.
public const int VendorFieldNumber = 9;
private string vendor_ = "";
///
/// Производитель камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Vendor {
get { return vendor_; }
set {
vendor_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "status" field.
public const int StatusFieldNumber = 10;
private global::Keyapis.Vc.V1.CameraVideoData.Types.Status status_;
///
/// Статус камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraVideoData.Types.Status Status {
get { return status_; }
set {
status_ = value;
}
}
/// Field number for the "screenshot_url_template" field.
public const int ScreenshotUrlTemplateFieldNumber = 11;
private string screenshotUrlTemplate_ = "";
///
/// URL скриншотов разных размеров в JPG-формате
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ScreenshotUrlTemplate {
get { return screenshotUrlTemplate_; }
set {
screenshotUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "screenshot_precise_url_template" field.
public const int ScreenshotPreciseUrlTemplateFieldNumber = 12;
private string screenshotPreciseUrlTemplate_ = "";
///
/// Шаблон для “точных” скриншотов. Выдаёт скриншоты всех размеров
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ScreenshotPreciseUrlTemplate {
get { return screenshotPreciseUrlTemplate_; }
set {
screenshotPreciseUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "user_token" field.
public const int UserTokenFieldNumber = 13;
private string userToken_ = "";
///
/// U-Токен, кука, которая выдается Умному Дому
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string UserToken {
get { return userToken_; }
set {
userToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "streamer_token" field.
public const int StreamerTokenFieldNumber = 14;
private string streamerToken_ = "";
///
/// Токен для воспроизведения видео с камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string StreamerToken {
get { return streamerToken_; }
set {
streamerToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "screenshot_token" field.
public const int ScreenshotTokenFieldNumber = 15;
private string screenshotToken_ = "";
///
/// Токен для получения контента с cdn (например, файлов изображений)
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ScreenshotToken {
get { return screenshotToken_; }
set {
screenshotToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "archive_length" field.
public const int ArchiveLengthFieldNumber = 16;
private int archiveLength_;
///
/// Глубина хранения видео в минутах
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int ArchiveLength {
get { return archiveLength_; }
set {
archiveLength_ = value;
}
}
/// Field number for the "location" field.
public const int LocationFieldNumber = 17;
private global::Keyapis.Vc.V1.CameraVideoData.Types.Location location_;
///
/// Координаты месторасположения
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraVideoData.Types.Location Location {
get { return location_; }
set {
location_ = value;
}
}
/// Field number for the "created_at" field.
public const int CreatedAtFieldNumber = 18;
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 "updated_at" field.
public const int UpdatedAtFieldNumber = 19;
private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_;
///
/// Дата обновления
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt {
get { return updatedAt_; }
set {
updatedAt_ = value;
}
}
/// Field number for the "utc_offset" field.
public const int UtcOffsetFieldNumber = 20;
private int utcOffset_;
///
/// Смещение таймзоны в минутах.
/// # Диапазон: -720..840
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int UtcOffset {
get { return utcOffset_; }
set {
utcOffset_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as CameraVideoData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(CameraVideoData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Uid != other.Uid) return false;
if (!object.Equals(Category, other.Category)) return false;
if (Title != other.Title) return false;
if (SerialNumber != other.SerialNumber) return false;
if (Ip != other.Ip) return false;
if (StreamerUrl != other.StreamerUrl) return false;
if (Mac != other.Mac) return false;
if (Model != other.Model) return false;
if (Vendor != other.Vendor) return false;
if (!object.Equals(Status, other.Status)) return false;
if (ScreenshotUrlTemplate != other.ScreenshotUrlTemplate) return false;
if (ScreenshotPreciseUrlTemplate != other.ScreenshotPreciseUrlTemplate) return false;
if (UserToken != other.UserToken) return false;
if (StreamerToken != other.StreamerToken) return false;
if (ScreenshotToken != other.ScreenshotToken) return false;
if (ArchiveLength != other.ArchiveLength) return false;
if (!object.Equals(Location, other.Location)) return false;
if (!object.Equals(CreatedAt, other.CreatedAt)) return false;
if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false;
if (UtcOffset != other.UtcOffset) 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 (Uid.Length != 0) hash ^= Uid.GetHashCode();
if (category_ != null) hash ^= Category.GetHashCode();
if (Title.Length != 0) hash ^= Title.GetHashCode();
if (SerialNumber.Length != 0) hash ^= SerialNumber.GetHashCode();
if (Ip.Length != 0) hash ^= Ip.GetHashCode();
if (StreamerUrl.Length != 0) hash ^= StreamerUrl.GetHashCode();
if (Mac.Length != 0) hash ^= Mac.GetHashCode();
if (Model.Length != 0) hash ^= Model.GetHashCode();
if (Vendor.Length != 0) hash ^= Vendor.GetHashCode();
if (status_ != null) hash ^= Status.GetHashCode();
if (ScreenshotUrlTemplate.Length != 0) hash ^= ScreenshotUrlTemplate.GetHashCode();
if (ScreenshotPreciseUrlTemplate.Length != 0) hash ^= ScreenshotPreciseUrlTemplate.GetHashCode();
if (UserToken.Length != 0) hash ^= UserToken.GetHashCode();
if (StreamerToken.Length != 0) hash ^= StreamerToken.GetHashCode();
if (ScreenshotToken.Length != 0) hash ^= ScreenshotToken.GetHashCode();
if (ArchiveLength != 0) hash ^= ArchiveLength.GetHashCode();
if (location_ != null) hash ^= Location.GetHashCode();
if (createdAt_ != null) hash ^= CreatedAt.GetHashCode();
if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode();
if (UtcOffset != 0) hash ^= UtcOffset.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 (Uid.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Uid);
}
if (category_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Category);
}
if (Title.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Title);
}
if (SerialNumber.Length != 0) {
output.WriteRawTag(34);
output.WriteString(SerialNumber);
}
if (Ip.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Ip);
}
if (StreamerUrl.Length != 0) {
output.WriteRawTag(50);
output.WriteString(StreamerUrl);
}
if (Mac.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Mac);
}
if (Model.Length != 0) {
output.WriteRawTag(66);
output.WriteString(Model);
}
if (Vendor.Length != 0) {
output.WriteRawTag(74);
output.WriteString(Vendor);
}
if (status_ != null) {
output.WriteRawTag(82);
output.WriteMessage(Status);
}
if (ScreenshotUrlTemplate.Length != 0) {
output.WriteRawTag(90);
output.WriteString(ScreenshotUrlTemplate);
}
if (ScreenshotPreciseUrlTemplate.Length != 0) {
output.WriteRawTag(98);
output.WriteString(ScreenshotPreciseUrlTemplate);
}
if (UserToken.Length != 0) {
output.WriteRawTag(106);
output.WriteString(UserToken);
}
if (StreamerToken.Length != 0) {
output.WriteRawTag(114);
output.WriteString(StreamerToken);
}
if (ScreenshotToken.Length != 0) {
output.WriteRawTag(122);
output.WriteString(ScreenshotToken);
}
if (ArchiveLength != 0) {
output.WriteRawTag(128, 1);
output.WriteInt32(ArchiveLength);
}
if (location_ != null) {
output.WriteRawTag(138, 1);
output.WriteMessage(Location);
}
if (createdAt_ != null) {
output.WriteRawTag(146, 1);
output.WriteMessage(CreatedAt);
}
if (updatedAt_ != null) {
output.WriteRawTag(154, 1);
output.WriteMessage(UpdatedAt);
}
if (UtcOffset != 0) {
output.WriteRawTag(160, 1);
output.WriteInt32(UtcOffset);
}
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 (Uid.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Uid);
}
if (category_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Category);
}
if (Title.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Title);
}
if (SerialNumber.Length != 0) {
output.WriteRawTag(34);
output.WriteString(SerialNumber);
}
if (Ip.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Ip);
}
if (StreamerUrl.Length != 0) {
output.WriteRawTag(50);
output.WriteString(StreamerUrl);
}
if (Mac.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Mac);
}
if (Model.Length != 0) {
output.WriteRawTag(66);
output.WriteString(Model);
}
if (Vendor.Length != 0) {
output.WriteRawTag(74);
output.WriteString(Vendor);
}
if (status_ != null) {
output.WriteRawTag(82);
output.WriteMessage(Status);
}
if (ScreenshotUrlTemplate.Length != 0) {
output.WriteRawTag(90);
output.WriteString(ScreenshotUrlTemplate);
}
if (ScreenshotPreciseUrlTemplate.Length != 0) {
output.WriteRawTag(98);
output.WriteString(ScreenshotPreciseUrlTemplate);
}
if (UserToken.Length != 0) {
output.WriteRawTag(106);
output.WriteString(UserToken);
}
if (StreamerToken.Length != 0) {
output.WriteRawTag(114);
output.WriteString(StreamerToken);
}
if (ScreenshotToken.Length != 0) {
output.WriteRawTag(122);
output.WriteString(ScreenshotToken);
}
if (ArchiveLength != 0) {
output.WriteRawTag(128, 1);
output.WriteInt32(ArchiveLength);
}
if (location_ != null) {
output.WriteRawTag(138, 1);
output.WriteMessage(Location);
}
if (createdAt_ != null) {
output.WriteRawTag(146, 1);
output.WriteMessage(CreatedAt);
}
if (updatedAt_ != null) {
output.WriteRawTag(154, 1);
output.WriteMessage(UpdatedAt);
}
if (UtcOffset != 0) {
output.WriteRawTag(160, 1);
output.WriteInt32(UtcOffset);
}
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 (Uid.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
}
if (category_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Category);
}
if (Title.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Title);
}
if (SerialNumber.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SerialNumber);
}
if (Ip.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Ip);
}
if (StreamerUrl.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StreamerUrl);
}
if (Mac.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Mac);
}
if (Model.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Model);
}
if (Vendor.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Vendor);
}
if (status_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Status);
}
if (ScreenshotUrlTemplate.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ScreenshotUrlTemplate);
}
if (ScreenshotPreciseUrlTemplate.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ScreenshotPreciseUrlTemplate);
}
if (UserToken.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserToken);
}
if (StreamerToken.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StreamerToken);
}
if (ScreenshotToken.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ScreenshotToken);
}
if (ArchiveLength != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(ArchiveLength);
}
if (location_ != null) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(Location);
}
if (createdAt_ != null) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt);
}
if (updatedAt_ != null) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt);
}
if (UtcOffset != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(UtcOffset);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(CameraVideoData other) {
if (other == null) {
return;
}
if (other.Uid.Length != 0) {
Uid = other.Uid;
}
if (other.category_ != null) {
if (category_ == null) {
Category = new global::Keyapis.Vc.V1.CameraVideoData.Types.Category();
}
Category.MergeFrom(other.Category);
}
if (other.Title.Length != 0) {
Title = other.Title;
}
if (other.SerialNumber.Length != 0) {
SerialNumber = other.SerialNumber;
}
if (other.Ip.Length != 0) {
Ip = other.Ip;
}
if (other.StreamerUrl.Length != 0) {
StreamerUrl = other.StreamerUrl;
}
if (other.Mac.Length != 0) {
Mac = other.Mac;
}
if (other.Model.Length != 0) {
Model = other.Model;
}
if (other.Vendor.Length != 0) {
Vendor = other.Vendor;
}
if (other.status_ != null) {
if (status_ == null) {
Status = new global::Keyapis.Vc.V1.CameraVideoData.Types.Status();
}
Status.MergeFrom(other.Status);
}
if (other.ScreenshotUrlTemplate.Length != 0) {
ScreenshotUrlTemplate = other.ScreenshotUrlTemplate;
}
if (other.ScreenshotPreciseUrlTemplate.Length != 0) {
ScreenshotPreciseUrlTemplate = other.ScreenshotPreciseUrlTemplate;
}
if (other.UserToken.Length != 0) {
UserToken = other.UserToken;
}
if (other.StreamerToken.Length != 0) {
StreamerToken = other.StreamerToken;
}
if (other.ScreenshotToken.Length != 0) {
ScreenshotToken = other.ScreenshotToken;
}
if (other.ArchiveLength != 0) {
ArchiveLength = other.ArchiveLength;
}
if (other.location_ != null) {
if (location_ == null) {
Location = new global::Keyapis.Vc.V1.CameraVideoData.Types.Location();
}
Location.MergeFrom(other.Location);
}
if (other.createdAt_ != null) {
if (createdAt_ == null) {
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
CreatedAt.MergeFrom(other.CreatedAt);
}
if (other.updatedAt_ != null) {
if (updatedAt_ == null) {
UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
UpdatedAt.MergeFrom(other.UpdatedAt);
}
if (other.UtcOffset != 0) {
UtcOffset = other.UtcOffset;
}
_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: {
Uid = input.ReadString();
break;
}
case 18: {
if (category_ == null) {
Category = new global::Keyapis.Vc.V1.CameraVideoData.Types.Category();
}
input.ReadMessage(Category);
break;
}
case 26: {
Title = input.ReadString();
break;
}
case 34: {
SerialNumber = input.ReadString();
break;
}
case 42: {
Ip = input.ReadString();
break;
}
case 50: {
StreamerUrl = input.ReadString();
break;
}
case 58: {
Mac = input.ReadString();
break;
}
case 66: {
Model = input.ReadString();
break;
}
case 74: {
Vendor = input.ReadString();
break;
}
case 82: {
if (status_ == null) {
Status = new global::Keyapis.Vc.V1.CameraVideoData.Types.Status();
}
input.ReadMessage(Status);
break;
}
case 90: {
ScreenshotUrlTemplate = input.ReadString();
break;
}
case 98: {
ScreenshotPreciseUrlTemplate = input.ReadString();
break;
}
case 106: {
UserToken = input.ReadString();
break;
}
case 114: {
StreamerToken = input.ReadString();
break;
}
case 122: {
ScreenshotToken = input.ReadString();
break;
}
case 128: {
ArchiveLength = input.ReadInt32();
break;
}
case 138: {
if (location_ == null) {
Location = new global::Keyapis.Vc.V1.CameraVideoData.Types.Location();
}
input.ReadMessage(Location);
break;
}
case 146: {
if (createdAt_ == null) {
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreatedAt);
break;
}
case 154: {
if (updatedAt_ == null) {
UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(UpdatedAt);
break;
}
case 160: {
UtcOffset = 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 10: {
Uid = input.ReadString();
break;
}
case 18: {
if (category_ == null) {
Category = new global::Keyapis.Vc.V1.CameraVideoData.Types.Category();
}
input.ReadMessage(Category);
break;
}
case 26: {
Title = input.ReadString();
break;
}
case 34: {
SerialNumber = input.ReadString();
break;
}
case 42: {
Ip = input.ReadString();
break;
}
case 50: {
StreamerUrl = input.ReadString();
break;
}
case 58: {
Mac = input.ReadString();
break;
}
case 66: {
Model = input.ReadString();
break;
}
case 74: {
Vendor = input.ReadString();
break;
}
case 82: {
if (status_ == null) {
Status = new global::Keyapis.Vc.V1.CameraVideoData.Types.Status();
}
input.ReadMessage(Status);
break;
}
case 90: {
ScreenshotUrlTemplate = input.ReadString();
break;
}
case 98: {
ScreenshotPreciseUrlTemplate = input.ReadString();
break;
}
case 106: {
UserToken = input.ReadString();
break;
}
case 114: {
StreamerToken = input.ReadString();
break;
}
case 122: {
ScreenshotToken = input.ReadString();
break;
}
case 128: {
ArchiveLength = input.ReadInt32();
break;
}
case 138: {
if (location_ == null) {
Location = new global::Keyapis.Vc.V1.CameraVideoData.Types.Location();
}
input.ReadMessage(Location);
break;
}
case 146: {
if (createdAt_ == null) {
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreatedAt);
break;
}
case 154: {
if (updatedAt_ == null) {
UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(UpdatedAt);
break;
}
case 160: {
UtcOffset = input.ReadInt32();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the CameraVideoData message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Категория камеры
///
public sealed partial class Category : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Category());
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.CameraVideoData.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 Category() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Category(Category other) : this() {
id_ = other.id_;
type_ = other.type_;
title_ = other.title_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Category Clone() {
return new Category(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 "type" field.
public const int TypeFieldNumber = 2;
private string type_ = "";
///
/// Тип группы
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Type {
get { return type_; }
set {
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "title" field.
public const int TitleFieldNumber = 3;
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");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Category);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Category other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Type != other.Type) return false;
if (Title != other.Title) 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 (Type.Length != 0) hash ^= Type.GetHashCode();
if (Title.Length != 0) hash ^= Title.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 (Type.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Type);
}
if (Title.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Title);
}
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 (Type.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Type);
}
if (Title.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Title);
}
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 (Type.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
}
if (Title.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Title);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Category other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Type.Length != 0) {
Type = other.Type;
}
if (other.Title.Length != 0) {
Title = other.Title;
}
_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: {
Type = input.ReadString();
break;
}
case 26: {
Title = 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 8: {
Id = input.ReadInt32();
break;
}
case 18: {
Type = input.ReadString();
break;
}
case 26: {
Title = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Координаты месторасположения
///
public sealed partial class Location : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Location());
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.CameraVideoData.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 Location() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Location(Location other) : this() {
lat_ = other.lat_;
lng_ = other.lng_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Location Clone() {
return new Location(this);
}
/// Field number for the "lat" field.
public const int LatFieldNumber = 1;
private double lat_;
///
/// Широта
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Lat {
get { return lat_; }
set {
lat_ = value;
}
}
/// Field number for the "lng" field.
public const int LngFieldNumber = 2;
private double lng_;
///
/// Долгота
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Lng {
get { return lng_; }
set {
lng_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Location);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Location other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Lat, other.Lat)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Lng, other.Lng)) 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 (Lat != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Lat);
if (Lng != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Lng);
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 (Lat != 0D) {
output.WriteRawTag(9);
output.WriteDouble(Lat);
}
if (Lng != 0D) {
output.WriteRawTag(17);
output.WriteDouble(Lng);
}
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 (Lat != 0D) {
output.WriteRawTag(9);
output.WriteDouble(Lat);
}
if (Lng != 0D) {
output.WriteRawTag(17);
output.WriteDouble(Lng);
}
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 (Lat != 0D) {
size += 1 + 8;
}
if (Lng != 0D) {
size += 1 + 8;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Location other) {
if (other == null) {
return;
}
if (other.Lat != 0D) {
Lat = other.Lat;
}
if (other.Lng != 0D) {
Lng = other.Lng;
}
_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 9: {
Lat = input.ReadDouble();
break;
}
case 17: {
Lng = input.ReadDouble();
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 9: {
Lat = input.ReadDouble();
break;
}
case 17: {
Lng = input.ReadDouble();
break;
}
}
}
}
#endif
}
///
/// Статус камеры
///
public sealed partial class Status : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Status());
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.CameraVideoData.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 Status() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Status(Status other) : this() {
id_ = other.id_;
type_ = other.type_;
title_ = other.title_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Status Clone() {
return new Status(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 "type" field.
public const int TypeFieldNumber = 2;
private string type_ = "";
///
/// online/offline
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Type {
get { return type_; }
set {
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "title" field.
public const int TitleFieldNumber = 3;
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");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Status);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Status other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Type != other.Type) return false;
if (Title != other.Title) 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 (Type.Length != 0) hash ^= Type.GetHashCode();
if (Title.Length != 0) hash ^= Title.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 (Type.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Type);
}
if (Title.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Title);
}
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 (Type.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Type);
}
if (Title.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Title);
}
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 (Type.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
}
if (Title.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Title);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Status other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Type.Length != 0) {
Type = other.Type;
}
if (other.Title.Length != 0) {
Title = other.Title;
}
_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: {
Type = input.ReadString();
break;
}
case 26: {
Title = 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 8: {
Id = input.ReadInt32();
break;
}
case 18: {
Type = input.ReadString();
break;
}
case 26: {
Title = input.ReadString();
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Фильтр камер
///
public sealed partial class CameraVideoDataFilter : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CameraVideoDataFilter());
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.KeyapisVcCameraVideoDataV1Reflection.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 CameraVideoDataFilter() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CameraVideoDataFilter(CameraVideoDataFilter other) : this() {
uids_ = other.uids_.Clone();
title_ = other.title_.Clone();
mac_ = other.mac_.Clone();
ip_ = other.ip_.Clone();
serialNumber_ = other.serialNumber_.Clone();
category_ = other.category_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CameraVideoDataFilter Clone() {
return new CameraVideoDataFilter(this);
}
/// Field number for the "uids" field.
public const int UidsFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_uids_codec
= pb::FieldCodec.ForString(10);
private readonly pbc::RepeatedField uids_ = new pbc::RepeatedField();
///
/// Идентификатор камеры в системе Видеокомфорт.
/// Тип: Guid
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Uids {
get { return uids_; }
}
/// Field number for the "title" field.
public const int TitleFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_title_codec
= pb::FieldCodec.ForString(18);
private readonly pbc::RepeatedField title_ = new pbc::RepeatedField();
///
/// Наименование камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Title {
get { return title_; }
}
/// Field number for the "mac" field.
public const int MacFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_mac_codec
= pb::FieldCodec.ForString(26);
private readonly pbc::RepeatedField mac_ = new pbc::RepeatedField();
///
/// MAC-адрес камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Mac {
get { return mac_; }
}
/// Field number for the "ip" field.
public const int IpFieldNumber = 4;
private static readonly pb::FieldCodec _repeated_ip_codec
= pb::FieldCodec.ForString(34);
private readonly pbc::RepeatedField ip_ = new pbc::RepeatedField();
///
/// IP камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Ip {
get { return ip_; }
}
/// Field number for the "serial_number" field.
public const int SerialNumberFieldNumber = 5;
private static readonly pb::FieldCodec _repeated_serialNumber_codec
= pb::FieldCodec.ForString(42);
private readonly pbc::RepeatedField serialNumber_ = new pbc::RepeatedField();
///
/// Серийный номер камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField SerialNumber {
get { return serialNumber_; }
}
/// Field number for the "category" field.
public const int CategoryFieldNumber = 6;
private static readonly pb::FieldCodec _repeated_category_codec
= pb::FieldCodec.ForString(50);
private readonly pbc::RepeatedField category_ = new pbc::RepeatedField();
///
/// Категория камеры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Category {
get { return category_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as CameraVideoDataFilter);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(CameraVideoDataFilter other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!uids_.Equals(other.uids_)) return false;
if(!title_.Equals(other.title_)) return false;
if(!mac_.Equals(other.mac_)) return false;
if(!ip_.Equals(other.ip_)) return false;
if(!serialNumber_.Equals(other.serialNumber_)) return false;
if(!category_.Equals(other.category_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= uids_.GetHashCode();
hash ^= title_.GetHashCode();
hash ^= mac_.GetHashCode();
hash ^= ip_.GetHashCode();
hash ^= serialNumber_.GetHashCode();
hash ^= category_.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
uids_.WriteTo(output, _repeated_uids_codec);
title_.WriteTo(output, _repeated_title_codec);
mac_.WriteTo(output, _repeated_mac_codec);
ip_.WriteTo(output, _repeated_ip_codec);
serialNumber_.WriteTo(output, _repeated_serialNumber_codec);
category_.WriteTo(output, _repeated_category_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
uids_.WriteTo(ref output, _repeated_uids_codec);
title_.WriteTo(ref output, _repeated_title_codec);
mac_.WriteTo(ref output, _repeated_mac_codec);
ip_.WriteTo(ref output, _repeated_ip_codec);
serialNumber_.WriteTo(ref output, _repeated_serialNumber_codec);
category_.WriteTo(ref output, _repeated_category_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += uids_.CalculateSize(_repeated_uids_codec);
size += title_.CalculateSize(_repeated_title_codec);
size += mac_.CalculateSize(_repeated_mac_codec);
size += ip_.CalculateSize(_repeated_ip_codec);
size += serialNumber_.CalculateSize(_repeated_serialNumber_codec);
size += category_.CalculateSize(_repeated_category_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(CameraVideoDataFilter other) {
if (other == null) {
return;
}
uids_.Add(other.uids_);
title_.Add(other.title_);
mac_.Add(other.mac_);
ip_.Add(other.ip_);
serialNumber_.Add(other.serialNumber_);
category_.Add(other.category_);
_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: {
uids_.AddEntriesFrom(input, _repeated_uids_codec);
break;
}
case 18: {
title_.AddEntriesFrom(input, _repeated_title_codec);
break;
}
case 26: {
mac_.AddEntriesFrom(input, _repeated_mac_codec);
break;
}
case 34: {
ip_.AddEntriesFrom(input, _repeated_ip_codec);
break;
}
case 42: {
serialNumber_.AddEntriesFrom(input, _repeated_serialNumber_codec);
break;
}
case 50: {
category_.AddEntriesFrom(input, _repeated_category_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
uids_.AddEntriesFrom(ref input, _repeated_uids_codec);
break;
}
case 18: {
title_.AddEntriesFrom(ref input, _repeated_title_codec);
break;
}
case 26: {
mac_.AddEntriesFrom(ref input, _repeated_mac_codec);
break;
}
case 34: {
ip_.AddEntriesFrom(ref input, _repeated_ip_codec);
break;
}
case 42: {
serialNumber_.AddEntriesFrom(ref input, _repeated_serialNumber_codec);
break;
}
case 50: {
category_.AddEntriesFrom(ref input, _repeated_category_codec);
break;
}
}
}
}
#endif
}
///
/// Постраничный вывод
///
public sealed partial class CameraVideoDataPaging : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CameraVideoDataPaging());
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.KeyapisVcCameraVideoDataV1Reflection.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 CameraVideoDataPaging() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CameraVideoDataPaging(CameraVideoDataPaging other) : this() {
orderByType_ = other.orderByType_;
directionType_ = other.directionType_;
limit_ = other.limit_;
offset_ = other.offset_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CameraVideoDataPaging Clone() {
return new CameraVideoDataPaging(this);
}
/// Field number for the "order_by_type" field.
public const int OrderByTypeFieldNumber = 1;
private global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType orderByType_ = global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType.Unknown;
///
/// Тип значения сортировки.
/// Если значение не передано, то будет взято значение по умолчанию.
/// По умолчанию: UID
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType OrderByType {
get { return orderByType_; }
set {
orderByType_ = value;
}
}
/// Field number for the "direction_type" field.
public const int DirectionTypeFieldNumber = 2;
private global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType directionType_ = global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType.Unknown;
///
/// Тип направления сортировки.
/// # По умолчанию: DESC
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType DirectionType {
get { return directionType_; }
set {
directionType_ = value;
}
}
/// Field number for the "limit" field.
public const int LimitFieldNumber = 3;
private int limit_;
///
/// Количество записей на страницу.
/// Если значение 0 (не передано), то будет взято значение по умолчанию.
/// # Диапазон: 0..100.
/// # По умолчанию: 20
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Limit {
get { return limit_; }
set {
limit_ = value;
}
}
/// Field number for the "offset" field.
public const int OffsetFieldNumber = 4;
private int offset_;
///
/// Сдвиг.
/// # Диапазон: 0..2147483647
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Offset {
get { return offset_; }
set {
offset_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as CameraVideoDataPaging);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(CameraVideoDataPaging other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (OrderByType != other.OrderByType) return false;
if (DirectionType != other.DirectionType) return false;
if (Limit != other.Limit) return false;
if (Offset != other.Offset) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (OrderByType != global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode();
if (DirectionType != global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType.Unknown) hash ^= DirectionType.GetHashCode();
if (Limit != 0) hash ^= Limit.GetHashCode();
if (Offset != 0) hash ^= Offset.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (OrderByType != global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) DirectionType);
}
if (Limit != 0) {
output.WriteRawTag(24);
output.WriteInt32(Limit);
}
if (Offset != 0) {
output.WriteRawTag(32);
output.WriteInt32(Offset);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (OrderByType != global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) DirectionType);
}
if (Limit != 0) {
output.WriteRawTag(24);
output.WriteInt32(Limit);
}
if (Offset != 0) {
output.WriteRawTag(32);
output.WriteInt32(Offset);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (OrderByType != global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType);
}
if (DirectionType != global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DirectionType);
}
if (Limit != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit);
}
if (Offset != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(CameraVideoDataPaging other) {
if (other == null) {
return;
}
if (other.OrderByType != global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType.Unknown) {
OrderByType = other.OrderByType;
}
if (other.DirectionType != global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType.Unknown) {
DirectionType = other.DirectionType;
}
if (other.Limit != 0) {
Limit = other.Limit;
}
if (other.Offset != 0) {
Offset = other.Offset;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
OrderByType = (global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType) input.ReadEnum();
break;
}
case 24: {
Limit = input.ReadInt32();
break;
}
case 32: {
Offset = input.ReadInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
OrderByType = (global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.Vc.V1.CameraVideoDataPaging.Types.DirectionType) input.ReadEnum();
break;
}
case 24: {
Limit = input.ReadInt32();
break;
}
case 32: {
Offset = input.ReadInt32();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the CameraVideoDataPaging message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Справочник типов направлений сортировки.
/// # Тип: byte
///
public enum DirectionType {
///
/// Значение не указано
///
[pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0,
///
/// От большего к меньшему
///
[pbr::OriginalName("DESC")] Desc = 1,
///
/// От меньшего к большему
///
[pbr::OriginalName("ASC")] Asc = 2,
}
///
/// Справочник типов значений сортировки.
/// # Тип: byte
///
public enum OrderByType {
///
/// Значение не указано
///
[pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0,
///
/// По дате создания
///
[pbr::OriginalName("CREATED_AT")] CreatedAt = 1,
}
}
#endregion
}
///
/// Ограничение выборки камер
///
public sealed partial class CameraVideoDataScope : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CameraVideoDataScope());
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.KeyapisVcCameraVideoDataV1Reflection.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 CameraVideoDataScope() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CameraVideoDataScope(CameraVideoDataScope other) : this() {
switch (other.ScopeCase) {
case ScopeOneofCase.CompanyId:
CompanyId = other.CompanyId;
break;
case ScopeOneofCase.UserId:
UserId = other.UserId;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CameraVideoDataScope Clone() {
return new CameraVideoDataScope(this);
}
/// Field number for the "company_id" field.
public const int CompanyIdFieldNumber = 1;
///
/// Идентификатор компании
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long CompanyId {
get { return HasCompanyId ? (long) scope_ : 0L; }
set {
scope_ = value;
scopeCase_ = ScopeOneofCase.CompanyId;
}
}
/// Gets whether the "company_id" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasCompanyId {
get { return scopeCase_ == ScopeOneofCase.CompanyId; }
}
/// Clears the value of the oneof if it's currently set to "company_id"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearCompanyId() {
if (HasCompanyId) {
ClearScope();
}
}
/// Field number for the "user_id" field.
public const int UserIdFieldNumber = 2;
///
/// Идентификатор пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int UserId {
get { return HasUserId ? (int) scope_ : 0; }
set {
scope_ = value;
scopeCase_ = ScopeOneofCase.UserId;
}
}
/// Gets whether the "user_id" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasUserId {
get { return scopeCase_ == ScopeOneofCase.UserId; }
}
/// Clears the value of the oneof if it's currently set to "user_id"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearUserId() {
if (HasUserId) {
ClearScope();
}
}
private object scope_;
/// Enum of possible cases for the "scope" oneof.
public enum ScopeOneofCase {
None = 0,
CompanyId = 1,
UserId = 2,
}
private ScopeOneofCase scopeCase_ = ScopeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ScopeOneofCase ScopeCase {
get { return scopeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearScope() {
scopeCase_ = ScopeOneofCase.None;
scope_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as CameraVideoDataScope);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(CameraVideoDataScope other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (CompanyId != other.CompanyId) return false;
if (UserId != other.UserId) return false;
if (ScopeCase != other.ScopeCase) 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 (HasCompanyId) hash ^= CompanyId.GetHashCode();
if (HasUserId) hash ^= UserId.GetHashCode();
hash ^= (int) scopeCase_;
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 (HasCompanyId) {
output.WriteRawTag(8);
output.WriteInt64(CompanyId);
}
if (HasUserId) {
output.WriteRawTag(16);
output.WriteInt32(UserId);
}
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 (HasCompanyId) {
output.WriteRawTag(8);
output.WriteInt64(CompanyId);
}
if (HasUserId) {
output.WriteRawTag(16);
output.WriteInt32(UserId);
}
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 (HasCompanyId) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(CompanyId);
}
if (HasUserId) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(CameraVideoDataScope other) {
if (other == null) {
return;
}
switch (other.ScopeCase) {
case ScopeOneofCase.CompanyId:
CompanyId = other.CompanyId;
break;
case ScopeOneofCase.UserId:
UserId = other.UserId;
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: {
CompanyId = input.ReadInt64();
break;
}
case 16: {
UserId = 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.ReadInt64();
break;
}
case 16: {
UserId = input.ReadInt32();
break;
}
}
}
}
#endif
}
///
/// Запрос на получение количества камер
///
public sealed partial class GetCameraVideoDataCountRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCameraVideoDataCountRequest());
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.KeyapisVcCameraVideoDataV1Reflection.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 GetCameraVideoDataCountRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCameraVideoDataCountRequest(GetCameraVideoDataCountRequest other) : this() {
scope_ = other.scope_ != null ? other.scope_.Clone() : null;
filter_ = other.filter_ != null ? other.filter_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCameraVideoDataCountRequest Clone() {
return new GetCameraVideoDataCountRequest(this);
}
/// Field number for the "scope" field.
public const int ScopeFieldNumber = 1;
private global::Keyapis.Vc.V1.CameraVideoDataScope scope_;
///
/// Ограничение выборки
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraVideoDataScope Scope {
get { return scope_; }
set {
scope_ = value;
}
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 2;
private global::Keyapis.Vc.V1.CameraVideoDataFilter filter_;
///
/// Фильтр
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraVideoDataFilter Filter {
get { return filter_; }
set {
filter_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetCameraVideoDataCountRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetCameraVideoDataCountRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Scope, other.Scope)) return false;
if (!object.Equals(Filter, other.Filter)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (scope_ != null) hash ^= Scope.GetHashCode();
if (filter_ != null) hash ^= Filter.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (scope_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Scope);
}
if (filter_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Filter);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (scope_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Scope);
}
if (filter_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Filter);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (scope_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scope);
}
if (filter_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetCameraVideoDataCountRequest other) {
if (other == null) {
return;
}
if (other.scope_ != null) {
if (scope_ == null) {
Scope = new global::Keyapis.Vc.V1.CameraVideoDataScope();
}
Scope.MergeFrom(other.Scope);
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.Vc.V1.CameraVideoDataFilter();
}
Filter.MergeFrom(other.Filter);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (scope_ == null) {
Scope = new global::Keyapis.Vc.V1.CameraVideoDataScope();
}
input.ReadMessage(Scope);
break;
}
case 18: {
if (filter_ == null) {
Filter = new global::Keyapis.Vc.V1.CameraVideoDataFilter();
}
input.ReadMessage(Filter);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
if (scope_ == null) {
Scope = new global::Keyapis.Vc.V1.CameraVideoDataScope();
}
input.ReadMessage(Scope);
break;
}
case 18: {
if (filter_ == null) {
Filter = new global::Keyapis.Vc.V1.CameraVideoDataFilter();
}
input.ReadMessage(Filter);
break;
}
}
}
}
#endif
}
///
/// Ответ на получение количества камер
///
public sealed partial class GetCameraVideoDataCountResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCameraVideoDataCountResponse());
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.KeyapisVcCameraVideoDataV1Reflection.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 GetCameraVideoDataCountResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCameraVideoDataCountResponse(GetCameraVideoDataCountResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data;
break;
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCameraVideoDataCountResponse Clone() {
return new GetCameraVideoDataCountResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Всего количество
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Data {
get { return HasData ? (int) type_ : 0; }
set {
type_ = value;
typeCase_ = TypeOneofCase.Data;
}
}
/// Gets whether the "data" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasData {
get { return typeCase_ == TypeOneofCase.Data; }
}
/// Clears the value of the oneof if it's currently set to "data"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearData() {
if (HasData) {
ClearType();
}
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse.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 GetCameraVideoDataCountResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetCameraVideoDataCountResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Data != other.Data) return false;
if (!object.Equals(Error, other.Error)) return false;
if (TypeCase != other.TypeCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasData) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
hash ^= (int) typeCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasData) {
output.WriteRawTag(8);
output.WriteInt32(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasData) {
output.WriteRawTag(8);
output.WriteInt32(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasData) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetCameraVideoDataCountResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data;
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Data = input.ReadInt32();
break;
}
case 18: {
global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse.Types.Error subBuilder = new global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Data = input.ReadInt32();
break;
}
case 18: {
global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse.Types.Error subBuilder = new global::Keyapis.Vc.V1.GetCameraVideoDataCountResponse.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 GetCameraVideoDataCountResponse 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.GetCameraVideoDataCountResponse.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;
}
_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;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
Validation = 1,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Validation, other.Validation)) 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();
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 (_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 (_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 (_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;
}
_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;
}
}
}
#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;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос на получение списка камер
///
public sealed partial class GetCameraVideoDataListRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCameraVideoDataListRequest());
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.KeyapisVcCameraVideoDataV1Reflection.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 GetCameraVideoDataListRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCameraVideoDataListRequest(GetCameraVideoDataListRequest other) : this() {
scope_ = other.scope_ != null ? other.scope_.Clone() : null;
filter_ = other.filter_ != null ? other.filter_.Clone() : null;
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
Paging = other.Paging.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCameraVideoDataListRequest Clone() {
return new GetCameraVideoDataListRequest(this);
}
/// Field number for the "scope" field.
public const int ScopeFieldNumber = 1;
private global::Keyapis.Vc.V1.CameraVideoDataScope scope_;
///
/// Ограничение выборки
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraVideoDataScope Scope {
get { return scope_; }
set {
scope_ = value;
}
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 2;
private global::Keyapis.Vc.V1.CameraVideoDataFilter filter_;
///
/// Фильтр
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraVideoDataFilter Filter {
get { return filter_; }
set {
filter_ = value;
}
}
/// Field number for the "paging" field.
public const int PagingFieldNumber = 3;
///
/// Постраничный вывод
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraVideoDataPaging Paging {
get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.Vc.V1.CameraVideoDataPaging) pagination_ : null; }
set {
pagination_ = value;
paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging;
}
}
private object pagination_;
/// Enum of possible cases for the "pagination" oneof.
public enum PaginationOneofCase {
None = 0,
Paging = 3,
}
private PaginationOneofCase paginationCase_ = PaginationOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PaginationOneofCase PaginationCase {
get { return paginationCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPagination() {
paginationCase_ = PaginationOneofCase.None;
pagination_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetCameraVideoDataListRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetCameraVideoDataListRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Scope, other.Scope)) return false;
if (!object.Equals(Filter, other.Filter)) return false;
if (!object.Equals(Paging, other.Paging)) return false;
if (PaginationCase != other.PaginationCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (scope_ != null) hash ^= Scope.GetHashCode();
if (filter_ != null) hash ^= Filter.GetHashCode();
if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode();
hash ^= (int) paginationCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (scope_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Scope);
}
if (filter_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
output.WriteRawTag(26);
output.WriteMessage(Paging);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (scope_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Scope);
}
if (filter_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
output.WriteRawTag(26);
output.WriteMessage(Paging);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (scope_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scope);
}
if (filter_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter);
}
if (paginationCase_ == PaginationOneofCase.Paging) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetCameraVideoDataListRequest other) {
if (other == null) {
return;
}
if (other.scope_ != null) {
if (scope_ == null) {
Scope = new global::Keyapis.Vc.V1.CameraVideoDataScope();
}
Scope.MergeFrom(other.Scope);
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.Vc.V1.CameraVideoDataFilter();
}
Filter.MergeFrom(other.Filter);
}
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
if (Paging == null) {
Paging = new global::Keyapis.Vc.V1.CameraVideoDataPaging();
}
Paging.MergeFrom(other.Paging);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (scope_ == null) {
Scope = new global::Keyapis.Vc.V1.CameraVideoDataScope();
}
input.ReadMessage(Scope);
break;
}
case 18: {
if (filter_ == null) {
Filter = new global::Keyapis.Vc.V1.CameraVideoDataFilter();
}
input.ReadMessage(Filter);
break;
}
case 26: {
global::Keyapis.Vc.V1.CameraVideoDataPaging subBuilder = new global::Keyapis.Vc.V1.CameraVideoDataPaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
if (scope_ == null) {
Scope = new global::Keyapis.Vc.V1.CameraVideoDataScope();
}
input.ReadMessage(Scope);
break;
}
case 18: {
if (filter_ == null) {
Filter = new global::Keyapis.Vc.V1.CameraVideoDataFilter();
}
input.ReadMessage(Filter);
break;
}
case 26: {
global::Keyapis.Vc.V1.CameraVideoDataPaging subBuilder = new global::Keyapis.Vc.V1.CameraVideoDataPaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Ответ на получение списка камер
///
public sealed partial class GetCameraVideoDataListResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCameraVideoDataListResponse());
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.KeyapisVcCameraVideoDataV1Reflection.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 GetCameraVideoDataListResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCameraVideoDataListResponse(GetCameraVideoDataListResponse other) : this() {
data_ = other.data_.Clone();
error_ = other.error_ != null ? other.error_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCameraVideoDataListResponse Clone() {
return new GetCameraVideoDataListResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_data_codec
= pb::FieldCodec.ForMessage(10, global::Keyapis.Vc.V1.CameraVideoData.Parser);
private readonly pbc::RepeatedField data_ = new pbc::RepeatedField();
///
/// Камера
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Data {
get { return data_; }
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
private global::Keyapis.Vc.V1.GetCameraVideoDataListResponse.Types.Error error_;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.GetCameraVideoDataListResponse.Types.Error Error {
get { return error_; }
set {
error_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetCameraVideoDataListResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetCameraVideoDataListResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!data_.Equals(other.data_)) return false;
if (!object.Equals(Error, other.Error)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= data_.GetHashCode();
if (error_ != null) hash ^= Error.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
data_.WriteTo(output, _repeated_data_codec);
if (error_ != null) {
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) {
data_.WriteTo(ref output, _repeated_data_codec);
if (error_ != null) {
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;
size += data_.CalculateSize(_repeated_data_codec);
if (error_ != null) {
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(GetCameraVideoDataListResponse other) {
if (other == null) {
return;
}
data_.Add(other.data_);
if (other.error_ != null) {
if (error_ == null) {
Error = new global::Keyapis.Vc.V1.GetCameraVideoDataListResponse.Types.Error();
}
Error.MergeFrom(other.Error);
}
_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: {
data_.AddEntriesFrom(input, _repeated_data_codec);
break;
}
case 18: {
if (error_ == null) {
Error = new global::Keyapis.Vc.V1.GetCameraVideoDataListResponse.Types.Error();
}
input.ReadMessage(Error);
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: {
data_.AddEntriesFrom(ref input, _repeated_data_codec);
break;
}
case 18: {
if (error_ == null) {
Error = new global::Keyapis.Vc.V1.GetCameraVideoDataListResponse.Types.Error();
}
input.ReadMessage(Error);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the GetCameraVideoDataListResponse 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.GetCameraVideoDataListResponse.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;
}
_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;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
Validation = 1,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Validation, other.Validation)) 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();
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 (_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 (_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 (_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;
}
_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;
}
}
}
#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;
}
}
}
}
#endif
}
}
#endregion
}
#endregion
}
#endregion Designer generated code