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 int
private Object
private int
private WatchedDirectory
private com.google.protobuf.SingleFieldBuilder
<WatchedDirectory, WatchedDirectory.Builder, WatchedDirectoryOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(DataSource result) private void
buildPartialOneofs
(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.Descriptor
com.google.protobuf.Descriptors.Descriptor
Environment variable data source.com.google.protobuf.ByteString
Environment variable data source.Local filesystem data source.com.google.protobuf.ByteString
Local filesystem data source.com.google.protobuf.ByteString
Bytes inlined in the configuration.String inlined in the configuration.com.google.protobuf.ByteString
String 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.boolean
Environment variable data source.boolean
Local filesystem data source.boolean
Bytes inlined in the configuration.boolean
String inlined in the configuration.boolean
Watched directory that is watched for file changes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<WatchedDirectory, WatchedDirectory.Builder, WatchedDirectoryOrBuilder> Watched directory that is watched for file changes.final boolean
private void
mergeFrom
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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, watchedDirectoryBuilder_WatchedDirectoryOrBuilder>
-
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DataSource.Builder>
-
mergeFrom
-
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 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:
IOException
-
getSpecifierCase
- Specified by:
getSpecifierCase
in interfaceDataSourceOrBuilder
-
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
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
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:
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
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:
hasInlineString
in interfaceDataSourceOrBuilder
- Returns:
- Whether the inlineString field is set.
-
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
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:
hasEnvironmentVariable
in interfaceDataSourceOrBuilder
- Returns:
- Whether the environmentVariable field is set.
-
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
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:
hasWatchedDirectory
in 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:
getWatchedDirectory
in 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:
getWatchedDirectoryOrBuilder
in interfaceDataSourceOrBuilder
-
internalGetWatchedDirectoryFieldBuilder
private com.google.protobuf.SingleFieldBuilder<WatchedDirectory,WatchedDirectory.Builder, internalGetWatchedDirectoryFieldBuilder()WatchedDirectoryOrBuilder> 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;
-