// Copyright 2023 Declan Teevan // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file user.proto (package panels.user.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; /** * @generated from message panels.user.v1.User */ export class User extends Message { /** * @generated from field: string id = 1; */ id = ""; /** * @generated from field: string username = 2; */ username = ""; /** * @generated from field: bool is_admin = 3; */ isAdmin = false; /** * @generated from field: google.protobuf.Timestamp created_at = 4; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 5; */ updatedAt?: Timestamp; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "panels.user.v1.User"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "is_admin", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 4, name: "created_at", kind: "message", T: Timestamp }, { no: 5, name: "updated_at", kind: "message", T: Timestamp }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): User { return new User().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): User { return new User().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): User { return new User().fromJsonString(jsonString, options); } static equals(a: User | PlainMessage | undefined, b: User | PlainMessage | undefined): boolean { return proto3.util.equals(User, a, b); } } /** * @generated from message panels.user.v1.UserMutable */ export class UserMutable extends Message { /** * @generated from field: optional string username = 1; */ username?: string; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "panels.user.v1.UserMutable"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UserMutable { return new UserMutable().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UserMutable { return new UserMutable().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UserMutable { return new UserMutable().fromJsonString(jsonString, options); } static equals(a: UserMutable | PlainMessage | undefined, b: UserMutable | PlainMessage | undefined): boolean { return proto3.util.equals(UserMutable, a, b); } } /** * @generated from message panels.user.v1.CreateUserRequest */ export class CreateUserRequest extends Message { /** * @generated from field: panels.user.v1.UserMutable data = 1; */ data?: UserMutable; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "panels.user.v1.CreateUserRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "message", T: UserMutable }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateUserRequest { return new CreateUserRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateUserRequest { return new CreateUserRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateUserRequest { return new CreateUserRequest().fromJsonString(jsonString, options); } static equals(a: CreateUserRequest | PlainMessage | undefined, b: CreateUserRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CreateUserRequest, a, b); } } /** * @generated from message panels.user.v1.GetUserByIdRequest */ export class GetUserByIdRequest extends Message { /** * @generated from field: string id = 1; */ id = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "panels.user.v1.GetUserByIdRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetUserByIdRequest { return new GetUserByIdRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetUserByIdRequest { return new GetUserByIdRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetUserByIdRequest { return new GetUserByIdRequest().fromJsonString(jsonString, options); } static equals(a: GetUserByIdRequest | PlainMessage | undefined, b: GetUserByIdRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetUserByIdRequest, a, b); } } /** * @generated from message panels.user.v1.GetUserByNameRequest */ export class GetUserByNameRequest extends Message { /** * @generated from field: string username = 1; */ username = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "panels.user.v1.GetUserByNameRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetUserByNameRequest { return new GetUserByNameRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetUserByNameRequest { return new GetUserByNameRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetUserByNameRequest { return new GetUserByNameRequest().fromJsonString(jsonString, options); } static equals(a: GetUserByNameRequest | PlainMessage | undefined, b: GetUserByNameRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetUserByNameRequest, a, b); } } /** * @generated from message panels.user.v1.UpdateUserByIdRequest */ export class UpdateUserByIdRequest extends Message { /** * @generated from field: string id = 1; */ id = ""; /** * @generated from field: panels.user.v1.UserMutable data = 2; */ data?: UserMutable; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "panels.user.v1.UpdateUserByIdRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "data", kind: "message", T: UserMutable }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdateUserByIdRequest { return new UpdateUserByIdRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpdateUserByIdRequest { return new UpdateUserByIdRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpdateUserByIdRequest { return new UpdateUserByIdRequest().fromJsonString(jsonString, options); } static equals(a: UpdateUserByIdRequest | PlainMessage | undefined, b: UpdateUserByIdRequest | PlainMessage | undefined): boolean { return proto3.util.equals(UpdateUserByIdRequest, a, b); } } /** * @generated from message panels.user.v1.UpdateUserByNameRequest */ export class UpdateUserByNameRequest extends Message { /** * @generated from field: string username = 1; */ username = ""; /** * @generated from field: panels.user.v1.UserMutable data = 2; */ data?: UserMutable; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "panels.user.v1.UpdateUserByNameRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "data", kind: "message", T: UserMutable }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdateUserByNameRequest { return new UpdateUserByNameRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpdateUserByNameRequest { return new UpdateUserByNameRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpdateUserByNameRequest { return new UpdateUserByNameRequest().fromJsonString(jsonString, options); } static equals(a: UpdateUserByNameRequest | PlainMessage | undefined, b: UpdateUserByNameRequest | PlainMessage | undefined): boolean { return proto3.util.equals(UpdateUserByNameRequest, a, b); } } /** * @generated from message panels.user.v1.DeleteUserByIdRequest */ export class DeleteUserByIdRequest extends Message { /** * @generated from field: string id = 1; */ id = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "panels.user.v1.DeleteUserByIdRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteUserByIdRequest { return new DeleteUserByIdRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteUserByIdRequest { return new DeleteUserByIdRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteUserByIdRequest { return new DeleteUserByIdRequest().fromJsonString(jsonString, options); } static equals(a: DeleteUserByIdRequest | PlainMessage | undefined, b: DeleteUserByIdRequest | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteUserByIdRequest, a, b); } } /** * @generated from message panels.user.v1.DeleteUserByNameRequest */ export class DeleteUserByNameRequest extends Message { /** * @generated from field: string username = 1; */ username = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "panels.user.v1.DeleteUserByNameRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteUserByNameRequest { return new DeleteUserByNameRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteUserByNameRequest { return new DeleteUserByNameRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteUserByNameRequest { return new DeleteUserByNameRequest().fromJsonString(jsonString, options); } static equals(a: DeleteUserByNameRequest | PlainMessage | undefined, b: DeleteUserByNameRequest | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteUserByNameRequest, a, b); } } /** * Kafka Event Schema * * @generated from message panels.user.v1.UserEvent */ export class UserEvent extends Message { /** * @generated from field: string type = 1; */ type = ""; /** * @generated from field: panels.user.v1.User data = 2; */ data?: User; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "panels.user.v1.UserEvent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "data", kind: "message", T: User }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UserEvent { return new UserEvent().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UserEvent { return new UserEvent().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UserEvent { return new UserEvent().fromJsonString(jsonString, options); } static equals(a: UserEvent | PlainMessage | undefined, b: UserEvent | PlainMessage | undefined): boolean { return proto3.util.equals(UserEvent, a, b); } }