Package io.opencensus.resource
Class AutoValue_Resource
- java.lang.Object
-
- io.opencensus.resource.Resource
-
- io.opencensus.resource.AutoValue_Resource
-
@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_Resource extends Resource
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.String>
labels
private java.lang.String
type
-
Fields inherited from class io.opencensus.resource.Resource
MAX_LENGTH
-
-
Constructor Summary
Constructors Constructor Description AutoValue_Resource(java.lang.String type, java.util.Map<java.lang.String,java.lang.String> labels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.lang.String>
getLabels()
Returns a map of labels that describe the resource.java.lang.String
getType()
Returns the type identifier for the resource.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class io.opencensus.resource.Resource
create, createFromEnvironmentVariables, mergeResources, parseResourceLabels, parseResourceType
-
-
-
-
Method Detail
-
getType
@Nullable public java.lang.String getType()
Description copied from class:Resource
Returns the type identifier for the resource.
-
getLabels
public java.util.Map<java.lang.String,java.lang.String> getLabels()
Description copied from class:Resource
Returns a map of labels that describe the resource.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-