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:
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       A name of the application being created. Must be unique.
       
      string name = 1;
      Specified by:
      getName in interface Compute.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:
      getNameBytes in interface Compute.ApplicationRequestOrBuilder
      Returns:
      The bytes for name.
    • getImageRef

      public 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;
      Specified by:
      getImageRef in interface Compute.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:
      getImageRefBytes in interface Compute.ApplicationRequestOrBuilder
      Returns:
      The bytes for imageRef.
    • getCommand

      public 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;
      Specified by:
      getCommand in interface Compute.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:
      getCommandBytes in interface Compute.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:
      getArgsList in interface Compute.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:
      getArgsCount in interface Compute.ApplicationRequestOrBuilder
      Returns:
      The count of args.
    • getArgs

      public String getArgs(int index)
       A set of arguments to pass to the application.
      
       Example: `["--foobar"]`
       
      repeated string args = 3;
      Specified by:
      getArgs in interface Compute.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:
      getArgsBytes in interface Compute.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.ApplicationRequestOrBuilder
       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:
      getEnvironmentCount in interface Compute.ApplicationRequestOrBuilder
    • containsEnvironment

      public boolean containsEnvironment(String key)
       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:
      containsEnvironment in interface Compute.ApplicationRequestOrBuilder
    • getEnvironment

      @Deprecated public Map<String,String> getEnvironment()
      Deprecated.
      Use getEnvironmentMap() instead.
      Specified by:
      getEnvironment in interface Compute.ApplicationRequestOrBuilder
    • getEnvironmentMap

      public Map<String,String> 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:
      getEnvironmentMap in interface Compute.ApplicationRequestOrBuilder
    • getEnvironmentOrDefault

      public String getEnvironmentOrDefault(String key, String defaultValue)
       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:
      getEnvironmentOrDefault in interface Compute.ApplicationRequestOrBuilder
    • getEnvironmentOrThrow

      public String getEnvironmentOrThrow(String key)
       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:
      getEnvironmentOrThrow in interface Compute.ApplicationRequestOrBuilder
    • getEnvVarsList

      public 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;
      Specified by:
      getEnvVarsList in interface Compute.ApplicationRequestOrBuilder
    • getEnvVarsOrBuilderList

      public 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;
      Specified by:
      getEnvVarsOrBuilderList in interface Compute.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:
      getEnvVarsCount in interface Compute.ApplicationRequestOrBuilder
    • getEnvVars

      public Compute.EnvironmentVariable getEnvVars(int index)
       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:
      getEnvVars in interface Compute.ApplicationRequestOrBuilder
    • getEnvVarsOrBuilder

      public Compute.EnvironmentVariableOrBuilder getEnvVarsOrBuilder(int index)
       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:
      getEnvVarsOrBuilder in interface Compute.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:
      getWorkloadTypeValue in interface Compute.ApplicationRequestOrBuilder
      Returns:
      The enum numeric value on the wire for workloadType.
    • getWorkloadType

      public 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;
      Specified by:
      getWorkloadType in interface Compute.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:
      hasExperimental in interface Compute.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:
      getExperimental in interface Compute.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:
      getExperimentalOrBuilder in interface Compute.ApplicationRequestOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 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

      public static Compute.ApplicationRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Compute.ApplicationRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Compute.ApplicationRequest parseDelimitedFrom(InputStream input) throws IOException
      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

      public Compute.ApplicationRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Compute.ApplicationRequest.Builder newBuilder()
    • newBuilder

      public static Compute.ApplicationRequest.Builder newBuilder(Compute.ApplicationRequest prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Compute.ApplicationRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Compute.ApplicationRequest getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Compute.ApplicationRequest> 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.GeneratedMessage
    • getDefaultInstanceForType

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