// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file timeline/v1/file-timeline.proto (package timeline.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { TIMELINE_ACTOR } from "./timeline_pb.js"; import { FileActionType } from "../../artworking/v1/artwork_pb.js"; import { ImageTaskAction } from "../../artworking/v1/imagetask_pb.js"; /** * @generated from message timeline.v1.FileTimelineItem */ export class FileTimelineItem extends Message { /** * @generated from field: string id = 1; */ id = ""; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * @generated from field: string job_id = 4; */ jobId = ""; /** * @generated from field: int32 item_id = 5; */ itemId = 0; /** * @generated from field: google.protobuf.Timestamp timestamp = 6; */ timestamp?: Timestamp; /** * @generated from field: int64 commented_media_item_id = 7; */ commentedMediaItemId = protoInt64.zero; /** * @generated from field: int64 changed_media_item_id = 8; */ changedMediaItemId = protoInt64.zero; /** * @generated from field: string message = 9; */ message = ""; /** * @generated from field: timeline.v1.TIMELINE_ACTOR actor = 10; */ actor = TIMELINE_ACTOR.TIMELINE_ACTOR_UNDEFINED; /** * @generated from field: int64 media_item_id = 11; */ mediaItemId = protoInt64.zero; /** * @generated from field: artworking.v1.FileActionType file_action = 12; */ fileAction = FileActionType.FILE_ACTION_UNDEFINED; /** * FixupTimelineConfig fixup_config = 13; * * @generated from field: string actor_name = 14; */ actorName = ""; /** * ConversionTimelineConfig conversion_config = 15; * * @generated from field: artworking.v1.ImageTaskAction image_task_config = 16; */ imageTaskConfig?: ImageTaskAction; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.FileTimelineItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "updated_at", kind: "message", T: Timestamp }, { no: 4, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "item_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 6, name: "timestamp", kind: "message", T: Timestamp }, { no: 7, name: "commented_media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 8, name: "changed_media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 9, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "actor", kind: "enum", T: proto3.getEnumType(TIMELINE_ACTOR) }, { no: 11, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 12, name: "file_action", kind: "enum", T: proto3.getEnumType(FileActionType) }, { no: 14, name: "actor_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 16, name: "image_task_config", kind: "message", T: ImageTaskAction }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FileTimelineItem { return new FileTimelineItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FileTimelineItem { return new FileTimelineItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FileTimelineItem { return new FileTimelineItem().fromJsonString(jsonString, options); } static equals(a: FileTimelineItem | PlainMessage | undefined, b: FileTimelineItem | PlainMessage | undefined): boolean { return proto3.util.equals(FileTimelineItem, a, b); } } /** * @generated from message timeline.v1.GetFileTimelineRequest */ export class GetFileTimelineRequest extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; /** * @generated from field: int32 item_id = 2; */ itemId = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.GetFileTimelineRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "item_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetFileTimelineRequest { return new GetFileTimelineRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetFileTimelineRequest { return new GetFileTimelineRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetFileTimelineRequest { return new GetFileTimelineRequest().fromJsonString(jsonString, options); } static equals(a: GetFileTimelineRequest | PlainMessage | undefined, b: GetFileTimelineRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetFileTimelineRequest, a, b); } } /** * @generated from message timeline.v1.GetFileTimelineResponse */ export class GetFileTimelineResponse extends Message { /** * @generated from field: repeated timeline.v1.FileTimelineItem items = 1; */ items: FileTimelineItem[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.GetFileTimelineResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "items", kind: "message", T: FileTimelineItem, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetFileTimelineResponse { return new GetFileTimelineResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetFileTimelineResponse { return new GetFileTimelineResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetFileTimelineResponse { return new GetFileTimelineResponse().fromJsonString(jsonString, options); } static equals(a: GetFileTimelineResponse | PlainMessage | undefined, b: GetFileTimelineResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetFileTimelineResponse, a, b); } }