Class ExtendedSourceContext (1.5.0)

public final class ExtendedSourceContext extends GeneratedMessageV3 implements ExtendedSourceContextOrBuilder

An ExtendedSourceContext is a SourceContext combined with additional details describing the context.

Protobuf type google.devtools.source.v1.ExtendedSourceContext

Static Fields

CONTEXT_FIELD_NUMBER

public static final int CONTEXT_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExtendedSourceContext getDefaultInstance()
Returns
TypeDescription
ExtendedSourceContext

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ExtendedSourceContext.Builder newBuilder()
Returns
TypeDescription
ExtendedSourceContext.Builder

newBuilder(ExtendedSourceContext prototype)

public static ExtendedSourceContext.Builder newBuilder(ExtendedSourceContext prototype)
Parameter
NameDescription
prototypeExtendedSourceContext
Returns
TypeDescription
ExtendedSourceContext.Builder

parseDelimitedFrom(InputStream input)

public static ExtendedSourceContext parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExtendedSourceContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ExtendedSourceContext parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExtendedSourceContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExtendedSourceContext parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExtendedSourceContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExtendedSourceContext parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExtendedSourceContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ExtendedSourceContext parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExtendedSourceContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ExtendedSourceContext parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExtendedSourceContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExtendedSourceContext
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ExtendedSourceContext> parser()
Returns
TypeDescription
Parser<ExtendedSourceContext>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Labels with user defined metadata.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getContext()

public SourceContext getContext()

Any source context.

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

Returns
TypeDescription
SourceContext

The context.

getContextOrBuilder()

public SourceContextOrBuilder getContextOrBuilder()

Any source context.

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

Returns
TypeDescription
SourceContextOrBuilder

getDefaultInstanceForType()

public ExtendedSourceContext getDefaultInstanceForType()
Returns
TypeDescription
ExtendedSourceContext

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels with user defined metadata.

map<string, string> labels = 2;

Returns
TypeDescription
int

getLabelsMap()

public 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 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 String getLabelsOrThrow(String key)

Labels with user defined metadata.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getParserForType()

public Parser<ExtendedSourceContext> getParserForType()
Returns
TypeDescription
Parser<ExtendedSourceContext>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasContext()

public boolean hasContext()

Any source context.

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

Returns
TypeDescription
boolean

Whether the context field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ExtendedSourceContext.Builder newBuilderForType()
Returns
TypeDescription
ExtendedSourceContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExtendedSourceContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ExtendedSourceContext.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ExtendedSourceContext.Builder toBuilder()
Returns
TypeDescription
ExtendedSourceContext.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException