Interface UsageResourceAllowanceSpec.LimitOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
UsageResourceAllowanceSpec.Limit, UsageResourceAllowanceSpec.Limit.Builder
Enclosing class:
UsageResourceAllowanceSpec

public static interface UsageResourceAllowanceSpec.LimitOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional.
    int
    Optional.
     
    double
    Required.
    boolean
    Optional.
    boolean
    Required.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasCalendarPeriod

      boolean hasCalendarPeriod()
       Optional. A CalendarPeriod represents the abstract concept of a time
       period that has a canonical start.
       
      .google.cloud.batch.v1alpha.CalendarPeriod calendar_period = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the calendarPeriod field is set.
    • getCalendarPeriodValue

      int getCalendarPeriodValue()
       Optional. A CalendarPeriod represents the abstract concept of a time
       period that has a canonical start.
       
      .google.cloud.batch.v1alpha.CalendarPeriod calendar_period = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The enum numeric value on the wire for calendarPeriod.
    • getCalendarPeriod

      CalendarPeriod getCalendarPeriod()
       Optional. A CalendarPeriod represents the abstract concept of a time
       period that has a canonical start.
       
      .google.cloud.batch.v1alpha.CalendarPeriod calendar_period = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The calendarPeriod.
    • hasLimit

      boolean hasLimit()
       Required. Limit value of a UsageResourceAllowance within its one
       duration.
      
       Limit cannot be a negative value. Default is 0.
       For example, you can set `limit` as 10000.0 with duration of the current
       month by setting `calendar_period` field as monthly. That means in your
       current month, 10000.0 is the core hour limitation that your resources
       are allowed to consume.
       
      optional double limit = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      Whether the limit field is set.
    • getLimit

      double getLimit()
       Required. Limit value of a UsageResourceAllowance within its one
       duration.
      
       Limit cannot be a negative value. Default is 0.
       For example, you can set `limit` as 10000.0 with duration of the current
       month by setting `calendar_period` field as monthly. That means in your
       current month, 10000.0 is the core hour limitation that your resources
       are allowed to consume.
       
      optional double limit = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The limit.
    • getDurationCase