Class CreateLockRequest.Builder (0.21.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateLockRequest build()
Returns
TypeDescription
CreateLockRequest

buildPartial()

public CreateLockRequest buildPartial()
Returns
TypeDescription
CreateLockRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateLockRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateLockRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateLockRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateLockRequest

getDescriptorForType()

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

Whether the lock field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateLockRequest other)

public CreateLockRequest.Builder mergeFrom(CreateLockRequest other)
Parameter
NameDescription
otherCreateLockRequest
Returns
TypeDescription
CreateLockRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateLockRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueLock
Returns
TypeDescription
CreateLockRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateLockRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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