Latest generation

This commit is contained in:
ci core model
2025-05-26 12:14:28 +00:00
parent 65247e7fe4
commit cc9c6d0b4c
197 changed files with 15132 additions and 15052 deletions

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name
// @generated from protobuf file "attachmentV2.proto" (package "api", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
@@ -24,39 +24,39 @@ import { AttachmentType } from "./shared";
*/
export interface Attachment {
/**
* @generated from protobuf field: string ProjectID = 1 [json_name = "ProjectID"];
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
* @generated from protobuf field: string Name = 2
*/
Name: string;
/**
* @generated from protobuf field: string EntityRefID = 3 [json_name = "EntityRefID"];
* @generated from protobuf field: string EntityRefID = 3
*/
EntityRefID: string;
/**
* @generated from protobuf field: api.AttachmentType AttachmentType = 4 [json_name = "AttachmentType"];
* @generated from protobuf field: api.AttachmentType AttachmentType = 4
*/
AttachmentType?: AttachmentType;
/**
* @generated from protobuf field: string URI = 5 [json_name = "URI"];
* @generated from protobuf field: string URI = 5
*/
URI: string;
/**
* @generated from protobuf field: string MIMEType = 6 [json_name = "MIMEType"];
* @generated from protobuf field: string MIMEType = 6
*/
MIMEType: string;
/**
* @generated from protobuf field: string UploadedAt = 11 [json_name = "UploadedAt"];
* @generated from protobuf field: string UploadedAt = 11
*/
UploadedAt: string;
/**
* @generated from protobuf field: api.AttachmentKind Kind = 12 [json_name = "Kind"];
* @generated from protobuf field: api.AttachmentKind Kind = 12
*/
Kind: AttachmentKind;
/**
* @generated from protobuf field: string WebURI = 13 [json_name = "WebURI"];
* @generated from protobuf field: string WebURI = 13
*/
WebURI: string;
}
@@ -65,11 +65,11 @@ export interface Attachment {
*/
export interface FileDataRequest {
/**
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: bytes Content = 2 [json_name = "Content"];
* @generated from protobuf field: bytes Content = 2
*/
Content: Uint8Array;
}
@@ -78,15 +78,15 @@ export interface FileDataRequest {
*/
export interface FileDataResponse {
/**
* @generated from protobuf field: string Name = 1 [json_name = "Name"];
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: string ContentType = 2 [json_name = "ContentType"];
* @generated from protobuf field: string ContentType = 2
*/
ContentType: string;
/**
* @generated from protobuf field: bytes Content = 3 [json_name = "Content"];
* @generated from protobuf field: bytes Content = 3
*/
Content: Uint8Array;
}
@@ -99,15 +99,15 @@ export interface FileDataResponse {
*/
export interface DownloadAttachmentV2Request {
/**
* @generated from protobuf field: api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.RequestAttachmentTypeHeader Header = 1
*/
Header?: RequestAttachmentTypeHeader;
/**
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
* @generated from protobuf field: string Name = 2
*/
Name: string;
/**
* @generated from protobuf field: string EntityRefID = 3 [json_name = "EntityRefID"];
* @generated from protobuf field: string EntityRefID = 3
*/
EntityRefID: string;
}
@@ -118,11 +118,11 @@ export interface DownloadAttachmentV2Response {
/**
* Header of the response
*
* @generated from protobuf field: api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"];
* @generated from protobuf field: api.AttachmentTypeResponseHeader Header = 2
*/
Header?: AttachmentTypeResponseHeader;
/**
* @generated from protobuf field: api.FileDataResponse File = 1 [json_name = "File"];
* @generated from protobuf field: api.FileDataResponse File = 1
*/
File?: FileDataResponse;
}
@@ -133,15 +133,15 @@ export interface DownloadAttachmentV2Response {
*/
export interface UploadAttachmentV2Request {
/**
* @generated from protobuf field: api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.RequestAttachmentTypeHeader Header = 1
*/
Header?: RequestAttachmentTypeHeader;
/**
* @generated from protobuf field: string EntityRefID = 3 [json_name = "EntityRefID"];
* @generated from protobuf field: string EntityRefID = 3
*/
EntityRefID: string;
/**
* @generated from protobuf field: api.FileDataRequest Attachment = 4 [json_name = "Attachment"];
* @generated from protobuf field: api.FileDataRequest Attachment = 4
*/
Attachment?: FileDataRequest;
}
@@ -152,11 +152,11 @@ export interface UploadAttachmentV2Response {
/**
* Header of the response
*
* @generated from protobuf field: api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"];
* @generated from protobuf field: api.AttachmentTypeResponseHeader Header = 2
*/
Header?: AttachmentTypeResponseHeader;
/**
* @generated from protobuf field: api.Attachment Attachment = 1 [json_name = "Attachment"];
* @generated from protobuf field: api.Attachment Attachment = 1
*/
Attachment?: Attachment;
}
@@ -167,19 +167,19 @@ export interface UploadAttachmentV2Response {
*/
export interface AddLinkV2Request {
/**
* @generated from protobuf field: api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.RequestAttachmentTypeHeader Header = 1
*/
Header?: RequestAttachmentTypeHeader;
/**
* @generated from protobuf field: string EntityRefID = 3 [json_name = "EntityRefID"];
* @generated from protobuf field: string EntityRefID = 3
*/
EntityRefID: string;
/**
* @generated from protobuf field: string Name = 4 [json_name = "Name"];
* @generated from protobuf field: string Name = 4
*/
Name: string;
/**
* @generated from protobuf field: string URI = 5 [json_name = "URI"];
* @generated from protobuf field: string URI = 5
*/
URI: string;
}
@@ -190,11 +190,11 @@ export interface AddLinkV2Response {
/**
* Header of the response
*
* @generated from protobuf field: api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"];
* @generated from protobuf field: api.AttachmentTypeResponseHeader Header = 2
*/
Header?: AttachmentTypeResponseHeader;
/**
* @generated from protobuf field: api.Attachment Attachment = 1 [json_name = "Attachment"];
* @generated from protobuf field: api.Attachment Attachment = 1
*/
Attachment?: Attachment;
}
@@ -205,15 +205,15 @@ export interface AddLinkV2Response {
*/
export interface DeleteAttachmentV2Request {
/**
* @generated from protobuf field: api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.RequestAttachmentTypeHeader Header = 1
*/
Header?: RequestAttachmentTypeHeader;
/**
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
* @generated from protobuf field: string Name = 2
*/
Name: string;
/**
* @generated from protobuf field: string EntityRefID = 3 [json_name = "EntityRefID"];
* @generated from protobuf field: string EntityRefID = 3
*/
EntityRefID: string;
}
@@ -224,7 +224,7 @@ export interface DeleteAttachmentV2Response {
/**
* Header of the response
*
* @generated from protobuf field: api.AttachmentTypeResponseHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.AttachmentTypeResponseHeader Header = 1
*/
Header?: AttachmentTypeResponseHeader;
}
@@ -235,15 +235,15 @@ export interface DeleteAttachmentV2Response {
*/
export interface ListAttachmentsV2Request {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string EntityRefID = 3 [json_name = "EntityRefID"];
* @generated from protobuf field: string EntityRefID = 3
*/
EntityRefID: string;
/**
* @generated from protobuf field: api.EntityType EntityType = 4 [json_name = "EntityType"];
* @generated from protobuf field: api.EntityType EntityType = 4
*/
EntityType: EntityType;
}
@@ -254,11 +254,11 @@ export interface ListAttachmentsV2Response {
/**
* Header of the response
*
* @generated from protobuf field: api.ResponseHeader Header = 2 [json_name = "Header"];
* @generated from protobuf field: api.ResponseHeader Header = 2
*/
Header?: ResponseHeader;
/**
* @generated from protobuf field: repeated api.Attachment Attachments = 1 [json_name = "Attachments"];
* @generated from protobuf field: repeated api.Attachment Attachments = 1
*/
Attachments: Attachment[];
}
@@ -269,15 +269,15 @@ export interface ListAttachmentsV2Response {
*/
export interface ShareAttachmentV2Request {
/**
* @generated from protobuf field: api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.RequestAttachmentTypeHeader Header = 1
*/
Header?: RequestAttachmentTypeHeader;
/**
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
* @generated from protobuf field: string Name = 2
*/
Name: string;
/**
* @generated from protobuf field: string EntityRefID = 3 [json_name = "EntityRefID"];
* @generated from protobuf field: string EntityRefID = 3
*/
EntityRefID: string;
}
@@ -288,11 +288,11 @@ export interface ShareAttachmentV2Response {
/**
* Header of the response
*
* @generated from protobuf field: api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"];
* @generated from protobuf field: api.AttachmentTypeResponseHeader Header = 2
*/
Header?: AttachmentTypeResponseHeader;
/**
* @generated from protobuf field: string ShareLink = 1 [json_name = "ShareLink"];
* @generated from protobuf field: string ShareLink = 1
*/
ShareLink: string;
}
@@ -301,7 +301,7 @@ export interface ShareAttachmentV2Response {
*/
export interface DeleteAllAttachmentsV2Request {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
}
@@ -361,31 +361,31 @@ class Attachment$Type extends MessageType<Attachment> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID = 1 [json_name = "ProjectID"];*/ 1:
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* string Name = 2 [json_name = "Name"];*/ 2:
case /* string Name */ 2:
message.Name = reader.string();
break;
case /* string EntityRefID = 3 [json_name = "EntityRefID"];*/ 3:
case /* string EntityRefID */ 3:
message.EntityRefID = reader.string();
break;
case /* api.AttachmentType AttachmentType = 4 [json_name = "AttachmentType"];*/ 4:
case /* api.AttachmentType AttachmentType */ 4:
message.AttachmentType = AttachmentType.internalBinaryRead(reader, reader.uint32(), options, message.AttachmentType);
break;
case /* string URI = 5 [json_name = "URI"];*/ 5:
case /* string URI */ 5:
message.URI = reader.string();
break;
case /* string MIMEType = 6 [json_name = "MIMEType"];*/ 6:
case /* string MIMEType */ 6:
message.MIMEType = reader.string();
break;
case /* string UploadedAt = 11 [json_name = "UploadedAt"];*/ 11:
case /* string UploadedAt */ 11:
message.UploadedAt = reader.string();
break;
case /* api.AttachmentKind Kind = 12 [json_name = "Kind"];*/ 12:
case /* api.AttachmentKind Kind */ 12:
message.Kind = reader.int32();
break;
case /* string WebURI = 13 [json_name = "WebURI"];*/ 13:
case /* string WebURI */ 13:
message.WebURI = reader.string();
break;
default:
@@ -400,31 +400,31 @@ class Attachment$Type extends MessageType<Attachment> {
return message;
}
internalBinaryWrite(message: Attachment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1 [json_name = "ProjectID"]; */
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string Name = 2 [json_name = "Name"]; */
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
/* string EntityRefID = 3 [json_name = "EntityRefID"]; */
/* string EntityRefID = 3; */
if (message.EntityRefID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
/* api.AttachmentType AttachmentType = 4 [json_name = "AttachmentType"]; */
/* api.AttachmentType AttachmentType = 4; */
if (message.AttachmentType)
AttachmentType.internalBinaryWrite(message.AttachmentType, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* string URI = 5 [json_name = "URI"]; */
/* string URI = 5; */
if (message.URI !== "")
writer.tag(5, WireType.LengthDelimited).string(message.URI);
/* string MIMEType = 6 [json_name = "MIMEType"]; */
/* string MIMEType = 6; */
if (message.MIMEType !== "")
writer.tag(6, WireType.LengthDelimited).string(message.MIMEType);
/* string UploadedAt = 11 [json_name = "UploadedAt"]; */
/* string UploadedAt = 11; */
if (message.UploadedAt !== "")
writer.tag(11, WireType.LengthDelimited).string(message.UploadedAt);
/* api.AttachmentKind Kind = 12 [json_name = "Kind"]; */
/* api.AttachmentKind Kind = 12; */
if (message.Kind !== 0)
writer.tag(12, WireType.Varint).int32(message.Kind);
/* string WebURI = 13 [json_name = "WebURI"]; */
/* string WebURI = 13; */
if (message.WebURI !== "")
writer.tag(13, WireType.LengthDelimited).string(message.WebURI);
let u = options.writeUnknownFields;
@@ -458,10 +458,10 @@ class FileDataRequest$Type extends MessageType<FileDataRequest> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name = 1 [json_name = "Name"];*/ 1:
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* bytes Content = 2 [json_name = "Content"];*/ 2:
case /* bytes Content */ 2:
message.Content = reader.bytes();
break;
default:
@@ -476,10 +476,10 @@ class FileDataRequest$Type extends MessageType<FileDataRequest> {
return message;
}
internalBinaryWrite(message: FileDataRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1 [json_name = "Name"]; */
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* bytes Content = 2 [json_name = "Content"]; */
/* bytes Content = 2; */
if (message.Content.length)
writer.tag(2, WireType.LengthDelimited).bytes(message.Content);
let u = options.writeUnknownFields;
@@ -515,13 +515,13 @@ class FileDataResponse$Type extends MessageType<FileDataResponse> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name = 1 [json_name = "Name"];*/ 1:
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* string ContentType = 2 [json_name = "ContentType"];*/ 2:
case /* string ContentType */ 2:
message.ContentType = reader.string();
break;
case /* bytes Content = 3 [json_name = "Content"];*/ 3:
case /* bytes Content */ 3:
message.Content = reader.bytes();
break;
default:
@@ -536,13 +536,13 @@ class FileDataResponse$Type extends MessageType<FileDataResponse> {
return message;
}
internalBinaryWrite(message: FileDataResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1 [json_name = "Name"]; */
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* string ContentType = 2 [json_name = "ContentType"]; */
/* string ContentType = 2; */
if (message.ContentType !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ContentType);
/* bytes Content = 3 [json_name = "Content"]; */
/* bytes Content = 3; */
if (message.Content.length)
writer.tag(3, WireType.LengthDelimited).bytes(message.Content);
let u = options.writeUnknownFields;
@@ -577,13 +577,13 @@ class DownloadAttachmentV2Request$Type extends MessageType<DownloadAttachmentV2R
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"];*/ 1:
case /* api.RequestAttachmentTypeHeader Header */ 1:
message.Header = RequestAttachmentTypeHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Name = 2 [json_name = "Name"];*/ 2:
case /* string Name */ 2:
message.Name = reader.string();
break;
case /* string EntityRefID = 3 [json_name = "EntityRefID"];*/ 3:
case /* string EntityRefID */ 3:
message.EntityRefID = reader.string();
break;
default:
@@ -598,13 +598,13 @@ class DownloadAttachmentV2Request$Type extends MessageType<DownloadAttachmentV2R
return message;
}
internalBinaryWrite(message: DownloadAttachmentV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"]; */
/* api.RequestAttachmentTypeHeader Header = 1; */
if (message.Header)
RequestAttachmentTypeHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Name = 2 [json_name = "Name"]; */
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
/* string EntityRefID = 3 [json_name = "EntityRefID"]; */
/* string EntityRefID = 3; */
if (message.EntityRefID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
let u = options.writeUnknownFields;
@@ -636,10 +636,10 @@ class DownloadAttachmentV2Response$Type extends MessageType<DownloadAttachmentV2
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"];*/ 2:
case /* api.AttachmentTypeResponseHeader Header */ 2:
message.Header = AttachmentTypeResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.FileDataResponse File = 1 [json_name = "File"];*/ 1:
case /* api.FileDataResponse File */ 1:
message.File = FileDataResponse.internalBinaryRead(reader, reader.uint32(), options, message.File);
break;
default:
@@ -654,10 +654,10 @@ class DownloadAttachmentV2Response$Type extends MessageType<DownloadAttachmentV2
return message;
}
internalBinaryWrite(message: DownloadAttachmentV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.FileDataResponse File = 1 [json_name = "File"]; */
/* api.FileDataResponse File = 1; */
if (message.File)
FileDataResponse.internalBinaryWrite(message.File, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"]; */
/* api.AttachmentTypeResponseHeader Header = 2; */
if (message.Header)
AttachmentTypeResponseHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -691,13 +691,13 @@ class UploadAttachmentV2Request$Type extends MessageType<UploadAttachmentV2Reque
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"];*/ 1:
case /* api.RequestAttachmentTypeHeader Header */ 1:
message.Header = RequestAttachmentTypeHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string EntityRefID = 3 [json_name = "EntityRefID"];*/ 3:
case /* string EntityRefID */ 3:
message.EntityRefID = reader.string();
break;
case /* api.FileDataRequest Attachment = 4 [json_name = "Attachment"];*/ 4:
case /* api.FileDataRequest Attachment */ 4:
message.Attachment = FileDataRequest.internalBinaryRead(reader, reader.uint32(), options, message.Attachment);
break;
default:
@@ -712,13 +712,13 @@ class UploadAttachmentV2Request$Type extends MessageType<UploadAttachmentV2Reque
return message;
}
internalBinaryWrite(message: UploadAttachmentV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"]; */
/* api.RequestAttachmentTypeHeader Header = 1; */
if (message.Header)
RequestAttachmentTypeHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string EntityRefID = 3 [json_name = "EntityRefID"]; */
/* string EntityRefID = 3; */
if (message.EntityRefID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
/* api.FileDataRequest Attachment = 4 [json_name = "Attachment"]; */
/* api.FileDataRequest Attachment = 4; */
if (message.Attachment)
FileDataRequest.internalBinaryWrite(message.Attachment, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -750,10 +750,10 @@ class UploadAttachmentV2Response$Type extends MessageType<UploadAttachmentV2Resp
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"];*/ 2:
case /* api.AttachmentTypeResponseHeader Header */ 2:
message.Header = AttachmentTypeResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.Attachment Attachment = 1 [json_name = "Attachment"];*/ 1:
case /* api.Attachment Attachment */ 1:
message.Attachment = Attachment.internalBinaryRead(reader, reader.uint32(), options, message.Attachment);
break;
default:
@@ -768,10 +768,10 @@ class UploadAttachmentV2Response$Type extends MessageType<UploadAttachmentV2Resp
return message;
}
internalBinaryWrite(message: UploadAttachmentV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Attachment Attachment = 1 [json_name = "Attachment"]; */
/* api.Attachment Attachment = 1; */
if (message.Attachment)
Attachment.internalBinaryWrite(message.Attachment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"]; */
/* api.AttachmentTypeResponseHeader Header = 2; */
if (message.Header)
AttachmentTypeResponseHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -808,16 +808,16 @@ class AddLinkV2Request$Type extends MessageType<AddLinkV2Request> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"];*/ 1:
case /* api.RequestAttachmentTypeHeader Header */ 1:
message.Header = RequestAttachmentTypeHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string EntityRefID = 3 [json_name = "EntityRefID"];*/ 3:
case /* string EntityRefID */ 3:
message.EntityRefID = reader.string();
break;
case /* string Name = 4 [json_name = "Name"];*/ 4:
case /* string Name */ 4:
message.Name = reader.string();
break;
case /* string URI = 5 [json_name = "URI"];*/ 5:
case /* string URI */ 5:
message.URI = reader.string();
break;
default:
@@ -832,16 +832,16 @@ class AddLinkV2Request$Type extends MessageType<AddLinkV2Request> {
return message;
}
internalBinaryWrite(message: AddLinkV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"]; */
/* api.RequestAttachmentTypeHeader Header = 1; */
if (message.Header)
RequestAttachmentTypeHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string EntityRefID = 3 [json_name = "EntityRefID"]; */
/* string EntityRefID = 3; */
if (message.EntityRefID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
/* string Name = 4 [json_name = "Name"]; */
/* string Name = 4; */
if (message.Name !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Name);
/* string URI = 5 [json_name = "URI"]; */
/* string URI = 5; */
if (message.URI !== "")
writer.tag(5, WireType.LengthDelimited).string(message.URI);
let u = options.writeUnknownFields;
@@ -873,10 +873,10 @@ class AddLinkV2Response$Type extends MessageType<AddLinkV2Response> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"];*/ 2:
case /* api.AttachmentTypeResponseHeader Header */ 2:
message.Header = AttachmentTypeResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.Attachment Attachment = 1 [json_name = "Attachment"];*/ 1:
case /* api.Attachment Attachment */ 1:
message.Attachment = Attachment.internalBinaryRead(reader, reader.uint32(), options, message.Attachment);
break;
default:
@@ -891,10 +891,10 @@ class AddLinkV2Response$Type extends MessageType<AddLinkV2Response> {
return message;
}
internalBinaryWrite(message: AddLinkV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Attachment Attachment = 1 [json_name = "Attachment"]; */
/* api.Attachment Attachment = 1; */
if (message.Attachment)
Attachment.internalBinaryWrite(message.Attachment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"]; */
/* api.AttachmentTypeResponseHeader Header = 2; */
if (message.Header)
AttachmentTypeResponseHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -929,13 +929,13 @@ class DeleteAttachmentV2Request$Type extends MessageType<DeleteAttachmentV2Reque
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"];*/ 1:
case /* api.RequestAttachmentTypeHeader Header */ 1:
message.Header = RequestAttachmentTypeHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Name = 2 [json_name = "Name"];*/ 2:
case /* string Name */ 2:
message.Name = reader.string();
break;
case /* string EntityRefID = 3 [json_name = "EntityRefID"];*/ 3:
case /* string EntityRefID */ 3:
message.EntityRefID = reader.string();
break;
default:
@@ -950,13 +950,13 @@ class DeleteAttachmentV2Request$Type extends MessageType<DeleteAttachmentV2Reque
return message;
}
internalBinaryWrite(message: DeleteAttachmentV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"]; */
/* api.RequestAttachmentTypeHeader Header = 1; */
if (message.Header)
RequestAttachmentTypeHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Name = 2 [json_name = "Name"]; */
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
/* string EntityRefID = 3 [json_name = "EntityRefID"]; */
/* string EntityRefID = 3; */
if (message.EntityRefID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
let u = options.writeUnknownFields;
@@ -987,7 +987,7 @@ class DeleteAttachmentV2Response$Type extends MessageType<DeleteAttachmentV2Resp
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AttachmentTypeResponseHeader Header = 1 [json_name = "Header"];*/ 1:
case /* api.AttachmentTypeResponseHeader Header */ 1:
message.Header = AttachmentTypeResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
@@ -1002,7 +1002,7 @@ class DeleteAttachmentV2Response$Type extends MessageType<DeleteAttachmentV2Resp
return message;
}
internalBinaryWrite(message: DeleteAttachmentV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.AttachmentTypeResponseHeader Header = 1 [json_name = "Header"]; */
/* api.AttachmentTypeResponseHeader Header = 1; */
if (message.Header)
AttachmentTypeResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -1037,13 +1037,13 @@ class ListAttachmentsV2Request$Type extends MessageType<ListAttachmentsV2Request
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string EntityRefID = 3 [json_name = "EntityRefID"];*/ 3:
case /* string EntityRefID */ 3:
message.EntityRefID = reader.string();
break;
case /* api.EntityType EntityType = 4 [json_name = "EntityType"];*/ 4:
case /* api.EntityType EntityType */ 4:
message.EntityType = reader.int32();
break;
default:
@@ -1058,13 +1058,13 @@ class ListAttachmentsV2Request$Type extends MessageType<ListAttachmentsV2Request
return message;
}
internalBinaryWrite(message: ListAttachmentsV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string EntityRefID = 3 [json_name = "EntityRefID"]; */
/* string EntityRefID = 3; */
if (message.EntityRefID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
/* api.EntityType EntityType = 4 [json_name = "EntityType"]; */
/* api.EntityType EntityType = 4; */
if (message.EntityType !== 0)
writer.tag(4, WireType.Varint).int32(message.EntityType);
let u = options.writeUnknownFields;
@@ -1097,10 +1097,10 @@ class ListAttachmentsV2Response$Type extends MessageType<ListAttachmentsV2Respon
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseHeader Header = 2 [json_name = "Header"];*/ 2:
case /* api.ResponseHeader Header */ 2:
message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* repeated api.Attachment Attachments = 1 [json_name = "Attachments"];*/ 1:
case /* repeated api.Attachment Attachments */ 1:
message.Attachments.push(Attachment.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
@@ -1115,10 +1115,10 @@ class ListAttachmentsV2Response$Type extends MessageType<ListAttachmentsV2Respon
return message;
}
internalBinaryWrite(message: ListAttachmentsV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Attachment Attachments = 1 [json_name = "Attachments"]; */
/* repeated api.Attachment Attachments = 1; */
for (let i = 0; i < message.Attachments.length; i++)
Attachment.internalBinaryWrite(message.Attachments[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.ResponseHeader Header = 2 [json_name = "Header"]; */
/* api.ResponseHeader Header = 2; */
if (message.Header)
ResponseHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -1153,13 +1153,13 @@ class ShareAttachmentV2Request$Type extends MessageType<ShareAttachmentV2Request
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"];*/ 1:
case /* api.RequestAttachmentTypeHeader Header */ 1:
message.Header = RequestAttachmentTypeHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Name = 2 [json_name = "Name"];*/ 2:
case /* string Name */ 2:
message.Name = reader.string();
break;
case /* string EntityRefID = 3 [json_name = "EntityRefID"];*/ 3:
case /* string EntityRefID */ 3:
message.EntityRefID = reader.string();
break;
default:
@@ -1174,13 +1174,13 @@ class ShareAttachmentV2Request$Type extends MessageType<ShareAttachmentV2Request
return message;
}
internalBinaryWrite(message: ShareAttachmentV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestAttachmentTypeHeader Header = 1 [json_name = "Header"]; */
/* api.RequestAttachmentTypeHeader Header = 1; */
if (message.Header)
RequestAttachmentTypeHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Name = 2 [json_name = "Name"]; */
/* string Name = 2; */
if (message.Name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Name);
/* string EntityRefID = 3 [json_name = "EntityRefID"]; */
/* string EntityRefID = 3; */
if (message.EntityRefID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
let u = options.writeUnknownFields;
@@ -1213,10 +1213,10 @@ class ShareAttachmentV2Response$Type extends MessageType<ShareAttachmentV2Respon
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"];*/ 2:
case /* api.AttachmentTypeResponseHeader Header */ 2:
message.Header = AttachmentTypeResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ShareLink = 1 [json_name = "ShareLink"];*/ 1:
case /* string ShareLink */ 1:
message.ShareLink = reader.string();
break;
default:
@@ -1231,10 +1231,10 @@ class ShareAttachmentV2Response$Type extends MessageType<ShareAttachmentV2Respon
return message;
}
internalBinaryWrite(message: ShareAttachmentV2Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ShareLink = 1 [json_name = "ShareLink"]; */
/* string ShareLink = 1; */
if (message.ShareLink !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ShareLink);
/* api.AttachmentTypeResponseHeader Header = 2 [json_name = "Header"]; */
/* api.AttachmentTypeResponseHeader Header = 2; */
if (message.Header)
AttachmentTypeResponseHeader.internalBinaryWrite(message.Header, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
@@ -1265,7 +1265,7 @@ class DeleteAllAttachmentsV2Request$Type extends MessageType<DeleteAllAttachment
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header = 1 [json_name = "Header"];*/ 1:
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
@@ -1280,7 +1280,7 @@ class DeleteAllAttachmentsV2Request$Type extends MessageType<DeleteAllAttachment
return message;
}
internalBinaryWrite(message: DeleteAllAttachmentsV2Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1 [json_name = "Header"]; */
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;