Service Client: Google::Cloud::Retail::V2alpha::ProjectService::ProjectServiceClient

Client stub representing the remote ProjectService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to retail.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Retail::V2alpha::ProjectService - Compiled Protocol Buffers messages for google/cloud/retail/v2alpha/project_service.proto

SYNOPSIS

use Google::Cloud::Retail::V2alpha::ProjectService;

my $msg = Google::Cloud::Retail::V2alpha::ProjectService::GetProjectRequest->new({
    name => $name,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2alpha::ProjectService::GetProjectRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/retail/v2alpha/project_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::Retail::V2alpha::ProjectService::GetProjectRequest

Request for GetProject method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full resource name of the project. Format: `projects/{project_number_or_id}/retailProject`

Google::Cloud::Retail::V2alpha::ProjectService::AcceptTermsRequest

Request for AcceptTerms method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full resource name of the project. Format: `projects/{project_number_or_id}/retailProject`

Google::Cloud::Retail::V2alpha::ProjectService::EnrollSolutionRequest

Request for EnrollSolution method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full resource name of parent. Format: `projects/{project_number_or_id}`

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

    Type: Enum (Google::Cloud::Retail::V2alpha::SolutionType)

    Required. Solution to enroll.

Google::Cloud::Retail::V2alpha::ProjectService::EnrollSolutionResponse

Response for EnrollSolution method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Retail::V2alpha::ProjectService::EnrollSolutionMetadata

Metadata related to the EnrollSolution method. This will be returned by the google.longrunning.Operation.metadata field.

Inherits from Protobuf::Message.

Google::Cloud::Retail::V2alpha::ProjectService::ListEnrolledSolutionsRequest

Request for ListEnrolledSolutions method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full resource name of parent. Format: `projects/{project_number_or_id}`

Google::Cloud::Retail::V2alpha::ProjectService::ListEnrolledSolutionsResponse

Response for ListEnrolledSolutions method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Retail::V2alpha::ProjectService::GetLoggingConfigRequest

Request for [ProjectService.GetLoggingConfig][google.cloud.retail.v2alpha.ProjectService.GetLoggingConfig] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full LoggingConfig resource name. Format: projects/{project_number}/loggingConfig

Google::Cloud::Retail::V2alpha::ProjectService::UpdateLoggingConfigRequest

Request for [ProjectService.UpdateLoggingConfig][google.cloud.retail.v2alpha.ProjectService.UpdateLoggingConfig] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Retail::V2alpha::Project::LoggingConfig)

    Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update.

    If the caller does not have permission to update the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a PERMISSION_DENIED error is returned.

    If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update does not exist, a NOT_FOUND error is returned.

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Indicates which fields in the provided [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The following are the only supported fields:

    * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]

    If not set, all supported fields are updated.

Google::Cloud::Retail::V2alpha::ProjectService::GetAlertConfigRequest

Request for [ProjectService.GetAlertConfig][google.cloud.retail.v2alpha.ProjectService.GetAlertConfig] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Full AlertConfig resource name. Format: projects/{project_number}/alertConfig

Google::Cloud::Retail::V2alpha::ProjectService::UpdateAlertConfigRequest

Request for [ProjectService.UpdateAlertConfig][google.cloud.retail.v2alpha.ProjectService.UpdateAlertConfig] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Retail::V2alpha::Project::AlertConfig)

    Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update.

    If the caller does not have permission to update the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a PERMISSION_DENIED error is returned.

    If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update does not exist, a NOT_FOUND error is returned.

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Indicates which fields in the provided [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not set, all supported fields are updated.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Retail::V2alpha::ProjectService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.