NAME

Google::Cloud::Translation::V3::Common - Compiled Protocol Buffers messages for google/cloud/translate/v3/common.proto

SYNOPSIS

use Google::Cloud::Translation::V3::Common;

my $msg = Google::Cloud::Translation::V3::Common::GcsInputSource->new({
    input_uri => $input_uri,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Translation::V3::Common::GcsInputSource->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/translate/v3/common.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::Translation::V3::Common::GcsInputSource

The Google Cloud Storage location for the input content.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Source data URI. For example, `gs://my_bucket/my_object`.

Google::Cloud::Translation::V3::Common::FileInputSource

An inlined file.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The file's mime type.

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

    Type: Bytes

    Required. The file's byte contents.

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

    Type: String

    Required. The file's display name.

Google::Cloud::Translation::V3::Common::GcsOutputDestination

The Google Cloud Storage location for the output content.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Google Cloud Storage URI to output directory. For example, `gs://bucket/directory`. The requesting user must have write permission to the bucket. The directory will be created if it doesn't exist.

Google::Cloud::Translation::V3::Common::GlossaryEntry

Represents a single entry in a glossary.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::Common::GlossaryTerm

Represents a single glossary term

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The language for this glossary term.

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

    Type: String

    The text for the glossary term.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Translation::V3::Common::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.