public static final class HistogramQueryResult.Builder extends GeneratedMessageV3.Builder<HistogramQueryResult.Builder> implements HistogramQueryResultOrBuilder
Histogram result that matches [HistogramQuery][google.cloud.talent.v4beta1.HistogramQuery] specified in searches.Protobuf type
google.cloud.talent.v4beta1.HistogramQueryResult
Modifier and Type | Method and Description |
---|---|
HistogramQueryResult.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
HistogramQueryResult |
build() |
HistogramQueryResult |
buildPartial() |
HistogramQueryResult.Builder |
clear() |
HistogramQueryResult.Builder |
clearField(Descriptors.FieldDescriptor field) |
HistogramQueryResult.Builder |
clearHistogram() |
HistogramQueryResult.Builder |
clearHistogramQuery()
Requested histogram expression.
|
HistogramQueryResult.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
HistogramQueryResult.Builder |
clone() |
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.
|
HistogramQueryResult |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Map<String,Long> |
getHistogram()
Deprecated.
|
int |
getHistogramCount()
A map from the values of the facet associated with distinct values to the
number of matching entries with corresponding value.
|
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.
|
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.
|
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.
|
String |
getHistogramQuery()
Requested histogram expression.
|
ByteString |
getHistogramQueryBytes()
Requested histogram expression.
|
Map<String,Long> |
getMutableHistogram()
Deprecated.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
HistogramQueryResult.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
HistogramQueryResult.Builder |
mergeFrom(HistogramQueryResult other) |
HistogramQueryResult.Builder |
mergeFrom(Message other) |
HistogramQueryResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
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.
|
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.
|
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.
|
HistogramQueryResult.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
HistogramQueryResult.Builder |
setHistogramQuery(String value)
Requested histogram expression.
|
HistogramQueryResult.Builder |
setHistogramQueryBytes(ByteString value)
Requested histogram expression.
|
HistogramQueryResult.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
HistogramQueryResult.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public HistogramQueryResult.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public HistogramQueryResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public HistogramQueryResult build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public HistogramQueryResult buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public HistogramQueryResult.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public HistogramQueryResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public HistogramQueryResult.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public HistogramQueryResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public HistogramQueryResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public HistogramQueryResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public HistogramQueryResult.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<HistogramQueryResult.Builder>
public HistogramQueryResult.Builder mergeFrom(HistogramQueryResult other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public HistogramQueryResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<HistogramQueryResult.Builder>
IOException
public String getHistogramQuery()
Requested histogram expression.
string histogram_query = 1;
getHistogramQuery
in interface HistogramQueryResultOrBuilder
public ByteString getHistogramQueryBytes()
Requested histogram expression.
string histogram_query = 1;
getHistogramQueryBytes
in interface HistogramQueryResultOrBuilder
public HistogramQueryResult.Builder setHistogramQuery(String value)
Requested histogram expression.
string histogram_query = 1;
value
- The histogramQuery to set.public HistogramQueryResult.Builder clearHistogramQuery()
Requested histogram expression.
string histogram_query = 1;
public HistogramQueryResult.Builder setHistogramQueryBytes(ByteString value)
Requested histogram expression.
string histogram_query = 1;
value
- The bytes for histogramQuery to set.public int getHistogramCount()
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;
getHistogramCount
in interface HistogramQueryResultOrBuilder
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;
containsHistogram
in interface HistogramQueryResultOrBuilder
@Deprecated public Map<String,Long> getHistogram()
getHistogramMap()
instead.getHistogram
in interface HistogramQueryResultOrBuilder
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;
getHistogramMap
in interface HistogramQueryResultOrBuilder
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;
getHistogramOrDefault
in interface HistogramQueryResultOrBuilder
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;
getHistogramOrThrow
in interface HistogramQueryResultOrBuilder
public HistogramQueryResult.Builder clearHistogram()
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;
@Deprecated public Map<String,Long> getMutableHistogram()
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;
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;
public final HistogramQueryResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
public final HistogramQueryResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<HistogramQueryResult.Builder>
Copyright © 2022 Google LLC. All rights reserved.