import { Message, proto3, type BinaryReadOptions, type FieldList, type JsonReadOptions, type JsonValue, type PartialMessage, type PlainMessage } from '@bufbuild/protobuf'; import { Role } from './data_pb.js'; import { BindVariable, Field, QueryResult } from './query_pb.js'; import { Session as Session$1 } from './vtgate_pb.js'; import { RPCError } from './vtrpc_pb.js'; /** * @generated from message psdb.v1alpha1.User */ export declare class User extends Message { /** * @generated from field: string username = 1; */ username: string; /** * @generated from field: string psid = 2; */ psid: string; /** * @generated from field: psdb.data.v1.Role role = 3; */ role: Role; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "psdb.v1alpha1.User"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): User; static fromJson(jsonValue: JsonValue, options?: Partial): User; static fromJsonString(jsonString: string, options?: Partial): User; static equals(a: User | PlainMessage | undefined, b: User | PlainMessage | undefined): boolean; } /** * @generated from message psdb.v1alpha1.CreateSessionRequest */ export declare class CreateSessionRequest extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "psdb.v1alpha1.CreateSessionRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateSessionRequest; static fromJson(jsonValue: JsonValue, options?: Partial): CreateSessionRequest; static fromJsonString(jsonString: string, options?: Partial): CreateSessionRequest; static equals(a: CreateSessionRequest | PlainMessage | undefined, b: CreateSessionRequest | PlainMessage | undefined): boolean; } /** * @generated from message psdb.v1alpha1.CreateSessionResponse */ export declare class CreateSessionResponse extends Message { /** * @generated from field: string branch = 1; */ branch: string; /** * @generated from field: psdb.v1alpha1.User user = 2; */ user?: User; /** * @generated from field: psdb.v1alpha1.Session session = 4; */ session?: Session; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "psdb.v1alpha1.CreateSessionResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateSessionResponse; static fromJson(jsonValue: JsonValue, options?: Partial): CreateSessionResponse; static fromJsonString(jsonString: string, options?: Partial): CreateSessionResponse; static equals(a: CreateSessionResponse | PlainMessage | undefined, b: CreateSessionResponse | PlainMessage | undefined): boolean; } /** * @generated from message psdb.v1alpha1.ExecuteRequest */ export declare class ExecuteRequest extends Message { /** * @generated from field: psdb.v1alpha1.Session session = 1; */ session?: Session; /** * @generated from field: string query = 2; */ query: string; /** * @generated from field: map bind_variables = 3; */ bindVariables: { [key: string]: BindVariable; }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "psdb.v1alpha1.ExecuteRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteRequest; static fromJsonString(jsonString: string, options?: Partial): ExecuteRequest; static equals(a: ExecuteRequest | PlainMessage | undefined, b: ExecuteRequest | PlainMessage | undefined): boolean; } /** * @generated from message psdb.v1alpha1.ExecuteResponse */ export declare class ExecuteResponse extends Message { /** * @generated from field: psdb.v1alpha1.Session session = 1; */ session?: Session; /** * @generated from field: query.QueryResult result = 2; */ result?: QueryResult; /** * @generated from field: vtrpc.RPCError error = 3; */ error?: RPCError; /** * optional timing, in seconds, for the response, if empty or 0, this wasn't set * does not exist in the response from a StreamExecute. * * @generated from field: double timing = 4; */ timing: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "psdb.v1alpha1.ExecuteResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteResponse; static fromJsonString(jsonString: string, options?: Partial): ExecuteResponse; static equals(a: ExecuteResponse | PlainMessage | undefined, b: ExecuteResponse | PlainMessage | undefined): boolean; } /** * @generated from message psdb.v1alpha1.PrepareRequest */ export declare class PrepareRequest extends Message { /** * @generated from field: psdb.v1alpha1.Session session = 1; */ session?: Session; /** * @generated from field: string query = 2; */ query: string; /** * @generated from field: map bind_variables = 3; */ bindVariables: { [key: string]: BindVariable; }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "psdb.v1alpha1.PrepareRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PrepareRequest; static fromJson(jsonValue: JsonValue, options?: Partial): PrepareRequest; static fromJsonString(jsonString: string, options?: Partial): PrepareRequest; static equals(a: PrepareRequest | PlainMessage | undefined, b: PrepareRequest | PlainMessage | undefined): boolean; } /** * @generated from message psdb.v1alpha1.PrepareResponse */ export declare class PrepareResponse extends Message { /** * @generated from field: psdb.v1alpha1.Session session = 1; */ session?: Session; /** * @generated from field: repeated query.Field fields = 2; */ fields: Field[]; /** * @generated from field: vtrpc.RPCError error = 3; */ error?: RPCError; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "psdb.v1alpha1.PrepareResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PrepareResponse; static fromJson(jsonValue: JsonValue, options?: Partial): PrepareResponse; static fromJsonString(jsonString: string, options?: Partial): PrepareResponse; static equals(a: PrepareResponse | PlainMessage | undefined, b: PrepareResponse | PlainMessage | undefined): boolean; } /** * @generated from message psdb.v1alpha1.CloseSessionRequest */ export declare class CloseSessionRequest extends Message { /** * @generated from field: psdb.v1alpha1.Session session = 1; */ session?: Session; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "psdb.v1alpha1.CloseSessionRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CloseSessionRequest; static fromJson(jsonValue: JsonValue, options?: Partial): CloseSessionRequest; static fromJsonString(jsonString: string, options?: Partial): CloseSessionRequest; static equals(a: CloseSessionRequest | PlainMessage | undefined, b: CloseSessionRequest | PlainMessage | undefined): boolean; } /** * @generated from message psdb.v1alpha1.CloseSessionResponse */ export declare class CloseSessionResponse extends Message { /** * @generated from field: psdb.v1alpha1.Session session = 1; */ session?: Session; /** * @generated from field: vtrpc.RPCError error = 2; */ error?: RPCError; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "psdb.v1alpha1.CloseSessionResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CloseSessionResponse; static fromJson(jsonValue: JsonValue, options?: Partial): CloseSessionResponse; static fromJsonString(jsonString: string, options?: Partial): CloseSessionResponse; static equals(a: CloseSessionResponse | PlainMessage | undefined, b: CloseSessionResponse | PlainMessage | undefined): boolean; } /** * @generated from message psdb.v1alpha1.Session */ export declare class Session extends Message { /** * @generated from field: bytes signature = 1; */ signature: Uint8Array; /** * @generated from field: vtgate.Session vitess_session = 2; */ vitessSession?: Session$1; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "psdb.v1alpha1.Session"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Session; static fromJson(jsonValue: JsonValue, options?: Partial): Session; static fromJsonString(jsonString: string, options?: Partial): Session; static equals(a: Session | PlainMessage | undefined, b: Session | PlainMessage | undefined): boolean; }