Class AdvancedMachineFeatures.Builder

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

public static final class AdvancedMachineFeatures.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdvancedMachineFeatures.Builder> implements AdvancedMachineFeaturesOrBuilder
 Specifies options for controlling advanced machine features.
 
Protobuf type google.container.v1.AdvancedMachineFeatures
  • 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<AdvancedMachineFeatures.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<AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
    • getDefaultInstanceForType

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

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

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

      public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
    • mergeFrom

    • isInitialized

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

      public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
      Throws:
      IOException
    • hasThreadsPerCore

      public boolean hasThreadsPerCore()
       The number of threads per physical core. To disable simultaneous
       multithreading (SMT) set this to 1. If unset, the maximum number of threads
       supported per core by the underlying processor is assumed.
       
      optional int64 threads_per_core = 1;
      Specified by:
      hasThreadsPerCore in interface AdvancedMachineFeaturesOrBuilder
      Returns:
      Whether the threadsPerCore field is set.
    • getThreadsPerCore

      public long getThreadsPerCore()
       The number of threads per physical core. To disable simultaneous
       multithreading (SMT) set this to 1. If unset, the maximum number of threads
       supported per core by the underlying processor is assumed.
       
      optional int64 threads_per_core = 1;
      Specified by:
      getThreadsPerCore in interface AdvancedMachineFeaturesOrBuilder
      Returns:
      The threadsPerCore.
    • setThreadsPerCore

      public AdvancedMachineFeatures.Builder setThreadsPerCore(long value)
       The number of threads per physical core. To disable simultaneous
       multithreading (SMT) set this to 1. If unset, the maximum number of threads
       supported per core by the underlying processor is assumed.
       
      optional int64 threads_per_core = 1;
      Parameters:
      value - The threadsPerCore to set.
      Returns:
      This builder for chaining.
    • clearThreadsPerCore

      public AdvancedMachineFeatures.Builder clearThreadsPerCore()
       The number of threads per physical core. To disable simultaneous
       multithreading (SMT) set this to 1. If unset, the maximum number of threads
       supported per core by the underlying processor is assumed.
       
      optional int64 threads_per_core = 1;
      Returns:
      This builder for chaining.
    • hasEnableNestedVirtualization

      public boolean hasEnableNestedVirtualization()
       Whether or not to enable nested virtualization (defaults to false).
       
      optional bool enable_nested_virtualization = 2;
      Specified by:
      hasEnableNestedVirtualization in interface AdvancedMachineFeaturesOrBuilder
      Returns:
      Whether the enableNestedVirtualization field is set.
    • getEnableNestedVirtualization

      public boolean getEnableNestedVirtualization()
       Whether or not to enable nested virtualization (defaults to false).
       
      optional bool enable_nested_virtualization = 2;
      Specified by:
      getEnableNestedVirtualization in interface AdvancedMachineFeaturesOrBuilder
      Returns:
      The enableNestedVirtualization.
    • setEnableNestedVirtualization

      public AdvancedMachineFeatures.Builder setEnableNestedVirtualization(boolean value)
       Whether or not to enable nested virtualization (defaults to false).
       
      optional bool enable_nested_virtualization = 2;
      Parameters:
      value - The enableNestedVirtualization to set.
      Returns:
      This builder for chaining.
    • clearEnableNestedVirtualization

      public AdvancedMachineFeatures.Builder clearEnableNestedVirtualization()
       Whether or not to enable nested virtualization (defaults to false).
       
      optional bool enable_nested_virtualization = 2;
      Returns:
      This builder for chaining.
    • hasPerformanceMonitoringUnit

      public boolean hasPerformanceMonitoringUnit()
       Type of Performance Monitoring Unit (PMU) requested on node pool instances.
       If unset, PMU will not be available to the node.
       
      optional .google.container.v1.AdvancedMachineFeatures.PerformanceMonitoringUnit performance_monitoring_unit = 3;
      Specified by:
      hasPerformanceMonitoringUnit in interface AdvancedMachineFeaturesOrBuilder
      Returns:
      Whether the performanceMonitoringUnit field is set.
    • getPerformanceMonitoringUnitValue

      public int getPerformanceMonitoringUnitValue()
       Type of Performance Monitoring Unit (PMU) requested on node pool instances.
       If unset, PMU will not be available to the node.
       
      optional .google.container.v1.AdvancedMachineFeatures.PerformanceMonitoringUnit performance_monitoring_unit = 3;
      Specified by:
      getPerformanceMonitoringUnitValue in interface AdvancedMachineFeaturesOrBuilder
      Returns:
      The enum numeric value on the wire for performanceMonitoringUnit.
    • setPerformanceMonitoringUnitValue

      public AdvancedMachineFeatures.Builder setPerformanceMonitoringUnitValue(int value)
       Type of Performance Monitoring Unit (PMU) requested on node pool instances.
       If unset, PMU will not be available to the node.
       
      optional .google.container.v1.AdvancedMachineFeatures.PerformanceMonitoringUnit performance_monitoring_unit = 3;
      Parameters:
      value - The enum numeric value on the wire for performanceMonitoringUnit to set.
      Returns:
      This builder for chaining.
    • getPerformanceMonitoringUnit

      public AdvancedMachineFeatures.PerformanceMonitoringUnit getPerformanceMonitoringUnit()
       Type of Performance Monitoring Unit (PMU) requested on node pool instances.
       If unset, PMU will not be available to the node.
       
      optional .google.container.v1.AdvancedMachineFeatures.PerformanceMonitoringUnit performance_monitoring_unit = 3;
      Specified by:
      getPerformanceMonitoringUnit in interface AdvancedMachineFeaturesOrBuilder
      Returns:
      The performanceMonitoringUnit.
    • setPerformanceMonitoringUnit

       Type of Performance Monitoring Unit (PMU) requested on node pool instances.
       If unset, PMU will not be available to the node.
       
      optional .google.container.v1.AdvancedMachineFeatures.PerformanceMonitoringUnit performance_monitoring_unit = 3;
      Parameters:
      value - The performanceMonitoringUnit to set.
      Returns:
      This builder for chaining.
    • clearPerformanceMonitoringUnit

      public AdvancedMachineFeatures.Builder clearPerformanceMonitoringUnit()
       Type of Performance Monitoring Unit (PMU) requested on node pool instances.
       If unset, PMU will not be available to the node.
       
      optional .google.container.v1.AdvancedMachineFeatures.PerformanceMonitoringUnit performance_monitoring_unit = 3;
      Returns:
      This builder for chaining.