Class ComputeStorageDescriptor (0.16.0)

public final class ComputeStorageDescriptor extends GeneratedMessageV3 implements ComputeStorageDescriptorOrBuilder

Compute Engine storage option descriptor.

Protobuf type google.cloud.migrationcenter.v1.ComputeStorageDescriptor

Static Fields

SIZE_GB_FIELD_NUMBER

public static final int SIZE_GB_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ComputeStorageDescriptor getDefaultInstance()
Returns
TypeDescription
ComputeStorageDescriptor

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ComputeStorageDescriptor.Builder newBuilder()
Returns
TypeDescription
ComputeStorageDescriptor.Builder

newBuilder(ComputeStorageDescriptor prototype)

public static ComputeStorageDescriptor.Builder newBuilder(ComputeStorageDescriptor prototype)
Parameter
NameDescription
prototypeComputeStorageDescriptor
Returns
TypeDescription
ComputeStorageDescriptor.Builder

parseDelimitedFrom(InputStream input)

public static ComputeStorageDescriptor parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeStorageDescriptor parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ComputeStorageDescriptor parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ComputeStorageDescriptor parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ComputeStorageDescriptor parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ComputeStorageDescriptor parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ComputeStorageDescriptor parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeStorageDescriptor parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ComputeStorageDescriptor parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeStorageDescriptor parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ComputeStorageDescriptor parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ComputeStorageDescriptor parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeStorageDescriptor
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ComputeStorageDescriptor> parser()
Returns
TypeDescription
Parser<ComputeStorageDescriptor>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ComputeStorageDescriptor getDefaultInstanceForType()
Returns
TypeDescription
ComputeStorageDescriptor

getParserForType()

public Parser<ComputeStorageDescriptor> getParserForType()
Returns
TypeDescription
Parser<ComputeStorageDescriptor>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSizeGb()

public int getSizeGb()

Disk size in GiB.

int32 size_gb = 2;

Returns
TypeDescription
int

The sizeGb.

getType()

public PersistentDiskType getType()

Disk type backing the storage.

.google.cloud.migrationcenter.v1.PersistentDiskType type = 1;

Returns
TypeDescription
PersistentDiskType

The type.

getTypeValue()

public int getTypeValue()

Disk type backing the storage.

.google.cloud.migrationcenter.v1.PersistentDiskType type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ComputeStorageDescriptor.Builder newBuilderForType()
Returns
TypeDescription
ComputeStorageDescriptor.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ComputeStorageDescriptor.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ComputeStorageDescriptor.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ComputeStorageDescriptor.Builder toBuilder()
Returns
TypeDescription
ComputeStorageDescriptor.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException