Package namespace.cloud.compute.v1beta
Class Compute.ApplicationRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
namespace.cloud.compute.v1beta.Compute.ApplicationRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Compute.ApplicationRequestOrBuilder
- Enclosing class:
Compute
public static final class Compute.ApplicationRequest
extends com.google.protobuf.GeneratedMessage
implements Compute.ApplicationRequestOrBuilder
Specifies an application to run on an instance without containerization. The application binary is distributed as a container image (OCI) pushed to the workspace's private registry (`nscr.io`). Only the image filesystem is used; ENTRYPOINT/CMD from the image config are not respected. **Example** (macOS): [macrun](https://github.com/namespacelabs/examples/tree/master/go/macrun).Protobuf type
namespace.cloud.compute.v1beta.ApplicationRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies an application to run on an instance without containerization.static final classProtobuf typenamespace.cloud.compute.v1beta.ApplicationRequest.ExperimentalFeaturesstatic interfacestatic enumProtobuf enumnamespace.cloud.compute.v1beta.ApplicationRequest.WorkloadTypeNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, 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 TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields 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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanA set of environment values to be used as the container's environment.booleangetArgs(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.com.google.protobuf.ProtocolStringListA set of arguments to pass to the application.Command to execute.com.google.protobuf.ByteStringCommand to execute.static Compute.ApplicationRequeststatic final com.google.protobuf.Descriptors.DescriptorDeprecated.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.com.google.protobuf.Parser<Compute.ApplicationRequest> intWhen 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.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(Compute.ApplicationRequest prototype) protected Compute.ApplicationRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Compute.ApplicationRequestparseDelimitedFrom(InputStream input) static Compute.ApplicationRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.ApplicationRequestparseFrom(byte[] data) static Compute.ApplicationRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.ApplicationRequestparseFrom(com.google.protobuf.ByteString data) static Compute.ApplicationRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.ApplicationRequestparseFrom(com.google.protobuf.CodedInputStream input) static Compute.ApplicationRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.ApplicationRequestparseFrom(InputStream input) static Compute.ApplicationRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Compute.ApplicationRequestparseFrom(ByteBuffer data) static Compute.ApplicationRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Compute.ApplicationRequest> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
IMAGE_REF_FIELD_NUMBER
public static final int IMAGE_REF_FIELD_NUMBER- See Also:
-
COMMAND_FIELD_NUMBER
public static final int COMMAND_FIELD_NUMBER- See Also:
-
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER- See Also:
-
ENVIRONMENT_FIELD_NUMBER
public static final int ENVIRONMENT_FIELD_NUMBER- See Also:
-
ENV_VARS_FIELD_NUMBER
public static final int ENV_VARS_FIELD_NUMBER- See Also:
-
WORKLOAD_TYPE_FIELD_NUMBER
public static final int WORKLOAD_TYPE_FIELD_NUMBER- See Also:
-
EXPERIMENTAL_FIELD_NUMBER
public static final int EXPERIMENTAL_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
A name of the application being created. Must be unique.
string name = 1;- Specified by:
getNamein interfaceCompute.ApplicationRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()A name of the application being created. Must be unique.
string name = 1;- Specified by:
getNameBytesin interfaceCompute.ApplicationRequestOrBuilder- Returns:
- The bytes for name.
-
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;- Specified by:
getImageRefin interfaceCompute.ApplicationRequestOrBuilder- Returns:
- The imageRef.
-
getImageRefBytes
public 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;- Specified by:
getImageRefBytesin interfaceCompute.ApplicationRequestOrBuilder- Returns:
- The bytes for imageRef.
-
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;- Specified by:
getCommandin interfaceCompute.ApplicationRequestOrBuilder- Returns:
- The command.
-
getCommandBytes
public 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;- Specified by:
getCommandBytesin interfaceCompute.ApplicationRequestOrBuilder- Returns:
- The bytes for command.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()A set of arguments to pass to the application. Example: `["--foobar"]`
repeated string args = 3;- Specified by:
getArgsListin interfaceCompute.ApplicationRequestOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()A set of arguments to pass to the application. Example: `["--foobar"]`
repeated string args = 3;- Specified by:
getArgsCountin interfaceCompute.ApplicationRequestOrBuilder- Returns:
- The count of args.
-
getArgs
A set of arguments to pass to the application. Example: `["--foobar"]`
repeated string args = 3;- Specified by:
getArgsin interfaceCompute.ApplicationRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) A set of arguments to pass to the application. Example: `["--foobar"]`
repeated string args = 3;- Specified by:
getArgsBytesin interfaceCompute.ApplicationRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
getEnvironmentCount
public int getEnvironmentCount()Description copied from interface:Compute.ApplicationRequestOrBuilderA 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;- Specified by:
getEnvironmentCountin interfaceCompute.ApplicationRequestOrBuilder
-
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;- Specified by:
containsEnvironmentin interfaceCompute.ApplicationRequestOrBuilder
-
getEnvironment
Deprecated.UsegetEnvironmentMap()instead.- Specified by:
getEnvironmentin interfaceCompute.ApplicationRequestOrBuilder
-
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;- Specified by:
getEnvironmentMapin interfaceCompute.ApplicationRequestOrBuilder
-
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;- Specified by:
getEnvironmentOrDefaultin interfaceCompute.ApplicationRequestOrBuilder
-
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;- Specified by:
getEnvironmentOrThrowin interfaceCompute.ApplicationRequestOrBuilder
-
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;- Specified by:
getEnvVarsListin interfaceCompute.ApplicationRequestOrBuilder
-
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;- Specified by:
getEnvVarsOrBuilderListin interfaceCompute.ApplicationRequestOrBuilder
-
getEnvVarsCount
public 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;- Specified by:
getEnvVarsCountin interfaceCompute.ApplicationRequestOrBuilder
-
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;- Specified by:
getEnvVarsin interfaceCompute.ApplicationRequestOrBuilder
-
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;- Specified by:
getEnvVarsOrBuilderin interfaceCompute.ApplicationRequestOrBuilder
-
getWorkloadTypeValue
public 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;- Specified by:
getWorkloadTypeValuein interfaceCompute.ApplicationRequestOrBuilder- Returns:
- The enum numeric value on the wire for 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;- Specified by:
getWorkloadTypein interfaceCompute.ApplicationRequestOrBuilder- Returns:
- The workloadType.
-
hasExperimental
public boolean hasExperimental()A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ApplicationRequest.ExperimentalFeatures experimental = 10;- Specified by:
hasExperimentalin interfaceCompute.ApplicationRequestOrBuilder- Returns:
- Whether the experimental field is set.
-
getExperimental
A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ApplicationRequest.ExperimentalFeatures experimental = 10;- Specified by:
getExperimentalin interfaceCompute.ApplicationRequestOrBuilder- Returns:
- The experimental.
-
getExperimentalOrBuilder
A list of experimental features to enable in this container.
.namespace.cloud.compute.v1beta.ApplicationRequest.ExperimentalFeatures experimental = 10;- Specified by:
getExperimentalOrBuilderin interfaceCompute.ApplicationRequestOrBuilder
-
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 Compute.ApplicationRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Compute.ApplicationRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Compute.ApplicationRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Compute.ApplicationRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Compute.ApplicationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Compute.ApplicationRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Compute.ApplicationRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Compute.ApplicationRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Compute.ApplicationRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Compute.ApplicationRequest 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 Compute.ApplicationRequest.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
-