Class Lock.Builder (0.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Lock build()
Returns
TypeDescription
Lock

buildPartial()

public Lock buildPartial()
Returns
TypeDescription
Lock

clear()

public Lock.Builder clear()
Returns
TypeDescription
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
TypeDescription
Lock.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public Lock.Builder clearResources()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Lock.Builder

This builder for chaining.

clearType()

public Lock.Builder clearType()

The lock type.

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

Returns
TypeDescription
Lock.Builder

This builder for chaining.

clone()

public Lock.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Lock getDefaultInstanceForType()
Returns
TypeDescription
Lock

getDescriptorForType()

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

The bytes for name.

getResourcesCase()

public Lock.ResourcesCase getResourcesCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for tableId.

getType()

public Lock.Type getType()

The lock type.

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

Returns
TypeDescription
Lock.Type

The type.

getTypeValue()

public int getTypeValue()

The lock type.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the tableId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Lock.Builder

mergeFrom(Lock other)

public Lock.Builder mergeFrom(Lock other)
Parameter
NameDescription
otherLock
Returns
TypeDescription
Lock.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Lock.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Lock.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueLock.State

The state to set.

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

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

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

The tableId to set.

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

The bytes for tableId to set.

Returns
TypeDescription
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
NameDescription
valueLock.Type

The type to set.

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

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

Returns
TypeDescription
Lock.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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