Class PatchJobs.ExecutePatchJobRequest (2.7.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.7.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   static   final   class  PatchJobs . ExecutePatchJobRequest   extends   GeneratedMessageV3   implements   PatchJobs . ExecutePatchJobRequestOrBuilder  
   A request message to initiate patching across Compute Engine instances.
 Protobuf type google.cloud.osconfig.v1beta.ExecutePatchJobRequest
Static Fields
   
  DESCRIPTION_FIELD_NUMBER 
  
    
public   static   final   int   DESCRIPTION_FIELD_NUMBER  
  Field Value 
  
  DISPLAY_NAME_FIELD_NUMBER 
  
    
public   static   final   int   DISPLAY_NAME_FIELD_NUMBER  
  Field Value 
  
  DRY_RUN_FIELD_NUMBER 
  
    
public   static   final   int   DRY_RUN_FIELD_NUMBER  
  Field Value 
  
  DURATION_FIELD_NUMBER 
  
    
public   static   final   int   DURATION_FIELD_NUMBER  
  Field Value 
  
  INSTANCE_FILTER_FIELD_NUMBER 
  
    
public   static   final   int   INSTANCE_FILTER_FIELD_NUMBER  
  Field Value 
  
  PARENT_FIELD_NUMBER 
  
    
public   static   final   int   PARENT_FIELD_NUMBER  
  Field Value 
  
  PATCH_CONFIG_FIELD_NUMBER 
  
    
public   static   final   int   PATCH_CONFIG_FIELD_NUMBER  
  Field Value 
  
  ROLLOUT_FIELD_NUMBER 
  
    
public   static   final   int   ROLLOUT_FIELD_NUMBER  
  Field Value 
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   PatchJobs . ExecutePatchJobRequest   getDefaultInstance ()  
  Returns 
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  newBuilder() 
  
    
public   static   PatchJobs . ExecutePatchJobRequest . Builder   newBuilder ()  
  Returns 
  
  newBuilder(PatchJobs.ExecutePatchJobRequest prototype) 
  
    
public   static   PatchJobs . ExecutePatchJobRequest . Builder   newBuilder ( PatchJobs . ExecutePatchJobRequest   prototype )  
  Parameter 
  
  Returns 
  
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseDelimitedFrom ( InputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(byte[] data) 
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseFrom ( byte []   data )  
  Parameter 
  
    
      
        Name Description  
      
        data byte [] 
     
  
  Returns 
  
  Exceptions 
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteString data) 
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseFrom ( ByteString   data )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseFrom ( CodedInputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseFrom ( InputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteBuffer data) 
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseFrom ( ByteBuffer   data )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   PatchJobs . ExecutePatchJobRequest   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parser() 
  
    
public   static   Parser<PatchJobs . ExecutePatchJobRequest >  parser ()  
  Returns 
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   PatchJobs . ExecutePatchJobRequest   getDefaultInstanceForType ()  
  Returns 
  
  getDescription() 
  
    
public   String   getDescription ()  
   Description of the patch job. Length of the description is limited
 to 1024 characters.
 string description = 2;
Returns 
  
    
      
        Type Description  
      
        String The description.
 
     
  
  getDescriptionBytes() 
  
    
public   ByteString   getDescriptionBytes ()  
   Description of the patch job. Length of the description is limited
 to 1024 characters.
 string description = 2;
Returns 
  
    
      
        Type Description  
      
        ByteString The bytes for description.
 
     
  
  getDisplayName() 
  
    
public   String   getDisplayName ()  
   Display name for this patch job. This does not have to be unique.
 string display_name = 8;
Returns 
  
    
      
        Type Description  
      
        String The displayName.
 
     
  
  getDisplayNameBytes() 
  
    
public   ByteString   getDisplayNameBytes ()  
   Display name for this patch job. This does not have to be unique.
 string display_name = 8;
Returns 
  
    
      
        Type Description  
      
        ByteString The bytes for displayName.
 
     
  
  getDryRun() 
  
    
public   boolean   getDryRun ()  
   If this patch is a dry-run only, instances are contacted but
 will do nothing.
 bool dry_run = 6;
Returns 
  
    
      
        Type Description  
      
        boolean The dryRun.
 
     
  
  getDuration() 
  
    
public   Duration   getDuration ()  
   Duration of the patch job. After the duration ends, the patch job
 times out.
 .google.protobuf.Duration duration = 5;
Returns 
  
  getDurationOrBuilder() 
  
    
public   DurationOrBuilder   getDurationOrBuilder ()  
   Duration of the patch job. After the duration ends, the patch job
 times out.
 .google.protobuf.Duration duration = 5;
Returns 
  
  getInstanceFilter() 
  
    
public   PatchJobs . PatchInstanceFilter   getInstanceFilter ()  
   Required. Instances to patch, either explicitly or filtered by some criteria such
 as zone or labels.
 
 .google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED];
 
Returns 
  
  getInstanceFilterOrBuilder() 
  
    
public   PatchJobs . PatchInstanceFilterOrBuilder   getInstanceFilterOrBuilder ()  
   Required. Instances to patch, either explicitly or filtered by some criteria such
 as zone or labels.
 
 .google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED];
 
Returns 
  
  getParent() 
  
    
public   String   getParent ()  
   Required. The project in which to run this patch in the form projects/*
 string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Returns 
  
    
      
        Type Description  
      
        String The parent.
 
     
  
  getParentBytes() 
  
    
public   ByteString   getParentBytes ()  
   Required. The project in which to run this patch in the form projects/*
 string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Returns 
  
  getParserForType() 
  
    
public   Parser<PatchJobs . ExecutePatchJobRequest >  getParserForType ()  
  Returns 
  
  Overrides 
  
  getPatchConfig() 
  
    
public   PatchJobs . PatchConfig   getPatchConfig ()  
   Patch configuration being applied. If omitted, instances are
 patched using the default configurations.
 .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
Returns 
  
  getPatchConfigOrBuilder() 
  
    
public   PatchJobs . PatchConfigOrBuilder   getPatchConfigOrBuilder ()  
   Patch configuration being applied. If omitted, instances are
 patched using the default configurations.
 .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
Returns 
  
  getRollout() 
  
    
public   PatchJobs . PatchRollout   getRollout ()  
   Rollout strategy of the patch job.
 .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
Returns 
  
  getRolloutOrBuilder() 
  
    
public   PatchJobs . PatchRolloutOrBuilder   getRolloutOrBuilder ()  
   Rollout strategy of the patch job.
 .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
Returns 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  Returns 
  
  Overrides 
  
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  Returns 
  
  Overrides 
  
  hasDuration() 
  
    
public   boolean   hasDuration ()  
   Duration of the patch job. After the duration ends, the patch job
 times out.
 .google.protobuf.Duration duration = 5;
Returns 
  
    
      
        Type Description  
      
        boolean Whether the duration field is set.
 
     
  
  hasInstanceFilter() 
  
    
public   boolean   hasInstanceFilter ()  
   Required. Instances to patch, either explicitly or filtered by some criteria such
 as zone or labels.
 
 .google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED];
 
Returns 
  
    
      
        Type Description  
      
        boolean Whether the instanceFilter field is set.
 
     
  
  hasPatchConfig() 
  
    
public   boolean   hasPatchConfig ()  
   Patch configuration being applied. If omitted, instances are
 patched using the default configurations.
 .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
Returns 
  
    
      
        Type Description  
      
        boolean Whether the patchConfig field is set.
 
     
  
  hasRollout() 
  
    
public   boolean   hasRollout ()  
   Rollout strategy of the patch job.
 .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
Returns 
  
    
      
        Type Description  
      
        boolean Whether the rollout field is set.
 
     
  
  hashCode() 
  
  Returns 
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  newBuilderForType() 
  
    
public   PatchJobs . ExecutePatchJobRequest . Builder   newBuilderForType ()  
  Returns 
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   PatchJobs . ExecutePatchJobRequest . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  toBuilder() 
  
    
public   PatchJobs . ExecutePatchJobRequest . Builder   toBuilder ()  
  Returns 
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-11 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-11 UTC."],[],[]]