Service Client: Google::Cloud::Dialogflow::V2beta1::Version::VersionsClient

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

target

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

credentials

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

NAME

Google::Cloud::Dialogflow::V2beta1::Version - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2beta1/version.proto

SYNOPSIS

use Google::Cloud::Dialogflow::V2beta1::Version;

my $msg = Google::Cloud::Dialogflow::V2beta1::Version::Version->new({
    name => $name,
    description => $description,
    version_number => $version_number,
    create_time => $create_time,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::V2beta1::Version::Version->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2beta1/version.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::Dialogflow::V2beta1::Version::Version

You can create multiple versions of your agent and publish them to separate environments.

When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent.

When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for:

- testing - development - production - etc.

For more information, see the [versions and environments guide](https://cloud.google.com/dialogflow/docs/agents-versions).

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The unique identifier of this agent version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`

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

    Type: String

    Optional. The developer-provided description of this version.

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

    Type: Int32

    Output only. The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.

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

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

    Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.

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

    Type: Enum (Google::Cloud::Dialogflow::V2beta1::Version::VersionStatus)

    Output only. The status of this version. This field is read-only and cannot be set by create and update methods.

Enum: Version::VersionStatus

  • VERSION_STATUS_UNSPECIFIED => 0

  • IN_PROGRESS => 1

  • READY => 2

  • FAILED => 3

Google::Cloud::Dialogflow::V2beta1::Version::ListVersionsRequest

The request message for [Versions.ListVersions][google.cloud.dialogflow.v2beta1.Versions.ListVersions].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The agent to list all versions from. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent`

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

    Type: Int32

    Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.

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

    Type: String

    Optional. The next_page_token value returned from a previous list request.

Google::Cloud::Dialogflow::V2beta1::Version::ListVersionsResponse

The response message for [Versions.ListVersions][google.cloud.dialogflow.v2beta1.Versions.ListVersions].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Version::Version)

    The list of agent versions. There will be a maximum number of items returned based on the page_size field in the request.

  • $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.

Google::Cloud::Dialogflow::V2beta1::Version::GetVersionRequest

The request message for [Versions.GetVersion][google.cloud.dialogflow.v2beta1.Versions.GetVersion].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`

Google::Cloud::Dialogflow::V2beta1::Version::CreateVersionRequest

The request message for [Versions.CreateVersion][google.cloud.dialogflow.v2beta1.Versions.CreateVersion].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The agent to create a version for. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent`

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Version::Version)

    Required. The version to create.

Google::Cloud::Dialogflow::V2beta1::Version::UpdateVersionRequest

The request message for [Versions.UpdateVersion][google.cloud.dialogflow.v2beta1.Versions.UpdateVersion].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Version::Version)

    Required. The version to update. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`

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

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

    Required. The mask to control which fields get updated.

Google::Cloud::Dialogflow::V2beta1::Version::DeleteVersionRequest

The request message for [Versions.DeleteVersion][google.cloud.dialogflow.v2beta1.Versions.DeleteVersion].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the version to delete. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>`

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2beta1::Version::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.