Class CreatePersistentResourceRequest.Builder (3.30.0)

public static final class CreatePersistentResourceRequest.Builder extends GeneratedMessageV3.Builder<CreatePersistentResourceRequest.Builder> implements CreatePersistentResourceRequestOrBuilder

Request message for PersistentResourceService.CreatePersistentResource.

Protobuf type google.cloud.aiplatform.v1beta1.CreatePersistentResourceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreatePersistentResourceRequest build()
Returns
TypeDescription
CreatePersistentResourceRequest

buildPartial()

public CreatePersistentResourceRequest buildPartial()
Returns
TypeDescription
CreatePersistentResourceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreatePersistentResourceRequest.Builder clearParent()

Required. The resource name of the Location to create the PersistentResource in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
CreatePersistentResourceRequest.Builder

This builder for chaining.

clearPersistentResource()

public CreatePersistentResourceRequest.Builder clearPersistentResource()

Required. The PersistentResource to create.

.google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreatePersistentResourceRequest.Builder

clearPersistentResourceId()

public CreatePersistentResourceRequest.Builder clearPersistentResourceId()

Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name.

The maximum length is 63 characters, and valid characters are /^a-z?$/.

string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreatePersistentResourceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreatePersistentResourceRequest getDefaultInstanceForType()
Returns
TypeDescription
CreatePersistentResourceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The resource name of the Location to create the PersistentResource in. Format: 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 resource name of the Location to create the PersistentResource in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
ByteString

The bytes for parent.

getPersistentResource()

public PersistentResource getPersistentResource()

Required. The PersistentResource to create.

.google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PersistentResource

The persistentResource.

getPersistentResourceBuilder()

public PersistentResource.Builder getPersistentResourceBuilder()

Required. The PersistentResource to create.

.google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PersistentResource.Builder

getPersistentResourceId()

public String getPersistentResourceId()

Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name.

The maximum length is 63 characters, and valid characters are /^a-z?$/.

string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The persistentResourceId.

getPersistentResourceIdBytes()

public ByteString getPersistentResourceIdBytes()

Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name.

The maximum length is 63 characters, and valid characters are /^a-z?$/.

string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for persistentResourceId.

getPersistentResourceOrBuilder()

public PersistentResourceOrBuilder getPersistentResourceOrBuilder()

Required. The PersistentResource to create.

.google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PersistentResourceOrBuilder

hasPersistentResource()

public boolean hasPersistentResource()

Required. The PersistentResource to create.

.google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the persistentResource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreatePersistentResourceRequest other)

public CreatePersistentResourceRequest.Builder mergeFrom(CreatePersistentResourceRequest other)
Parameter
NameDescription
otherCreatePersistentResourceRequest
Returns
TypeDescription
CreatePersistentResourceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePersistentResource(PersistentResource value)

public CreatePersistentResourceRequest.Builder mergePersistentResource(PersistentResource value)

Required. The PersistentResource to create.

.google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePersistentResource
Returns
TypeDescription
CreatePersistentResourceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreatePersistentResourceRequest.Builder setParent(String value)

Required. The resource name of the Location to create the PersistentResource in. Format: 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
CreatePersistentResourceRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreatePersistentResourceRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the Location to create the PersistentResource in. Format: 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
CreatePersistentResourceRequest.Builder

This builder for chaining.

setPersistentResource(PersistentResource value)

public CreatePersistentResourceRequest.Builder setPersistentResource(PersistentResource value)

Required. The PersistentResource to create.

.google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePersistentResource
Returns
TypeDescription
CreatePersistentResourceRequest.Builder

setPersistentResource(PersistentResource.Builder builderForValue)

public CreatePersistentResourceRequest.Builder setPersistentResource(PersistentResource.Builder builderForValue)

Required. The PersistentResource to create.

.google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValuePersistentResource.Builder
Returns
TypeDescription
CreatePersistentResourceRequest.Builder

setPersistentResourceId(String value)

public CreatePersistentResourceRequest.Builder setPersistentResourceId(String value)

Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name.

The maximum length is 63 characters, and valid characters are /^a-z?$/.

string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The persistentResourceId to set.

Returns
TypeDescription
CreatePersistentResourceRequest.Builder

This builder for chaining.

setPersistentResourceIdBytes(ByteString value)

public CreatePersistentResourceRequest.Builder setPersistentResourceIdBytes(ByteString value)

Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name.

The maximum length is 63 characters, and valid characters are /^a-z?$/.

string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for persistentResourceId to set.

Returns
TypeDescription
CreatePersistentResourceRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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