# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/talent_v4beta1/proto/completion_service.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 (
    common_pb2 as google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_common__pb2,
)


DESCRIPTOR = _descriptor.FileDescriptor(
    name="google/cloud/talent_v4beta1/proto/completion_service.proto",
    package="google.cloud.talent.v4beta1",
    syntax="proto3",
    serialized_options=_b(
        "\n\037com.google.cloud.talent.v4beta1B\026CompletionServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS"
    ),
    serialized_pb=_b(
        '\n:google/cloud/talent_v4beta1/proto/completion_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto"\xc5\x03\n\x14\x43ompleteQueryRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x16\n\x0elanguage_codes\x18\x03 \x03(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x14\n\x0c\x63ompany_name\x18\x05 \x01(\t\x12P\n\x05scope\x18\x06 \x01(\x0e\x32\x41.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope\x12N\n\x04type\x18\x07 \x01(\x0e\x32@.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType"K\n\x0f\x43ompletionScope\x12 \n\x1c\x43OMPLETION_SCOPE_UNSPECIFIED\x10\x00\x12\n\n\x06TENANT\x10\x01\x12\n\n\x06PUBLIC\x10\x02"`\n\x0e\x43ompletionType\x12\x1f\n\x1b\x43OMPLETION_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tJOB_TITLE\x10\x01\x12\x10\n\x0c\x43OMPANY_NAME\x10\x02\x12\x0c\n\x08\x43OMBINED\x10\x03"\xc5\x02\n\x15\x43ompleteQueryResponse\x12_\n\x12\x63ompletion_results\x18\x01 \x03(\x0b\x32\x43.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult\x12?\n\x08metadata\x18\x02 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\x1a\x89\x01\n\x10\x43ompletionResult\x12\x12\n\nsuggestion\x18\x01 \x01(\t\x12N\n\x04type\x18\x02 \x01(\x0e\x32@.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType\x12\x11\n\timage_uri\x18\x03 \x01(\t2\xb2\x01\n\nCompletion\x12\xa3\x01\n\rCompleteQuery\x12\x31.google.cloud.talent.v4beta1.CompleteQueryRequest\x1a\x32.google.cloud.talent.v4beta1.CompleteQueryResponse"+\x82\xd3\xe4\x93\x02%\x12#/v4beta1/{name=projects/*}:completeB\x84\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x16\x43ompletionServiceProtoP\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_common__pb2.DESCRIPTOR,
    ],
)


_COMPLETEQUERYREQUEST_COMPLETIONSCOPE = _descriptor.EnumDescriptor(
    name="CompletionScope",
    full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope",
    filename=None,
    file=DESCRIPTOR,
    values=[
        _descriptor.EnumValueDescriptor(
            name="COMPLETION_SCOPE_UNSPECIFIED",
            index=0,
            number=0,
            serialized_options=None,
            type=None,
        ),
        _descriptor.EnumValueDescriptor(
            name="TENANT", index=1, number=1, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="PUBLIC", index=2, number=2, serialized_options=None, type=None
        ),
    ],
    containing_type=None,
    serialized_options=None,
    serialized_start=450,
    serialized_end=525,
)
_sym_db.RegisterEnumDescriptor(_COMPLETEQUERYREQUEST_COMPLETIONSCOPE)

_COMPLETEQUERYREQUEST_COMPLETIONTYPE = _descriptor.EnumDescriptor(
    name="CompletionType",
    full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType",
    filename=None,
    file=DESCRIPTOR,
    values=[
        _descriptor.EnumValueDescriptor(
            name="COMPLETION_TYPE_UNSPECIFIED",
            index=0,
            number=0,
            serialized_options=None,
            type=None,
        ),
        _descriptor.EnumValueDescriptor(
            name="JOB_TITLE", index=1, number=1, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="COMPANY_NAME", index=2, number=2, serialized_options=None, type=None
        ),
        _descriptor.EnumValueDescriptor(
            name="COMBINED", index=3, number=3, serialized_options=None, type=None
        ),
    ],
    containing_type=None,
    serialized_options=None,
    serialized_start=527,
    serialized_end=623,
)
_sym_db.RegisterEnumDescriptor(_COMPLETEQUERYREQUEST_COMPLETIONTYPE)


_COMPLETEQUERYREQUEST = _descriptor.Descriptor(
    name="CompleteQueryRequest",
    full_name="google.cloud.talent.v4beta1.CompleteQueryRequest",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="name",
            full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="query",
            full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.query",
            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="language_codes",
            full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.language_codes",
            index=2,
            number=3,
            type=9,
            cpp_type=9,
            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,
        ),
        _descriptor.FieldDescriptor(
            name="page_size",
            full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.page_size",
            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="company_name",
            full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.company_name",
            index=4,
            number=5,
            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="scope",
            full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.scope",
            index=5,
            number=6,
            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="type",
            full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.type",
            index=6,
            number=7,
            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,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[
        _COMPLETEQUERYREQUEST_COMPLETIONSCOPE,
        _COMPLETEQUERYREQUEST_COMPLETIONTYPE,
    ],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=170,
    serialized_end=623,
)


_COMPLETEQUERYRESPONSE_COMPLETIONRESULT = _descriptor.Descriptor(
    name="CompletionResult",
    full_name="google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="suggestion",
            full_name="google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.suggestion",
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="type",
            full_name="google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.type",
            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,
            serialized_options=None,
            file=DESCRIPTOR,
        ),
        _descriptor.FieldDescriptor(
            name="image_uri",
            full_name="google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult.image_uri",
            index=2,
            number=3,
            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,
        ),
    ],
    extensions=[],
    nested_types=[],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=814,
    serialized_end=951,
)

_COMPLETEQUERYRESPONSE = _descriptor.Descriptor(
    name="CompleteQueryResponse",
    full_name="google.cloud.talent.v4beta1.CompleteQueryResponse",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    fields=[
        _descriptor.FieldDescriptor(
            name="completion_results",
            full_name="google.cloud.talent.v4beta1.CompleteQueryResponse.completion_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,
        ),
        _descriptor.FieldDescriptor(
            name="metadata",
            full_name="google.cloud.talent.v4beta1.CompleteQueryResponse.metadata",
            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=[_COMPLETEQUERYRESPONSE_COMPLETIONRESULT],
    enum_types=[],
    serialized_options=None,
    is_extendable=False,
    syntax="proto3",
    extension_ranges=[],
    oneofs=[],
    serialized_start=626,
    serialized_end=951,
)

_COMPLETEQUERYREQUEST.fields_by_name[
    "scope"
].enum_type = _COMPLETEQUERYREQUEST_COMPLETIONSCOPE
_COMPLETEQUERYREQUEST.fields_by_name[
    "type"
].enum_type = _COMPLETEQUERYREQUEST_COMPLETIONTYPE
_COMPLETEQUERYREQUEST_COMPLETIONSCOPE.containing_type = _COMPLETEQUERYREQUEST
_COMPLETEQUERYREQUEST_COMPLETIONTYPE.containing_type = _COMPLETEQUERYREQUEST
_COMPLETEQUERYRESPONSE_COMPLETIONRESULT.fields_by_name[
    "type"
].enum_type = _COMPLETEQUERYREQUEST_COMPLETIONTYPE
_COMPLETEQUERYRESPONSE_COMPLETIONRESULT.containing_type = _COMPLETEQUERYRESPONSE
_COMPLETEQUERYRESPONSE.fields_by_name[
    "completion_results"
].message_type = _COMPLETEQUERYRESPONSE_COMPLETIONRESULT
_COMPLETEQUERYRESPONSE.fields_by_name[
    "metadata"
].message_type = (
    google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_common__pb2._RESPONSEMETADATA
)
DESCRIPTOR.message_types_by_name["CompleteQueryRequest"] = _COMPLETEQUERYREQUEST
DESCRIPTOR.message_types_by_name["CompleteQueryResponse"] = _COMPLETEQUERYRESPONSE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

CompleteQueryRequest = _reflection.GeneratedProtocolMessageType(
    "CompleteQueryRequest",
    (_message.Message,),
    dict(
        DESCRIPTOR=_COMPLETEQUERYREQUEST,
        __module__="google.cloud.talent_v4beta1.proto.completion_service_pb2",
        __doc__="""Input only.
  
  Auto-complete parameters.
  
  
  Attributes:
      name:
          Required.  Resource name of project the completion is
          performed within.  The format is "projects/{project\_id}", for
          example, "projects/api-test-project".
      query:
          Required.  The query used to generate suggestions.  The
          maximum number of allowed characters is 255.
      language_codes:
          Optional.  The list of languages of the query. This is the
          BCP-47 language code, such as "en-US" or "sr-Latn". For more
          information, see `Tags for Identifying Languages
          <https://tools.ietf.org/html/bcp47>`__.  For [CompletionType.J
          OB\_TITLE][google.cloud.talent.v4beta1.CompleteQueryRequest.Co
          mpletionType.JOB\_TITLE] type, only open jobs with the same [l
          anguage\_codes][google.cloud.talent.v4beta1.CompleteQueryReque
          st.language\_codes] are returned.  For [CompletionType.COMPANY
          \_NAME][google.cloud.talent.v4beta1.CompleteQueryRequest.Compl
          etionType.COMPANY\_NAME] type, only companies having open jobs
          with the same [language\_codes][google.cloud.talent.v4beta1.Co
          mpleteQueryRequest.language\_codes] are returned.  For [Comple
          tionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRe
          quest.CompletionType.COMBINED] type, only open jobs with the
          same [language\_codes][google.cloud.talent.v4beta1.CompleteQue
          ryRequest.language\_codes] or companies having open jobs with
          the same [language\_codes][google.cloud.talent.v4beta1.Complet
          eQueryRequest.language\_codes] are returned.  The maximum
          number of allowed characters is 255.
      page_size:
          Required.  Completion result count.  The maximum allowed page
          size is 10.
      company_name:
          Optional.  If provided, restricts completion to specified
          company.  The format is
          "projects/{project\_id}/companies/{company\_id}", for example,
          "projects/api-test-project/companies/foo".
      scope:
          Optional.  The scope of the completion. The defaults is [Compl
          etionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRe
          quest.CompletionScope.PUBLIC].
      type:
          Optional.  The completion topic. The default is [CompletionTyp
          e.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.C
          ompletionType.COMBINED].
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryRequest)
    ),
)
_sym_db.RegisterMessage(CompleteQueryRequest)

CompleteQueryResponse = _reflection.GeneratedProtocolMessageType(
    "CompleteQueryResponse",
    (_message.Message,),
    dict(
        CompletionResult=_reflection.GeneratedProtocolMessageType(
            "CompletionResult",
            (_message.Message,),
            dict(
                DESCRIPTOR=_COMPLETEQUERYRESPONSE_COMPLETIONRESULT,
                __module__="google.cloud.talent_v4beta1.proto.completion_service_pb2",
                __doc__="""Output only.
    
    Resource that represents completion results.
    
    
    Attributes:
        suggestion:
            The suggestion for the query.
        type:
            The completion topic.
        image_uri:
            The URI of the company image for
            [CompletionType.COMPANY\_NAME][].
    """,
                # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult)
            ),
        ),
        DESCRIPTOR=_COMPLETEQUERYRESPONSE,
        __module__="google.cloud.talent_v4beta1.proto.completion_service_pb2",
        __doc__="""Output only.
  
  Response of auto-complete query.
  
  
  Attributes:
      completion_results:
          Results of the matching job/company candidates.
      metadata:
          Additional information for the API invocation, such as the
          request tracking id.
  """,
        # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryResponse)
    ),
)
_sym_db.RegisterMessage(CompleteQueryResponse)
_sym_db.RegisterMessage(CompleteQueryResponse.CompletionResult)


DESCRIPTOR._options = None

_COMPLETION = _descriptor.ServiceDescriptor(
    name="Completion",
    full_name="google.cloud.talent.v4beta1.Completion",
    file=DESCRIPTOR,
    index=0,
    serialized_options=None,
    serialized_start=954,
    serialized_end=1132,
    methods=[
        _descriptor.MethodDescriptor(
            name="CompleteQuery",
            full_name="google.cloud.talent.v4beta1.Completion.CompleteQuery",
            index=0,
            containing_service=None,
            input_type=_COMPLETEQUERYREQUEST,
            output_type=_COMPLETEQUERYRESPONSE,
            serialized_options=_b(
                "\202\323\344\223\002%\022#/v4beta1/{name=projects/*}:complete"
            ),
        )
    ],
)
_sym_db.RegisterServiceDescriptor(_COMPLETION)

DESCRIPTOR.services_by_name["Completion"] = _COMPLETION

# @@protoc_insertion_point(module_scope)
