Class ProtectConfig.Builder (2.9.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 2.9.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  ProtectConfig . Builder   extends   GeneratedMessageV3 . Builder<ProtectConfig . Builder >  implements   ProtectConfigOrBuilder  
   
   ProtectConfig defines the flags needed to enable/disable features for the
 Protect API.
 Protobuf type google.container.v1beta1.ProtectConfig
 
  
  
  
    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
   
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   ProtectConfig . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  build() 
  
    
public   ProtectConfig   build ()  
   
  Returns 
  
   
  buildPartial() 
  
    
public   ProtectConfig   buildPartial ()  
   
  Returns 
  
   
  clear() 
  
    
public   ProtectConfig . Builder   clear ()  
   
  Returns 
  
  Overrides 
  
   
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   ProtectConfig . Builder   clearField ( Descriptors . FieldDescriptor   field )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   ProtectConfig . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  clearWorkloadConfig() 
  
    
public   ProtectConfig . Builder   clearWorkloadConfig ()  
   
   WorkloadConfig defines which actions are enabled for a cluster's workload
 configurations.
 optional .google.container.v1beta1.WorkloadConfig workload_config = 1;
 
  Returns 
  
   
  clearWorkloadVulnerabilityMode() 
  
    
public   ProtectConfig . Builder   clearWorkloadVulnerabilityMode ()  
   
   Sets which mode to use for Protect workload vulnerability scanning feature.
 
 optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;
 
 
  Returns 
  
   
  clone() 
  
    
public   ProtectConfig . Builder   clone ()  
   
  Returns 
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   ProtectConfig   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
   
  Returns 
  
  Overrides 
  
   
  getWorkloadConfig() 
  
    
public   WorkloadConfig   getWorkloadConfig ()  
   
   WorkloadConfig defines which actions are enabled for a cluster's workload
 configurations.
 optional .google.container.v1beta1.WorkloadConfig workload_config = 1;
 
  Returns 
  
   
  getWorkloadConfigBuilder() 
  
    
public   WorkloadConfig . Builder   getWorkloadConfigBuilder ()  
   
   WorkloadConfig defines which actions are enabled for a cluster's workload
 configurations.
 optional .google.container.v1beta1.WorkloadConfig workload_config = 1;
 
  Returns 
  
   
  getWorkloadConfigOrBuilder() 
  
    
public   WorkloadConfigOrBuilder   getWorkloadConfigOrBuilder ()  
   
   WorkloadConfig defines which actions are enabled for a cluster's workload
 configurations.
 optional .google.container.v1beta1.WorkloadConfig workload_config = 1;
 
  Returns 
  
   
  getWorkloadVulnerabilityMode() 
  
    
public   ProtectConfig . WorkloadVulnerabilityMode   getWorkloadVulnerabilityMode ()  
   
   Sets which mode to use for Protect workload vulnerability scanning feature.
 
 optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;
 
 
  Returns 
  
   
  getWorkloadVulnerabilityModeValue() 
  
    
public   int   getWorkloadVulnerabilityModeValue ()  
   
   Sets which mode to use for Protect workload vulnerability scanning feature.
 
 optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;
 
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        int  
        The enum numeric value on the wire for workloadVulnerabilityMode.
 
       
     
  
   
  hasWorkloadConfig() 
  
    
public   boolean   hasWorkloadConfig ()  
   
   WorkloadConfig defines which actions are enabled for a cluster's workload
 configurations.
 optional .google.container.v1beta1.WorkloadConfig workload_config = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the workloadConfig field is set.
 
       
     
  
   
  hasWorkloadVulnerabilityMode() 
  
    
public   boolean   hasWorkloadVulnerabilityMode ()  
   
   Sets which mode to use for Protect workload vulnerability scanning feature.
 
 optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;
 
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the workloadVulnerabilityMode field is set.
 
       
     
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  mergeFrom(ProtectConfig other) 
  
    
public   ProtectConfig . Builder   mergeFrom ( ProtectConfig   other )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   ProtectConfig . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
   
  mergeFrom(Message other) 
  
    
public   ProtectConfig . Builder   mergeFrom ( Message   other )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   ProtectConfig . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  mergeWorkloadConfig(WorkloadConfig value) 
  
    
public   ProtectConfig . Builder   mergeWorkloadConfig ( WorkloadConfig   value )  
   
   WorkloadConfig defines which actions are enabled for a cluster's workload
 configurations.
 optional .google.container.v1beta1.WorkloadConfig workload_config = 1;
 
  Parameter 
  
  Returns 
  
   
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   ProtectConfig . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   ProtectConfig . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
   
  Parameters 
  
  Returns 
  
  Overrides 
  
   
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   ProtectConfig . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  setWorkloadConfig(WorkloadConfig value) 
  
    
public   ProtectConfig . Builder   setWorkloadConfig ( WorkloadConfig   value )  
   
   WorkloadConfig defines which actions are enabled for a cluster's workload
 configurations.
 optional .google.container.v1beta1.WorkloadConfig workload_config = 1;
 
  Parameter 
  
  Returns 
  
   
  setWorkloadConfig(WorkloadConfig.Builder builderForValue) 
  
    
public   ProtectConfig . Builder   setWorkloadConfig ( WorkloadConfig . Builder   builderForValue )  
   
   WorkloadConfig defines which actions are enabled for a cluster's workload
 configurations.
 optional .google.container.v1beta1.WorkloadConfig workload_config = 1;
 
  Parameter 
  
  Returns 
  
   
  setWorkloadVulnerabilityMode(ProtectConfig.WorkloadVulnerabilityMode value) 
  
    
public   ProtectConfig . Builder   setWorkloadVulnerabilityMode ( ProtectConfig . WorkloadVulnerabilityMode   value )  
   
   Sets which mode to use for Protect workload vulnerability scanning feature.
 
 optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;
 
 
  Parameter 
  
  Returns 
  
   
  setWorkloadVulnerabilityModeValue(int value) 
  
    
public   ProtectConfig . Builder   setWorkloadVulnerabilityModeValue ( int   value )  
   
   Sets which mode to use for Protect workload vulnerability scanning feature.
 
 optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2;
 
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        value  
        int The enum numeric value on the wire for workloadVulnerabilityMode to set.
 
       
     
  
  Returns 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  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-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]