UNPKG

ydb-sdk-proto

Version:
1,079 lines (898 loc) 2.51 MB
import * as $protobuf from "protobufjs"; /** Namespace Ydb. */ export namespace Ydb { /** Namespace Auth. */ namespace Auth { /** Namespace V1. */ namespace V1 { /** Represents an AuthService */ class AuthService extends $protobuf.rpc.Service { /** * Constructs a new AuthService service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited */ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** * Creates new AuthService service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AuthService; /** * Calls Login. * @param request LoginRequest message or plain object * @param callback Node-style callback called with the error, if any, and LoginResponse */ public login(request: Ydb.Auth.ILoginRequest, callback: Ydb.Auth.V1.AuthService.LoginCallback): void; /** * Calls Login. * @param request LoginRequest message or plain object * @returns Promise */ public login(request: Ydb.Auth.ILoginRequest): Promise<Ydb.Auth.LoginResponse>; } namespace AuthService { /** * Callback as used by {@link Ydb.Auth.V1.AuthService#login}. * @param error Error, if any * @param [response] LoginResponse */ type LoginCallback = (error: (Error|null), response?: Ydb.Auth.LoginResponse) => void; } } /** Properties of a LoginRequest. */ interface ILoginRequest { /** LoginRequest operationParams */ operationParams?: (Ydb.Operations.IOperationParams|null); /** LoginRequest user */ user?: (string|null); /** LoginRequest password */ password?: (string|null); } /** Represents a LoginRequest. */ class LoginRequest implements ILoginRequest { /** * Constructs a new LoginRequest. * @param [properties] Properties to set */ constructor(properties?: Ydb.Auth.ILoginRequest); /** LoginRequest operationParams. */ public operationParams?: (Ydb.Operations.IOperationParams|null); /** LoginRequest user. */ public user: string; /** LoginRequest password. */ public password: string; /** * Creates a new LoginRequest instance using the specified properties. * @param [properties] Properties to set * @returns LoginRequest instance */ public static create(properties?: Ydb.Auth.ILoginRequest): Ydb.Auth.LoginRequest; /** * Encodes the specified LoginRequest message. Does not implicitly {@link Ydb.Auth.LoginRequest.verify|verify} messages. * @param message LoginRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Auth.ILoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified LoginRequest message, length delimited. Does not implicitly {@link Ydb.Auth.LoginRequest.verify|verify} messages. * @param message LoginRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Auth.ILoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LoginRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns LoginRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ydb.Auth.LoginRequest; /** * Decodes a LoginRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns LoginRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ydb.Auth.LoginRequest; /** * Verifies a LoginRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a LoginRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns LoginRequest */ public static fromObject(object: { [k: string]: any }): Ydb.Auth.LoginRequest; /** * Creates a plain object from a LoginRequest message. Also converts values to other types if specified. * @param message LoginRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: Ydb.Auth.LoginRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this LoginRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a LoginResponse. */ interface ILoginResponse { /** LoginResponse operation */ operation?: (Ydb.Operations.IOperation|null); } /** Represents a LoginResponse. */ class LoginResponse implements ILoginResponse { /** * Constructs a new LoginResponse. * @param [properties] Properties to set */ constructor(properties?: Ydb.Auth.ILoginResponse); /** LoginResponse operation. */ public operation?: (Ydb.Operations.IOperation|null); /** * Creates a new LoginResponse instance using the specified properties. * @param [properties] Properties to set * @returns LoginResponse instance */ public static create(properties?: Ydb.Auth.ILoginResponse): Ydb.Auth.LoginResponse; /** * Encodes the specified LoginResponse message. Does not implicitly {@link Ydb.Auth.LoginResponse.verify|verify} messages. * @param message LoginResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Auth.ILoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified LoginResponse message, length delimited. Does not implicitly {@link Ydb.Auth.LoginResponse.verify|verify} messages. * @param message LoginResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Auth.ILoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LoginResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns LoginResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ydb.Auth.LoginResponse; /** * Decodes a LoginResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns LoginResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ydb.Auth.LoginResponse; /** * Verifies a LoginResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a LoginResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns LoginResponse */ public static fromObject(object: { [k: string]: any }): Ydb.Auth.LoginResponse; /** * Creates a plain object from a LoginResponse message. Also converts values to other types if specified. * @param message LoginResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: Ydb.Auth.LoginResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this LoginResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a LoginResult. */ interface ILoginResult { /** LoginResult token */ token?: (string|null); } /** Represents a LoginResult. */ class LoginResult implements ILoginResult { /** * Constructs a new LoginResult. * @param [properties] Properties to set */ constructor(properties?: Ydb.Auth.ILoginResult); /** LoginResult token. */ public token: string; /** * Creates a new LoginResult instance using the specified properties. * @param [properties] Properties to set * @returns LoginResult instance */ public static create(properties?: Ydb.Auth.ILoginResult): Ydb.Auth.LoginResult; /** * Encodes the specified LoginResult message. Does not implicitly {@link Ydb.Auth.LoginResult.verify|verify} messages. * @param message LoginResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Auth.ILoginResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified LoginResult message, length delimited. Does not implicitly {@link Ydb.Auth.LoginResult.verify|verify} messages. * @param message LoginResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Auth.ILoginResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LoginResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns LoginResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ydb.Auth.LoginResult; /** * Decodes a LoginResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns LoginResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ydb.Auth.LoginResult; /** * Verifies a LoginResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a LoginResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns LoginResult */ public static fromObject(object: { [k: string]: any }): Ydb.Auth.LoginResult; /** * Creates a plain object from a LoginResult message. Also converts values to other types if specified. * @param message LoginResult * @param [options] Conversion options * @returns Plain object */ public static toObject(message: Ydb.Auth.LoginResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this LoginResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } /** Namespace Operations. */ namespace Operations { /** Properties of an OperationParams. */ interface IOperationParams { /** OperationParams operationMode */ operationMode?: (Ydb.Operations.OperationParams.OperationMode|null); /** OperationParams operationTimeout */ operationTimeout?: (google.protobuf.IDuration|null); /** OperationParams cancelAfter */ cancelAfter?: (google.protobuf.IDuration|null); /** OperationParams labels */ labels?: ({ [k: string]: string }|null); /** OperationParams reportCostInfo */ reportCostInfo?: (Ydb.FeatureFlag.Status|null); } /** Represents an OperationParams. */ class OperationParams implements IOperationParams { /** * Constructs a new OperationParams. * @param [properties] Properties to set */ constructor(properties?: Ydb.Operations.IOperationParams); /** OperationParams operationMode. */ public operationMode: Ydb.Operations.OperationParams.OperationMode; /** OperationParams operationTimeout. */ public operationTimeout?: (google.protobuf.IDuration|null); /** OperationParams cancelAfter. */ public cancelAfter?: (google.protobuf.IDuration|null); /** OperationParams labels. */ public labels: { [k: string]: string }; /** OperationParams reportCostInfo. */ public reportCostInfo: Ydb.FeatureFlag.Status; /** * Creates a new OperationParams instance using the specified properties. * @param [properties] Properties to set * @returns OperationParams instance */ public static create(properties?: Ydb.Operations.IOperationParams): Ydb.Operations.OperationParams; /** * Encodes the specified OperationParams message. Does not implicitly {@link Ydb.Operations.OperationParams.verify|verify} messages. * @param message OperationParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Operations.IOperationParams, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified OperationParams message, length delimited. Does not implicitly {@link Ydb.Operations.OperationParams.verify|verify} messages. * @param message OperationParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Operations.IOperationParams, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an OperationParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns OperationParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ydb.Operations.OperationParams; /** * Decodes an OperationParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns OperationParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ydb.Operations.OperationParams; /** * Verifies an OperationParams message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an OperationParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns OperationParams */ public static fromObject(object: { [k: string]: any }): Ydb.Operations.OperationParams; /** * Creates a plain object from an OperationParams message. Also converts values to other types if specified. * @param message OperationParams * @param [options] Conversion options * @returns Plain object */ public static toObject(message: Ydb.Operations.OperationParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this OperationParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace OperationParams { /** OperationMode enum. */ enum OperationMode { OPERATION_MODE_UNSPECIFIED = 0, SYNC = 1, ASYNC = 2 } } /** Properties of a GetOperationRequest. */ interface IGetOperationRequest { /** GetOperationRequest id */ id?: (string|null); } /** Represents a GetOperationRequest. */ class GetOperationRequest implements IGetOperationRequest { /** * Constructs a new GetOperationRequest. * @param [properties] Properties to set */ constructor(properties?: Ydb.Operations.IGetOperationRequest); /** GetOperationRequest id. */ public id: string; /** * Creates a new GetOperationRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetOperationRequest instance */ public static create(properties?: Ydb.Operations.IGetOperationRequest): Ydb.Operations.GetOperationRequest; /** * Encodes the specified GetOperationRequest message. Does not implicitly {@link Ydb.Operations.GetOperationRequest.verify|verify} messages. * @param message GetOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Operations.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link Ydb.Operations.GetOperationRequest.verify|verify} messages. * @param message GetOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Operations.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetOperationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ydb.Operations.GetOperationRequest; /** * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GetOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ydb.Operations.GetOperationRequest; /** * Verifies a GetOperationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GetOperationRequest */ public static fromObject(object: { [k: string]: any }): Ydb.Operations.GetOperationRequest; /** * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. * @param message GetOperationRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: Ydb.Operations.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetOperationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a GetOperationResponse. */ interface IGetOperationResponse { /** GetOperationResponse operation */ operation?: (Ydb.Operations.IOperation|null); } /** Represents a GetOperationResponse. */ class GetOperationResponse implements IGetOperationResponse { /** * Constructs a new GetOperationResponse. * @param [properties] Properties to set */ constructor(properties?: Ydb.Operations.IGetOperationResponse); /** GetOperationResponse operation. */ public operation?: (Ydb.Operations.IOperation|null); /** * Creates a new GetOperationResponse instance using the specified properties. * @param [properties] Properties to set * @returns GetOperationResponse instance */ public static create(properties?: Ydb.Operations.IGetOperationResponse): Ydb.Operations.GetOperationResponse; /** * Encodes the specified GetOperationResponse message. Does not implicitly {@link Ydb.Operations.GetOperationResponse.verify|verify} messages. * @param message GetOperationResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Operations.IGetOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetOperationResponse message, length delimited. Does not implicitly {@link Ydb.Operations.GetOperationResponse.verify|verify} messages. * @param message GetOperationResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Operations.IGetOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetOperationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetOperationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ydb.Operations.GetOperationResponse; /** * Decodes a GetOperationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GetOperationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ydb.Operations.GetOperationResponse; /** * Verifies a GetOperationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a GetOperationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GetOperationResponse */ public static fromObject(object: { [k: string]: any }): Ydb.Operations.GetOperationResponse; /** * Creates a plain object from a GetOperationResponse message. Also converts values to other types if specified. * @param message GetOperationResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: Ydb.Operations.GetOperationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetOperationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a CancelOperationRequest. */ interface ICancelOperationRequest { /** CancelOperationRequest id */ id?: (string|null); } /** Represents a CancelOperationRequest. */ class CancelOperationRequest implements ICancelOperationRequest { /** * Constructs a new CancelOperationRequest. * @param [properties] Properties to set */ constructor(properties?: Ydb.Operations.ICancelOperationRequest); /** CancelOperationRequest id. */ public id: string; /** * Creates a new CancelOperationRequest instance using the specified properties. * @param [properties] Properties to set * @returns CancelOperationRequest instance */ public static create(properties?: Ydb.Operations.ICancelOperationRequest): Ydb.Operations.CancelOperationRequest; /** * Encodes the specified CancelOperationRequest message. Does not implicitly {@link Ydb.Operations.CancelOperationRequest.verify|verify} messages. * @param message CancelOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Operations.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link Ydb.Operations.CancelOperationRequest.verify|verify} messages. * @param message CancelOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Operations.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CancelOperationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CancelOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ydb.Operations.CancelOperationRequest; /** * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CancelOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ydb.Operations.CancelOperationRequest; /** * Verifies a CancelOperationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CancelOperationRequest */ public static fromObject(object: { [k: string]: any }): Ydb.Operations.CancelOperationRequest; /** * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. * @param message CancelOperationRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: Ydb.Operations.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CancelOperationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a CancelOperationResponse. */ interface ICancelOperationResponse { /** CancelOperationResponse status */ status?: (Ydb.StatusIds.StatusCode|null); /** CancelOperationResponse issues */ issues?: (Ydb.Issue.IIssueMessage[]|null); } /** Represents a CancelOperationResponse. */ class CancelOperationResponse implements ICancelOperationResponse { /** * Constructs a new CancelOperationResponse. * @param [properties] Properties to set */ constructor(properties?: Ydb.Operations.ICancelOperationResponse); /** CancelOperationResponse status. */ public status: Ydb.StatusIds.StatusCode; /** CancelOperationResponse issues. */ public issues: Ydb.Issue.IIssueMessage[]; /** * Creates a new CancelOperationResponse instance using the specified properties. * @param [properties] Properties to set * @returns CancelOperationResponse instance */ public static create(properties?: Ydb.Operations.ICancelOperationResponse): Ydb.Operations.CancelOperationResponse; /** * Encodes the specified CancelOperationResponse message. Does not implicitly {@link Ydb.Operations.CancelOperationResponse.verify|verify} messages. * @param message CancelOperationResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Operations.ICancelOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CancelOperationResponse message, length delimited. Does not implicitly {@link Ydb.Operations.CancelOperationResponse.verify|verify} messages. * @param message CancelOperationResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Operations.ICancelOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CancelOperationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CancelOperationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ydb.Operations.CancelOperationResponse; /** * Decodes a CancelOperationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CancelOperationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ydb.Operations.CancelOperationResponse; /** * Verifies a CancelOperationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a CancelOperationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CancelOperationResponse */ public static fromObject(object: { [k: string]: any }): Ydb.Operations.CancelOperationResponse; /** * Creates a plain object from a CancelOperationResponse message. Also converts values to other types if specified. * @param message CancelOperationResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: Ydb.Operations.CancelOperationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CancelOperationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a ForgetOperationRequest. */ interface IForgetOperationRequest { /** ForgetOperationRequest id */ id?: (string|null); } /** Represents a ForgetOperationRequest. */ class ForgetOperationRequest implements IForgetOperationRequest { /** * Constructs a new ForgetOperationRequest. * @param [properties] Properties to set */ constructor(properties?: Ydb.Operations.IForgetOperationRequest); /** ForgetOperationRequest id. */ public id: string; /** * Creates a new ForgetOperationRequest instance using the specified properties. * @param [properties] Properties to set * @returns ForgetOperationRequest instance */ public static create(properties?: Ydb.Operations.IForgetOperationRequest): Ydb.Operations.ForgetOperationRequest; /** * Encodes the specified ForgetOperationRequest message. Does not implicitly {@link Ydb.Operations.ForgetOperationRequest.verify|verify} messages. * @param message ForgetOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Operations.IForgetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ForgetOperationRequest message, length delimited. Does not implicitly {@link Ydb.Operations.ForgetOperationRequest.verify|verify} messages. * @param message ForgetOperationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Operations.IForgetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ForgetOperationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ForgetOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ydb.Operations.ForgetOperationRequest; /** * Decodes a ForgetOperationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ForgetOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ydb.Operations.ForgetOperationRequest; /** * Verifies a ForgetOperationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ForgetOperationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ForgetOperationRequest */ public static fromObject(object: { [k: string]: any }): Ydb.Operations.ForgetOperationRequest; /** * Creates a plain object from a ForgetOperationRequest message. Also converts values to other types if specified. * @param message ForgetOperationRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: Ydb.Operations.ForgetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ForgetOperationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a ForgetOperationResponse. */ interface IForgetOperationResponse { /** ForgetOperationResponse status */ status?: (Ydb.StatusIds.StatusCode|null); /** ForgetOperationResponse issues */ issues?: (Ydb.Issue.IIssueMessage[]|null); } /** Represents a ForgetOperationResponse. */ class ForgetOperationResponse implements IForgetOperationResponse { /** * Constructs a new ForgetOperationResponse. * @param [properties] Properties to set */ constructor(properties?: Ydb.Operations.IForgetOperationResponse); /** ForgetOperationResponse status. */ public status: Ydb.StatusIds.StatusCode; /** ForgetOperationResponse issues. */ public issues: Ydb.Issue.IIssueMessage[]; /** * Creates a new ForgetOperationResponse instance using the specified properties. * @param [properties] Properties to set * @returns ForgetOperationResponse instance */ public static create(properties?: Ydb.Operations.IForgetOperationResponse): Ydb.Operations.ForgetOperationResponse; /** * Encodes the specified ForgetOperationResponse message. Does not implicitly {@link Ydb.Operations.ForgetOperationResponse.verify|verify} messages. * @param message ForgetOperationResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Operations.IForgetOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ForgetOperationResponse message, length delimited. Does not implicitly {@link Ydb.Operations.ForgetOperationResponse.verify|verify} messages. * @param message ForgetOperationResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Operations.IForgetOperationResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ForgetOperationResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ForgetOperationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Ydb.Operations.ForgetOperationResponse; /** * Decodes a ForgetOperationResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ForgetOperationResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Ydb.Operations.ForgetOperationResponse; /** * Verifies a ForgetOperationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ForgetOperationResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ForgetOperationResponse */ public static fromObject(object: { [k: string]: any }): Ydb.Operations.ForgetOperationResponse; /** * Creates a plain object from a ForgetOperationResponse message. Also converts values to other types if specified. * @param message ForgetOperationResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: Ydb.Operations.ForgetOperationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ForgetOperationResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a ListOperationsRequest. */ interface IListOperationsRequest { /** ListOperationsRequest kind */ kind?: (string|null); /** ListOperationsRequest pageSize */ pageSize?: (number|Long|null); /** ListOperationsRequest pageToken */ pageToken?: (string|null); } /** Represents a ListOperationsRequest. */ class ListOperationsRequest implements IListOperationsRequest { /** * Constructs a new ListOperationsRequest. * @param [properties] Properties to set */ constructor(properties?: Ydb.Operations.IListOperationsRequest); /** ListOperationsRequest kind. */ public kind: string; /** ListOperationsRequest pageSize. */ public pageSize: (number|Long); /** ListOperationsRequest pageToken. */ public pageToken: string; /** * Creates a new ListOperationsRequest instance using the specified properties. * @param [properties] Properties to set * @returns ListOperationsRequest instance */ public static create(properties?: Ydb.Operations.IListOperationsRequest): Ydb.Operations.ListOperationsRequest; /** * Encodes the specified ListOperationsRequest message. Does not implicitly {@link Ydb.Operations.ListOperationsRequest.verify|verify} messages. * @param message ListOperationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: Ydb.Operations.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link Ydb.Operations.ListOperationsRequest.verify|verify} messages. * @param message ListOperationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: Ydb.Operations.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListOperationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.ut