Class SavedDisk.Builder

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

    public static final class SavedDisk.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
    implements SavedDiskOrBuilder
     An instance-attached disk resource.
     
    Protobuf type google.cloud.compute.v1.SavedDisk
    • 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<SavedDisk.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public SavedDisk.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<SavedDisk.Builder>
        Throws:
        IOException
      • hasArchitecture

        public boolean hasArchitecture()
         [Output Only] The architecture of the attached disk.
         Check the Architecture enum for the list of possible values.
         
        optional string architecture = 302803283;
        Specified by:
        hasArchitecture in interface SavedDiskOrBuilder
        Returns:
        Whether the architecture field is set.
      • getArchitecture

        public String getArchitecture()
         [Output Only] The architecture of the attached disk.
         Check the Architecture enum for the list of possible values.
         
        optional string architecture = 302803283;
        Specified by:
        getArchitecture in interface SavedDiskOrBuilder
        Returns:
        The architecture.
      • getArchitectureBytes

        public com.google.protobuf.ByteString getArchitectureBytes()
         [Output Only] The architecture of the attached disk.
         Check the Architecture enum for the list of possible values.
         
        optional string architecture = 302803283;
        Specified by:
        getArchitectureBytes in interface SavedDiskOrBuilder
        Returns:
        The bytes for architecture.
      • setArchitecture

        public SavedDisk.Builder setArchitecture​(String value)
         [Output Only] The architecture of the attached disk.
         Check the Architecture enum for the list of possible values.
         
        optional string architecture = 302803283;
        Parameters:
        value - The architecture to set.
        Returns:
        This builder for chaining.
      • clearArchitecture

        public SavedDisk.Builder clearArchitecture()
         [Output Only] The architecture of the attached disk.
         Check the Architecture enum for the list of possible values.
         
        optional string architecture = 302803283;
        Returns:
        This builder for chaining.
      • setArchitectureBytes

        public SavedDisk.Builder setArchitectureBytes​(com.google.protobuf.ByteString value)
         [Output Only] The architecture of the attached disk.
         Check the Architecture enum for the list of possible values.
         
        optional string architecture = 302803283;
        Parameters:
        value - The bytes for architecture to set.
        Returns:
        This builder for chaining.
      • hasKind

        public boolean hasKind()
         [Output Only] Type of the resource. Always compute#savedDisk for attached disks.
         
        optional string kind = 3292052;
        Specified by:
        hasKind in interface SavedDiskOrBuilder
        Returns:
        Whether the kind field is set.
      • getKind

        public String getKind()
         [Output Only] Type of the resource. Always compute#savedDisk for attached disks.
         
        optional string kind = 3292052;
        Specified by:
        getKind in interface SavedDiskOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         [Output Only] Type of the resource. Always compute#savedDisk for attached disks.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface SavedDiskOrBuilder
        Returns:
        The bytes for kind.
      • setKind

        public SavedDisk.Builder setKind​(String value)
         [Output Only] Type of the resource. Always compute#savedDisk for attached disks.
         
        optional string kind = 3292052;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public SavedDisk.Builder clearKind()
         [Output Only] Type of the resource. Always compute#savedDisk for attached disks.
         
        optional string kind = 3292052;
        Returns:
        This builder for chaining.
      • setKindBytes

        public SavedDisk.Builder setKindBytes​(com.google.protobuf.ByteString value)
         [Output Only] Type of the resource. Always compute#savedDisk for attached disks.
         
        optional string kind = 3292052;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • hasSourceDisk

        public boolean hasSourceDisk()
         Specifies a URL of the disk attached to the source instance.
         
        optional string source_disk = 451753793;
        Specified by:
        hasSourceDisk in interface SavedDiskOrBuilder
        Returns:
        Whether the sourceDisk field is set.
      • getSourceDisk

        public String getSourceDisk()
         Specifies a URL of the disk attached to the source instance.
         
        optional string source_disk = 451753793;
        Specified by:
        getSourceDisk in interface SavedDiskOrBuilder
        Returns:
        The sourceDisk.
      • getSourceDiskBytes

        public com.google.protobuf.ByteString getSourceDiskBytes()
         Specifies a URL of the disk attached to the source instance.
         
        optional string source_disk = 451753793;
        Specified by:
        getSourceDiskBytes in interface SavedDiskOrBuilder
        Returns:
        The bytes for sourceDisk.
      • setSourceDisk

        public SavedDisk.Builder setSourceDisk​(String value)
         Specifies a URL of the disk attached to the source instance.
         
        optional string source_disk = 451753793;
        Parameters:
        value - The sourceDisk to set.
        Returns:
        This builder for chaining.
      • clearSourceDisk

        public SavedDisk.Builder clearSourceDisk()
         Specifies a URL of the disk attached to the source instance.
         
        optional string source_disk = 451753793;
        Returns:
        This builder for chaining.
      • setSourceDiskBytes

        public SavedDisk.Builder setSourceDiskBytes​(com.google.protobuf.ByteString value)
         Specifies a URL of the disk attached to the source instance.
         
        optional string source_disk = 451753793;
        Parameters:
        value - The bytes for sourceDisk to set.
        Returns:
        This builder for chaining.
      • hasStorageBytes

        public boolean hasStorageBytes()
         [Output Only] Size of the individual disk snapshot used by this machine image.
         
        optional int64 storage_bytes = 424631719;
        Specified by:
        hasStorageBytes in interface SavedDiskOrBuilder
        Returns:
        Whether the storageBytes field is set.
      • getStorageBytes

        public long getStorageBytes()
         [Output Only] Size of the individual disk snapshot used by this machine image.
         
        optional int64 storage_bytes = 424631719;
        Specified by:
        getStorageBytes in interface SavedDiskOrBuilder
        Returns:
        The storageBytes.
      • setStorageBytes

        public SavedDisk.Builder setStorageBytes​(long value)
         [Output Only] Size of the individual disk snapshot used by this machine image.
         
        optional int64 storage_bytes = 424631719;
        Parameters:
        value - The storageBytes to set.
        Returns:
        This builder for chaining.
      • clearStorageBytes

        public SavedDisk.Builder clearStorageBytes()
         [Output Only] Size of the individual disk snapshot used by this machine image.
         
        optional int64 storage_bytes = 424631719;
        Returns:
        This builder for chaining.
      • hasStorageBytesStatus

        public boolean hasStorageBytesStatus()
         [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
         Check the StorageBytesStatus enum for the list of possible values.
         
        optional string storage_bytes_status = 490739082;
        Specified by:
        hasStorageBytesStatus in interface SavedDiskOrBuilder
        Returns:
        Whether the storageBytesStatus field is set.
      • getStorageBytesStatus

        public String getStorageBytesStatus()
         [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
         Check the StorageBytesStatus enum for the list of possible values.
         
        optional string storage_bytes_status = 490739082;
        Specified by:
        getStorageBytesStatus in interface SavedDiskOrBuilder
        Returns:
        The storageBytesStatus.
      • getStorageBytesStatusBytes

        public com.google.protobuf.ByteString getStorageBytesStatusBytes()
         [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
         Check the StorageBytesStatus enum for the list of possible values.
         
        optional string storage_bytes_status = 490739082;
        Specified by:
        getStorageBytesStatusBytes in interface SavedDiskOrBuilder
        Returns:
        The bytes for storageBytesStatus.
      • setStorageBytesStatus

        public SavedDisk.Builder setStorageBytesStatus​(String value)
         [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
         Check the StorageBytesStatus enum for the list of possible values.
         
        optional string storage_bytes_status = 490739082;
        Parameters:
        value - The storageBytesStatus to set.
        Returns:
        This builder for chaining.
      • clearStorageBytesStatus

        public SavedDisk.Builder clearStorageBytesStatus()
         [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
         Check the StorageBytesStatus enum for the list of possible values.
         
        optional string storage_bytes_status = 490739082;
        Returns:
        This builder for chaining.
      • setStorageBytesStatusBytes

        public SavedDisk.Builder setStorageBytesStatusBytes​(com.google.protobuf.ByteString value)
         [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
         Check the StorageBytesStatus enum for the list of possible values.
         
        optional string storage_bytes_status = 490739082;
        Parameters:
        value - The bytes for storageBytesStatus to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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