Class StatefulPolicyPreservedState.Builder (1.41.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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
Overrides

build()

public StatefulPolicyPreservedState build()
Returns
TypeDescription
StatefulPolicyPreservedState

buildPartial()

public StatefulPolicyPreservedState buildPartial()
Returns
TypeDescription
StatefulPolicyPreservedState

clear()

public StatefulPolicyPreservedState.Builder clear()
Overrides

clearDisks()

public StatefulPolicyPreservedState.Builder clearDisks()

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public StatefulPolicyPreservedState.Builder clone()
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

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.

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;

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

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

getMutableDisks() (deprecated)

public Map<String,StatefulPolicyPreservedStateDiskDevice> getMutableDisks()

Use alternate mutation accessors instead.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StatefulPolicyPreservedState other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StatefulPolicyPreservedState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
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>

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

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

setField(Descriptors.FieldDescriptor field, Object value)

public StatefulPolicyPreservedState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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