UNPKG

@google-cloud/run

Version:
962 lines (791 loc) 1.05 MB
// 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 run. */ namespace run { /** Namespace v2. */ namespace v2 { /** Represents a Builds */ class Builds extends $protobuf.rpc.Service { /** * Constructs a new Builds 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 Builds 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): Builds; /** * Calls SubmitBuild. * @param request SubmitBuildRequest message or plain object * @param callback Node-style callback called with the error, if any, and SubmitBuildResponse */ public submitBuild(request: google.cloud.run.v2.ISubmitBuildRequest, callback: google.cloud.run.v2.Builds.SubmitBuildCallback): void; /** * Calls SubmitBuild. * @param request SubmitBuildRequest message or plain object * @returns Promise */ public submitBuild(request: google.cloud.run.v2.ISubmitBuildRequest): Promise<google.cloud.run.v2.SubmitBuildResponse>; } namespace Builds { /** * Callback as used by {@link google.cloud.run.v2.Builds|submitBuild}. * @param error Error, if any * @param [response] SubmitBuildResponse */ type SubmitBuildCallback = (error: (Error|null), response?: google.cloud.run.v2.SubmitBuildResponse) => void; } /** Properties of a SubmitBuildRequest. */ interface ISubmitBuildRequest { /** SubmitBuildRequest parent */ parent?: (string|null); /** SubmitBuildRequest storageSource */ storageSource?: (google.cloud.run.v2.IStorageSource|null); /** SubmitBuildRequest imageUri */ imageUri?: (string|null); /** SubmitBuildRequest buildpackBuild */ buildpackBuild?: (google.cloud.run.v2.SubmitBuildRequest.IBuildpacksBuild|null); /** SubmitBuildRequest dockerBuild */ dockerBuild?: (google.cloud.run.v2.SubmitBuildRequest.IDockerBuild|null); /** SubmitBuildRequest serviceAccount */ serviceAccount?: (string|null); /** SubmitBuildRequest workerPool */ workerPool?: (string|null); /** SubmitBuildRequest tags */ tags?: (string[]|null); } /** Represents a SubmitBuildRequest. */ class SubmitBuildRequest implements ISubmitBuildRequest { /** * Constructs a new SubmitBuildRequest. * @param [properties] Properties to set */ constructor(properties?: google.cloud.run.v2.ISubmitBuildRequest); /** SubmitBuildRequest parent. */ public parent: string; /** SubmitBuildRequest storageSource. */ public storageSource?: (google.cloud.run.v2.IStorageSource|null); /** SubmitBuildRequest imageUri. */ public imageUri: string; /** SubmitBuildRequest buildpackBuild. */ public buildpackBuild?: (google.cloud.run.v2.SubmitBuildRequest.IBuildpacksBuild|null); /** SubmitBuildRequest dockerBuild. */ public dockerBuild?: (google.cloud.run.v2.SubmitBuildRequest.IDockerBuild|null); /** SubmitBuildRequest serviceAccount. */ public serviceAccount: string; /** SubmitBuildRequest workerPool. */ public workerPool: string; /** SubmitBuildRequest tags. */ public tags: string[]; /** SubmitBuildRequest source. */ public source?: "storageSource"; /** SubmitBuildRequest buildType. */ public buildType?: ("buildpackBuild"|"dockerBuild"); /** * Creates a new SubmitBuildRequest instance using the specified properties. * @param [properties] Properties to set * @returns SubmitBuildRequest instance */ public static create(properties?: google.cloud.run.v2.ISubmitBuildRequest): google.cloud.run.v2.SubmitBuildRequest; /** * Encodes the specified SubmitBuildRequest message. Does not implicitly {@link google.cloud.run.v2.SubmitBuildRequest.verify|verify} messages. * @param message SubmitBuildRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.run.v2.ISubmitBuildRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SubmitBuildRequest message, length delimited. Does not implicitly {@link google.cloud.run.v2.SubmitBuildRequest.verify|verify} messages. * @param message SubmitBuildRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.run.v2.ISubmitBuildRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SubmitBuildRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SubmitBuildRequest * @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.run.v2.SubmitBuildRequest; /** * Decodes a SubmitBuildRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SubmitBuildRequest * @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.run.v2.SubmitBuildRequest; /** * Verifies a SubmitBuildRequest 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 SubmitBuildRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SubmitBuildRequest */ public static fromObject(object: { [k: string]: any }): google.cloud.run.v2.SubmitBuildRequest; /** * Creates a plain object from a SubmitBuildRequest message. Also converts values to other types if specified. * @param message SubmitBuildRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.run.v2.SubmitBuildRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SubmitBuildRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for SubmitBuildRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace SubmitBuildRequest { /** Properties of a DockerBuild. */ interface IDockerBuild { } /** Represents a DockerBuild. */ class DockerBuild implements IDockerBuild { /** * Constructs a new DockerBuild. * @param [properties] Properties to set */ constructor(properties?: google.cloud.run.v2.SubmitBuildRequest.IDockerBuild); /** * Creates a new DockerBuild instance using the specified properties. * @param [properties] Properties to set * @returns DockerBuild instance */ public static create(properties?: google.cloud.run.v2.SubmitBuildRequest.IDockerBuild): google.cloud.run.v2.SubmitBuildRequest.DockerBuild; /** * Encodes the specified DockerBuild message. Does not implicitly {@link google.cloud.run.v2.SubmitBuildRequest.DockerBuild.verify|verify} messages. * @param message DockerBuild message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.run.v2.SubmitBuildRequest.IDockerBuild, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified DockerBuild message, length delimited. Does not implicitly {@link google.cloud.run.v2.SubmitBuildRequest.DockerBuild.verify|verify} messages. * @param message DockerBuild message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.run.v2.SubmitBuildRequest.IDockerBuild, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DockerBuild message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns DockerBuild * @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.run.v2.SubmitBuildRequest.DockerBuild; /** * Decodes a DockerBuild message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns DockerBuild * @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.run.v2.SubmitBuildRequest.DockerBuild; /** * Verifies a DockerBuild 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 DockerBuild message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns DockerBuild */ public static fromObject(object: { [k: string]: any }): google.cloud.run.v2.SubmitBuildRequest.DockerBuild; /** * Creates a plain object from a DockerBuild message. Also converts values to other types if specified. * @param message DockerBuild * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.run.v2.SubmitBuildRequest.DockerBuild, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DockerBuild to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for DockerBuild * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BuildpacksBuild. */ interface IBuildpacksBuild { /** BuildpacksBuild runtime */ runtime?: (string|null); /** BuildpacksBuild functionTarget */ functionTarget?: (string|null); /** BuildpacksBuild cacheImageUri */ cacheImageUri?: (string|null); /** BuildpacksBuild baseImage */ baseImage?: (string|null); /** BuildpacksBuild environmentVariables */ environmentVariables?: ({ [k: string]: string }|null); /** BuildpacksBuild enableAutomaticUpdates */ enableAutomaticUpdates?: (boolean|null); /** BuildpacksBuild projectDescriptor */ projectDescriptor?: (string|null); } /** Represents a BuildpacksBuild. */ class BuildpacksBuild implements IBuildpacksBuild { /** * Constructs a new BuildpacksBuild. * @param [properties] Properties to set */ constructor(properties?: google.cloud.run.v2.SubmitBuildRequest.IBuildpacksBuild); /** BuildpacksBuild runtime. */ public runtime: string; /** BuildpacksBuild functionTarget. */ public functionTarget: string; /** BuildpacksBuild cacheImageUri. */ public cacheImageUri: string; /** BuildpacksBuild baseImage. */ public baseImage: string; /** BuildpacksBuild environmentVariables. */ public environmentVariables: { [k: string]: string }; /** BuildpacksBuild enableAutomaticUpdates. */ public enableAutomaticUpdates: boolean; /** BuildpacksBuild projectDescriptor. */ public projectDescriptor: string; /** * Creates a new BuildpacksBuild instance using the specified properties. * @param [properties] Properties to set * @returns BuildpacksBuild instance */ public static create(properties?: google.cloud.run.v2.SubmitBuildRequest.IBuildpacksBuild): google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild; /** * Encodes the specified BuildpacksBuild message. Does not implicitly {@link google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.verify|verify} messages. * @param message BuildpacksBuild message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.run.v2.SubmitBuildRequest.IBuildpacksBuild, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BuildpacksBuild message, length delimited. Does not implicitly {@link google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.verify|verify} messages. * @param message BuildpacksBuild message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.run.v2.SubmitBuildRequest.IBuildpacksBuild, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BuildpacksBuild message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns BuildpacksBuild * @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.run.v2.SubmitBuildRequest.BuildpacksBuild; /** * Decodes a BuildpacksBuild message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns BuildpacksBuild * @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.run.v2.SubmitBuildRequest.BuildpacksBuild; /** * Verifies a BuildpacksBuild 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 BuildpacksBuild message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns BuildpacksBuild */ public static fromObject(object: { [k: string]: any }): google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild; /** * Creates a plain object from a BuildpacksBuild message. Also converts values to other types if specified. * @param message BuildpacksBuild * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this BuildpacksBuild to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for BuildpacksBuild * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } /** Properties of a SubmitBuildResponse. */ interface ISubmitBuildResponse { /** SubmitBuildResponse buildOperation */ buildOperation?: (google.longrunning.IOperation|null); /** SubmitBuildResponse baseImageUri */ baseImageUri?: (string|null); /** SubmitBuildResponse baseImageWarning */ baseImageWarning?: (string|null); } /** Represents a SubmitBuildResponse. */ class SubmitBuildResponse implements ISubmitBuildResponse { /** * Constructs a new SubmitBuildResponse. * @param [properties] Properties to set */ constructor(properties?: google.cloud.run.v2.ISubmitBuildResponse); /** SubmitBuildResponse buildOperation. */ public buildOperation?: (google.longrunning.IOperation|null); /** SubmitBuildResponse baseImageUri. */ public baseImageUri: string; /** SubmitBuildResponse baseImageWarning. */ public baseImageWarning: string; /** * Creates a new SubmitBuildResponse instance using the specified properties. * @param [properties] Properties to set * @returns SubmitBuildResponse instance */ public static create(properties?: google.cloud.run.v2.ISubmitBuildResponse): google.cloud.run.v2.SubmitBuildResponse; /** * Encodes the specified SubmitBuildResponse message. Does not implicitly {@link google.cloud.run.v2.SubmitBuildResponse.verify|verify} messages. * @param message SubmitBuildResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.run.v2.ISubmitBuildResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SubmitBuildResponse message, length delimited. Does not implicitly {@link google.cloud.run.v2.SubmitBuildResponse.verify|verify} messages. * @param message SubmitBuildResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.run.v2.ISubmitBuildResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SubmitBuildResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SubmitBuildResponse * @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.run.v2.SubmitBuildResponse; /** * Decodes a SubmitBuildResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SubmitBuildResponse * @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.run.v2.SubmitBuildResponse; /** * Verifies a SubmitBuildResponse 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 SubmitBuildResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SubmitBuildResponse */ public static fromObject(object: { [k: string]: any }): google.cloud.run.v2.SubmitBuildResponse; /** * Creates a plain object from a SubmitBuildResponse message. Also converts values to other types if specified. * @param message SubmitBuildResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.run.v2.SubmitBuildResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SubmitBuildResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for SubmitBuildResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a StorageSource. */ interface IStorageSource { /** StorageSource bucket */ bucket?: (string|null); /** StorageSource object */ object?: (string|null); /** StorageSource generation */ generation?: (number|Long|string|null); } /** Represents a StorageSource. */ class StorageSource implements IStorageSource { /** * Constructs a new StorageSource. * @param [properties] Properties to set */ constructor(properties?: google.cloud.run.v2.IStorageSource); /** StorageSource bucket. */ public bucket: string; /** StorageSource object. */ public object: string; /** StorageSource generation. */ public generation: (number|Long|string); /** * Creates a new StorageSource instance using the specified properties. * @param [properties] Properties to set * @returns StorageSource instance */ public static create(properties?: google.cloud.run.v2.IStorageSource): google.cloud.run.v2.StorageSource; /** * Encodes the specified StorageSource message. Does not implicitly {@link google.cloud.run.v2.StorageSource.verify|verify} messages. * @param message StorageSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.run.v2.IStorageSource, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified StorageSource message, length delimited. Does not implicitly {@link google.cloud.run.v2.StorageSource.verify|verify} messages. * @param message StorageSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.run.v2.IStorageSource, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a StorageSource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns StorageSource * @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.run.v2.StorageSource; /** * Decodes a StorageSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns StorageSource * @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.run.v2.StorageSource; /** * Verifies a StorageSource 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 StorageSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns StorageSource */ public static fromObject(object: { [k: string]: any }): google.cloud.run.v2.StorageSource; /** * Creates a plain object from a StorageSource message. Also converts values to other types if specified. * @param message StorageSource * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.run.v2.StorageSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this StorageSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for StorageSource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Condition. */ interface ICondition { /** Condition type */ type?: (string|null); /** Condition state */ state?: (google.cloud.run.v2.Condition.State|keyof typeof google.cloud.run.v2.Condition.State|null); /** Condition message */ message?: (string|null); /** Condition lastTransitionTime */ lastTransitionTime?: (google.protobuf.ITimestamp|null); /** Condition severity */ severity?: (google.cloud.run.v2.Condition.Severity|keyof typeof google.cloud.run.v2.Condition.Severity|null); /** Condition reason */ reason?: (google.cloud.run.v2.Condition.CommonReason|keyof typeof google.cloud.run.v2.Condition.CommonReason|null); /** Condition revisionReason */ revisionReason?: (google.cloud.run.v2.Condition.RevisionReason|keyof typeof google.cloud.run.v2.Condition.RevisionReason|null); /** Condition executionReason */ executionReason?: (google.cloud.run.v2.Condition.ExecutionReason|keyof typeof google.cloud.run.v2.Condition.ExecutionReason|null); } /** Represents a Condition. */ class Condition implements ICondition { /** * Constructs a new Condition. * @param [properties] Properties to set */ constructor(properties?: google.cloud.run.v2.ICondition); /** Condition type. */ public type: string; /** Condition state. */ public state: (google.cloud.run.v2.Condition.State|keyof typeof google.cloud.run.v2.Condition.State); /** Condition message. */ public message: string; /** Condition lastTransitionTime. */ public lastTransitionTime?: (google.protobuf.ITimestamp|null); /** Condition severity. */ public severity: (google.cloud.run.v2.Condition.Severity|keyof typeof google.cloud.run.v2.Condition.Severity); /** Condition reason. */ public reason?: (google.cloud.run.v2.Condition.CommonReason|keyof typeof google.cloud.run.v2.Condition.CommonReason|null); /** Condition revisionReason. */ public revisionReason?: (google.cloud.run.v2.Condition.RevisionReason|keyof typeof google.cloud.run.v2.Condition.RevisionReason|null); /** Condition executionReason. */ public executionReason?: (google.cloud.run.v2.Condition.ExecutionReason|keyof typeof google.cloud.run.v2.Condition.ExecutionReason|null); /** Condition reasons. */ public reasons?: ("reason"|"revisionReason"|"executionReason"); /** * Creates a new Condition instance using the specified properties. * @param [properties] Properties to set * @returns Condition instance */ public static create(properties?: google.cloud.run.v2.ICondition): google.cloud.run.v2.Condition; /** * Encodes the specified Condition message. Does not implicitly {@link google.cloud.run.v2.Condition.verify|verify} messages. * @param message Condition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.run.v2.ICondition, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Condition message, length delimited. Does not implicitly {@link google.cloud.run.v2.Condition.verify|verify} messages. * @param message Condition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.run.v2.ICondition, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Condition message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Condition * @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.run.v2.Condition; /** * Decodes a Condition message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Condition * @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.run.v2.Condition; /** * Verifies a Condition 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 Condition message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Condition */ public static fromObject(object: { [k: string]: any }): google.cloud.run.v2.Condition; /** * Creates a plain object from a Condition message. Also converts values to other types if specified. * @param message Condition * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.run.v2.Condition, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Condition to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Condition * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace Condition { /** State enum. */ enum State { STATE_UNSPECIFIED = 0, CONDITION_PENDING = 1, CONDITION_RECONCILING = 2, CONDITION_FAILED = 3, CONDITION_SUCCEEDED = 4 } /** Severity enum. */ enum Severity { SEVERITY_UNSPECIFIED = 0, ERROR = 1, WARNING = 2, INFO = 3 } /** CommonReason enum. */ enum CommonReason { COMMON_REASON_UNDEFINED = 0, UNKNOWN = 1, REVISION_FAILED = 3, PROGRESS_DEADLINE_EXCEEDED = 4, CONTAINER_MISSING = 6, CONTAINER_PERMISSION_DENIED = 7, CONTAINER_IMAGE_UNAUTHORIZED = 8, CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED = 9, ENCRYPTION_KEY_PERMISSION_DENIED = 10, ENCRYPTION_KEY_CHECK_FAILED = 11, SECRETS_ACCESS_CHECK_FAILED = 12, WAITING_FOR_OPERATION = 13, IMMEDIATE_RETRY = 14, POSTPONED_RETRY = 15, INTERNAL = 16, VPC_NETWORK_NOT_FOUND = 17 } /** RevisionReason enum. */ enum RevisionReason { REVISION_REASON_UNDEFINED = 0, PENDING = 1, RESERVE = 2, RETIRED = 3, RETIRING = 4, RECREATING = 5, HEALTH_CHECK_CONTAINER_ERROR = 6, CUSTOMIZED_PATH_RESPONSE_PENDING = 7, MIN_INSTANCES_NOT_PROVISIONED = 8, ACTIVE_REVISION_LIMIT_REACHED = 9, NO_DEPLOYMENT = 10, HEALTH_CHECK_SKIPPED = 11, MIN_INSTANCES_WARMING = 12 } /** ExecutionReason enum. */ enum ExecutionReason { EXECUTION_REASON_UNDEFINED = 0, JOB_STATUS_SERVICE_POLLING_ERROR = 1, NON_ZERO_EXIT_CODE = 2, CANCELLED = 3, CANCELLING = 4, DELETED = 5 } } /** Represents an Executions */ class Executions extends $protobuf.rpc.Service { /** * Constructs a new Executions 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 Executions 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): Executions; /** * Calls GetExecution. * @param request GetExecutionRequest message or plain object * @param callback Node-style callback called with the error, if any, and Execution */ public getExecution(request: google.cloud.run.v2.IGetExecutionRequest, callback: google.cloud.run.v2.Executions.GetExecutionCallback): void; /** * Calls GetExecution. * @param request GetExecutionRequest message or plain object * @returns Promise */ public getExecution(request: google.cloud.run.v2.IGetExecutionRequest): Promise<google.cloud.run.v2.Execution>; /** * Calls ListExecutions. * @param request ListExecutionsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListExecutionsResponse */ public listExecutions(request: google.cloud.run.v2.IListExecutionsRequest, callback: google.cloud.run.v2.Executions.ListExecutionsCallback): void; /** * Calls ListExecutions. * @param request ListExecutionsRequest message or plain object * @returns Promise */ public listExecutions(request: google.cloud.run.v2.IListExecutionsRequest): Promise<google.cloud.run.v2.ListExecutionsResponse>; /** * Calls DeleteExecution. * @param request DeleteExecutionRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public deleteExecution(request: google.cloud.run.v2.IDeleteExecutionRequest, callback: google.cloud.run.v2.Executions.DeleteExecutionCallback): void; /** * Calls DeleteExecution. * @param request DeleteExecutionRequest message or plain object * @returns Promise */ public deleteExecution(request: google.cloud.run.v2.IDeleteExecutionRequest): Promise<google.longrunning.Operation>; /** * Calls CancelExecution. * @param request CancelExecutionRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ public cancelExecution(request: google.cloud.run.v2.ICancelExecutionRequest, callback: google.cloud.run.v2.Executions.CancelExecutionCallback): void; /** * Calls CancelExecution. * @param request CancelExecutionRequest message or plain object * @returns Promise */ public cancelExecution(request: google.cloud.run.v2.ICancelExecutionRequest): Promise<google.longrunning.Operation>; } namespace Executions { /** * Callback as used by {@link google.cloud.run.v2.Executions|getExecution}. * @param error Error, if any * @param [response] Execution */ type GetExecutionCallback = (error: (Error|null), response?: google.cloud.run.v2.Execution) => void; /** * Callback as used by {@link google.cloud.run.v2.Executions|listExecutions}. * @param error Error, if any *