Class StatefulPolicyPreservedState.Builder (1.51.0)

public static final class StatefulPolicyPreservedState.Builder extends GeneratedMessageV3.Builder<StatefulPolicyPreservedState.Builder> implements StatefulPolicyPreservedStateOrBuilder

Configuration of preserved resources.

Protobuf type google.cloud.compute.v1.StatefulPolicyPreservedState

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StatefulPolicyPreservedState build()
Returns
TypeDescription
StatefulPolicyPreservedState

buildPartial()

public StatefulPolicyPreservedState buildPartial()
Returns
TypeDescription
StatefulPolicyPreservedState

clear()

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

clearDisks()

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

clearExternalIPs()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInternalIPs()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsDisks(String key)

public boolean containsDisks(String key)

Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsExternalIPs(String key)

public boolean containsExternalIPs(String key)

External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsInternalIPs(String key)

public boolean containsInternalIPs(String key)

Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public StatefulPolicyPreservedState getDefaultInstanceForType()
Returns
TypeDescription
StatefulPolicyPreservedState

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisks() (deprecated)

public Map<String,StatefulPolicyPreservedStateDiskDevice> getDisks()

Use #getDisksMap() instead.

Returns
TypeDescription
Map<String,StatefulPolicyPreservedStateDiskDevice>

getDisksCount()

public int getDisksCount()

Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.

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

Returns
TypeDescription
int

getDisksMap()

public Map<String,StatefulPolicyPreservedStateDiskDevice> getDisksMap()

Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.

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

Returns
TypeDescription
Map<String,StatefulPolicyPreservedStateDiskDevice>

getDisksOrDefault(String key, StatefulPolicyPreservedStateDiskDevice defaultValue)

public StatefulPolicyPreservedStateDiskDevice getDisksOrDefault(String key, StatefulPolicyPreservedStateDiskDevice defaultValue)

Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.

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

Parameters
NameDescription
keyString
defaultValueStatefulPolicyPreservedStateDiskDevice
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice

getDisksOrThrow(String key)

public StatefulPolicyPreservedStateDiskDevice getDisksOrThrow(String key)

Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice

getExternalIPs() (deprecated)

public Map<String,StatefulPolicyPreservedStateNetworkIp> getExternalIPs()

Use #getExternalIPsMap() instead.

Returns
TypeDescription
Map<String,StatefulPolicyPreservedStateNetworkIp>

getExternalIPsCount()

public int getExternalIPsCount()

External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Returns
TypeDescription
int

getExternalIPsMap()

public Map<String,StatefulPolicyPreservedStateNetworkIp> getExternalIPsMap()

External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Returns
TypeDescription
Map<String,StatefulPolicyPreservedStateNetworkIp>

getExternalIPsOrDefault(String key, StatefulPolicyPreservedStateNetworkIp defaultValue)

public StatefulPolicyPreservedStateNetworkIp getExternalIPsOrDefault(String key, StatefulPolicyPreservedStateNetworkIp defaultValue)

External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameters
NameDescription
keyString
defaultValueStatefulPolicyPreservedStateNetworkIp
Returns
TypeDescription
StatefulPolicyPreservedStateNetworkIp

getExternalIPsOrThrow(String key)

public StatefulPolicyPreservedStateNetworkIp getExternalIPsOrThrow(String key)

External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
StatefulPolicyPreservedStateNetworkIp

getInternalIPs() (deprecated)

public Map<String,StatefulPolicyPreservedStateNetworkIp> getInternalIPs()

Use #getInternalIPsMap() instead.

Returns
TypeDescription
Map<String,StatefulPolicyPreservedStateNetworkIp>

getInternalIPsCount()

public int getInternalIPsCount()

Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Returns
TypeDescription
int

getInternalIPsMap()

public Map<String,StatefulPolicyPreservedStateNetworkIp> getInternalIPsMap()

Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Returns
TypeDescription
Map<String,StatefulPolicyPreservedStateNetworkIp>

getInternalIPsOrDefault(String key, StatefulPolicyPreservedStateNetworkIp defaultValue)

public StatefulPolicyPreservedStateNetworkIp getInternalIPsOrDefault(String key, StatefulPolicyPreservedStateNetworkIp defaultValue)

Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameters
NameDescription
keyString
defaultValueStatefulPolicyPreservedStateNetworkIp
Returns
TypeDescription
StatefulPolicyPreservedStateNetworkIp

getInternalIPsOrThrow(String key)

public StatefulPolicyPreservedStateNetworkIp getInternalIPsOrThrow(String key)

Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
StatefulPolicyPreservedStateNetworkIp

getMutableDisks() (deprecated)

public Map<String,StatefulPolicyPreservedStateDiskDevice> getMutableDisks()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,StatefulPolicyPreservedStateDiskDevice>

getMutableExternalIPs() (deprecated)

public Map<String,StatefulPolicyPreservedStateNetworkIp> getMutableExternalIPs()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,StatefulPolicyPreservedStateNetworkIp>

getMutableInternalIPs() (deprecated)

public Map<String,StatefulPolicyPreservedStateNetworkIp> getMutableInternalIPs()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,StatefulPolicyPreservedStateNetworkIp>

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(StatefulPolicyPreservedState other)

public StatefulPolicyPreservedState.Builder mergeFrom(StatefulPolicyPreservedState other)
Parameter
NameDescription
otherStatefulPolicyPreservedState
Returns
TypeDescription
StatefulPolicyPreservedState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllDisks(Map<String,StatefulPolicyPreservedStateDiskDevice> values)

public StatefulPolicyPreservedState.Builder putAllDisks(Map<String,StatefulPolicyPreservedStateDiskDevice> values)

Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.

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

Parameter
NameDescription
valuesMap<String,StatefulPolicyPreservedStateDiskDevice>
Returns
TypeDescription
StatefulPolicyPreservedState.Builder

putAllExternalIPs(Map<String,StatefulPolicyPreservedStateNetworkIp> values)

public StatefulPolicyPreservedState.Builder putAllExternalIPs(Map<String,StatefulPolicyPreservedStateNetworkIp> values)

External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameter
NameDescription
valuesMap<String,StatefulPolicyPreservedStateNetworkIp>
Returns
TypeDescription
StatefulPolicyPreservedState.Builder

putAllInternalIPs(Map<String,StatefulPolicyPreservedStateNetworkIp> values)

public StatefulPolicyPreservedState.Builder putAllInternalIPs(Map<String,StatefulPolicyPreservedStateNetworkIp> values)

Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameter
NameDescription
valuesMap<String,StatefulPolicyPreservedStateNetworkIp>
Returns
TypeDescription
StatefulPolicyPreservedState.Builder

putDisks(String key, StatefulPolicyPreservedStateDiskDevice value)

public StatefulPolicyPreservedState.Builder putDisks(String key, StatefulPolicyPreservedStateDiskDevice value)

Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.

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

Parameters
NameDescription
keyString
valueStatefulPolicyPreservedStateDiskDevice
Returns
TypeDescription
StatefulPolicyPreservedState.Builder

putDisksBuilderIfAbsent(String key)

public StatefulPolicyPreservedStateDiskDevice.Builder putDisksBuilderIfAbsent(String key)

Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
StatefulPolicyPreservedStateDiskDevice.Builder

putExternalIPs(String key, StatefulPolicyPreservedStateNetworkIp value)

public StatefulPolicyPreservedState.Builder putExternalIPs(String key, StatefulPolicyPreservedStateNetworkIp value)

External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameters
NameDescription
keyString
valueStatefulPolicyPreservedStateNetworkIp
Returns
TypeDescription
StatefulPolicyPreservedState.Builder

putExternalIPsBuilderIfAbsent(String key)

public StatefulPolicyPreservedStateNetworkIp.Builder putExternalIPsBuilderIfAbsent(String key)

External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
StatefulPolicyPreservedStateNetworkIp.Builder

putInternalIPs(String key, StatefulPolicyPreservedStateNetworkIp value)

public StatefulPolicyPreservedState.Builder putInternalIPs(String key, StatefulPolicyPreservedStateNetworkIp value)

Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameters
NameDescription
keyString
valueStatefulPolicyPreservedStateNetworkIp
Returns
TypeDescription
StatefulPolicyPreservedState.Builder

putInternalIPsBuilderIfAbsent(String key)

public StatefulPolicyPreservedStateNetworkIp.Builder putInternalIPsBuilderIfAbsent(String key)

Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
StatefulPolicyPreservedStateNetworkIp.Builder

removeDisks(String key)

public StatefulPolicyPreservedState.Builder removeDisks(String key)

Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
StatefulPolicyPreservedState.Builder

removeExternalIPs(String key)

public StatefulPolicyPreservedState.Builder removeExternalIPs(String key)

External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
StatefulPolicyPreservedState.Builder

removeInternalIPs(String key)

public StatefulPolicyPreservedState.Builder removeInternalIPs(String key)

Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.

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

Parameter
NameDescription
keyString
Returns
TypeDescription
StatefulPolicyPreservedState.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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