Class: Google::Cloud::Talent::V4::CompleteQueryRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Talent::V4::CompleteQueryRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/talent/v4/completion_service.rb
Overview
Auto-complete parameters.
Defined Under Namespace
Modules: CompletionScope, CompletionType
Instance Attribute Summary collapse
-
#company ⇒ ::String
If provided, restricts completion to specified company.
-
#language_codes ⇒ ::Array<::String>
The list of languages of the query.
-
#page_size ⇒ ::Integer
Required.
-
#query ⇒ ::String
Required.
-
#scope ⇒ ::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionScope
The scope of the completion.
-
#tenant ⇒ ::String
Required.
-
#type ⇒ ::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType
The completion topic.
Instance Attribute Details
#company ⇒ ::String
Returns If provided, restricts completion to specified company.
The format is “projects/{project_id}/tenants/{tenant_id}/companies/{company_id}”, for example, “projects/foo/tenants/bar/companies/baz”.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'proto_docs/google/cloud/talent/v4/completion_service.rb', line 64 class CompleteQueryRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Enum to specify the scope of completion. module CompletionScope # Default value. COMPLETION_SCOPE_UNSPECIFIED = 0 # Suggestions are based only on the data provided by the client. TENANT = 1 # Suggestions are based on all jobs data in the system that's visible to # the client PUBLIC = 2 end # Enum to specify auto-completion topics. module CompletionType # Default value. COMPLETION_TYPE_UNSPECIFIED = 0 # Suggest job titles for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType.JOB_TITLE} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. JOB_TITLE = 1 # Suggest company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType.COMPANY_NAME} # type, only companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMPANY_NAME = 2 # Suggest both job titles and company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMBINED CompletionType.COMBINED} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # or companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMBINED = 3 end end |
#language_codes ⇒ ::Array<::String>
Returns 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.
The maximum number of allowed characters is 255.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'proto_docs/google/cloud/talent/v4/completion_service.rb', line 64 class CompleteQueryRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Enum to specify the scope of completion. module CompletionScope # Default value. COMPLETION_SCOPE_UNSPECIFIED = 0 # Suggestions are based only on the data provided by the client. TENANT = 1 # Suggestions are based on all jobs data in the system that's visible to # the client PUBLIC = 2 end # Enum to specify auto-completion topics. module CompletionType # Default value. COMPLETION_TYPE_UNSPECIFIED = 0 # Suggest job titles for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType.JOB_TITLE} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. JOB_TITLE = 1 # Suggest company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType.COMPANY_NAME} # type, only companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMPANY_NAME = 2 # Suggest both job titles and company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMBINED CompletionType.COMBINED} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # or companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMBINED = 3 end end |
#page_size ⇒ ::Integer
Returns Required. Completion result count.
The maximum allowed page size is 10.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'proto_docs/google/cloud/talent/v4/completion_service.rb', line 64 class CompleteQueryRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Enum to specify the scope of completion. module CompletionScope # Default value. COMPLETION_SCOPE_UNSPECIFIED = 0 # Suggestions are based only on the data provided by the client. TENANT = 1 # Suggestions are based on all jobs data in the system that's visible to # the client PUBLIC = 2 end # Enum to specify auto-completion topics. module CompletionType # Default value. COMPLETION_TYPE_UNSPECIFIED = 0 # Suggest job titles for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType.JOB_TITLE} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. JOB_TITLE = 1 # Suggest company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType.COMPANY_NAME} # type, only companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMPANY_NAME = 2 # Suggest both job titles and company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMBINED CompletionType.COMBINED} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # or companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMBINED = 3 end end |
#query ⇒ ::String
Returns Required. The query used to generate suggestions.
The maximum number of allowed characters is 255.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'proto_docs/google/cloud/talent/v4/completion_service.rb', line 64 class CompleteQueryRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Enum to specify the scope of completion. module CompletionScope # Default value. COMPLETION_SCOPE_UNSPECIFIED = 0 # Suggestions are based only on the data provided by the client. TENANT = 1 # Suggestions are based on all jobs data in the system that's visible to # the client PUBLIC = 2 end # Enum to specify auto-completion topics. module CompletionType # Default value. COMPLETION_TYPE_UNSPECIFIED = 0 # Suggest job titles for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType.JOB_TITLE} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. JOB_TITLE = 1 # Suggest company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType.COMPANY_NAME} # type, only companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMPANY_NAME = 2 # Suggest both job titles and company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMBINED CompletionType.COMBINED} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # or companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMBINED = 3 end end |
#scope ⇒ ::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionScope
Returns The scope of the completion. The defaults is .
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'proto_docs/google/cloud/talent/v4/completion_service.rb', line 64 class CompleteQueryRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Enum to specify the scope of completion. module CompletionScope # Default value. COMPLETION_SCOPE_UNSPECIFIED = 0 # Suggestions are based only on the data provided by the client. TENANT = 1 # Suggestions are based on all jobs data in the system that's visible to # the client PUBLIC = 2 end # Enum to specify auto-completion topics. module CompletionType # Default value. COMPLETION_TYPE_UNSPECIFIED = 0 # Suggest job titles for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType.JOB_TITLE} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. JOB_TITLE = 1 # Suggest company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType.COMPANY_NAME} # type, only companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMPANY_NAME = 2 # Suggest both job titles and company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMBINED CompletionType.COMBINED} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # or companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMBINED = 3 end end |
#tenant ⇒ ::String
Returns Required. Resource name of tenant the completion is performed within.
The format is “projects/{project_id}/tenants/{tenant_id}”, for example, “projects/foo/tenants/bar”.
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'proto_docs/google/cloud/talent/v4/completion_service.rb', line 64 class CompleteQueryRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Enum to specify the scope of completion. module CompletionScope # Default value. COMPLETION_SCOPE_UNSPECIFIED = 0 # Suggestions are based only on the data provided by the client. TENANT = 1 # Suggestions are based on all jobs data in the system that's visible to # the client PUBLIC = 2 end # Enum to specify auto-completion topics. module CompletionType # Default value. COMPLETION_TYPE_UNSPECIFIED = 0 # Suggest job titles for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType.JOB_TITLE} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. JOB_TITLE = 1 # Suggest company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType.COMPANY_NAME} # type, only companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMPANY_NAME = 2 # Suggest both job titles and company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMBINED CompletionType.COMBINED} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # or companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMBINED = 3 end end |
#type ⇒ ::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType
Returns The completion topic. The default is .
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'proto_docs/google/cloud/talent/v4/completion_service.rb', line 64 class CompleteQueryRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Enum to specify the scope of completion. module CompletionScope # Default value. COMPLETION_SCOPE_UNSPECIFIED = 0 # Suggestions are based only on the data provided by the client. TENANT = 1 # Suggestions are based on all jobs data in the system that's visible to # the client PUBLIC = 2 end # Enum to specify auto-completion topics. module CompletionType # Default value. COMPLETION_TYPE_UNSPECIFIED = 0 # Suggest job titles for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::JOB_TITLE CompletionType.JOB_TITLE} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. JOB_TITLE = 1 # Suggest company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMPANY_NAME CompletionType.COMPANY_NAME} # type, only companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMPANY_NAME = 2 # Suggest both job titles and company names for jobs autocomplete. # # For # {::Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType::COMBINED CompletionType.COMBINED} # type, only open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # or companies having open jobs with the same # {::Google::Cloud::Talent::V4::CompleteQueryRequest#language_codes language_codes} # are returned. COMBINED = 3 end end |