Interface Compute.InstanceShapeOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Compute.InstanceShape, Compute.InstanceShape.Builder
Enclosing class:
Compute

public static interface Compute.InstanceShapeOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Architecture of the instance, e.g.
    com.google.protobuf.ByteString
    Architecture of the instance, e.g.
    int
    Memory in megabytes.
    Operating system of the instance, e.g.
    com.google.protobuf.ByteString
    Operating system of the instance, e.g.
    getSelectors(int index)
    Provide additional constraints to instance selection.
    int
    Provide additional constraints to instance selection.
    Provide additional constraints to instance selection.
    Provide additional constraints to instance selection.
    Provide additional constraints to instance selection.
    int
    Number of virtual CPUs.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getVirtualCpu

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

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

      String getMachineArch()
       Architecture of the instance, e.g. "amd64" or "arm64".
       
      string machine_arch = 3;
      Returns:
      The machineArch.
    • getMachineArchBytes

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

      String getOs()
       Operating system of the instance, e.g. "linux" or "macos".
       
      string os = 4;
      Returns:
      The os.
    • getOsBytes

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

      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;
    • getSelectors

      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;
    • getSelectorsCount

      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;
    • getSelectorsOrBuilderList

      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;
    • getSelectorsOrBuilder

      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;