/* Options: Date: 2024-11-21 13:18:09 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://grpc.servicestack.net //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Protoc.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @DataContract export enum ProtocLang { Cpp = 'cpp', CSharp = 'csharp', Dart = 'dart', Java = 'java', JavaLite = 'java-lite', ObjectiveC = 'objc', Php = 'php', Python = 'python', Ruby = 'ruby', Go = 'go', JavaScriptClosure = 'js-closure', JavaScriptCommonJs = 'js-commonjs', JavaScriptNodeJs = 'js-node', Swift = 'swift', TypeScript = 'ts', TypeScriptBinary = 'ts-binary', } // @DataContract export class ResponseError { // @DataMember(Order=1) public errorCode: string; // @DataMember(Order=2) public fieldName: string; // @DataMember(Order=3) public message: string; // @DataMember(Order=4) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public errorCode: string; // @DataMember(Order=2) public message: string; // @DataMember(Order=3) public stackTrace: string; // @DataMember(Order=4) public errors: ResponseError[]; // @DataMember(Order=5) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ProtocResponse { public lang: ProtocLang; public generatedFiles: { [index: string]: string; }; public archiveUrl: string; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/protoc/{Lang}") export class Protoc implements IReturn { public lang: ProtocLang; public files: { [index: string]: string; }; public protoUrl: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'Protoc'; } public getMethod() { return 'POST'; } public createResponse() { return new ProtocResponse(); } }