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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ExtendedSourceContextImplements
ExtendedSourceContextOrBuilderStatic Fields
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
Type | Description |
int |
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static ExtendedSourceContext getDefaultInstance()
Type | Description |
ExtendedSourceContext |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static ExtendedSourceContext.Builder newBuilder()
Type | Description |
ExtendedSourceContext.Builder |
newBuilder(ExtendedSourceContext prototype)
public static ExtendedSourceContext.Builder newBuilder(ExtendedSourceContext prototype)
Name | Description |
prototype | ExtendedSourceContext |
Type | Description |
ExtendedSourceContext.Builder |
parseDelimitedFrom(InputStream input)
public static ExtendedSourceContext parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
ExtendedSourceContext |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ExtendedSourceContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ExtendedSourceContext |
Type | Description |
IOException |
parseFrom(byte[] data)
public static ExtendedSourceContext parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
ExtendedSourceContext |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ExtendedSourceContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ExtendedSourceContext |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static ExtendedSourceContext parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
ExtendedSourceContext |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExtendedSourceContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ExtendedSourceContext |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static ExtendedSourceContext parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
ExtendedSourceContext |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ExtendedSourceContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ExtendedSourceContext |
Type | Description |
IOException |
parseFrom(InputStream input)
public static ExtendedSourceContext parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
ExtendedSourceContext |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ExtendedSourceContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ExtendedSourceContext |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static ExtendedSourceContext parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
ExtendedSourceContext |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ExtendedSourceContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ExtendedSourceContext |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<ExtendedSourceContext> parser()
Type | Description |
Parser<ExtendedSourceContext> |
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Labels with user defined metadata.
map<string, string> labels = 2;
Name | Description |
key | String |
Type | Description |
boolean |
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getContext()
public SourceContext getContext()
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Type | Description |
SourceContext | The context. |
getContextOrBuilder()
public SourceContextOrBuilder getContextOrBuilder()
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Type | Description |
SourceContextOrBuilder |
getDefaultInstanceForType()
public ExtendedSourceContext getDefaultInstanceForType()
Type | Description |
ExtendedSourceContext |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Labels with user defined metadata.
map<string, string> labels = 2;
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels with user defined metadata.
map<string, string> labels = 2;
Type | Description |
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;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels with user defined metadata.
map<string, string> labels = 2;
Name | Description |
key | String |
Type | Description |
String |
getParserForType()
public Parser<ExtendedSourceContext> getParserForType()
Type | Description |
Parser<ExtendedSourceContext> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasContext()
public boolean hasContext()
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Type | Description |
boolean | Whether the context field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public ExtendedSourceContext.Builder newBuilderForType()
Type | Description |
ExtendedSourceContext.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ExtendedSourceContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
ExtendedSourceContext.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public ExtendedSourceContext.Builder toBuilder()
Type | Description |
ExtendedSourceContext.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |