Class CreateResourceAllowanceRequest.Builder (0.45.0)

public static final class CreateResourceAllowanceRequest.Builder extends GeneratedMessageV3.Builder<CreateResourceAllowanceRequest.Builder> implements CreateResourceAllowanceRequestOrBuilder

CreateResourceAllowance Request.

Protobuf type google.cloud.batch.v1alpha.CreateResourceAllowanceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateResourceAllowanceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides

build()

public CreateResourceAllowanceRequest build()
Returns
Type Description
CreateResourceAllowanceRequest

buildPartial()

public CreateResourceAllowanceRequest buildPartial()
Returns
Type Description
CreateResourceAllowanceRequest

clear()

public CreateResourceAllowanceRequest.Builder clear()
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateResourceAllowanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateResourceAllowanceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides

clearParent()

public CreateResourceAllowanceRequest.Builder clearParent()

Required. The parent resource name where the ResourceAllowance will be created. Pattern: "projects/{project}/locations/{location}"

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateResourceAllowanceRequest.Builder

This builder for chaining.

clearRequestId()

public CreateResourceAllowanceRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
CreateResourceAllowanceRequest.Builder

This builder for chaining.

clearResourceAllowance()

public CreateResourceAllowanceRequest.Builder clearResourceAllowance()

Required. The ResourceAllowance to create.

.google.cloud.batch.v1alpha.ResourceAllowance resource_allowance = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateResourceAllowanceRequest.Builder

clearResourceAllowanceId()

public CreateResourceAllowanceRequest.Builder clearResourceAllowanceId()

ID used to uniquely identify the ResourceAllowance within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and '-' are accepted. The '-' character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The resource_allowance.name field in the request will be ignored and the created resource name of the ResourceAllowance will be "{parent}/resourceAllowances/{resource_allowance_id}".

string resource_allowance_id = 2;

Returns
Type Description
CreateResourceAllowanceRequest.Builder

This builder for chaining.

clone()

public CreateResourceAllowanceRequest.Builder clone()
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateResourceAllowanceRequest getDefaultInstanceForType()
Returns
Type Description
CreateResourceAllowanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource name where the ResourceAllowance will be created. Pattern: "projects/{project}/locations/{location}"

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource name where the ResourceAllowance will be created. Pattern: "projects/{project}/locations/{location}"

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

getResourceAllowance()

public ResourceAllowance getResourceAllowance()

Required. The ResourceAllowance to create.

.google.cloud.batch.v1alpha.ResourceAllowance resource_allowance = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ResourceAllowance

The resourceAllowance.

getResourceAllowanceBuilder()

public ResourceAllowance.Builder getResourceAllowanceBuilder()

Required. The ResourceAllowance to create.

.google.cloud.batch.v1alpha.ResourceAllowance resource_allowance = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ResourceAllowance.Builder

getResourceAllowanceId()

public String getResourceAllowanceId()

ID used to uniquely identify the ResourceAllowance within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and '-' are accepted. The '-' character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The resource_allowance.name field in the request will be ignored and the created resource name of the ResourceAllowance will be "{parent}/resourceAllowances/{resource_allowance_id}".

string resource_allowance_id = 2;

Returns
Type Description
String

The resourceAllowanceId.

getResourceAllowanceIdBytes()

public ByteString getResourceAllowanceIdBytes()

ID used to uniquely identify the ResourceAllowance within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and '-' are accepted. The '-' character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The resource_allowance.name field in the request will be ignored and the created resource name of the ResourceAllowance will be "{parent}/resourceAllowances/{resource_allowance_id}".

string resource_allowance_id = 2;

Returns
Type Description
ByteString

The bytes for resourceAllowanceId.

getResourceAllowanceOrBuilder()

public ResourceAllowanceOrBuilder getResourceAllowanceOrBuilder()

Required. The ResourceAllowance to create.

.google.cloud.batch.v1alpha.ResourceAllowance resource_allowance = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ResourceAllowanceOrBuilder

hasResourceAllowance()

public boolean hasResourceAllowance()

Required. The ResourceAllowance to create.

.google.cloud.batch.v1alpha.ResourceAllowance resource_allowance = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the resourceAllowance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateResourceAllowanceRequest other)

public CreateResourceAllowanceRequest.Builder mergeFrom(CreateResourceAllowanceRequest other)
Parameter
Name Description
other CreateResourceAllowanceRequest
Returns
Type Description
CreateResourceAllowanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateResourceAllowanceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateResourceAllowanceRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides

mergeResourceAllowance(ResourceAllowance value)

public CreateResourceAllowanceRequest.Builder mergeResourceAllowance(ResourceAllowance value)

Required. The ResourceAllowance to create.

.google.cloud.batch.v1alpha.ResourceAllowance resource_allowance = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ResourceAllowance
Returns
Type Description
CreateResourceAllowanceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateResourceAllowanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateResourceAllowanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides

setParent(String value)

public CreateResourceAllowanceRequest.Builder setParent(String value)

Required. The parent resource name where the ResourceAllowance will be created. Pattern: "projects/{project}/locations/{location}"

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateResourceAllowanceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateResourceAllowanceRequest.Builder setParentBytes(ByteString value)

Required. The parent resource name where the ResourceAllowance will be created. Pattern: "projects/{project}/locations/{location}"

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateResourceAllowanceRequest.Builder

This builder for chaining.

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

public CreateResourceAllowanceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides

setRequestId(String value)

public CreateResourceAllowanceRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateResourceAllowanceRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateResourceAllowanceRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateResourceAllowanceRequest.Builder

This builder for chaining.

setResourceAllowance(ResourceAllowance value)

public CreateResourceAllowanceRequest.Builder setResourceAllowance(ResourceAllowance value)

Required. The ResourceAllowance to create.

.google.cloud.batch.v1alpha.ResourceAllowance resource_allowance = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ResourceAllowance
Returns
Type Description
CreateResourceAllowanceRequest.Builder

setResourceAllowance(ResourceAllowance.Builder builderForValue)

public CreateResourceAllowanceRequest.Builder setResourceAllowance(ResourceAllowance.Builder builderForValue)

Required. The ResourceAllowance to create.

.google.cloud.batch.v1alpha.ResourceAllowance resource_allowance = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ResourceAllowance.Builder
Returns
Type Description
CreateResourceAllowanceRequest.Builder

setResourceAllowanceId(String value)

public CreateResourceAllowanceRequest.Builder setResourceAllowanceId(String value)

ID used to uniquely identify the ResourceAllowance within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and '-' are accepted. The '-' character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The resource_allowance.name field in the request will be ignored and the created resource name of the ResourceAllowance will be "{parent}/resourceAllowances/{resource_allowance_id}".

string resource_allowance_id = 2;

Parameter
Name Description
value String

The resourceAllowanceId to set.

Returns
Type Description
CreateResourceAllowanceRequest.Builder

This builder for chaining.

setResourceAllowanceIdBytes(ByteString value)

public CreateResourceAllowanceRequest.Builder setResourceAllowanceIdBytes(ByteString value)

ID used to uniquely identify the ResourceAllowance within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and '-' are accepted. The '-' character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The resource_allowance.name field in the request will be ignored and the created resource name of the ResourceAllowance will be "{parent}/resourceAllowances/{resource_allowance_id}".

string resource_allowance_id = 2;

Parameter
Name Description
value ByteString

The bytes for resourceAllowanceId to set.

Returns
Type Description
CreateResourceAllowanceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateResourceAllowanceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateResourceAllowanceRequest.Builder
Overrides