Class CustomerEncryptionKeyProtectedDisk.Builder

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

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

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

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

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

        public boolean hasDiskEncryptionKey()
         Decrypts data associated with the disk with a customer-supplied encryption key.
         
        optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
        Specified by:
        hasDiskEncryptionKey in interface CustomerEncryptionKeyProtectedDiskOrBuilder
        Returns:
        Whether the diskEncryptionKey field is set.
      • clearDiskEncryptionKey

        public CustomerEncryptionKeyProtectedDisk.Builder clearDiskEncryptionKey()
         Decrypts data associated with the disk with a customer-supplied encryption key.
         
        optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
      • getDiskEncryptionKeyBuilder

        public CustomerEncryptionKey.Builder getDiskEncryptionKeyBuilder()
         Decrypts data associated with the disk with a customer-supplied encryption key.
         
        optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
      • hasSource

        public boolean hasSource()
         Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name
         
        optional string source = 177235995;
        Specified by:
        hasSource in interface CustomerEncryptionKeyProtectedDiskOrBuilder
        Returns:
        Whether the source field is set.
      • getSource

        public String getSource()
         Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name
         
        optional string source = 177235995;
        Specified by:
        getSource in interface CustomerEncryptionKeyProtectedDiskOrBuilder
        Returns:
        The source.
      • getSourceBytes

        public com.google.protobuf.ByteString getSourceBytes()
         Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name
         
        optional string source = 177235995;
        Specified by:
        getSourceBytes in interface CustomerEncryptionKeyProtectedDiskOrBuilder
        Returns:
        The bytes for source.
      • setSource

        public CustomerEncryptionKeyProtectedDisk.Builder setSource​(String value)
         Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name
         
        optional string source = 177235995;
        Parameters:
        value - The source to set.
        Returns:
        This builder for chaining.
      • clearSource

        public CustomerEncryptionKeyProtectedDisk.Builder clearSource()
         Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name
         
        optional string source = 177235995;
        Returns:
        This builder for chaining.
      • setSourceBytes

        public CustomerEncryptionKeyProtectedDisk.Builder setSourceBytes​(com.google.protobuf.ByteString value)
         Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name
         
        optional string source = 177235995;
        Parameters:
        value - The bytes for source to set.
        Returns:
        This builder for chaining.