Class GPUSharingConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GPUSharingConfig.Builder>
com.google.container.v1.GPUSharingConfig.Builder
All Implemented Interfaces:
GPUSharingConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GPUSharingConfig

public static final class GPUSharingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<GPUSharingConfig.Builder> implements GPUSharingConfigOrBuilder
 GPUSharingConfig represents the GPU sharing configuration for Hardware
 Accelerators.
 
Protobuf type google.container.v1.GPUSharingConfig
  • 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.Builder<GPUSharingConfig.Builder>
    • clear

      public GPUSharingConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GPUSharingConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GPUSharingConfig.Builder>
    • getDefaultInstanceForType

      public GPUSharingConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GPUSharingConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GPUSharingConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GPUSharingConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GPUSharingConfig.Builder>
    • mergeFrom

      public GPUSharingConfig.Builder mergeFrom(GPUSharingConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GPUSharingConfig.Builder>
    • mergeFrom

      public GPUSharingConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GPUSharingConfig.Builder>
      Throws:
      IOException
    • getMaxSharedClientsPerGpu

      public long getMaxSharedClientsPerGpu()
       The max number of containers that can share a physical GPU.
       
      int64 max_shared_clients_per_gpu = 1;
      Specified by:
      getMaxSharedClientsPerGpu in interface GPUSharingConfigOrBuilder
      Returns:
      The maxSharedClientsPerGpu.
    • setMaxSharedClientsPerGpu

      public GPUSharingConfig.Builder setMaxSharedClientsPerGpu(long value)
       The max number of containers that can share a physical GPU.
       
      int64 max_shared_clients_per_gpu = 1;
      Parameters:
      value - The maxSharedClientsPerGpu to set.
      Returns:
      This builder for chaining.
    • clearMaxSharedClientsPerGpu

      public GPUSharingConfig.Builder clearMaxSharedClientsPerGpu()
       The max number of containers that can share a physical GPU.
       
      int64 max_shared_clients_per_gpu = 1;
      Returns:
      This builder for chaining.
    • hasGpuSharingStrategy

      public boolean hasGpuSharingStrategy()
       The type of GPU sharing strategy to enable on the GPU node.
       
      optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;
      Specified by:
      hasGpuSharingStrategy in interface GPUSharingConfigOrBuilder
      Returns:
      Whether the gpuSharingStrategy field is set.
    • getGpuSharingStrategyValue

      public int getGpuSharingStrategyValue()
       The type of GPU sharing strategy to enable on the GPU node.
       
      optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;
      Specified by:
      getGpuSharingStrategyValue in interface GPUSharingConfigOrBuilder
      Returns:
      The enum numeric value on the wire for gpuSharingStrategy.
    • setGpuSharingStrategyValue

      public GPUSharingConfig.Builder setGpuSharingStrategyValue(int value)
       The type of GPU sharing strategy to enable on the GPU node.
       
      optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;
      Parameters:
      value - The enum numeric value on the wire for gpuSharingStrategy to set.
      Returns:
      This builder for chaining.
    • getGpuSharingStrategy

      public GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy()
       The type of GPU sharing strategy to enable on the GPU node.
       
      optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;
      Specified by:
      getGpuSharingStrategy in interface GPUSharingConfigOrBuilder
      Returns:
      The gpuSharingStrategy.
    • setGpuSharingStrategy

      public GPUSharingConfig.Builder setGpuSharingStrategy(GPUSharingConfig.GPUSharingStrategy value)
       The type of GPU sharing strategy to enable on the GPU node.
       
      optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;
      Parameters:
      value - The gpuSharingStrategy to set.
      Returns:
      This builder for chaining.
    • clearGpuSharingStrategy

      public GPUSharingConfig.Builder clearGpuSharingStrategy()
       The type of GPU sharing strategy to enable on the GPU node.
       
      optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;
      Returns:
      This builder for chaining.