- 1.55.0 (latest)
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.1.10
public static final class ExtendedSourceContext.Builder extends GeneratedMessageV3.Builder<ExtendedSourceContext.Builder> implements ExtendedSourceContextOrBuilder
An ExtendedSourceContext is a SourceContext combined with additional details describing the context.
Protobuf type google.devtools.source.v1.ExtendedSourceContext
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ExtendedSourceContext.BuilderImplements
ExtendedSourceContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExtendedSourceContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ExtendedSourceContext.Builder |
build()
public ExtendedSourceContext build()
Type | Description |
ExtendedSourceContext |
buildPartial()
public ExtendedSourceContext buildPartial()
Type | Description |
ExtendedSourceContext |
clear()
public ExtendedSourceContext.Builder clear()
Type | Description |
ExtendedSourceContext.Builder |
clearContext()
public ExtendedSourceContext.Builder clearContext()
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Type | Description |
ExtendedSourceContext.Builder |
clearField(Descriptors.FieldDescriptor field)
public ExtendedSourceContext.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ExtendedSourceContext.Builder |
clearLabels()
public ExtendedSourceContext.Builder clearLabels()
Type | Description |
ExtendedSourceContext.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ExtendedSourceContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ExtendedSourceContext.Builder |
clone()
public ExtendedSourceContext.Builder clone()
Type | Description |
ExtendedSourceContext.Builder |
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 |
getContext()
public SourceContext getContext()
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Type | Description |
SourceContext | The context. |
getContextBuilder()
public SourceContext.Builder getContextBuilder()
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Type | Description |
SourceContext.Builder |
getContextOrBuilder()
public SourceContextOrBuilder getContextOrBuilder()
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Type | Description |
SourceContextOrBuilder |
getDefaultInstanceForType()
public ExtendedSourceContext getDefaultInstanceForType()
Type | Description |
ExtendedSourceContext |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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 |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
hasContext()
public boolean hasContext()
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Type | Description |
boolean | Whether the context field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeContext(SourceContext value)
public ExtendedSourceContext.Builder mergeContext(SourceContext value)
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Name | Description |
value | SourceContext |
Type | Description |
ExtendedSourceContext.Builder |
mergeFrom(ExtendedSourceContext other)
public ExtendedSourceContext.Builder mergeFrom(ExtendedSourceContext other)
Name | Description |
other | ExtendedSourceContext |
Type | Description |
ExtendedSourceContext.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExtendedSourceContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ExtendedSourceContext.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ExtendedSourceContext.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ExtendedSourceContext.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExtendedSourceContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ExtendedSourceContext.Builder |
putAllLabels(Map<String,String> values)
public ExtendedSourceContext.Builder putAllLabels(Map<String,String> values)
Labels with user defined metadata.
map<string, string> labels = 2;
Name | Description |
values | Map<String,String> |
Type | Description |
ExtendedSourceContext.Builder |
putLabels(String key, String value)
public ExtendedSourceContext.Builder putLabels(String key, String value)
Labels with user defined metadata.
map<string, string> labels = 2;
Name | Description |
key | String |
value | String |
Type | Description |
ExtendedSourceContext.Builder |
removeLabels(String key)
public ExtendedSourceContext.Builder removeLabels(String key)
Labels with user defined metadata.
map<string, string> labels = 2;
Name | Description |
key | String |
Type | Description |
ExtendedSourceContext.Builder |
setContext(SourceContext value)
public ExtendedSourceContext.Builder setContext(SourceContext value)
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Name | Description |
value | SourceContext |
Type | Description |
ExtendedSourceContext.Builder |
setContext(SourceContext.Builder builderForValue)
public ExtendedSourceContext.Builder setContext(SourceContext.Builder builderForValue)
Any source context.
.google.devtools.source.v1.SourceContext context = 1;
Name | Description |
builderForValue | SourceContext.Builder |
Type | Description |
ExtendedSourceContext.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ExtendedSourceContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ExtendedSourceContext.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExtendedSourceContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ExtendedSourceContext.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ExtendedSourceContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ExtendedSourceContext.Builder |