Class DeleteStatefileRequest.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteStatefileRequest build()
Returns
TypeDescription
DeleteStatefileRequest

buildPartial()

public DeleteStatefileRequest buildPartial()
Returns
TypeDescription
DeleteStatefileRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeleteStatefileRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteStatefileRequest

getDescriptorForType()

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

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteStatefileRequest other)

public DeleteStatefileRequest.Builder mergeFrom(DeleteStatefileRequest other)
Parameter
NameDescription
otherDeleteStatefileRequest
Returns
TypeDescription
DeleteStatefileRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The lockId to set.

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeleteStatefileRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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