Class DataSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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 typeenvoy.config.core.v3.DataSource
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private java.lang.Objectspecifier_private intspecifierCase_private WatchedDirectorywatchedDirectory_private com.google.protobuf.SingleFieldBuilder<WatchedDirectory,WatchedDirectory.Builder,WatchedDirectoryOrBuilder>watchedDirectoryBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSourcebuild()DataSourcebuildPartial()private voidbuildPartial0(DataSource result)private voidbuildPartialOneofs(DataSource result)DataSource.Builderclear()DataSource.BuilderclearEnvironmentVariable()Environment variable data source.DataSource.BuilderclearFilename()Local filesystem data source.DataSource.BuilderclearInlineBytes()Bytes inlined in the configuration.DataSource.BuilderclearInlineString()String inlined in the configuration.DataSource.BuilderclearSpecifier()DataSource.BuilderclearWatchedDirectory()Watched directory that is watched for file changes.DataSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetEnvironmentVariable()Environment variable data source.com.google.protobuf.ByteStringgetEnvironmentVariableBytes()Environment variable data source.java.lang.StringgetFilename()Local filesystem data source.com.google.protobuf.ByteStringgetFilenameBytes()Local filesystem data source.com.google.protobuf.ByteStringgetInlineBytes()Bytes inlined in the configuration.java.lang.StringgetInlineString()String inlined in the configuration.com.google.protobuf.ByteStringgetInlineStringBytes()String inlined in the configuration.DataSource.SpecifierCasegetSpecifierCase()WatchedDirectorygetWatchedDirectory()Watched directory that is watched for file changes.WatchedDirectory.BuildergetWatchedDirectoryBuilder()Watched directory that is watched for file changes.private com.google.protobuf.SingleFieldBuilder<WatchedDirectory,WatchedDirectory.Builder,WatchedDirectoryOrBuilder>getWatchedDirectoryFieldBuilder()Watched directory that is watched for file changes.WatchedDirectoryOrBuildergetWatchedDirectoryOrBuilder()Watched directory that is watched for file changes.booleanhasEnvironmentVariable()Environment variable data source.booleanhasFilename()Local filesystem data source.booleanhasInlineBytes()Bytes inlined in the configuration.booleanhasInlineString()String inlined in the configuration.booleanhasWatchedDirectory()Watched directory that is watched for file changes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()DataSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DataSource.BuildermergeFrom(com.google.protobuf.Message other)DataSource.BuildermergeFrom(DataSource other)DataSource.BuildermergeWatchedDirectory(WatchedDirectory value)Watched directory that is watched for file changes.DataSource.BuildersetEnvironmentVariable(java.lang.String value)Environment variable data source.DataSource.BuildersetEnvironmentVariableBytes(com.google.protobuf.ByteString value)Environment variable data source.DataSource.BuildersetFilename(java.lang.String value)Local filesystem data source.DataSource.BuildersetFilenameBytes(com.google.protobuf.ByteString value)Local filesystem data source.DataSource.BuildersetInlineBytes(com.google.protobuf.ByteString value)Bytes inlined in the configuration.DataSource.BuildersetInlineString(java.lang.String value)String inlined in the configuration.DataSource.BuildersetInlineStringBytes(com.google.protobuf.ByteString value)String inlined in the configuration.DataSource.BuildersetWatchedDirectory(WatchedDirectory value)Watched directory that is watched for file changes.DataSource.BuildersetWatchedDirectory(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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
specifierCase_
private int specifierCase_
-
specifier_
private java.lang.Object specifier_
-
bitField0_
private int bitField0_
-
watchedDirectory_
private WatchedDirectory watchedDirectory_
-
watchedDirectoryBuilder_
private com.google.protobuf.SingleFieldBuilder<WatchedDirectory,WatchedDirectory.Builder,WatchedDirectoryOrBuilder> watchedDirectoryBuilder_
-
-
Method Detail
-
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
public DataSource.Builder 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
public DataSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DataSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DataSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(DataSource result)
-
buildPartialOneofs
private void buildPartialOneofs(DataSource result)
-
mergeFrom
public DataSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataSource.Builder>
-
mergeFrom
public DataSource.Builder mergeFrom(DataSource other)
-
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 java.io.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:
java.io.IOException
-
getSpecifierCase
public DataSource.SpecifierCase getSpecifierCase()
- Specified by:
getSpecifierCasein interfaceDataSourceOrBuilder
-
clearSpecifier
public DataSource.Builder 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
public java.lang.String 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
public DataSource.Builder setFilename(java.lang.String value)
Local filesystem data source.
string filename = 1 [(.validate.rules) = { ... }- Parameters:
value- The filename to set.- Returns:
- This builder for chaining.
-
clearFilename
public DataSource.Builder clearFilename()
Local filesystem data source.
string filename = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setFilenameBytes
public DataSource.Builder setFilenameBytes(com.google.protobuf.ByteString value)
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
public DataSource.Builder setInlineBytes(com.google.protobuf.ByteString value)
Bytes inlined in the configuration.
bytes inline_bytes = 2;- Parameters:
value- The inlineBytes to set.- Returns:
- This builder for chaining.
-
clearInlineBytes
public DataSource.Builder 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
public java.lang.String 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
public DataSource.Builder setInlineString(java.lang.String value)
String inlined in the configuration.
string inline_string = 3;- Parameters:
value- The inlineString to set.- Returns:
- This builder for chaining.
-
clearInlineString
public DataSource.Builder clearInlineString()
String inlined in the configuration.
string inline_string = 3;- Returns:
- This builder for chaining.
-
setInlineStringBytes
public DataSource.Builder setInlineStringBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public DataSource.Builder setEnvironmentVariable(java.lang.String value)
Environment variable data source.
string environment_variable = 4 [(.validate.rules) = { ... }- Parameters:
value- The environmentVariable to set.- Returns:
- This builder for chaining.
-
clearEnvironmentVariable
public DataSource.Builder clearEnvironmentVariable()
Environment variable data source.
string environment_variable = 4 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setEnvironmentVariableBytes
public DataSource.Builder setEnvironmentVariableBytes(com.google.protobuf.ByteString value)
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
public WatchedDirectory 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
public DataSource.Builder setWatchedDirectory(WatchedDirectory value)
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
public DataSource.Builder setWatchedDirectory(WatchedDirectory.Builder builderForValue)
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
public DataSource.Builder mergeWatchedDirectory(WatchedDirectory value)
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
public DataSource.Builder 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
public WatchedDirectory.Builder 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
public WatchedDirectoryOrBuilder 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
-
getWatchedDirectoryFieldBuilder
private com.google.protobuf.SingleFieldBuilder<WatchedDirectory,WatchedDirectory.Builder,WatchedDirectoryOrBuilder> getWatchedDirectoryFieldBuilder()
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;
-
-