Interface ExtendedSourceContextOrBuilder (1.44.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
Name Description
key String
Returns
Type Description
boolean

getContext()

public abstract SourceContext getContext()

Any source context.

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

Returns
Type Description
SourceContext

The context.

getContextOrBuilder()

public abstract SourceContextOrBuilder getContextOrBuilder()

Any source context.

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

Returns
Type Description
SourceContextOrBuilder

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Labels with user defined metadata.

map<string, string> labels = 2;

Returns
Type Description
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Labels with user defined metadata.

map<string, string> labels = 2;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Labels with user defined metadata.

map<string, string> labels = 2;

Parameter
Name Description
key String
Returns
Type Description
String

hasContext()

public abstract boolean hasContext()

Any source context.

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

Returns
Type Description
boolean

Whether the context field is set.