Class CreateResourceAllowanceRequest.Builder (0.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateResourceAllowanceRequest build()
Returns
TypeDescription
CreateResourceAllowanceRequest

buildPartial()

public CreateResourceAllowanceRequest buildPartial()
Returns
TypeDescription
CreateResourceAllowanceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateResourceAllowanceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CreateResourceAllowanceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateResourceAllowanceRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateResourceAllowanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ResourceAllowanceOrBuilder

hasResourceAllowance()

public boolean hasResourceAllowance()

Required. The ResourceAllowance to create.

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

Returns
TypeDescription
boolean

Whether the resourceAllowance field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateResourceAllowanceRequest other)

public CreateResourceAllowanceRequest.Builder mergeFrom(CreateResourceAllowanceRequest other)
Parameter
NameDescription
otherCreateResourceAllowanceRequest
Returns
TypeDescription
CreateResourceAllowanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateResourceAllowanceRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueResourceAllowance
Returns
TypeDescription
CreateResourceAllowanceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateResourceAllowanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The requestId to set.

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

The bytes for requestId to set.

Returns
TypeDescription
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
NameDescription
valueResourceAllowance
Returns
TypeDescription
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
NameDescription
builderForValueResourceAllowance.Builder
Returns
TypeDescription
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
NameDescription
valueString

The resourceAllowanceId to set.

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

The bytes for resourceAllowanceId to set.

Returns
TypeDescription
CreateResourceAllowanceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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