Class Config

  • All Implemented Interfaces:
    ConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Config
    extends com.google.protobuf.GeneratedMessageV3
    implements ConfigOrBuilder
     Runtime configuration. This includes a subset of message AppInfo defined in
     apphosting/base/appinfo.proto. It contains only information necessary for
     configuring the runtime. It is the responsibility of the devappserver2
     runtime module to set the fields required by its runtime.
     Next Tag: 27
     
    Protobuf type apphosting.tools.devappserver2.Config
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasAppId

        public boolean hasAppId()
         The app id of the app to be run.
         
        required bytes app_id = 1;
        Specified by:
        hasAppId in interface ConfigOrBuilder
        Returns:
        Whether the appId field is set.
      • getAppId

        public com.google.protobuf.ByteString getAppId()
         The app id of the app to be run.
         
        required bytes app_id = 1;
        Specified by:
        getAppId in interface ConfigOrBuilder
        Returns:
        The appId.
      • hasVersionId

        public boolean hasVersionId()
         The version id of the app to be run.
         
        required bytes version_id = 2;
        Specified by:
        hasVersionId in interface ConfigOrBuilder
        Returns:
        Whether the versionId field is set.
      • getVersionId

        public com.google.protobuf.ByteString getVersionId()
         The version id of the app to be run.
         
        required bytes version_id = 2;
        Specified by:
        getVersionId in interface ConfigOrBuilder
        Returns:
        The versionId.
      • hasApplicationRoot

        public boolean hasApplicationRoot()
         The path to the root of the application.
         
        required bytes application_root = 3;
        Specified by:
        hasApplicationRoot in interface ConfigOrBuilder
        Returns:
        Whether the applicationRoot field is set.
      • getApplicationRoot

        public com.google.protobuf.ByteString getApplicationRoot()
         The path to the root of the application.
         
        required bytes application_root = 3;
        Specified by:
        getApplicationRoot in interface ConfigOrBuilder
        Returns:
        The applicationRoot.
      • hasThreadsafe

        public boolean hasThreadsafe()
         Whether the application has threadsafe enabled.
         
        optional bool threadsafe = 4 [default = false];
        Specified by:
        hasThreadsafe in interface ConfigOrBuilder
        Returns:
        Whether the threadsafe field is set.
      • getThreadsafe

        public boolean getThreadsafe()
         Whether the application has threadsafe enabled.
         
        optional bool threadsafe = 4 [default = false];
        Specified by:
        getThreadsafe in interface ConfigOrBuilder
        Returns:
        The threadsafe.
      • hasApiHost

        public boolean hasApiHost()
         The host name to which to connect to send API requests.
         
        optional string api_host = 17 [default = "localhost"];
        Specified by:
        hasApiHost in interface ConfigOrBuilder
        Returns:
        Whether the apiHost field is set.
      • getApiHost

        public String getApiHost()
         The host name to which to connect to send API requests.
         
        optional string api_host = 17 [default = "localhost"];
        Specified by:
        getApiHost in interface ConfigOrBuilder
        Returns:
        The apiHost.
      • getApiHostBytes

        public com.google.protobuf.ByteString getApiHostBytes()
         The host name to which to connect to send API requests.
         
        optional string api_host = 17 [default = "localhost"];
        Specified by:
        getApiHostBytes in interface ConfigOrBuilder
        Returns:
        The bytes for apiHost.
      • hasApiPort

        public boolean hasApiPort()
         The port on which to connect to send API requests.
         
        required int32 api_port = 5;
        Specified by:
        hasApiPort in interface ConfigOrBuilder
        Returns:
        Whether the apiPort field is set.
      • getApiPort

        public int getApiPort()
         The port on which to connect to send API requests.
         
        required int32 api_port = 5;
        Specified by:
        getApiPort in interface ConfigOrBuilder
        Returns:
        The apiPort.
      • getLibrariesList

        public List<Library> getLibrariesList()
         Libraries enabled for the application.
         
        repeated .apphosting.tools.devappserver2.Library libraries = 6;
        Specified by:
        getLibrariesList in interface ConfigOrBuilder
      • getLibrariesCount

        public int getLibrariesCount()
         Libraries enabled for the application.
         
        repeated .apphosting.tools.devappserver2.Library libraries = 6;
        Specified by:
        getLibrariesCount in interface ConfigOrBuilder
      • getLibraries

        public Library getLibraries​(int index)
         Libraries enabled for the application.
         
        repeated .apphosting.tools.devappserver2.Library libraries = 6;
        Specified by:
        getLibraries in interface ConfigOrBuilder
      • hasSkipFiles

        public boolean hasSkipFiles()
         A regex for files to skip.
         
        optional string skip_files = 7 [default = "^$"];
        Specified by:
        hasSkipFiles in interface ConfigOrBuilder
        Returns:
        Whether the skipFiles field is set.
      • getSkipFiles

        public String getSkipFiles()
         A regex for files to skip.
         
        optional string skip_files = 7 [default = "^$"];
        Specified by:
        getSkipFiles in interface ConfigOrBuilder
        Returns:
        The skipFiles.
      • getSkipFilesBytes

        public com.google.protobuf.ByteString getSkipFilesBytes()
         A regex for files to skip.
         
        optional string skip_files = 7 [default = "^$"];
        Specified by:
        getSkipFilesBytes in interface ConfigOrBuilder
        Returns:
        The bytes for skipFiles.
      • hasStaticFiles

        public boolean hasStaticFiles()
         A regex for files used for static handlers.
         
        optional string static_files = 8 [default = "^$"];
        Specified by:
        hasStaticFiles in interface ConfigOrBuilder
        Returns:
        Whether the staticFiles field is set.
      • getStaticFiles

        public String getStaticFiles()
         A regex for files used for static handlers.
         
        optional string static_files = 8 [default = "^$"];
        Specified by:
        getStaticFiles in interface ConfigOrBuilder
        Returns:
        The staticFiles.
      • getStaticFilesBytes

        public com.google.protobuf.ByteString getStaticFilesBytes()
         A regex for files used for static handlers.
         
        optional string static_files = 8 [default = "^$"];
        Specified by:
        getStaticFilesBytes in interface ConfigOrBuilder
        Returns:
        The bytes for staticFiles.
      • hasPythonConfig

        public boolean hasPythonConfig()
        optional .apphosting.tools.devappserver2.PythonConfig python_config = 14;
        Specified by:
        hasPythonConfig in interface ConfigOrBuilder
        Returns:
        Whether the pythonConfig field is set.
      • getPythonConfig

        public PythonConfig getPythonConfig()
        optional .apphosting.tools.devappserver2.PythonConfig python_config = 14;
        Specified by:
        getPythonConfig in interface ConfigOrBuilder
        Returns:
        The pythonConfig.
      • hasPhpConfig

        public boolean hasPhpConfig()
        optional .apphosting.tools.devappserver2.PhpConfig php_config = 9;
        Specified by:
        hasPhpConfig in interface ConfigOrBuilder
        Returns:
        Whether the phpConfig field is set.
      • getPhpConfig

        public PhpConfig getPhpConfig()
        optional .apphosting.tools.devappserver2.PhpConfig php_config = 9;
        Specified by:
        getPhpConfig in interface ConfigOrBuilder
        Returns:
        The phpConfig.
      • hasNodeConfig

        public boolean hasNodeConfig()
        optional .apphosting.tools.devappserver2.NodeConfig node_config = 26;
        Specified by:
        hasNodeConfig in interface ConfigOrBuilder
        Returns:
        Whether the nodeConfig field is set.
      • getNodeConfig

        public NodeConfig getNodeConfig()
        optional .apphosting.tools.devappserver2.NodeConfig node_config = 26;
        Specified by:
        getNodeConfig in interface ConfigOrBuilder
        Returns:
        The nodeConfig.
      • hasJavaConfig

        public boolean hasJavaConfig()
        optional .apphosting.tools.devappserver2.JavaConfig java_config = 21;
        Specified by:
        hasJavaConfig in interface ConfigOrBuilder
        Returns:
        Whether the javaConfig field is set.
      • getJavaConfig

        public JavaConfig getJavaConfig()
        optional .apphosting.tools.devappserver2.JavaConfig java_config = 21;
        Specified by:
        getJavaConfig in interface ConfigOrBuilder
        Returns:
        The javaConfig.
      • hasCustomConfig

        public boolean hasCustomConfig()
        optional .apphosting.tools.devappserver2.CustomConfig custom_config = 23;
        Specified by:
        hasCustomConfig in interface ConfigOrBuilder
        Returns:
        Whether the customConfig field is set.
      • getCustomConfig

        public CustomConfig getCustomConfig()
        optional .apphosting.tools.devappserver2.CustomConfig custom_config = 23;
        Specified by:
        getCustomConfig in interface ConfigOrBuilder
        Returns:
        The customConfig.
      • hasGoConfig

        public boolean hasGoConfig()
        optional .apphosting.tools.devappserver2.GoConfig go_config = 25;
        Specified by:
        hasGoConfig in interface ConfigOrBuilder
        Returns:
        Whether the goConfig field is set.
      • getGoConfig

        public GoConfig getGoConfig()
        optional .apphosting.tools.devappserver2.GoConfig go_config = 25;
        Specified by:
        getGoConfig in interface ConfigOrBuilder
        Returns:
        The goConfig.
      • getEnvironList

        public List<Environ> getEnvironList()
         Extra user-specified environment variables.
         
        repeated .apphosting.tools.devappserver2.Environ environ = 10;
        Specified by:
        getEnvironList in interface ConfigOrBuilder
      • getEnvironCount

        public int getEnvironCount()
         Extra user-specified environment variables.
         
        repeated .apphosting.tools.devappserver2.Environ environ = 10;
        Specified by:
        getEnvironCount in interface ConfigOrBuilder
      • getEnviron

        public Environ getEnviron​(int index)
         Extra user-specified environment variables.
         
        repeated .apphosting.tools.devappserver2.Environ environ = 10;
        Specified by:
        getEnviron in interface ConfigOrBuilder
      • getEnvironOrBuilder

        public EnvironOrBuilder getEnvironOrBuilder​(int index)
         Extra user-specified environment variables.
         
        repeated .apphosting.tools.devappserver2.Environ environ = 10;
        Specified by:
        getEnvironOrBuilder in interface ConfigOrBuilder
      • hasCloudSqlConfig

        public boolean hasCloudSqlConfig()
        optional .apphosting.tools.devappserver2.CloudSQL cloud_sql_config = 11;
        Specified by:
        hasCloudSqlConfig in interface ConfigOrBuilder
        Returns:
        Whether the cloudSqlConfig field is set.
      • getCloudSqlConfig

        public CloudSQL getCloudSqlConfig()
        optional .apphosting.tools.devappserver2.CloudSQL cloud_sql_config = 11;
        Specified by:
        getCloudSqlConfig in interface ConfigOrBuilder
        Returns:
        The cloudSqlConfig.
      • hasDatacenter

        public boolean hasDatacenter()
        required string datacenter = 12;
        Specified by:
        hasDatacenter in interface ConfigOrBuilder
        Returns:
        Whether the datacenter field is set.
      • getDatacenterBytes

        public com.google.protobuf.ByteString getDatacenterBytes()
        required string datacenter = 12;
        Specified by:
        getDatacenterBytes in interface ConfigOrBuilder
        Returns:
        The bytes for datacenter.
      • hasInstanceId

        public boolean hasInstanceId()
        required string instance_id = 13;
        Specified by:
        hasInstanceId in interface ConfigOrBuilder
        Returns:
        Whether the instanceId field is set.
      • getInstanceIdBytes

        public com.google.protobuf.ByteString getInstanceIdBytes()
        required string instance_id = 13;
        Specified by:
        getInstanceIdBytes in interface ConfigOrBuilder
        Returns:
        The bytes for instanceId.
      • hasStderrLogLevel

        public boolean hasStderrLogLevel()
         The logging level at which logs should be written to stderr:
         0 - Debug
         1 - Info
         2 - Warning
         3 - Error
         4 - Critical
         
        optional int64 stderr_log_level = 15 [default = 1];
        Specified by:
        hasStderrLogLevel in interface ConfigOrBuilder
        Returns:
        Whether the stderrLogLevel field is set.
      • getStderrLogLevel

        public long getStderrLogLevel()
         The logging level at which logs should be written to stderr:
         0 - Debug
         1 - Info
         2 - Warning
         3 - Error
         4 - Critical
         
        optional int64 stderr_log_level = 15 [default = 1];
        Specified by:
        getStderrLogLevel in interface ConfigOrBuilder
        Returns:
        The stderrLogLevel.
      • hasAuthDomain

        public boolean hasAuthDomain()
        required string auth_domain = 16;
        Specified by:
        hasAuthDomain in interface ConfigOrBuilder
        Returns:
        Whether the authDomain field is set.
      • getAuthDomainBytes

        public com.google.protobuf.ByteString getAuthDomainBytes()
        required string auth_domain = 16;
        Specified by:
        getAuthDomainBytes in interface ConfigOrBuilder
        Returns:
        The bytes for authDomain.
      • hasMaxInstances

        public boolean hasMaxInstances()
        optional int32 max_instances = 18;
        Specified by:
        hasMaxInstances in interface ConfigOrBuilder
        Returns:
        Whether the maxInstances field is set.
      • getMaxInstances

        public int getMaxInstances()
        optional int32 max_instances = 18;
        Specified by:
        getMaxInstances in interface ConfigOrBuilder
        Returns:
        The maxInstances.
      • hasVmConfig

        public boolean hasVmConfig()
        optional .apphosting.tools.devappserver2.VMConfig vm_config = 19;
        Specified by:
        hasVmConfig in interface ConfigOrBuilder
        Returns:
        Whether the vmConfig field is set.
      • getVmConfig

        public VMConfig getVmConfig()
        optional .apphosting.tools.devappserver2.VMConfig vm_config = 19;
        Specified by:
        getVmConfig in interface ConfigOrBuilder
        Returns:
        The vmConfig.
      • hasServerPort

        public boolean hasServerPort()
         The port of the cloud SDK development server.
         
        optional int32 server_port = 20;
        Specified by:
        hasServerPort in interface ConfigOrBuilder
        Returns:
        Whether the serverPort field is set.
      • getServerPort

        public int getServerPort()
         The port of the cloud SDK development server.
         
        optional int32 server_port = 20;
        Specified by:
        getServerPort in interface ConfigOrBuilder
        Returns:
        The serverPort.
      • hasVm

        public boolean hasVm()
        optional bool vm = 22 [default = false];
        Specified by:
        hasVm in interface ConfigOrBuilder
        Returns:
        Whether the vm field is set.
      • getVm

        public boolean getVm()
        optional bool vm = 22 [default = false];
        Specified by:
        getVm in interface ConfigOrBuilder
        Returns:
        The vm.
      • getGrpcApisList

        public com.google.protobuf.ProtocolStringList getGrpcApisList()
        repeated string grpc_apis = 24;
        Specified by:
        getGrpcApisList in interface ConfigOrBuilder
        Returns:
        A list containing the grpcApis.
      • getGrpcApisCount

        public int getGrpcApisCount()
        repeated string grpc_apis = 24;
        Specified by:
        getGrpcApisCount in interface ConfigOrBuilder
        Returns:
        The count of grpcApis.
      • getGrpcApis

        public String getGrpcApis​(int index)
        repeated string grpc_apis = 24;
        Specified by:
        getGrpcApis in interface ConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The grpcApis at the given index.
      • getGrpcApisBytes

        public com.google.protobuf.ByteString getGrpcApisBytes​(int index)
        repeated string grpc_apis = 24;
        Specified by:
        getGrpcApisBytes in interface ConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the grpcApis at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Config parseFrom​(ByteBuffer data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Config parseFrom​(ByteBuffer data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Config parseFrom​(com.google.protobuf.ByteString data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Config parseFrom​(com.google.protobuf.ByteString data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Config parseFrom​(byte[] data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Config parseFrom​(byte[] data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Config parseFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Config.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Config.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Config.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Config getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Config> parser()
      • getParserForType

        public com.google.protobuf.Parser<Config> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Config getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder