// @generated by protoc-gen-es v1.10.0 with parameter "target=ts" // @generated from file attachmentV2.proto (package api, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { AttachmentType, AttachmentTypeResponseHeader, EntityType, RequestAttachmentTypeHeader, RequestProjectHeader, ResponseHeader } from "./shared_pb.js"; /** * @generated from enum api.AttachmentKind */ export enum AttachmentKind { /** * @generated from enum value: ATTACHMENT_KIND_UNKNOWN = 0; */ UNKNOWN = 0, /** * @generated from enum value: ATTACHMENT_KIND_FILE = 1; */ FILE = 1, /** * @generated from enum value: ATTACHMENT_KIND_LINK = 2; */ LINK = 2, } // Retrieve enum metadata with: proto3.getEnumType(AttachmentKind) proto3.util.setEnumType(AttachmentKind, "api.AttachmentKind", [ { no: 0, name: "ATTACHMENT_KIND_UNKNOWN" }, { no: 1, name: "ATTACHMENT_KIND_FILE" }, { no: 2, name: "ATTACHMENT_KIND_LINK" }, ]); /** * @generated from message api.Attachment */ export class Attachment extends Message { /** * @generated from field: string ProjectID = 1; */ ProjectID = ""; /** * @generated from field: string Name = 2; */ Name = ""; /** * @generated from field: string EntityRefID = 3; */ EntityRefID = ""; /** * @generated from field: api.AttachmentType AttachmentType = 4; */ AttachmentType?: AttachmentType; /** * @generated from field: string URI = 5; */ URI = ""; /** * @generated from field: string MIMEType = 6; */ MIMEType = ""; /** * @generated from field: string UploadedAt = 11; */ UploadedAt = ""; /** * @generated from field: api.AttachmentKind Kind = 12; */ Kind = AttachmentKind.UNKNOWN; /** * @generated from field: string WebURI = 13; */ WebURI = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.Attachment"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "EntityRefID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "AttachmentType", kind: "message", T: AttachmentType }, { no: 5, name: "URI", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "MIMEType", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "UploadedAt", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 12, name: "Kind", kind: "enum", T: proto3.getEnumType(AttachmentKind) }, { no: 13, name: "WebURI", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Attachment { return new Attachment().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Attachment { return new Attachment().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Attachment { return new Attachment().fromJsonString(jsonString, options); } static equals(a: Attachment | PlainMessage | undefined, b: Attachment | PlainMessage | undefined): boolean { return proto3.util.equals(Attachment, a, b); } } /** * @generated from message api.FileDataRequest */ export class FileDataRequest extends Message { /** * @generated from field: string Name = 1; */ Name = ""; /** * @generated from field: bytes Content = 2; */ Content = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.FileDataRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "Content", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FileDataRequest { return new FileDataRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FileDataRequest { return new FileDataRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FileDataRequest { return new FileDataRequest().fromJsonString(jsonString, options); } static equals(a: FileDataRequest | PlainMessage | undefined, b: FileDataRequest | PlainMessage | undefined): boolean { return proto3.util.equals(FileDataRequest, a, b); } } /** * @generated from message api.FileDataResponse */ export class FileDataResponse extends Message { /** * @generated from field: string Name = 1; */ Name = ""; /** * @generated from field: string ContentType = 2; */ ContentType = ""; /** * @generated from field: bytes Content = 3; */ Content = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.FileDataResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "ContentType", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "Content", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FileDataResponse { return new FileDataResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FileDataResponse { return new FileDataResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FileDataResponse { return new FileDataResponse().fromJsonString(jsonString, options); } static equals(a: FileDataResponse | PlainMessage | undefined, b: FileDataResponse | PlainMessage | undefined): boolean { return proto3.util.equals(FileDataResponse, a, b); } } /** * Download * * @generated from message api.DownloadAttachmentV2Request */ export class DownloadAttachmentV2Request extends Message { /** * @generated from field: api.RequestAttachmentTypeHeader Header = 1; */ Header?: RequestAttachmentTypeHeader; /** * @generated from field: string Name = 2; */ Name = ""; /** * @generated from field: string EntityRefID = 3; */ EntityRefID = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.DownloadAttachmentV2Request"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: RequestAttachmentTypeHeader }, { no: 2, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "EntityRefID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DownloadAttachmentV2Request { return new DownloadAttachmentV2Request().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DownloadAttachmentV2Request { return new DownloadAttachmentV2Request().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DownloadAttachmentV2Request { return new DownloadAttachmentV2Request().fromJsonString(jsonString, options); } static equals(a: DownloadAttachmentV2Request | PlainMessage | undefined, b: DownloadAttachmentV2Request | PlainMessage | undefined): boolean { return proto3.util.equals(DownloadAttachmentV2Request, a, b); } } /** * @generated from message api.DownloadAttachmentV2Response */ export class DownloadAttachmentV2Response extends Message { /** * Header of the response * * @generated from field: api.AttachmentTypeResponseHeader Header = 2; */ Header?: AttachmentTypeResponseHeader; /** * @generated from field: api.FileDataResponse File = 1; */ File?: FileDataResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.DownloadAttachmentV2Response"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "Header", kind: "message", T: AttachmentTypeResponseHeader }, { no: 1, name: "File", kind: "message", T: FileDataResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DownloadAttachmentV2Response { return new DownloadAttachmentV2Response().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DownloadAttachmentV2Response { return new DownloadAttachmentV2Response().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DownloadAttachmentV2Response { return new DownloadAttachmentV2Response().fromJsonString(jsonString, options); } static equals(a: DownloadAttachmentV2Response | PlainMessage | undefined, b: DownloadAttachmentV2Response | PlainMessage | undefined): boolean { return proto3.util.equals(DownloadAttachmentV2Response, a, b); } } /** * Upload * * @generated from message api.UploadAttachmentV2Request */ export class UploadAttachmentV2Request extends Message { /** * @generated from field: api.RequestAttachmentTypeHeader Header = 1; */ Header?: RequestAttachmentTypeHeader; /** * @generated from field: string EntityRefID = 3; */ EntityRefID = ""; /** * @generated from field: api.FileDataRequest Attachment = 4; */ Attachment?: FileDataRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.UploadAttachmentV2Request"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: RequestAttachmentTypeHeader }, { no: 3, name: "EntityRefID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "Attachment", kind: "message", T: FileDataRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UploadAttachmentV2Request { return new UploadAttachmentV2Request().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UploadAttachmentV2Request { return new UploadAttachmentV2Request().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UploadAttachmentV2Request { return new UploadAttachmentV2Request().fromJsonString(jsonString, options); } static equals(a: UploadAttachmentV2Request | PlainMessage | undefined, b: UploadAttachmentV2Request | PlainMessage | undefined): boolean { return proto3.util.equals(UploadAttachmentV2Request, a, b); } } /** * @generated from message api.UploadAttachmentV2Response */ export class UploadAttachmentV2Response extends Message { /** * Header of the response * * @generated from field: api.AttachmentTypeResponseHeader Header = 2; */ Header?: AttachmentTypeResponseHeader; /** * @generated from field: api.Attachment Attachment = 1; */ Attachment?: Attachment; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.UploadAttachmentV2Response"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "Header", kind: "message", T: AttachmentTypeResponseHeader }, { no: 1, name: "Attachment", kind: "message", T: Attachment }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UploadAttachmentV2Response { return new UploadAttachmentV2Response().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UploadAttachmentV2Response { return new UploadAttachmentV2Response().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UploadAttachmentV2Response { return new UploadAttachmentV2Response().fromJsonString(jsonString, options); } static equals(a: UploadAttachmentV2Response | PlainMessage | undefined, b: UploadAttachmentV2Response | PlainMessage | undefined): boolean { return proto3.util.equals(UploadAttachmentV2Response, a, b); } } /** * AddLink * * @generated from message api.AddLinkV2Request */ export class AddLinkV2Request extends Message { /** * @generated from field: api.RequestAttachmentTypeHeader Header = 1; */ Header?: RequestAttachmentTypeHeader; /** * @generated from field: string EntityRefID = 3; */ EntityRefID = ""; /** * @generated from field: string Name = 4; */ Name = ""; /** * @generated from field: string URI = 5; */ URI = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.AddLinkV2Request"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: RequestAttachmentTypeHeader }, { no: 3, name: "EntityRefID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "URI", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AddLinkV2Request { return new AddLinkV2Request().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AddLinkV2Request { return new AddLinkV2Request().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AddLinkV2Request { return new AddLinkV2Request().fromJsonString(jsonString, options); } static equals(a: AddLinkV2Request | PlainMessage | undefined, b: AddLinkV2Request | PlainMessage | undefined): boolean { return proto3.util.equals(AddLinkV2Request, a, b); } } /** * @generated from message api.AddLinkV2Response */ export class AddLinkV2Response extends Message { /** * Header of the response * * @generated from field: api.AttachmentTypeResponseHeader Header = 2; */ Header?: AttachmentTypeResponseHeader; /** * @generated from field: api.Attachment Attachment = 1; */ Attachment?: Attachment; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.AddLinkV2Response"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "Header", kind: "message", T: AttachmentTypeResponseHeader }, { no: 1, name: "Attachment", kind: "message", T: Attachment }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AddLinkV2Response { return new AddLinkV2Response().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AddLinkV2Response { return new AddLinkV2Response().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AddLinkV2Response { return new AddLinkV2Response().fromJsonString(jsonString, options); } static equals(a: AddLinkV2Response | PlainMessage | undefined, b: AddLinkV2Response | PlainMessage | undefined): boolean { return proto3.util.equals(AddLinkV2Response, a, b); } } /** * Delete * * @generated from message api.DeleteAttachmentV2Request */ export class DeleteAttachmentV2Request extends Message { /** * @generated from field: api.RequestAttachmentTypeHeader Header = 1; */ Header?: RequestAttachmentTypeHeader; /** * @generated from field: string Name = 2; */ Name = ""; /** * @generated from field: string EntityRefID = 3; */ EntityRefID = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.DeleteAttachmentV2Request"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: RequestAttachmentTypeHeader }, { no: 2, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "EntityRefID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAttachmentV2Request { return new DeleteAttachmentV2Request().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAttachmentV2Request { return new DeleteAttachmentV2Request().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteAttachmentV2Request { return new DeleteAttachmentV2Request().fromJsonString(jsonString, options); } static equals(a: DeleteAttachmentV2Request | PlainMessage | undefined, b: DeleteAttachmentV2Request | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteAttachmentV2Request, a, b); } } /** * @generated from message api.DeleteAttachmentV2Response */ export class DeleteAttachmentV2Response extends Message { /** * Header of the response * * @generated from field: api.AttachmentTypeResponseHeader Header = 1; */ Header?: AttachmentTypeResponseHeader; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.DeleteAttachmentV2Response"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: AttachmentTypeResponseHeader }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAttachmentV2Response { return new DeleteAttachmentV2Response().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAttachmentV2Response { return new DeleteAttachmentV2Response().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteAttachmentV2Response { return new DeleteAttachmentV2Response().fromJsonString(jsonString, options); } static equals(a: DeleteAttachmentV2Response | PlainMessage | undefined, b: DeleteAttachmentV2Response | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteAttachmentV2Response, a, b); } } /** * List * * @generated from message api.ListAttachmentsV2Request */ export class ListAttachmentsV2Request extends Message { /** * @generated from field: api.RequestProjectHeader Header = 1; */ Header?: RequestProjectHeader; /** * @generated from field: string EntityRefID = 3; */ EntityRefID = ""; /** * @generated from field: api.EntityType EntityType = 4; */ EntityType = EntityType.UNKNOWN; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.ListAttachmentsV2Request"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: RequestProjectHeader }, { no: 3, name: "EntityRefID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "EntityType", kind: "enum", T: proto3.getEnumType(EntityType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListAttachmentsV2Request { return new ListAttachmentsV2Request().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListAttachmentsV2Request { return new ListAttachmentsV2Request().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListAttachmentsV2Request { return new ListAttachmentsV2Request().fromJsonString(jsonString, options); } static equals(a: ListAttachmentsV2Request | PlainMessage | undefined, b: ListAttachmentsV2Request | PlainMessage | undefined): boolean { return proto3.util.equals(ListAttachmentsV2Request, a, b); } } /** * @generated from message api.ListAttachmentsV2Response */ export class ListAttachmentsV2Response extends Message { /** * Header of the response * * @generated from field: api.ResponseHeader Header = 2; */ Header?: ResponseHeader; /** * @generated from field: repeated api.Attachment Attachments = 1; */ Attachments: Attachment[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.ListAttachmentsV2Response"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "Header", kind: "message", T: ResponseHeader }, { no: 1, name: "Attachments", kind: "message", T: Attachment, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListAttachmentsV2Response { return new ListAttachmentsV2Response().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListAttachmentsV2Response { return new ListAttachmentsV2Response().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListAttachmentsV2Response { return new ListAttachmentsV2Response().fromJsonString(jsonString, options); } static equals(a: ListAttachmentsV2Response | PlainMessage | undefined, b: ListAttachmentsV2Response | PlainMessage | undefined): boolean { return proto3.util.equals(ListAttachmentsV2Response, a, b); } } /** * Share * * @generated from message api.ShareAttachmentV2Request */ export class ShareAttachmentV2Request extends Message { /** * @generated from field: api.RequestAttachmentTypeHeader Header = 1; */ Header?: RequestAttachmentTypeHeader; /** * @generated from field: string Name = 2; */ Name = ""; /** * @generated from field: string EntityRefID = 3; */ EntityRefID = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.ShareAttachmentV2Request"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: RequestAttachmentTypeHeader }, { no: 2, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "EntityRefID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ShareAttachmentV2Request { return new ShareAttachmentV2Request().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ShareAttachmentV2Request { return new ShareAttachmentV2Request().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ShareAttachmentV2Request { return new ShareAttachmentV2Request().fromJsonString(jsonString, options); } static equals(a: ShareAttachmentV2Request | PlainMessage | undefined, b: ShareAttachmentV2Request | PlainMessage | undefined): boolean { return proto3.util.equals(ShareAttachmentV2Request, a, b); } } /** * @generated from message api.ShareAttachmentV2Response */ export class ShareAttachmentV2Response extends Message { /** * Header of the response * * @generated from field: api.AttachmentTypeResponseHeader Header = 2; */ Header?: AttachmentTypeResponseHeader; /** * @generated from field: string ShareLink = 1; */ ShareLink = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.ShareAttachmentV2Response"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "Header", kind: "message", T: AttachmentTypeResponseHeader }, { no: 1, name: "ShareLink", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ShareAttachmentV2Response { return new ShareAttachmentV2Response().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ShareAttachmentV2Response { return new ShareAttachmentV2Response().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ShareAttachmentV2Response { return new ShareAttachmentV2Response().fromJsonString(jsonString, options); } static equals(a: ShareAttachmentV2Response | PlainMessage | undefined, b: ShareAttachmentV2Response | PlainMessage | undefined): boolean { return proto3.util.equals(ShareAttachmentV2Response, a, b); } } /** * @generated from message api.DeleteAllAttachmentsV2Request */ export class DeleteAllAttachmentsV2Request extends Message { /** * @generated from field: api.RequestProjectHeader Header = 1; */ Header?: RequestProjectHeader; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.DeleteAllAttachmentsV2Request"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: RequestProjectHeader }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAllAttachmentsV2Request { return new DeleteAllAttachmentsV2Request().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAllAttachmentsV2Request { return new DeleteAllAttachmentsV2Request().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteAllAttachmentsV2Request { return new DeleteAllAttachmentsV2Request().fromJsonString(jsonString, options); } static equals(a: DeleteAllAttachmentsV2Request | PlainMessage | undefined, b: DeleteAllAttachmentsV2Request | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteAllAttachmentsV2Request, a, b); } } /** * @generated from message api.DeleteAllAttachmentsV2Response */ export class DeleteAllAttachmentsV2Response extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.DeleteAllAttachmentsV2Response"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAllAttachmentsV2Response { return new DeleteAllAttachmentsV2Response().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAllAttachmentsV2Response { return new DeleteAllAttachmentsV2Response().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteAllAttachmentsV2Response { return new DeleteAllAttachmentsV2Response().fromJsonString(jsonString, options); } static equals(a: DeleteAllAttachmentsV2Response | PlainMessage | undefined, b: DeleteAllAttachmentsV2Response | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteAllAttachmentsV2Response, a, b); } }