Class DeletePrivateCloudRequest.Builder (0.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeletePrivateCloudRequest build()
Returns
TypeDescription
DeletePrivateCloudRequest

buildPartial()

public DeletePrivateCloudRequest buildPartial()
Returns
TypeDescription
DeletePrivateCloudRequest

clear()

public DeletePrivateCloudRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
DeletePrivateCloudRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeletePrivateCloudRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DeletePrivateCloudRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DeletePrivateCloudRequest getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
int

The delayHours.

getDescriptorForType()

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

Whether the delayHours field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeletePrivateCloudRequest other)

public DeletePrivateCloudRequest.Builder mergeFrom(DeletePrivateCloudRequest other)
Parameter
NameDescription
otherDeletePrivateCloudRequest
Returns
TypeDescription
DeletePrivateCloudRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeletePrivateCloudRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The delayHours to set.

Returns
TypeDescription
DeletePrivateCloudRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The force to set.

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

The name to set.

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

The bytes for name to set.

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

The requestId to set.

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

The bytes for requestId to set.

Returns
TypeDescription
DeletePrivateCloudRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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