Class DroppedLabelsOuterClass.DroppedLabels.Builder (3.47.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DroppedLabelsOuterClass.DroppedLabels.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

build()

public DroppedLabelsOuterClass.DroppedLabels build()
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels

buildPartial()

public DroppedLabelsOuterClass.DroppedLabels buildPartial()
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels

clear()

public DroppedLabelsOuterClass.DroppedLabels.Builder clear()
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DroppedLabelsOuterClass.DroppedLabels.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

clearLabel()

public DroppedLabelsOuterClass.DroppedLabels.Builder clearLabel()
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DroppedLabelsOuterClass.DroppedLabels.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

clone()

public DroppedLabelsOuterClass.DroppedLabels.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public DroppedLabelsOuterClass.DroppedLabels getDefaultInstanceForType()
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabel() (deprecated)

public Map<String,String> getLabel()

Use #getLabelMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableLabel() (deprecated)

public Map<String,String> getMutableLabel()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DroppedLabelsOuterClass.DroppedLabels.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DroppedLabelsOuterClass.DroppedLabels.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

mergeFrom(DroppedLabelsOuterClass.DroppedLabels other)

public DroppedLabelsOuterClass.DroppedLabels.Builder mergeFrom(DroppedLabelsOuterClass.DroppedLabels other)
Parameter
Name Description
other DroppedLabelsOuterClass.DroppedLabels
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DroppedLabelsOuterClass.DroppedLabels.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DroppedLabelsOuterClass.DroppedLabels.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DroppedLabelsOuterClass.DroppedLabels.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DroppedLabelsOuterClass.DroppedLabels.Builder
Overrides