Class DataSource
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.envoy.config.core.v3.DataSource
- All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DataSourceOrBuilder, Serializable
@Generated
public final class DataSource
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classData source consisting of a file, an inline value, or an environment variable.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final DataSourcestatic final intstatic final intstatic final intstatic final intprivate byteprivate static final com.google.protobuf.Parser<DataSource> private static final longprivate Objectprivate intstatic final intprivate WatchedDirectoryFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateDataSource(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DataSourcestatic 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.com.google.protobuf.Parser<DataSource> intWatched directory that is watched for file changes.Watched directory that is watched for file changes.booleanEnvironment variable data source.booleanLocal filesystem data source.inthashCode()booleanBytes inlined in the configuration.booleanString inlined in the configuration.booleanWatched directory that is watched for file changes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic DataSource.Builderstatic DataSource.BuildernewBuilder(DataSource prototype) protected DataSource.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DataSourceparseDelimitedFrom(InputStream input) static DataSourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataSourceparseFrom(byte[] data) static DataSourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataSourceparseFrom(com.google.protobuf.ByteString data) static DataSourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataSourceparseFrom(com.google.protobuf.CodedInputStream input) static DataSourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataSourceparseFrom(InputStream input) static DataSourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DataSourceparseFrom(ByteBuffer data) static DataSourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DataSource> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
specifierCase_
private int specifierCase_ -
specifier_
-
FILENAME_FIELD_NUMBER
public static final int FILENAME_FIELD_NUMBER- See Also:
-
INLINE_BYTES_FIELD_NUMBER
public static final int INLINE_BYTES_FIELD_NUMBER- See Also:
-
INLINE_STRING_FIELD_NUMBER
public static final int INLINE_STRING_FIELD_NUMBER- See Also:
-
ENVIRONMENT_VARIABLE_FIELD_NUMBER
public static final int ENVIRONMENT_VARIABLE_FIELD_NUMBER- See Also:
-
WATCHED_DIRECTORY_FIELD_NUMBER
public static final int WATCHED_DIRECTORY_FIELD_NUMBER- See Also:
-
watchedDirectory_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
DataSource
private DataSource(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
DataSource
private DataSource()
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSpecifierCase
- Specified by:
getSpecifierCasein interfaceDataSourceOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DataSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DataSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DataSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DataSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DataSource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-