@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
144 lines (119 loc) • 4.85 kB
TypeScript
// package: google.api.expr.v1beta1
// file: google/api/expr/v1beta1/decl.proto
import * as jspb from "google-protobuf";
import * as google_api_expr_v1beta1_expr_pb from "../../../../google/api/expr/v1beta1/expr_pb";
export class Decl extends jspb.Message {
getId(): number;
setId(value: number): void;
getName(): string;
setName(value: string): void;
getDoc(): string;
setDoc(value: string): void;
hasIdent(): boolean;
clearIdent(): void;
getIdent(): IdentDecl | undefined;
setIdent(value?: IdentDecl): void;
hasFunction(): boolean;
clearFunction(): void;
getFunction(): FunctionDecl | undefined;
setFunction(value?: FunctionDecl): void;
getKindCase(): Decl.KindCase;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Decl.AsObject;
static toObject(includeInstance: boolean, msg: Decl): Decl.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: Decl, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Decl;
static deserializeBinaryFromReader(message: Decl, reader: jspb.BinaryReader): Decl;
}
export namespace Decl {
export type AsObject = {
id: number,
name: string,
doc: string,
ident?: IdentDecl.AsObject,
pb_function?: FunctionDecl.AsObject,
}
export enum KindCase {
KIND_NOT_SET = 0,
IDENT = 4,
FUNCTION = 5,
}
}
export class DeclType extends jspb.Message {
getId(): number;
setId(value: number): void;
getType(): string;
setType(value: string): void;
clearTypeParamsList(): void;
getTypeParamsList(): Array<DeclType>;
setTypeParamsList(value: Array<DeclType>): void;
addTypeParams(value?: DeclType, index?: number): DeclType;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeclType.AsObject;
static toObject(includeInstance: boolean, msg: DeclType): DeclType.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: DeclType, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): DeclType;
static deserializeBinaryFromReader(message: DeclType, reader: jspb.BinaryReader): DeclType;
}
export namespace DeclType {
export type AsObject = {
id: number,
type: string,
typeParamsList: Array<DeclType.AsObject>,
}
}
export class IdentDecl extends jspb.Message {
hasType(): boolean;
clearType(): void;
getType(): DeclType | undefined;
setType(value?: DeclType): void;
hasValue(): boolean;
clearValue(): void;
getValue(): google_api_expr_v1beta1_expr_pb.Expr | undefined;
setValue(value?: google_api_expr_v1beta1_expr_pb.Expr): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): IdentDecl.AsObject;
static toObject(includeInstance: boolean, msg: IdentDecl): IdentDecl.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: IdentDecl, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): IdentDecl;
static deserializeBinaryFromReader(message: IdentDecl, reader: jspb.BinaryReader): IdentDecl;
}
export namespace IdentDecl {
export type AsObject = {
type?: DeclType.AsObject,
value?: google_api_expr_v1beta1_expr_pb.Expr.AsObject,
}
}
export class FunctionDecl extends jspb.Message {
clearArgsList(): void;
getArgsList(): Array<IdentDecl>;
setArgsList(value: Array<IdentDecl>): void;
addArgs(value?: IdentDecl, index?: number): IdentDecl;
hasReturnType(): boolean;
clearReturnType(): void;
getReturnType(): DeclType | undefined;
setReturnType(value?: DeclType): void;
getReceiverFunction(): boolean;
setReceiverFunction(value: boolean): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): FunctionDecl.AsObject;
static toObject(includeInstance: boolean, msg: FunctionDecl): FunctionDecl.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: FunctionDecl, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): FunctionDecl;
static deserializeBinaryFromReader(message: FunctionDecl, reader: jspb.BinaryReader): FunctionDecl;
}
export namespace FunctionDecl {
export type AsObject = {
argsList: Array<IdentDecl.AsObject>,
returnType?: DeclType.AsObject,
receiverFunction: boolean,
}
}