Class PatchJobs.ExecutePatchJobRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
com.google.cloud.osconfig.v1beta.PatchJobs.ExecutePatchJobRequest.Builder
All Implemented Interfaces:
PatchJobs.ExecutePatchJobRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PatchJobs.ExecutePatchJobRequest

public static final class PatchJobs.ExecutePatchJobRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder> implements PatchJobs.ExecutePatchJobRequestOrBuilder
 A request message to initiate patching across Compute Engine instances.
 
Protobuf type google.cloud.osconfig.v1beta.ExecutePatchJobRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.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.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.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.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PatchJobs.ExecutePatchJobRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PatchJobs.ExecutePatchJobRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public PatchJobs.ExecutePatchJobRequest.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<PatchJobs.ExecutePatchJobRequest.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getParent in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The project in which to run this patch in the form `projects/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentBytes in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The project in which to run this patch in the form `projects/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The project in which to run this patch in the form `projects/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setParentBytes

      public PatchJobs.ExecutePatchJobRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project in which to run this patch in the form `projects/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Description of the patch job. Length of the description is limited
       to 1024 characters.
       
      string description = 2;
      Specified by:
      getDescription in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Description of the patch job. Length of the description is limited
       to 1024 characters.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public PatchJobs.ExecutePatchJobRequest.Builder setDescription(String value)
       Description of the patch job. Length of the description is limited
       to 1024 characters.
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public PatchJobs.ExecutePatchJobRequest.Builder clearDescription()
       Description of the patch job. Length of the description is limited
       to 1024 characters.
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public PatchJobs.ExecutePatchJobRequest.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Description of the patch job. Length of the description is limited
       to 1024 characters.
       
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasInstanceFilter in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      Whether the instanceFilter field is set.
    • 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];
      Specified by:
      getInstanceFilter in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The instanceFilter.
    • setInstanceFilter

       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];
    • setInstanceFilter

       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];
    • mergeInstanceFilter

       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];
    • clearInstanceFilter

      public PatchJobs.ExecutePatchJobRequest.Builder clearInstanceFilter()
       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];
    • getInstanceFilterBuilder

      public PatchJobs.PatchInstanceFilter.Builder getInstanceFilterBuilder()
       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];
    • 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];
      Specified by:
      getInstanceFilterOrBuilder in interface PatchJobs.ExecutePatchJobRequestOrBuilder
    • 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;
      Specified by:
      hasPatchConfig in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      Whether the patchConfig field is set.
    • 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;
      Specified by:
      getPatchConfig in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The patchConfig.
    • setPatchConfig

       Patch configuration being applied. If omitted, instances are
       patched using the default configurations.
       
      .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
    • setPatchConfig

       Patch configuration being applied. If omitted, instances are
       patched using the default configurations.
       
      .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
    • mergePatchConfig

       Patch configuration being applied. If omitted, instances are
       patched using the default configurations.
       
      .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
    • clearPatchConfig

      public PatchJobs.ExecutePatchJobRequest.Builder clearPatchConfig()
       Patch configuration being applied. If omitted, instances are
       patched using the default configurations.
       
      .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
    • getPatchConfigBuilder

      public PatchJobs.PatchConfig.Builder getPatchConfigBuilder()
       Patch configuration being applied. If omitted, instances are
       patched using the default configurations.
       
      .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
    • 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;
      Specified by:
      getPatchConfigOrBuilder in interface PatchJobs.ExecutePatchJobRequestOrBuilder
    • hasDuration

      public boolean hasDuration()
       Duration of the patch job. After the duration ends, the patch job
       times out.
       
      .google.protobuf.Duration duration = 5;
      Specified by:
      hasDuration in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public com.google.protobuf.Duration getDuration()
       Duration of the patch job. After the duration ends, the patch job
       times out.
       
      .google.protobuf.Duration duration = 5;
      Specified by:
      getDuration in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The duration.
    • setDuration

      public PatchJobs.ExecutePatchJobRequest.Builder setDuration(com.google.protobuf.Duration value)
       Duration of the patch job. After the duration ends, the patch job
       times out.
       
      .google.protobuf.Duration duration = 5;
    • setDuration

      public PatchJobs.ExecutePatchJobRequest.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
       Duration of the patch job. After the duration ends, the patch job
       times out.
       
      .google.protobuf.Duration duration = 5;
    • mergeDuration

      public PatchJobs.ExecutePatchJobRequest.Builder mergeDuration(com.google.protobuf.Duration value)
       Duration of the patch job. After the duration ends, the patch job
       times out.
       
      .google.protobuf.Duration duration = 5;
    • clearDuration

       Duration of the patch job. After the duration ends, the patch job
       times out.
       
      .google.protobuf.Duration duration = 5;
    • getDurationBuilder

      public com.google.protobuf.Duration.Builder getDurationBuilder()
       Duration of the patch job. After the duration ends, the patch job
       times out.
       
      .google.protobuf.Duration duration = 5;
    • getDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       Duration of the patch job. After the duration ends, the patch job
       times out.
       
      .google.protobuf.Duration duration = 5;
      Specified by:
      getDurationOrBuilder in interface PatchJobs.ExecutePatchJobRequestOrBuilder
    • getDryRun

      public boolean getDryRun()
       If this patch is a dry-run only, instances are contacted but
       will do nothing.
       
      bool dry_run = 6;
      Specified by:
      getDryRun in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The dryRun.
    • setDryRun

      public PatchJobs.ExecutePatchJobRequest.Builder setDryRun(boolean value)
       If this patch is a dry-run only, instances are contacted but
       will do nothing.
       
      bool dry_run = 6;
      Parameters:
      value - The dryRun to set.
      Returns:
      This builder for chaining.
    • clearDryRun

       If this patch is a dry-run only, instances are contacted but
       will do nothing.
       
      bool dry_run = 6;
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Display name for this patch job. This does not have to be unique.
       
      string display_name = 8;
      Specified by:
      getDisplayName in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Display name for this patch job. This does not have to be unique.
       
      string display_name = 8;
      Specified by:
      getDisplayNameBytes in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public PatchJobs.ExecutePatchJobRequest.Builder setDisplayName(String value)
       Display name for this patch job. This does not have to be unique.
       
      string display_name = 8;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public PatchJobs.ExecutePatchJobRequest.Builder clearDisplayName()
       Display name for this patch job. This does not have to be unique.
       
      string display_name = 8;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public PatchJobs.ExecutePatchJobRequest.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Display name for this patch job. This does not have to be unique.
       
      string display_name = 8;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasRollout

      public boolean hasRollout()
       Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
      Specified by:
      hasRollout in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      Whether the rollout field is set.
    • getRollout

      public PatchJobs.PatchRollout getRollout()
       Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
      Specified by:
      getRollout in interface PatchJobs.ExecutePatchJobRequestOrBuilder
      Returns:
      The rollout.
    • setRollout

       Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
    • setRollout

       Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
    • mergeRollout

       Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
    • clearRollout

       Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
    • getRolloutBuilder

      public PatchJobs.PatchRollout.Builder getRolloutBuilder()
       Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
    • getRolloutOrBuilder

      public PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder()
       Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
      Specified by:
      getRolloutOrBuilder in interface PatchJobs.ExecutePatchJobRequestOrBuilder