Class 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.GeneratedMessageV3.Builder<Lock.Builder>
    implements LockOrBuilder
     Represents a lock.
     
    Protobuf type google.cloud.bigquery.biglake.v1alpha1.Lock
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Lock.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Lock.Builder>
      • setField

        public Lock.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Lock.Builder>
      • clearField

        public Lock.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Lock.Builder>
      • clearOneof

        public Lock.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Lock.Builder>
      • setRepeatedField

        public Lock.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             int index,
                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Lock.Builder>
      • addRepeatedField

        public Lock.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Lock.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • setUnknownFields

        public final Lock.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Lock.Builder>
      • mergeUnknownFields

        public final Lock.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Lock.Builder>