Class WorkloadsConfig.SchedulerResource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WorkloadsConfig.SchedulerResource.Builder>
com.google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource.Builder
All Implemented Interfaces:
WorkloadsConfig.SchedulerResourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WorkloadsConfig.SchedulerResource

public static final class WorkloadsConfig.SchedulerResource.Builder extends com.google.protobuf.GeneratedMessage.Builder<WorkloadsConfig.SchedulerResource.Builder> implements WorkloadsConfig.SchedulerResourceOrBuilder
 Configuration for resources used by Airflow schedulers.
 
Protobuf type google.cloud.orchestration.airflow.service.v1beta1.WorkloadsConfig.SchedulerResource
  • 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<WorkloadsConfig.SchedulerResource.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<WorkloadsConfig.SchedulerResource.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<WorkloadsConfig.SchedulerResource.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public WorkloadsConfig.SchedulerResource.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<WorkloadsConfig.SchedulerResource.Builder>
      Throws:
      IOException
    • getCpu

      public float getCpu()
       Optional. CPU request and limit for a single Airflow scheduler replica.
       
      float cpu = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCpu in interface WorkloadsConfig.SchedulerResourceOrBuilder
      Returns:
      The cpu.
    • setCpu

      public WorkloadsConfig.SchedulerResource.Builder setCpu(float value)
       Optional. CPU request and limit for a single Airflow scheduler replica.
       
      float cpu = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The cpu to set.
      Returns:
      This builder for chaining.
    • clearCpu

       Optional. CPU request and limit for a single Airflow scheduler replica.
       
      float cpu = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMemoryGb

      public float getMemoryGb()
       Optional. Memory (GB) request and limit for a single Airflow scheduler
       replica.
       
      float memory_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMemoryGb in interface WorkloadsConfig.SchedulerResourceOrBuilder
      Returns:
      The memoryGb.
    • setMemoryGb

      public WorkloadsConfig.SchedulerResource.Builder setMemoryGb(float value)
       Optional. Memory (GB) request and limit for a single Airflow scheduler
       replica.
       
      float memory_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The memoryGb to set.
      Returns:
      This builder for chaining.
    • clearMemoryGb

       Optional. Memory (GB) request and limit for a single Airflow scheduler
       replica.
       
      float memory_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getStorageGb

      public float getStorageGb()
       Optional. Storage (GB) request and limit for a single Airflow scheduler
       replica.
       
      float storage_gb = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageGb in interface WorkloadsConfig.SchedulerResourceOrBuilder
      Returns:
      The storageGb.
    • setStorageGb

      public WorkloadsConfig.SchedulerResource.Builder setStorageGb(float value)
       Optional. Storage (GB) request and limit for a single Airflow scheduler
       replica.
       
      float storage_gb = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The storageGb to set.
      Returns:
      This builder for chaining.
    • clearStorageGb

       Optional. Storage (GB) request and limit for a single Airflow scheduler
       replica.
       
      float storage_gb = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getCount

      public int getCount()
       Optional. The number of schedulers.
       
      int32 count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCount in interface WorkloadsConfig.SchedulerResourceOrBuilder
      Returns:
      The count.
    • setCount

      public WorkloadsConfig.SchedulerResource.Builder setCount(int value)
       Optional. The number of schedulers.
       
      int32 count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

       Optional. The number of schedulers.
       
      int32 count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.