io.opencensus.proto.resource.v1.ResourceOrBuilder Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opencensus/proto/resource/v1/resource.proto
package io.opencensus.proto.resource.v1;
public interface ResourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:opencensus.proto.resource.v1.Resource)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type identifier for the resource.
*
*
* string type = 1;
*/
java.lang.String getType();
/**
*
* Type identifier for the resource.
*
*
* string type = 1;
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
*
* Set of labels that describe the resource.
*
*
* map<string, string> labels = 2;
*/
int getLabelsCount();
/**
*
* Set of labels that describe the resource.
*
*
* map<string, string> labels = 2;
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Set of labels that describe the resource.
*
*
* map<string, string> labels = 2;
*/
java.util.Map
getLabelsMap();
/**
*
* Set of labels that describe the resource.
*
*
* map<string, string> labels = 2;
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Set of labels that describe the resource.
*
*
* map<string, string> labels = 2;
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
}