Class 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 type envoy.config.core.v3.DataSource
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public DataSource.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
      • getDefaultInstanceForType

        public DataSource getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public DataSource build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public DataSource buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataSource.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataSource.Builder>
        Throws:
        java.io.IOException
      • hasFilename

        public boolean hasFilename()
         Local filesystem data source.
         
        string filename = 1 [(.validate.rules) = { ... }
        Specified by:
        hasFilename in interface DataSourceOrBuilder
        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 interface DataSourceOrBuilder
        Returns:
        The filename.
      • getFilenameBytes

        public com.google.protobuf.ByteString getFilenameBytes()
         Local filesystem data source.
         
        string filename = 1 [(.validate.rules) = { ... }
        Specified by:
        getFilenameBytes in interface DataSourceOrBuilder
        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 interface DataSourceOrBuilder
        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 interface DataSourceOrBuilder
        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 interface DataSourceOrBuilder
        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 interface DataSourceOrBuilder
        Returns:
        The inlineString.
      • getInlineStringBytes

        public com.google.protobuf.ByteString getInlineStringBytes()
         String inlined in the configuration.
         
        string inline_string = 3;
        Specified by:
        getInlineStringBytes in interface DataSourceOrBuilder
        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 interface DataSourceOrBuilder
        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 interface DataSourceOrBuilder
        Returns:
        The environmentVariable.
      • getEnvironmentVariableBytes

        public com.google.protobuf.ByteString getEnvironmentVariableBytes()
         Environment variable data source.
         
        string environment_variable = 4 [(.validate.rules) = { ... }
        Specified by:
        getEnvironmentVariableBytes in interface DataSourceOrBuilder
        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 interface DataSourceOrBuilder
        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 interface DataSourceOrBuilder
        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 interface DataSourceOrBuilder
      • 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;