Class SourceInstanceParams.Builder (1.30.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.DiskInstantiationConfig>
Returns
TypeDescription
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
NameDescription
valueDiskInstantiationConfig
Returns
TypeDescription
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
NameDescription
builderForValueDiskInstantiationConfig.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDiskInstantiationConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDiskInstantiationConfig.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DiskInstantiationConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SourceInstanceParams build()
Returns
TypeDescription
SourceInstanceParams

buildPartial()

public SourceInstanceParams buildPartial()
Returns
TypeDescription
SourceInstanceParams

clear()

public SourceInstanceParams.Builder clear()
Returns
TypeDescription
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
TypeDescription
SourceInstanceParams.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SourceInstanceParams getDefaultInstanceForType()
Returns
TypeDescription
SourceInstanceParams

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.compute.v1.DiskInstantiationConfigOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SourceInstanceParams other)

public SourceInstanceParams.Builder mergeFrom(SourceInstanceParams other)
Parameter
NameDescription
otherSourceInstanceParams
Returns
TypeDescription
SourceInstanceParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SourceInstanceParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueDiskInstantiationConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDiskInstantiationConfig.Builder
Returns
TypeDescription
SourceInstanceParams.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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