Service Client: Google::Cloud::Memcache::V1::CloudMemcache::CloudMemcacheClient

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

target

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

credentials

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

NAME

Google::Cloud::Memcache::V1::CloudMemcache - Compiled Protocol Buffers messages for google/cloud/memcache/v1/cloud_memcache.proto

SYNOPSIS

use Google::Cloud::Memcache::V1::CloudMemcache;

my $msg = Google::Cloud::Memcache::V1::CloudMemcache::Instance->new({
    name => $name,
    display_name => $display_name,
    labels => $labels,
    authorized_network => $authorized_network,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Memcache::V1::CloudMemcache::Instance->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/memcache/v1/cloud_memcache.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::Memcache::V1::CloudMemcache::Instance

A Memorystore for Memcached instance

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}`

    Note: Memcached instances are managed and addressed at the regional level so `location_id` here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to [zones][google.cloud.memcache.v1.Instance.zones] field for more details.

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

    Type: String

    User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::Instance::LabelsEntry)

    Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

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

    Type: String

    The full name of the Google Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. If left unspecified, the `default` network will be used.

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

    Type: String

    Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

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

    Type: Int32

    Required. Number of nodes in the Memcached instance.

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::Instance::NodeConfig)

    Required. Configuration for Memcached nodes.

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

    Type: Enum (Google::Cloud::Memcache::V1::MemcacheVersion)

    The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is `MEMCACHE_1_5`. The minor version will be automatically determined by our system based on the latest supported minor version.

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::MemcacheParameters)

    User defined parameters to apply to the memcached process on each node.

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::Instance::Node)

    Output only. List of Memcached nodes. Refer to [Node][google.cloud.memcache.v1.Instance.Node] message for more details.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the instance was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the instance was updated.

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

    Type: Enum (Google::Cloud::Memcache::V1::Instance::State)

    Output only. The state of this Memcached instance.

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

    Type: String

    Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16".

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::Instance::InstanceMessage)

    List of messages that describe the current state of the Memcached instance.

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

    Type: String

    Output only. Endpoint for the Discovery API.

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::MaintenancePolicy)

    The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::MaintenanceSchedule)

    Output only. Published maintenance schedule.

Enum: Instance::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • READY => 2

  • UPDATING => 3

  • DELETING => 4

  • PERFORMING_MAINTENANCE => 5

Google::Cloud::Memcache::V1::CloudMemcache::MaintenancePolicy

Maintenance policy per instance.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the policy was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the policy was updated.

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

    Type: String

    Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::WeeklyMaintenanceWindow)

    Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.

Google::Cloud::Memcache::V1::CloudMemcache::WeeklyMaintenanceWindow

Time window specified for weekly operations.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Memcache::V1::CloudMemcache::MaintenanceSchedule

Upcoming maintenance schedule.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The start time of any upcoming scheduled maintenance for this instance.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The end time of any upcoming scheduled maintenance for this instance.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.

Google::Cloud::Memcache::V1::CloudMemcache::RescheduleMaintenanceRequest

Request for [RescheduleMaintenance][google.cloud.memcache.v1.CloudMemcache.RescheduleMaintenance].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Memcache instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.

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

    Type: Enum (Google::Cloud::Memcache::V1::RescheduleMaintenanceRequest::RescheduleType)

    Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`.

Enum: RescheduleMaintenanceRequest::RescheduleType

  • RESCHEDULE_TYPE_UNSPECIFIED => 0

  • IMMEDIATE => 1

  • NEXT_AVAILABLE_WINDOW => 2

  • SPECIFIC_TIME => 3

Google::Cloud::Memcache::V1::CloudMemcache::ListInstancesRequest

Request for [ListInstances][google.cloud.memcache.v1.CloudMemcache.ListInstances].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region

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

    Type: Int32

    The maximum number of items to return.

    If not specified, a default value of 1000 will be used by the service. Regardless of the `page_size` value, the response may include a partial list and a caller should only rely on response's [`next_page_token`][google.cloud.memcache.v1.ListInstancesResponse.next_page_token] to determine if there are more instances left to be queried.

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

    Type: String

    The `next_page_token` value returned from a previous List request, if any.

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

    Type: String

    List filter. For example, exclude all Memcached instances with name as my-instance by specifying `"name != my-instance"`.

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

    Type: String

    Sort results. Supported values are "name", "name desc" or "" (unsorted).

Google::Cloud::Memcache::V1::CloudMemcache::ListInstancesResponse

Response for [ListInstances][google.cloud.memcache.v1.CloudMemcache.ListInstances].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::Instance)

    A list of Memcached instances in the project in the specified location, or across all locations.

    If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated.

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

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Memcache::V1::CloudMemcache::GetInstanceRequest

Request for [GetInstance][google.cloud.memcache.v1.CloudMemcache.GetInstance].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Memcached instance resource name in the format: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region

Google::Cloud::Memcache::V1::CloudMemcache::CreateInstanceRequest

Request for [CreateInstance][google.cloud.memcache.v1.CloudMemcache.CreateInstance].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region

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

    Type: String

    Required. The logical name of the Memcached instance in the user project with the following restrictions:

    * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the user project / location.

    If any of the above are not met, the API raises an invalid argument error.

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::Instance)

    Required. A Memcached Instance

Google::Cloud::Memcache::V1::CloudMemcache::UpdateInstanceRequest

Request for [UpdateInstance][google.cloud.memcache.v1.CloudMemcache.UpdateInstance].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Memcache::V1::CloudMemcache::DeleteInstanceRequest

Request for [DeleteInstance][google.cloud.memcache.v1.CloudMemcache.DeleteInstance].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Memcached instance resource name in the format: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region

Google::Cloud::Memcache::V1::CloudMemcache::ApplyParametersRequest

Request for [ApplyParameters][google.cloud.memcache.v1.CloudMemcache.ApplyParameters].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Resource name of the Memcached instance for which parameter group updates should be applied.

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

    Type: String

    Nodes to which the instance-level parameter group is applied.

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

    Type: Bool

    Whether to apply instance-level parameter group to all nodes. If set to true, users are restricted from specifying individual nodes, and `ApplyParameters` updates all nodes within the instance.

Google::Cloud::Memcache::V1::CloudMemcache::UpdateParametersRequest

Request for [UpdateParameters][google.cloud.memcache.v1.CloudMemcache.UpdateParameters].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Memcache::V1::CloudMemcache::MemcacheParameters

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes.

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

    Type: Message (Google::Cloud::Memcache::V1::CloudMemcache::MemcacheParameters::ParamsEntry)

    User defined set of parameters to use in the memcached process.

Google::Cloud::Memcache::V1::CloudMemcache::OperationMetadata

Represents the metadata of a long-running operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time when the operation was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time when the operation finished running.

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

    Type: String

    Output only. Server-defined resource path for the target of the operation.

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

    Type: String

    Output only. Name of the verb executed by the operation.

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

    Type: String

    Output only. Human-readable status of the operation, if any.

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

    Type: Bool

    Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.

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

    Type: String

    Output only. API version used to start the operation.

Google::Cloud::Memcache::V1::CloudMemcache::LocationMetadata

Metadata for the given [google.cloud.location.Location][google.cloud.location.Location].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Memcache::V1::CloudMemcache::ZoneMetadata

Inherits from Protobuf::Message.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Memcache::V1::CloudMemcache::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.