public static final class UsageResourceAllowanceSpec.Builder extends GeneratedMessageV3.Builder<UsageResourceAllowanceSpec.Builder> implements UsageResourceAllowanceSpecOrBuilder
Spec of a usage ResourceAllowance.
Protobuf type google.cloud.batch.v1alpha.UsageResourceAllowanceSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UsageResourceAllowanceSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UsageResourceAllowanceSpec build()
buildPartial()
public UsageResourceAllowanceSpec buildPartial()
clear()
public UsageResourceAllowanceSpec.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public UsageResourceAllowanceSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLimit()
public UsageResourceAllowanceSpec.Builder clearLimit()
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public UsageResourceAllowanceSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearType()
public UsageResourceAllowanceSpec.Builder clearType()
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];
clone()
public UsageResourceAllowanceSpec.Builder clone()
Overrides
getDefaultInstanceForType()
public UsageResourceAllowanceSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLimit()
public 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];
getLimitBuilder()
public UsageResourceAllowanceSpec.Limit.Builder getLimitBuilder()
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];
getLimitOrBuilder()
public 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];
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 |
Type |
Description |
String |
The type.
|
getTypeBytes()
public 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 |
Type |
Description |
ByteString |
The bytes for type.
|
hasLimit()
public 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 |
Type |
Description |
boolean |
Whether the limit field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(UsageResourceAllowanceSpec other)
public UsageResourceAllowanceSpec.Builder mergeFrom(UsageResourceAllowanceSpec other)
public UsageResourceAllowanceSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UsageResourceAllowanceSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeLimit(UsageResourceAllowanceSpec.Limit value)
public UsageResourceAllowanceSpec.Builder mergeLimit(UsageResourceAllowanceSpec.Limit value)
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UsageResourceAllowanceSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public UsageResourceAllowanceSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLimit(UsageResourceAllowanceSpec.Limit value)
public UsageResourceAllowanceSpec.Builder setLimit(UsageResourceAllowanceSpec.Limit value)
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];
setLimit(UsageResourceAllowanceSpec.Limit.Builder builderForValue)
public UsageResourceAllowanceSpec.Builder setLimit(UsageResourceAllowanceSpec.Limit.Builder builderForValue)
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UsageResourceAllowanceSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setType(String value)
public UsageResourceAllowanceSpec.Builder setType(String value)
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];
Parameter |
Name |
Description |
value |
String
The type to set.
|
setTypeBytes(ByteString value)
public UsageResourceAllowanceSpec.Builder setTypeBytes(ByteString value)
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];
Parameter |
Name |
Description |
value |
ByteString
The bytes for type to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final UsageResourceAllowanceSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides