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 int
bitField0_
private java.lang.Object
specifier_
private int
specifierCase_
private WatchedDirectory
watchedDirectory_
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 DataSource
build()
DataSource
buildPartial()
private void
buildPartial0(DataSource result)
private void
buildPartialOneofs(DataSource result)
DataSource.Builder
clear()
DataSource.Builder
clearEnvironmentVariable()
Environment variable data source.DataSource.Builder
clearFilename()
Local filesystem data source.DataSource.Builder
clearInlineBytes()
Bytes inlined in the configuration.DataSource.Builder
clearInlineString()
String inlined in the configuration.DataSource.Builder
clearSpecifier()
DataSource.Builder
clearWatchedDirectory()
Watched directory that is watched for file changes.DataSource
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getEnvironmentVariable()
Environment variable data source.com.google.protobuf.ByteString
getEnvironmentVariableBytes()
Environment variable data source.java.lang.String
getFilename()
Local filesystem data source.com.google.protobuf.ByteString
getFilenameBytes()
Local filesystem data source.com.google.protobuf.ByteString
getInlineBytes()
Bytes inlined in the configuration.java.lang.String
getInlineString()
String inlined in the configuration.com.google.protobuf.ByteString
getInlineStringBytes()
String inlined in the configuration.DataSource.SpecifierCase
getSpecifierCase()
WatchedDirectory
getWatchedDirectory()
Watched directory that is watched for file changes.WatchedDirectory.Builder
getWatchedDirectoryBuilder()
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.WatchedDirectoryOrBuilder
getWatchedDirectoryOrBuilder()
Watched directory that is watched for file changes.boolean
hasEnvironmentVariable()
Environment variable data source.boolean
hasFilename()
Local filesystem data source.boolean
hasInlineBytes()
Bytes inlined in the configuration.boolean
hasInlineString()
String inlined in the configuration.boolean
hasWatchedDirectory()
Watched directory that is watched for file changes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
DataSource.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DataSource.Builder
mergeFrom(com.google.protobuf.Message other)
DataSource.Builder
mergeFrom(DataSource other)
DataSource.Builder
mergeWatchedDirectory(WatchedDirectory value)
Watched directory that is watched for file changes.DataSource.Builder
setEnvironmentVariable(java.lang.String value)
Environment variable data source.DataSource.Builder
setEnvironmentVariableBytes(com.google.protobuf.ByteString value)
Environment variable data source.DataSource.Builder
setFilename(java.lang.String value)
Local filesystem data source.DataSource.Builder
setFilenameBytes(com.google.protobuf.ByteString value)
Local filesystem data source.DataSource.Builder
setInlineBytes(com.google.protobuf.ByteString value)
Bytes inlined in the configuration.DataSource.Builder
setInlineString(java.lang.String value)
String inlined in the configuration.DataSource.Builder
setInlineStringBytes(com.google.protobuf.ByteString value)
String inlined in the configuration.DataSource.Builder
setWatchedDirectory(WatchedDirectory value)
Watched directory that is watched for file changes.DataSource.Builder
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, 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public DataSource.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
-
getDefaultInstanceForType
public DataSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DataSource build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DataSource buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DataSource.Builder>
-
mergeFrom
public DataSource.Builder mergeFrom(DataSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DataSource.Builder>
- Throws:
java.io.IOException
-
getSpecifierCase
public DataSource.SpecifierCase getSpecifierCase()
- Specified by:
getSpecifierCase
in interfaceDataSourceOrBuilder
-
clearSpecifier
public DataSource.Builder clearSpecifier()
-
hasFilename
public boolean hasFilename()
Local filesystem data source.
string filename = 1 [(.validate.rules) = { ... }
- Specified by:
hasFilename
in 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:
getFilename
in interfaceDataSourceOrBuilder
- Returns:
- The filename.
-
getFilenameBytes
public com.google.protobuf.ByteString getFilenameBytes()
Local filesystem data source.
string filename = 1 [(.validate.rules) = { ... }
- Specified by:
getFilenameBytes
in 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:
hasInlineBytes
in 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:
getInlineBytes
in 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:
hasInlineString
in 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:
getInlineString
in interfaceDataSourceOrBuilder
- Returns:
- The inlineString.
-
getInlineStringBytes
public com.google.protobuf.ByteString getInlineStringBytes()
String inlined in the configuration.
string inline_string = 3;
- Specified by:
getInlineStringBytes
in 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:
hasEnvironmentVariable
in 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:
getEnvironmentVariable
in interfaceDataSourceOrBuilder
- Returns:
- The environmentVariable.
-
getEnvironmentVariableBytes
public com.google.protobuf.ByteString getEnvironmentVariableBytes()
Environment variable data source.
string environment_variable = 4 [(.validate.rules) = { ... }
- Specified by:
getEnvironmentVariableBytes
in 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:
hasWatchedDirectory
in 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:
getWatchedDirectory
in 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:
getWatchedDirectoryOrBuilder
in 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;
-
-