Class DeleteStatefileRequest.Builder (0.21.0)

public static final class DeleteStatefileRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public DeleteStatefileRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public DeleteStatefileRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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