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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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, new custom images will be created from each disk. 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
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, new custom images will be created from each disk. 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
Returns
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, new custom images will be created from each disk. 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
Returns
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, new custom images will be created from each disk. 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
Returns
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, new custom images will be created from each disk. 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
Returns
addDiskConfigsBuilder()
public DiskInstantiationConfig.Builder addDiskConfigsBuilder()
Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. 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
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, new custom images will be created from each disk. 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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SourceInstanceParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SourceInstanceParams build()
Returns
buildPartial()
public SourceInstanceParams buildPartial()
Returns
clear()
public SourceInstanceParams.Builder clear()
Returns
Overrides
clearDiskConfigs()
public SourceInstanceParams.Builder clearDiskConfigs()
Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. 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
clearField(Descriptors.FieldDescriptor field)
public SourceInstanceParams.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SourceInstanceParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SourceInstanceParams.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SourceInstanceParams getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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, new custom images will be created from each disk. 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
Returns
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, new custom images will be created from each disk. 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
Returns
getDiskConfigsBuilderList()
public List<DiskInstantiationConfig.Builder> getDiskConfigsBuilderList()
Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. 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
getDiskConfigsCount()
public int getDiskConfigsCount()
Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. 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
getDiskConfigsList()
public List<DiskInstantiationConfig> getDiskConfigsList()
Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. 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
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, new custom images will be created from each disk. 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
Returns
getDiskConfigsOrBuilderList()
public List<? extends DiskInstantiationConfigOrBuilder> getDiskConfigsOrBuilderList()
Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. 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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SourceInstanceParams other)
public SourceInstanceParams.Builder mergeFrom(SourceInstanceParams other)
Parameter
Returns
public SourceInstanceParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SourceInstanceParams.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SourceInstanceParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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, new custom images will be created from each disk. 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
Returns
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, new custom images will be created from each disk. 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
Returns
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, new custom images will be created from each disk. 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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SourceInstanceParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SourceInstanceParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SourceInstanceParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides