NAME
Google::Cloud::Contentwarehouse::V1::Histogram - Compiled Protocol Buffers messages for google/cloud/contentwarehouse/v1/histogram.proto
SYNOPSIS
use Google::Cloud::Contentwarehouse::V1::Histogram;
my $msg = Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQuery->new({
histogram_query => $histogram_query,
require_precise_result_size => $require_precise_result_size,
filters => $filters,
});
# Read or update a field
my $val = $msg->histogram_query();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQuery->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/contentwarehouse/v1/histogram.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::Contentwarehouse::V1::Histogram::HistogramQuery
The histogram request.
Inherits from Protobuf::Message.
Accessors
$msg->histogram_query()/$msg->histogram_query($value)Type:
StringAn expression specifies a histogram request against matching documents for searches.
See [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries] for details about syntax.
$msg->require_precise_result_size()/$msg->require_precise_result_size($value)Type:
BoolControls if the histogram query requires the return of a precise count. Enable this flag may adversely impact performance.
Defaults to true.
$msg->filters()/$msg->filters($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryPropertyNameFilter)Optional. Filter the result of histogram query by the property names. It only works with histogram query count('FilterableProperties'). It is an optional. It will perform histogram on all the property names for all the document schemas. Setting this field will have a better performance.
Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryPropertyNameFilter
Inherits from Protobuf::Message.
Accessors
$msg->document_schemas()/$msg->document_schemas($value)Type:
StringThis filter specifies the exact document schema(s) [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set.
At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
$msg->property_names()/$msg->property_names($value)Type:
StringIt is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".
$msg->y_axis()/$msg->y_axis($value)Type:
Enum(Google::Cloud::Contentwarehouse::V1::HistogramQueryPropertyNameFilter::HistogramYAxis)By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not set.
Enum: HistogramQueryPropertyNameFilter::HistogramYAxis
HISTOGRAM_YAXIS_DOCUMENT=>0HISTOGRAM_YAXIS_PROPERTY=>1
Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryResult
Histogram result that matches [HistogramQuery][google.cloud.contentwarehouse.v1.HistogramQuery] specified in searches.
Inherits from Protobuf::Message.
Accessors
$msg->histogram_query()/$msg->histogram_query($value)Type:
StringRequested histogram expression.
$msg->histogram()/$msg->histogram($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::Histogram::HistogramQueryResult::HistogramEntry)A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value.
The key format is:
* (for string histogram) string values stored in the field.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Contentwarehouse::V1::Histogram::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.