Package | Description |
---|---|
com.google.cloud |
Core classes for the
google-cloud library. |
Modifier and Type | Method and Description |
---|---|
MonitoredResource.Builder |
MonitoredResource.Builder.addLabel(String key,
String value)
Adds a label to the labels of the monitored resource.
|
MonitoredResource.Builder |
MonitoredResource.Builder.clearLabels()
Clears all the labels of the monitored resource.
|
static MonitoredResource.Builder |
MonitoredResource.newBuilder(String type)
Returns a builder for
MonitoredResource objects given the resource's type. |
MonitoredResource.Builder |
MonitoredResource.Builder.setLabels(Map<String,String> labels)
Sets the values for all the labels required by the corresponding monitored resource
descriptor (see
MonitoredResourceDescriptor.getLabels() . |
MonitoredResource.Builder |
MonitoredResource.Builder.setType(String type)
Sets the monitored resource type.
|
MonitoredResource.Builder |
MonitoredResource.toBuilder()
Returns a builder for this
MonitoredResource object. |
Copyright © 2019 Google LLC. All rights reserved.