Class SourceInstanceParams.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SourceInstanceParams.Builder>
com.google.cloud.compute.v1.SourceInstanceParams.Builder
All Implemented Interfaces:
SourceInstanceParamsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SourceInstanceParams

public static final class SourceInstanceParams.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SourceInstanceParams.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SourceInstanceParams.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SourceInstanceParams.Builder>
    • getDefaultInstanceForType

      public SourceInstanceParams getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SourceInstanceParams build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SourceInstanceParams buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SourceInstanceParams.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceInstanceParams.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SourceInstanceParams.Builder>
    • mergeFrom

      public SourceInstanceParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceInstanceParams.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getDiskConfigsList in interface SourceInstanceParamsOrBuilder
    • 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;
      Specified by:
      getDiskConfigsCount in interface SourceInstanceParamsOrBuilder
    • getDiskConfigs

      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;
      Specified by:
      getDiskConfigs in interface SourceInstanceParamsOrBuilder
    • setDiskConfigs

      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;
    • setDiskConfigs

      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;
    • addDiskConfigs

       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;
    • addDiskConfigs

      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;
    • addDiskConfigs

      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;
    • addDiskConfigs

      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;
    • addAllDiskConfigs

      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;
    • 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;
    • removeDiskConfigs

      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;
    • getDiskConfigsBuilder

      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;
    • getDiskConfigsOrBuilder

      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;
      Specified by:
      getDiskConfigsOrBuilder in interface SourceInstanceParamsOrBuilder
    • 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;
      Specified by:
      getDiskConfigsOrBuilderList in interface SourceInstanceParamsOrBuilder
    • 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;
    • addDiskConfigsBuilder

      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;
    • 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;