Class PreservedState (1.51.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

EXTERNAL_I_PS_FIELD_NUMBER

public static final int EXTERNAL_I_PS_FIELD_NUMBER
Field Value
TypeDescription
int

INTERNAL_I_PS_FIELD_NUMBER

public static final int INTERNAL_I_PS_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

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
NameDescription
keyString
Returns
TypeDescription
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
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() (deprecated)

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

getExternalIPs() (deprecated)

public Map<String,PreservedStatePreservedNetworkIp> getExternalIPs()

Use #getExternalIPsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValuePreservedStatePreservedNetworkIp
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
PreservedStatePreservedNetworkIp

getInternalIPs() (deprecated)

public Map<String,PreservedStatePreservedNetworkIp> getInternalIPs()

Use #getInternalIPsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValuePreservedStatePreservedNetworkIp
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
PreservedStatePreservedNetworkIp

getMetadata() (deprecated)

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

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

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