Class PreservedState.Builder (1.50.0)

public static final class PreservedState.Builder extends GeneratedMessageV3.Builder<PreservedState.Builder> implements PreservedStateOrBuilder

Preserved state for a given instance.

Protobuf type google.cloud.compute.v1.PreservedState

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PreservedState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PreservedState.Builder
Overrides

build()

public PreservedState build()
Returns
TypeDescription
PreservedState

buildPartial()

public PreservedState buildPartial()
Returns
TypeDescription
PreservedState

clear()

public PreservedState.Builder clear()
Returns
TypeDescription
PreservedState.Builder
Overrides

clearDisks()

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

clearExternalIPs()

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

clearField(Descriptors.FieldDescriptor field)

public PreservedState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PreservedState.Builder
Overrides

clearInternalIPs()

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

clearMetadata()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public PreservedState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PreservedState.Builder
Overrides

clone()

public PreservedState.Builder clone()
Returns
TypeDescription
PreservedState.Builder
Overrides

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

getDefaultInstanceForType()

public PreservedState getDefaultInstanceForType()
Returns
TypeDescription
PreservedState

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

getMutableDisks() (deprecated)

public Map<String,PreservedStatePreservedDisk> getMutableDisks()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,PreservedStatePreservedDisk>

getMutableExternalIPs() (deprecated)

public Map<String,PreservedStatePreservedNetworkIp> getMutableExternalIPs()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,PreservedStatePreservedNetworkIp>

getMutableInternalIPs() (deprecated)

public Map<String,PreservedStatePreservedNetworkIp> getMutableInternalIPs()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,PreservedStatePreservedNetworkIp>

getMutableMetadata() (deprecated)

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PreservedState other)

public PreservedState.Builder mergeFrom(PreservedState other)
Parameter
NameDescription
otherPreservedState
Returns
TypeDescription
PreservedState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PreservedState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PreservedState.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PreservedState.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PreservedState.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PreservedState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PreservedState.Builder
Overrides

putAllDisks(Map<String,PreservedStatePreservedDisk> values)

public PreservedState.Builder putAllDisks(Map<String,PreservedStatePreservedDisk> values)

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
valuesMap<String,PreservedStatePreservedDisk>
Returns
TypeDescription
PreservedState.Builder

putAllExternalIPs(Map<String,PreservedStatePreservedNetworkIp> values)

public PreservedState.Builder putAllExternalIPs(Map<String,PreservedStatePreservedNetworkIp> values)

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
valuesMap<String,PreservedStatePreservedNetworkIp>
Returns
TypeDescription
PreservedState.Builder

putAllInternalIPs(Map<String,PreservedStatePreservedNetworkIp> values)

public PreservedState.Builder putAllInternalIPs(Map<String,PreservedStatePreservedNetworkIp> values)

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
valuesMap<String,PreservedStatePreservedNetworkIp>
Returns
TypeDescription
PreservedState.Builder

putAllMetadata(Map<String,String> values)

public PreservedState.Builder putAllMetadata(Map<String,String> values)

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
PreservedState.Builder

putDisks(String key, PreservedStatePreservedDisk value)

public PreservedState.Builder putDisks(String key, PreservedStatePreservedDisk value)

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
valuePreservedStatePreservedDisk
Returns
TypeDescription
PreservedState.Builder

putDisksBuilderIfAbsent(String key)

public PreservedStatePreservedDisk.Builder putDisksBuilderIfAbsent(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.Builder

putExternalIPs(String key, PreservedStatePreservedNetworkIp value)

public PreservedState.Builder putExternalIPs(String key, PreservedStatePreservedNetworkIp value)

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
valuePreservedStatePreservedNetworkIp
Returns
TypeDescription
PreservedState.Builder

putExternalIPsBuilderIfAbsent(String key)

public PreservedStatePreservedNetworkIp.Builder putExternalIPsBuilderIfAbsent(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.Builder

putInternalIPs(String key, PreservedStatePreservedNetworkIp value)

public PreservedState.Builder putInternalIPs(String key, PreservedStatePreservedNetworkIp value)

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
valuePreservedStatePreservedNetworkIp
Returns
TypeDescription
PreservedState.Builder

putInternalIPsBuilderIfAbsent(String key)

public PreservedStatePreservedNetworkIp.Builder putInternalIPsBuilderIfAbsent(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.Builder

putMetadata(String key, String value)

public PreservedState.Builder putMetadata(String key, String value)

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
PreservedState.Builder

removeDisks(String key)

public PreservedState.Builder removeDisks(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
PreservedState.Builder

removeExternalIPs(String key)

public PreservedState.Builder removeExternalIPs(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
PreservedState.Builder

removeInternalIPs(String key)

public PreservedState.Builder removeInternalIPs(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
PreservedState.Builder

removeMetadata(String key)

public PreservedState.Builder removeMetadata(String key)

Preserved metadata defined for this instance.

map<string, string> metadata = 86866735;

Parameter
NameDescription
keyString
Returns
TypeDescription
PreservedState.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PreservedState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PreservedState.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PreservedState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PreservedState.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PreservedState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PreservedState.Builder
Overrides