Class DroppedLabelsOuterClass.DroppedLabels.Builder (3.3.6)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DroppedLabelsOuterClass.DroppedLabels build()
Returns

buildPartial()

public DroppedLabelsOuterClass.DroppedLabels buildPartial()
Returns

clear()

public DroppedLabelsOuterClass.DroppedLabels.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLabel()

public DroppedLabelsOuterClass.DroppedLabels.Builder clearLabel()
Returns

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DroppedLabelsOuterClass.DroppedLabels.Builder clone()
Returns 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

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 Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(DroppedLabelsOuterClass.DroppedLabels other)

public DroppedLabelsOuterClass.DroppedLabels.Builder mergeFrom(DroppedLabelsOuterClass.DroppedLabels other)
Parameter Returns

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DroppedLabelsOuterClass.DroppedLabels.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns 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

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

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

setField(Descriptors.FieldDescriptor field, Object value)

public DroppedLabelsOuterClass.DroppedLabels.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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 Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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