Send feedback
Class PreservedState.Builder (1.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.12.0 keyboard_arrow_down
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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PreservedState . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public PreservedState build ()
Returns
buildPartial()
public PreservedState buildPartial ()
Returns
clear()
public PreservedState . Builder clear ()
Returns
Overrides
clearDisks()
public PreservedState . Builder clearDisks ()
Returns
clearField(Descriptors.FieldDescriptor field)
public PreservedState . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
public PreservedState . Builder clearMetadata ()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PreservedState . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public PreservedState . Builder clone ()
Returns
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
Returns
public boolean containsMetadata ( String key )
Preserved metadata defined for this instance.
map<string, string> metadata = 86866735;
Parameter
Returns
getDefaultInstanceForType()
public PreservedState getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getDisks()
public Map<String , PreservedStatePreservedDisk > getDisks ()
Returns
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
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
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
Returns
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
Returns
public Map<String , String > getMetadata ()
Returns
public int getMetadataCount ()
Preserved metadata defined for this instance.
map<string, string> metadata = 86866735;
Returns
public Map<String , String > getMetadataMap ()
Preserved metadata defined for this instance.
map<string, string> metadata = 86866735;
Returns
public String getMetadataOrDefault ( String key , String defaultValue )
Preserved metadata defined for this instance.
map<string, string> metadata = 86866735;
Parameters
Returns
public String getMetadataOrThrow ( String key )
Preserved metadata defined for this instance.
map<string, string> metadata = 86866735;
Parameter
Returns
getMutableDisks()
public Map<String , PreservedStatePreservedDisk > getMutableDisks ()
Use alternate mutation accessors instead.
Returns
public Map<String , String > getMutableMetadata ()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField ( int number )
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField ( int number )
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(PreservedState other)
public PreservedState . Builder mergeFrom ( PreservedState other )
Parameter
Returns
public PreservedState . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PreservedState . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PreservedState . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
public PreservedState . Builder putAllMetadata ( Map<String , String > values )
Preserved metadata defined for this instance.
map<string, string> metadata = 86866735;
Parameter
Returns
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
Returns
public PreservedState . Builder putMetadata ( String key , String value )
Preserved metadata defined for this instance.
map<string, string> metadata = 86866735;
Parameters
Returns
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
Returns
public PreservedState . Builder removeMetadata ( String key )
Preserved metadata defined for this instance.
map<string, string> metadata = 86866735;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PreservedState . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PreservedState . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PreservedState . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]