| 1 | // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none" |
| 2 | // @generated from file types/v1/cursor.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 } from "@bufbuild/protobuf"; |
| 8 | |
| 9 | /** |
| 10 | * @generated from message types.v1.Cursor |
| 11 | */ |
| 12 | export class Cursor extends Message<Cursor> { |
| 13 | /** |
| 14 | * @generated from field: bytes opaque = 1; |
| 15 | */ |
| 16 | opaque = new Uint8Array(0); |
| 17 | |
| 18 | constructor(data?: PartialMessage<Cursor>) { |
| 19 | super(); |
| 20 | proto3.util.initPartial(data, this); |
| 21 | } |
| 22 | |
| 23 | static readonly runtime: typeof proto3 = proto3; |
| 24 | static readonly typeName = "types.v1.Cursor"; |
| 25 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 26 | { no: 1, name: "opaque", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, |
| 27 | ]); |
| 28 | |
| 29 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Cursor { |
| 30 | return new Cursor().fromBinary(bytes, options); |
| 31 | } |
| 32 | |
| 33 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Cursor { |
| 34 | return new Cursor().fromJson(jsonValue, options); |
| 35 | } |
| 36 | |
| 37 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Cursor { |
| 38 | return new Cursor().fromJsonString(jsonString, options); |
| 39 | } |
| 40 | |
| 41 | static equals(a: Cursor | PlainMessage<Cursor> | undefined, b: Cursor | PlainMessage<Cursor> | undefined): boolean { |
| 42 | return proto3.util.equals(Cursor, a, b); |
| 43 | } |
| 44 | } |
| 45 |