Service Client: Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::AnalyticsHubServiceClient
Client stub representing the remote AnalyticsHubService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to bigquery.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange - Compiled Protocol Buffers messages for google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto
SYNOPSIS
use Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange;
my $msg = Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DataExchange->new({
name => $name,
display_name => $display_name,
description => $description,
primary_contact => $primary_contact,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DataExchange->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/bigquery/dataexchange/v1beta1/dataexchange.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::Bigquery::Dataexchange::V1beta1::Dataexchange::DataExchange
A data exchange is a container that lets you share data. Along with the descriptive information about the data exchange, it contains listings that reference shared datasets.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The resource name of the data exchange. e.g. `projects/myproject/locations/US/dataExchanges/123`.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. Human-readable display name of the data exchange. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and must not start or end with spaces. Default value is an empty string. Max length: 63 bytes.
$msg->description()/$msg->description($value)Type:
StringOptional. Description of the data exchange. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes.
$msg->primary_contact()/$msg->primary_contact($value)Type:
StringOptional. Email or URL of the primary point of contact of the data exchange. Max Length: 1000 bytes.
$msg->documentation()/$msg->documentation($value)Type:
StringOptional. Documentation describing the data exchange.
$msg->listing_count()/$msg->listing_count($value)Type:
Int32Output only. Number of listings contained in the data exchange.
$msg->icon()/$msg->icon($value)Type:
BytesOptional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API only performs validation on size of the encoded data. Note: For byte fields, the content of the fields are base64-encoded (which increases the size of the data by 33-36%) when using JSON on the wire.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DataProvider
Contains details of the data provider.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOptional. Name of the data provider.
$msg->primary_contact()/$msg->primary_contact($value)Type:
StringOptional. Email or URL of the data provider. Max Length: 1000 bytes.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::Publisher
Contains details of the listing publisher.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOptional. Name of the listing publisher.
$msg->primary_contact()/$msg->primary_contact($value)Type:
StringOptional. Email or URL of the listing publisher. Max Length: 1000 bytes.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DestinationDatasetReference
Contains the reference that identifies a destination bigquery dataset.
Inherits from Protobuf::Message.
Accessors
$msg->dataset_id()/$msg->dataset_id($value)Type:
StringRequired. A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
$msg->project_id()/$msg->project_id($value)Type:
StringRequired. The ID of the project containing this dataset.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DestinationDataset
Defines the destination bigquery dataset.
Inherits from Protobuf::Message.
Accessors
$msg->dataset_reference()/$msg->dataset_reference($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DestinationDatasetReference)Required. A reference that identifies the destination dataset.
$msg->friendly_name()/$msg->friendly_name($value)Type:
Message(Google::Protobuf::Wrappers::StringValue)Optional. A descriptive name for the dataset.
$msg->description()/$msg->description($value)Type:
Message(Google::Protobuf::Wrappers::StringValue)Optional. A user-friendly description of the dataset.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DestinationDataset::LabelsEntry)Optional. The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See https://cloud.google.com/resource-manager/docs/creating-managing-labels for more information.
$msg->location()/$msg->location($value)Type:
StringRequired. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::Listing
A listing is what gets published into a data exchange that a subscriber can subscribe to. It contains a reference to the data source along with descriptive information that will help subscribers find and subscribe the data.
Inherits from Protobuf::Message.
Accessors
$msg->bigquery_dataset()/$msg->bigquery_dataset($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::Listing::BigQueryDatasetSource)Required. Shared dataset i.e. BigQuery dataset source.
$msg->name()/$msg->name($value)Type:
StringOutput only. The resource name of the listing. e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces. Default value is an empty string. Max length: 63 bytes.
$msg->description()/$msg->description($value)Type:
StringOptional. Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes.
$msg->primary_contact()/$msg->primary_contact($value)Type:
StringOptional. Email or URL of the primary point of contact of the listing. Max Length: 1000 bytes.
$msg->documentation()/$msg->documentation($value)Type:
StringOptional. Documentation describing the listing.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Bigquery::Dataexchange::V1beta1::Listing::State)Output only. Current state of the listing.
$msg->icon()/$msg->icon($value)Type:
BytesOptional. Base64 encoded image representing the listing. Max Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API only performs validation on size of the encoded data. Note: For byte fields, the contents of the field are base64-encoded (which increases the size of the data by 33-36%) when using JSON on the wire.
$msg->data_provider()/$msg->data_provider($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DataProvider)Optional. Details of the data provider who owns the source data.
$msg->categories()/$msg->categories($value)Type:
Enum(Google::Cloud::Bigquery::Dataexchange::V1beta1::Listing::Category)Optional. Categories of the listing. Up to two categories are allowed.
$msg->publisher()/$msg->publisher($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::Publisher)Optional. Details of the publisher who owns the listing and who can share the source data.
$msg->request_access()/$msg->request_access($value)Type:
StringOptional. Email or URL of the request access of the listing. Subscribers can use this reference to request access. Max Length: 1000 bytes.
Enum: Listing::State
STATE_UNSPECIFIED=>0ACTIVE=>1
Enum: Listing::Category
CATEGORY_UNSPECIFIED=>0CATEGORY_OTHERS=>1CATEGORY_ADVERTISING_AND_MARKETING=>2CATEGORY_COMMERCE=>3CATEGORY_CLIMATE_AND_ENVIRONMENT=>4CATEGORY_DEMOGRAPHICS=>5CATEGORY_ECONOMICS=>6CATEGORY_EDUCATION=>7CATEGORY_ENERGY=>8CATEGORY_FINANCIAL=>9CATEGORY_GAMING=>10CATEGORY_GEOSPATIAL=>11CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE=>12CATEGORY_MEDIA=>13CATEGORY_PUBLIC_SECTOR=>14CATEGORY_RETAIL=>15CATEGORY_SPORTS=>16CATEGORY_SCIENCE_AND_RESEARCH=>17CATEGORY_TRANSPORTATION_AND_LOGISTICS=>18CATEGORY_TRAVEL_AND_TOURISM=>19
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::ListDataExchangesRequest
Message for requesting the list of data exchanges.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource path of the data exchanges. e.g. `projects/myproject/locations/US`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.
$msg->page_token()/$msg->page_token($value)Type:
StringPage token, returned by a previous call, to request the next page of results.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::ListDataExchangesResponse
Message for response to the list of data exchanges.
Inherits from Protobuf::Message.
Accessors
$msg->data_exchanges()/$msg->data_exchanges($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DataExchange)The list of data exchanges.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token to request the next page of results.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::ListOrgDataExchangesRequest
Message for requesting the list of data exchanges from projects in an organization and location.
Inherits from Protobuf::Message.
Accessors
$msg->organization()/$msg->organization($value)Type:
StringRequired. The organization resource path of the projects containing DataExchanges. e.g. `organizations/myorg/locations/US`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.
$msg->page_token()/$msg->page_token($value)Type:
StringPage token, returned by a previous call, to request the next page of results.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::ListOrgDataExchangesResponse
Message for response to listing data exchanges in an organization and location.
Inherits from Protobuf::Message.
Accessors
$msg->data_exchanges()/$msg->data_exchanges($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DataExchange)The list of data exchanges.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token to request the next page of results.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::GetDataExchangeRequest
Message for getting a data exchange.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the data exchange. e.g. `projects/myproject/locations/US/dataExchanges/123`.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::CreateDataExchangeRequest
Message for creating a data exchange.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource path of the data exchange. e.g. `projects/myproject/locations/US`.
$msg->data_exchange_id()/$msg->data_exchange_id($value)Type:
StringRequired. The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces. Max length: 100 bytes.
$msg->data_exchange()/$msg->data_exchange($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DataExchange)Required. The data exchange to create.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::UpdateDataExchangeRequest
Message for updating a data exchange.
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. Field mask specifies the fields to update in the data exchange resource. The fields specified in the `updateMask` are relative to the resource and are not a full request.
$msg->data_exchange()/$msg->data_exchange($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DataExchange)Required. The data exchange to update.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DeleteDataExchangeRequest
Message for deleting a data exchange.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The full name of the data exchange resource that you want to delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::ListListingsRequest
Message for requesting the list of listings.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource path of the listing. e.g. `projects/myproject/locations/US/dataExchanges/123`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection.
$msg->page_token()/$msg->page_token($value)Type:
StringPage token, returned by a previous call, to request the next page of results.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::ListListingsResponse
Message for response to the list of Listings.
Inherits from Protobuf::Message.
Accessors
$msg->listings()/$msg->listings($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::Listing)The list of Listing.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token to request the next page of results.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::GetListingRequest
Message for getting a listing.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the listing. e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::CreateListingRequest
Message for creating a listing.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource path of the listing. e.g. `projects/myproject/locations/US/dataExchanges/123`.
$msg->listing_id()/$msg->listing_id($value)Type:
StringRequired. The ID of the listing to create. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces. Max length: 100 bytes.
$msg->listing()/$msg->listing($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::Listing)Required. The listing to create.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::UpdateListingRequest
Message for updating a Listing.
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. Field mask specifies the fields to update in the listing resource. The fields specified in the `updateMask` are relative to the resource and are not a full request.
$msg->listing()/$msg->listing($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::Listing)Required. The listing to update.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DeleteListingRequest
Message for deleting a listing.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the listing to delete. e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::SubscribeListingRequest
Message for subscribing to a listing.
Inherits from Protobuf::Message.
Accessors
$msg->destination_dataset()/$msg->destination_dataset($value)Type:
Message(Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::DestinationDataset)BigQuery destination dataset to create for the subscriber.
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the listing that you want to subscribe to. e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::SubscribeListingResponse
Message for response when you subscribe to a listing.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Dataexchange::V1beta1::Dataexchange::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.