Interface ExtendedSourceContextOrBuilder (1.16.0)

public interface ExtendedSourceContextOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Labels with user defined metadata.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getContext()

public abstract SourceContext getContext()

Any source context.

.google.devtools.source.v1.SourceContext context = 1;

Returns
TypeDescription
SourceContext

The context.

getContextOrBuilder()

public abstract SourceContextOrBuilder getContextOrBuilder()

Any source context.

.google.devtools.source.v1.SourceContext context = 1;

Returns
TypeDescription
SourceContextOrBuilder

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Labels with user defined metadata.

map<string, string> labels = 2;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Labels with user defined metadata.

map<string, string> labels = 2;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Labels with user defined metadata.

map<string, string> labels = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Labels with user defined metadata.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

hasContext()

public abstract boolean hasContext()

Any source context.

.google.devtools.source.v1.SourceContext context = 1;

Returns
TypeDescription
boolean

Whether the context field is set.