Send feedback
  
   
 
  
    
      Class ShieldedInstanceConfig.Builder (1.76.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  ShieldedInstanceConfig . Builder   extends   GeneratedMessageV3 . Builder<ShieldedInstanceConfig . Builder >  implements   ShieldedInstanceConfigOrBuilder  
   Shielded instance configuration.
 Protobuf type google.cloud.vmmigration.v1.ShieldedInstanceConfig
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      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 ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   ShieldedInstanceConfig . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   ShieldedInstanceConfig   build ()  
  
  buildPartial() 
  
    
public   ShieldedInstanceConfig   buildPartial ()  
  
  clear() 
  
    
public   ShieldedInstanceConfig . Builder   clear ()  
  
  Overrides 
  
  clearEnableIntegrityMonitoring() 
  
    
public   ShieldedInstanceConfig . Builder   clearEnableIntegrityMonitoring ()  
   Optional. Defines whether the instance created by the machine image has
 integrity monitoring enabled. This can be set to true only if the image
 boot option is EFI, and vTPM is enabled.
 bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL];
clearEnableVtpm() 
  
    
public   ShieldedInstanceConfig . Builder   clearEnableVtpm ()  
   Optional. Defines whether the instance created by the machine image has
 vTPM enabled. This can be set to true only if the image boot option is EFI.
 bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field) 
  
    
public   ShieldedInstanceConfig . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   ShieldedInstanceConfig . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearSecureBoot() 
  
    
public   ShieldedInstanceConfig . Builder   clearSecureBoot ()  
   Optional. Defines whether the instance created by the machine image has
 Secure Boot enabled. This can be set to true only if the image boot option
 is EFI.
 
 .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL];
 
clone() 
  
    
public   ShieldedInstanceConfig . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   ShieldedInstanceConfig   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getEnableIntegrityMonitoring() 
  
    
public   boolean   getEnableIntegrityMonitoring ()  
   Optional. Defines whether the instance created by the machine image has
 integrity monitoring enabled. This can be set to true only if the image
 boot option is EFI, and vTPM is enabled.
 bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        boolean The enableIntegrityMonitoring.
 
     
  
  getEnableVtpm() 
  
    
public   boolean   getEnableVtpm ()  
   Optional. Defines whether the instance created by the machine image has
 vTPM enabled. This can be set to true only if the image boot option is EFI.
 bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        boolean The enableVtpm.
 
     
  
  getSecureBoot() 
  
    
public   ShieldedInstanceConfig . SecureBoot   getSecureBoot ()  
   Optional. Defines whether the instance created by the machine image has
 Secure Boot enabled. This can be set to true only if the image boot option
 is EFI.
 
 .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL];
 
getSecureBootValue() 
  
    
public   int   getSecureBootValue ()  
   Optional. Defines whether the instance created by the machine image has
 Secure Boot enabled. This can be set to true only if the image boot option
 is EFI.
 
 .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for secureBoot.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(ShieldedInstanceConfig other) 
  
    
public   ShieldedInstanceConfig . Builder   mergeFrom ( ShieldedInstanceConfig   other )  
  
  
  
    
public   ShieldedInstanceConfig . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   ShieldedInstanceConfig . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   ShieldedInstanceConfig . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setEnableIntegrityMonitoring(boolean value) 
  
    
public   ShieldedInstanceConfig . Builder   setEnableIntegrityMonitoring ( boolean   value )  
   Optional. Defines whether the instance created by the machine image has
 integrity monitoring enabled. This can be set to true only if the image
 boot option is EFI, and vTPM is enabled.
 bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Parameter  
      
        Name Description  
      
        valueboolean The enableIntegrityMonitoring to set.
 
     
  
  
  setEnableVtpm(boolean value) 
  
    
public   ShieldedInstanceConfig . Builder   setEnableVtpm ( boolean   value )  
   Optional. Defines whether the instance created by the machine image has
 vTPM enabled. This can be set to true only if the image boot option is EFI.
 bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Parameter  
      
        Name Description  
      
        valueboolean The enableVtpm to set.
 
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   ShieldedInstanceConfig . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   ShieldedInstanceConfig . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setSecureBoot(ShieldedInstanceConfig.SecureBoot value) 
  
    
public   ShieldedInstanceConfig . Builder   setSecureBoot ( ShieldedInstanceConfig . SecureBoot   value )  
   Optional. Defines whether the instance created by the machine image has
 Secure Boot enabled. This can be set to true only if the image boot option
 is EFI.
 
 .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL];
 
setSecureBootValue(int value) 
  
    
public   ShieldedInstanceConfig . Builder   setSecureBootValue ( int   value )  
   Optional. Defines whether the instance created by the machine image has
 Secure Boot enabled. This can be set to true only if the image boot option
 is EFI.
 
 .google.cloud.vmmigration.v1.ShieldedInstanceConfig.SecureBoot secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Parameter  
      
        Name Description  
      
        valueint The enum numeric value on the wire for secureBoot to set.
 
     
  
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   ShieldedInstanceConfig . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]