# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/websecurityscanner_v1alpha/proto/scan_run.proto

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='google/cloud/websecurityscanner_v1alpha/proto/scan_run.proto',
  package='google.cloud.websecurityscanner.v1alpha',
  syntax='proto3',
  serialized_pb=_b('\n<google/cloud/websecurityscanner_v1alpha/proto/scan_run.proto\x12\'google.cloud.websecurityscanner.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbd\x04\n\x07ScanRun\x12\x0c\n\x04name\x18\x01 \x01(\t\x12X\n\x0f\x65xecution_state\x18\x02 \x01(\x0e\x32?.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState\x12R\n\x0cresult_state\x18\x03 \x01(\x0e\x32<.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12urls_crawled_count\x18\x06 \x01(\x03\x12\x19\n\x11urls_tested_count\x18\x07 \x01(\x03\x12\x1b\n\x13has_vulnerabilities\x18\x08 \x01(\x08\x12\x18\n\x10progress_percent\x18\t \x01(\x05\"Y\n\x0e\x45xecutionState\x12\x1f\n\x1b\x45XECUTION_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0c\n\x08SCANNING\x10\x02\x12\x0c\n\x08\x46INISHED\x10\x03\"O\n\x0bResultState\x12\x1c\n\x18RESULT_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\n\n\x06KILLED\x10\x03\x42\x98\x01\n+com.google.cloud.websecurityscanner.v1alphaB\x0cScanRunProtoP\x01ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscannerb\x06proto3')
  ,
  dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,])



_SCANRUN_EXECUTIONSTATE = _descriptor.EnumDescriptor(
  name='ExecutionState',
  full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='EXECUTION_STATE_UNSPECIFIED', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='QUEUED', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='SCANNING', index=2, number=2,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='FINISHED', index=3, number=3,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=572,
  serialized_end=661,
)
_sym_db.RegisterEnumDescriptor(_SCANRUN_EXECUTIONSTATE)

_SCANRUN_RESULTSTATE = _descriptor.EnumDescriptor(
  name='ResultState',
  full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='RESULT_STATE_UNSPECIFIED', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='SUCCESS', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERROR', index=2, number=2,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='KILLED', index=3, number=3,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=663,
  serialized_end=742,
)
_sym_db.RegisterEnumDescriptor(_SCANRUN_RESULTSTATE)


_SCANRUN = _descriptor.Descriptor(
  name='ScanRun',
  full_name='google.cloud.websecurityscanner.v1alpha.ScanRun',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='name', full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.name', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='execution_state', full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.execution_state', index=1,
      number=2, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='result_state', full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.result_state', index=2,
      number=3, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='start_time', full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.start_time', index=3,
      number=4, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='end_time', full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.end_time', index=4,
      number=5, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='urls_crawled_count', full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.urls_crawled_count', index=5,
      number=6, type=3, cpp_type=2, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='urls_tested_count', full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.urls_tested_count', index=6,
      number=7, type=3, cpp_type=2, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='has_vulnerabilities', full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.has_vulnerabilities', index=7,
      number=8, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='progress_percent', full_name='google.cloud.websecurityscanner.v1alpha.ScanRun.progress_percent', index=8,
      number=9, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
    _SCANRUN_EXECUTIONSTATE,
    _SCANRUN_RESULTSTATE,
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=169,
  serialized_end=742,
)

_SCANRUN.fields_by_name['execution_state'].enum_type = _SCANRUN_EXECUTIONSTATE
_SCANRUN.fields_by_name['result_state'].enum_type = _SCANRUN_RESULTSTATE
_SCANRUN.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_SCANRUN.fields_by_name['end_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_SCANRUN_EXECUTIONSTATE.containing_type = _SCANRUN
_SCANRUN_RESULTSTATE.containing_type = _SCANRUN
DESCRIPTOR.message_types_by_name['ScanRun'] = _SCANRUN
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

ScanRun = _reflection.GeneratedProtocolMessageType('ScanRun', (_message.Message,), dict(
  DESCRIPTOR = _SCANRUN,
  __module__ = 'google.cloud.websecurityscanner_v1alpha.proto.scan_run_pb2'
  ,
  __doc__ = """A ScanRun is a output-only resource representing an actual run of the
  scan.
  
  
  Attributes:
      name:
          Output only. The resource name of the ScanRun. The name
          follows the format of 'projects/{projectId}/scanConfigs/{scanC
          onfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated
          by the system.
      execution_state:
          Output only. The execution state of the ScanRun.
      result_state:
          Output only. The result state of the ScanRun. This field is
          only available after the execution state reaches "FINISHED".
      start_time:
          Output only. The time at which the ScanRun started.
      end_time:
          Output only. The time at which the ScanRun reached termination
          state - that the ScanRun is either finished or stopped by
          user.
      urls_crawled_count:
          Output only. The number of URLs crawled during this ScanRun.
          If the scan is in progress, the value represents the number of
          URLs crawled up to now.
      urls_tested_count:
          Output only. The number of URLs tested during this ScanRun. If
          the scan is in progress, the value represents the number of
          URLs tested up to now. The number of URLs tested is usually
          larger than the number URLS crawled because typically a
          crawled URL is tested with multiple test payloads.
      has_vulnerabilities:
          Output only. Whether the scan run has found any
          vulnerabilities.
      progress_percent:
          Output only. The percentage of total completion ranging from 0
          to 100. If the scan is in queue, the value is 0. If the scan
          is running, the value ranges from 0 to 100. If the scan is
          finished, the value is 100.
  """,
  # @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanRun)
  ))
_sym_db.RegisterMessage(ScanRun)


DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n+com.google.cloud.websecurityscanner.v1alphaB\014ScanRunProtoP\001ZYgoogle.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner'))
# @@protoc_insertion_point(module_scope)
