Class PreservedState (1.23.0)

public final class PreservedState extends GeneratedMessageV3 implements PreservedStateOrBuilder

Preserved state for a given instance.

Protobuf type google.cloud.compute.v1.PreservedState

Static Fields

DISKS_FIELD_NUMBER

public static final int DISKS_FIELD_NUMBER
Field Value
TypeDescription
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PreservedState getDefaultInstance()
Returns
TypeDescription
PreservedState

getDescriptor()

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

newBuilder()

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

newBuilder(PreservedState prototype)

public static PreservedState.Builder newBuilder(PreservedState prototype)
Parameter
NameDescription
prototypePreservedState
Returns
TypeDescription
PreservedState.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsDisks(String key)

public boolean containsDisks(String key)

Preserved disks defined for this instance. This map is keyed with the device names of the disks.

map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsMetadata(String key)

public boolean containsMetadata(String key)

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

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

getDefaultInstanceForType()

public PreservedState getDefaultInstanceForType()
Returns
TypeDescription
PreservedState

getDisks()

public Map<String,PreservedStatePreservedDisk> getDisks()

Use #getDisksMap() instead.

Returns
TypeDescription
Map<String,PreservedStatePreservedDisk>

getDisksCount()

public int getDisksCount()

Preserved disks defined for this instance. This map is keyed with the device names of the disks.

map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;

Returns
TypeDescription
int

getDisksMap()

public Map<String,PreservedStatePreservedDisk> getDisksMap()

Preserved disks defined for this instance. This map is keyed with the device names of the disks.

map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;

Returns
TypeDescription
Map<String,PreservedStatePreservedDisk>

getDisksOrDefault(String key, PreservedStatePreservedDisk defaultValue)

public PreservedStatePreservedDisk getDisksOrDefault(String key, PreservedStatePreservedDisk defaultValue)

Preserved disks defined for this instance. This map is keyed with the device names of the disks.

map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;

Parameters
NameDescription
keyString
defaultValuePreservedStatePreservedDisk
Returns
TypeDescription
PreservedStatePreservedDisk

getDisksOrThrow(String key)

public PreservedStatePreservedDisk getDisksOrThrow(String key)

Preserved disks defined for this instance. This map is keyed with the device names of the disks.

map<string, .google.cloud.compute.v1.PreservedStatePreservedDisk> disks = 95594102;

Parameter
NameDescription
keyString
Returns
TypeDescription
PreservedStatePreservedDisk

getMetadata()

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
Map<String,String>

getMetadataCount()

public int getMetadataCount()

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Returns
TypeDescription
int

getMetadataMap()

public Map<String,String> getMetadataMap()

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Returns
TypeDescription
Map<String,String>

getMetadataOrDefault(String key, String defaultValue)

public String getMetadataOrDefault(String key, String defaultValue)

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getMetadataOrThrow(String key)

public String getMetadataOrThrow(String key)

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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