Service Client: Google::Cloud::Talent::V4::CompletionService::CompletionClient
Client stub representing the remote Completion gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to talent.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Talent::V4::CompletionService - Compiled Protocol Buffers messages for google/cloud/talent/v4/completion_service.proto
SYNOPSIS
use Google::Cloud::Talent::V4::CompletionService;
my $msg = Google::Cloud::Talent::V4::CompletionService::CompleteQueryRequest->new({
tenant => $tenant,
query => $query,
language_codes => $language_codes,
page_size => $page_size,
});
# Read or update a field
my $val = $msg->tenant();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Talent::V4::CompletionService::CompleteQueryRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/talent/v4/completion_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Talent::V4::CompletionService::CompleteQueryRequest
Auto-complete parameters.
Inherits from Protobuf::Message.
Accessors
$msg->tenant()/$msg->tenant($value)Type:
StringRequired. Resource name of tenant the completion is performed within.
The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".
$msg->query()/$msg->query($value)Type:
StringRequired. The query used to generate suggestions.
The maximum number of allowed characters is 255.
$msg->language_codes()/$msg->language_codes($value)Type:
StringThe 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).
The maximum number of allowed characters is 255.
$msg->page_size()/$msg->page_size($value)Type:
Int32Required. Completion result count.
The maximum allowed page size is 10.
$msg->company()/$msg->company($value)Type:
StringIf 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".
$msg->scope()/$msg->scope($value)Type:
Enum(Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionScope)The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Talent::V4::CompleteQueryRequest::CompletionType)The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
Enum: CompleteQueryRequest::CompletionScope
COMPLETION_SCOPE_UNSPECIFIED=>0TENANT=>1PUBLIC=>2
Enum: CompleteQueryRequest::CompletionType
COMPLETION_TYPE_UNSPECIFIED=>0JOB_TITLE=>1COMPANY_NAME=>2COMBINED=>3
Google::Cloud::Talent::V4::CompletionService::CompleteQueryResponse
Response of auto-complete query.
Inherits from Protobuf::Message.
Accessors
$msg->completion_results()/$msg->completion_results($value)Type:
Message(Google::Cloud::Talent::V4::CompletionService::CompleteQueryResponse::CompletionResult)Results of the matching job/company candidates.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Talent::V4::Common::ResponseMetadata)Additional information for the API invocation, such as the request tracking id.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Talent::V4::CompletionService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.