Service Client: Google::Cloud::Talent::V4beta1::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::V4beta1::CompletionService - Compiled Protocol Buffers messages for google/cloud/talent/v4beta1/completion_service.proto

SYNOPSIS

use Google::Cloud::Talent::V4beta1::CompletionService;

my $msg = Google::Cloud::Talent::V4beta1::CompletionService::CompleteQueryRequest->new({
    parent => $parent,
    query => $query,
    language_codes => $language_codes,
    page_size => $page_size,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Talent::V4beta1::CompletionService::CompleteQueryRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/talent/v4beta1/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::V4beta1::CompletionService::CompleteQueryRequest

Auto-complete parameters.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. Resource name of tenant the completion is performed within.

    The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenant/bar".

    If tenant id is unspecified, the default tenant is used, for example, "projects/foo".

  • $msg->query() / $msg->query($value)

    Type: String

    Required. The query used to generate suggestions.

    The maximum number of allowed characters is 255.

  • $msg->language_codes() / $msg->language_codes($value)

    Type: String

    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).

    The maximum number of allowed characters is 255.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Required. Completion result count.

    The maximum allowed page size is 10.

  • $msg->company() / $msg->company($value)

    Type: String

    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".

    If tenant id is unspecified, the default tenant is used, for example, "projects/foo".

  • $msg->scope() / $msg->scope($value)

    Type: Enum (Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionScope)

    The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC].

  • $msg->type() / $msg->type($value)

    Type: Enum (Google::Cloud::Talent::V4beta1::CompleteQueryRequest::CompletionType)

    The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED].

Enum: CompleteQueryRequest::CompletionScope

  • COMPLETION_SCOPE_UNSPECIFIED => 0

  • TENANT => 1

  • PUBLIC => 2

Enum: CompleteQueryRequest::CompletionType

  • COMPLETION_TYPE_UNSPECIFIED => 0

  • JOB_TITLE => 1

  • COMPANY_NAME => 2

  • COMBINED => 3

Google::Cloud::Talent::V4beta1::CompletionService::CompleteQueryResponse

Response of auto-complete query.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Talent::V4beta1::CompletionService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.