Class LockInfo.Builder (0.25.0)

public static final class LockInfo.Builder extends GeneratedMessageV3.Builder<LockInfo.Builder> implements LockInfoOrBuilder

Details about the lock which locked the deployment.

Protobuf type google.cloud.config.v1.LockInfo

Implements

LockInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LockInfo build()
Returns
Type Description
LockInfo

buildPartial()

public LockInfo buildPartial()
Returns
Type Description
LockInfo

clear()

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

clearCreateTime()

public LockInfo.Builder clearCreateTime()

Time that the lock was taken.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
LockInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public LockInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LockInfo.Builder
Overrides

clearInfo()

public LockInfo.Builder clearInfo()

Extra information to store with the lock, provided by the caller.

string info = 3;

Returns
Type Description
LockInfo.Builder

This builder for chaining.

clearLockId()

public LockInfo.Builder clearLockId()

Unique ID for the lock to be overridden with generation ID in the backend.

int64 lock_id = 1;

Returns
Type Description
LockInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperation()

public LockInfo.Builder clearOperation()

Terraform operation, provided by the caller.

string operation = 2;

Returns
Type Description
LockInfo.Builder

This builder for chaining.

clearVersion()

public LockInfo.Builder clearVersion()

Terraform version

string version = 5;

Returns
Type Description
LockInfo.Builder

This builder for chaining.

clearWho()

public LockInfo.Builder clearWho()

user@hostname when available

string who = 4;

Returns
Type Description
LockInfo.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Time that the lock was taken.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time that the lock was taken.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time that the lock was taken.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public LockInfo getDefaultInstanceForType()
Returns
Type Description
LockInfo

getDescriptorForType()

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

getInfo()

public String getInfo()

Extra information to store with the lock, provided by the caller.

string info = 3;

Returns
Type Description
String

The info.

getInfoBytes()

public ByteString getInfoBytes()

Extra information to store with the lock, provided by the caller.

string info = 3;

Returns
Type Description
ByteString

The bytes for info.

getLockId()

public long getLockId()

Unique ID for the lock to be overridden with generation ID in the backend.

int64 lock_id = 1;

Returns
Type Description
long

The lockId.

getOperation()

public String getOperation()

Terraform operation, provided by the caller.

string operation = 2;

Returns
Type Description
String

The operation.

getOperationBytes()

public ByteString getOperationBytes()

Terraform operation, provided by the caller.

string operation = 2;

Returns
Type Description
ByteString

The bytes for operation.

getVersion()

public String getVersion()

Terraform version

string version = 5;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Terraform version

string version = 5;

Returns
Type Description
ByteString

The bytes for version.

getWho()

public String getWho()

user@hostname when available

string who = 4;

Returns
Type Description
String

The who.

getWhoBytes()

public ByteString getWhoBytes()

user@hostname when available

string who = 4;

Returns
Type Description
ByteString

The bytes for who.

hasCreateTime()

public boolean hasCreateTime()

Time that the lock was taken.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public LockInfo.Builder mergeCreateTime(Timestamp value)

Time that the lock was taken.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
LockInfo.Builder

mergeFrom(LockInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateTime(Timestamp value)

public LockInfo.Builder setCreateTime(Timestamp value)

Time that the lock was taken.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
LockInfo.Builder

setCreateTime(Timestamp.Builder builderForValue)

public LockInfo.Builder setCreateTime(Timestamp.Builder builderForValue)

Time that the lock was taken.

.google.protobuf.Timestamp create_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LockInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInfo(String value)

public LockInfo.Builder setInfo(String value)

Extra information to store with the lock, provided by the caller.

string info = 3;

Parameter
Name Description
value String

The info to set.

Returns
Type Description
LockInfo.Builder

This builder for chaining.

setInfoBytes(ByteString value)

public LockInfo.Builder setInfoBytes(ByteString value)

Extra information to store with the lock, provided by the caller.

string info = 3;

Parameter
Name Description
value ByteString

The bytes for info to set.

Returns
Type Description
LockInfo.Builder

This builder for chaining.

setLockId(long value)

public LockInfo.Builder setLockId(long value)

Unique ID for the lock to be overridden with generation ID in the backend.

int64 lock_id = 1;

Parameter
Name Description
value long

The lockId to set.

Returns
Type Description
LockInfo.Builder

This builder for chaining.

setOperation(String value)

public LockInfo.Builder setOperation(String value)

Terraform operation, provided by the caller.

string operation = 2;

Parameter
Name Description
value String

The operation to set.

Returns
Type Description
LockInfo.Builder

This builder for chaining.

setOperationBytes(ByteString value)

public LockInfo.Builder setOperationBytes(ByteString value)

Terraform operation, provided by the caller.

string operation = 2;

Parameter
Name Description
value ByteString

The bytes for operation to set.

Returns
Type Description
LockInfo.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public LockInfo.Builder setVersion(String value)

Terraform version

string version = 5;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
LockInfo.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public LockInfo.Builder setVersionBytes(ByteString value)

Terraform version

string version = 5;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
LockInfo.Builder

This builder for chaining.

setWho(String value)

public LockInfo.Builder setWho(String value)

user@hostname when available

string who = 4;

Parameter
Name Description
value String

The who to set.

Returns
Type Description
LockInfo.Builder

This builder for chaining.

setWhoBytes(ByteString value)

public LockInfo.Builder setWhoBytes(ByteString value)

user@hostname when available

string who = 4;

Parameter
Name Description
value ByteString

The bytes for who to set.

Returns
Type Description
LockInfo.Builder

This builder for chaining.