public class ConfigSource
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConfigSource.BuildAction
An interface which represents a build action performed on a builder for a sub-configuration.
|
static class |
ConfigSource.Builder
Represents a builder for a configuration message.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.Message |
getConfig()
Returns the config message.
|
Location |
getLocation(com.google.protobuf.Message message,
java.lang.String fieldName,
java.lang.Object elementKey)
Returns the location of the given named field in the (sub)message, with optional element key
for maps or repeated fields.
|
static ConfigSource.Builder |
newBuilder(com.google.protobuf.Message defaultInstance)
Constructs a new empty builder, based on the given default instance for the underlying
config message.
|
ConfigSource.Builder |
toBuilder()
Constructs a builder from this configuration message.
|
public com.google.protobuf.Message getConfig()
public Location getLocation(com.google.protobuf.Message message, java.lang.String fieldName, @Nullable java.lang.Object elementKey)
SimpleLocation.UNKNOWN if the location is not known.public ConfigSource.Builder toBuilder()
public static ConfigSource.Builder newBuilder(com.google.protobuf.Message defaultInstance)
An initialized message can also be passed, however, no source location tracking will happen for it.