Class Lock.Builder (0.34.0)

public static final class Lock.Builder extends GeneratedMessageV3.Builder<Lock.Builder> implements LockOrBuilder

Represents a lock.

Protobuf type google.cloud.bigquery.biglake.v1alpha1.Lock

Implements

LockOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Lock build()
Returns
Type Description
Lock

buildPartial()

public Lock buildPartial()
Returns
Type Description
Lock

clear()

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

clearCreateTime()

public Lock.Builder clearCreateTime()

Output only. The creation time of the lock.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Lock.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Lock.Builder clearName()

Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/locks/{lock_id}

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

Returns
Type Description
Lock.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public Lock.Builder clearResources()
Returns
Type Description
Lock.Builder

clearState()

public Lock.Builder clearState()

Output only. The lock state.

.google.cloud.bigquery.biglake.v1alpha1.Lock.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Lock.Builder

This builder for chaining.

clearTableId()

public Lock.Builder clearTableId()

The table ID (not fully qualified name) in the same database that the lock will be created on. The table must exist.

string table_id = 5;

Returns
Type Description
Lock.Builder

This builder for chaining.

clearType()

public Lock.Builder clearType()

The lock type.

.google.cloud.bigquery.biglake.v1alpha1.Lock.Type type = 3;

Returns
Type Description
Lock.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time of the lock.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time of the lock.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time of the lock.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Lock getDefaultInstanceForType()
Returns
Type Description
Lock

getDescriptorForType()

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

getName()

public String getName()

Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/locks/{lock_id}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/locks/{lock_id}

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

Returns
Type Description
ByteString

The bytes for name.

getResourcesCase()

public Lock.ResourcesCase getResourcesCase()
Returns
Type Description
Lock.ResourcesCase

getState()

public Lock.State getState()

Output only. The lock state.

.google.cloud.bigquery.biglake.v1alpha1.Lock.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Lock.State

The state.

getStateValue()

public int getStateValue()

Output only. The lock state.

.google.cloud.bigquery.biglake.v1alpha1.Lock.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTableId()

public String getTableId()

The table ID (not fully qualified name) in the same database that the lock will be created on. The table must exist.

string table_id = 5;

Returns
Type Description
String

The tableId.

getTableIdBytes()

public ByteString getTableIdBytes()

The table ID (not fully qualified name) in the same database that the lock will be created on. The table must exist.

string table_id = 5;

Returns
Type Description
ByteString

The bytes for tableId.

getType()

public Lock.Type getType()

The lock type.

.google.cloud.bigquery.biglake.v1alpha1.Lock.Type type = 3;

Returns
Type Description
Lock.Type

The type.

getTypeValue()

public int getTypeValue()

The lock type.

.google.cloud.bigquery.biglake.v1alpha1.Lock.Type type = 3;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time of the lock.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasTableId()

public boolean hasTableId()

The table ID (not fully qualified name) in the same database that the lock will be created on. The table must exist.

string table_id = 5;

Returns
Type Description
boolean

Whether the tableId 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 Lock.Builder mergeCreateTime(Timestamp value)

Output only. The creation time of the lock.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Lock.Builder

mergeFrom(Lock other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateTime(Timestamp value)

public Lock.Builder setCreateTime(Timestamp value)

Output only. The creation time of the lock.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Lock.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Lock.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time of the lock.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Lock.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Lock.Builder setName(String value)

Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/locks/{lock_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Lock.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Lock.Builder setNameBytes(ByteString value)

Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/locks/{lock_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Lock.Builder

This builder for chaining.

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

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

setState(Lock.State value)

public Lock.Builder setState(Lock.State value)

Output only. The lock state.

.google.cloud.bigquery.biglake.v1alpha1.Lock.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Lock.State

The state to set.

Returns
Type Description
Lock.Builder

This builder for chaining.

setStateValue(int value)

public Lock.Builder setStateValue(int value)

Output only. The lock state.

.google.cloud.bigquery.biglake.v1alpha1.Lock.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Lock.Builder

This builder for chaining.

setTableId(String value)

public Lock.Builder setTableId(String value)

The table ID (not fully qualified name) in the same database that the lock will be created on. The table must exist.

string table_id = 5;

Parameter
Name Description
value String

The tableId to set.

Returns
Type Description
Lock.Builder

This builder for chaining.

setTableIdBytes(ByteString value)

public Lock.Builder setTableIdBytes(ByteString value)

The table ID (not fully qualified name) in the same database that the lock will be created on. The table must exist.

string table_id = 5;

Parameter
Name Description
value ByteString

The bytes for tableId to set.

Returns
Type Description
Lock.Builder

This builder for chaining.

setType(Lock.Type value)

public Lock.Builder setType(Lock.Type value)

The lock type.

.google.cloud.bigquery.biglake.v1alpha1.Lock.Type type = 3;

Parameter
Name Description
value Lock.Type

The type to set.

Returns
Type Description
Lock.Builder

This builder for chaining.

setTypeValue(int value)

public Lock.Builder setTypeValue(int value)

The lock type.

.google.cloud.bigquery.biglake.v1alpha1.Lock.Type type = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
Lock.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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