Class DeletePrivateCloudRequest.Builder (0.38.0)

public static final class DeletePrivateCloudRequest.Builder extends GeneratedMessageV3.Builder<DeletePrivateCloudRequest.Builder> implements DeletePrivateCloudRequestOrBuilder

Request message for VmwareEngine.DeletePrivateCloud

Protobuf type google.cloud.vmwareengine.v1.DeletePrivateCloudRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeletePrivateCloudRequest build()
Returns
Type Description
DeletePrivateCloudRequest

buildPartial()

public DeletePrivateCloudRequest buildPartial()
Returns
Type Description
DeletePrivateCloudRequest

clear()

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

clearDelayHours()

public DeletePrivateCloudRequest.Builder clearDelayHours()

Optional. Time delay of the deletion specified in hours. The default value is 3. Specifying a non-zero value for this field changes the value of PrivateCloud.state to DELETED and sets expire_time to the planned deletion time. Deletion can be cancelled before expire_time elapses using VmwareEngine.UndeletePrivateCloud. Specifying a value of 0 for this field instead begins the deletion process and ceases billing immediately. During the final deletion process, the value of PrivateCloud.state becomes PURGING.

optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeletePrivateCloudRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearForce()

public DeletePrivateCloudRequest.Builder clearForce()

Optional. If set to true, cascade delete is enabled and all children of this private cloud resource are also deleted. When this flag is set to false, the private cloud will not be deleted if there are any children other than the management cluster. The management cluster is always deleted.

bool force = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeletePrivateCloudRequest.Builder

This builder for chaining.

clearName()

public DeletePrivateCloudRequest.Builder clearName()

Required. The resource name of the private cloud to delete. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud

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

Returns
Type Description
DeletePrivateCloudRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestId()

public DeletePrivateCloudRequest.Builder clearRequestId()

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeletePrivateCloudRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DeletePrivateCloudRequest getDefaultInstanceForType()
Returns
Type Description
DeletePrivateCloudRequest

getDelayHours()

public int getDelayHours()

Optional. Time delay of the deletion specified in hours. The default value is 3. Specifying a non-zero value for this field changes the value of PrivateCloud.state to DELETED and sets expire_time to the planned deletion time. Deletion can be cancelled before expire_time elapses using VmwareEngine.UndeletePrivateCloud. Specifying a value of 0 for this field instead begins the deletion process and ceases billing immediately. During the final deletion process, the value of PrivateCloud.state becomes PURGING.

optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The delayHours.

getDescriptorForType()

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

getForce()

public boolean getForce()

Optional. If set to true, cascade delete is enabled and all children of this private cloud resource are also deleted. When this flag is set to false, the private cloud will not be deleted if there are any children other than the management cluster. The management cluster is always deleted.

bool force = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The force.

getName()

public String getName()

Required. The resource name of the private cloud to delete. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the private cloud to delete. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud

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

Returns
Type Description
ByteString

The bytes for name.

getRequestId()

public String getRequestId()

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requestId.

hasDelayHours()

public boolean hasDelayHours()

Optional. Time delay of the deletion specified in hours. The default value is 3. Specifying a non-zero value for this field changes the value of PrivateCloud.state to DELETED and sets expire_time to the planned deletion time. Deletion can be cancelled before expire_time elapses using VmwareEngine.UndeletePrivateCloud. Specifying a value of 0 for this field instead begins the deletion process and ceases billing immediately. During the final deletion process, the value of PrivateCloud.state becomes PURGING.

optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the delayHours field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeletePrivateCloudRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDelayHours(int value)

public DeletePrivateCloudRequest.Builder setDelayHours(int value)

Optional. Time delay of the deletion specified in hours. The default value is 3. Specifying a non-zero value for this field changes the value of PrivateCloud.state to DELETED and sets expire_time to the planned deletion time. Deletion can be cancelled before expire_time elapses using VmwareEngine.UndeletePrivateCloud. Specifying a value of 0 for this field instead begins the deletion process and ceases billing immediately. During the final deletion process, the value of PrivateCloud.state becomes PURGING.

optional int32 delay_hours = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The delayHours to set.

Returns
Type Description
DeletePrivateCloudRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setForce(boolean value)

public DeletePrivateCloudRequest.Builder setForce(boolean value)

Optional. If set to true, cascade delete is enabled and all children of this private cloud resource are also deleted. When this flag is set to false, the private cloud will not be deleted if there are any children other than the management cluster. The management cluster is always deleted.

bool force = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The force to set.

Returns
Type Description
DeletePrivateCloudRequest.Builder

This builder for chaining.

setName(String value)

public DeletePrivateCloudRequest.Builder setName(String value)

Required. The resource name of the private cloud to delete. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeletePrivateCloudRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeletePrivateCloudRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the private cloud to delete. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DeletePrivateCloudRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public DeletePrivateCloudRequest.Builder setRequestId(String value)

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
DeletePrivateCloudRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public DeletePrivateCloudRequest.Builder setRequestIdBytes(ByteString value)

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
DeletePrivateCloudRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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