public static final class Lock.Builder extends GeneratedMessage.Builder<Lock.Builder> implements LockOrBuilderRepresents a lock.
Protobuf type google.cloud.bigquery.biglake.v1alpha1.Lock
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Lock.BuilderImplements
LockOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
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. |
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Lock.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Lock.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Lock.Builder |
This builder for chaining. |
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.StateThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe 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.TypeThe 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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
Lock.Builder |
This builder for chaining. |