Class SavedDisk.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SavedDisk.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.Builder<SavedDisk.Builder> implements SavedDiskOrBuilder
 An instance-attached disk resource.
 
Protobuf type google.cloud.compute.v1.SavedDisk
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public SavedDisk.Builder mergeFrom(SavedDisk other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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()
       Output only. 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()
       Output only. 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()
       Output only. 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)
       Output only. 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()
       Output only. 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)
       Output only. 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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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.