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

clearField(Descriptors.FieldDescriptor field)

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

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

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

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

getMetadata()

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

public Map<String,PreservedStatePreservedDisk> getMutableDisks()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,PreservedStatePreservedDisk>

getMutableMetadata()

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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(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

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

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

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