Files
npm-core-sdk/tiny-url.ts
2025-11-03 09:38:37 +00:00

3099 lines
164 KiB
TypeScript

// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
// @generated from protobuf file "tiny-url.proto" (package "api", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import { WireType } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { FileDataResponse } from "./shared";
import { FileDataRequest } from "./shared";
import { RequestPartnerAppHeader } from "./shared";
import { RequestProjectHeader } from "./shared";
import { RequestOrganisationHeader } from "./shared";
import { ResourceType } from "./shared";
/**
* @generated from protobuf message api.TinyURLKindDetails
*/
export interface TinyURLKindDetails {
/**
* @generated from protobuf field: string LongURL = 1
*/
LongURL: string;
/**
* @generated from protobuf field: string FileName = 2
*/
FileName: string;
}
/**
* @generated from protobuf message api.TinyURL
*/
export interface TinyURL {
/**
* @generated from protobuf field: string ID = 1
*/
ID: string;
/**
* @generated from protobuf field: api.TinyURLKind Kind = 2
*/
Kind: TinyURLKind;
/**
* @generated from protobuf field: api.TinyURLKindDetails Details = 3
*/
Details?: TinyURLKindDetails;
/**
* @generated from protobuf field: string URL = 4
*/
URL: string;
/**
* @generated from protobuf field: string MIMEType = 5
*/
MIMEType: string;
/**
* @generated from protobuf field: int64 Size = 6
*/
Size: bigint;
/**
* @generated from protobuf field: api.ResourceType ResourceType = 7
*/
ResourceType: ResourceType;
/**
* @generated from protobuf field: string ResourceRefID = 8
*/
ResourceRefID: string;
/**
* @generated from protobuf field: int64 TimeToLive = 9
*/
TimeToLive: bigint;
/**
* @generated from protobuf field: string CreatedAt = 10
*/
CreatedAt: string;
/**
* @generated from protobuf field: bool IsPublic = 11
*/
IsPublic: boolean;
/**
* @generated from protobuf field: bool IsOnce = 12
*/
IsOnce: boolean;
}
// ========== REQUESTS & RESPONSE MESSAGES ==========
/**
* @generated from protobuf message api.OrganisationShortenURLRequest
*/
export interface OrganisationShortenURLRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
*/
Header?: RequestOrganisationHeader;
/**
* @generated from protobuf field: string URL = 2
*/
URL: string;
/**
* @generated from protobuf field: int64 TimeToLive = 3
*/
TimeToLive: bigint;
/**
* @generated from protobuf field: bool IsPublic = 4
*/
IsPublic: boolean;
/**
* @generated from protobuf field: bool IsOnce = 5
*/
IsOnce: boolean;
/**
* @generated from protobuf field: string Alias = 6
*/
Alias: string;
}
/**
* @generated from protobuf message api.OrganisationShortenURLResponse
*/
export interface OrganisationShortenURLResponse {
/**
* @generated from protobuf field: api.TinyURL TinyURL = 1
*/
TinyURL?: TinyURL;
}
/**
* @generated from protobuf message api.ProjectShortenURLRequest
*/
export interface ProjectShortenURLRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string URL = 2
*/
URL: string;
/**
* @generated from protobuf field: int64 TimeToLive = 3
*/
TimeToLive: bigint;
/**
* @generated from protobuf field: bool IsPublic = 4
*/
IsPublic: boolean;
/**
* @generated from protobuf field: bool IsOnce = 5
*/
IsOnce: boolean;
/**
* @generated from protobuf field: string Alias = 6
*/
Alias: string;
}
/**
* @generated from protobuf message api.ProjectShortenURLResponse
*/
export interface ProjectShortenURLResponse {
/**
* @generated from protobuf field: api.TinyURL TinyURL = 1
*/
TinyURL?: TinyURL;
}
/**
* @generated from protobuf message api.PartnerAppShortenURLRequest
*/
export interface PartnerAppShortenURLRequest {
/**
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
*/
Header?: RequestPartnerAppHeader;
/**
* @generated from protobuf field: string URL = 2
*/
URL: string;
/**
* @generated from protobuf field: int64 TimeToLive = 3
*/
TimeToLive: bigint;
/**
* @generated from protobuf field: bool IsPublic = 4
*/
IsPublic: boolean;
/**
* @generated from protobuf field: bool IsOnce = 5
*/
IsOnce: boolean;
/**
* @generated from protobuf field: string Alias = 6
*/
Alias: string;
}
/**
* @generated from protobuf message api.PartnerAppShortenURLResponse
*/
export interface PartnerAppShortenURLResponse {
/**
* @generated from protobuf field: api.TinyURL TinyURL = 1
*/
TinyURL?: TinyURL;
}
/**
* @generated from protobuf message api.OrganisationUploadFileRequest
*/
export interface OrganisationUploadFileRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
*/
Header?: RequestOrganisationHeader;
/**
* @generated from protobuf field: api.FileDataRequest File = 2
*/
File?: FileDataRequest;
/**
* @generated from protobuf field: int64 TimeToLive = 3
*/
TimeToLive: bigint;
/**
* @generated from protobuf field: bool IsPublic = 4
*/
IsPublic: boolean;
/**
* @generated from protobuf field: bool IsOnce = 5
*/
IsOnce: boolean;
/**
* @generated from protobuf field: string Alias = 6
*/
Alias: string;
}
/**
* @generated from protobuf message api.OrganisationUploadFileResponse
*/
export interface OrganisationUploadFileResponse {
/**
* @generated from protobuf field: api.TinyURL TinyURL = 1
*/
TinyURL?: TinyURL;
}
/**
* @generated from protobuf message api.ProjectUploadFileRequest
*/
export interface ProjectUploadFileRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: api.FileDataRequest File = 2
*/
File?: FileDataRequest;
/**
* @generated from protobuf field: int64 TimeToLive = 3
*/
TimeToLive: bigint;
/**
* @generated from protobuf field: bool IsPublic = 4
*/
IsPublic: boolean;
/**
* @generated from protobuf field: bool IsOnce = 5
*/
IsOnce: boolean;
/**
* @generated from protobuf field: string Alias = 6
*/
Alias: string;
}
/**
* @generated from protobuf message api.ProjectUploadFileResponse
*/
export interface ProjectUploadFileResponse {
/**
* @generated from protobuf field: api.TinyURL TinyURL = 1
*/
TinyURL?: TinyURL;
}
/**
* @generated from protobuf message api.PartnerAppUploadFileRequest
*/
export interface PartnerAppUploadFileRequest {
/**
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
*/
Header?: RequestPartnerAppHeader;
/**
* @generated from protobuf field: api.FileDataRequest File = 2
*/
File?: FileDataRequest;
/**
* @generated from protobuf field: int64 TimeToLive = 3
*/
TimeToLive: bigint;
/**
* @generated from protobuf field: bool IsPublic = 4
*/
IsPublic: boolean;
/**
* @generated from protobuf field: bool IsOnce = 5
*/
IsOnce: boolean;
/**
* @generated from protobuf field: string Alias = 6
*/
Alias: string;
}
/**
* @generated from protobuf message api.PartnerAppUploadFileResponse
*/
export interface PartnerAppUploadFileResponse {
/**
* @generated from protobuf field: api.TinyURL TinyURL = 1
*/
TinyURL?: TinyURL;
}
/**
* @generated from protobuf message api.OrganisationUploadPayloadRequest
*/
export interface OrganisationUploadPayloadRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
*/
Header?: RequestOrganisationHeader;
/**
* @generated from protobuf field: string Payload = 2
*/
Payload: string;
/**
* @generated from protobuf field: int64 TimeToLive = 3
*/
TimeToLive: bigint;
/**
* @generated from protobuf field: bool IsPublic = 4
*/
IsPublic: boolean;
/**
* @generated from protobuf field: bool IsOnce = 5
*/
IsOnce: boolean;
/**
* @generated from protobuf field: string Alias = 6
*/
Alias: string;
}
/**
* @generated from protobuf message api.OrganisationUploadPayloadResponse
*/
export interface OrganisationUploadPayloadResponse {
/**
* @generated from protobuf field: api.TinyURL TinyURL = 1
*/
TinyURL?: TinyURL;
}
/**
* @generated from protobuf message api.ProjectUploadPayloadRequest
*/
export interface ProjectUploadPayloadRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string Payload = 2
*/
Payload: string;
/**
* @generated from protobuf field: int64 TimeToLive = 3
*/
TimeToLive: bigint;
/**
* @generated from protobuf field: bool IsPublic = 4
*/
IsPublic: boolean;
/**
* @generated from protobuf field: bool IsOnce = 5
*/
IsOnce: boolean;
/**
* @generated from protobuf field: string Alias = 6
*/
Alias: string;
}
/**
* @generated from protobuf message api.ProjectUploadPayloadResponse
*/
export interface ProjectUploadPayloadResponse {
/**
* @generated from protobuf field: api.TinyURL TinyURL = 1
*/
TinyURL?: TinyURL;
}
/**
* @generated from protobuf message api.PartnerAppUploadPayloadRequest
*/
export interface PartnerAppUploadPayloadRequest {
/**
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
*/
Header?: RequestPartnerAppHeader;
/**
* @generated from protobuf field: string Payload = 2
*/
Payload: string;
/**
* @generated from protobuf field: int64 TimeToLive = 3
*/
TimeToLive: bigint;
/**
* @generated from protobuf field: bool IsPublic = 4
*/
IsPublic: boolean;
/**
* @generated from protobuf field: bool IsOnce = 5
*/
IsOnce: boolean;
/**
* @generated from protobuf field: string Alias = 6
*/
Alias: string;
}
/**
* @generated from protobuf message api.PartnerAppUploadPayloadResponse
*/
export interface PartnerAppUploadPayloadResponse {
/**
* @generated from protobuf field: api.TinyURL TinyURL = 1
*/
TinyURL?: TinyURL;
}
/**
* @generated from protobuf message api.OrganisationListTinyURLsRequest
*/
export interface OrganisationListTinyURLsRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
*/
Header?: RequestOrganisationHeader;
}
/**
* @generated from protobuf message api.OrganisationListTinyURLsResponse
*/
export interface OrganisationListTinyURLsResponse {
/**
* @generated from protobuf field: repeated api.TinyURL TinyURLs = 1
*/
TinyURLs: TinyURL[];
}
/**
* @generated from protobuf message api.ProjectListTinyURLsRequest
*/
export interface ProjectListTinyURLsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
}
/**
* @generated from protobuf message api.ProjectListTinyURLsResponse
*/
export interface ProjectListTinyURLsResponse {
/**
* @generated from protobuf field: repeated api.TinyURL TinyURLs = 1
*/
TinyURLs: TinyURL[];
}
/**
* @generated from protobuf message api.PartnerAppListTinyURLsRequest
*/
export interface PartnerAppListTinyURLsRequest {
/**
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
*/
Header?: RequestPartnerAppHeader;
}
/**
* @generated from protobuf message api.PartnerAppListTinyURLsResponse
*/
export interface PartnerAppListTinyURLsResponse {
/**
* @generated from protobuf field: repeated api.TinyURL TinyURLs = 1
*/
TinyURLs: TinyURL[];
}
/**
* @generated from protobuf message api.OrganisationDeleteTinyURLRequest
*/
export interface OrganisationDeleteTinyURLRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
*/
Header?: RequestOrganisationHeader;
/**
* @generated from protobuf field: string ID = 2
*/
ID: string;
}
/**
* @generated from protobuf message api.OrganisationDeleteTinyURLResponse
*/
export interface OrganisationDeleteTinyURLResponse {
}
/**
* @generated from protobuf message api.ProjectDeleteTinyURLRequest
*/
export interface ProjectDeleteTinyURLRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string ID = 2
*/
ID: string;
}
/**
* @generated from protobuf message api.ProjectDeleteTinyURLResponse
*/
export interface ProjectDeleteTinyURLResponse {
}
/**
* @generated from protobuf message api.PartnerAppDeleteTinyURLRequest
*/
export interface PartnerAppDeleteTinyURLRequest {
/**
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
*/
Header?: RequestPartnerAppHeader;
/**
* @generated from protobuf field: string ID = 2
*/
ID: string;
}
/**
* @generated from protobuf message api.PartnerAppDeleteTinyURLResponse
*/
export interface PartnerAppDeleteTinyURLResponse {
}
/**
* @generated from protobuf message api.OrganisationGetTinyURLRequest
*/
export interface OrganisationGetTinyURLRequest {
/**
* @generated from protobuf field: api.RequestOrganisationHeader Header = 1
*/
Header?: RequestOrganisationHeader;
/**
* @generated from protobuf field: string ID = 2
*/
ID: string;
}
/**
* @generated from protobuf message api.OrganisationGetTinyURLResponse
*/
export interface OrganisationGetTinyURLResponse {
/**
* @generated from protobuf field: api.TinyURLKind Kind = 1
*/
Kind: TinyURLKind;
/**
* @generated from protobuf field: api.FileDataResponse File = 2
*/
File?: FileDataResponse;
/**
* @generated from protobuf field: string LongURL = 3
*/
LongURL: string;
/**
* @generated from protobuf field: string Payload = 4
*/
Payload: string;
}
/**
* @generated from protobuf message api.ProjectGetTinyURLRequest
*/
export interface ProjectGetTinyURLRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
/**
* @generated from protobuf field: string ID = 2
*/
ID: string;
}
/**
* @generated from protobuf message api.ProjectGetTinyURLResponse
*/
export interface ProjectGetTinyURLResponse {
/**
* @generated from protobuf field: api.TinyURLKind Kind = 1
*/
Kind: TinyURLKind;
/**
* @generated from protobuf field: api.FileDataResponse File = 2
*/
File?: FileDataResponse;
/**
* @generated from protobuf field: string LongURL = 3
*/
LongURL: string;
/**
* @generated from protobuf field: string Payload = 4
*/
Payload: string;
}
/**
* @generated from protobuf message api.PartnerAppGetTinyURLRequest
*/
export interface PartnerAppGetTinyURLRequest {
/**
* @generated from protobuf field: api.RequestPartnerAppHeader Header = 1
*/
Header?: RequestPartnerAppHeader;
/**
* @generated from protobuf field: string ID = 2
*/
ID: string;
}
/**
* @generated from protobuf message api.PartnerAppGetTinyURLResponse
*/
export interface PartnerAppGetTinyURLResponse {
/**
* @generated from protobuf field: api.TinyURLKind Kind = 1
*/
Kind: TinyURLKind;
/**
* @generated from protobuf field: api.FileDataResponse File = 2
*/
File?: FileDataResponse;
/**
* @generated from protobuf field: string LongURL = 3
*/
LongURL: string;
/**
* @generated from protobuf field: string Payload = 4
*/
Payload: string;
}
/**
* @generated from protobuf message api.DeleteAllTinyURLsRequest
*/
export interface DeleteAllTinyURLsRequest {
/**
* @generated from protobuf field: api.ResourceType ResourceType = 1
*/
ResourceType: ResourceType;
/**
* @generated from protobuf field: string ResourceRefID = 2
*/
ResourceRefID: string;
}
/**
* @generated from protobuf message api.DeleteAllTinyURLsResponse
*/
export interface DeleteAllTinyURLsResponse {
}
// ========== MODEL MESSAGES ==========
/**
* @generated from protobuf enum api.TinyURLKind
*/
export enum TinyURLKind {
/**
* @generated from protobuf enum value: TINYURL_KIND_UNKNOWN = 0;
*/
TINYURL_KIND_UNKNOWN = 0,
/**
* @generated from protobuf enum value: TINYURL_KIND_FILE = 1;
*/
TINYURL_KIND_FILE = 1,
/**
* @generated from protobuf enum value: TINYURL_KIND_URL = 2;
*/
TINYURL_KIND_URL = 2,
/**
* @generated from protobuf enum value: TINYURL_KIND_PAYLOAD = 3;
*/
TINYURL_KIND_PAYLOAD = 3
}
// @generated message type with reflection information, may provide speed optimized methods
class TinyURLKindDetails$Type extends MessageType<TinyURLKindDetails> {
constructor() {
super("api.TinyURLKindDetails", [
{ no: 1, name: "LongURL", kind: "scalar", localName: "LongURL", jsonName: "LongURL", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "FileName", kind: "scalar", localName: "FileName", jsonName: "FileName", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<TinyURLKindDetails>): TinyURLKindDetails {
const message = globalThis.Object.create((this.messagePrototype!));
message.LongURL = "";
message.FileName = "";
if (value !== undefined)
reflectionMergePartial<TinyURLKindDetails>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TinyURLKindDetails): TinyURLKindDetails {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string LongURL */ 1:
message.LongURL = reader.string();
break;
case /* string FileName */ 2:
message.FileName = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: TinyURLKindDetails, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string LongURL = 1; */
if (message.LongURL !== "")
writer.tag(1, WireType.LengthDelimited).string(message.LongURL);
/* string FileName = 2; */
if (message.FileName !== "")
writer.tag(2, WireType.LengthDelimited).string(message.FileName);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.TinyURLKindDetails
*/
export const TinyURLKindDetails = new TinyURLKindDetails$Type();
// @generated message type with reflection information, may provide speed optimized methods
class TinyURL$Type extends MessageType<TinyURL> {
constructor() {
super("api.TinyURL", [
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "Kind", kind: "enum", localName: "Kind", jsonName: "Kind", T: () => ["api.TinyURLKind", TinyURLKind], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Kind of the tiny url (file, payload or url)." }, "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "Details", kind: "message", localName: "Details", jsonName: "Details", T: () => TinyURLKindDetails, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Contains data specific to the selected tiny url kind." }, "validate.rules": { message: { required: true } } } },
{ no: 4, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Shortened URL used to retrieve the original data." }, "validate.rules": { string: { minLen: "1" } } } },
{ no: 5, name: "MIMEType", kind: "scalar", localName: "MIMEType", jsonName: "MIMEType", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 6, name: "Size", kind: "scalar", localName: "Size", jsonName: "Size", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
{ no: 7, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 8, name: "ResourceRefID", kind: "scalar", localName: "ResourceRefID", jsonName: "ResourceRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 9, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." }, "validate.rules": { int64: { lte: "1500000000" } } } },
{ no: 10, name: "CreatedAt", kind: "scalar", localName: "CreatedAt", jsonName: "CreatedAt", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "validate.rules": { string: { dateIso8601: true } } } },
{ no: 11, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ },
{ no: 12, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<TinyURL>): TinyURL {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
message.Kind = 0;
message.URL = "";
message.MIMEType = "";
message.Size = 0n;
message.ResourceType = 0;
message.ResourceRefID = "";
message.TimeToLive = 0n;
message.CreatedAt = "";
message.IsPublic = false;
message.IsOnce = false;
if (value !== undefined)
reflectionMergePartial<TinyURL>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TinyURL): TinyURL {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ID */ 1:
message.ID = reader.string();
break;
case /* api.TinyURLKind Kind */ 2:
message.Kind = reader.int32();
break;
case /* api.TinyURLKindDetails Details */ 3:
message.Details = TinyURLKindDetails.internalBinaryRead(reader, reader.uint32(), options, message.Details);
break;
case /* string URL */ 4:
message.URL = reader.string();
break;
case /* string MIMEType */ 5:
message.MIMEType = reader.string();
break;
case /* int64 Size */ 6:
message.Size = reader.int64().toBigInt();
break;
case /* api.ResourceType ResourceType */ 7:
message.ResourceType = reader.int32();
break;
case /* string ResourceRefID */ 8:
message.ResourceRefID = reader.string();
break;
case /* int64 TimeToLive */ 9:
message.TimeToLive = reader.int64().toBigInt();
break;
case /* string CreatedAt */ 10:
message.CreatedAt = reader.string();
break;
case /* bool IsPublic */ 11:
message.IsPublic = reader.bool();
break;
case /* bool IsOnce */ 12:
message.IsOnce = reader.bool();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: TinyURL, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ID = 1; */
if (message.ID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ID);
/* api.TinyURLKind Kind = 2; */
if (message.Kind !== 0)
writer.tag(2, WireType.Varint).int32(message.Kind);
/* api.TinyURLKindDetails Details = 3; */
if (message.Details)
TinyURLKindDetails.internalBinaryWrite(message.Details, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* string URL = 4; */
if (message.URL !== "")
writer.tag(4, WireType.LengthDelimited).string(message.URL);
/* string MIMEType = 5; */
if (message.MIMEType !== "")
writer.tag(5, WireType.LengthDelimited).string(message.MIMEType);
/* int64 Size = 6; */
if (message.Size !== 0n)
writer.tag(6, WireType.Varint).int64(message.Size);
/* api.ResourceType ResourceType = 7; */
if (message.ResourceType !== 0)
writer.tag(7, WireType.Varint).int32(message.ResourceType);
/* string ResourceRefID = 8; */
if (message.ResourceRefID !== "")
writer.tag(8, WireType.LengthDelimited).string(message.ResourceRefID);
/* int64 TimeToLive = 9; */
if (message.TimeToLive !== 0n)
writer.tag(9, WireType.Varint).int64(message.TimeToLive);
/* string CreatedAt = 10; */
if (message.CreatedAt !== "")
writer.tag(10, WireType.LengthDelimited).string(message.CreatedAt);
/* bool IsPublic = 11; */
if (message.IsPublic !== false)
writer.tag(11, WireType.Varint).bool(message.IsPublic);
/* bool IsOnce = 12; */
if (message.IsOnce !== false)
writer.tag(12, WireType.Varint).bool(message.IsOnce);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.TinyURL
*/
export const TinyURL = new TinyURL$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationShortenURLRequest$Type extends MessageType<OrganisationShortenURLRequest> {
constructor() {
super("api.OrganisationShortenURLRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." }, "validate.rules": { int64: { lte: "1500000000" } } } },
{ no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" }, "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "URL", "TimeToLive"] } } });
}
create(value?: PartialMessage<OrganisationShortenURLRequest>): OrganisationShortenURLRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.URL = "";
message.TimeToLive = 0n;
message.IsPublic = false;
message.IsOnce = false;
message.Alias = "";
if (value !== undefined)
reflectionMergePartial<OrganisationShortenURLRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationShortenURLRequest): OrganisationShortenURLRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 1:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string URL */ 2:
message.URL = reader.string();
break;
case /* int64 TimeToLive */ 3:
message.TimeToLive = reader.int64().toBigInt();
break;
case /* bool IsPublic */ 4:
message.IsPublic = reader.bool();
break;
case /* bool IsOnce */ 5:
message.IsOnce = reader.bool();
break;
case /* string Alias */ 6:
message.Alias = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationShortenURLRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestOrganisationHeader Header = 1; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string URL = 2; */
if (message.URL !== "")
writer.tag(2, WireType.LengthDelimited).string(message.URL);
/* int64 TimeToLive = 3; */
if (message.TimeToLive !== 0n)
writer.tag(3, WireType.Varint).int64(message.TimeToLive);
/* bool IsPublic = 4; */
if (message.IsPublic !== false)
writer.tag(4, WireType.Varint).bool(message.IsPublic);
/* bool IsOnce = 5; */
if (message.IsOnce !== false)
writer.tag(5, WireType.Varint).bool(message.IsOnce);
/* string Alias = 6; */
if (message.Alias !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Alias);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationShortenURLRequest
*/
export const OrganisationShortenURLRequest = new OrganisationShortenURLRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationShortenURLResponse$Type extends MessageType<OrganisationShortenURLResponse> {
constructor() {
super("api.OrganisationShortenURLResponse", [
{ no: 1, name: "TinyURL", kind: "message", localName: "TinyURL", jsonName: "TinyURL", T: () => TinyURL }
]);
}
create(value?: PartialMessage<OrganisationShortenURLResponse>): OrganisationShortenURLResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrganisationShortenURLResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationShortenURLResponse): OrganisationShortenURLResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURL TinyURL */ 1:
message.TinyURL = TinyURL.internalBinaryRead(reader, reader.uint32(), options, message.TinyURL);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationShortenURLResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURL TinyURL = 1; */
if (message.TinyURL)
TinyURL.internalBinaryWrite(message.TinyURL, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationShortenURLResponse
*/
export const OrganisationShortenURLResponse = new OrganisationShortenURLResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectShortenURLRequest$Type extends MessageType<ProjectShortenURLRequest> {
constructor() {
super("api.ProjectShortenURLRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." }, "validate.rules": { int64: { lte: "1500000000" } } } },
{ no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" }, "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "URL", "TimeToLive"] } } });
}
create(value?: PartialMessage<ProjectShortenURLRequest>): ProjectShortenURLRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.URL = "";
message.TimeToLive = 0n;
message.IsPublic = false;
message.IsOnce = false;
message.Alias = "";
if (value !== undefined)
reflectionMergePartial<ProjectShortenURLRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectShortenURLRequest): ProjectShortenURLRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string URL */ 2:
message.URL = reader.string();
break;
case /* int64 TimeToLive */ 3:
message.TimeToLive = reader.int64().toBigInt();
break;
case /* bool IsPublic */ 4:
message.IsPublic = reader.bool();
break;
case /* bool IsOnce */ 5:
message.IsOnce = reader.bool();
break;
case /* string Alias */ 6:
message.Alias = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectShortenURLRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string URL = 2; */
if (message.URL !== "")
writer.tag(2, WireType.LengthDelimited).string(message.URL);
/* int64 TimeToLive = 3; */
if (message.TimeToLive !== 0n)
writer.tag(3, WireType.Varint).int64(message.TimeToLive);
/* bool IsPublic = 4; */
if (message.IsPublic !== false)
writer.tag(4, WireType.Varint).bool(message.IsPublic);
/* bool IsOnce = 5; */
if (message.IsOnce !== false)
writer.tag(5, WireType.Varint).bool(message.IsOnce);
/* string Alias = 6; */
if (message.Alias !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Alias);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectShortenURLRequest
*/
export const ProjectShortenURLRequest = new ProjectShortenURLRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectShortenURLResponse$Type extends MessageType<ProjectShortenURLResponse> {
constructor() {
super("api.ProjectShortenURLResponse", [
{ no: 1, name: "TinyURL", kind: "message", localName: "TinyURL", jsonName: "TinyURL", T: () => TinyURL }
]);
}
create(value?: PartialMessage<ProjectShortenURLResponse>): ProjectShortenURLResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ProjectShortenURLResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectShortenURLResponse): ProjectShortenURLResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURL TinyURL */ 1:
message.TinyURL = TinyURL.internalBinaryRead(reader, reader.uint32(), options, message.TinyURL);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectShortenURLResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURL TinyURL = 1; */
if (message.TinyURL)
TinyURL.internalBinaryWrite(message.TinyURL, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectShortenURLResponse
*/
export const ProjectShortenURLResponse = new ProjectShortenURLResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppShortenURLRequest$Type extends MessageType<PartnerAppShortenURLRequest> {
constructor() {
super("api.PartnerAppShortenURLRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "URL", kind: "scalar", localName: "URL", jsonName: "URL", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." }, "validate.rules": { int64: { lte: "1500000000" } } } },
{ no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" }, "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "URL", "TimeToLive"] } } });
}
create(value?: PartialMessage<PartnerAppShortenURLRequest>): PartnerAppShortenURLRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.URL = "";
message.TimeToLive = 0n;
message.IsPublic = false;
message.IsOnce = false;
message.Alias = "";
if (value !== undefined)
reflectionMergePartial<PartnerAppShortenURLRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppShortenURLRequest): PartnerAppShortenURLRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestPartnerAppHeader Header */ 1:
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string URL */ 2:
message.URL = reader.string();
break;
case /* int64 TimeToLive */ 3:
message.TimeToLive = reader.int64().toBigInt();
break;
case /* bool IsPublic */ 4:
message.IsPublic = reader.bool();
break;
case /* bool IsOnce */ 5:
message.IsOnce = reader.bool();
break;
case /* string Alias */ 6:
message.Alias = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppShortenURLRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestPartnerAppHeader Header = 1; */
if (message.Header)
RequestPartnerAppHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string URL = 2; */
if (message.URL !== "")
writer.tag(2, WireType.LengthDelimited).string(message.URL);
/* int64 TimeToLive = 3; */
if (message.TimeToLive !== 0n)
writer.tag(3, WireType.Varint).int64(message.TimeToLive);
/* bool IsPublic = 4; */
if (message.IsPublic !== false)
writer.tag(4, WireType.Varint).bool(message.IsPublic);
/* bool IsOnce = 5; */
if (message.IsOnce !== false)
writer.tag(5, WireType.Varint).bool(message.IsOnce);
/* string Alias = 6; */
if (message.Alias !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Alias);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppShortenURLRequest
*/
export const PartnerAppShortenURLRequest = new PartnerAppShortenURLRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppShortenURLResponse$Type extends MessageType<PartnerAppShortenURLResponse> {
constructor() {
super("api.PartnerAppShortenURLResponse", [
{ no: 1, name: "TinyURL", kind: "message", localName: "TinyURL", jsonName: "TinyURL", T: () => TinyURL }
]);
}
create(value?: PartialMessage<PartnerAppShortenURLResponse>): PartnerAppShortenURLResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<PartnerAppShortenURLResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppShortenURLResponse): PartnerAppShortenURLResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURL TinyURL */ 1:
message.TinyURL = TinyURL.internalBinaryRead(reader, reader.uint32(), options, message.TinyURL);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppShortenURLResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURL TinyURL = 1; */
if (message.TinyURL)
TinyURL.internalBinaryWrite(message.TinyURL, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppShortenURLResponse
*/
export const PartnerAppShortenURLResponse = new PartnerAppShortenURLResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationUploadFileRequest$Type extends MessageType<OrganisationUploadFileRequest> {
constructor() {
super("api.OrganisationUploadFileRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." }, "validate.rules": { int64: { lte: "1500000000" } } } },
{ no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" }, "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File", "TimeToLive"] } } });
}
create(value?: PartialMessage<OrganisationUploadFileRequest>): OrganisationUploadFileRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.TimeToLive = 0n;
message.IsPublic = false;
message.IsOnce = false;
message.Alias = "";
if (value !== undefined)
reflectionMergePartial<OrganisationUploadFileRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationUploadFileRequest): OrganisationUploadFileRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 1:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.FileDataRequest File */ 2:
message.File = FileDataRequest.internalBinaryRead(reader, reader.uint32(), options, message.File);
break;
case /* int64 TimeToLive */ 3:
message.TimeToLive = reader.int64().toBigInt();
break;
case /* bool IsPublic */ 4:
message.IsPublic = reader.bool();
break;
case /* bool IsOnce */ 5:
message.IsOnce = reader.bool();
break;
case /* string Alias */ 6:
message.Alias = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationUploadFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestOrganisationHeader Header = 1; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.FileDataRequest File = 2; */
if (message.File)
FileDataRequest.internalBinaryWrite(message.File, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* int64 TimeToLive = 3; */
if (message.TimeToLive !== 0n)
writer.tag(3, WireType.Varint).int64(message.TimeToLive);
/* bool IsPublic = 4; */
if (message.IsPublic !== false)
writer.tag(4, WireType.Varint).bool(message.IsPublic);
/* bool IsOnce = 5; */
if (message.IsOnce !== false)
writer.tag(5, WireType.Varint).bool(message.IsOnce);
/* string Alias = 6; */
if (message.Alias !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Alias);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationUploadFileRequest
*/
export const OrganisationUploadFileRequest = new OrganisationUploadFileRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationUploadFileResponse$Type extends MessageType<OrganisationUploadFileResponse> {
constructor() {
super("api.OrganisationUploadFileResponse", [
{ no: 1, name: "TinyURL", kind: "message", localName: "TinyURL", jsonName: "TinyURL", T: () => TinyURL }
]);
}
create(value?: PartialMessage<OrganisationUploadFileResponse>): OrganisationUploadFileResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrganisationUploadFileResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationUploadFileResponse): OrganisationUploadFileResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURL TinyURL */ 1:
message.TinyURL = TinyURL.internalBinaryRead(reader, reader.uint32(), options, message.TinyURL);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationUploadFileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURL TinyURL = 1; */
if (message.TinyURL)
TinyURL.internalBinaryWrite(message.TinyURL, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationUploadFileResponse
*/
export const OrganisationUploadFileResponse = new OrganisationUploadFileResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectUploadFileRequest$Type extends MessageType<ProjectUploadFileRequest> {
constructor() {
super("api.ProjectUploadFileRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." }, "validate.rules": { int64: { lte: "1500000000" } } } },
{ no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" }, "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File", "TimeToLive"] } } });
}
create(value?: PartialMessage<ProjectUploadFileRequest>): ProjectUploadFileRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.TimeToLive = 0n;
message.IsPublic = false;
message.IsOnce = false;
message.Alias = "";
if (value !== undefined)
reflectionMergePartial<ProjectUploadFileRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectUploadFileRequest): ProjectUploadFileRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.FileDataRequest File */ 2:
message.File = FileDataRequest.internalBinaryRead(reader, reader.uint32(), options, message.File);
break;
case /* int64 TimeToLive */ 3:
message.TimeToLive = reader.int64().toBigInt();
break;
case /* bool IsPublic */ 4:
message.IsPublic = reader.bool();
break;
case /* bool IsOnce */ 5:
message.IsOnce = reader.bool();
break;
case /* string Alias */ 6:
message.Alias = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectUploadFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.FileDataRequest File = 2; */
if (message.File)
FileDataRequest.internalBinaryWrite(message.File, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* int64 TimeToLive = 3; */
if (message.TimeToLive !== 0n)
writer.tag(3, WireType.Varint).int64(message.TimeToLive);
/* bool IsPublic = 4; */
if (message.IsPublic !== false)
writer.tag(4, WireType.Varint).bool(message.IsPublic);
/* bool IsOnce = 5; */
if (message.IsOnce !== false)
writer.tag(5, WireType.Varint).bool(message.IsOnce);
/* string Alias = 6; */
if (message.Alias !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Alias);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectUploadFileRequest
*/
export const ProjectUploadFileRequest = new ProjectUploadFileRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectUploadFileResponse$Type extends MessageType<ProjectUploadFileResponse> {
constructor() {
super("api.ProjectUploadFileResponse", [
{ no: 1, name: "TinyURL", kind: "message", localName: "TinyURL", jsonName: "TinyURL", T: () => TinyURL }
]);
}
create(value?: PartialMessage<ProjectUploadFileResponse>): ProjectUploadFileResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ProjectUploadFileResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectUploadFileResponse): ProjectUploadFileResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURL TinyURL */ 1:
message.TinyURL = TinyURL.internalBinaryRead(reader, reader.uint32(), options, message.TinyURL);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectUploadFileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURL TinyURL = 1; */
if (message.TinyURL)
TinyURL.internalBinaryWrite(message.TinyURL, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectUploadFileResponse
*/
export const ProjectUploadFileResponse = new ProjectUploadFileResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppUploadFileRequest$Type extends MessageType<PartnerAppUploadFileRequest> {
constructor() {
super("api.PartnerAppUploadFileRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." }, "validate.rules": { int64: { lte: "1500000000" } } } },
{ no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" }, "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File", "TimeToLive"] } } });
}
create(value?: PartialMessage<PartnerAppUploadFileRequest>): PartnerAppUploadFileRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.TimeToLive = 0n;
message.IsPublic = false;
message.IsOnce = false;
message.Alias = "";
if (value !== undefined)
reflectionMergePartial<PartnerAppUploadFileRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppUploadFileRequest): PartnerAppUploadFileRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestPartnerAppHeader Header */ 1:
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.FileDataRequest File */ 2:
message.File = FileDataRequest.internalBinaryRead(reader, reader.uint32(), options, message.File);
break;
case /* int64 TimeToLive */ 3:
message.TimeToLive = reader.int64().toBigInt();
break;
case /* bool IsPublic */ 4:
message.IsPublic = reader.bool();
break;
case /* bool IsOnce */ 5:
message.IsOnce = reader.bool();
break;
case /* string Alias */ 6:
message.Alias = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppUploadFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestPartnerAppHeader Header = 1; */
if (message.Header)
RequestPartnerAppHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.FileDataRequest File = 2; */
if (message.File)
FileDataRequest.internalBinaryWrite(message.File, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* int64 TimeToLive = 3; */
if (message.TimeToLive !== 0n)
writer.tag(3, WireType.Varint).int64(message.TimeToLive);
/* bool IsPublic = 4; */
if (message.IsPublic !== false)
writer.tag(4, WireType.Varint).bool(message.IsPublic);
/* bool IsOnce = 5; */
if (message.IsOnce !== false)
writer.tag(5, WireType.Varint).bool(message.IsOnce);
/* string Alias = 6; */
if (message.Alias !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Alias);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppUploadFileRequest
*/
export const PartnerAppUploadFileRequest = new PartnerAppUploadFileRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppUploadFileResponse$Type extends MessageType<PartnerAppUploadFileResponse> {
constructor() {
super("api.PartnerAppUploadFileResponse", [
{ no: 1, name: "TinyURL", kind: "message", localName: "TinyURL", jsonName: "TinyURL", T: () => TinyURL }
]);
}
create(value?: PartialMessage<PartnerAppUploadFileResponse>): PartnerAppUploadFileResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<PartnerAppUploadFileResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppUploadFileResponse): PartnerAppUploadFileResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURL TinyURL */ 1:
message.TinyURL = TinyURL.internalBinaryRead(reader, reader.uint32(), options, message.TinyURL);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppUploadFileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURL TinyURL = 1; */
if (message.TinyURL)
TinyURL.internalBinaryWrite(message.TinyURL, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppUploadFileResponse
*/
export const PartnerAppUploadFileResponse = new PartnerAppUploadFileResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationUploadPayloadRequest$Type extends MessageType<OrganisationUploadPayloadRequest> {
constructor() {
super("api.OrganisationUploadPayloadRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." }, "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." }, "validate.rules": { int64: { lte: "1500000000" } } } },
{ no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" }, "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload", "TimeToLive"] } } });
}
create(value?: PartialMessage<OrganisationUploadPayloadRequest>): OrganisationUploadPayloadRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Payload = "";
message.TimeToLive = 0n;
message.IsPublic = false;
message.IsOnce = false;
message.Alias = "";
if (value !== undefined)
reflectionMergePartial<OrganisationUploadPayloadRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationUploadPayloadRequest): OrganisationUploadPayloadRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 1:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Payload */ 2:
message.Payload = reader.string();
break;
case /* int64 TimeToLive */ 3:
message.TimeToLive = reader.int64().toBigInt();
break;
case /* bool IsPublic */ 4:
message.IsPublic = reader.bool();
break;
case /* bool IsOnce */ 5:
message.IsOnce = reader.bool();
break;
case /* string Alias */ 6:
message.Alias = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationUploadPayloadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestOrganisationHeader Header = 1; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Payload = 2; */
if (message.Payload !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Payload);
/* int64 TimeToLive = 3; */
if (message.TimeToLive !== 0n)
writer.tag(3, WireType.Varint).int64(message.TimeToLive);
/* bool IsPublic = 4; */
if (message.IsPublic !== false)
writer.tag(4, WireType.Varint).bool(message.IsPublic);
/* bool IsOnce = 5; */
if (message.IsOnce !== false)
writer.tag(5, WireType.Varint).bool(message.IsOnce);
/* string Alias = 6; */
if (message.Alias !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Alias);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationUploadPayloadRequest
*/
export const OrganisationUploadPayloadRequest = new OrganisationUploadPayloadRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationUploadPayloadResponse$Type extends MessageType<OrganisationUploadPayloadResponse> {
constructor() {
super("api.OrganisationUploadPayloadResponse", [
{ no: 1, name: "TinyURL", kind: "message", localName: "TinyURL", jsonName: "TinyURL", T: () => TinyURL }
]);
}
create(value?: PartialMessage<OrganisationUploadPayloadResponse>): OrganisationUploadPayloadResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrganisationUploadPayloadResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationUploadPayloadResponse): OrganisationUploadPayloadResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURL TinyURL */ 1:
message.TinyURL = TinyURL.internalBinaryRead(reader, reader.uint32(), options, message.TinyURL);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationUploadPayloadResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURL TinyURL = 1; */
if (message.TinyURL)
TinyURL.internalBinaryWrite(message.TinyURL, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationUploadPayloadResponse
*/
export const OrganisationUploadPayloadResponse = new OrganisationUploadPayloadResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectUploadPayloadRequest$Type extends MessageType<ProjectUploadPayloadRequest> {
constructor() {
super("api.ProjectUploadPayloadRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." }, "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." }, "validate.rules": { int64: { lte: "1500000000" } } } },
{ no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" }, "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload", "TimeToLive"] } } });
}
create(value?: PartialMessage<ProjectUploadPayloadRequest>): ProjectUploadPayloadRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Payload = "";
message.TimeToLive = 0n;
message.IsPublic = false;
message.IsOnce = false;
message.Alias = "";
if (value !== undefined)
reflectionMergePartial<ProjectUploadPayloadRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectUploadPayloadRequest): ProjectUploadPayloadRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Payload */ 2:
message.Payload = reader.string();
break;
case /* int64 TimeToLive */ 3:
message.TimeToLive = reader.int64().toBigInt();
break;
case /* bool IsPublic */ 4:
message.IsPublic = reader.bool();
break;
case /* bool IsOnce */ 5:
message.IsOnce = reader.bool();
break;
case /* string Alias */ 6:
message.Alias = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectUploadPayloadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Payload = 2; */
if (message.Payload !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Payload);
/* int64 TimeToLive = 3; */
if (message.TimeToLive !== 0n)
writer.tag(3, WireType.Varint).int64(message.TimeToLive);
/* bool IsPublic = 4; */
if (message.IsPublic !== false)
writer.tag(4, WireType.Varint).bool(message.IsPublic);
/* bool IsOnce = 5; */
if (message.IsOnce !== false)
writer.tag(5, WireType.Varint).bool(message.IsOnce);
/* string Alias = 6; */
if (message.Alias !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Alias);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectUploadPayloadRequest
*/
export const ProjectUploadPayloadRequest = new ProjectUploadPayloadRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectUploadPayloadResponse$Type extends MessageType<ProjectUploadPayloadResponse> {
constructor() {
super("api.ProjectUploadPayloadResponse", [
{ no: 1, name: "TinyURL", kind: "message", localName: "TinyURL", jsonName: "TinyURL", T: () => TinyURL }
]);
}
create(value?: PartialMessage<ProjectUploadPayloadResponse>): ProjectUploadPayloadResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ProjectUploadPayloadResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectUploadPayloadResponse): ProjectUploadPayloadResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURL TinyURL */ 1:
message.TinyURL = TinyURL.internalBinaryRead(reader, reader.uint32(), options, message.TinyURL);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectUploadPayloadResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURL TinyURL = 1; */
if (message.TinyURL)
TinyURL.internalBinaryWrite(message.TinyURL, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectUploadPayloadResponse
*/
export const ProjectUploadPayloadResponse = new ProjectUploadPayloadResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppUploadPayloadRequest$Type extends MessageType<PartnerAppUploadPayloadRequest> {
constructor() {
super("api.PartnerAppUploadPayloadRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The payload content, which can either be plain text or a stringified JSON. The MIME type will be automatically inferred based on whether the content can be parsed as JSON." }, "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "TimeToLive", kind: "scalar", localName: "TimeToLive", jsonName: "TimeToLive", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Specifies the time to live (TTL) of the TinyURL in seconds, limited to fifty years. A value of zero or less indicates an infinite TTL." }, "validate.rules": { int64: { lte: "1500000000" } } } },
{ no: 4, name: "IsPublic", kind: "scalar", localName: "IsPublic", jsonName: "IsPublic", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "IsOnce", kind: "scalar", localName: "IsOnce", jsonName: "IsOnce", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "Alias", kind: "scalar", localName: "Alias", jsonName: "Alias", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional, customize the link by adding an alias to the url. If omitted a unique ID is generated" }, "validate.rules": { string: { maxLen: "50", pattern: "^[a-zA-Z0-9-]*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Payload", "TimeToLive"] } } });
}
create(value?: PartialMessage<PartnerAppUploadPayloadRequest>): PartnerAppUploadPayloadRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.Payload = "";
message.TimeToLive = 0n;
message.IsPublic = false;
message.IsOnce = false;
message.Alias = "";
if (value !== undefined)
reflectionMergePartial<PartnerAppUploadPayloadRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppUploadPayloadRequest): PartnerAppUploadPayloadRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestPartnerAppHeader Header */ 1:
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string Payload */ 2:
message.Payload = reader.string();
break;
case /* int64 TimeToLive */ 3:
message.TimeToLive = reader.int64().toBigInt();
break;
case /* bool IsPublic */ 4:
message.IsPublic = reader.bool();
break;
case /* bool IsOnce */ 5:
message.IsOnce = reader.bool();
break;
case /* string Alias */ 6:
message.Alias = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppUploadPayloadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestPartnerAppHeader Header = 1; */
if (message.Header)
RequestPartnerAppHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string Payload = 2; */
if (message.Payload !== "")
writer.tag(2, WireType.LengthDelimited).string(message.Payload);
/* int64 TimeToLive = 3; */
if (message.TimeToLive !== 0n)
writer.tag(3, WireType.Varint).int64(message.TimeToLive);
/* bool IsPublic = 4; */
if (message.IsPublic !== false)
writer.tag(4, WireType.Varint).bool(message.IsPublic);
/* bool IsOnce = 5; */
if (message.IsOnce !== false)
writer.tag(5, WireType.Varint).bool(message.IsOnce);
/* string Alias = 6; */
if (message.Alias !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Alias);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppUploadPayloadRequest
*/
export const PartnerAppUploadPayloadRequest = new PartnerAppUploadPayloadRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppUploadPayloadResponse$Type extends MessageType<PartnerAppUploadPayloadResponse> {
constructor() {
super("api.PartnerAppUploadPayloadResponse", [
{ no: 1, name: "TinyURL", kind: "message", localName: "TinyURL", jsonName: "TinyURL", T: () => TinyURL }
]);
}
create(value?: PartialMessage<PartnerAppUploadPayloadResponse>): PartnerAppUploadPayloadResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<PartnerAppUploadPayloadResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppUploadPayloadResponse): PartnerAppUploadPayloadResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURL TinyURL */ 1:
message.TinyURL = TinyURL.internalBinaryRead(reader, reader.uint32(), options, message.TinyURL);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppUploadPayloadResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURL TinyURL = 1; */
if (message.TinyURL)
TinyURL.internalBinaryWrite(message.TinyURL, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppUploadPayloadResponse
*/
export const PartnerAppUploadPayloadResponse = new PartnerAppUploadPayloadResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationListTinyURLsRequest$Type extends MessageType<OrganisationListTinyURLsRequest> {
constructor() {
super("api.OrganisationListTinyURLsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<OrganisationListTinyURLsRequest>): OrganisationListTinyURLsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrganisationListTinyURLsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationListTinyURLsRequest): OrganisationListTinyURLsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 1:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationListTinyURLsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestOrganisationHeader Header = 1; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationListTinyURLsRequest
*/
export const OrganisationListTinyURLsRequest = new OrganisationListTinyURLsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationListTinyURLsResponse$Type extends MessageType<OrganisationListTinyURLsResponse> {
constructor() {
super("api.OrganisationListTinyURLsResponse", [
{ no: 1, name: "TinyURLs", kind: "message", localName: "TinyURLs", jsonName: "TinyURLs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TinyURL }
]);
}
create(value?: PartialMessage<OrganisationListTinyURLsResponse>): OrganisationListTinyURLsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.TinyURLs = [];
if (value !== undefined)
reflectionMergePartial<OrganisationListTinyURLsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationListTinyURLsResponse): OrganisationListTinyURLsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.TinyURL TinyURLs */ 1:
message.TinyURLs.push(TinyURL.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationListTinyURLsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.TinyURL TinyURLs = 1; */
for (let i = 0; i < message.TinyURLs.length; i++)
TinyURL.internalBinaryWrite(message.TinyURLs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationListTinyURLsResponse
*/
export const OrganisationListTinyURLsResponse = new OrganisationListTinyURLsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectListTinyURLsRequest$Type extends MessageType<ProjectListTinyURLsRequest> {
constructor() {
super("api.ProjectListTinyURLsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ProjectListTinyURLsRequest>): ProjectListTinyURLsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ProjectListTinyURLsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectListTinyURLsRequest): ProjectListTinyURLsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectListTinyURLsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectListTinyURLsRequest
*/
export const ProjectListTinyURLsRequest = new ProjectListTinyURLsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectListTinyURLsResponse$Type extends MessageType<ProjectListTinyURLsResponse> {
constructor() {
super("api.ProjectListTinyURLsResponse", [
{ no: 1, name: "TinyURLs", kind: "message", localName: "TinyURLs", jsonName: "TinyURLs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TinyURL }
]);
}
create(value?: PartialMessage<ProjectListTinyURLsResponse>): ProjectListTinyURLsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.TinyURLs = [];
if (value !== undefined)
reflectionMergePartial<ProjectListTinyURLsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectListTinyURLsResponse): ProjectListTinyURLsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.TinyURL TinyURLs */ 1:
message.TinyURLs.push(TinyURL.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectListTinyURLsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.TinyURL TinyURLs = 1; */
for (let i = 0; i < message.TinyURLs.length; i++)
TinyURL.internalBinaryWrite(message.TinyURLs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectListTinyURLsResponse
*/
export const ProjectListTinyURLsResponse = new ProjectListTinyURLsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppListTinyURLsRequest$Type extends MessageType<PartnerAppListTinyURLsRequest> {
constructor() {
super("api.PartnerAppListTinyURLsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<PartnerAppListTinyURLsRequest>): PartnerAppListTinyURLsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<PartnerAppListTinyURLsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppListTinyURLsRequest): PartnerAppListTinyURLsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestPartnerAppHeader Header */ 1:
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppListTinyURLsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestPartnerAppHeader Header = 1; */
if (message.Header)
RequestPartnerAppHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppListTinyURLsRequest
*/
export const PartnerAppListTinyURLsRequest = new PartnerAppListTinyURLsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppListTinyURLsResponse$Type extends MessageType<PartnerAppListTinyURLsResponse> {
constructor() {
super("api.PartnerAppListTinyURLsResponse", [
{ no: 1, name: "TinyURLs", kind: "message", localName: "TinyURLs", jsonName: "TinyURLs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => TinyURL }
]);
}
create(value?: PartialMessage<PartnerAppListTinyURLsResponse>): PartnerAppListTinyURLsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.TinyURLs = [];
if (value !== undefined)
reflectionMergePartial<PartnerAppListTinyURLsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppListTinyURLsResponse): PartnerAppListTinyURLsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.TinyURL TinyURLs */ 1:
message.TinyURLs.push(TinyURL.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppListTinyURLsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.TinyURL TinyURLs = 1; */
for (let i = 0; i < message.TinyURLs.length; i++)
TinyURL.internalBinaryWrite(message.TinyURLs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppListTinyURLsResponse
*/
export const PartnerAppListTinyURLsResponse = new PartnerAppListTinyURLsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationDeleteTinyURLRequest$Type extends MessageType<OrganisationDeleteTinyURLRequest> {
constructor() {
super("api.OrganisationDeleteTinyURLRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<OrganisationDeleteTinyURLRequest>): OrganisationDeleteTinyURLRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
if (value !== undefined)
reflectionMergePartial<OrganisationDeleteTinyURLRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationDeleteTinyURLRequest): OrganisationDeleteTinyURLRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 1:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ID */ 2:
message.ID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationDeleteTinyURLRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestOrganisationHeader Header = 1; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ID = 2; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationDeleteTinyURLRequest
*/
export const OrganisationDeleteTinyURLRequest = new OrganisationDeleteTinyURLRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationDeleteTinyURLResponse$Type extends MessageType<OrganisationDeleteTinyURLResponse> {
constructor() {
super("api.OrganisationDeleteTinyURLResponse", []);
}
create(value?: PartialMessage<OrganisationDeleteTinyURLResponse>): OrganisationDeleteTinyURLResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<OrganisationDeleteTinyURLResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationDeleteTinyURLResponse): OrganisationDeleteTinyURLResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationDeleteTinyURLResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationDeleteTinyURLResponse
*/
export const OrganisationDeleteTinyURLResponse = new OrganisationDeleteTinyURLResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectDeleteTinyURLRequest$Type extends MessageType<ProjectDeleteTinyURLRequest> {
constructor() {
super("api.ProjectDeleteTinyURLRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<ProjectDeleteTinyURLRequest>): ProjectDeleteTinyURLRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
if (value !== undefined)
reflectionMergePartial<ProjectDeleteTinyURLRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectDeleteTinyURLRequest): ProjectDeleteTinyURLRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ID */ 2:
message.ID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectDeleteTinyURLRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ID = 2; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectDeleteTinyURLRequest
*/
export const ProjectDeleteTinyURLRequest = new ProjectDeleteTinyURLRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectDeleteTinyURLResponse$Type extends MessageType<ProjectDeleteTinyURLResponse> {
constructor() {
super("api.ProjectDeleteTinyURLResponse", []);
}
create(value?: PartialMessage<ProjectDeleteTinyURLResponse>): ProjectDeleteTinyURLResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ProjectDeleteTinyURLResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectDeleteTinyURLResponse): ProjectDeleteTinyURLResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectDeleteTinyURLResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectDeleteTinyURLResponse
*/
export const ProjectDeleteTinyURLResponse = new ProjectDeleteTinyURLResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppDeleteTinyURLRequest$Type extends MessageType<PartnerAppDeleteTinyURLRequest> {
constructor() {
super("api.PartnerAppDeleteTinyURLRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<PartnerAppDeleteTinyURLRequest>): PartnerAppDeleteTinyURLRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
if (value !== undefined)
reflectionMergePartial<PartnerAppDeleteTinyURLRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppDeleteTinyURLRequest): PartnerAppDeleteTinyURLRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestPartnerAppHeader Header */ 1:
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ID */ 2:
message.ID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppDeleteTinyURLRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestPartnerAppHeader Header = 1; */
if (message.Header)
RequestPartnerAppHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ID = 2; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppDeleteTinyURLRequest
*/
export const PartnerAppDeleteTinyURLRequest = new PartnerAppDeleteTinyURLRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppDeleteTinyURLResponse$Type extends MessageType<PartnerAppDeleteTinyURLResponse> {
constructor() {
super("api.PartnerAppDeleteTinyURLResponse", []);
}
create(value?: PartialMessage<PartnerAppDeleteTinyURLResponse>): PartnerAppDeleteTinyURLResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<PartnerAppDeleteTinyURLResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppDeleteTinyURLResponse): PartnerAppDeleteTinyURLResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppDeleteTinyURLResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppDeleteTinyURLResponse
*/
export const PartnerAppDeleteTinyURLResponse = new PartnerAppDeleteTinyURLResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationGetTinyURLRequest$Type extends MessageType<OrganisationGetTinyURLRequest> {
constructor() {
super("api.OrganisationGetTinyURLRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<OrganisationGetTinyURLRequest>): OrganisationGetTinyURLRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
if (value !== undefined)
reflectionMergePartial<OrganisationGetTinyURLRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationGetTinyURLRequest): OrganisationGetTinyURLRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestOrganisationHeader Header */ 1:
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ID */ 2:
message.ID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationGetTinyURLRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestOrganisationHeader Header = 1; */
if (message.Header)
RequestOrganisationHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ID = 2; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationGetTinyURLRequest
*/
export const OrganisationGetTinyURLRequest = new OrganisationGetTinyURLRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class OrganisationGetTinyURLResponse$Type extends MessageType<OrganisationGetTinyURLResponse> {
constructor() {
super("api.OrganisationGetTinyURLResponse", [
{ no: 1, name: "Kind", kind: "enum", localName: "Kind", jsonName: "Kind", T: () => ["api.TinyURLKind", TinyURLKind] },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataResponse },
{ no: 3, name: "LongURL", kind: "scalar", localName: "LongURL", jsonName: "LongURL", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<OrganisationGetTinyURLResponse>): OrganisationGetTinyURLResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Kind = 0;
message.LongURL = "";
message.Payload = "";
if (value !== undefined)
reflectionMergePartial<OrganisationGetTinyURLResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrganisationGetTinyURLResponse): OrganisationGetTinyURLResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURLKind Kind */ 1:
message.Kind = reader.int32();
break;
case /* api.FileDataResponse File */ 2:
message.File = FileDataResponse.internalBinaryRead(reader, reader.uint32(), options, message.File);
break;
case /* string LongURL */ 3:
message.LongURL = reader.string();
break;
case /* string Payload */ 4:
message.Payload = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: OrganisationGetTinyURLResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURLKind Kind = 1; */
if (message.Kind !== 0)
writer.tag(1, WireType.Varint).int32(message.Kind);
/* api.FileDataResponse File = 2; */
if (message.File)
FileDataResponse.internalBinaryWrite(message.File, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string LongURL = 3; */
if (message.LongURL !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LongURL);
/* string Payload = 4; */
if (message.Payload !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Payload);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.OrganisationGetTinyURLResponse
*/
export const OrganisationGetTinyURLResponse = new OrganisationGetTinyURLResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectGetTinyURLRequest$Type extends MessageType<ProjectGetTinyURLRequest> {
constructor() {
super("api.ProjectGetTinyURLRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<ProjectGetTinyURLRequest>): ProjectGetTinyURLRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
if (value !== undefined)
reflectionMergePartial<ProjectGetTinyURLRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectGetTinyURLRequest): ProjectGetTinyURLRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ID */ 2:
message.ID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectGetTinyURLRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ID = 2; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectGetTinyURLRequest
*/
export const ProjectGetTinyURLRequest = new ProjectGetTinyURLRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ProjectGetTinyURLResponse$Type extends MessageType<ProjectGetTinyURLResponse> {
constructor() {
super("api.ProjectGetTinyURLResponse", [
{ no: 1, name: "Kind", kind: "enum", localName: "Kind", jsonName: "Kind", T: () => ["api.TinyURLKind", TinyURLKind] },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataResponse },
{ no: 3, name: "LongURL", kind: "scalar", localName: "LongURL", jsonName: "LongURL", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ProjectGetTinyURLResponse>): ProjectGetTinyURLResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Kind = 0;
message.LongURL = "";
message.Payload = "";
if (value !== undefined)
reflectionMergePartial<ProjectGetTinyURLResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProjectGetTinyURLResponse): ProjectGetTinyURLResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURLKind Kind */ 1:
message.Kind = reader.int32();
break;
case /* api.FileDataResponse File */ 2:
message.File = FileDataResponse.internalBinaryRead(reader, reader.uint32(), options, message.File);
break;
case /* string LongURL */ 3:
message.LongURL = reader.string();
break;
case /* string Payload */ 4:
message.Payload = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: ProjectGetTinyURLResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURLKind Kind = 1; */
if (message.Kind !== 0)
writer.tag(1, WireType.Varint).int32(message.Kind);
/* api.FileDataResponse File = 2; */
if (message.File)
FileDataResponse.internalBinaryWrite(message.File, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string LongURL = 3; */
if (message.LongURL !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LongURL);
/* string Payload = 4; */
if (message.Payload !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Payload);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.ProjectGetTinyURLResponse
*/
export const ProjectGetTinyURLResponse = new ProjectGetTinyURLResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppGetTinyURLRequest$Type extends MessageType<PartnerAppGetTinyURLRequest> {
constructor() {
super("api.PartnerAppGetTinyURLRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestPartnerAppHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID"] } } });
}
create(value?: PartialMessage<PartnerAppGetTinyURLRequest>): PartnerAppGetTinyURLRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ID = "";
if (value !== undefined)
reflectionMergePartial<PartnerAppGetTinyURLRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppGetTinyURLRequest): PartnerAppGetTinyURLRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestPartnerAppHeader Header */ 1:
message.Header = RequestPartnerAppHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string ID */ 2:
message.ID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppGetTinyURLRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestPartnerAppHeader Header = 1; */
if (message.Header)
RequestPartnerAppHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string ID = 2; */
if (message.ID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppGetTinyURLRequest
*/
export const PartnerAppGetTinyURLRequest = new PartnerAppGetTinyURLRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class PartnerAppGetTinyURLResponse$Type extends MessageType<PartnerAppGetTinyURLResponse> {
constructor() {
super("api.PartnerAppGetTinyURLResponse", [
{ no: 1, name: "Kind", kind: "enum", localName: "Kind", jsonName: "Kind", T: () => ["api.TinyURLKind", TinyURLKind] },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataResponse },
{ no: 3, name: "LongURL", kind: "scalar", localName: "LongURL", jsonName: "LongURL", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "Payload", kind: "scalar", localName: "Payload", jsonName: "Payload", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<PartnerAppGetTinyURLResponse>): PartnerAppGetTinyURLResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Kind = 0;
message.LongURL = "";
message.Payload = "";
if (value !== undefined)
reflectionMergePartial<PartnerAppGetTinyURLResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PartnerAppGetTinyURLResponse): PartnerAppGetTinyURLResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.TinyURLKind Kind */ 1:
message.Kind = reader.int32();
break;
case /* api.FileDataResponse File */ 2:
message.File = FileDataResponse.internalBinaryRead(reader, reader.uint32(), options, message.File);
break;
case /* string LongURL */ 3:
message.LongURL = reader.string();
break;
case /* string Payload */ 4:
message.Payload = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: PartnerAppGetTinyURLResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.TinyURLKind Kind = 1; */
if (message.Kind !== 0)
writer.tag(1, WireType.Varint).int32(message.Kind);
/* api.FileDataResponse File = 2; */
if (message.File)
FileDataResponse.internalBinaryWrite(message.File, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string LongURL = 3; */
if (message.LongURL !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LongURL);
/* string Payload = 4; */
if (message.Payload !== "")
writer.tag(4, WireType.LengthDelimited).string(message.Payload);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.PartnerAppGetTinyURLResponse
*/
export const PartnerAppGetTinyURLResponse = new PartnerAppGetTinyURLResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteAllTinyURLsRequest$Type extends MessageType<DeleteAllTinyURLsRequest> {
constructor() {
super("api.DeleteAllTinyURLsRequest", [
{ no: 1, name: "ResourceType", kind: "enum", localName: "ResourceType", jsonName: "ResourceType", T: () => ["api.ResourceType", ResourceType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 2, name: "ResourceRefID", kind: "scalar", localName: "ResourceRefID", jsonName: "ResourceRefID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ResourceType", "ResourceRefID"] } } });
}
create(value?: PartialMessage<DeleteAllTinyURLsRequest>): DeleteAllTinyURLsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ResourceType = 0;
message.ResourceRefID = "";
if (value !== undefined)
reflectionMergePartial<DeleteAllTinyURLsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllTinyURLsRequest): DeleteAllTinyURLsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResourceType ResourceType */ 1:
message.ResourceType = reader.int32();
break;
case /* string ResourceRefID */ 2:
message.ResourceRefID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: DeleteAllTinyURLsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResourceType ResourceType = 1; */
if (message.ResourceType !== 0)
writer.tag(1, WireType.Varint).int32(message.ResourceType);
/* string ResourceRefID = 2; */
if (message.ResourceRefID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ResourceRefID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DeleteAllTinyURLsRequest
*/
export const DeleteAllTinyURLsRequest = new DeleteAllTinyURLsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteAllTinyURLsResponse$Type extends MessageType<DeleteAllTinyURLsResponse> {
constructor() {
super("api.DeleteAllTinyURLsResponse", []);
}
create(value?: PartialMessage<DeleteAllTinyURLsResponse>): DeleteAllTinyURLsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<DeleteAllTinyURLsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAllTinyURLsResponse): DeleteAllTinyURLsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: DeleteAllTinyURLsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.DeleteAllTinyURLsResponse
*/
export const DeleteAllTinyURLsResponse = new DeleteAllTinyURLsResponse$Type();
/**
* @generated ServiceType for protobuf service api.TinyURLService
*/
export const TinyURLService = new ServiceType("api.TinyURLService", [
{ name: "OrganisationShortenURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Generates a short alias for a given URL linked to a organisation." }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: OrganisationShortenURLRequest, O: OrganisationShortenURLResponse },
{ name: "ProjectShortenURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Generates a short alias for a given URL linked to a project." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ProjectShortenURLRequest, O: ProjectShortenURLResponse },
{ name: "PartnerAppShortenURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Generates a short alias for a given URL linked to a partnerApp." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppShortenURLRequest, O: PartnerAppShortenURLResponse },
{ name: "OrganisationUploadFile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a file linked to a specific organisation resource. Generates a short URL to download the file. <br>Must be called using a multipart form-data content type request. <br> Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.TinyURLService/OrganisationUploadFile -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F OrganisationID=myOrganisationID -F TimeToLive=-1 -F IsPublic=false -F IsOnce=false -F Alias=myAlias" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: OrganisationUploadFileRequest, O: OrganisationUploadFileResponse },
{ name: "ProjectUploadFile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a file linked to a specific project resource. Generates a short URL to download the file. <br>Must be called using a multipart form-data content type request. <br> Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.TinyURLService/ProjectUploadFile -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F ProjectID=myProjectID -F TimeToLive=-1 -F IsPublic=false -F IsOnce=false -F Alias=myAlias" }, "api.rscType": "Project", "api.roles": "Platform.Project-TinyURL", "google.api.method_visibility": { restriction: "SDK" } }, I: ProjectUploadFileRequest, O: ProjectUploadFileResponse },
{ name: "PartnerAppUploadFile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a file linked to a specific partnerApp resource. Generates a short URL to download the file. <br>Must be called using a multipart form-data content type request. <br> Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.TinyURLService/PartnerAppUploadFile -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F PartnerAppID=myPartnerAppID -F TimeToLive=-1 -F IsPublic=false -F IsOnce=false -F Alias=myAlias" }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppUploadFileRequest, O: PartnerAppUploadFileResponse },
{ name: "OrganisationUploadPayload", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a payload (either plain text or JSON) linked to a specific organisation resource. Generates a short URL to retrieve the payload." }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: OrganisationUploadPayloadRequest, O: OrganisationUploadPayloadResponse },
{ name: "ProjectUploadPayload", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a payload (either plain text or JSON) linked to a specific project resource. Generates a short URL to retrieve the payload." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ProjectUploadPayloadRequest, O: ProjectUploadPayloadResponse },
{ name: "PartnerAppUploadPayload", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Uploads a payload (either plain text or JSON) linked to a specific partnerApp resource. Generates a short URL to retrieve the payload." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppUploadPayloadRequest, O: PartnerAppUploadPayloadResponse },
{ name: "OrganisationListTinyURLs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "List all the tiny URLs linked to a specific organisation resource." }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: OrganisationListTinyURLsRequest, O: OrganisationListTinyURLsResponse },
{ name: "ProjectListTinyURLs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "List all the tiny URLs linked to a specific project resource." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ProjectListTinyURLsRequest, O: ProjectListTinyURLsResponse },
{ name: "PartnerAppListTinyURLs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "List all the tiny URLs linked to a specific partnerApp resource." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppListTinyURLsRequest, O: PartnerAppListTinyURLsResponse },
{ name: "OrganisationDeleteTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Delete a tiny URL linked to a specific organisation resource." }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: OrganisationDeleteTinyURLRequest, O: OrganisationDeleteTinyURLResponse },
{ name: "ProjectDeleteTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Delete a tiny URL linked to a specific project resource." }, "api.rscType": "Project", "api.roles": "Platform.Project-TinyURL", "google.api.method_visibility": { restriction: "SDK" } }, I: ProjectDeleteTinyURLRequest, O: ProjectDeleteTinyURLResponse },
{ name: "PartnerAppDeleteTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Delete a tiny URL linked to a specific partnerApp resource." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppDeleteTinyURLRequest, O: PartnerAppDeleteTinyURLResponse },
{ name: "OrganisationGetTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Get a tiny URL linked to a specific Organisation resource. Can be a link or a file." }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: OrganisationGetTinyURLRequest, O: OrganisationGetTinyURLResponse },
{ name: "ProjectGetTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Get a tiny URL linked to a specific project resource. Can be a link or a file." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ProjectGetTinyURLRequest, O: ProjectGetTinyURLResponse },
{ name: "PartnerAppGetTinyURL", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Get a tiny URL linked to a specific partner app resource. Can be a link or a file." }, "api.rscType": "PartnerApp", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: PartnerAppGetTinyURLRequest, O: PartnerAppGetTinyURLResponse },
{ name: "DeleteAll", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["TinyURL"], description: "Delete all tiny URLs linked to a resource" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation-Deletion", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteAllTinyURLsRequest, O: DeleteAllTinyURLsResponse }
], { "api.k8sService": "tiny-url-server" });