# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/talent_v4beta1/proto/batch.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

# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.cloud.talent_v4beta1.proto import (
    job_pb2 as google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__pb2,
)
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
    name="google/cloud/talent_v4beta1/proto/batch.proto",
    package="google.cloud.talent.v4beta1",
    syntax="proto3",
    serialized_options=_b(
        "\n\037com.google.cloud.talent.v4beta1B\nBatchProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS"
    ),
    serialized_pb=_b(
        '\n-google/cloud/talent_v4beta1/proto/batch.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a+google/cloud/talent_v4beta1/proto/job.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"\xcc\x03\n\x16\x42\x61tchOperationMetadata\x12H\n\x05state\x18\x01 \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.BatchOperationMetadata.State\x12\x19\n\x11state_description\x18\x02 \x01(\t\x12\x15\n\rsuccess_count\x18\x03 \x01(\x05\x12\x15\n\rfailure_count\x18\x04 \x01(\x05\x12\x13\n\x0btotal_count\x18\x05 \x01(\x05\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"z\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0e\n\nPROCESSING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0e\n\nCANCELLING\x10\x05\x12\r\n\tCANCELLED\x10\x06"\xc4\x01\n\x12JobOperationResult\x12N\n\x0bjob_results\x18\x01 \x03(\x0b\x32\x39.google.cloud.talent.v4beta1.JobOperationResult.JobResult\x1a^\n\tJobResult\x12-\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.StatusBx\n\x1f\x63om.google.cloud.talent.v4beta1B\nBatchProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3'
    ),
    dependencies=[
        google_dot_api_dot_annotations__pb2.DESCRIPTOR,
        google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__pb2.DESCRIPTOR,
        google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,
        google_dot_rpc_dot_status__pb2.DESCRIPTOR,
    ],
)


_BATCHOPERATIONMETADATA_STATE = _descriptor.EnumDescriptor(
    name="State",
    full_name="google.cloud.talent.v4beta1.BatchOperationMetadata.State",
    filename=None,
    file=DESCRIPTOR,
    values=[
        _descriptor.EnumValueDescriptor(
            name="STATE_UNSPECIFIED",
            index=0,
            number=0,
            serialized_options=None,
            type=None,
        ),
        _descriptor.EnumValueDescriptor(
            name="INITIALIZING", index=1, number=1, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="PROCESSING", index=2, number=2, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="SUCCEEDED", index=3, number=3, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="FAILED", index=4, number=4, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="CANCELLING", index=5, number=5, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="CANCELLED", index=6, number=6, serialized_options=None, type=None
        ),
    ],
    containing_type=None,
    serialized_options=None,
    serialized_start=550,
    serialized_end=672,
)
_sym_db.RegisterEnumDescriptor(_BATCHOPERATIONMETADATA_STATE)


_BATCHOPERATIONMETADATA = _descriptor.Descriptor(
    name="BatchOperationMetadata",
    full_name="google.cloud.talent.v4beta1.BatchOperationMetadata",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="state",
            full_name="google.cloud.talent.v4beta1.BatchOperationMetadata.state",
            index=0,
            number=1,
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="state_description",
            full_name="google.cloud.talent.v4beta1.BatchOperationMetadata.state_description",
            index=1,
            number=2,
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="success_count",
            full_name="google.cloud.talent.v4beta1.BatchOperationMetadata.success_count",
            index=2,
            number=3,
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="failure_count",
            full_name="google.cloud.talent.v4beta1.BatchOperationMetadata.failure_count",
            index=3,
            number=4,
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="total_count",
            full_name="google.cloud.talent.v4beta1.BatchOperationMetadata.total_count",
            index=4,
            number=5,
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="create_time",
            full_name="google.cloud.talent.v4beta1.BatchOperationMetadata.create_time",
            index=5,
            number=6,
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="update_time",
            full_name="google.cloud.talent.v4beta1.BatchOperationMetadata.update_time",
            index=6,
            number=7,
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="end_time",
            full_name="google.cloud.talent.v4beta1.BatchOperationMetadata.end_time",
            index=7,
            number=8,
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[_BATCHOPERATIONMETADATA_STATE],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=212,
    serialized_end=672,
)


_JOBOPERATIONRESULT_JOBRESULT = _descriptor.Descriptor(
    name="JobResult",
    full_name="google.cloud.talent.v4beta1.JobOperationResult.JobResult",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="job",
            full_name="google.cloud.talent.v4beta1.JobOperationResult.JobResult.job",
            index=0,
            number=1,
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="status",
            full_name="google.cloud.talent.v4beta1.JobOperationResult.JobResult.status",
            index=1,
            number=2,
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=777,
    serialized_end=871,
)

_JOBOPERATIONRESULT = _descriptor.Descriptor(
    name="JobOperationResult",
    full_name="google.cloud.talent.v4beta1.JobOperationResult",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="job_results",
            full_name="google.cloud.talent.v4beta1.JobOperationResult.job_results",
            index=0,
            number=1,
            type=11,
            cpp_type=10,
            label=3,
            has_default_value=False,
            default_value=[],
            message_type=None,
            enum_type=None,
            containing_type=None,
            is_extension=False,
            extension_scope=None,
            serialized_options=None,
            file=DESCRIPTOR,
        )
    ],
    extensions=[],
    nested_types=[_JOBOPERATIONRESULT_JOBRESULT],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=675,
    serialized_end=871,
)

_BATCHOPERATIONMETADATA.fields_by_name[
    "state"
].enum_type = _BATCHOPERATIONMETADATA_STATE
_BATCHOPERATIONMETADATA.fields_by_name[
    "create_time"
].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_BATCHOPERATIONMETADATA.fields_by_name[
    "update_time"
].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_BATCHOPERATIONMETADATA.fields_by_name[
    "end_time"
].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
_BATCHOPERATIONMETADATA_STATE.containing_type = _BATCHOPERATIONMETADATA
_JOBOPERATIONRESULT_JOBRESULT.fields_by_name[
    "job"
].message_type = google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__pb2._JOB
_JOBOPERATIONRESULT_JOBRESULT.fields_by_name[
    "status"
].message_type = google_dot_rpc_dot_status__pb2._STATUS
_JOBOPERATIONRESULT_JOBRESULT.containing_type = _JOBOPERATIONRESULT
_JOBOPERATIONRESULT.fields_by_name[
    "job_results"
].message_type = _JOBOPERATIONRESULT_JOBRESULT
DESCRIPTOR.message_types_by_name["BatchOperationMetadata"] = _BATCHOPERATIONMETADATA
DESCRIPTOR.message_types_by_name["JobOperationResult"] = _JOBOPERATIONRESULT
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

BatchOperationMetadata = _reflection.GeneratedProtocolMessageType(
    "BatchOperationMetadata",
    (_message.Message,),
    dict(
        DESCRIPTOR=_BATCHOPERATIONMETADATA,
        __module__="google.cloud.talent_v4beta1.proto.batch_pb2",
        __doc__="""Output only.
  
  Metadata used for long running operations returned by CTS batch APIs.
  It's used to replace
  [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata].
  
  
  Attributes:
      state:
          The state of a long running operation.
      state_description:
          More detailed information about operation state.
      success_count:
          Count of successful item(s) inside an operation.
      failure_count:
          Count of failed item(s) inside an operation.
      total_count:
          Count of total item(s) inside an operation.
      create_time:
          The time when the batch operation is created.
      update_time:
          The time when the batch operation status is updated. The
          metadata and the [update\_time][google.cloud.talent.v4beta1.Ba
          tchOperationMetadata.update\_time] is refreshed every minute
          otherwise cached data is returned.
      end_time:
          The time when the batch operation is finished and [google.long
          running.Operation.done][google.longrunning.Operation.done] is
          set to ``true``.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.BatchOperationMetadata)
    ),
)
_sym_db.RegisterMessage(BatchOperationMetadata)

JobOperationResult = _reflection.GeneratedProtocolMessageType(
    "JobOperationResult",
    (_message.Message,),
    dict(
        JobResult=_reflection.GeneratedProtocolMessageType(
            "JobResult",
            (_message.Message,),
            dict(
                DESCRIPTOR=_JOBOPERATIONRESULT_JOBRESULT,
                __module__="google.cloud.talent_v4beta1.proto.batch_pb2",
                __doc__="""Mutation result of a job.
    
    
    Attributes:
        job:
            Here [Job][google.cloud.talent.v4beta1.Job] only contains
            basic information including
            [name][google.cloud.talent.v4beta1.Job.name],
            [company][google.cloud.talent.v4beta1.Job.company], [language\
            _code][google.cloud.talent.v4beta1.Job.language\_code] and [re
            quisition\_id][google.cloud.talent.v4beta1.Job.requisition\_id
            ], use getJob method to retrieve detailed information of the
            created/updated job.
        status:
            The status of the job processed. This field is populated if
            the processing of the [job][google.cloud.talent.v4beta1.JobOpe
            rationResult.JobResult.job] fails.
    """,
                # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobOperationResult.JobResult)
            ),
        ),
        DESCRIPTOR=_JOBOPERATIONRESULT,
        __module__="google.cloud.talent_v4beta1.proto.batch_pb2",
        __doc__="""Output only.
  
  The result of [BatchCreateJobs][] or [BatchUpdateJobs][] APIs. It's used
  to replace
  [google.longrunning.Operation.response][google.longrunning.Operation.response]
  in case of success.
  
  
  Attributes:
      job_results:
          List of job mutation results from a batch mutate operation. It
          can change until operation status is FINISHED, FAILED or
          CANCELLED.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobOperationResult)
    ),
)
_sym_db.RegisterMessage(JobOperationResult)
_sym_db.RegisterMessage(JobOperationResult.JobResult)


DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
