Class ResourceAllowance.Builder (0.41.0)

public static final class ResourceAllowance.Builder extends GeneratedMessageV3.Builder<ResourceAllowance.Builder> implements ResourceAllowanceOrBuilder

The Resource Allowance description for Cloud Batch.

Protobuf type google.cloud.batch.v1alpha.ResourceAllowance

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.batch.v1alpha.Notification>
Returns
TypeDescription
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
NameDescription
valueNotification
Returns
TypeDescription
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
NameDescription
builderForValueNotification.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueNotification
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNotification.Builder
Returns
TypeDescription
ResourceAllowance.Builder

addNotificationsBuilder()

public Notification.Builder addNotificationsBuilder()

Optional. Notification configurations.

repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Notification.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceAllowance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourceAllowance.Builder
Overrides

build()

public ResourceAllowance build()
Returns
TypeDescription
ResourceAllowance

buildPartial()

public ResourceAllowance buildPartial()
Returns
TypeDescription
ResourceAllowance

clear()

public ResourceAllowance.Builder clear()
Returns
TypeDescription
ResourceAllowance.Builder
Overrides

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
TypeDescription
ResourceAllowance.Builder

clearField(Descriptors.FieldDescriptor field)

public ResourceAllowance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResourceAllowance.Builder
Overrides

clearLabels()

public ResourceAllowance.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ResourceAllowance.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceAllowance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResourceAllowance.Builder
Overrides

clearResourceAllowance()

public ResourceAllowance.Builder clearResourceAllowance()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ResourceAllowance.Builder

clone()

public ResourceAllowance.Builder clone()
Returns
TypeDescription
ResourceAllowance.Builder
Overrides

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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ResourceAllowance getDefaultInstanceForType()
Returns
TypeDescription
ResourceAllowance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getNotificationsCount()

public int getNotificationsCount()

Optional. Notification configurations.

repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getNotificationsList()

public List<Notification> getNotificationsList()

Optional. Notification configurations.

repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
NotificationOrBuilder

getNotificationsOrBuilderList()

public List<? extends NotificationOrBuilder> getNotificationsOrBuilderList()

Optional. Notification configurations.

repeated .google.cloud.batch.v1alpha.Notification notifications = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1alpha.NotificationOrBuilder>

getResourceAllowanceCase()

public ResourceAllowance.ResourceAllowanceCase getResourceAllowanceCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
UsageResourceAllowance

The usageResourceAllowance.

getUsageResourceAllowanceBuilder()

public UsageResourceAllowance.Builder getUsageResourceAllowanceBuilder()

The detail of usage resource allowance.

.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;

Returns
TypeDescription
UsageResourceAllowance.Builder

getUsageResourceAllowanceOrBuilder()

public UsageResourceAllowanceOrBuilder getUsageResourceAllowanceOrBuilder()

The detail of usage resource allowance.

.google.cloud.batch.v1alpha.UsageResourceAllowance usage_resource_allowance = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the usageResourceAllowance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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
NameDescription
valueTimestamp
Returns
TypeDescription
ResourceAllowance.Builder

mergeFrom(ResourceAllowance other)

public ResourceAllowance.Builder mergeFrom(ResourceAllowance other)
Parameter
NameDescription
otherResourceAllowance
Returns
TypeDescription
ResourceAllowance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceAllowance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceAllowance.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResourceAllowance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ResourceAllowance.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceAllowance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceAllowance.Builder
Overrides

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
NameDescription
valueUsageResourceAllowance
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ResourceAllowance.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceAllowance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResourceAllowance.Builder
Overrides

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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint
valueNotification
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNotification.Builder
Returns
TypeDescription
ResourceAllowance.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResourceAllowance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResourceAllowance.Builder
Overrides

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
NameDescription
valueString

The uid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
ResourceAllowance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceAllowance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceAllowance.Builder
Overrides

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
NameDescription
valueUsageResourceAllowance
Returns
TypeDescription
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
NameDescription
builderForValueUsageResourceAllowance.Builder
Returns
TypeDescription
ResourceAllowance.Builder