Class SourceInstanceParams.Builder (1.53.0)

public static final class SourceInstanceParams.Builder extends GeneratedMessageV3.Builder<SourceInstanceParams.Builder> implements SourceInstanceParamsOrBuilder

A specification of the parameters to use when creating the instance template from a source instance.

Protobuf type google.cloud.compute.v1.SourceInstanceParams

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDiskConfigs(Iterable<? extends DiskInstantiationConfig> values)

public SourceInstanceParams.Builder addAllDiskConfigs(Iterable<? extends DiskInstantiationConfig> values)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.DiskInstantiationConfig>
Returns
Type Description
SourceInstanceParams.Builder

addDiskConfigs(DiskInstantiationConfig value)

public SourceInstanceParams.Builder addDiskConfigs(DiskInstantiationConfig value)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameter
Name Description
value DiskInstantiationConfig
Returns
Type Description
SourceInstanceParams.Builder

addDiskConfigs(DiskInstantiationConfig.Builder builderForValue)

public SourceInstanceParams.Builder addDiskConfigs(DiskInstantiationConfig.Builder builderForValue)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameter
Name Description
builderForValue DiskInstantiationConfig.Builder
Returns
Type Description
SourceInstanceParams.Builder

addDiskConfigs(int index, DiskInstantiationConfig value)

public SourceInstanceParams.Builder addDiskConfigs(int index, DiskInstantiationConfig value)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameters
Name Description
index int
value DiskInstantiationConfig
Returns
Type Description
SourceInstanceParams.Builder

addDiskConfigs(int index, DiskInstantiationConfig.Builder builderForValue)

public SourceInstanceParams.Builder addDiskConfigs(int index, DiskInstantiationConfig.Builder builderForValue)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameters
Name Description
index int
builderForValue DiskInstantiationConfig.Builder
Returns
Type Description
SourceInstanceParams.Builder

addDiskConfigsBuilder()

public DiskInstantiationConfig.Builder addDiskConfigsBuilder()

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Returns
Type Description
DiskInstantiationConfig.Builder

addDiskConfigsBuilder(int index)

public DiskInstantiationConfig.Builder addDiskConfigsBuilder(int index)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameter
Name Description
index int
Returns
Type Description
DiskInstantiationConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SourceInstanceParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SourceInstanceParams.Builder
Overrides

build()

public SourceInstanceParams build()
Returns
Type Description
SourceInstanceParams

buildPartial()

public SourceInstanceParams buildPartial()
Returns
Type Description
SourceInstanceParams

clear()

public SourceInstanceParams.Builder clear()
Returns
Type Description
SourceInstanceParams.Builder
Overrides

clearDiskConfigs()

public SourceInstanceParams.Builder clearDiskConfigs()

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Returns
Type Description
SourceInstanceParams.Builder

clearField(Descriptors.FieldDescriptor field)

public SourceInstanceParams.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SourceInstanceParams.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SourceInstanceParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SourceInstanceParams.Builder
Overrides

clone()

public SourceInstanceParams.Builder clone()
Returns
Type Description
SourceInstanceParams.Builder
Overrides

getDefaultInstanceForType()

public SourceInstanceParams getDefaultInstanceForType()
Returns
Type Description
SourceInstanceParams

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDiskConfigs(int index)

public DiskInstantiationConfig getDiskConfigs(int index)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameter
Name Description
index int
Returns
Type Description
DiskInstantiationConfig

getDiskConfigsBuilder(int index)

public DiskInstantiationConfig.Builder getDiskConfigsBuilder(int index)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameter
Name Description
index int
Returns
Type Description
DiskInstantiationConfig.Builder

getDiskConfigsBuilderList()

public List<DiskInstantiationConfig.Builder> getDiskConfigsBuilderList()

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Returns
Type Description
List<Builder>

getDiskConfigsCount()

public int getDiskConfigsCount()

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Returns
Type Description
int

getDiskConfigsList()

public List<DiskInstantiationConfig> getDiskConfigsList()

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Returns
Type Description
List<DiskInstantiationConfig>

getDiskConfigsOrBuilder(int index)

public DiskInstantiationConfigOrBuilder getDiskConfigsOrBuilder(int index)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameter
Name Description
index int
Returns
Type Description
DiskInstantiationConfigOrBuilder

getDiskConfigsOrBuilderList()

public List<? extends DiskInstantiationConfigOrBuilder> getDiskConfigsOrBuilderList()

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.DiskInstantiationConfigOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceInstanceParams other)

public SourceInstanceParams.Builder mergeFrom(SourceInstanceParams other)
Parameter
Name Description
other SourceInstanceParams
Returns
Type Description
SourceInstanceParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SourceInstanceParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceInstanceParams.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SourceInstanceParams.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SourceInstanceParams.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SourceInstanceParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SourceInstanceParams.Builder
Overrides

removeDiskConfigs(int index)

public SourceInstanceParams.Builder removeDiskConfigs(int index)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameter
Name Description
index int
Returns
Type Description
SourceInstanceParams.Builder

setDiskConfigs(int index, DiskInstantiationConfig value)

public SourceInstanceParams.Builder setDiskConfigs(int index, DiskInstantiationConfig value)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameters
Name Description
index int
value DiskInstantiationConfig
Returns
Type Description
SourceInstanceParams.Builder

setDiskConfigs(int index, DiskInstantiationConfig.Builder builderForValue)

public SourceInstanceParams.Builder setDiskConfigs(int index, DiskInstantiationConfig.Builder builderForValue)

Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.

repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623;

Parameters
Name Description
index int
builderForValue DiskInstantiationConfig.Builder
Returns
Type Description
SourceInstanceParams.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SourceInstanceParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SourceInstanceParams.Builder
Overrides

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

public SourceInstanceParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SourceInstanceParams.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SourceInstanceParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SourceInstanceParams.Builder
Overrides