public static class ConfigSource.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addLocation(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object key,
Location location) |
ConfigSource.Builder |
addValue(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value,
Location location)
Adds the scalar value to the field which must be repeated.
|
ConfigSource |
build() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType()
Return the descriptor for the message being built.
|
ConfigSource.Builder |
mergeFrom(ConfigSource config)
Merges values from the given config message into this builder.
|
ConfigSource.Builder |
mergeFromWithProto3Semantics(ConfigSource config)
Merges values from the given config source into this builder.
|
ConfigSource.Builder |
setValue(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object key,
java.lang.Object value,
Location location)
Sets the given scalar value on the field.
|
ConfigSource.Builder |
withAddedBuilder(com.google.protobuf.Descriptors.FieldDescriptor field,
ConfigSource.BuildAction action)
Constructs a sub-builder for an added element of the repeated message field, and calls action
on it.
|
ConfigSource.Builder |
withBuilder(com.google.protobuf.Descriptors.FieldDescriptor field,
ConfigSource.BuildAction action)
Constructs a sub-builder for given field and calls the action on it.
|
ConfigSource.Builder |
withBuilder(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object key,
ConfigSource.BuildAction action)
Constructs a sub-builder for given field and calls the action on it.
|
ConfigSource.Builder |
withBuilderAt(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
ConfigSource.BuildAction action)
Constructs a sub-builder for a element at given index of the repeated message field, and
calls action on it.
|
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public ConfigSource build()
public ConfigSource.Builder setValue(com.google.protobuf.Descriptors.FieldDescriptor field, @Nullable java.lang.Object key, java.lang.Object value, @Nullable Location location)
public void addLocation(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object key,
Location location)
public ConfigSource.Builder addValue(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value, @Nullable Location location)
public ConfigSource.Builder withBuilder(com.google.protobuf.Descriptors.FieldDescriptor field, ConfigSource.BuildAction action)
public ConfigSource.Builder withBuilder(com.google.protobuf.Descriptors.FieldDescriptor field, @Nullable java.lang.Object key, ConfigSource.BuildAction action)
public ConfigSource.Builder withAddedBuilder(com.google.protobuf.Descriptors.FieldDescriptor field, ConfigSource.BuildAction action)
public ConfigSource.Builder withBuilderAt(com.google.protobuf.Descriptors.FieldDescriptor field, int index, ConfigSource.BuildAction action)
public ConfigSource.Builder mergeFrom(ConfigSource config)
public ConfigSource.Builder mergeFromWithProto3Semantics(ConfigSource config)