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.v4beta1.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()
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.
- (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 |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public HistogramQueryResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getHistogram()
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.
- (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 |
---|
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.
- (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(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 |
---|
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.
- (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 |
---|
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()
public Map<String,Long> getMutableHistogram()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(HistogramQueryResult other)
public HistogramQueryResult.Builder mergeFrom(HistogramQueryResult other)
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.
- (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;
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;
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 |
---|
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