Class HistogramQueryResult.Builder (2.5.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 2.5.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.talent.v4.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. 
(for named numeric bucket) name specified in bucket() function, like
for bucket(0, MAX, "non-negative"), the key will be non-negative. 
(for anonymous numeric bucket) range formatted as <low>-<high>, for
example, 0-1000, MIN-0, and 0-MAX. 
 
 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. 
(for named numeric bucket) name specified in bucket() function, like
for bucket(0, MAX, "non-negative"), the key will be non-negative. 
(for anonymous numeric bucket) range formatted as <low>-<high>, for
example, 0-1000, MIN-0, and 0-MAX. 
 
 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. 
(for named numeric bucket) name specified in bucket() function, like
for bucket(0, MAX, "non-negative"), the key will be non-negative. 
(for anonymous numeric bucket) range formatted as <low>-<high>, for
example, 0-1000, MIN-0, and 0-MAX. 
 
 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. 
(for named numeric bucket) name specified in bucket() function, like
for bucket(0, MAX, "non-negative"), the key will be non-negative. 
(for anonymous numeric bucket) range formatted as <low>-<high>, for
example, 0-1000, MIN-0, and 0-MAX. 
 
 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. 
(for named numeric bucket) name specified in bucket() function, like
for bucket(0, MAX, "non-negative"), the key will be non-negative. 
(for anonymous numeric bucket) range formatted as <low>-<high>, for
example, 0-1000, MIN-0, and 0-MAX. 
 
 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 
  
    
      
        Name  
        Description  
       
      
        number  
        int  
       
     
  
  Returns 
  
  Overrides 
  
   
  internalGetMutableMapField(int number) 
  
    
protected   MapField   internalGetMutableMapField ( int   number )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        number  
        int  
       
     
  
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  mergeFrom(HistogramQueryResult other) 
  
    
public   HistogramQueryResult . Builder   mergeFrom ( HistogramQueryResult   other )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
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. 
(for named numeric bucket) name specified in bucket() function, like
for bucket(0, MAX, "non-negative"), the key will be non-negative. 
(for anonymous numeric bucket) range formatted as <low>-<high>, for
example, 0-1000, MIN-0, and 0-MAX. 
 
 map<string, int64> histogram = 2;
 
  Parameter 
  
  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. 
(for named numeric bucket) name specified in bucket() function, like
for bucket(0, MAX, "non-negative"), the key will be non-negative. 
(for anonymous numeric bucket) range formatted as <low>-<high>, for
example, 0-1000, MIN-0, and 0-MAX. 
 
 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. 
(for named numeric bucket) name specified in bucket() function, like
for bucket(0, MAX, "non-negative"), the key will be non-negative. 
(for anonymous numeric bucket) range formatted as <low>-<high>, for
example, 0-1000, MIN-0, and 0-MAX. 
 
 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 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  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-10-30 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-10-30 UTC."],[],[]]