@ondewo/csi-client-nodejs
Version:
ONDEWO Communication System Integration (CSI) Client library for Nodejs
74 lines (63 loc) • 2.64 kB
TypeScript
// package: google.cloud.websecurityscanner.v1alpha
// file: google/cloud/websecurityscanner/v1alpha/scan_run.proto
/* tslint:disable */
/* eslint-disable */
import * as jspb from "google-protobuf";
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
export class ScanRun extends jspb.Message {
getName(): string;
setName(value: string): ScanRun;
getExecutionState(): ScanRun.ExecutionState;
setExecutionState(value: ScanRun.ExecutionState): ScanRun;
getResultState(): ScanRun.ResultState;
setResultState(value: ScanRun.ResultState): ScanRun;
hasStartTime(): boolean;
clearStartTime(): void;
getStartTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setStartTime(value?: google_protobuf_timestamp_pb.Timestamp): ScanRun;
hasEndTime(): boolean;
clearEndTime(): void;
getEndTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
setEndTime(value?: google_protobuf_timestamp_pb.Timestamp): ScanRun;
getUrlsCrawledCount(): number;
setUrlsCrawledCount(value: number): ScanRun;
getUrlsTestedCount(): number;
setUrlsTestedCount(value: number): ScanRun;
getHasVulnerabilities(): boolean;
setHasVulnerabilities(value: boolean): ScanRun;
getProgressPercent(): number;
setProgressPercent(value: number): ScanRun;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ScanRun.AsObject;
static toObject(includeInstance: boolean, msg: ScanRun): ScanRun.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ScanRun, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ScanRun;
static deserializeBinaryFromReader(message: ScanRun, reader: jspb.BinaryReader): ScanRun;
}
export namespace ScanRun {
export type AsObject = {
name: string,
executionState: ScanRun.ExecutionState,
resultState: ScanRun.ResultState,
startTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
endTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
urlsCrawledCount: number,
urlsTestedCount: number,
hasVulnerabilities: boolean,
progressPercent: number,
}
export enum ExecutionState {
EXECUTION_STATE_UNSPECIFIED = 0,
QUEUED = 1,
SCANNING = 2,
FINISHED = 3,
}
export enum ResultState {
RESULT_STATE_UNSPECIFIED = 0,
SUCCESS = 1,
ERROR = 2,
KILLED = 3,
}
}