UNPKG

@google-cloud/shell

Version:
923 lines (769 loc) 451 kB
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import type {protobuf as $protobuf} from "google-gax"; import Long = require("long"); /** Namespace google. */ export namespace google { /** Namespace cloud. */ namespace cloud { /** Namespace shell. */ namespace shell { /** Namespace v1. */ namespace v1 { /** Represents a CloudShellService */ class CloudShellService extends $protobuf.rpc.Service { /** * Constructs a new CloudShellService 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 CloudShellService 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): CloudShellService; /** * Calls GetEnvironment. * @param request GetEnvironmentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Environment */ public getEnvironment(request: google.cloud.shell.v1.IGetEnvironmentRequest, callback: google.cloud.shell.v1.CloudShellService.GetEnvironmentCallback): void; /** * Calls GetEnvironment. * @param request GetEnvironmentRequest message or plain object * @returns Promise */ public getEnvironment(request: google.cloud.shell.v1.IGetEnvironmentRequest): Promise<google.cloud.shell.v1.Environment>; /** * Calls StartEnvironment. * @param request StartEnvironmentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public startEnvironment(request: google.cloud.shell.v1.IStartEnvironmentRequest, callback: google.cloud.shell.v1.CloudShellService.StartEnvironmentCallback): void; /** * Calls StartEnvironment. * @param request StartEnvironmentRequest message or plain object * @returns Promise */ public startEnvironment(request: google.cloud.shell.v1.IStartEnvironmentRequest): Promise<google.longrunning.Operation>; /** * Calls AuthorizeEnvironment. * @param request AuthorizeEnvironmentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public authorizeEnvironment(request: google.cloud.shell.v1.IAuthorizeEnvironmentRequest, callback: google.cloud.shell.v1.CloudShellService.AuthorizeEnvironmentCallback): void; /** * Calls AuthorizeEnvironment. * @param request AuthorizeEnvironmentRequest message or plain object * @returns Promise */ public authorizeEnvironment(request: google.cloud.shell.v1.IAuthorizeEnvironmentRequest): Promise<google.longrunning.Operation>; /** * Calls AddPublicKey. * @param request AddPublicKeyRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public addPublicKey(request: google.cloud.shell.v1.IAddPublicKeyRequest, callback: google.cloud.shell.v1.CloudShellService.AddPublicKeyCallback): void; /** * Calls AddPublicKey. * @param request AddPublicKeyRequest message or plain object * @returns Promise */ public addPublicKey(request: google.cloud.shell.v1.IAddPublicKeyRequest): Promise<google.longrunning.Operation>; /** * Calls RemovePublicKey. * @param request RemovePublicKeyRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public removePublicKey(request: google.cloud.shell.v1.IRemovePublicKeyRequest, callback: google.cloud.shell.v1.CloudShellService.RemovePublicKeyCallback): void; /** * Calls RemovePublicKey. * @param request RemovePublicKeyRequest message or plain object * @returns Promise */ public removePublicKey(request: google.cloud.shell.v1.IRemovePublicKeyRequest): Promise<google.longrunning.Operation>; } namespace CloudShellService { /** * Callback as used by {@link google.cloud.shell.v1.CloudShellService|getEnvironment}. * @param error Error, if any * @param [response] Environment */ type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.shell.v1.Environment) => void; /** * Callback as used by {@link google.cloud.shell.v1.CloudShellService|startEnvironment}. * @param error Error, if any * @param [response] Operation */ type StartEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.shell.v1.CloudShellService|authorizeEnvironment}. * @param error Error, if any * @param [response] Operation */ type AuthorizeEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.shell.v1.CloudShellService|addPublicKey}. * @param error Error, if any * @param [response] Operation */ type AddPublicKeyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** * Callback as used by {@link google.cloud.shell.v1.CloudShellService|removePublicKey}. * @param error Error, if any * @param [response] Operation */ type RemovePublicKeyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } /** Properties of an Environment. */ interface IEnvironment { /** Environment name */ name?: (string|null); /** Environment id */ id?: (string|null); /** Environment dockerImage */ dockerImage?: (string|null); /** Environment state */ state?: (google.cloud.shell.v1.Environment.State|keyof typeof google.cloud.shell.v1.Environment.State|null); /** Environment webHost */ webHost?: (string|null); /** Environment sshUsername */ sshUsername?: (string|null); /** Environment sshHost */ sshHost?: (string|null); /** Environment sshPort */ sshPort?: (number|null); /** Environment publicKeys */ publicKeys?: (string[]|null); } /** Represents an Environment. */ class Environment implements IEnvironment { /** * Constructs a new Environment. * @param [properties] Properties to set */ constructor(properties?: google.cloud.shell.v1.IEnvironment); /** Environment name. */ public name: string; /** Environment id. */ public id: string; /** Environment dockerImage. */ public dockerImage: string; /** Environment state. */ public state: (google.cloud.shell.v1.Environment.State|keyof typeof google.cloud.shell.v1.Environment.State); /** Environment webHost. */ public webHost: string; /** Environment sshUsername. */ public sshUsername: string; /** Environment sshHost. */ public sshHost: string; /** Environment sshPort. */ public sshPort: number; /** Environment publicKeys. */ public publicKeys: string[]; /** * Creates a new Environment instance using the specified properties. * @param [properties] Properties to set * @returns Environment instance */ public static create(properties?: google.cloud.shell.v1.IEnvironment): google.cloud.shell.v1.Environment; /** * Encodes the specified Environment message. Does not implicitly {@link google.cloud.shell.v1.Environment.verify|verify} messages. * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.shell.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.shell.v1.Environment.verify|verify} messages. * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.shell.v1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Environment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Environment * @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): google.cloud.shell.v1.Environment; /** * Decodes an Environment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Environment * @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)): google.cloud.shell.v1.Environment; /** * Verifies an Environment 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 Environment message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Environment */ public static fromObject(object: { [k: string]: any }): google.cloud.shell.v1.Environment; /** * Creates a plain object from an Environment message. Also converts values to other types if specified. * @param message Environment * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.shell.v1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Environment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Environment * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace Environment { /** State enum. */ enum State { STATE_UNSPECIFIED = 0, SUSPENDED = 1, PENDING = 2, RUNNING = 3, DELETING = 4 } } /** Properties of a GetEnvironmentRequest. */ interface IGetEnvironmentRequest { /** GetEnvironmentRequest name */ name?: (string|null); } /** Represents a GetEnvironmentRequest. */ class GetEnvironmentRequest implements IGetEnvironmentRequest { /** * Constructs a new GetEnvironmentRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.shell.v1.IGetEnvironmentRequest); /** GetEnvironmentRequest name. */ public name: string; /** * Creates a new GetEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetEnvironmentRequest instance */ public static create(properties?: google.cloud.shell.v1.IGetEnvironmentRequest): google.cloud.shell.v1.GetEnvironmentRequest; /** * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.shell.v1.GetEnvironmentRequest.verify|verify} messages. * @param message GetEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.shell.v1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.shell.v1.GetEnvironmentRequest.verify|verify} messages. * @param message GetEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.shell.v1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetEnvironmentRequest * @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): google.cloud.shell.v1.GetEnvironmentRequest; /** * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GetEnvironmentRequest * @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)): google.cloud.shell.v1.GetEnvironmentRequest; /** * Verifies a GetEnvironmentRequest 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 GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GetEnvironmentRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.shell.v1.GetEnvironmentRequest; /** * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. * @param message GetEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.shell.v1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for GetEnvironmentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateEnvironmentMetadata. */ interface ICreateEnvironmentMetadata { } /** Represents a CreateEnvironmentMetadata. */ class CreateEnvironmentMetadata implements ICreateEnvironmentMetadata { /** * Constructs a new CreateEnvironmentMetadata. * @param [properties] Properties to set */ constructor(properties?: google.cloud.shell.v1.ICreateEnvironmentMetadata); /** * Creates a new CreateEnvironmentMetadata instance using the specified properties. * @param [properties] Properties to set * @returns CreateEnvironmentMetadata instance */ public static create(properties?: google.cloud.shell.v1.ICreateEnvironmentMetadata): google.cloud.shell.v1.CreateEnvironmentMetadata; /** * Encodes the specified CreateEnvironmentMetadata message. Does not implicitly {@link google.cloud.shell.v1.CreateEnvironmentMetadata.verify|verify} messages. * @param message CreateEnvironmentMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.shell.v1.ICreateEnvironmentMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CreateEnvironmentMetadata message, length delimited. Does not implicitly {@link google.cloud.shell.v1.CreateEnvironmentMetadata.verify|verify} messages. * @param message CreateEnvironmentMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.shell.v1.ICreateEnvironmentMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateEnvironmentMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns CreateEnvironmentMetadata * @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): google.cloud.shell.v1.CreateEnvironmentMetadata; /** * Decodes a CreateEnvironmentMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns CreateEnvironmentMetadata * @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)): google.cloud.shell.v1.CreateEnvironmentMetadata; /** * Verifies a CreateEnvironmentMetadata 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 CreateEnvironmentMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns CreateEnvironmentMetadata */ public static fromObject(object: { [k: string]: any }): google.cloud.shell.v1.CreateEnvironmentMetadata; /** * Creates a plain object from a CreateEnvironmentMetadata message. Also converts values to other types if specified. * @param message CreateEnvironmentMetadata * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.shell.v1.CreateEnvironmentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateEnvironmentMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for CreateEnvironmentMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteEnvironmentMetadata. */ interface IDeleteEnvironmentMetadata { } /** Represents a DeleteEnvironmentMetadata. */ class DeleteEnvironmentMetadata implements IDeleteEnvironmentMetadata { /** * Constructs a new DeleteEnvironmentMetadata. * @param [properties] Properties to set */ constructor(properties?: google.cloud.shell.v1.IDeleteEnvironmentMetadata); /** * Creates a new DeleteEnvironmentMetadata instance using the specified properties. * @param [properties] Properties to set * @returns DeleteEnvironmentMetadata instance */ public static create(properties?: google.cloud.shell.v1.IDeleteEnvironmentMetadata): google.cloud.shell.v1.DeleteEnvironmentMetadata; /** * Encodes the specified DeleteEnvironmentMetadata message. Does not implicitly {@link google.cloud.shell.v1.DeleteEnvironmentMetadata.verify|verify} messages. * @param message DeleteEnvironmentMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.shell.v1.IDeleteEnvironmentMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified DeleteEnvironmentMetadata message, length delimited. Does not implicitly {@link google.cloud.shell.v1.DeleteEnvironmentMetadata.verify|verify} messages. * @param message DeleteEnvironmentMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.shell.v1.IDeleteEnvironmentMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeleteEnvironmentMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns DeleteEnvironmentMetadata * @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): google.cloud.shell.v1.DeleteEnvironmentMetadata; /** * Decodes a DeleteEnvironmentMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns DeleteEnvironmentMetadata * @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)): google.cloud.shell.v1.DeleteEnvironmentMetadata; /** * Verifies a DeleteEnvironmentMetadata 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 DeleteEnvironmentMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns DeleteEnvironmentMetadata */ public static fromObject(object: { [k: string]: any }): google.cloud.shell.v1.DeleteEnvironmentMetadata; /** * Creates a plain object from a DeleteEnvironmentMetadata message. Also converts values to other types if specified. * @param message DeleteEnvironmentMetadata * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.shell.v1.DeleteEnvironmentMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeleteEnvironmentMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for DeleteEnvironmentMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a StartEnvironmentRequest. */ interface IStartEnvironmentRequest { /** StartEnvironmentRequest name */ name?: (string|null); /** StartEnvironmentRequest accessToken */ accessToken?: (string|null); /** StartEnvironmentRequest publicKeys */ publicKeys?: (string[]|null); } /** Represents a StartEnvironmentRequest. */ class StartEnvironmentRequest implements IStartEnvironmentRequest { /** * Constructs a new StartEnvironmentRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.shell.v1.IStartEnvironmentRequest); /** StartEnvironmentRequest name. */ public name: string; /** StartEnvironmentRequest accessToken. */ public accessToken: string; /** StartEnvironmentRequest publicKeys. */ public publicKeys: string[]; /** * Creates a new StartEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set * @returns StartEnvironmentRequest instance */ public static create(properties?: google.cloud.shell.v1.IStartEnvironmentRequest): google.cloud.shell.v1.StartEnvironmentRequest; /** * Encodes the specified StartEnvironmentRequest message. Does not implicitly {@link google.cloud.shell.v1.StartEnvironmentRequest.verify|verify} messages. * @param message StartEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.shell.v1.IStartEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified StartEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.shell.v1.StartEnvironmentRequest.verify|verify} messages. * @param message StartEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.shell.v1.IStartEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a StartEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns StartEnvironmentRequest * @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): google.cloud.shell.v1.StartEnvironmentRequest; /** * Decodes a StartEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns StartEnvironmentRequest * @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)): google.cloud.shell.v1.StartEnvironmentRequest; /** * Verifies a StartEnvironmentRequest 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 StartEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns StartEnvironmentRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.shell.v1.StartEnvironmentRequest; /** * Creates a plain object from a StartEnvironmentRequest message. Also converts values to other types if specified. * @param message StartEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.shell.v1.StartEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this StartEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for StartEnvironmentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AuthorizeEnvironmentRequest. */ interface IAuthorizeEnvironmentRequest { /** AuthorizeEnvironmentRequest name */ name?: (string|null); /** AuthorizeEnvironmentRequest accessToken */ accessToken?: (string|null); /** AuthorizeEnvironmentRequest idToken */ idToken?: (string|null); /** AuthorizeEnvironmentRequest expireTime */ expireTime?: (google.protobuf.ITimestamp|null); } /** Represents an AuthorizeEnvironmentRequest. */ class AuthorizeEnvironmentRequest implements IAuthorizeEnvironmentRequest { /** * Constructs a new AuthorizeEnvironmentRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.shell.v1.IAuthorizeEnvironmentRequest); /** AuthorizeEnvironmentRequest name. */ public name: string; /** AuthorizeEnvironmentRequest accessToken. */ public accessToken: string; /** AuthorizeEnvironmentRequest idToken. */ public idToken: string; /** AuthorizeEnvironmentRequest expireTime. */ public expireTime?: (google.protobuf.ITimestamp|null); /** * Creates a new AuthorizeEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set * @returns AuthorizeEnvironmentRequest instance */ public static create(properties?: google.cloud.shell.v1.IAuthorizeEnvironmentRequest): google.cloud.shell.v1.AuthorizeEnvironmentRequest; /** * Encodes the specified AuthorizeEnvironmentRequest message. Does not implicitly {@link google.cloud.shell.v1.AuthorizeEnvironmentRequest.verify|verify} messages. * @param message AuthorizeEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.shell.v1.IAuthorizeEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AuthorizeEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.shell.v1.AuthorizeEnvironmentRequest.verify|verify} messages. * @param message AuthorizeEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.shell.v1.IAuthorizeEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AuthorizeEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AuthorizeEnvironmentRequest * @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): google.cloud.shell.v1.AuthorizeEnvironmentRequest; /** * Decodes an AuthorizeEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AuthorizeEnvironmentRequest * @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)): google.cloud.shell.v1.AuthorizeEnvironmentRequest; /** * Verifies an AuthorizeEnvironmentRequest 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 AuthorizeEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AuthorizeEnvironmentRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.shell.v1.AuthorizeEnvironmentRequest; /** * Creates a plain object from an AuthorizeEnvironmentRequest message. Also converts values to other types if specified. * @param message AuthorizeEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.shell.v1.AuthorizeEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AuthorizeEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AuthorizeEnvironmentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AuthorizeEnvironmentResponse. */ interface IAuthorizeEnvironmentResponse { } /** Represents an AuthorizeEnvironmentResponse. */ class AuthorizeEnvironmentResponse implements IAuthorizeEnvironmentResponse { /** * Constructs a new AuthorizeEnvironmentResponse. * @param [properties] Properties to set */ constructor(properties?: google.cloud.shell.v1.IAuthorizeEnvironmentResponse); /** * Creates a new AuthorizeEnvironmentResponse instance using the specified properties. * @param [properties] Properties to set * @returns AuthorizeEnvironmentResponse instance */ public static create(properties?: google.cloud.shell.v1.IAuthorizeEnvironmentResponse): google.cloud.shell.v1.AuthorizeEnvironmentResponse; /** * Encodes the specified AuthorizeEnvironmentResponse message. Does not implicitly {@link google.cloud.shell.v1.AuthorizeEnvironmentResponse.verify|verify} messages. * @param message AuthorizeEnvironmentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.shell.v1.IAuthorizeEnvironmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AuthorizeEnvironmentResponse message, length delimited. Does not implicitly {@link google.cloud.shell.v1.AuthorizeEnvironmentResponse.verify|verify} messages. * @param message AuthorizeEnvironmentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.shell.v1.IAuthorizeEnvironmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AuthorizeEnvironmentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AuthorizeEnvironmentResponse * @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): google.cloud.shell.v1.AuthorizeEnvironmentResponse; /** * Decodes an AuthorizeEnvironmentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AuthorizeEnvironmentResponse * @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)): google.cloud.shell.v1.AuthorizeEnvironmentResponse; /** * Verifies an AuthorizeEnvironmentResponse 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 AuthorizeEnvironmentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AuthorizeEnvironmentResponse */ public static fromObject(object: { [k: string]: any }): google.cloud.shell.v1.AuthorizeEnvironmentResponse; /** * Creates a plain object from an AuthorizeEnvironmentResponse message. Also converts values to other types if specified. * @param message AuthorizeEnvironmentResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.shell.v1.AuthorizeEnvironmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AuthorizeEnvironmentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for AuthorizeEnvironmentResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AuthorizeEnvironmentMetadata. */ interface IAuthorizeEnvironmentMetadata { } /** Represents an AuthorizeEnvironmentMetadata. */ class AuthorizeEnvironmentMetadata implements IAuthorizeEnvironmentMetadata { /** * Constructs a new AuthorizeEnvironmentMetadata. * @param [properties] Properties to set */ constructor(properties?: google.cloud.shell.v1.IAuthorizeEnvironmentMetadata); /** * Creates a new Autho