Class SourceDiskEncryptionKey.Builder

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

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

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

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

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

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

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

      public boolean hasDiskEncryptionKey()
       Thecustomer-supplied
       encryption key of the source disk. Required if the source disk is
       protected by a customer-supplied encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
      Specified by:
      hasDiskEncryptionKey in interface SourceDiskEncryptionKeyOrBuilder
      Returns:
      Whether the diskEncryptionKey field is set.
    • getDiskEncryptionKey

      public CustomerEncryptionKey getDiskEncryptionKey()
       Thecustomer-supplied
       encryption key of the source disk. Required if the source disk is
       protected by a customer-supplied encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
      Specified by:
      getDiskEncryptionKey in interface SourceDiskEncryptionKeyOrBuilder
      Returns:
      The diskEncryptionKey.
    • setDiskEncryptionKey

      public SourceDiskEncryptionKey.Builder setDiskEncryptionKey(CustomerEncryptionKey value)
       Thecustomer-supplied
       encryption key of the source disk. Required if the source disk is
       protected by a customer-supplied encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
    • setDiskEncryptionKey

      public SourceDiskEncryptionKey.Builder setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
       Thecustomer-supplied
       encryption key of the source disk. Required if the source disk is
       protected by a customer-supplied encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
    • mergeDiskEncryptionKey

      public SourceDiskEncryptionKey.Builder mergeDiskEncryptionKey(CustomerEncryptionKey value)
       Thecustomer-supplied
       encryption key of the source disk. Required if the source disk is
       protected by a customer-supplied encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
    • clearDiskEncryptionKey

      public SourceDiskEncryptionKey.Builder clearDiskEncryptionKey()
       Thecustomer-supplied
       encryption key of the source disk. Required if the source disk is
       protected by a customer-supplied encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
    • getDiskEncryptionKeyBuilder

      public CustomerEncryptionKey.Builder getDiskEncryptionKeyBuilder()
       Thecustomer-supplied
       encryption key of the source disk. Required if the source disk is
       protected by a customer-supplied encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
    • getDiskEncryptionKeyOrBuilder

      public CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()
       Thecustomer-supplied
       encryption key of the source disk. Required if the source disk is
       protected by a customer-supplied encryption key.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;
      Specified by:
      getDiskEncryptionKeyOrBuilder in interface SourceDiskEncryptionKeyOrBuilder
    • hasSourceDisk

      public boolean hasSourceDisk()
       URL of the disk attached to the source instance. This can be a full or
       valid partial URL. For example, the following are valid values:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string source_disk = 451753793;
      Specified by:
      hasSourceDisk in interface SourceDiskEncryptionKeyOrBuilder
      Returns:
      Whether the sourceDisk field is set.
    • getSourceDisk

      public String getSourceDisk()
       URL of the disk attached to the source instance. This can be a full or
       valid partial URL. For example, the following are valid values:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string source_disk = 451753793;
      Specified by:
      getSourceDisk in interface SourceDiskEncryptionKeyOrBuilder
      Returns:
      The sourceDisk.
    • getSourceDiskBytes

      public com.google.protobuf.ByteString getSourceDiskBytes()
       URL of the disk attached to the source instance. This can be a full or
       valid partial URL. For example, the following are valid values:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string source_disk = 451753793;
      Specified by:
      getSourceDiskBytes in interface SourceDiskEncryptionKeyOrBuilder
      Returns:
      The bytes for sourceDisk.
    • setSourceDisk

      public SourceDiskEncryptionKey.Builder setSourceDisk(String value)
       URL of the disk attached to the source instance. This can be a full or
       valid partial URL. For example, the following are valid values:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string source_disk = 451753793;
      Parameters:
      value - The sourceDisk to set.
      Returns:
      This builder for chaining.
    • clearSourceDisk

      public SourceDiskEncryptionKey.Builder clearSourceDisk()
       URL of the disk attached to the source instance. This can be a full or
       valid partial URL. For example, the following are valid values:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string source_disk = 451753793;
      Returns:
      This builder for chaining.
    • setSourceDiskBytes

      public SourceDiskEncryptionKey.Builder setSourceDiskBytes(com.google.protobuf.ByteString value)
       URL of the disk attached to the source instance. This can be a full or
       valid partial URL. For example, the following are valid values:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
       - projects/project/zones/zone/disks/disk
       - zones/zone/disks/disk
       
      optional string source_disk = 451753793;
      Parameters:
      value - The bytes for sourceDisk to set.
      Returns:
      This builder for chaining.