Class DeleteStatefileRequest.Builder (0.62.0)

public static final class DeleteStatefileRequest.Builder extends GeneratedMessage.Builder<DeleteStatefileRequest.Builder> implements DeleteStatefileRequestOrBuilder

A request to delete a state file passed to a 'DeleteStatefile' call.

Protobuf type google.cloud.config.v1.DeleteStatefileRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeleteStatefileRequest build()
Returns
Type Description
DeleteStatefileRequest

buildPartial()

public DeleteStatefileRequest buildPartial()
Returns
Type Description
DeleteStatefileRequest

clear()

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

clearLockId()

public DeleteStatefileRequest.Builder clearLockId()

Required. Lock ID of the lock file to verify that the user who is deleting the state file previously locked the Deployment.

int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeleteStatefileRequest.Builder

This builder for chaining.

clearName()

public DeleteStatefileRequest.Builder clearName()

Required. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

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

Returns
Type Description
DeleteStatefileRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeleteStatefileRequest getDefaultInstanceForType()
Returns
Type Description
DeleteStatefileRequest

getDescriptorForType()

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

getLockId()

public long getLockId()

Required. Lock ID of the lock file to verify that the user who is deleting the state file previously locked the Deployment.

int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The lockId.

getName()

public String getName()

Required. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeleteStatefileRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setLockId(long value)

public DeleteStatefileRequest.Builder setLockId(long value)

Required. Lock ID of the lock file to verify that the user who is deleting the state file previously locked the Deployment.

int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The lockId to set.

Returns
Type Description
DeleteStatefileRequest.Builder

This builder for chaining.

setName(String value)

public DeleteStatefileRequest.Builder setName(String value)

Required. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteStatefileRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteStatefileRequest.Builder setNameBytes(ByteString value)

Required. The name of the deployment in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

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

This builder for chaining.