Package namespace.cloud.compute.v1beta
Interface Compute.ApplicationRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Compute.ApplicationRequest,Compute.ApplicationRequest.Builder
- Enclosing class:
Compute
public static interface Compute.ApplicationRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanA set of environment values to be used as the container's environment.getArgs(int index) A set of arguments to pass to the application.com.google.protobuf.ByteStringgetArgsBytes(int index) A set of arguments to pass to the application.intA set of arguments to pass to the application.A set of arguments to pass to the application.Command to execute.com.google.protobuf.ByteStringCommand to execute.Deprecated.intA set of environment values to be used as the container's environment.A set of environment values to be used as the container's environment.getEnvironmentOrDefault(String key, String defaultValue) A set of environment values to be used as the container's environment.A set of environment values to be used as the container's environment.getEnvVars(int index) A set of environment values to be used as the container's environment.intA set of environment values to be used as the container's environment.A set of environment values to be used as the container's environment.getEnvVarsOrBuilder(int index) A set of environment values to be used as the container's environment.List<? extends Compute.EnvironmentVariableOrBuilder> A set of environment values to be used as the container's environment.A list of experimental features to enable in this container.A list of experimental features to enable in this container.Optional image with application distribution to be mounted on the instance.com.google.protobuf.ByteStringOptional image with application distribution to be mounted on the instance.getName()A name of the application being created.com.google.protobuf.ByteStringA name of the application being created.When a container terminates, the instance where it runs in will also terminate.intWhen a container terminates, the instance where it runs in will also terminate.booleanA list of experimental features to enable in this container.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()A name of the application being created. Must be unique.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()A name of the application being created. Must be unique.
string name = 1;- Returns:
- The bytes for name.
-
getImageRef
String getImageRef()Optional image with application distribution to be mounted on the instance. The image filesystem is extracted and made available to the `command` below. ENTRYPOINT/CMD specified in the image config are not respected. Example: `nscr.io/abc012abc012/foobar`
string image_ref = 2;- Returns:
- The imageRef.
-
getImageRefBytes
com.google.protobuf.ByteString getImageRefBytes()Optional image with application distribution to be mounted on the instance. The image filesystem is extracted and made available to the `command` below. ENTRYPOINT/CMD specified in the image config are not respected. Example: `nscr.io/abc012abc012/foobar`
string image_ref = 2;- Returns:
- The bytes for imageRef.
-
getCommand
String getCommand()Command to execute. May be: * Absolute (refers to a pre-installed binary in the base image). Example: `/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild`. * Relative to the image specified above. Example: `./postgres`. * Resolved from $PATH (using the default $PATH of the base image) Example: `xcrun`.
string command = 14;- Returns:
- The command.
-
getCommandBytes
com.google.protobuf.ByteString getCommandBytes()Command to execute. May be: * Absolute (refers to a pre-installed binary in the base image). Example: `/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild`. * Relative to the image specified above. Example: `./postgres`. * Resolved from $PATH (using the default $PATH of the base image) Example: `xcrun`.
string command = 14;- Returns:
- The bytes for command.
-
getArgsList
A set of arguments to pass to the application. Example: `["--foobar"]`
repeated string args = 3;- Returns:
- A list containing the args.
-
getArgsCount
int getArgsCount()A set of arguments to pass to the application. Example: `["--foobar"]`
repeated string args = 3;- Returns:
- The count of args.
-
getArgs
A set of arguments to pass to the application. Example: `["--foobar"]`
repeated string args = 3;- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
com.google.protobuf.ByteString getArgsBytes(int index) A set of arguments to pass to the application. Example: `["--foobar"]`
repeated string args = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
getEnvironmentCount
int getEnvironmentCount()A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4; -
containsEnvironment
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4; -
getEnvironment
Deprecated.UsegetEnvironmentMap()instead. -
getEnvironmentMap
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4; -
getEnvironmentOrDefault
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4; -
getEnvironmentOrThrow
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` This API will always be supported, but you may want to consider `env_vars` instead as a more complete API.map<string, string> environment = 4; -
getEnvVarsList
List<Compute.EnvironmentVariable> getEnvVarsList()A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 15; -
getEnvVars
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 15; -
getEnvVarsCount
int getEnvVarsCount()A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 15; -
getEnvVarsOrBuilderList
List<? extends Compute.EnvironmentVariableOrBuilder> getEnvVarsOrBuilderList()A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 15; -
getEnvVarsOrBuilder
A set of environment values to be used as the container's environment. These set of environment variables are added in addition to a system-specified set of environment variables. Example: `{"FOOBAR": "1"}` Can also refer to different source values, e.g. secrets.repeated .namespace.cloud.compute.v1beta.EnvironmentVariable env_vars = 15; -
getWorkloadTypeValue
int getWorkloadTypeValue()When a container terminates, the instance where it runs in will also terminate. If the workload type is set to `service`, the instance will always be marked as failed, regardless of the exit code of the container.
.namespace.cloud.compute.v1beta.ApplicationRequest.WorkloadType workload_type = 13;- Returns:
- The enum numeric value on the wire for workloadType.
-
getWorkloadType
Compute.ApplicationRequest.WorkloadType getWorkloadType()When a container terminates, the instance where it runs in will also terminate. If the workload type is set to `service`, the instance will always be marked as failed, regardless of the exit code of the container.
.namespace.cloud.compute.v1beta.ApplicationRequest.WorkloadType workload_type = 13;- Returns:
- The workloadType.
-
hasExperimental
boolean hasExperimental()A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ApplicationRequest.ExperimentalFeatures experimental = 10;- Returns:
- Whether the experimental field is set.
-
getExperimental
Compute.ApplicationRequest.ExperimentalFeatures getExperimental()A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ApplicationRequest.ExperimentalFeatures experimental = 10;- Returns:
- The experimental.
-
getExperimentalOrBuilder
Compute.ApplicationRequest.ExperimentalFeaturesOrBuilder getExperimentalOrBuilder()A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ApplicationRequest.ExperimentalFeatures experimental = 10;
-