Interface ResourceSpecificationOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ResourceSpecification, ResourceSpecification.Builder

@Generated public interface ResourceSpecificationOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    CPU specification.
    com.google.protobuf.ByteString
    CPU specification.
    CPU limit.
    com.google.protobuf.ByteString
    CPU limit.
    int
    Number of gpus.
    int
    The maximum latency that this operator may use to process an element.
    Memory specification (in bytes).
    com.google.protobuf.ByteString
    Memory specification (in bytes).
    Memory usage limits.
    com.google.protobuf.ByteString
    Memory usage limits.

    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

    • getCpu

      String getCpu()
       CPU specification.
      
       Examples:
       "100m", "0.5", "1", "2", ... correspond to
       0.1, half, 1, or 2 cpus.
      
       Leave empty to let the system decide.
      
       Note that this does *not* determine the cpu vender/make,
       or its underlying clock speed and specific SIMD features.
       It is only the amount time it requires in timeslicing.
       
      string cpu = 1;
      Returns:
      The cpu.
    • getCpuBytes

      com.google.protobuf.ByteString getCpuBytes()
       CPU specification.
      
       Examples:
       "100m", "0.5", "1", "2", ... correspond to
       0.1, half, 1, or 2 cpus.
      
       Leave empty to let the system decide.
      
       Note that this does *not* determine the cpu vender/make,
       or its underlying clock speed and specific SIMD features.
       It is only the amount time it requires in timeslicing.
       
      string cpu = 1;
      Returns:
      The bytes for cpu.
    • getCpuLimits

      String getCpuLimits()
       CPU limit.
      
       Examples:
       "100m", "0.5", "1", "2", ... correspond to
       0.1, half, 1, or 2 cpus.
      
       Leave empty to indicate no limit.
       
      string cpu_limits = 5;
      Returns:
      The cpuLimits.
    • getCpuLimitsBytes

      com.google.protobuf.ByteString getCpuLimitsBytes()
       CPU limit.
      
       Examples:
       "100m", "0.5", "1", "2", ... correspond to
       0.1, half, 1, or 2 cpus.
      
       Leave empty to indicate no limit.
       
      string cpu_limits = 5;
      Returns:
      The bytes for cpuLimits.
    • getMemory

      String getMemory()
       Memory specification (in bytes).
      
       Examples:
       "128974848", "129e6", "129M", "123Mi", ... correspond to
       128974848 bytes, 129000000 bytes, 129 mebibytes, 123 megabytes.
      
       Leave empty to let the system decide.
       
      string memory = 2;
      Returns:
      The memory.
    • getMemoryBytes

      com.google.protobuf.ByteString getMemoryBytes()
       Memory specification (in bytes).
      
       Examples:
       "128974848", "129e6", "129M", "123Mi", ... correspond to
       128974848 bytes, 129000000 bytes, 129 mebibytes, 123 megabytes.
      
       Leave empty to let the system decide.
       
      string memory = 2;
      Returns:
      The bytes for memory.
    • getMemoryLimits

      String getMemoryLimits()
       Memory usage limits.
      
       Examples:
       "128974848", "129e6", "129M", "123Mi", ... correspond to
       128974848 bytes, 129000000 bytes, 129 mebibytes, 123 megabytes.
      
       Leave empty to indicate no limit.
       
      string memory_limits = 6;
      Returns:
      The memoryLimits.
    • getMemoryLimitsBytes

      com.google.protobuf.ByteString getMemoryLimitsBytes()
       Memory usage limits.
      
       Examples:
       "128974848", "129e6", "129M", "123Mi", ... correspond to
       128974848 bytes, 129000000 bytes, 129 mebibytes, 123 megabytes.
      
       Leave empty to indicate no limit.
       
      string memory_limits = 6;
      Returns:
      The bytes for memoryLimits.
    • getGpus

      int getGpus()
       Number of gpus.
       
      int32 gpus = 3;
      Returns:
      The gpus.
    • getLatencyBudgetMs

      int getLatencyBudgetMs()
       The maximum latency that this operator may use to process an element.
      
       If non positive, then a system default will be used.
       Operator developers should arrange for the system compute resources to be
       aligned with this latency budget; e.g. if you want a ML model to produce
       results within 500ms, then you should make sure you request enough
       cpu/gpu/memory to achieve that.
       
      int32 latency_budget_ms = 4;
      Returns:
      The latencyBudgetMs.