Package com.google.cloud.batch.v1alpha
Interface UsageResourceAllowanceSpecOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
UsageResourceAllowanceSpec,UsageResourceAllowanceSpec.Builder
@Generated
public interface UsageResourceAllowanceSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getType
String getType()Required. Spec type is unique for each usage ResourceAllowance. Batch now only supports type as "cpu-core-hours" for CPU usage consumption tracking.
string type = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()Required. Spec type is unique for each usage ResourceAllowance. Batch now only supports type as "cpu-core-hours" for CPU usage consumption tracking.
string type = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for type.
-
hasLimit
boolean hasLimit()Required. Threshold of a UsageResourceAllowance limiting how many resources can be consumed for each type.
.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec.Limit limit = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the limit field is set.
-
getLimit
UsageResourceAllowanceSpec.Limit getLimit()Required. Threshold of a UsageResourceAllowance limiting how many resources can be consumed for each type.
.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec.Limit limit = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The limit.
-
getLimitOrBuilder
UsageResourceAllowanceSpec.LimitOrBuilder getLimitOrBuilder()Required. Threshold of a UsageResourceAllowance limiting how many resources can be consumed for each type.
.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec.Limit limit = 2 [(.google.api.field_behavior) = REQUIRED];
-