| 1 | // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none" |
| 2 | // @generated from file types/v1/session.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.Session |
| 11 | */ |
| 12 | export class Session extends Message<Session> { |
| 13 | /** |
| 14 | * @generated from field: int64 environment_id = 1; |
| 15 | */ |
| 16 | environmentId = protoInt64.zero; |
| 17 | |
| 18 | /** |
| 19 | * @generated from field: int64 machine_id = 2; |
| 20 | */ |
| 21 | machineId = protoInt64.zero; |
| 22 | |
| 23 | /** |
| 24 | * @generated from field: int64 session_id = 3; |
| 25 | */ |
| 26 | sessionId = protoInt64.zero; |
| 27 | |
| 28 | /** |
| 29 | * @generated from field: int64 log_event_count = 4; |
| 30 | */ |
| 31 | logEventCount = protoInt64.zero; |
| 32 | |
| 33 | /** |
| 34 | * @generated from field: int64 log_event_size_bytes = 5; |
| 35 | */ |
| 36 | logEventSizeBytes = protoInt64.zero; |
| 37 | |
| 38 | /** |
| 39 | * @generated from field: google.protobuf.Timestamp started_at = 6; |
| 40 | */ |
| 41 | startedAt?: Timestamp; |
| 42 | |
| 43 | /** |
| 44 | * @generated from field: google.protobuf.Timestamp finished_at = 7; |
| 45 | */ |
| 46 | finishedAt?: Timestamp; |
| 47 | |
| 48 | constructor(data?: PartialMessage<Session>) { |
| 49 | super(); |
| 50 | proto3.util.initPartial(data, this); |
| 51 | } |
| 52 | |
| 53 | static readonly runtime: typeof proto3 = proto3; |
| 54 | static readonly typeName = "types.v1.Session"; |
| 55 | static readonly fields: FieldList = proto3.util.newFieldList(() => [ |
| 56 | { no: 1, name: "environment_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 57 | { no: 2, name: "machine_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 58 | { no: 3, name: "session_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 59 | { no: 4, name: "log_event_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 60 | { no: 5, name: "log_event_size_bytes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, |
| 61 | { no: 6, name: "started_at", kind: "message", T: Timestamp }, |
| 62 | { no: 7, name: "finished_at", kind: "message", T: Timestamp }, |
| 63 | ]); |
| 64 | |
| 65 | static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Session { |
| 66 | return new Session().fromBinary(bytes, options); |
| 67 | } |
| 68 | |
| 69 | static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Session { |
| 70 | return new Session().fromJson(jsonValue, options); |
| 71 | } |
| 72 | |
| 73 | static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Session { |
| 74 | return new Session().fromJsonString(jsonString, options); |
| 75 | } |
| 76 | |
| 77 | static equals(a: Session | PlainMessage<Session> | undefined, b: Session | PlainMessage<Session> | undefined): boolean { |
| 78 | return proto3.util.equals(Session, a, b); |
| 79 | } |
| 80 | } |
| 81 |