Class CreateQueuedResourceRequest.Builder (2.21.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateQueuedResourceRequest build()
Returns
TypeDescription
CreateQueuedResourceRequest

buildPartial()

public CreateQueuedResourceRequest buildPartial()
Returns
TypeDescription
CreateQueuedResourceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearRequestId()

public CreateQueuedResourceRequest.Builder clearRequestId()

Idempotent request UUID.

string request_id = 4;

Returns
TypeDescription
CreateQueuedResourceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateQueuedResourceRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateQueuedResourceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource name.

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.

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

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

getRequestId()

public String getRequestId()

Idempotent request UUID.

string request_id = 4;

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Idempotent request UUID.

string request_id = 4;

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

Whether the queuedResource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateQueuedResourceRequest other)

public CreateQueuedResourceRequest.Builder mergeFrom(CreateQueuedResourceRequest other)
Parameter
NameDescription
otherCreateQueuedResourceRequest
Returns
TypeDescription
CreateQueuedResourceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valueQueuedResource
Returns
TypeDescription
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
NameDescription
builderForValueQueuedResource.Builder
Returns
TypeDescription
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
NameDescription
valueString

The queuedResourceId to set.

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

The bytes for queuedResourceId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateQueuedResourceRequest.Builder
Overrides

setRequestId(String value)

public CreateQueuedResourceRequest.Builder setRequestId(String value)

Idempotent request UUID.

string request_id = 4;

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
CreateQueuedResourceRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateQueuedResourceRequest.Builder setRequestIdBytes(ByteString value)

Idempotent request UUID.

string request_id = 4;

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
CreateQueuedResourceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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