Class Lock.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Lock.Builder>
com.google.cloud.bigquery.biglake.v1alpha1.Lock.Builder
All Implemented Interfaces:
LockOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Lock

public static final class Lock.Builder extends com.google.protobuf.GeneratedMessage.Builder<Lock.Builder> implements LockOrBuilder
 Represents a lock.
 
Protobuf type google.cloud.bigquery.biglake.v1alpha1.Lock
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Lock.Builder>
    • clear

      public Lock.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Lock.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Lock.Builder>
    • getDefaultInstanceForType

      public Lock getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Lock build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Lock buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Lock.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Lock.Builder>
    • mergeFrom

      public Lock.Builder mergeFrom(Lock other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Lock.Builder>
    • mergeFrom

      public Lock.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Lock.Builder>
      Throws:
      IOException
    • getResourcesCase

      public Lock.ResourcesCase getResourcesCase()
      Specified by:
      getResourcesCase in interface LockOrBuilder
    • clearResources

      public Lock.Builder clearResources()
    • 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;
      Specified by:
      hasTableId in interface LockOrBuilder
      Returns:
      Whether the tableId field is set.
    • 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;
      Specified by:
      getTableId in interface LockOrBuilder
      Returns:
      The tableId.
    • getTableIdBytes

      public com.google.protobuf.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;
      Specified by:
      getTableIdBytes in interface LockOrBuilder
      Returns:
      The bytes for tableId.
    • setTableId

      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;
      Parameters:
      value - The tableId to set.
      Returns:
      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:
      This builder for chaining.
    • setTableIdBytes

      public Lock.Builder setTableIdBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for tableId to set.
      Returns:
      This builder for chaining.
    • 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) = { ... }
      Specified by:
      getName in interface LockOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getNameBytes in interface LockOrBuilder
      Returns:
      The bytes for name.
    • setName

      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) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public Lock.Builder setNameBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time of the lock.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface LockOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time of the lock.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface LockOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Lock.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time of the lock.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Lock.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The creation time of the lock.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Lock.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time of the lock.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The creation time of the lock.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time of the lock.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface LockOrBuilder
    • getTypeValue

      public int getTypeValue()
       The lock type.
       
      .google.cloud.bigquery.biglake.v1alpha1.Lock.Type type = 3;
      Specified by:
      getTypeValue in interface LockOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Lock.Builder setTypeValue(int value)
       The lock type.
       
      .google.cloud.bigquery.biglake.v1alpha1.Lock.Type type = 3;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Lock.Type getType()
       The lock type.
       
      .google.cloud.bigquery.biglake.v1alpha1.Lock.Type type = 3;
      Specified by:
      getType in interface LockOrBuilder
      Returns:
      The type.
    • setType

      public Lock.Builder setType(Lock.Type value)
       The lock type.
       
      .google.cloud.bigquery.biglake.v1alpha1.Lock.Type type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Lock.Builder clearType()
       The lock type.
       
      .google.cloud.bigquery.biglake.v1alpha1.Lock.Type type = 3;
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. The lock state.
       
      .google.cloud.bigquery.biglake.v1alpha1.Lock.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface LockOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      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];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getState in interface LockOrBuilder
      Returns:
      The state.
    • setState

      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];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.