NAME

Google::Cloud::Automl::V1::Model - Compiled Protocol Buffers messages for google/cloud/automl/v1/model.proto

SYNOPSIS

use Google::Cloud::Automl::V1::Model;

my $msg = Google::Cloud::Automl::V1::Model::Model->new({
    translation_model_metadata => $translation_model_metadata,
    image_classification_model_metadata => $image_classification_model_metadata,
    text_classification_model_metadata => $text_classification_model_metadata,
    image_object_detection_model_metadata => $image_object_detection_model_metadata,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/automl/v1/model.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::Automl::V1::Model::Model

API proto representing a trained machine learning model.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Automl::V1::Translation::TranslationModelMetadata)

    Metadata for translation models.

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

    Type: Message (Google::Cloud::Automl::V1::Image::ImageClassificationModelMetadata)

    Metadata for image classification models.

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

    Type: Message (Google::Cloud::Automl::V1::Text::TextClassificationModelMetadata)

    Metadata for text classification models.

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

    Type: Message (Google::Cloud::Automl::V1::Image::ImageObjectDetectionModelMetadata)

    Metadata for image object detection models.

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

    Type: Message (Google::Cloud::Automl::V1::Text::TextExtractionModelMetadata)

    Metadata for text extraction models.

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

    Type: Message (Google::Cloud::Automl::V1::Text::TextSentimentModelMetadata)

    Metadata for text sentiment models.

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

    Type: String

    Output only. Resource name of the model. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`

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

    Type: String

    Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. It must start with a letter.

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

    Type: String

    Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.

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

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

    Output only. Timestamp when the model training finished and can be used for prediction.

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

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

    Output only. Timestamp when this model was last updated.

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

    Type: Enum (Google::Cloud::Automl::V1::Model::DeploymentState)

    Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.

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

    Type: String

    Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

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

    Type: Message (Google::Cloud::Automl::V1::Model::Model::LabelsEntry)

    Optional. The labels with user-defined metadata to organize your model.

    Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.

    See https://goo.gl/xmQnxf for more information on and examples of labels.

Enum: Model::DeploymentState

  • DEPLOYMENT_STATE_UNSPECIFIED => 0

  • DEPLOYED => 1

  • UNDEPLOYED => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Automl::V1::Model::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.