All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.visionai.v1.ResourceSpecificationOrBuilder Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/visionai/v1/lva.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;

public interface ResourceSpecificationOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.ResourceSpecification)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * 
   * 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; * * @return The cpu. */ java.lang.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; * * @return The bytes for cpu. */ com.google.protobuf.ByteString getCpuBytes(); /** * * *
   * 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; * * @return The cpuLimits. */ java.lang.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; * * @return The bytes for cpuLimits. */ com.google.protobuf.ByteString getCpuLimitsBytes(); /** * * *
   * 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; * * @return The memory. */ java.lang.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; * * @return The bytes for memory. */ com.google.protobuf.ByteString getMemoryBytes(); /** * * *
   * 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; * * @return The memoryLimits. */ java.lang.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; * * @return The bytes for memoryLimits. */ com.google.protobuf.ByteString getMemoryLimitsBytes(); /** * * *
   * Number of gpus.
   * 
* * int32 gpus = 3; * * @return The gpus. */ int getGpus(); /** * * *
   * 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; * * @return The latencyBudgetMs. */ int getLatencyBudgetMs(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy