UNPKG

google-ads-api-client

Version:

A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.

169 lines (168 loc) 5.49 kB
import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { Expr } from "./expr"; /** * A declaration. * * @generated from protobuf message google.api.expr.v1beta1.Decl */ export interface Decl { /** * The id of the declaration. * * @generated from protobuf field: int32 id = 1; */ id: number; /** * The name of the declaration. * * @generated from protobuf field: string name = 2; */ name: string; /** * The documentation string for the declaration. * * @generated from protobuf field: string doc = 3; */ doc: string; /** * @generated from protobuf oneof: kind */ kind: { oneofKind: "ident"; /** * An identifier declaration. * * @generated from protobuf field: google.api.expr.v1beta1.IdentDecl ident = 4; */ ident: IdentDecl; } | { oneofKind: "function"; /** * A function declaration. * * @generated from protobuf field: google.api.expr.v1beta1.FunctionDecl function = 5; */ function: FunctionDecl; } | { oneofKind: undefined; }; } /** * The declared type of a variable. * * Extends runtime type values with extra information used for type checking * and dispatching. * * @generated from protobuf message google.api.expr.v1beta1.DeclType */ export interface DeclType { /** * The expression id of the declared type, if applicable. * * @generated from protobuf field: int32 id = 1; */ id: number; /** * The type name, e.g. 'int', 'my.type.Type' or 'T' * * @generated from protobuf field: string type = 2; */ type: string; /** * An ordered list of type parameters, e.g. `<string, int>`. * Only applies to a subset of types, e.g. `map`, `list`. * * @generated from protobuf field: repeated google.api.expr.v1beta1.DeclType type_params = 4; */ typeParams: DeclType[]; } /** * An identifier declaration. * * @generated from protobuf message google.api.expr.v1beta1.IdentDecl */ export interface IdentDecl { /** * Optional type of the identifier. * * @generated from protobuf field: google.api.expr.v1beta1.DeclType type = 3; */ type?: DeclType; /** * Optional value of the identifier. * * @generated from protobuf field: google.api.expr.v1beta1.Expr value = 4; */ value?: Expr; } /** * A function declaration. * * @generated from protobuf message google.api.expr.v1beta1.FunctionDecl */ export interface FunctionDecl { /** * The function arguments. * * @generated from protobuf field: repeated google.api.expr.v1beta1.IdentDecl args = 1; */ args: IdentDecl[]; /** * Optional declared return type. * * @generated from protobuf field: google.api.expr.v1beta1.DeclType return_type = 2; */ returnType?: DeclType; /** * If the first argument of the function is the receiver. * * @generated from protobuf field: bool receiver_function = 3; */ receiverFunction: boolean; } declare class Decl$Type extends MessageType<Decl> { constructor(); create(value?: PartialMessage<Decl>): Decl; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Decl): Decl; internalBinaryWrite(message: Decl, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.api.expr.v1beta1.Decl */ export declare const Decl: Decl$Type; declare class DeclType$Type extends MessageType<DeclType> { constructor(); create(value?: PartialMessage<DeclType>): DeclType; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeclType): DeclType; internalBinaryWrite(message: DeclType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.api.expr.v1beta1.DeclType */ export declare const DeclType: DeclType$Type; declare class IdentDecl$Type extends MessageType<IdentDecl> { constructor(); create(value?: PartialMessage<IdentDecl>): IdentDecl; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: IdentDecl): IdentDecl; internalBinaryWrite(message: IdentDecl, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.api.expr.v1beta1.IdentDecl */ export declare const IdentDecl: IdentDecl$Type; declare class FunctionDecl$Type extends MessageType<FunctionDecl> { constructor(); create(value?: PartialMessage<FunctionDecl>): FunctionDecl; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FunctionDecl): FunctionDecl; internalBinaryWrite(message: FunctionDecl, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.api.expr.v1beta1.FunctionDecl */ export declare const FunctionDecl: FunctionDecl$Type; export {};