- 0.54.0 (latest)
- 0.53.0
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.2
- 0.2.2
- 0.1.1
public static final class ResourceAllowance.Builder extends GeneratedMessageV3.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourceAllowance.BuilderImplements
ResourceAllowanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllNotifications(Iterable<? extends Notification> values)
public ResourceAllowance.Builder addAllNotifications(Iterable<? extends Notification> values)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.batch.v1alpha.Notification> |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
addNotifications(Notification value)
public ResourceAllowance.Builder addNotifications(Notification value)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Notification |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
addNotifications(Notification.Builder builderForValue)
public ResourceAllowance.Builder addNotifications(Notification.Builder builderForValue)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
Notification.Builder |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
addNotifications(int index, Notification value)
public ResourceAllowance.Builder addNotifications(int index, Notification value)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Notification |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
addNotifications(int index, Notification.Builder builderForValue)
public ResourceAllowance.Builder addNotifications(int index, Notification.Builder builderForValue)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Notification.Builder |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
addNotificationsBuilder()
public Notification.Builder addNotificationsBuilder()
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Notification.Builder |
addNotificationsBuilder(int index)
public Notification.Builder addNotificationsBuilder(int index)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Notification.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceAllowance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
build()
public ResourceAllowance build()
Returns | |
---|---|
Type | Description |
ResourceAllowance |
buildPartial()
public ResourceAllowance buildPartial()
Returns | |
---|---|
Type | Description |
ResourceAllowance |
clear()
public ResourceAllowance.Builder clear()
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
clearCreateTime()
public ResourceAllowance.Builder clearCreateTime()
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
clearField(Descriptors.FieldDescriptor field)
public ResourceAllowance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
clearLabels()
public ResourceAllowance.Builder clearLabels()
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
clearName()
public ResourceAllowance.Builder clearName()
Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
This builder for chaining. |
clearNotifications()
public ResourceAllowance.Builder clearNotifications()
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceAllowance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
clearResourceAllowance()
public ResourceAllowance.Builder clearResourceAllowance()
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
clearUid()
public ResourceAllowance.Builder 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 | |
---|---|
Type | Description |
ResourceAllowance.Builder |
This builder for chaining. |
clearUsageResourceAllowance()
public ResourceAllowance.Builder clearUsageResourceAllowance()
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
clone()
public ResourceAllowance.Builder clone()
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
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];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
getCreateTime()
public Timestamp getCreateTime()
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public ResourceAllowance getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ResourceAllowance |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLabels() (deprecated)
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
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];
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> 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];
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
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];
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
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];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getName()
public String getName()
Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getNotifications(int index)
public Notification getNotifications(int index)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Notification |
getNotificationsBuilder(int index)
public Notification.Builder getNotificationsBuilder(int index)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Notification.Builder |
getNotificationsBuilderList()
public List<Notification.Builder> getNotificationsBuilderList()
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getNotificationsCount()
public int getNotificationsCount()
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getNotificationsList()
public List<Notification> getNotificationsList()
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Notification> |
getNotificationsOrBuilder(int index)
public NotificationOrBuilder getNotificationsOrBuilder(int index)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
NotificationOrBuilder |
getNotificationsOrBuilderList()
public List<? extends NotificationOrBuilder> getNotificationsOrBuilderList()
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.batch.v1alpha.NotificationOrBuilder> |
getResourceAllowanceCase()
public ResourceAllowance.ResourceAllowanceCase getResourceAllowanceCase()
Returns | |
---|---|
Type | Description |
ResourceAllowance.ResourceAllowanceCase |
getUid()
public String 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) = { ... }
Returns | |
---|---|
Type | Description |
String |
The uid. |
getUidBytes()
public 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) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for uid. |
getUsageResourceAllowance()
public UsageResourceAllowance getUsageResourceAllowance()
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
Returns | |
---|---|
Type | Description |
UsageResourceAllowance |
The usageResourceAllowance. |
getUsageResourceAllowanceBuilder()
public UsageResourceAllowance.Builder getUsageResourceAllowanceBuilder()
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
Returns | |
---|---|
Type | Description |
UsageResourceAllowance.Builder |
getUsageResourceAllowanceOrBuilder()
public UsageResourceAllowanceOrBuilder getUsageResourceAllowanceOrBuilder()
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
Returns | |
---|---|
Type | Description |
UsageResourceAllowanceOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
hasUsageResourceAllowance()
public boolean hasUsageResourceAllowance()
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the usageResourceAllowance field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public ResourceAllowance.Builder mergeCreateTime(Timestamp value)
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
mergeFrom(ResourceAllowance other)
public ResourceAllowance.Builder mergeFrom(ResourceAllowance other)
Parameter | |
---|---|
Name | Description |
other |
ResourceAllowance |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceAllowance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ResourceAllowance.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceAllowance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
mergeUsageResourceAllowance(UsageResourceAllowance value)
public ResourceAllowance.Builder mergeUsageResourceAllowance(UsageResourceAllowance value)
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
Parameter | |
---|---|
Name | Description |
value |
UsageResourceAllowance |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
putAllLabels(Map<String,String> values)
public ResourceAllowance.Builder putAllLabels(Map<String,String> values)
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];
Parameter | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
putLabels(String key, String value)
public ResourceAllowance.Builder putLabels(String key, String value)
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];
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
removeLabels(String key)
public ResourceAllowance.Builder removeLabels(String key)
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];
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
removeNotifications(int index)
public ResourceAllowance.Builder removeNotifications(int index)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
setCreateTime(Timestamp value)
public ResourceAllowance.Builder setCreateTime(Timestamp value)
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public ResourceAllowance.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Time when the ResourceAllowance was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceAllowance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
setName(String value)
public ResourceAllowance.Builder setName(String value)
Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ResourceAllowance.Builder setNameBytes(ByteString value)
Identifier. ResourceAllowance name. For example: "projects/123456/locations/us-central1/resourceAllowances/resource-allowance-1".
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
This builder for chaining. |
setNotifications(int index, Notification value)
public ResourceAllowance.Builder setNotifications(int index, Notification value)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Notification |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
setNotifications(int index, Notification.Builder builderForValue)
public ResourceAllowance.Builder setNotifications(int index, Notification.Builder builderForValue)
Optional. Notification configurations.
repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Notification.Builder |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceAllowance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
setUid(String value)
public ResourceAllowance.Builder setUid(String value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The uid to set. |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
This builder for chaining. |
setUidBytes(ByteString value)
public ResourceAllowance.Builder setUidBytes(ByteString value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for uid to set. |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceAllowance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
setUsageResourceAllowance(UsageResourceAllowance value)
public ResourceAllowance.Builder setUsageResourceAllowance(UsageResourceAllowance value)
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
Parameter | |
---|---|
Name | Description |
value |
UsageResourceAllowance |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |
setUsageResourceAllowance(UsageResourceAllowance.Builder builderForValue)
public ResourceAllowance.Builder setUsageResourceAllowance(UsageResourceAllowance.Builder builderForValue)
The detail of usage resource allowance.
.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
UsageResourceAllowance.Builder |
Returns | |
---|---|
Type | Description |
ResourceAllowance.Builder |