public static final class UsageResourceAllowanceSpec.Limit extends GeneratedMessageV3 implements UsageResourceAllowanceSpec.LimitOrBuilder
UsageResourceAllowance limitation.
Protobuf type google.cloud.batch.v1alpha.UsageResourceAllowanceSpec.Limit
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CALENDAR_PERIOD_FIELD_NUMBER
public static final int CALENDAR_PERIOD_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LIMIT_FIELD_NUMBER
public static final int LIMIT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static UsageResourceAllowanceSpec.Limit getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static UsageResourceAllowanceSpec.Limit.Builder newBuilder()
newBuilder(UsageResourceAllowanceSpec.Limit prototype)
public static UsageResourceAllowanceSpec.Limit.Builder newBuilder(UsageResourceAllowanceSpec.Limit prototype)
public static UsageResourceAllowanceSpec.Limit parseDelimitedFrom(InputStream input)
public static UsageResourceAllowanceSpec.Limit parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static UsageResourceAllowanceSpec.Limit parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UsageResourceAllowanceSpec.Limit parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static UsageResourceAllowanceSpec.Limit parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UsageResourceAllowanceSpec.Limit parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UsageResourceAllowanceSpec.Limit parseFrom(CodedInputStream input)
public static UsageResourceAllowanceSpec.Limit parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UsageResourceAllowanceSpec.Limit parseFrom(InputStream input)
public static UsageResourceAllowanceSpec.Limit parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static UsageResourceAllowanceSpec.Limit parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UsageResourceAllowanceSpec.Limit parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<UsageResourceAllowanceSpec.Limit> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCalendarPeriod()
public 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];
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];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for calendarPeriod.
|
getDefaultInstanceForType()
public UsageResourceAllowanceSpec.Limit getDefaultInstanceForType()
getDurationCase()
public UsageResourceAllowanceSpec.Limit.DurationCase getDurationCase()
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 |
Type |
Description |
double |
The limit.
|
getParserForType()
public Parser<UsageResourceAllowanceSpec.Limit> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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];
Returns |
Type |
Description |
boolean |
Whether the calendarPeriod field is set.
|
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];
Returns |
Type |
Description |
boolean |
Whether the limit field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public UsageResourceAllowanceSpec.Limit.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UsageResourceAllowanceSpec.Limit.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public UsageResourceAllowanceSpec.Limit.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides