Class CustomerEncryptionKeyProtectedDisk.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomerEncryptionKeyProtectedDisk.Builder>
com.google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk.Builder
All Implemented Interfaces:
CustomerEncryptionKeyProtectedDiskOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CustomerEncryptionKeyProtectedDisk

public static final class CustomerEncryptionKeyProtectedDisk.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomerEncryptionKeyProtectedDisk.Builder> implements CustomerEncryptionKeyProtectedDiskOrBuilder
 
Protobuf type google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk
  • 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<CustomerEncryptionKeyProtectedDisk.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<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.GeneratedMessage.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

      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
    • mergeFrom

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

    • isInitialized

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

      public CustomerEncryptionKeyProtectedDisk.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<CustomerEncryptionKeyProtectedDisk.Builder>
      Throws:
      IOException
    • hasDiskEncryptionKey

      public boolean hasDiskEncryptionKey()
       Decrypts data associated with the disk with acustomer-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.
    • getDiskEncryptionKey

      public CustomerEncryptionKey getDiskEncryptionKey()
       Decrypts data associated with the disk with acustomer-supplied
       encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
      Specified by:
      getDiskEncryptionKey in interface CustomerEncryptionKeyProtectedDiskOrBuilder
      Returns:
      The diskEncryptionKey.
    • setDiskEncryptionKey

       Decrypts data associated with the disk with acustomer-supplied
       encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
    • setDiskEncryptionKey

      public CustomerEncryptionKeyProtectedDisk.Builder setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
       Decrypts data associated with the disk with acustomer-supplied
       encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
    • mergeDiskEncryptionKey

       Decrypts data associated with the disk with acustomer-supplied
       encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
    • clearDiskEncryptionKey

      public CustomerEncryptionKeyProtectedDisk.Builder clearDiskEncryptionKey()
       Decrypts data associated with the disk with acustomer-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 acustomer-supplied
       encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
    • getDiskEncryptionKeyOrBuilder

      public CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()
       Decrypts data associated with the disk with acustomer-supplied
       encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
      Specified by:
      getDiskEncryptionKeyOrBuilder in interface CustomerEncryptionKeyProtectedDiskOrBuilder
    • 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

       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

       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.