Class DroppedLabelsOuterClass.DroppedLabels.Builder

public static final class DroppedLabelsOuterClass.DroppedLabels.Builder extends GeneratedMessageV3.Builder<DroppedLabelsOuterClass.DroppedLabels.Builder> implements DroppedLabelsOuterClass.DroppedLabelsOrBuilder

A set of (label, value) pairs which were dropped during aggregation, attached to google.api.Distribution.Exemplars in google.api.Distribution values during aggregation. These values are used in combination with the label values that remain on the aggregated Distribution timeseries to construct the full label set for the exemplar values. The resulting full label set may be used to identify the specific task/job/instance (for example) which may be contributing to a long-tail, while allowing the storage savings of only storing aggregated distribution values for a large group. Note that there are no guarantees on ordering of the labels from exemplar-to-exemplar and from distribution-to-distribution in the same stream, and there may be duplicates. It is up to clients to resolve any ambiguities.

Protobuf type google.monitoring.v3.DroppedLabels

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DroppedLabelsOuterClass.DroppedLabels.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

build()

public DroppedLabelsOuterClass.DroppedLabels build()
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels

buildPartial()

public DroppedLabelsOuterClass.DroppedLabels buildPartial()
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels

clear()

public DroppedLabelsOuterClass.DroppedLabels.Builder clear()
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DroppedLabelsOuterClass.DroppedLabels.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

clearLabel()

public DroppedLabelsOuterClass.DroppedLabels.Builder clearLabel()
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DroppedLabelsOuterClass.DroppedLabels.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

clone()

public DroppedLabelsOuterClass.DroppedLabels.Builder clone()
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

containsLabel(String key)

public boolean containsLabel(String key)

Map from label to its value, for all labels dropped in any aggregation.

map<string, string> label = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public DroppedLabelsOuterClass.DroppedLabels getDefaultInstanceForType()
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabel()

public Map<String,String> getLabel()

Use #getLabelMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelCount()

public int getLabelCount()

Map from label to its value, for all labels dropped in any aggregation.

map<string, string> label = 1;

Returns
TypeDescription
int

getLabelMap()

public Map<String,String> getLabelMap()

Map from label to its value, for all labels dropped in any aggregation.

map<string, string> label = 1;

Returns
TypeDescription
Map<String,String>

getLabelOrDefault(String key, String defaultValue)

public String getLabelOrDefault(String key, String defaultValue)

Map from label to its value, for all labels dropped in any aggregation.

map<string, string> label = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelOrThrow(String key)

public String getLabelOrThrow(String key)

Map from label to its value, for all labels dropped in any aggregation.

map<string, string> label = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabel()

public Map<String,String> getMutableLabel()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DroppedLabelsOuterClass.DroppedLabels.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DroppedLabelsOuterClass.DroppedLabels.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

mergeFrom(DroppedLabelsOuterClass.DroppedLabels other)

public DroppedLabelsOuterClass.DroppedLabels.Builder mergeFrom(DroppedLabelsOuterClass.DroppedLabels other)
Parameter
NameDescription
otherDroppedLabelsOuterClass.DroppedLabels
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DroppedLabelsOuterClass.DroppedLabels.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

putAllLabel(Map<String,String> values)

public DroppedLabelsOuterClass.DroppedLabels.Builder putAllLabel(Map<String,String> values)

Map from label to its value, for all labels dropped in any aggregation.

map<string, string> label = 1;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder

putLabel(String key, String value)

public DroppedLabelsOuterClass.DroppedLabels.Builder putLabel(String key, String value)

Map from label to its value, for all labels dropped in any aggregation.

map<string, string> label = 1;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder

removeLabel(String key)

public DroppedLabelsOuterClass.DroppedLabels.Builder removeLabel(String key)

Map from label to its value, for all labels dropped in any aggregation.

map<string, string> label = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DroppedLabelsOuterClass.DroppedLabels.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DroppedLabelsOuterClass.DroppedLabels.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DroppedLabelsOuterClass.DroppedLabels.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides