Service Client: Google::Cloud::Channel::V1::ReportsService::CloudChannelReportsServiceClient
Client stub representing the remote CloudChannelReportsService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to channel.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Channel::V1::ReportsService - Compiled Protocol Buffers messages for google/cloud/channel/v1/reports_service.proto
SYNOPSIS
use Google::Cloud::Channel::V1::ReportsService;
my $msg = Google::Cloud::Channel::V1::ReportsService::RunReportJobRequest->new({
name => $name,
date_range => $date_range,
filter => $filter,
language_code => $language_code,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Channel::V1::ReportsService::RunReportJobRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/channel/v1/reports_service.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::Channel::V1::ReportsService::RunReportJobRequest
Request message for [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The report's resource name. Specifies the account and report used to generate report data. The report_id identifier is a UID (for example, `613bf59q`). Name uses the format: accounts/{account_id}/reports/{report_id}
$msg->date_range()/$msg->date_range($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::DateRange)Optional. The range of usage or invoice dates to include in the result.
$msg->filter()/$msg->filter($value)Type:
StringOptional. A structured string that defines conditions on dimension columns to restrict the report output.
Filters support logical operators (AND, OR, NOT) and conditional operators (=, !=, <, >, <=, and >=) using `column_id` as keys.
For example: `(customer:"accounts/C123abc/customers/S456def" OR customer:"accounts/C123abc/customers/S789ghi") AND invoice_start_date.year >= 2022`
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The BCP-47 language code, such as "en-US". If specified, the response is localized to the corresponding language code if the original data sources support it. Default is "en-US".
Google::Cloud::Channel::V1::ReportsService::RunReportJobResponse
Response message for [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob].
Inherits from Protobuf::Message.
Accessors
$msg->report_job()/$msg->report_job($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::ReportJob)Pass `report_job.name` to [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job] to retrieve the report's results.
$msg->report_metadata()/$msg->report_metadata($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::ReportResultsMetadata)The metadata for the report's results (display name, columns, row count, and date range). If you view this before the operation finishes, you may see incomplete data.
Google::Cloud::Channel::V1::ReportsService::FetchReportResultsRequest
Request message for [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults].
Inherits from Protobuf::Message.
Accessors
$msg->report_job()/$msg->report_job($value)Type:
StringRequired. The report job created by [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. Report_job uses the format: accounts/{account_id}/reportJobs/{report_job_id}
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Requested page size of the report. The server may return fewer results than requested. If you don't specify a page size, the server uses a sensible default (may change over time).
The maximum value is 30,000; the server will change larger values to 30,000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A token that specifies a page of results beyond the first page. Obtained through [FetchReportResultsResponse.next_page_token][google.cloud.channel.v1.FetchReportResultsResponse.next_page_token] of the previous [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] call.
$msg->partition_keys()/$msg->partition_keys($value)Type:
StringOptional. List of keys specifying which report partitions to return. If empty, returns all partitions.
Google::Cloud::Channel::V1::ReportsService::FetchReportResultsResponse
Response message for [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]. Contains a tabular representation of the report results.
Inherits from Protobuf::Message.
Accessors
$msg->report_metadata()/$msg->report_metadata($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::ReportResultsMetadata)The metadata for the report results (display name, columns, row count, and date ranges).
$msg->rows()/$msg->rows($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::Row)The report's lists of values. Each row follows the settings and ordering of the columns from `report_metadata`.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPass this token to [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] to retrieve the next page of results.
Google::Cloud::Channel::V1::ReportsService::ListReportsRequest
Request message for [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the partner account to list available reports for. Parent uses the format: accounts/{account_id}
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Requested page size of the report. The server might return fewer results than requested. If unspecified, returns 20 reports. The maximum value is 100.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A token that specifies a page of results beyond the first page. Obtained through [ListReportsResponse.next_page_token][google.cloud.channel.v1.ListReportsResponse.next_page_token] of the previous [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports] call.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The BCP-47 language code, such as "en-US". If specified, the response is localized to the corresponding language code if the original data sources support it. Default is "en-US".
Google::Cloud::Channel::V1::ReportsService::ListReportsResponse
Response message for [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports].
Inherits from Protobuf::Message.
Accessors
$msg->reports()/$msg->reports($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::Report)The reports available to the partner.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPass this token to [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] to retrieve the next page of results.
Google::Cloud::Channel::V1::ReportsService::ReportJob
The result of a [RunReportJob][] operation. Contains the name to use in [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job] and the status of the operation.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of a report job. Name uses the format: `accounts/{account_id}/reportJobs/{report_job_id}`
$msg->report_status()/$msg->report_status($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::ReportStatus)The current status of report generation.
Google::Cloud::Channel::V1::ReportsService::ReportResultsMetadata
The features describing the data. Returned by [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob] and [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults].
Inherits from Protobuf::Message.
Accessors
$msg->report()/$msg->report($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::Report)Details of the completed report.
$msg->row_count()/$msg->row_count($value)Type:
Int64The total number of rows of data in the final report.
$msg->date_range()/$msg->date_range($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::DateRange)The date range of reported usage.
$msg->preceding_date_range()/$msg->preceding_date_range($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::DateRange)The usage dates immediately preceding `date_range` with the same duration. Use this to calculate trending usage and costs. This is only populated if you request trending data.
For example, if `date_range` is July 1-15, `preceding_date_range` will be June 16-30.
Google::Cloud::Channel::V1::ReportsService::Column
The definition of a report column. Specifies the data properties in the corresponding position of the report rows.
Inherits from Protobuf::Message.
Accessors
$msg->column_id()/$msg->column_id($value)Type:
StringThe unique name of the column (for example, customer_domain, channel_partner, customer_cost). You can use column IDs in [RunReportJobRequest.filter][google.cloud.channel.v1.RunReportJobRequest.filter]. To see all reports and their columns, call [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports].
$msg->display_name()/$msg->display_name($value)Type:
StringThe column's display name.
$msg->data_type()/$msg->data_type($value)Type:
Enum(Google::Cloud::Channel::V1::Column::DataType)The type of the values for this column.
Enum: Column::DataType
DATA_TYPE_UNSPECIFIED=>0STRING=>1INT=>2DECIMAL=>3MONEY=>4DATE=>5DATE_TIME=>6
Google::Cloud::Channel::V1::ReportsService::DateRange
A representation of usage or invoice date ranges.
Inherits from Protobuf::Message.
Accessors
$msg->usage_start_date_time()/$msg->usage_start_date_time($value)Type:
Message(Google::Type::Datetime::DateTime)The earliest usage date time (inclusive).
If you use time groupings (daily, weekly, etc), each group uses midnight to midnight (Pacific time). The usage start date is rounded down to include all usage from the specified date. We recommend that clients pass `usage_start_date_time` in Pacific time.
$msg->usage_end_date_time()/$msg->usage_end_date_time($value)Type:
Message(Google::Type::Datetime::DateTime)The latest usage date time (exclusive).
If you use time groupings (daily, weekly, etc), each group uses midnight to midnight (Pacific time). The usage end date is rounded down to include all usage from the specified date. We recommend that clients pass `usage_start_date_time` in Pacific time.
$msg->invoice_start_date()/$msg->invoice_start_date($value)Type:
Message(Google::Type::Date::Date)The earliest invoice date (inclusive).
If this value is not the first day of a month, this will move it back to the first day of the given month.
$msg->invoice_end_date()/$msg->invoice_end_date($value)Type:
Message(Google::Type::Date::Date)The latest invoice date (inclusive).
If this value is not the last day of a month, this will move it forward to the last day of the given month.
Google::Cloud::Channel::V1::ReportsService::Row
A row of report values.
Inherits from Protobuf::Message.
Accessors
$msg->values()/$msg->values($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::ReportValue)The list of values in the row.
$msg->partition_key()/$msg->partition_key($value)Type:
StringThe key for the partition this row belongs to. This field is empty if the report is not partitioned.
Google::Cloud::Channel::V1::ReportsService::ReportValue
A single report value.
Inherits from Protobuf::Message.
Accessors
$msg->string_value()/$msg->string_value($value)Type:
StringA value of type `string`.
$msg->int_value()/$msg->int_value($value)Type:
Int64A value of type `int`.
$msg->decimal_value()/$msg->decimal_value($value)Type:
Message(Google::Type::Decimal::Decimal)A value of type `google.type.Decimal`, representing non-integer numeric values.
$msg->money_value()/$msg->money_value($value)Type:
Message(Google::Type::Money::Money)A value of type `google.type.Money` (currency code, whole units, decimal units).
$msg->date_value()/$msg->date_value($value)Type:
Message(Google::Type::Date::Date)A value of type `google.type.Date` (year, month, day).
$msg->date_time_value()/$msg->date_time_value($value)Type:
Message(Google::Type::Datetime::DateTime)A value of type `google.type.DateTime` (year, month, day, hour, minute, second, and UTC offset or timezone.)
Google::Cloud::Channel::V1::ReportsService::ReportStatus
Status of a report generation process.
Inherits from Protobuf::Message.
Accessors
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Channel::V1::ReportStatus::State)The current state of the report generation process.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The report generation's start time.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The report generation's completion time.
Enum: ReportStatus::State
STATE_UNSPECIFIED=>0STARTED=>1WRITING=>2AVAILABLE=>3FAILED=>4
Google::Cloud::Channel::V1::ReportsService::Report
The ID and description of a report that was used to generate report data. For example, "Google Cloud Daily Spend", "Google Workspace License Activity", etc.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The report's resource name. Specifies the account and report used to generate report data. The report_id identifier is a UID (for example, `613bf59q`).
Name uses the format: accounts/{account_id}/reports/{report_id}
$msg->display_name()/$msg->display_name($value)Type:
StringA human-readable name for this report.
$msg->columns()/$msg->columns($value)Type:
Message(Google::Cloud::Channel::V1::ReportsService::Column)The list of columns included in the report. This defines the schema of the report results.
$msg->description()/$msg->description($value)Type:
StringA description of other aspects of the report, such as the products it supports.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Channel::V1::ReportsService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.