Class HistogramQueryResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HistogramQueryResult.Builder>
com.google.cloud.talent.v4.HistogramQueryResult.Builder
All Implemented Interfaces:
HistogramQueryResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
HistogramQueryResult

public static final class HistogramQueryResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<HistogramQueryResult.Builder> implements HistogramQueryResultOrBuilder
 Histogram result that matches
 [HistogramQuery][google.cloud.talent.v4.HistogramQuery] specified in
 searches.
 
Protobuf type google.cloud.talent.v4.HistogramQueryResult
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HistogramQueryResult.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HistogramQueryResult.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HistogramQueryResult.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<HistogramQueryResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<HistogramQueryResult.Builder>
    • getDefaultInstanceForType

      public HistogramQueryResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public HistogramQueryResult build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public HistogramQueryResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public HistogramQueryResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HistogramQueryResult.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<HistogramQueryResult.Builder>
    • mergeFrom

      public HistogramQueryResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HistogramQueryResult.Builder>
      Throws:
      IOException
    • getHistogramQuery

      public String getHistogramQuery()
       Requested histogram expression.
       
      string histogram_query = 1;
      Specified by:
      getHistogramQuery in interface HistogramQueryResultOrBuilder
      Returns:
      The histogramQuery.
    • getHistogramQueryBytes

      public com.google.protobuf.ByteString getHistogramQueryBytes()
       Requested histogram expression.
       
      string histogram_query = 1;
      Specified by:
      getHistogramQueryBytes in interface HistogramQueryResultOrBuilder
      Returns:
      The bytes for histogramQuery.
    • setHistogramQuery

      public HistogramQueryResult.Builder setHistogramQuery(String value)
       Requested histogram expression.
       
      string histogram_query = 1;
      Parameters:
      value - The histogramQuery to set.
      Returns:
      This builder for chaining.
    • clearHistogramQuery

      public HistogramQueryResult.Builder clearHistogramQuery()
       Requested histogram expression.
       
      string histogram_query = 1;
      Returns:
      This builder for chaining.
    • setHistogramQueryBytes

      public HistogramQueryResult.Builder setHistogramQueryBytes(com.google.protobuf.ByteString value)
       Requested histogram expression.
       
      string histogram_query = 1;
      Parameters:
      value - The bytes for histogramQuery to set.
      Returns:
      This builder for chaining.
    • getHistogramCount

      public int getHistogramCount()
      Description copied from interface: HistogramQueryResultOrBuilder
       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;
      Specified by:
      getHistogramCount in interface HistogramQueryResultOrBuilder
    • containsHistogram

      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;
      Specified by:
      containsHistogram in interface HistogramQueryResultOrBuilder
    • getHistogram

      @Deprecated public Map<String,Long> getHistogram()
      Deprecated.
      Use getHistogramMap() instead.
      Specified by:
      getHistogram in interface HistogramQueryResultOrBuilder
    • 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;
      Specified by:
      getHistogramMap in interface HistogramQueryResultOrBuilder
    • getHistogramOrDefault

      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;
      Specified by:
      getHistogramOrDefault in interface HistogramQueryResultOrBuilder
    • getHistogramOrThrow

      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;
      Specified by:
      getHistogramOrThrow in interface HistogramQueryResultOrBuilder
    • clearHistogram

      public HistogramQueryResult.Builder clearHistogram()
    • removeHistogram

      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;
    • getMutableHistogram

      @Deprecated public Map<String,Long> getMutableHistogram()
      Deprecated.
      Use alternate mutation accessors instead.
    • putHistogram

      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;
    • putAllHistogram

      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;