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
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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