Class InstanceConsumptionInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceConsumptionInfo.Builder>
com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder
All Implemented Interfaces:
InstanceConsumptionInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
InstanceConsumptionInfo

public static final class InstanceConsumptionInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<InstanceConsumptionInfo.Builder> implements InstanceConsumptionInfoOrBuilder
 
Protobuf type google.cloud.compute.v1.InstanceConsumptionInfo
  • 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<InstanceConsumptionInfo.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<InstanceConsumptionInfo.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<InstanceConsumptionInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public InstanceConsumptionInfo.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<InstanceConsumptionInfo.Builder>
      Throws:
      IOException
    • hasGuestCpus

      public boolean hasGuestCpus()
       Output only. The number of virtual CPUs that are available to the instance.
       
      optional int32 guest_cpus = 393356754;
      Specified by:
      hasGuestCpus in interface InstanceConsumptionInfoOrBuilder
      Returns:
      Whether the guestCpus field is set.
    • getGuestCpus

      public int getGuestCpus()
       Output only. The number of virtual CPUs that are available to the instance.
       
      optional int32 guest_cpus = 393356754;
      Specified by:
      getGuestCpus in interface InstanceConsumptionInfoOrBuilder
      Returns:
      The guestCpus.
    • setGuestCpus

      public InstanceConsumptionInfo.Builder setGuestCpus(int value)
       Output only. The number of virtual CPUs that are available to the instance.
       
      optional int32 guest_cpus = 393356754;
      Parameters:
      value - The guestCpus to set.
      Returns:
      This builder for chaining.
    • clearGuestCpus

      public InstanceConsumptionInfo.Builder clearGuestCpus()
       Output only. The number of virtual CPUs that are available to the instance.
       
      optional int32 guest_cpus = 393356754;
      Returns:
      This builder for chaining.
    • hasLocalSsdGb

      public boolean hasLocalSsdGb()
       Output only. The amount of local SSD storage available to the instance,
       defined in GiB.
       
      optional int32 local_ssd_gb = 329237578;
      Specified by:
      hasLocalSsdGb in interface InstanceConsumptionInfoOrBuilder
      Returns:
      Whether the localSsdGb field is set.
    • getLocalSsdGb

      public int getLocalSsdGb()
       Output only. The amount of local SSD storage available to the instance,
       defined in GiB.
       
      optional int32 local_ssd_gb = 329237578;
      Specified by:
      getLocalSsdGb in interface InstanceConsumptionInfoOrBuilder
      Returns:
      The localSsdGb.
    • setLocalSsdGb

      public InstanceConsumptionInfo.Builder setLocalSsdGb(int value)
       Output only. The amount of local SSD storage available to the instance,
       defined in GiB.
       
      optional int32 local_ssd_gb = 329237578;
      Parameters:
      value - The localSsdGb to set.
      Returns:
      This builder for chaining.
    • clearLocalSsdGb

      public InstanceConsumptionInfo.Builder clearLocalSsdGb()
       Output only. The amount of local SSD storage available to the instance,
       defined in GiB.
       
      optional int32 local_ssd_gb = 329237578;
      Returns:
      This builder for chaining.
    • hasMemoryMb

      public boolean hasMemoryMb()
       Output only. The amount of physical memory available to the instance,
       defined in MiB.
       
      optional int32 memory_mb = 116001171;
      Specified by:
      hasMemoryMb in interface InstanceConsumptionInfoOrBuilder
      Returns:
      Whether the memoryMb field is set.
    • getMemoryMb

      public int getMemoryMb()
       Output only. The amount of physical memory available to the instance,
       defined in MiB.
       
      optional int32 memory_mb = 116001171;
      Specified by:
      getMemoryMb in interface InstanceConsumptionInfoOrBuilder
      Returns:
      The memoryMb.
    • setMemoryMb

      public InstanceConsumptionInfo.Builder setMemoryMb(int value)
       Output only. The amount of physical memory available to the instance,
       defined in MiB.
       
      optional int32 memory_mb = 116001171;
      Parameters:
      value - The memoryMb to set.
      Returns:
      This builder for chaining.
    • clearMemoryMb

      public InstanceConsumptionInfo.Builder clearMemoryMb()
       Output only. The amount of physical memory available to the instance,
       defined in MiB.
       
      optional int32 memory_mb = 116001171;
      Returns:
      This builder for chaining.
    • hasMinNodeCpus

      public boolean hasMinNodeCpus()
       Output only. The minimal guaranteed number of virtual CPUs that are reserved.
       
      optional int32 min_node_cpus = 317231675;
      Specified by:
      hasMinNodeCpus in interface InstanceConsumptionInfoOrBuilder
      Returns:
      Whether the minNodeCpus field is set.
    • getMinNodeCpus

      public int getMinNodeCpus()
       Output only. The minimal guaranteed number of virtual CPUs that are reserved.
       
      optional int32 min_node_cpus = 317231675;
      Specified by:
      getMinNodeCpus in interface InstanceConsumptionInfoOrBuilder
      Returns:
      The minNodeCpus.
    • setMinNodeCpus

      public InstanceConsumptionInfo.Builder setMinNodeCpus(int value)
       Output only. The minimal guaranteed number of virtual CPUs that are reserved.
       
      optional int32 min_node_cpus = 317231675;
      Parameters:
      value - The minNodeCpus to set.
      Returns:
      This builder for chaining.
    • clearMinNodeCpus

      public InstanceConsumptionInfo.Builder clearMinNodeCpus()
       Output only. The minimal guaranteed number of virtual CPUs that are reserved.
       
      optional int32 min_node_cpus = 317231675;
      Returns:
      This builder for chaining.