Class DataSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DataSource.Builder>
com.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
io.envoyproxy.envoy.config.core.v3.DataSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DataSourceOrBuilder, Cloneable
- Enclosing class:
DataSource
public static final class DataSource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
implements DataSourceOrBuilder
Data source consisting of a file, an inline value, or an environment variable. [#next-free-field: 6]Protobuf type
envoy.config.core.v3.DataSource-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectprivate intprivate WatchedDirectoryprivate com.google.protobuf.SingleFieldBuilder<WatchedDirectory, WatchedDirectory.Builder, WatchedDirectoryOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(DataSource result) private voidbuildPartialOneofs(DataSource result) clear()Environment variable data source.Local filesystem data source.Bytes inlined in the configuration.String inlined in the configuration.Watched directory that is watched for file changes.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEnvironment variable data source.com.google.protobuf.ByteStringEnvironment variable data source.Local filesystem data source.com.google.protobuf.ByteStringLocal filesystem data source.com.google.protobuf.ByteStringBytes inlined in the configuration.String inlined in the configuration.com.google.protobuf.ByteStringString inlined in the configuration.Watched directory that is watched for file changes.Watched directory that is watched for file changes.Watched directory that is watched for file changes.booleanEnvironment variable data source.booleanLocal filesystem data source.booleanBytes inlined in the configuration.booleanString inlined in the configuration.booleanWatched directory that is watched for file changes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<WatchedDirectory, WatchedDirectory.Builder, WatchedDirectoryOrBuilder> Watched directory that is watched for file changes.final booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DataSource other) Watched directory that is watched for file changes.setEnvironmentVariable(String value) Environment variable data source.setEnvironmentVariableBytes(com.google.protobuf.ByteString value) Environment variable data source.setFilename(String value) Local filesystem data source.setFilenameBytes(com.google.protobuf.ByteString value) Local filesystem data source.setInlineBytes(com.google.protobuf.ByteString value) Bytes inlined in the configuration.setInlineString(String value) String inlined in the configuration.setInlineStringBytes(com.google.protobuf.ByteString value) String inlined in the configuration.Watched directory that is watched for file changes.setWatchedDirectory(WatchedDirectory.Builder builderForValue) Watched directory that is watched for file changes.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
specifierCase_
private int specifierCase_ -
specifier_
-
bitField0_
private int bitField0_ -
watchedDirectory_
-
watchedDirectoryBuilder_
private com.google.protobuf.SingleFieldBuilder<WatchedDirectory, WatchedDirectory.Builder, WatchedDirectoryOrBuilder> watchedDirectoryBuilder_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
-
mergeFrom
public DataSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataSource.Builder>- Throws:
IOException
-
getSpecifierCase
- Specified by:
getSpecifierCasein interfaceDataSourceOrBuilder
-
clearSpecifier
-
hasFilename
public boolean hasFilename()Local filesystem data source.
string filename = 1 [(.validate.rules) = { ... }- Specified by:
hasFilenamein interfaceDataSourceOrBuilder- Returns:
- Whether the filename field is set.
-
getFilename
Local filesystem data source.
string filename = 1 [(.validate.rules) = { ... }- Specified by:
getFilenamein interfaceDataSourceOrBuilder- Returns:
- The filename.
-
getFilenameBytes
public com.google.protobuf.ByteString getFilenameBytes()Local filesystem data source.
string filename = 1 [(.validate.rules) = { ... }- Specified by:
getFilenameBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for filename.
-
setFilename
Local filesystem data source.
string filename = 1 [(.validate.rules) = { ... }- Parameters:
value- The filename to set.- Returns:
- This builder for chaining.
-
clearFilename
Local filesystem data source.
string filename = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setFilenameBytes
Local filesystem data source.
string filename = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for filename to set.- Returns:
- This builder for chaining.
-
hasInlineBytes
public boolean hasInlineBytes()Bytes inlined in the configuration.
bytes inline_bytes = 2;- Specified by:
hasInlineBytesin interfaceDataSourceOrBuilder- Returns:
- Whether the inlineBytes field is set.
-
getInlineBytes
public com.google.protobuf.ByteString getInlineBytes()Bytes inlined in the configuration.
bytes inline_bytes = 2;- Specified by:
getInlineBytesin interfaceDataSourceOrBuilder- Returns:
- The inlineBytes.
-
setInlineBytes
Bytes inlined in the configuration.
bytes inline_bytes = 2;- Parameters:
value- The inlineBytes to set.- Returns:
- This builder for chaining.
-
clearInlineBytes
Bytes inlined in the configuration.
bytes inline_bytes = 2;- Returns:
- This builder for chaining.
-
hasInlineString
public boolean hasInlineString()String inlined in the configuration.
string inline_string = 3;- Specified by:
hasInlineStringin interfaceDataSourceOrBuilder- Returns:
- Whether the inlineString field is set.
-
getInlineString
String inlined in the configuration.
string inline_string = 3;- Specified by:
getInlineStringin interfaceDataSourceOrBuilder- Returns:
- The inlineString.
-
getInlineStringBytes
public com.google.protobuf.ByteString getInlineStringBytes()String inlined in the configuration.
string inline_string = 3;- Specified by:
getInlineStringBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for inlineString.
-
setInlineString
String inlined in the configuration.
string inline_string = 3;- Parameters:
value- The inlineString to set.- Returns:
- This builder for chaining.
-
clearInlineString
String inlined in the configuration.
string inline_string = 3;- Returns:
- This builder for chaining.
-
setInlineStringBytes
String inlined in the configuration.
string inline_string = 3;- Parameters:
value- The bytes for inlineString to set.- Returns:
- This builder for chaining.
-
hasEnvironmentVariable
public boolean hasEnvironmentVariable()Environment variable data source.
string environment_variable = 4 [(.validate.rules) = { ... }- Specified by:
hasEnvironmentVariablein interfaceDataSourceOrBuilder- Returns:
- Whether the environmentVariable field is set.
-
getEnvironmentVariable
Environment variable data source.
string environment_variable = 4 [(.validate.rules) = { ... }- Specified by:
getEnvironmentVariablein interfaceDataSourceOrBuilder- Returns:
- The environmentVariable.
-
getEnvironmentVariableBytes
public com.google.protobuf.ByteString getEnvironmentVariableBytes()Environment variable data source.
string environment_variable = 4 [(.validate.rules) = { ... }- Specified by:
getEnvironmentVariableBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for environmentVariable.
-
setEnvironmentVariable
Environment variable data source.
string environment_variable = 4 [(.validate.rules) = { ... }- Parameters:
value- The environmentVariable to set.- Returns:
- This builder for chaining.
-
clearEnvironmentVariable
Environment variable data source.
string environment_variable = 4 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setEnvironmentVariableBytes
Environment variable data source.
string environment_variable = 4 [(.validate.rules) = { ... }- Parameters:
value- The bytes for environmentVariable to set.- Returns:
- This builder for chaining.
-
hasWatchedDirectory
public boolean hasWatchedDirectory()Watched directory that is watched for file changes. If this is set explicitly, the file specified in the ``filename`` field will be reloaded when relevant file move events occur. .. note:: This field only makes sense when the ``filename`` field is set. .. note:: Envoy only updates when the file is replaced by a file move, and not when the file is edited in place. .. note:: Not all use cases of ``DataSource`` support watching directories. It depends on the specific usage of the ``DataSource``. See the documentation of the parent message for details.
.envoy.config.core.v3.WatchedDirectory watched_directory = 5;- Specified by:
hasWatchedDirectoryin interfaceDataSourceOrBuilder- Returns:
- Whether the watchedDirectory field is set.
-
getWatchedDirectory
Watched directory that is watched for file changes. If this is set explicitly, the file specified in the ``filename`` field will be reloaded when relevant file move events occur. .. note:: This field only makes sense when the ``filename`` field is set. .. note:: Envoy only updates when the file is replaced by a file move, and not when the file is edited in place. .. note:: Not all use cases of ``DataSource`` support watching directories. It depends on the specific usage of the ``DataSource``. See the documentation of the parent message for details.
.envoy.config.core.v3.WatchedDirectory watched_directory = 5;- Specified by:
getWatchedDirectoryin interfaceDataSourceOrBuilder- Returns:
- The watchedDirectory.
-
setWatchedDirectory
Watched directory that is watched for file changes. If this is set explicitly, the file specified in the ``filename`` field will be reloaded when relevant file move events occur. .. note:: This field only makes sense when the ``filename`` field is set. .. note:: Envoy only updates when the file is replaced by a file move, and not when the file is edited in place. .. note:: Not all use cases of ``DataSource`` support watching directories. It depends on the specific usage of the ``DataSource``. See the documentation of the parent message for details.
.envoy.config.core.v3.WatchedDirectory watched_directory = 5; -
setWatchedDirectory
Watched directory that is watched for file changes. If this is set explicitly, the file specified in the ``filename`` field will be reloaded when relevant file move events occur. .. note:: This field only makes sense when the ``filename`` field is set. .. note:: Envoy only updates when the file is replaced by a file move, and not when the file is edited in place. .. note:: Not all use cases of ``DataSource`` support watching directories. It depends on the specific usage of the ``DataSource``. See the documentation of the parent message for details.
.envoy.config.core.v3.WatchedDirectory watched_directory = 5; -
mergeWatchedDirectory
Watched directory that is watched for file changes. If this is set explicitly, the file specified in the ``filename`` field will be reloaded when relevant file move events occur. .. note:: This field only makes sense when the ``filename`` field is set. .. note:: Envoy only updates when the file is replaced by a file move, and not when the file is edited in place. .. note:: Not all use cases of ``DataSource`` support watching directories. It depends on the specific usage of the ``DataSource``. See the documentation of the parent message for details.
.envoy.config.core.v3.WatchedDirectory watched_directory = 5; -
clearWatchedDirectory
Watched directory that is watched for file changes. If this is set explicitly, the file specified in the ``filename`` field will be reloaded when relevant file move events occur. .. note:: This field only makes sense when the ``filename`` field is set. .. note:: Envoy only updates when the file is replaced by a file move, and not when the file is edited in place. .. note:: Not all use cases of ``DataSource`` support watching directories. It depends on the specific usage of the ``DataSource``. See the documentation of the parent message for details.
.envoy.config.core.v3.WatchedDirectory watched_directory = 5; -
getWatchedDirectoryBuilder
Watched directory that is watched for file changes. If this is set explicitly, the file specified in the ``filename`` field will be reloaded when relevant file move events occur. .. note:: This field only makes sense when the ``filename`` field is set. .. note:: Envoy only updates when the file is replaced by a file move, and not when the file is edited in place. .. note:: Not all use cases of ``DataSource`` support watching directories. It depends on the specific usage of the ``DataSource``. See the documentation of the parent message for details.
.envoy.config.core.v3.WatchedDirectory watched_directory = 5; -
getWatchedDirectoryOrBuilder
Watched directory that is watched for file changes. If this is set explicitly, the file specified in the ``filename`` field will be reloaded when relevant file move events occur. .. note:: This field only makes sense when the ``filename`` field is set. .. note:: Envoy only updates when the file is replaced by a file move, and not when the file is edited in place. .. note:: Not all use cases of ``DataSource`` support watching directories. It depends on the specific usage of the ``DataSource``. See the documentation of the parent message for details.
.envoy.config.core.v3.WatchedDirectory watched_directory = 5;- Specified by:
getWatchedDirectoryOrBuilderin interfaceDataSourceOrBuilder
-
internalGetWatchedDirectoryFieldBuilder
private com.google.protobuf.SingleFieldBuilder<WatchedDirectory, WatchedDirectory.Builder, WatchedDirectoryOrBuilder> internalGetWatchedDirectoryFieldBuilder()Watched directory that is watched for file changes. If this is set explicitly, the file specified in the ``filename`` field will be reloaded when relevant file move events occur. .. note:: This field only makes sense when the ``filename`` field is set. .. note:: Envoy only updates when the file is replaced by a file move, and not when the file is edited in place. .. note:: Not all use cases of ``DataSource`` support watching directories. It depends on the specific usage of the ``DataSource``. See the documentation of the parent message for details.
.envoy.config.core.v3.WatchedDirectory watched_directory = 5;
-