Class ShieldedInstanceConfig.Builder

  • All Implemented Interfaces:
    ShieldedInstanceConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ShieldedInstanceConfig

    public static final class ShieldedInstanceConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ShieldedInstanceConfig.Builder>
    implements ShieldedInstanceConfigOrBuilder
     A set of Shielded Instance options.
     See [Images using supported Shielded VM
     features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
     Not all combinations are valid.
     
    Protobuf type google.cloud.notebooks.v2.ShieldedInstanceConfig
    • 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<ShieldedInstanceConfig.Builder>
      • clear

        public ShieldedInstanceConfig.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<ShieldedInstanceConfig.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<ShieldedInstanceConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public ShieldedInstanceConfig.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<ShieldedInstanceConfig.Builder>
      • clearField

        public ShieldedInstanceConfig.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<ShieldedInstanceConfig.Builder>
      • clearOneof

        public ShieldedInstanceConfig.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<ShieldedInstanceConfig.Builder>
      • setRepeatedField

        public ShieldedInstanceConfig.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<ShieldedInstanceConfig.Builder>
      • addRepeatedField

        public ShieldedInstanceConfig.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<ShieldedInstanceConfig.Builder>
      • isInitialized

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

        public ShieldedInstanceConfig.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<ShieldedInstanceConfig.Builder>
        Throws:
        IOException
      • getEnableSecureBoot

        public boolean getEnableSecureBoot()
         Optional. Defines whether the VM instance has Secure Boot enabled.
        
         Secure Boot helps ensure that the system only runs authentic software by
         verifying the digital signature of all boot components, and halting the
         boot process if signature verification fails. Disabled by default.
         
        bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEnableSecureBoot in interface ShieldedInstanceConfigOrBuilder
        Returns:
        The enableSecureBoot.
      • setEnableSecureBoot

        public ShieldedInstanceConfig.Builder setEnableSecureBoot​(boolean value)
         Optional. Defines whether the VM instance has Secure Boot enabled.
        
         Secure Boot helps ensure that the system only runs authentic software by
         verifying the digital signature of all boot components, and halting the
         boot process if signature verification fails. Disabled by default.
         
        bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enableSecureBoot to set.
        Returns:
        This builder for chaining.
      • clearEnableSecureBoot

        public ShieldedInstanceConfig.Builder clearEnableSecureBoot()
         Optional. Defines whether the VM instance has Secure Boot enabled.
        
         Secure Boot helps ensure that the system only runs authentic software by
         verifying the digital signature of all boot components, and halting the
         boot process if signature verification fails. Disabled by default.
         
        bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getEnableVtpm

        public boolean getEnableVtpm()
         Optional. Defines whether the VM instance has the vTPM enabled. Enabled by
         default.
         
        bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEnableVtpm in interface ShieldedInstanceConfigOrBuilder
        Returns:
        The enableVtpm.
      • setEnableVtpm

        public ShieldedInstanceConfig.Builder setEnableVtpm​(boolean value)
         Optional. Defines whether the VM instance has the vTPM enabled. Enabled by
         default.
         
        bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enableVtpm to set.
        Returns:
        This builder for chaining.
      • clearEnableVtpm

        public ShieldedInstanceConfig.Builder clearEnableVtpm()
         Optional. Defines whether the VM instance has the vTPM enabled. Enabled by
         default.
         
        bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getEnableIntegrityMonitoring

        public boolean getEnableIntegrityMonitoring()
         Optional. Defines whether the VM instance has integrity monitoring enabled.
        
         Enables monitoring and attestation of the boot integrity of the VM
         instance. The attestation is performed against the integrity policy
         baseline. This baseline is initially derived from the implicitly trusted
         boot image when the VM instance is created. Enabled by default.
         
        bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEnableIntegrityMonitoring in interface ShieldedInstanceConfigOrBuilder
        Returns:
        The enableIntegrityMonitoring.
      • setEnableIntegrityMonitoring

        public ShieldedInstanceConfig.Builder setEnableIntegrityMonitoring​(boolean value)
         Optional. Defines whether the VM instance has integrity monitoring enabled.
        
         Enables monitoring and attestation of the boot integrity of the VM
         instance. The attestation is performed against the integrity policy
         baseline. This baseline is initially derived from the implicitly trusted
         boot image when the VM instance is created. Enabled by default.
         
        bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enableIntegrityMonitoring to set.
        Returns:
        This builder for chaining.
      • clearEnableIntegrityMonitoring

        public ShieldedInstanceConfig.Builder clearEnableIntegrityMonitoring()
         Optional. Defines whether the VM instance has integrity monitoring enabled.
        
         Enables monitoring and attestation of the boot integrity of the VM
         instance. The attestation is performed against the integrity policy
         baseline. This baseline is initially derived from the implicitly trusted
         boot image when the VM instance is created. Enabled by default.
         
        bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ShieldedInstanceConfig.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<ShieldedInstanceConfig.Builder>
      • mergeUnknownFields

        public final ShieldedInstanceConfig.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<ShieldedInstanceConfig.Builder>