Class 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.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
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public SourceInstanceParams.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceParams.Builder>
      • setField

        public SourceInstanceParams.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceParams.Builder>
      • clearField

        public SourceInstanceParams.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceParams.Builder>
      • clearOneof

        public SourceInstanceParams.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceParams.Builder>
      • setRepeatedField

        public SourceInstanceParams.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceParams.Builder>
      • addRepeatedField

        public SourceInstanceParams.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceParams.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

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

        public final SourceInstanceParams.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceParams.Builder>
      • mergeUnknownFields

        public final SourceInstanceParams.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInstanceParams.Builder>