Class CreateLockRequest.Builder (0.34.0)

public static final class CreateLockRequest.Builder extends GeneratedMessageV3.Builder<CreateLockRequest.Builder> implements CreateLockRequestOrBuilder

Request message for the CreateLock method.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateLockRequest build()
Returns
Type Description
CreateLockRequest

buildPartial()

public CreateLockRequest buildPartial()
Returns
Type Description
CreateLockRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLock()

public CreateLockRequest.Builder clearLock()

Required. The lock to create. The name field does not need to be provided for the lock creation.

.google.cloud.bigquery.biglake.v1alpha1.Lock lock = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateLockRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateLockRequest.Builder clearParent()

Required. The parent resource where this lock will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateLockRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateLockRequest getDefaultInstanceForType()
Returns
Type Description
CreateLockRequest

getDescriptorForType()

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

getLock()

public Lock getLock()

Required. The lock to create. The name field does not need to be provided for the lock creation.

.google.cloud.bigquery.biglake.v1alpha1.Lock lock = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Lock

The lock.

getLockBuilder()

public Lock.Builder getLockBuilder()

Required. The lock to create. The name field does not need to be provided for the lock creation.

.google.cloud.bigquery.biglake.v1alpha1.Lock lock = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Lock.Builder

getLockOrBuilder()

public LockOrBuilder getLockOrBuilder()

Required. The lock to create. The name field does not need to be provided for the lock creation.

.google.cloud.bigquery.biglake.v1alpha1.Lock lock = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LockOrBuilder

getParent()

public String getParent()

Required. The parent resource where this lock will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource where this lock will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasLock()

public boolean hasLock()

Required. The lock to create. The name field does not need to be provided for the lock creation.

.google.cloud.bigquery.biglake.v1alpha1.Lock lock = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the lock field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateLockRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLock(Lock value)

public CreateLockRequest.Builder mergeLock(Lock value)

Required. The lock to create. The name field does not need to be provided for the lock creation.

.google.cloud.bigquery.biglake.v1alpha1.Lock lock = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Lock
Returns
Type Description
CreateLockRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLock(Lock value)

public CreateLockRequest.Builder setLock(Lock value)

Required. The lock to create. The name field does not need to be provided for the lock creation.

.google.cloud.bigquery.biglake.v1alpha1.Lock lock = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Lock
Returns
Type Description
CreateLockRequest.Builder

setLock(Lock.Builder builderForValue)

public CreateLockRequest.Builder setLock(Lock.Builder builderForValue)

Required. The lock to create. The name field does not need to be provided for the lock creation.

.google.cloud.bigquery.biglake.v1alpha1.Lock lock = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Lock.Builder
Returns
Type Description
CreateLockRequest.Builder

setParent(String value)

public CreateLockRequest.Builder setParent(String value)

Required. The parent resource where this lock will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateLockRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateLockRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this lock will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateLockRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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