Class SourceDiskEncryptionKey.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<SourceDiskEncryptionKey.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

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

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