Class PreservedState (1.65.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
Type Description
int

EXTERNAL_I_PS_FIELD_NUMBER

public static final int EXTERNAL_I_PS_FIELD_NUMBER
Field Value
Type Description
int

INTERNAL_I_PS_FIELD_NUMBER

public static final int INTERNAL_I_PS_FIELD_NUMBER
Field Value
Type Description
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PreservedState getDefaultInstance()
Returns
Type Description
PreservedState

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PreservedState.Builder newBuilder()
Returns
Type Description
PreservedState.Builder

newBuilder(PreservedState prototype)

public static PreservedState.Builder newBuilder(PreservedState prototype)
Parameter
Name Description
prototype PreservedState
Returns
Type Description
PreservedState.Builder

parseDelimitedFrom(InputStream input)

public static PreservedState parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PreservedState
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PreservedState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreservedState
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PreservedState parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PreservedState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PreservedState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreservedState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PreservedState parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PreservedState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PreservedState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreservedState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PreservedState parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PreservedState
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PreservedState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreservedState
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PreservedState parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PreservedState
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PreservedState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreservedState
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PreservedState parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PreservedState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PreservedState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreservedState
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PreservedState> parser()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

containsExternalIPs(String key)

public boolean containsExternalIPs(String key)

Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.

map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsInternalIPs(String key)

public boolean containsInternalIPs(String key)

Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.

map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsMetadata(String key)

public boolean containsMetadata(String key)

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public PreservedState getDefaultInstanceForType()
Returns
Type Description
PreservedState

getDisks() (deprecated)

public Map<String,PreservedStatePreservedDisk> getDisks()

Use #getDisksMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue PreservedStatePreservedDisk
Returns
Type Description
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
Name Description
key String
Returns
Type Description
PreservedStatePreservedDisk

getExternalIPs() (deprecated)

public Map<String,PreservedStatePreservedNetworkIp> getExternalIPs()

Use #getExternalIPsMap() instead.

Returns
Type Description
Map<String,PreservedStatePreservedNetworkIp>

getExternalIPsCount()

public int getExternalIPsCount()

Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.

map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;

Returns
Type Description
int

getExternalIPsMap()

public Map<String,PreservedStatePreservedNetworkIp> getExternalIPsMap()

Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.

map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;

Returns
Type Description
Map<String,PreservedStatePreservedNetworkIp>

getExternalIPsOrDefault(String key, PreservedStatePreservedNetworkIp defaultValue)

public PreservedStatePreservedNetworkIp getExternalIPsOrDefault(String key, PreservedStatePreservedNetworkIp defaultValue)

Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.

map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;

Parameters
Name Description
key String
defaultValue PreservedStatePreservedNetworkIp
Returns
Type Description
PreservedStatePreservedNetworkIp

getExternalIPsOrThrow(String key)

public PreservedStatePreservedNetworkIp getExternalIPsOrThrow(String key)

Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.

map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> external_i_ps = 532687245;

Parameter
Name Description
key String
Returns
Type Description
PreservedStatePreservedNetworkIp

getInternalIPs() (deprecated)

public Map<String,PreservedStatePreservedNetworkIp> getInternalIPs()

Use #getInternalIPsMap() instead.

Returns
Type Description
Map<String,PreservedStatePreservedNetworkIp>

getInternalIPsCount()

public int getInternalIPsCount()

Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.

map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;

Returns
Type Description
int

getInternalIPsMap()

public Map<String,PreservedStatePreservedNetworkIp> getInternalIPsMap()

Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.

map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;

Returns
Type Description
Map<String,PreservedStatePreservedNetworkIp>

getInternalIPsOrDefault(String key, PreservedStatePreservedNetworkIp defaultValue)

public PreservedStatePreservedNetworkIp getInternalIPsOrDefault(String key, PreservedStatePreservedNetworkIp defaultValue)

Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.

map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;

Parameters
Name Description
key String
defaultValue PreservedStatePreservedNetworkIp
Returns
Type Description
PreservedStatePreservedNetworkIp

getInternalIPsOrThrow(String key)

public PreservedStatePreservedNetworkIp getInternalIPsOrThrow(String key)

Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.

map<string, .google.cloud.compute.v1.PreservedStatePreservedNetworkIp> internal_i_ps = 215731675;

Parameter
Name Description
key String
Returns
Type Description
PreservedStatePreservedNetworkIp

getMetadata() (deprecated)

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
Type Description
Map<String,String>

getMetadataCount()

public int getMetadataCount()

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Returns
Type Description
int

getMetadataMap()

public Map<String,String> getMetadataMap()

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getMetadataOrThrow(String key)

public String getMetadataOrThrow(String key)

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Parameter
Name Description
key String
Returns
Type Description
String

getParserForType()

public Parser<PreservedState> getParserForType()
Returns
Type Description
Parser<PreservedState>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PreservedState.Builder newBuilderForType()
Returns
Type Description
PreservedState.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PreservedState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PreservedState.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PreservedState.Builder toBuilder()
Returns
Type Description
PreservedState.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException