| 1 | // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none" |
| 2 | // @generated from file types/v1/organization.proto (package types.v1, syntax proto3) |
| 3 | /* eslint-disable */ |
| 4 | // @ts-nocheck |
| 5 | |
| 6 | import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; |
| 7 | import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; |
| 8 | |
| 9 | /** |
| 10 | * @generated from message types.v1.Organization |
| 11 | */ |
| 12 | export class Organization extends Message<Organization> { |
| 13 | /** |
| 14 | * @generated from field: int64 id = 1; |
| 15 | */ |
| 16 | id = protoInt64.zero; |
| 17 | |
| 18 | /** |
| 19 | * @generated from field: string name = 2; |
| 20 | */ |
| 21 | name = ""; |
| 22 | |
| 23 | /** |
| 24 | * @generated from field: google.protobuf.Timestamp created_at = 7; |
| 25 | */ |
| 26 | createdAt?: Timestamp; |
| 27 | |
| 28 | constructor(data?: PartialMessage<Organization>) { |
| 29 | super(); |
| 30 | proto3.util.initPartial(data, this); |
| 31 | } |
| 32 | |
| 33 | static readonly runtime: typeof proto3 = proto3; |
| 34 | static readonly typeName = "types.v1.Organization"; |
| 35 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 36 | { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 37 | { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, |
| 38 | { no: 7, name: "created_at", kind: "message", T: Timestamp }, |
| 39 | ]); |
| 40 | |
| 41 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Organization { |
| 42 | return new Organization().fromBinary(bytes, options); |
| 43 | } |
| 44 | |
| 45 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Organization { |
| 46 | return new Organization().fromJson(jsonValue, options); |
| 47 | } |
| 48 | |
| 49 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Organization { |
| 50 | return new Organization().fromJsonString(jsonString, options); |
| 51 | } |
| 52 | |
| 53 | static equals(a: Organization | PlainMessage<Organization> | undefined, b: Organization | PlainMessage<Organization> | undefined): boolean { |
| 54 | return proto3.util.equals(Organization, a, b); |
| 55 | } |
| 56 | } |
| 57 |