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(java.lang.String key)Set of labels that describe the resource.java.util.Map<java.lang.String,java.lang.String>getLabels()Deprecated.intgetLabelsCount()Set of labels that describe the resource.java.util.Map<java.lang.String,java.lang.String>getLabelsMap()Set of labels that describe the resource.java.lang.StringgetLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)Set of labels that describe the resource.java.lang.StringgetLabelsOrThrow(java.lang.String key)Set of labels that describe the resource.java.lang.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
java.lang.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(java.lang.String key)
Set of labels that describe the resource.
map<string, string> labels = 2;
-
getLabels
@Deprecated java.util.Map<java.lang.String,java.lang.String> getLabels()
Deprecated.UsegetLabelsMap()instead.
-
getLabelsMap
java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
Set of labels that describe the resource.
map<string, string> labels = 2;
-
getLabelsOrDefault
java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)Set of labels that describe the resource.
map<string, string> labels = 2;
-
getLabelsOrThrow
java.lang.String getLabelsOrThrow(java.lang.String key)
Set of labels that describe the resource.
map<string, string> labels = 2;
-
-