Interface ExtendedSourceContextOrBuilder (1.7.0)

publicinterface ExtendedSourceContextOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

publicabstractbooleancontainsLabels(Stringkey)

Labels with user defined metadata.

map<string, string> labels = 2;

Parameter
Name Description
key String
Returns
Type Description

getContext()

publicabstractSourceContextgetContext()

Any source context.

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

Returns
Type Description
SourceContext

The context.

getContextOrBuilder()

publicabstractSourceContextOrBuildergetContextOrBuilder()

Any source context.

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

Returns
Type Description

getLabels()

publicabstractMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description

getLabelsCount()

publicabstractintgetLabelsCount()

Labels with user defined metadata.

map<string, string> labels = 2;

Returns
Type Description
int

getLabelsMap()

publicabstractMap<String,String>getLabelsMap()

Labels with user defined metadata.

map<string, string> labels = 2;

Returns
Type Description

getLabelsOrDefault(String key, String defaultValue)

publicabstractStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Labels with user defined metadata.

map<string, string> labels = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description

getLabelsOrThrow(String key)

publicabstractStringgetLabelsOrThrow(Stringkey)

Labels with user defined metadata.

map<string, string> labels = 2;

Parameter
Name Description
key String
Returns
Type Description

hasContext()

publicabstractbooleanhasContext()

Any source context.

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

Returns
Type Description
boolean

Whether the context field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.