Class Compute.InstanceShape

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
namespace.cloud.compute.v1beta.Compute.InstanceShape
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Compute.InstanceShapeOrBuilder
Enclosing class:
Compute

public static final class Compute.InstanceShape extends com.google.protobuf.GeneratedMessage implements Compute.InstanceShapeOrBuilder
 Defines an instance shape: the combination of CPU, RAM and Disk that the
 instance should use.

 The size of the ephemeral disk automatically scales with the selected CPU/RAM allocation.
 See also https://namespace.so/docs/architecture/compute/machine-shapes#storage-allocation

 Usable values are constrained by policy, and are typically only settable in
 values as powers of two.
 
Protobuf type namespace.cloud.compute.v1beta.InstanceShape
See Also:
  • Field Details

    • VIRTUAL_CPU_FIELD_NUMBER

      public static final int VIRTUAL_CPU_FIELD_NUMBER
      See Also:
    • MEMORY_MEGABYTES_FIELD_NUMBER

      public static final int MEMORY_MEGABYTES_FIELD_NUMBER
      See Also:
    • MACHINE_ARCH_FIELD_NUMBER

      public static final int MACHINE_ARCH_FIELD_NUMBER
      See Also:
    • OS_FIELD_NUMBER

      public static final int OS_FIELD_NUMBER
      See Also:
    • SELECTORS_FIELD_NUMBER

      public static final int SELECTORS_FIELD_NUMBER
      See Also:
  • Method Details

    • 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
    • getVirtualCpu

      public int getVirtualCpu()
       Number of virtual CPUs. Typically a power of two (e.g. 2, 4, 8, 16).
       
      int32 virtual_cpu = 1;
      Specified by:
      getVirtualCpu in interface Compute.InstanceShapeOrBuilder
      Returns:
      The virtualCpu.
    • getMemoryMegabytes

      public int getMemoryMegabytes()
       Memory in megabytes. Typically scales with CPU (e.g. 2048 per vCPU).
       
      int32 memory_megabytes = 2;
      Specified by:
      getMemoryMegabytes in interface Compute.InstanceShapeOrBuilder
      Returns:
      The memoryMegabytes.
    • getMachineArch

      public String getMachineArch()
       Architecture of the instance, e.g. "amd64" or "arm64".
       
      string machine_arch = 3;
      Specified by:
      getMachineArch in interface Compute.InstanceShapeOrBuilder
      Returns:
      The machineArch.
    • getMachineArchBytes

      public com.google.protobuf.ByteString getMachineArchBytes()
       Architecture of the instance, e.g. "amd64" or "arm64".
       
      string machine_arch = 3;
      Specified by:
      getMachineArchBytes in interface Compute.InstanceShapeOrBuilder
      Returns:
      The bytes for machineArch.
    • getOs

      public String getOs()
       Operating system of the instance, e.g. "linux" or "macos".
       
      string os = 4;
      Specified by:
      getOs in interface Compute.InstanceShapeOrBuilder
      Returns:
      The os.
    • getOsBytes

      public com.google.protobuf.ByteString getOsBytes()
       Operating system of the instance, e.g. "linux" or "macos".
       
      string os = 4;
      Specified by:
      getOsBytes in interface Compute.InstanceShapeOrBuilder
      Returns:
      The bytes for os.
    • getSelectorsList

      public List<Labels.Label> getSelectorsList()
       Provide additional constraints to instance selection. Available selectors:
       https://namespace.so/docs/architecture/compute/macos#available-selectors
       
      repeated .namespace.stdlib.Label selectors = 5;
      Specified by:
      getSelectorsList in interface Compute.InstanceShapeOrBuilder
    • getSelectorsOrBuilderList

      public List<? extends Labels.LabelOrBuilder> getSelectorsOrBuilderList()
       Provide additional constraints to instance selection. Available selectors:
       https://namespace.so/docs/architecture/compute/macos#available-selectors
       
      repeated .namespace.stdlib.Label selectors = 5;
      Specified by:
      getSelectorsOrBuilderList in interface Compute.InstanceShapeOrBuilder
    • getSelectorsCount

      public int getSelectorsCount()
       Provide additional constraints to instance selection. Available selectors:
       https://namespace.so/docs/architecture/compute/macos#available-selectors
       
      repeated .namespace.stdlib.Label selectors = 5;
      Specified by:
      getSelectorsCount in interface Compute.InstanceShapeOrBuilder
    • getSelectors

      public Labels.Label getSelectors(int index)
       Provide additional constraints to instance selection. Available selectors:
       https://namespace.so/docs/architecture/compute/macos#available-selectors
       
      repeated .namespace.stdlib.Label selectors = 5;
      Specified by:
      getSelectors in interface Compute.InstanceShapeOrBuilder
    • getSelectorsOrBuilder

      public Labels.LabelOrBuilder getSelectorsOrBuilder(int index)
       Provide additional constraints to instance selection. Available selectors:
       https://namespace.so/docs/architecture/compute/macos#available-selectors
       
      repeated .namespace.stdlib.Label selectors = 5;
      Specified by:
      getSelectorsOrBuilder in interface Compute.InstanceShapeOrBuilder
    • 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.InstanceShape parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Compute.InstanceShape 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.InstanceShape parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

      public static Compute.InstanceShape parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static Compute.InstanceShape parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

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

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

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

      public static Compute.InstanceShape getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Compute.InstanceShape> 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.InstanceShape getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder