Class LockInfo.Builder

  • All Implemented Interfaces:
    LockInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    LockInfo

    public static final class LockInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LockInfo.Builder>
    implements LockInfoOrBuilder
     Details about the lock which locked the deployment.
     
    Protobuf type google.cloud.config.v1.LockInfo
    • 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<LockInfo.Builder>
      • clear

        public LockInfo.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<LockInfo.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<LockInfo.Builder>
      • getDefaultInstanceForType

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

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

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

        public LockInfo.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<LockInfo.Builder>
      • setField

        public LockInfo.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<LockInfo.Builder>
      • clearField

        public LockInfo.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<LockInfo.Builder>
      • clearOneof

        public LockInfo.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<LockInfo.Builder>
      • setRepeatedField

        public LockInfo.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<LockInfo.Builder>
      • addRepeatedField

        public LockInfo.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<LockInfo.Builder>
      • mergeFrom

        public LockInfo.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<LockInfo.Builder>
      • isInitialized

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

        public LockInfo.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<LockInfo.Builder>
        Throws:
        IOException
      • getLockId

        public long getLockId()
         Unique ID for the lock to be overridden with generation ID in the backend.
         
        int64 lock_id = 1;
        Specified by:
        getLockId in interface LockInfoOrBuilder
        Returns:
        The lockId.
      • setLockId

        public LockInfo.Builder setLockId​(long value)
         Unique ID for the lock to be overridden with generation ID in the backend.
         
        int64 lock_id = 1;
        Parameters:
        value - The lockId to set.
        Returns:
        This builder for chaining.
      • clearLockId

        public LockInfo.Builder clearLockId()
         Unique ID for the lock to be overridden with generation ID in the backend.
         
        int64 lock_id = 1;
        Returns:
        This builder for chaining.
      • getOperation

        public String getOperation()
         Terraform operation, provided by the caller.
         
        string operation = 2;
        Specified by:
        getOperation in interface LockInfoOrBuilder
        Returns:
        The operation.
      • getOperationBytes

        public com.google.protobuf.ByteString getOperationBytes()
         Terraform operation, provided by the caller.
         
        string operation = 2;
        Specified by:
        getOperationBytes in interface LockInfoOrBuilder
        Returns:
        The bytes for operation.
      • setOperation

        public LockInfo.Builder setOperation​(String value)
         Terraform operation, provided by the caller.
         
        string operation = 2;
        Parameters:
        value - The operation to set.
        Returns:
        This builder for chaining.
      • clearOperation

        public LockInfo.Builder clearOperation()
         Terraform operation, provided by the caller.
         
        string operation = 2;
        Returns:
        This builder for chaining.
      • setOperationBytes

        public LockInfo.Builder setOperationBytes​(com.google.protobuf.ByteString value)
         Terraform operation, provided by the caller.
         
        string operation = 2;
        Parameters:
        value - The bytes for operation to set.
        Returns:
        This builder for chaining.
      • getInfo

        public String getInfo()
         Extra information to store with the lock, provided by the caller.
         
        string info = 3;
        Specified by:
        getInfo in interface LockInfoOrBuilder
        Returns:
        The info.
      • getInfoBytes

        public com.google.protobuf.ByteString getInfoBytes()
         Extra information to store with the lock, provided by the caller.
         
        string info = 3;
        Specified by:
        getInfoBytes in interface LockInfoOrBuilder
        Returns:
        The bytes for info.
      • setInfo

        public LockInfo.Builder setInfo​(String value)
         Extra information to store with the lock, provided by the caller.
         
        string info = 3;
        Parameters:
        value - The info to set.
        Returns:
        This builder for chaining.
      • clearInfo

        public LockInfo.Builder clearInfo()
         Extra information to store with the lock, provided by the caller.
         
        string info = 3;
        Returns:
        This builder for chaining.
      • setInfoBytes

        public LockInfo.Builder setInfoBytes​(com.google.protobuf.ByteString value)
         Extra information to store with the lock, provided by the caller.
         
        string info = 3;
        Parameters:
        value - The bytes for info to set.
        Returns:
        This builder for chaining.
      • getWho

        public String getWho()
         user@hostname when available
         
        string who = 4;
        Specified by:
        getWho in interface LockInfoOrBuilder
        Returns:
        The who.
      • getWhoBytes

        public com.google.protobuf.ByteString getWhoBytes()
         user@hostname when available
         
        string who = 4;
        Specified by:
        getWhoBytes in interface LockInfoOrBuilder
        Returns:
        The bytes for who.
      • setWho

        public LockInfo.Builder setWho​(String value)
         user@hostname when available
         
        string who = 4;
        Parameters:
        value - The who to set.
        Returns:
        This builder for chaining.
      • clearWho

        public LockInfo.Builder clearWho()
         user@hostname when available
         
        string who = 4;
        Returns:
        This builder for chaining.
      • setWhoBytes

        public LockInfo.Builder setWhoBytes​(com.google.protobuf.ByteString value)
         user@hostname when available
         
        string who = 4;
        Parameters:
        value - The bytes for who to set.
        Returns:
        This builder for chaining.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         Terraform version
         
        string version = 5;
        Specified by:
        getVersionBytes in interface LockInfoOrBuilder
        Returns:
        The bytes for version.
      • setVersion

        public LockInfo.Builder setVersion​(String value)
         Terraform version
         
        string version = 5;
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public LockInfo.Builder clearVersion()
         Terraform version
         
        string version = 5;
        Returns:
        This builder for chaining.
      • setVersionBytes

        public LockInfo.Builder setVersionBytes​(com.google.protobuf.ByteString value)
         Terraform version
         
        string version = 5;
        Parameters:
        value - The bytes for version to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Time that the lock was taken.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        hasCreateTime in interface LockInfoOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Time that the lock was taken.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTime in interface LockInfoOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public LockInfo.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Time that the lock was taken.
         
        .google.protobuf.Timestamp create_time = 6;
      • setCreateTime

        public LockInfo.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Time that the lock was taken.
         
        .google.protobuf.Timestamp create_time = 6;
      • mergeCreateTime

        public LockInfo.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Time that the lock was taken.
         
        .google.protobuf.Timestamp create_time = 6;
      • clearCreateTime

        public LockInfo.Builder clearCreateTime()
         Time that the lock was taken.
         
        .google.protobuf.Timestamp create_time = 6;
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Time that the lock was taken.
         
        .google.protobuf.Timestamp create_time = 6;
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Time that the lock was taken.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTimeOrBuilder in interface LockInfoOrBuilder
      • setUnknownFields

        public final LockInfo.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<LockInfo.Builder>
      • mergeUnknownFields

        public final LockInfo.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<LockInfo.Builder>