Service Client: Google::Cloud::Notebooks::V1::Service::NotebookServiceClient

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

target

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

credentials

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

NAME

Google::Cloud::Notebooks::V1::Service - Compiled Protocol Buffers messages for google/cloud/notebooks/v1/service.proto

SYNOPSIS

use Google::Cloud::Notebooks::V1::Service;

my $msg = Google::Cloud::Notebooks::V1::Service::OperationMetadata->new({
    create_time => $create_time,
    end_time => $end_time,
    target => $target,
    verb => $verb,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Notebooks::V1::Service::OperationMetadata->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/notebooks/v1/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::Notebooks::V1::Service::OperationMetadata

Represents the metadata of the long-running operation.

Inherits from Protobuf::Message.

Accessors

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

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

    The time the operation was created.

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

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

    The time the operation finished running.

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

    Type: String

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

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

    Type: String

    Name of the verb executed by the operation.

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

    Type: String

    Human-readable status of the operation, if any.

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

    Type: Bool

    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

    API version used to start the operation.

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

    Type: String

    API endpoint name of this operation.

Google::Cloud::Notebooks::V1::Service::ListInstancesRequest

Request for listing notebook instances.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `parent=projects/{project_id}/locations/{location}`

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

    Type: Int32

    Maximum return size of the list call.

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

    Type: String

    A previous returned page token that can be used to continue listing from the last result.

Google::Cloud::Notebooks::V1::Service::ListInstancesResponse

Response for listing notebook instances.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Notebooks::V1::Instance::Instance)

    A list of returned instances.

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

    Type: String

    Page token that can be used to continue listing from the last result in the next list call.

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

    Type: String

    Locations that could not be reached. For example, `['us-west1-a', 'us-central1-b']`. A ListInstancesResponse will only contain either instances or unreachables,

Google::Cloud::Notebooks::V1::Service::GetInstanceRequest

Request for getting a notebook instance.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V1::Service::CreateInstanceRequest

Request for creating a notebook instance.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `parent=projects/{project_id}/locations/{location}`

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

    Type: String

    Required. User-defined unique ID of this instance.

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

    Type: Message (Google::Cloud::Notebooks::V1::Instance::Instance)

    Required. The instance to be created.

Google::Cloud::Notebooks::V1::Service::RegisterInstanceRequest

Request for registering a notebook instance.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `parent=projects/{project_id}/locations/{location}`

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

    Type: String

    Required. User defined unique ID of this instance. The `instance_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

Google::Cloud::Notebooks::V1::Service::SetInstanceAcceleratorRequest

Request for setting instance accelerator.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

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

    Type: Enum (Google::Cloud::Notebooks::V1::Instance::AcceleratorType)

    Required. Type of this accelerator.

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

    Type: Int64

    Required. Count of cores of this accelerator. Note that not all combinations of `type` and `core_count` are valid. Check [GPUs on Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a valid combination. TPUs are not supported.

Google::Cloud::Notebooks::V1::Service::SetInstanceMachineTypeRequest

Request for setting instance machine type.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

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

    Type: String

    Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types).

Google::Cloud::Notebooks::V1::Service::UpdateInstanceConfigRequest

Request for updating instance configurations.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Notebooks::V1::Service::SetInstanceLabelsRequest

Request for setting instance labels.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Notebooks::V1::Service::UpdateInstanceMetadataItemsRequest

Request for adding/changing metadata items for an instance.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Notebooks::V1::Service::UpdateInstanceMetadataItemsResponse

Response for adding/changing metadata items for an instance.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Notebooks::V1::Service::UpdateShieldedInstanceConfigRequest

Request for updating the Shielded Instance config for a notebook instance. You can only use this method on a stopped instance

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Notebooks::V1::Service::DeleteInstanceRequest

Request for deleting a notebook instance.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V1::Service::StartInstanceRequest

Request for starting a notebook instance

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V1::Service::StopInstanceRequest

Request for stopping a notebook instance

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V1::Service::ResetInstanceRequest

Request for resetting a notebook instance

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V1::Service::ReportInstanceInfoRequest

Request for notebook instances to report information to Notebooks API.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

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

    Type: String

    Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

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

    Type: Message (Google::Cloud::Notebooks::V1::Service::ReportInstanceInfoRequest::MetadataEntry)

    The metadata reported to Notebooks API. This will be merged to the instance metadata store

Google::Cloud::Notebooks::V1::Service::IsInstanceUpgradeableRequest

Request for checking if a notebook instance is upgradeable.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

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

    Type: Enum (Google::Cloud::Notebooks::V1::UpgradeType)

    Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance.

Google::Cloud::Notebooks::V1::Service::IsInstanceUpgradeableResponse

Response for checking if a notebook instance is upgradeable.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    If an instance is upgradeable.

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

    Type: String

    The version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

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

    Type: String

    Additional information about upgrade.

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

    Type: String

    The new image self link this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.

Google::Cloud::Notebooks::V1::Service::GetInstanceHealthRequest

Request for checking if a notebook instance is healthy.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

Google::Cloud::Notebooks::V1::Service::GetInstanceHealthResponse

Response for checking if a notebook instance is healthy.

Inherits from Protobuf::Message.

Accessors

Enum: GetInstanceHealthResponse::HealthState

  • HEALTH_STATE_UNSPECIFIED => 0

  • HEALTHY => 1

  • UNHEALTHY => 2

  • AGENT_NOT_INSTALLED => 3

  • AGENT_NOT_RUNNING => 4

Google::Cloud::Notebooks::V1::Service::UpgradeInstanceRequest

Request for upgrading a notebook instance

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

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

    Type: Enum (Google::Cloud::Notebooks::V1::UpgradeType)

    Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance.

Google::Cloud::Notebooks::V1::Service::RollbackInstanceRequest

Request for rollbacking a notebook instance

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

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

    Type: String

    Required. The snapshot for rollback. Example: `projects/test-project/global/snapshots/krwlzipynril`.

Google::Cloud::Notebooks::V1::Service::UpgradeInstanceInternalRequest

Request for upgrading a notebook instance from within the VM

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

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

    Type: String

    Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

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

    Type: Enum (Google::Cloud::Notebooks::V1::UpgradeType)

    Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance.

Google::Cloud::Notebooks::V1::Service::ListEnvironmentsRequest

Request for listing environments.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}`

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

    Type: Int32

    Maximum return size of the list call.

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

    Type: String

    A previous returned page token that can be used to continue listing from the last result.

Google::Cloud::Notebooks::V1::Service::DiagnoseInstanceRequest

Request for creating a notebook instance diagnostic file.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`

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

    Type: Message (Google::Cloud::Notebooks::V1::DiagnosticConfig::DiagnosticConfig)

    Required. Defines flags that are used to run the diagnostic tool

Google::Cloud::Notebooks::V1::Service::ListEnvironmentsResponse

Response for listing environments.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Notebooks::V1::Environment::Environment)

    A list of returned environments.

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

    Type: String

    A page token that can be used to continue listing from the last result in the next list call.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Notebooks::V1::Service::GetEnvironmentRequest

Request for getting a notebook environment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`

Google::Cloud::Notebooks::V1::Service::CreateEnvironmentRequest

Request for creating a notebook environment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}`

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

    Type: String

    Required. User-defined unique ID of this environment. The `environment_id` must be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.

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

    Type: Message (Google::Cloud::Notebooks::V1::Environment::Environment)

    Required. The environment to be created.

Google::Cloud::Notebooks::V1::Service::DeleteEnvironmentRequest

Request for deleting a notebook environment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`

Google::Cloud::Notebooks::V1::Service::ListSchedulesRequest

Request for listing scheduled notebook job.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `parent=projects/{project_id}/locations/{location}`

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

    Type: Int32

    Maximum return size of the list call.

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

    Type: String

    A previous returned page token that can be used to continue listing from the last result.

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

    Type: String

    Filter applied to resulting schedules.

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

    Type: String

    Field to order results by.

Google::Cloud::Notebooks::V1::Service::ListSchedulesResponse

Response for listing scheduled notebook job.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Notebooks::V1::Schedule::Schedule)

    A list of returned instances.

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

    Type: String

    Page token that can be used to continue listing from the last result in the next list call.

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

    Type: String

    Schedules that could not be reached. For example:

    ['projects/{project_id}/location/{location}/schedules/monthly_digest',
     'projects/{project_id}/location/{location}/schedules/weekly_sentiment']

Google::Cloud::Notebooks::V1::Service::GetScheduleRequest

Request for getting scheduled notebook.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}`

Google::Cloud::Notebooks::V1::Service::DeleteScheduleRequest

Request for deleting an Schedule

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}`

Google::Cloud::Notebooks::V1::Service::CreateScheduleRequest

Request for created scheduled notebooks

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `parent=projects/{project_id}/locations/{location}`

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

    Type: String

    Required. User-defined unique ID of this schedule.

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

    Type: Message (Google::Cloud::Notebooks::V1::Schedule::Schedule)

    Required. The schedule to be created.

Google::Cloud::Notebooks::V1::Service::TriggerScheduleRequest

Request for created scheduled notebooks

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`

Google::Cloud::Notebooks::V1::Service::ListExecutionsRequest

Request for listing scheduled notebook executions.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `parent=projects/{project_id}/locations/{location}`

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

    Type: Int32

    Maximum return size of the list call.

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

    Type: String

    A previous returned page token that can be used to continue listing from the last result.

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

    Type: String

    Filter applied to resulting executions. Currently only supports filtering executions by a specified `schedule_id`. Format: `schedule_id=<Schedule_ID>`

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

    Type: String

    Sort by field.

Google::Cloud::Notebooks::V1::Service::ListExecutionsResponse

Response for listing scheduled notebook executions

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Notebooks::V1::Execution::Execution)

    A list of returned instances.

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

    Type: String

    Page token that can be used to continue listing from the last result in the next list call.

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

    Type: String

    Executions IDs that could not be reached. For example:

    ['projects/{project_id}/location/{location}/executions/imagenet_test1',
     'projects/{project_id}/location/{location}/executions/classifier_train1']

Google::Cloud::Notebooks::V1::Service::GetExecutionRequest

Request for getting scheduled notebook execution

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/executions/{execution_id}`

Google::Cloud::Notebooks::V1::Service::DeleteExecutionRequest

Request for deleting a scheduled notebook execution

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `projects/{project_id}/locations/{location}/executions/{execution_id}`

Google::Cloud::Notebooks::V1::Service::CreateExecutionRequest

Request to create notebook execution

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Format: `parent=projects/{project_id}/locations/{location}`

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

    Type: String

    Required. User-defined unique ID of this execution.

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

    Type: Message (Google::Cloud::Notebooks::V1::Execution::Execution)

    Required. The execution to be created.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Notebooks::V1::Service::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.