Package com.google.cloud.batch.v1alpha
Class UsageResourceAllowanceSpec.Limit.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UsageResourceAllowanceSpec.Limit.Builder>
com.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec.Limit.Builder
- All Implemented Interfaces:
UsageResourceAllowanceSpec.LimitOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UsageResourceAllowanceSpec.Limit
public static final class UsageResourceAllowanceSpec.Limit.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UsageResourceAllowanceSpec.Limit.Builder>
implements UsageResourceAllowanceSpec.LimitOrBuilder
UsageResourceAllowance limitation.Protobuf type
google.cloud.batch.v1alpha.UsageResourceAllowanceSpec.Limit-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Optional.intOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoublegetLimit()Required.booleanOptional.booleanhasLimit()Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCalendarPeriod(CalendarPeriod value) Optional.setCalendarPeriodValue(int value) Optional.setLimit(double value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UsageResourceAllowanceSpec.Limit.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UsageResourceAllowanceSpec.Limit.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UsageResourceAllowanceSpec.Limit.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UsageResourceAllowanceSpec.Limit.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UsageResourceAllowanceSpec.Limit.Builder>
-
mergeFrom
public UsageResourceAllowanceSpec.Limit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UsageResourceAllowanceSpec.Limit.Builder>- Throws:
IOException
-
getDurationCase
- Specified by:
getDurationCasein interfaceUsageResourceAllowanceSpec.LimitOrBuilder
-
clearDuration
-
hasCalendarPeriod
public 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];- Specified by:
hasCalendarPeriodin interfaceUsageResourceAllowanceSpec.LimitOrBuilder- Returns:
- Whether the calendarPeriod field is set.
-
getCalendarPeriodValue
public 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];- Specified by:
getCalendarPeriodValuein interfaceUsageResourceAllowanceSpec.LimitOrBuilder- Returns:
- The enum numeric value on the wire for calendarPeriod.
-
setCalendarPeriodValue
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];- Parameters:
value- The enum numeric value on the wire for calendarPeriod to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getCalendarPeriodin interfaceUsageResourceAllowanceSpec.LimitOrBuilder- Returns:
- The calendarPeriod.
-
setCalendarPeriod
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];- Parameters:
value- The calendarPeriod to set.- Returns:
- This builder for chaining.
-
clearCalendarPeriod
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:
- This builder for chaining.
-
hasLimit
public 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];- Specified by:
hasLimitin interfaceUsageResourceAllowanceSpec.LimitOrBuilder- Returns:
- Whether the limit field is set.
-
getLimit
public 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];- Specified by:
getLimitin interfaceUsageResourceAllowanceSpec.LimitOrBuilder- Returns:
- The limit.
-
setLimit
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];- Parameters:
value- The limit to set.- Returns:
- This builder for chaining.
-
clearLimit
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:
- This builder for chaining.
-