mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-05-07 03:18:25 +00:00
3199 lines
109 KiB
C#
Vendored
3199 lines
109 KiB
C#
Vendored
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: api/user.proto
|
|
// </auto-generated>
|
|
#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 Chirpstack.Api {
|
|
|
|
/// <summary>Holder for reflection information generated from api/user.proto</summary>
|
|
public static partial class UserReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for api/user.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static UserReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Cg5hcGkvdXNlci5wcm90bxIDYXBpGhxnb29nbGUvYXBpL2Fubm90YXRpb25z",
|
|
"LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGhtnb29n",
|
|
"bGUvcHJvdG9idWYvZW1wdHkucHJvdG8iVAoEVXNlchIKCgJpZBgBIAEoCRIQ",
|
|
"Cghpc19hZG1pbhgEIAEoCBIRCglpc19hY3RpdmUYBSABKAgSDQoFZW1haWwY",
|
|
"BiABKAkSDAoEbm90ZRgHIAEoCSKuAQoMVXNlckxpc3RJdGVtEgoKAmlkGAEg",
|
|
"ASgJEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt",
|
|
"ZXN0YW1wEi4KCnVwZGF0ZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYu",
|
|
"VGltZXN0YW1wEg0KBWVtYWlsGAQgASgJEhAKCGlzX2FkbWluGAUgASgIEhEK",
|
|
"CWlzX2FjdGl2ZRgGIAEoCCJkCgpVc2VyVGVuYW50EhEKCXRlbmFudF9pZBgB",
|
|
"IAEoCRIQCghpc19hZG1pbhgCIAEoCBIXCg9pc19kZXZpY2VfYWRtaW4YAyAB",
|
|
"KAgSGAoQaXNfZ2F0ZXdheV9hZG1pbhgEIAEoCCJgChFDcmVhdGVVc2VyUmVx",
|
|
"dWVzdBIXCgR1c2VyGAEgASgLMgkuYXBpLlVzZXISEAoIcGFzc3dvcmQYAiAB",
|
|
"KAkSIAoHdGVuYW50cxgDIAMoCzIPLmFwaS5Vc2VyVGVuYW50IiAKEkNyZWF0",
|
|
"ZVVzZXJSZXNwb25zZRIKCgJpZBgBIAEoCSIcCg5HZXRVc2VyUmVxdWVzdBIK",
|
|
"CgJpZBgBIAEoCSKKAQoPR2V0VXNlclJlc3BvbnNlEhcKBHVzZXIYASABKAsy",
|
|
"CS5hcGkuVXNlchIuCgpjcmVhdGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3Rv",
|
|
"YnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAMgASgLMhouZ29vZ2xlLnBy",
|
|
"b3RvYnVmLlRpbWVzdGFtcCIsChFVcGRhdGVVc2VyUmVxdWVzdBIXCgR1c2Vy",
|
|
"GAEgASgLMgkuYXBpLlVzZXIiHwoRRGVsZXRlVXNlclJlcXVlc3QSCgoCaWQY",
|
|
"ASABKAkiMQoQTGlzdFVzZXJzUmVxdWVzdBINCgVsaW1pdBgBIAEoDRIOCgZv",
|
|
"ZmZzZXQYAiABKA0iSwoRTGlzdFVzZXJzUmVzcG9uc2USEwoLdG90YWxfY291",
|
|
"bnQYASABKA0SIQoGcmVzdWx0GAIgAygLMhEuYXBpLlVzZXJMaXN0SXRlbSI+",
|
|
"ChlVcGRhdGVVc2VyUGFzc3dvcmRSZXF1ZXN0Eg8KB3VzZXJfaWQYASABKAkS",
|
|
"EAoIcGFzc3dvcmQYAiABKAkylwQKC1VzZXJTZXJ2aWNlElAKBkNyZWF0ZRIW",
|
|
"LmFwaS5DcmVhdGVVc2VyUmVxdWVzdBoXLmFwaS5DcmVhdGVVc2VyUmVzcG9u",
|
|
"c2UiFYLT5JMCDyIKL2FwaS91c2VyczoBKhJJCgNHZXQSEy5hcGkuR2V0VXNl",
|
|
"clJlcXVlc3QaFC5hcGkuR2V0VXNlclJlc3BvbnNlIheC0+STAhESDy9hcGkv",
|
|
"dXNlcnMve2lkfRJZCgZVcGRhdGUSFi5hcGkuVXBkYXRlVXNlclJlcXVlc3Qa",
|
|
"Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiH4LT5JMCGRoUL2FwaS91c2Vycy97",
|
|
"dXNlci5pZH06ASoSUQoGRGVsZXRlEhYuYXBpLkRlbGV0ZVVzZXJSZXF1ZXN0",
|
|
"GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IheC0+STAhEqDy9hcGkvdXNlcnMv",
|
|
"e2lkfRJJCgRMaXN0EhUuYXBpLkxpc3RVc2Vyc1JlcXVlc3QaFi5hcGkuTGlz",
|
|
"dFVzZXJzUmVzcG9uc2UiEoLT5JMCDBIKL2FwaS91c2VycxJyCg5VcGRhdGVQ",
|
|
"YXNzd29yZBIeLmFwaS5VcGRhdGVVc2VyUGFzc3dvcmRSZXF1ZXN0GhYuZ29v",
|
|
"Z2xlLnByb3RvYnVmLkVtcHR5IiiC0+STAiIiHS9hcGkvdXNlcnMve3VzZXJf",
|
|
"aWR9L3Bhc3N3b3JkOgEqQmEKEWlvLmNoaXJwc3RhY2suYXBpQglVc2VyUHJv",
|
|
"dG9QAVouZ2l0aHViLmNvbS9jaGlycHN0YWNrL2NoaXJwc3RhY2svYXBpL2dv",
|
|
"L3Y0L2FwaaoCDkNoaXJwc3RhY2suQXBpYgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.User), global::Chirpstack.Api.User.Parser, new[]{ "Id", "IsAdmin", "IsActive", "Email", "Note" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UserListItem), global::Chirpstack.Api.UserListItem.Parser, new[]{ "Id", "CreatedAt", "UpdatedAt", "Email", "IsAdmin", "IsActive" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UserTenant), global::Chirpstack.Api.UserTenant.Parser, new[]{ "TenantId", "IsAdmin", "IsDeviceAdmin", "IsGatewayAdmin" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateUserRequest), global::Chirpstack.Api.CreateUserRequest.Parser, new[]{ "User", "Password", "Tenants" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.CreateUserResponse), global::Chirpstack.Api.CreateUserResponse.Parser, new[]{ "Id" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetUserRequest), global::Chirpstack.Api.GetUserRequest.Parser, new[]{ "Id" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.GetUserResponse), global::Chirpstack.Api.GetUserResponse.Parser, new[]{ "User", "CreatedAt", "UpdatedAt" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateUserRequest), global::Chirpstack.Api.UpdateUserRequest.Parser, new[]{ "User" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.DeleteUserRequest), global::Chirpstack.Api.DeleteUserRequest.Parser, new[]{ "Id" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListUsersRequest), global::Chirpstack.Api.ListUsersRequest.Parser, new[]{ "Limit", "Offset" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.ListUsersResponse), global::Chirpstack.Api.ListUsersResponse.Parser, new[]{ "TotalCount", "Result" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Chirpstack.Api.UpdateUserPasswordRequest), global::Chirpstack.Api.UpdateUserPasswordRequest.Parser, new[]{ "UserId", "Password" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
public sealed partial class User : pb::IMessage<User>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<User> _parser = new pb::MessageParser<User>(() => new User());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<User> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.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 User() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public User(User other) : this() {
|
|
id_ = other.id_;
|
|
isAdmin_ = other.isAdmin_;
|
|
isActive_ = other.isActive_;
|
|
email_ = other.email_;
|
|
note_ = other.note_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public User Clone() {
|
|
return new User(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private string id_ = "";
|
|
/// <summary>
|
|
/// User ID (UUID).
|
|
/// Will be set automatically on create.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "is_admin" field.</summary>
|
|
public const int IsAdminFieldNumber = 4;
|
|
private bool isAdmin_;
|
|
/// <summary>
|
|
/// Set to true to make the user a global administrator.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool IsAdmin {
|
|
get { return isAdmin_; }
|
|
set {
|
|
isAdmin_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "is_active" field.</summary>
|
|
public const int IsActiveFieldNumber = 5;
|
|
private bool isActive_;
|
|
/// <summary>
|
|
/// Set to false to disable the user.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool IsActive {
|
|
get { return isActive_; }
|
|
set {
|
|
isActive_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "email" field.</summary>
|
|
public const int EmailFieldNumber = 6;
|
|
private string email_ = "";
|
|
/// <summary>
|
|
/// E-mail of the user.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Email {
|
|
get { return email_; }
|
|
set {
|
|
email_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "note" field.</summary>
|
|
public const int NoteFieldNumber = 7;
|
|
private string note_ = "";
|
|
/// <summary>
|
|
/// Optional note to store with the user.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Note {
|
|
get { return note_; }
|
|
set {
|
|
note_ = 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 User);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(User other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (IsAdmin != other.IsAdmin) return false;
|
|
if (IsActive != other.IsActive) return false;
|
|
if (Email != other.Email) return false;
|
|
if (Note != other.Note) 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.Length != 0) hash ^= Id.GetHashCode();
|
|
if (IsAdmin != false) hash ^= IsAdmin.GetHashCode();
|
|
if (IsActive != false) hash ^= IsActive.GetHashCode();
|
|
if (Email.Length != 0) hash ^= Email.GetHashCode();
|
|
if (Note.Length != 0) hash ^= Note.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.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (IsAdmin != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(IsAdmin);
|
|
}
|
|
if (IsActive != false) {
|
|
output.WriteRawTag(40);
|
|
output.WriteBool(IsActive);
|
|
}
|
|
if (Email.Length != 0) {
|
|
output.WriteRawTag(50);
|
|
output.WriteString(Email);
|
|
}
|
|
if (Note.Length != 0) {
|
|
output.WriteRawTag(58);
|
|
output.WriteString(Note);
|
|
}
|
|
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.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (IsAdmin != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(IsAdmin);
|
|
}
|
|
if (IsActive != false) {
|
|
output.WriteRawTag(40);
|
|
output.WriteBool(IsActive);
|
|
}
|
|
if (Email.Length != 0) {
|
|
output.WriteRawTag(50);
|
|
output.WriteString(Email);
|
|
}
|
|
if (Note.Length != 0) {
|
|
output.WriteRawTag(58);
|
|
output.WriteString(Note);
|
|
}
|
|
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.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
|
}
|
|
if (IsAdmin != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (IsActive != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (Email.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Email);
|
|
}
|
|
if (Note.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Note);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(User other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id.Length != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.IsAdmin != false) {
|
|
IsAdmin = other.IsAdmin;
|
|
}
|
|
if (other.IsActive != false) {
|
|
IsActive = other.IsActive;
|
|
}
|
|
if (other.Email.Length != 0) {
|
|
Email = other.Email;
|
|
}
|
|
if (other.Note.Length != 0) {
|
|
Note = other.Note;
|
|
}
|
|
_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: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
case 32: {
|
|
IsAdmin = input.ReadBool();
|
|
break;
|
|
}
|
|
case 40: {
|
|
IsActive = input.ReadBool();
|
|
break;
|
|
}
|
|
case 50: {
|
|
Email = input.ReadString();
|
|
break;
|
|
}
|
|
case 58: {
|
|
Note = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
case 32: {
|
|
IsAdmin = input.ReadBool();
|
|
break;
|
|
}
|
|
case 40: {
|
|
IsActive = input.ReadBool();
|
|
break;
|
|
}
|
|
case 50: {
|
|
Email = input.ReadString();
|
|
break;
|
|
}
|
|
case 58: {
|
|
Note = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class UserListItem : pb::IMessage<UserListItem>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<UserListItem> _parser = new pb::MessageParser<UserListItem>(() => new UserListItem());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<UserListItem> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.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 UserListItem() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public UserListItem(UserListItem other) : this() {
|
|
id_ = other.id_;
|
|
createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null;
|
|
updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null;
|
|
email_ = other.email_;
|
|
isAdmin_ = other.isAdmin_;
|
|
isActive_ = other.isActive_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public UserListItem Clone() {
|
|
return new UserListItem(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private string id_ = "";
|
|
/// <summary>
|
|
/// User ID (UUID).
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "created_at" field.</summary>
|
|
public const int CreatedAtFieldNumber = 2;
|
|
private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_;
|
|
/// <summary>
|
|
/// Created at timestamp.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt {
|
|
get { return createdAt_; }
|
|
set {
|
|
createdAt_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "updated_at" field.</summary>
|
|
public const int UpdatedAtFieldNumber = 3;
|
|
private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_;
|
|
/// <summary>
|
|
/// Last update timestamp.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt {
|
|
get { return updatedAt_; }
|
|
set {
|
|
updatedAt_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "email" field.</summary>
|
|
public const int EmailFieldNumber = 4;
|
|
private string email_ = "";
|
|
/// <summary>
|
|
/// Email of the user.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Email {
|
|
get { return email_; }
|
|
set {
|
|
email_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "is_admin" field.</summary>
|
|
public const int IsAdminFieldNumber = 5;
|
|
private bool isAdmin_;
|
|
/// <summary>
|
|
/// Set to true to make the user a global administrator.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool IsAdmin {
|
|
get { return isAdmin_; }
|
|
set {
|
|
isAdmin_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "is_active" field.</summary>
|
|
public const int IsActiveFieldNumber = 6;
|
|
private bool isActive_;
|
|
/// <summary>
|
|
/// Set to false to disable the user.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool IsActive {
|
|
get { return isActive_; }
|
|
set {
|
|
isActive_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as UserListItem);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(UserListItem other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (!object.Equals(CreatedAt, other.CreatedAt)) return false;
|
|
if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false;
|
|
if (Email != other.Email) return false;
|
|
if (IsAdmin != other.IsAdmin) return false;
|
|
if (IsActive != other.IsActive) 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.Length != 0) hash ^= Id.GetHashCode();
|
|
if (createdAt_ != null) hash ^= CreatedAt.GetHashCode();
|
|
if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode();
|
|
if (Email.Length != 0) hash ^= Email.GetHashCode();
|
|
if (IsAdmin != false) hash ^= IsAdmin.GetHashCode();
|
|
if (IsActive != false) hash ^= IsActive.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.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (createdAt_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(CreatedAt);
|
|
}
|
|
if (updatedAt_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(UpdatedAt);
|
|
}
|
|
if (Email.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Email);
|
|
}
|
|
if (IsAdmin != false) {
|
|
output.WriteRawTag(40);
|
|
output.WriteBool(IsAdmin);
|
|
}
|
|
if (IsActive != false) {
|
|
output.WriteRawTag(48);
|
|
output.WriteBool(IsActive);
|
|
}
|
|
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.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (createdAt_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(CreatedAt);
|
|
}
|
|
if (updatedAt_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(UpdatedAt);
|
|
}
|
|
if (Email.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Email);
|
|
}
|
|
if (IsAdmin != false) {
|
|
output.WriteRawTag(40);
|
|
output.WriteBool(IsAdmin);
|
|
}
|
|
if (IsActive != false) {
|
|
output.WriteRawTag(48);
|
|
output.WriteBool(IsActive);
|
|
}
|
|
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.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
|
}
|
|
if (createdAt_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt);
|
|
}
|
|
if (updatedAt_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt);
|
|
}
|
|
if (Email.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Email);
|
|
}
|
|
if (IsAdmin != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (IsActive != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(UserListItem other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id.Length != 0) {
|
|
Id = other.Id;
|
|
}
|
|
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.Email.Length != 0) {
|
|
Email = other.Email;
|
|
}
|
|
if (other.IsAdmin != false) {
|
|
IsAdmin = other.IsAdmin;
|
|
}
|
|
if (other.IsActive != false) {
|
|
IsActive = other.IsActive;
|
|
}
|
|
_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: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (createdAt_ == null) {
|
|
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(CreatedAt);
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (updatedAt_ == null) {
|
|
UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(UpdatedAt);
|
|
break;
|
|
}
|
|
case 34: {
|
|
Email = input.ReadString();
|
|
break;
|
|
}
|
|
case 40: {
|
|
IsAdmin = input.ReadBool();
|
|
break;
|
|
}
|
|
case 48: {
|
|
IsActive = input.ReadBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (createdAt_ == null) {
|
|
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(CreatedAt);
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (updatedAt_ == null) {
|
|
UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(UpdatedAt);
|
|
break;
|
|
}
|
|
case 34: {
|
|
Email = input.ReadString();
|
|
break;
|
|
}
|
|
case 40: {
|
|
IsAdmin = input.ReadBool();
|
|
break;
|
|
}
|
|
case 48: {
|
|
IsActive = input.ReadBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class UserTenant : pb::IMessage<UserTenant>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<UserTenant> _parser = new pb::MessageParser<UserTenant>(() => new UserTenant());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<UserTenant> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.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 UserTenant() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public UserTenant(UserTenant other) : this() {
|
|
tenantId_ = other.tenantId_;
|
|
isAdmin_ = other.isAdmin_;
|
|
isDeviceAdmin_ = other.isDeviceAdmin_;
|
|
isGatewayAdmin_ = other.isGatewayAdmin_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public UserTenant Clone() {
|
|
return new UserTenant(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "tenant_id" field.</summary>
|
|
public const int TenantIdFieldNumber = 1;
|
|
private string tenantId_ = "";
|
|
/// <summary>
|
|
/// Tenant ID.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string TenantId {
|
|
get { return tenantId_; }
|
|
set {
|
|
tenantId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "is_admin" field.</summary>
|
|
public const int IsAdminFieldNumber = 2;
|
|
private bool isAdmin_;
|
|
/// <summary>
|
|
/// User is admin within the context of the tenant.
|
|
/// There is no need to set the is_device_admin and is_gateway_admin flags.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool IsAdmin {
|
|
get { return isAdmin_; }
|
|
set {
|
|
isAdmin_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "is_device_admin" field.</summary>
|
|
public const int IsDeviceAdminFieldNumber = 3;
|
|
private bool isDeviceAdmin_;
|
|
/// <summary>
|
|
/// User is able to modify device related resources (applications,
|
|
/// device-profiles, devices, multicast-groups).
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool IsDeviceAdmin {
|
|
get { return isDeviceAdmin_; }
|
|
set {
|
|
isDeviceAdmin_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "is_gateway_admin" field.</summary>
|
|
public const int IsGatewayAdminFieldNumber = 4;
|
|
private bool isGatewayAdmin_;
|
|
/// <summary>
|
|
/// User is able to modify gateways.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool IsGatewayAdmin {
|
|
get { return isGatewayAdmin_; }
|
|
set {
|
|
isGatewayAdmin_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as UserTenant);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(UserTenant other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (TenantId != other.TenantId) return false;
|
|
if (IsAdmin != other.IsAdmin) return false;
|
|
if (IsDeviceAdmin != other.IsDeviceAdmin) return false;
|
|
if (IsGatewayAdmin != other.IsGatewayAdmin) 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 (TenantId.Length != 0) hash ^= TenantId.GetHashCode();
|
|
if (IsAdmin != false) hash ^= IsAdmin.GetHashCode();
|
|
if (IsDeviceAdmin != false) hash ^= IsDeviceAdmin.GetHashCode();
|
|
if (IsGatewayAdmin != false) hash ^= IsGatewayAdmin.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 (TenantId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(TenantId);
|
|
}
|
|
if (IsAdmin != false) {
|
|
output.WriteRawTag(16);
|
|
output.WriteBool(IsAdmin);
|
|
}
|
|
if (IsDeviceAdmin != false) {
|
|
output.WriteRawTag(24);
|
|
output.WriteBool(IsDeviceAdmin);
|
|
}
|
|
if (IsGatewayAdmin != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(IsGatewayAdmin);
|
|
}
|
|
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 (TenantId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(TenantId);
|
|
}
|
|
if (IsAdmin != false) {
|
|
output.WriteRawTag(16);
|
|
output.WriteBool(IsAdmin);
|
|
}
|
|
if (IsDeviceAdmin != false) {
|
|
output.WriteRawTag(24);
|
|
output.WriteBool(IsDeviceAdmin);
|
|
}
|
|
if (IsGatewayAdmin != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(IsGatewayAdmin);
|
|
}
|
|
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 (TenantId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(TenantId);
|
|
}
|
|
if (IsAdmin != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (IsDeviceAdmin != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (IsGatewayAdmin != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(UserTenant other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.TenantId.Length != 0) {
|
|
TenantId = other.TenantId;
|
|
}
|
|
if (other.IsAdmin != false) {
|
|
IsAdmin = other.IsAdmin;
|
|
}
|
|
if (other.IsDeviceAdmin != false) {
|
|
IsDeviceAdmin = other.IsDeviceAdmin;
|
|
}
|
|
if (other.IsGatewayAdmin != false) {
|
|
IsGatewayAdmin = other.IsGatewayAdmin;
|
|
}
|
|
_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: {
|
|
TenantId = input.ReadString();
|
|
break;
|
|
}
|
|
case 16: {
|
|
IsAdmin = input.ReadBool();
|
|
break;
|
|
}
|
|
case 24: {
|
|
IsDeviceAdmin = input.ReadBool();
|
|
break;
|
|
}
|
|
case 32: {
|
|
IsGatewayAdmin = input.ReadBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
TenantId = input.ReadString();
|
|
break;
|
|
}
|
|
case 16: {
|
|
IsAdmin = input.ReadBool();
|
|
break;
|
|
}
|
|
case 24: {
|
|
IsDeviceAdmin = input.ReadBool();
|
|
break;
|
|
}
|
|
case 32: {
|
|
IsGatewayAdmin = input.ReadBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class CreateUserRequest : pb::IMessage<CreateUserRequest>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<CreateUserRequest> _parser = new pb::MessageParser<CreateUserRequest>(() => new CreateUserRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<CreateUserRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.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 CreateUserRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public CreateUserRequest(CreateUserRequest other) : this() {
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
password_ = other.password_;
|
|
tenants_ = other.tenants_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public CreateUserRequest Clone() {
|
|
return new CreateUserRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
public const int UserFieldNumber = 1;
|
|
private global::Chirpstack.Api.User user_;
|
|
/// <summary>
|
|
/// User object to create.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Chirpstack.Api.User User {
|
|
get { return user_; }
|
|
set {
|
|
user_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "password" field.</summary>
|
|
public const int PasswordFieldNumber = 2;
|
|
private string password_ = "";
|
|
/// <summary>
|
|
/// Password to set for the user.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Password {
|
|
get { return password_; }
|
|
set {
|
|
password_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "tenants" field.</summary>
|
|
public const int TenantsFieldNumber = 3;
|
|
private static readonly pb::FieldCodec<global::Chirpstack.Api.UserTenant> _repeated_tenants_codec
|
|
= pb::FieldCodec.ForMessage(26, global::Chirpstack.Api.UserTenant.Parser);
|
|
private readonly pbc::RepeatedField<global::Chirpstack.Api.UserTenant> tenants_ = new pbc::RepeatedField<global::Chirpstack.Api.UserTenant>();
|
|
/// <summary>
|
|
/// Add the user to the following tenants.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::Chirpstack.Api.UserTenant> Tenants {
|
|
get { return tenants_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as CreateUserRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(CreateUserRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(User, other.User)) return false;
|
|
if (Password != other.Password) return false;
|
|
if(!tenants_.Equals(other.tenants_)) 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 (user_ != null) hash ^= User.GetHashCode();
|
|
if (Password.Length != 0) hash ^= Password.GetHashCode();
|
|
hash ^= tenants_.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 (user_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(User);
|
|
}
|
|
if (Password.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Password);
|
|
}
|
|
tenants_.WriteTo(output, _repeated_tenants_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (user_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(User);
|
|
}
|
|
if (Password.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Password);
|
|
}
|
|
tenants_.WriteTo(ref output, _repeated_tenants_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (user_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
}
|
|
if (Password.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Password);
|
|
}
|
|
size += tenants_.CalculateSize(_repeated_tenants_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(CreateUserRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.user_ != null) {
|
|
if (user_ == null) {
|
|
User = new global::Chirpstack.Api.User();
|
|
}
|
|
User.MergeFrom(other.User);
|
|
}
|
|
if (other.Password.Length != 0) {
|
|
Password = other.Password;
|
|
}
|
|
tenants_.Add(other.tenants_);
|
|
_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 (user_ == null) {
|
|
User = new global::Chirpstack.Api.User();
|
|
}
|
|
input.ReadMessage(User);
|
|
break;
|
|
}
|
|
case 18: {
|
|
Password = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
tenants_.AddEntriesFrom(input, _repeated_tenants_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: {
|
|
if (user_ == null) {
|
|
User = new global::Chirpstack.Api.User();
|
|
}
|
|
input.ReadMessage(User);
|
|
break;
|
|
}
|
|
case 18: {
|
|
Password = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
tenants_.AddEntriesFrom(ref input, _repeated_tenants_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class CreateUserResponse : pb::IMessage<CreateUserResponse>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<CreateUserResponse> _parser = new pb::MessageParser<CreateUserResponse>(() => new CreateUserResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<CreateUserResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.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 CreateUserResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public CreateUserResponse(CreateUserResponse other) : this() {
|
|
id_ = other.id_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public CreateUserResponse Clone() {
|
|
return new CreateUserResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private string id_ = "";
|
|
/// <summary>
|
|
/// User ID.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = 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 CreateUserResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(CreateUserResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Id.Length != 0) hash ^= Id.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (Id.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (Id.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Id.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(CreateUserResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id.Length != 0) {
|
|
Id = other.Id;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class GetUserRequest : pb::IMessage<GetUserRequest>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<GetUserRequest> _parser = new pb::MessageParser<GetUserRequest>(() => new GetUserRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<GetUserRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.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 GetUserRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public GetUserRequest(GetUserRequest other) : this() {
|
|
id_ = other.id_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public GetUserRequest Clone() {
|
|
return new GetUserRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private string id_ = "";
|
|
/// <summary>
|
|
/// User ID.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = 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 GetUserRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(GetUserRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Id.Length != 0) hash ^= Id.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (Id.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (Id.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Id.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(GetUserRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id.Length != 0) {
|
|
Id = other.Id;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class GetUserResponse : pb::IMessage<GetUserResponse>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<GetUserResponse> _parser = new pb::MessageParser<GetUserResponse>(() => new GetUserResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<GetUserResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.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 GetUserResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public GetUserResponse(GetUserResponse other) : this() {
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null;
|
|
updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public GetUserResponse Clone() {
|
|
return new GetUserResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
public const int UserFieldNumber = 1;
|
|
private global::Chirpstack.Api.User user_;
|
|
/// <summary>
|
|
/// User object.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Chirpstack.Api.User User {
|
|
get { return user_; }
|
|
set {
|
|
user_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "created_at" field.</summary>
|
|
public const int CreatedAtFieldNumber = 2;
|
|
private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_;
|
|
/// <summary>
|
|
/// Created at timestamp.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt {
|
|
get { return createdAt_; }
|
|
set {
|
|
createdAt_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "updated_at" field.</summary>
|
|
public const int UpdatedAtFieldNumber = 3;
|
|
private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_;
|
|
/// <summary>
|
|
/// Last update timestamp.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt {
|
|
get { return updatedAt_; }
|
|
set {
|
|
updatedAt_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as GetUserResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(GetUserResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(User, other.User)) return false;
|
|
if (!object.Equals(CreatedAt, other.CreatedAt)) return false;
|
|
if (!object.Equals(UpdatedAt, other.UpdatedAt)) 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 (user_ != null) hash ^= User.GetHashCode();
|
|
if (createdAt_ != null) hash ^= CreatedAt.GetHashCode();
|
|
if (updatedAt_ != null) hash ^= UpdatedAt.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 (user_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(User);
|
|
}
|
|
if (createdAt_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(CreatedAt);
|
|
}
|
|
if (updatedAt_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(UpdatedAt);
|
|
}
|
|
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 (user_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(User);
|
|
}
|
|
if (createdAt_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(CreatedAt);
|
|
}
|
|
if (updatedAt_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(UpdatedAt);
|
|
}
|
|
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 (user_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
}
|
|
if (createdAt_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt);
|
|
}
|
|
if (updatedAt_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(GetUserResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.user_ != null) {
|
|
if (user_ == null) {
|
|
User = new global::Chirpstack.Api.User();
|
|
}
|
|
User.MergeFrom(other.User);
|
|
}
|
|
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);
|
|
}
|
|
_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 (user_ == null) {
|
|
User = new global::Chirpstack.Api.User();
|
|
}
|
|
input.ReadMessage(User);
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (createdAt_ == null) {
|
|
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(CreatedAt);
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (updatedAt_ == null) {
|
|
UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(UpdatedAt);
|
|
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 (user_ == null) {
|
|
User = new global::Chirpstack.Api.User();
|
|
}
|
|
input.ReadMessage(User);
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (createdAt_ == null) {
|
|
CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(CreatedAt);
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (updatedAt_ == null) {
|
|
UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(UpdatedAt);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class UpdateUserRequest : pb::IMessage<UpdateUserRequest>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<UpdateUserRequest> _parser = new pb::MessageParser<UpdateUserRequest>(() => new UpdateUserRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<UpdateUserRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.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 UpdateUserRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public UpdateUserRequest(UpdateUserRequest other) : this() {
|
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public UpdateUserRequest Clone() {
|
|
return new UpdateUserRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "user" field.</summary>
|
|
public const int UserFieldNumber = 1;
|
|
private global::Chirpstack.Api.User user_;
|
|
/// <summary>
|
|
/// User object.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Chirpstack.Api.User User {
|
|
get { return user_; }
|
|
set {
|
|
user_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as UpdateUserRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(UpdateUserRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(User, other.User)) 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 (user_ != null) hash ^= User.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 (user_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(User);
|
|
}
|
|
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 (user_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(User);
|
|
}
|
|
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 (user_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(UpdateUserRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.user_ != null) {
|
|
if (user_ == null) {
|
|
User = new global::Chirpstack.Api.User();
|
|
}
|
|
User.MergeFrom(other.User);
|
|
}
|
|
_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 (user_ == null) {
|
|
User = new global::Chirpstack.Api.User();
|
|
}
|
|
input.ReadMessage(User);
|
|
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 (user_ == null) {
|
|
User = new global::Chirpstack.Api.User();
|
|
}
|
|
input.ReadMessage(User);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class DeleteUserRequest : pb::IMessage<DeleteUserRequest>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<DeleteUserRequest> _parser = new pb::MessageParser<DeleteUserRequest>(() => new DeleteUserRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<DeleteUserRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[8]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public DeleteUserRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public DeleteUserRequest(DeleteUserRequest other) : this() {
|
|
id_ = other.id_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public DeleteUserRequest Clone() {
|
|
return new DeleteUserRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private string id_ = "";
|
|
/// <summary>
|
|
/// User ID.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = 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 DeleteUserRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(DeleteUserRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Id.Length != 0) hash ^= Id.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (Id.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (Id.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Id.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(DeleteUserRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id.Length != 0) {
|
|
Id = other.Id;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class ListUsersRequest : pb::IMessage<ListUsersRequest>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ListUsersRequest> _parser = new pb::MessageParser<ListUsersRequest>(() => new ListUsersRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ListUsersRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[9]; }
|
|
}
|
|
|
|
[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 ListUsersRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ListUsersRequest(ListUsersRequest other) : this() {
|
|
limit_ = other.limit_;
|
|
offset_ = other.offset_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ListUsersRequest Clone() {
|
|
return new ListUsersRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "limit" field.</summary>
|
|
public const int LimitFieldNumber = 1;
|
|
private uint limit_;
|
|
/// <summary>
|
|
/// Max number of tenants to return in the result-set.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Limit {
|
|
get { return limit_; }
|
|
set {
|
|
limit_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "offset" field.</summary>
|
|
public const int OffsetFieldNumber = 2;
|
|
private uint offset_;
|
|
/// <summary>
|
|
/// Offset in the result-set (for pagination).
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint 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 ListUsersRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ListUsersRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
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 (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 (Limit != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Limit);
|
|
}
|
|
if (Offset != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(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 (Limit != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(Limit);
|
|
}
|
|
if (Offset != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(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 (Limit != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Limit);
|
|
}
|
|
if (Offset != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Offset);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ListUsersRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
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: {
|
|
Limit = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Offset = input.ReadUInt32();
|
|
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: {
|
|
Limit = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Offset = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class ListUsersResponse : pb::IMessage<ListUsersResponse>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ListUsersResponse> _parser = new pb::MessageParser<ListUsersResponse>(() => new ListUsersResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ListUsersResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[10]; }
|
|
}
|
|
|
|
[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 ListUsersResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ListUsersResponse(ListUsersResponse other) : this() {
|
|
totalCount_ = other.totalCount_;
|
|
result_ = other.result_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ListUsersResponse Clone() {
|
|
return new ListUsersResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "total_count" field.</summary>
|
|
public const int TotalCountFieldNumber = 1;
|
|
private uint totalCount_;
|
|
/// <summary>
|
|
/// Total number of users.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint TotalCount {
|
|
get { return totalCount_; }
|
|
set {
|
|
totalCount_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "result" field.</summary>
|
|
public const int ResultFieldNumber = 2;
|
|
private static readonly pb::FieldCodec<global::Chirpstack.Api.UserListItem> _repeated_result_codec
|
|
= pb::FieldCodec.ForMessage(18, global::Chirpstack.Api.UserListItem.Parser);
|
|
private readonly pbc::RepeatedField<global::Chirpstack.Api.UserListItem> result_ = new pbc::RepeatedField<global::Chirpstack.Api.UserListItem>();
|
|
/// <summary>
|
|
/// Result-set.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::Chirpstack.Api.UserListItem> Result {
|
|
get { return result_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ListUsersResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ListUsersResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (TotalCount != other.TotalCount) return false;
|
|
if(!result_.Equals(other.result_)) 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 (TotalCount != 0) hash ^= TotalCount.GetHashCode();
|
|
hash ^= result_.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 (TotalCount != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(TotalCount);
|
|
}
|
|
result_.WriteTo(output, _repeated_result_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (TotalCount != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(TotalCount);
|
|
}
|
|
result_.WriteTo(ref output, _repeated_result_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (TotalCount != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TotalCount);
|
|
}
|
|
size += result_.CalculateSize(_repeated_result_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ListUsersResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.TotalCount != 0) {
|
|
TotalCount = other.TotalCount;
|
|
}
|
|
result_.Add(other.result_);
|
|
_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: {
|
|
TotalCount = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 18: {
|
|
result_.AddEntriesFrom(input, _repeated_result_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 8: {
|
|
TotalCount = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 18: {
|
|
result_.AddEntriesFrom(ref input, _repeated_result_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
public sealed partial class UpdateUserPasswordRequest : pb::IMessage<UpdateUserPasswordRequest>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<UpdateUserPasswordRequest> _parser = new pb::MessageParser<UpdateUserPasswordRequest>(() => new UpdateUserPasswordRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<UpdateUserPasswordRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Chirpstack.Api.UserReflection.Descriptor.MessageTypes[11]; }
|
|
}
|
|
|
|
[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 UpdateUserPasswordRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public UpdateUserPasswordRequest(UpdateUserPasswordRequest other) : this() {
|
|
userId_ = other.userId_;
|
|
password_ = other.password_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public UpdateUserPasswordRequest Clone() {
|
|
return new UpdateUserPasswordRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "user_id" field.</summary>
|
|
public const int UserIdFieldNumber = 1;
|
|
private string userId_ = "";
|
|
/// <summary>
|
|
/// User ID.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string UserId {
|
|
get { return userId_; }
|
|
set {
|
|
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "password" field.</summary>
|
|
public const int PasswordFieldNumber = 2;
|
|
private string password_ = "";
|
|
/// <summary>
|
|
/// Password to set.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Password {
|
|
get { return password_; }
|
|
set {
|
|
password_ = 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 UpdateUserPasswordRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(UpdateUserPasswordRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (UserId != other.UserId) return false;
|
|
if (Password != other.Password) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
|
if (Password.Length != 0) hash ^= Password.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 (UserId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(UserId);
|
|
}
|
|
if (Password.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Password);
|
|
}
|
|
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 (UserId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(UserId);
|
|
}
|
|
if (Password.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Password);
|
|
}
|
|
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 (UserId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
|
}
|
|
if (Password.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Password);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(UpdateUserPasswordRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.UserId.Length != 0) {
|
|
UserId = other.UserId;
|
|
}
|
|
if (other.Password.Length != 0) {
|
|
Password = other.Password;
|
|
}
|
|
_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: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Password = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Password = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|