123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- syntax = "proto3";
- package google.cloud.talent.v4;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/talent/v4/common.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
- option java_multiple_files = true;
- option java_outer_classname = "CompletionServiceProto";
- option java_package = "com.google.cloud.talent.v4";
- option objc_class_prefix = "CTS";
- service Completion {
- option (google.api.default_host) = "jobs.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform,"
- "https://www.googleapis.com/auth/jobs";
-
-
- rpc CompleteQuery(CompleteQueryRequest) returns (CompleteQueryResponse) {
- option (google.api.http) = {
- get: "/v4/{tenant=projects/*/tenants/*}:completeQuery"
- };
- }
- }
- message CompleteQueryRequest {
-
- enum CompletionScope {
-
- COMPLETION_SCOPE_UNSPECIFIED = 0;
-
- TENANT = 1;
-
-
- PUBLIC = 2;
- }
-
- enum CompletionType {
-
- COMPLETION_TYPE_UNSPECIFIED = 0;
-
-
-
-
- JOB_TITLE = 1;
-
-
-
-
-
- COMPANY_NAME = 2;
-
-
-
-
-
- COMBINED = 3;
- }
-
-
-
-
- string tenant = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "jobs.googleapis.com/Tenant"
- }
- ];
-
-
-
- string query = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
- repeated string language_codes = 3;
-
-
-
- int32 page_size = 4 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
- string company = 5 [(google.api.resource_reference) = {
- type: "jobs.googleapis.com/Company"
- }];
-
- CompletionScope scope = 6;
-
- CompletionType type = 7;
- }
- message CompleteQueryResponse {
-
- message CompletionResult {
-
- string suggestion = 1;
-
- CompleteQueryRequest.CompletionType type = 2;
-
-
- string image_uri = 3;
- }
-
- repeated CompletionResult completion_results = 1;
-
-
- ResponseMetadata metadata = 2;
- }
|