Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class HistogramQueryResult.Builder (0.33.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 0.33.0keyboard_arrow_down
public static final class HistogramQueryResult . Builder extends GeneratedMessageV3 . Builder<HistogramQueryResult . Builder > implements HistogramQueryResultOrBuilder
Histogram result that matches
HistogramQuery specified
in searches.
Protobuf type google.cloud.contentwarehouse.v1.HistogramQueryResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HistogramQueryResult . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public HistogramQueryResult build ()
buildPartial()
public HistogramQueryResult buildPartial ()
clear()
public HistogramQueryResult . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public HistogramQueryResult . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearHistogram()
public HistogramQueryResult . Builder clearHistogram ()
clearHistogramQuery()
public HistogramQueryResult . Builder clearHistogramQuery ()
Requested histogram expression.
string histogram_query = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public HistogramQueryResult . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public HistogramQueryResult . Builder clone ()
Overrides
containsHistogram(String key)
public boolean containsHistogram ( String key )
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.
map<string, int64> histogram = 2;
Parameter
Name
Description
key
String
getDefaultInstanceForType()
public HistogramQueryResult getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getHistogram() (deprecated)
public Map<String , Long > getHistogram ()
getHistogramCount()
public int getHistogramCount ()
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.
map<string, int64> histogram = 2;
Returns
Type
Description
int
getHistogramMap()
public Map<String , Long > getHistogramMap ()
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.
map<string, int64> histogram = 2;
getHistogramOrDefault(String key, long defaultValue)
public long getHistogramOrDefault ( String key , long defaultValue )
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.
map<string, int64> histogram = 2;
Parameters
Name
Description
key
String
defaultValue
long
Returns
Type
Description
long
getHistogramOrThrow(String key)
public long getHistogramOrThrow ( String key )
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.
map<string, int64> histogram = 2;
Parameter
Name
Description
key
String
Returns
Type
Description
long
getHistogramQuery()
public String getHistogramQuery ()
Requested histogram expression.
string histogram_query = 1;
Returns
Type
Description
String
The histogramQuery.
getHistogramQueryBytes()
public ByteString getHistogramQueryBytes ()
Requested histogram expression.
string histogram_query = 1;
Returns
Type
Description
ByteString
The bytes for histogramQuery.
getMutableHistogram() (deprecated)
public Map<String , Long > getMutableHistogram ()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(HistogramQueryResult other)
public HistogramQueryResult . Builder mergeFrom ( HistogramQueryResult other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HistogramQueryResult . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public HistogramQueryResult . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HistogramQueryResult . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
putAllHistogram(Map<String,Long> values)
public HistogramQueryResult . Builder putAllHistogram ( Map<String , Long > values )
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.
map<string, int64> histogram = 2;
putHistogram(String key, long value)
public HistogramQueryResult . Builder putHistogram ( String key , long value )
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.
map<string, int64> histogram = 2;
removeHistogram(String key)
public HistogramQueryResult . Builder removeHistogram ( String key )
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.
map<string, int64> histogram = 2;
Parameter
Name
Description
key
String
setField(Descriptors.FieldDescriptor field, Object value)
public HistogramQueryResult . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setHistogramQuery(String value)
public HistogramQueryResult . Builder setHistogramQuery ( String value )
Requested histogram expression.
string histogram_query = 1;
Parameter
Name
Description
value
String
The histogramQuery to set.
setHistogramQueryBytes(ByteString value)
public HistogramQueryResult . Builder setHistogramQueryBytes ( ByteString value )
Requested histogram expression.
string histogram_query = 1;
Parameter
Name
Description
value
ByteString
The bytes for histogramQuery to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HistogramQueryResult . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HistogramQueryResult . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-26 UTC."],[],[]]