Class CreateQueuedResourceRequest.Builder (2.50.0)

public static final class CreateQueuedResourceRequest.Builder extends GeneratedMessageV3.Builder<CreateQueuedResourceRequest.Builder> implements CreateQueuedResourceRequestOrBuilder

Request for CreateQueuedResource.

Protobuf type google.cloud.tpu.v2alpha1.CreateQueuedResourceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateQueuedResourceRequest build()
Returns
Type Description
CreateQueuedResourceRequest

buildPartial()

public CreateQueuedResourceRequest buildPartial()
Returns
Type Description
CreateQueuedResourceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateQueuedResourceRequest.Builder clearParent()

Required. The parent resource name.

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

Returns
Type Description
CreateQueuedResourceRequest.Builder

This builder for chaining.

clearQueuedResource()

public CreateQueuedResourceRequest.Builder clearQueuedResource()

Required. The queued resource.

.google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateQueuedResourceRequest.Builder

clearQueuedResourceId()

public CreateQueuedResourceRequest.Builder clearQueuedResourceId()

The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex format.

string queued_resource_id = 2;

Returns
Type Description
CreateQueuedResourceRequest.Builder

This builder for chaining.

clearRequestId()

public CreateQueuedResourceRequest.Builder clearRequestId()

Idempotent request UUID.

string request_id = 4;

Returns
Type Description
CreateQueuedResourceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateQueuedResourceRequest getDefaultInstanceForType()
Returns
Type Description
CreateQueuedResourceRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource name.

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.

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

Returns
Type Description
ByteString

The bytes for parent.

getQueuedResource()

public QueuedResource getQueuedResource()

Required. The queued resource.

.google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QueuedResource

The queuedResource.

getQueuedResourceBuilder()

public QueuedResource.Builder getQueuedResourceBuilder()

Required. The queued resource.

.google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QueuedResource.Builder

getQueuedResourceId()

public String getQueuedResourceId()

The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex format.

string queued_resource_id = 2;

Returns
Type Description
String

The queuedResourceId.

getQueuedResourceIdBytes()

public ByteString getQueuedResourceIdBytes()

The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex format.

string queued_resource_id = 2;

Returns
Type Description
ByteString

The bytes for queuedResourceId.

getQueuedResourceOrBuilder()

public QueuedResourceOrBuilder getQueuedResourceOrBuilder()

Required. The queued resource.

.google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QueuedResourceOrBuilder

getRequestId()

public String getRequestId()

Idempotent request UUID.

string request_id = 4;

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Idempotent request UUID.

string request_id = 4;

Returns
Type Description
ByteString

The bytes for requestId.

hasQueuedResource()

public boolean hasQueuedResource()

Required. The queued resource.

.google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the queuedResource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateQueuedResourceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQueuedResource(QueuedResource value)

public CreateQueuedResourceRequest.Builder mergeQueuedResource(QueuedResource value)

Required. The queued resource.

.google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value QueuedResource
Returns
Type Description
CreateQueuedResourceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateQueuedResourceRequest.Builder setParent(String value)

Required. The parent resource name.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateQueuedResourceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateQueuedResourceRequest.Builder setParentBytes(ByteString value)

Required. The parent resource name.

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
CreateQueuedResourceRequest.Builder

This builder for chaining.

setQueuedResource(QueuedResource value)

public CreateQueuedResourceRequest.Builder setQueuedResource(QueuedResource value)

Required. The queued resource.

.google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value QueuedResource
Returns
Type Description
CreateQueuedResourceRequest.Builder

setQueuedResource(QueuedResource.Builder builderForValue)

public CreateQueuedResourceRequest.Builder setQueuedResource(QueuedResource.Builder builderForValue)

Required. The queued resource.

.google.cloud.tpu.v2alpha1.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue QueuedResource.Builder
Returns
Type Description
CreateQueuedResourceRequest.Builder

setQueuedResourceId(String value)

public CreateQueuedResourceRequest.Builder setQueuedResourceId(String value)

The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex format.

string queued_resource_id = 2;

Parameter
Name Description
value String

The queuedResourceId to set.

Returns
Type Description
CreateQueuedResourceRequest.Builder

This builder for chaining.

setQueuedResourceIdBytes(ByteString value)

public CreateQueuedResourceRequest.Builder setQueuedResourceIdBytes(ByteString value)

The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex format.

string queued_resource_id = 2;

Parameter
Name Description
value ByteString

The bytes for queuedResourceId to set.

Returns
Type Description
CreateQueuedResourceRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateQueuedResourceRequest.Builder setRequestId(String value)

Idempotent request UUID.

string request_id = 4;

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateQueuedResourceRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateQueuedResourceRequest.Builder setRequestIdBytes(ByteString value)

Idempotent request UUID.

string request_id = 4;

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateQueuedResourceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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