NAME
Google::Cloud::Datacatalog::V1::DataSource - Compiled Protocol Buffers messages for google/cloud/datacatalog/v1/data_source.proto
SYNOPSIS
use Google::Cloud::Datacatalog::V1::DataSource;
my $msg = Google::Cloud::Datacatalog::V1::DataSource::DataSource->new({
service => $service,
resource => $resource,
source_entry => $source_entry,
storage_properties => $storage_properties,
});
# Read or update a field
my $val = $msg->service();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Datacatalog::V1::DataSource::DataSource->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/datacatalog/v1/data_source.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::Datacatalog::V1::DataSource::DataSource
Physical location of an entry.
Inherits from Protobuf::Message.
Accessors
$msg->service()/$msg->service($value)Type:
Enum(Google::Cloud::Datacatalog::V1::DataSource::Service)Service that physically stores the data.
$msg->resource()/$msg->resource($value)Type:
StringFull name of a resource as defined by the service. For example:
`//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
$msg->source_entry()/$msg->source_entry($value)Type:
StringOutput only. Data Catalog entry name, if applicable.
$msg->storage_properties()/$msg->storage_properties($value)Type:
Message(Google::Cloud::Datacatalog::V1::DataSource::StorageProperties)Detailed properties of the underlying storage.
Enum: DataSource::Service
SERVICE_UNSPECIFIED=>0CLOUD_STORAGE=>1BIGQUERY=>2
Google::Cloud::Datacatalog::V1::DataSource::StorageProperties
Details the properties of the underlying storage.
Inherits from Protobuf::Message.
Accessors
$msg->file_pattern()/$msg->file_pattern($value)Type:
StringPatterns to identify a set of files for this fileset.
Examples of a valid `file_pattern`:
* `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir` directory * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir` and all subdirectories recursively * `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name` * `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel character followed by `.txt` in `bucket_name` * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match the `a/*/b` pattern, such as `a/c/b`, `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`$msg->file_type()/$msg->file_type($value)Type:
StringFile type in MIME format, for example, `text/plain`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Datacatalog::V1::DataSource::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.