Send feedback
Class HistogramQueryResult.Builder (0.6.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.6.0 keyboard_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.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 ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HistogramQueryResult . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public HistogramQueryResult build ()
Returns
buildPartial()
public HistogramQueryResult buildPartial ()
Returns
clear()
public HistogramQueryResult . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public HistogramQueryResult . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearHistogram()
public HistogramQueryResult . Builder clearHistogram ()
Returns
clearHistogramQuery()
public HistogramQueryResult . Builder clearHistogramQuery ()
Requested histogram expression.
string histogram_query = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public HistogramQueryResult . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public HistogramQueryResult . Builder clone ()
Returns
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
Returns
getDefaultInstanceForType()
public HistogramQueryResult getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getHistogram()
public Map<String , Long > getHistogram ()
Returns
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
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;
Returns
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
Returns
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
Returns
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()
public Map<String , Long > getMutableHistogram ()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField ( int number )
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField ( int number )
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(HistogramQueryResult other)
public HistogramQueryResult . Builder mergeFrom ( HistogramQueryResult other )
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HistogramQueryResult . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public HistogramQueryResult . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HistogramQueryResult . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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;
Parameter
Name Description values
Map <String ,java.lang.Long >
Returns
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;
Parameters
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public HistogramQueryResult . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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.
Returns
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.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HistogramQueryResult . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HistogramQueryResult . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]