Package com.google.cloud.batch.v1alpha
Class ResourceAllowance.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourceAllowance.Builder>
com.google.cloud.batch.v1alpha.ResourceAllowance.Builder
- All Implemented Interfaces:
ResourceAllowanceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResourceAllowance
public static final class ResourceAllowance.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResourceAllowance.Builder>
implements ResourceAllowanceOrBuilder
The Resource Allowance description for Cloud Batch. Only one Resource Allowance is supported now under a specific location and project.Protobuf type
google.cloud.batch.v1alpha.ResourceAllowance-
Method Summary
Modifier and TypeMethodDescriptionaddAllNotifications(Iterable<? extends Notification> values) Optional.addNotifications(int index, Notification value) Optional.addNotifications(int index, Notification.Builder builderForValue) Optional.addNotifications(Notification value) Optional.addNotifications(Notification.Builder builderForValue) Optional.Optional.addNotificationsBuilder(int index) Optional.build()clear()Output only.Identifier.Optional.clearUid()Output only.The detail of usage resource allowance.booleancontainsLabels(String key) Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Deprecated.getName()Identifier.com.google.protobuf.ByteStringIdentifier.getNotifications(int index) Optional.getNotificationsBuilder(int index) Optional.Optional.intOptional.Optional.getNotificationsOrBuilder(int index) Optional.List<? extends NotificationOrBuilder>Optional.getUid()Output only.com.google.protobuf.ByteStringOutput only.The detail of usage resource allowance.The detail of usage resource allowance.The detail of usage resource allowance.booleanOutput only.booleanThe detail of usage resource allowance.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(ResourceAllowance other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The detail of usage resource allowance.putAllLabels(Map<String, String> values) Optional.Optional.removeLabels(String key) Optional.removeNotifications(int index) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setNotifications(int index, Notification value) Optional.setNotifications(int index, Notification.Builder builderForValue) Optional.Output only.setUidBytes(com.google.protobuf.ByteString value) Output only.The detail of usage resource allowance.setUsageResourceAllowance(UsageResourceAllowance.Builder builderForValue) The detail of usage resource allowance.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ResourceAllowance.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ResourceAllowance.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResourceAllowance.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<ResourceAllowance.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<ResourceAllowance.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<ResourceAllowance.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourceAllowance.Builder>
-
mergeFrom
public ResourceAllowance.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<ResourceAllowance.Builder>- Throws:
IOException
-
getResourceAllowanceCase
- Specified by:
getResourceAllowanceCasein interfaceResourceAllowanceOrBuilder
-
clearResourceAllowance
-
hasUsageResourceAllowance
public boolean hasUsageResourceAllowance()The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;- Specified by:
hasUsageResourceAllowancein interfaceResourceAllowanceOrBuilder- Returns:
- Whether the usageResourceAllowance field is set.
-
getUsageResourceAllowance
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;- Specified by:
getUsageResourceAllowancein interfaceResourceAllowanceOrBuilder- Returns:
- The usageResourceAllowance.
-
setUsageResourceAllowance
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4; -
setUsageResourceAllowance
public ResourceAllowance.Builder setUsageResourceAllowance(UsageResourceAllowance.Builder builderForValue) The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4; -
mergeUsageResourceAllowance
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4; -
clearUsageResourceAllowance
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4; -
getUsageResourceAllowanceBuilder
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4; -
getUsageResourceAllowanceOrBuilder
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;- Specified by:
getUsageResourceAllowanceOrBuilderin interfaceResourceAllowanceOrBuilder
-
getName
Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceResourceAllowanceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceResourceAllowanceOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getUid
Output only. A system generated unique ID (in UUID4 format) for the ResourceAllowance.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getUidin interfaceResourceAllowanceOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()Output only. A system generated unique ID (in UUID4 format) for the ResourceAllowance.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getUidBytesin interfaceResourceAllowanceOrBuilder- Returns:
- The bytes for uid.
-
setUid
Output only. A system generated unique ID (in UUID4 format) for the ResourceAllowance.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
Output only. A system generated unique ID (in UUID4 format) for the ResourceAllowance.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Returns:
- This builder for chaining.
-
setUidBytes
Output only. A system generated unique ID (in UUID4 format) for the ResourceAllowance.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceResourceAllowanceOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceResourceAllowanceOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
public ResourceAllowance.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceResourceAllowanceOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:ResourceAllowanceOrBuilderOptional. Labels are attributes that can be set and used by both the user and by Batch. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceResourceAllowanceOrBuilder
-
containsLabels
Optional. Labels are attributes that can be set and used by both the user and by Batch. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceResourceAllowanceOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceResourceAllowanceOrBuilder
-
getLabelsMap
Optional. Labels are attributes that can be set and used by both the user and by Batch. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceResourceAllowanceOrBuilder
-
getLabelsOrDefault
Optional. Labels are attributes that can be set and used by both the user and by Batch. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceResourceAllowanceOrBuilder
-
getLabelsOrThrow
Optional. Labels are attributes that can be set and used by both the user and by Batch. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceResourceAllowanceOrBuilder
-
clearLabels
-
removeLabels
Optional. Labels are attributes that can be set and used by both the user and by Batch. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. Labels are attributes that can be set and used by both the user and by Batch. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. Labels are attributes that can be set and used by both the user and by Batch. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getNotificationsList
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNotificationsListin interfaceResourceAllowanceOrBuilder
-
getNotificationsCount
public int getNotificationsCount()Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNotificationsCountin interfaceResourceAllowanceOrBuilder
-
getNotifications
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNotificationsin interfaceResourceAllowanceOrBuilder
-
setNotifications
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setNotifications
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addNotifications
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addNotifications
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addNotifications
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addNotifications
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addAllNotifications
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearNotifications
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
removeNotifications
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getNotificationsBuilder
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getNotificationsOrBuilder
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNotificationsOrBuilderin interfaceResourceAllowanceOrBuilder
-
getNotificationsOrBuilderList
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNotificationsOrBuilderListin interfaceResourceAllowanceOrBuilder
-
addNotificationsBuilder
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addNotificationsBuilder
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getNotificationsBuilderList
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
-