Package io.opencensus.proto.resource.v1
Interface ResourceOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Resource,Resource.Builder
public interface ResourceOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Set of labels that describe the resource.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Set of labels that describe the resource.Map<String,String>getLabelsMap()Set of labels that describe the resource.StringgetLabelsOrDefault(String key, String defaultValue)Set of labels that describe the resource.StringgetLabelsOrThrow(String key)Set of labels that describe the resource.StringgetType()Type identifier for the resource.com.google.protobuf.ByteStringgetTypeBytes()Type identifier for the resource.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getType
String getType()
Type identifier for the resource.
string type = 1;- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()
Type identifier for the resource.
string type = 1;- Returns:
- The bytes for type.
-
getLabelsCount
int getLabelsCount()
Set of labels that describe the resource.
map<string, string> labels = 2;
-
containsLabels
boolean containsLabels(String key)
Set of labels that describe the resource.
map<string, string> labels = 2;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Set of labels that describe the resource.
map<string, string> labels = 2;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Set of labels that describe the resource.
map<string, string> labels = 2;
-
-