Class MachineConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MachineConfig.Builder>
com.google.cloud.databasecenter.v1beta.MachineConfig.Builder
All Implemented Interfaces:
MachineConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MachineConfig

public static final class MachineConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<MachineConfig.Builder> implements MachineConfigOrBuilder
 MachineConfig describes the configuration of a machine specific to a Database
 Resource.
 
Protobuf type google.cloud.databasecenter.v1beta.MachineConfig
  • 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<MachineConfig.Builder>
    • clear

      public MachineConfig.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<MachineConfig.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<MachineConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public MachineConfig.Builder mergeFrom(MachineConfig other)
    • isInitialized

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

      public MachineConfig.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<MachineConfig.Builder>
      Throws:
      IOException
    • getMemorySizeBytes

      public long getMemorySizeBytes()
       Memory size in bytes.
       
      int64 memory_size_bytes = 2;
      Specified by:
      getMemorySizeBytes in interface MachineConfigOrBuilder
      Returns:
      The memorySizeBytes.
    • setMemorySizeBytes

      public MachineConfig.Builder setMemorySizeBytes(long value)
       Memory size in bytes.
       
      int64 memory_size_bytes = 2;
      Parameters:
      value - The memorySizeBytes to set.
      Returns:
      This builder for chaining.
    • clearMemorySizeBytes

      public MachineConfig.Builder clearMemorySizeBytes()
       Memory size in bytes.
       
      int64 memory_size_bytes = 2;
      Returns:
      This builder for chaining.
    • hasShardCount

      public boolean hasShardCount()
       Optional. The number of Shards (if applicable).
       
      optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasShardCount in interface MachineConfigOrBuilder
      Returns:
      Whether the shardCount field is set.
    • getShardCount

      public int getShardCount()
       Optional. The number of Shards (if applicable).
       
      optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getShardCount in interface MachineConfigOrBuilder
      Returns:
      The shardCount.
    • setShardCount

      public MachineConfig.Builder setShardCount(int value)
       Optional. The number of Shards (if applicable).
       
      optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The shardCount to set.
      Returns:
      This builder for chaining.
    • clearShardCount

      public MachineConfig.Builder clearShardCount()
       Optional. The number of Shards (if applicable).
       
      optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasVcpuCount

      public boolean hasVcpuCount()
       Optional. The number of vCPUs (if applicable).
       
      optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasVcpuCount in interface MachineConfigOrBuilder
      Returns:
      Whether the vcpuCount field is set.
    • getVcpuCount

      public double getVcpuCount()
       Optional. The number of vCPUs (if applicable).
       
      optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVcpuCount in interface MachineConfigOrBuilder
      Returns:
      The vcpuCount.
    • setVcpuCount

      public MachineConfig.Builder setVcpuCount(double value)
       Optional. The number of vCPUs (if applicable).
       
      optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The vcpuCount to set.
      Returns:
      This builder for chaining.
    • clearVcpuCount

      public MachineConfig.Builder clearVcpuCount()
       Optional. The number of vCPUs (if applicable).
       
      optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasBaselineSlotCount

      public boolean hasBaselineSlotCount()
       Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
       increments of 50.
       
      optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasBaselineSlotCount in interface MachineConfigOrBuilder
      Returns:
      Whether the baselineSlotCount field is set.
    • getBaselineSlotCount

      public long getBaselineSlotCount()
       Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
       increments of 50.
       
      optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBaselineSlotCount in interface MachineConfigOrBuilder
      Returns:
      The baselineSlotCount.
    • setBaselineSlotCount

      public MachineConfig.Builder setBaselineSlotCount(long value)
       Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
       increments of 50.
       
      optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The baselineSlotCount to set.
      Returns:
      This builder for chaining.
    • clearBaselineSlotCount

      public MachineConfig.Builder clearBaselineSlotCount()
       Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
       increments of 50.
       
      optional int64 baseline_slot_count = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasMaxReservationSlotCount

      public boolean hasMaxReservationSlotCount()
       Optional. Max slots for BigQuery Reservations. Max slots are in increments
       of 50.
       
      optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMaxReservationSlotCount in interface MachineConfigOrBuilder
      Returns:
      Whether the maxReservationSlotCount field is set.
    • getMaxReservationSlotCount

      public long getMaxReservationSlotCount()
       Optional. Max slots for BigQuery Reservations. Max slots are in increments
       of 50.
       
      optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxReservationSlotCount in interface MachineConfigOrBuilder
      Returns:
      The maxReservationSlotCount.
    • setMaxReservationSlotCount

      public MachineConfig.Builder setMaxReservationSlotCount(long value)
       Optional. Max slots for BigQuery Reservations. Max slots are in increments
       of 50.
       
      optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxReservationSlotCount to set.
      Returns:
      This builder for chaining.
    • clearMaxReservationSlotCount

      public MachineConfig.Builder clearMaxReservationSlotCount()
       Optional. Max slots for BigQuery Reservations. Max slots are in increments
       of 50.
       
      optional int64 max_reservation_slot_count = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.