Class UnlockDeploymentRequest.Builder (0.4.0)

public static final class UnlockDeploymentRequest.Builder extends GeneratedMessageV3.Builder<UnlockDeploymentRequest.Builder> implements UnlockDeploymentRequestOrBuilder

A request to unlock a state file passed to a 'UnlockDeployment' call.

Protobuf type google.cloud.config.v1.UnlockDeploymentRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UnlockDeploymentRequest build()
Returns
TypeDescription
UnlockDeploymentRequest

buildPartial()

public UnlockDeploymentRequest buildPartial()
Returns
TypeDescription
UnlockDeploymentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public UnlockDeploymentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UnlockDeploymentRequest.Builder
Overrides

clearLockId()

public UnlockDeploymentRequest.Builder clearLockId()

Required. Lock ID of the lock file to be unlocked.

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

Returns
TypeDescription
UnlockDeploymentRequest.Builder

This builder for chaining.

clearName()

public UnlockDeploymentRequest.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
UnlockDeploymentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public UnlockDeploymentRequest getDefaultInstanceForType()
Returns
TypeDescription
UnlockDeploymentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLockId()

public long getLockId()

Required. Lock ID of the lock file to be unlocked.

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(UnlockDeploymentRequest other)

public UnlockDeploymentRequest.Builder mergeFrom(UnlockDeploymentRequest other)
Parameter
NameDescription
otherUnlockDeploymentRequest
Returns
TypeDescription
UnlockDeploymentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLockId(long value)

public UnlockDeploymentRequest.Builder setLockId(long value)

Required. Lock ID of the lock file to be unlocked.

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

Parameter
NameDescription
valuelong

The lockId to set.

Returns
TypeDescription
UnlockDeploymentRequest.Builder

This builder for chaining.

setName(String value)

public UnlockDeploymentRequest.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
UnlockDeploymentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UnlockDeploymentRequest.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
UnlockDeploymentRequest.Builder

This builder for chaining.

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

public UnlockDeploymentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UnlockDeploymentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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