Class DiskEntry

  • All Implemented Interfaces:
    DiskEntryOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class DiskEntry
    extends com.google.protobuf.GeneratedMessageV3
    implements DiskEntryOrBuilder
     Single disk entry.
     
    Protobuf type google.cloud.migrationcenter.v1.DiskEntry
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getCapacityBytes

        public long getCapacityBytes()
         Disk capacity.
         
        int64 capacity_bytes = 1;
        Specified by:
        getCapacityBytes in interface DiskEntryOrBuilder
        Returns:
        The capacityBytes.
      • getFreeBytes

        public long getFreeBytes()
         Disk free space.
         
        int64 free_bytes = 2;
        Specified by:
        getFreeBytes in interface DiskEntryOrBuilder
        Returns:
        The freeBytes.
      • getDiskLabelBytes

        public com.google.protobuf.ByteString getDiskLabelBytes()
         Disk label.
         
        string disk_label = 3;
        Specified by:
        getDiskLabelBytes in interface DiskEntryOrBuilder
        Returns:
        The bytes for diskLabel.
      • getDiskLabelType

        public String getDiskLabelType()
         Disk label type (e.g. BIOS/GPT)
         
        string disk_label_type = 4;
        Specified by:
        getDiskLabelType in interface DiskEntryOrBuilder
        Returns:
        The diskLabelType.
      • getDiskLabelTypeBytes

        public com.google.protobuf.ByteString getDiskLabelTypeBytes()
         Disk label type (e.g. BIOS/GPT)
         
        string disk_label_type = 4;
        Specified by:
        getDiskLabelTypeBytes in interface DiskEntryOrBuilder
        Returns:
        The bytes for diskLabelType.
      • getInterfaceTypeValue

        public int getInterfaceTypeValue()
         Disks interface type.
         
        .google.cloud.migrationcenter.v1.DiskEntry.InterfaceType interface_type = 5;
        Specified by:
        getInterfaceTypeValue in interface DiskEntryOrBuilder
        Returns:
        The enum numeric value on the wire for interfaceType.
      • hasPartitions

        public boolean hasPartitions()
         Partition layout.
         
        .google.cloud.migrationcenter.v1.DiskPartitionList partitions = 6;
        Specified by:
        hasPartitions in interface DiskEntryOrBuilder
        Returns:
        Whether the partitions field is set.
      • getHwAddress

        public String getHwAddress()
         Disk hardware address (e.g. 0:1 for SCSI).
         
        string hw_address = 7;
        Specified by:
        getHwAddress in interface DiskEntryOrBuilder
        Returns:
        The hwAddress.
      • getHwAddressBytes

        public com.google.protobuf.ByteString getHwAddressBytes()
         Disk hardware address (e.g. 0:1 for SCSI).
         
        string hw_address = 7;
        Specified by:
        getHwAddressBytes in interface DiskEntryOrBuilder
        Returns:
        The bytes for hwAddress.
      • hasVmware

        public boolean hasVmware()
         VMware disk details.
         
        .google.cloud.migrationcenter.v1.VmwareDiskConfig vmware = 20;
        Specified by:
        hasVmware in interface DiskEntryOrBuilder
        Returns:
        Whether the vmware field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static DiskEntry parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiskEntry parseFrom​(ByteBuffer data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiskEntry parseFrom​(com.google.protobuf.ByteString data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiskEntry parseFrom​(com.google.protobuf.ByteString data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiskEntry parseFrom​(byte[] data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiskEntry parseFrom​(byte[] data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiskEntry parseFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Throws:
        IOException
      • newBuilderForType

        public DiskEntry.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DiskEntry.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DiskEntry.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static DiskEntry getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<DiskEntry> parser()
      • getParserForType

        public com.google.protobuf.Parser<DiskEntry> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public DiskEntry getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder