Class SnapshotSettings.Builder (1.50.0)

public static final class SnapshotSettings.Builder extends GeneratedMessageV3.Builder<SnapshotSettings.Builder> implements SnapshotSettingsOrBuilder

Protobuf type google.cloud.compute.v1.SnapshotSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SnapshotSettings build()
Returns
TypeDescription
SnapshotSettings

buildPartial()

public SnapshotSettings buildPartial()
Returns
TypeDescription
SnapshotSettings

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStorageLocation()

public SnapshotSettings.Builder clearStorageLocation()

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;

Returns
TypeDescription
SnapshotSettings.Builder

clone()

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

getDefaultInstanceForType()

public SnapshotSettings getDefaultInstanceForType()
Returns
TypeDescription
SnapshotSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getStorageLocation()

public SnapshotSettingsStorageLocationSettings getStorageLocation()

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;

Returns
TypeDescription
SnapshotSettingsStorageLocationSettings

The storageLocation.

getStorageLocationBuilder()

public SnapshotSettingsStorageLocationSettings.Builder getStorageLocationBuilder()

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;

Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

getStorageLocationOrBuilder()

public SnapshotSettingsStorageLocationSettingsOrBuilder getStorageLocationOrBuilder()

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;

Returns
TypeDescription
SnapshotSettingsStorageLocationSettingsOrBuilder

hasStorageLocation()

public boolean hasStorageLocation()

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;

Returns
TypeDescription
boolean

Whether the storageLocation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SnapshotSettings other)

public SnapshotSettings.Builder mergeFrom(SnapshotSettings other)
Parameter
NameDescription
otherSnapshotSettings
Returns
TypeDescription
SnapshotSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStorageLocation(SnapshotSettingsStorageLocationSettings value)

public SnapshotSettings.Builder mergeStorageLocation(SnapshotSettingsStorageLocationSettings value)

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;

Parameter
NameDescription
valueSnapshotSettingsStorageLocationSettings
Returns
TypeDescription
SnapshotSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStorageLocation(SnapshotSettingsStorageLocationSettings value)

public SnapshotSettings.Builder setStorageLocation(SnapshotSettingsStorageLocationSettings value)

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;

Parameter
NameDescription
valueSnapshotSettingsStorageLocationSettings
Returns
TypeDescription
SnapshotSettings.Builder

setStorageLocation(SnapshotSettingsStorageLocationSettings.Builder builderForValue)

public SnapshotSettings.Builder setStorageLocation(SnapshotSettingsStorageLocationSettings.Builder builderForValue)

Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out.

optional .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings storage_location = 460859641;

Parameter
NameDescription
builderForValueSnapshotSettingsStorageLocationSettings.Builder
Returns
TypeDescription
SnapshotSettings.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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