Class PatchJobs.PatchJob.Builder

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

public static final class PatchJobs.PatchJob.Builder extends com.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchJob.Builder> implements PatchJobs.PatchJobOrBuilder
 A high level representation of a patch job that is either in progress
 or has completed.

 Instance details are not included in the job. To paginate through instance
 details, use ListPatchJobInstanceDetails.

 For more information about patch jobs, see
 [Creating patch
 jobs](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
 
Protobuf type google.cloud.osconfig.v1.PatchJob
  • 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.PatchJob.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.PatchJob.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.PatchJob.Builder>
    • getDefaultInstanceForType

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

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

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

      public PatchJobs.PatchJob.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.PatchJob.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.PatchJob.Builder>
    • mergeFrom

      public PatchJobs.PatchJob.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.PatchJob.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Unique identifier for this patch job in the form
       `projects/*/patchJobs/*`
       
      string name = 1;
      Specified by:
      getName in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Unique identifier for this patch job in the form
       `projects/*/patchJobs/*`
       
      string name = 1;
      Specified by:
      getNameBytes in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PatchJobs.PatchJob.Builder setName(String value)
       Unique identifier for this patch job in the form
       `projects/*/patchJobs/*`
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public PatchJobs.PatchJob.Builder clearName()
       Unique identifier for this patch job in the form
       `projects/*/patchJobs/*`
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public PatchJobs.PatchJob.Builder setNameBytes(com.google.protobuf.ByteString value)
       Unique identifier for this patch job in the form
       `projects/*/patchJobs/*`
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Display name for this patch job. This is not a unique identifier.
       
      string display_name = 14;
      Specified by:
      getDisplayName in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Display name for this patch job. This is not a unique identifier.
       
      string display_name = 14;
      Specified by:
      getDisplayNameBytes in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public PatchJobs.PatchJob.Builder setDisplayName(String value)
       Display name for this patch job. This is not a unique identifier.
       
      string display_name = 14;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public PatchJobs.PatchJob.Builder clearDisplayName()
       Display name for this patch job. This is not a unique identifier.
       
      string display_name = 14;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public PatchJobs.PatchJob.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Display name for this patch job. This is not a unique identifier.
       
      string display_name = 14;
      Parameters:
      value - The bytes for displayName 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.PatchJobOrBuilder
      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.PatchJobOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public PatchJobs.PatchJob.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.PatchJob.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.PatchJob.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.
    • hasCreateTime

      public boolean hasCreateTime()
       Time this patch job was created.
       
      .google.protobuf.Timestamp create_time = 3;
      Specified by:
      hasCreateTime in interface PatchJobs.PatchJobOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Time this patch job was created.
       
      .google.protobuf.Timestamp create_time = 3;
      Specified by:
      getCreateTime in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public PatchJobs.PatchJob.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Time this patch job was created.
       
      .google.protobuf.Timestamp create_time = 3;
    • setCreateTime

      public PatchJobs.PatchJob.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time this patch job was created.
       
      .google.protobuf.Timestamp create_time = 3;
    • mergeCreateTime

      public PatchJobs.PatchJob.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Time this patch job was created.
       
      .google.protobuf.Timestamp create_time = 3;
    • clearCreateTime

      public PatchJobs.PatchJob.Builder clearCreateTime()
       Time this patch job was created.
       
      .google.protobuf.Timestamp create_time = 3;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Time this patch job was created.
       
      .google.protobuf.Timestamp create_time = 3;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Time this patch job was created.
       
      .google.protobuf.Timestamp create_time = 3;
      Specified by:
      getCreateTimeOrBuilder in interface PatchJobs.PatchJobOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Last time this patch job was updated.
       
      .google.protobuf.Timestamp update_time = 4;
      Specified by:
      hasUpdateTime in interface PatchJobs.PatchJobOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Last time this patch job was updated.
       
      .google.protobuf.Timestamp update_time = 4;
      Specified by:
      getUpdateTime in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public PatchJobs.PatchJob.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Last time this patch job was updated.
       
      .google.protobuf.Timestamp update_time = 4;
    • setUpdateTime

      public PatchJobs.PatchJob.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Last time this patch job was updated.
       
      .google.protobuf.Timestamp update_time = 4;
    • mergeUpdateTime

      public PatchJobs.PatchJob.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Last time this patch job was updated.
       
      .google.protobuf.Timestamp update_time = 4;
    • clearUpdateTime

      public PatchJobs.PatchJob.Builder clearUpdateTime()
       Last time this patch job was updated.
       
      .google.protobuf.Timestamp update_time = 4;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Last time this patch job was updated.
       
      .google.protobuf.Timestamp update_time = 4;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Last time this patch job was updated.
       
      .google.protobuf.Timestamp update_time = 4;
      Specified by:
      getUpdateTimeOrBuilder in interface PatchJobs.PatchJobOrBuilder
    • getStateValue

      public int getStateValue()
       The current state of the PatchJob.
       
      .google.cloud.osconfig.v1.PatchJob.State state = 5;
      Specified by:
      getStateValue in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public PatchJobs.PatchJob.Builder setStateValue(int value)
       The current state of the PatchJob.
       
      .google.cloud.osconfig.v1.PatchJob.State state = 5;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public PatchJobs.PatchJob.State getState()
       The current state of the PatchJob.
       
      .google.cloud.osconfig.v1.PatchJob.State state = 5;
      Specified by:
      getState in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The state.
    • setState

       The current state of the PatchJob.
       
      .google.cloud.osconfig.v1.PatchJob.State state = 5;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public PatchJobs.PatchJob.Builder clearState()
       The current state of the PatchJob.
       
      .google.cloud.osconfig.v1.PatchJob.State state = 5;
      Returns:
      This builder for chaining.
    • hasInstanceFilter

      public boolean hasInstanceFilter()
       Instances to patch.
       
      .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;
      Specified by:
      hasInstanceFilter in interface PatchJobs.PatchJobOrBuilder
      Returns:
      Whether the instanceFilter field is set.
    • getInstanceFilter

      public PatchJobs.PatchInstanceFilter getInstanceFilter()
       Instances to patch.
       
      .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;
      Specified by:
      getInstanceFilter in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The instanceFilter.
    • setInstanceFilter

       Instances to patch.
       
      .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;
    • setInstanceFilter

      public PatchJobs.PatchJob.Builder setInstanceFilter(PatchJobs.PatchInstanceFilter.Builder builderForValue)
       Instances to patch.
       
      .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;
    • mergeInstanceFilter

      public PatchJobs.PatchJob.Builder mergeInstanceFilter(PatchJobs.PatchInstanceFilter value)
       Instances to patch.
       
      .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;
    • clearInstanceFilter

      public PatchJobs.PatchJob.Builder clearInstanceFilter()
       Instances to patch.
       
      .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;
    • getInstanceFilterBuilder

      public PatchJobs.PatchInstanceFilter.Builder getInstanceFilterBuilder()
       Instances to patch.
       
      .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;
    • getInstanceFilterOrBuilder

      public PatchJobs.PatchInstanceFilterOrBuilder getInstanceFilterOrBuilder()
       Instances to patch.
       
      .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;
      Specified by:
      getInstanceFilterOrBuilder in interface PatchJobs.PatchJobOrBuilder
    • hasPatchConfig

      public boolean hasPatchConfig()
       Patch configuration being applied.
       
      .google.cloud.osconfig.v1.PatchConfig patch_config = 7;
      Specified by:
      hasPatchConfig in interface PatchJobs.PatchJobOrBuilder
      Returns:
      Whether the patchConfig field is set.
    • getPatchConfig

      public PatchJobs.PatchConfig getPatchConfig()
       Patch configuration being applied.
       
      .google.cloud.osconfig.v1.PatchConfig patch_config = 7;
      Specified by:
      getPatchConfig in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The patchConfig.
    • setPatchConfig

      public PatchJobs.PatchJob.Builder setPatchConfig(PatchJobs.PatchConfig value)
       Patch configuration being applied.
       
      .google.cloud.osconfig.v1.PatchConfig patch_config = 7;
    • setPatchConfig

      public PatchJobs.PatchJob.Builder setPatchConfig(PatchJobs.PatchConfig.Builder builderForValue)
       Patch configuration being applied.
       
      .google.cloud.osconfig.v1.PatchConfig patch_config = 7;
    • mergePatchConfig

      public PatchJobs.PatchJob.Builder mergePatchConfig(PatchJobs.PatchConfig value)
       Patch configuration being applied.
       
      .google.cloud.osconfig.v1.PatchConfig patch_config = 7;
    • clearPatchConfig

      public PatchJobs.PatchJob.Builder clearPatchConfig()
       Patch configuration being applied.
       
      .google.cloud.osconfig.v1.PatchConfig patch_config = 7;
    • getPatchConfigBuilder

      public PatchJobs.PatchConfig.Builder getPatchConfigBuilder()
       Patch configuration being applied.
       
      .google.cloud.osconfig.v1.PatchConfig patch_config = 7;
    • getPatchConfigOrBuilder

      public PatchJobs.PatchConfigOrBuilder getPatchConfigOrBuilder()
       Patch configuration being applied.
       
      .google.cloud.osconfig.v1.PatchConfig patch_config = 7;
      Specified by:
      getPatchConfigOrBuilder in interface PatchJobs.PatchJobOrBuilder
    • hasDuration

      public boolean hasDuration()
       Duration of the patch job. After the duration ends, the
       patch job times out.
       
      .google.protobuf.Duration duration = 8;
      Specified by:
      hasDuration in interface PatchJobs.PatchJobOrBuilder
      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 = 8;
      Specified by:
      getDuration in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The duration.
    • setDuration

      public PatchJobs.PatchJob.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 = 8;
    • setDuration

      public PatchJobs.PatchJob.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 = 8;
    • mergeDuration

      public PatchJobs.PatchJob.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 = 8;
    • clearDuration

      public PatchJobs.PatchJob.Builder clearDuration()
       Duration of the patch job. After the duration ends, the
       patch job times out.
       
      .google.protobuf.Duration duration = 8;
    • 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 = 8;
    • 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 = 8;
      Specified by:
      getDurationOrBuilder in interface PatchJobs.PatchJobOrBuilder
    • hasInstanceDetailsSummary

      public boolean hasInstanceDetailsSummary()
       Summary of instance details.
       
      .google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
      Specified by:
      hasInstanceDetailsSummary in interface PatchJobs.PatchJobOrBuilder
      Returns:
      Whether the instanceDetailsSummary field is set.
    • getInstanceDetailsSummary

      public PatchJobs.PatchJob.InstanceDetailsSummary getInstanceDetailsSummary()
       Summary of instance details.
       
      .google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
      Specified by:
      getInstanceDetailsSummary in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The instanceDetailsSummary.
    • setInstanceDetailsSummary

       Summary of instance details.
       
      .google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
    • setInstanceDetailsSummary

      public PatchJobs.PatchJob.Builder setInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary.Builder builderForValue)
       Summary of instance details.
       
      .google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
    • mergeInstanceDetailsSummary

      public PatchJobs.PatchJob.Builder mergeInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary value)
       Summary of instance details.
       
      .google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
    • clearInstanceDetailsSummary

      public PatchJobs.PatchJob.Builder clearInstanceDetailsSummary()
       Summary of instance details.
       
      .google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
    • getInstanceDetailsSummaryBuilder

      public PatchJobs.PatchJob.InstanceDetailsSummary.Builder getInstanceDetailsSummaryBuilder()
       Summary of instance details.
       
      .google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
    • getInstanceDetailsSummaryOrBuilder

      public PatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder getInstanceDetailsSummaryOrBuilder()
       Summary of instance details.
       
      .google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
      Specified by:
      getInstanceDetailsSummaryOrBuilder in interface PatchJobs.PatchJobOrBuilder
    • getDryRun

      public boolean getDryRun()
       If this patch job is a dry run, the agent reports that it has
       finished without running any updates on the VM instance.
       
      bool dry_run = 10;
      Specified by:
      getDryRun in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The dryRun.
    • setDryRun

      public PatchJobs.PatchJob.Builder setDryRun(boolean value)
       If this patch job is a dry run, the agent reports that it has
       finished without running any updates on the VM instance.
       
      bool dry_run = 10;
      Parameters:
      value - The dryRun to set.
      Returns:
      This builder for chaining.
    • clearDryRun

      public PatchJobs.PatchJob.Builder clearDryRun()
       If this patch job is a dry run, the agent reports that it has
       finished without running any updates on the VM instance.
       
      bool dry_run = 10;
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
       If this patch job failed, this message provides information about the
       failure.
       
      string error_message = 11;
      Specified by:
      getErrorMessage in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       If this patch job failed, this message provides information about the
       failure.
       
      string error_message = 11;
      Specified by:
      getErrorMessageBytes in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public PatchJobs.PatchJob.Builder setErrorMessage(String value)
       If this patch job failed, this message provides information about the
       failure.
       
      string error_message = 11;
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public PatchJobs.PatchJob.Builder clearErrorMessage()
       If this patch job failed, this message provides information about the
       failure.
       
      string error_message = 11;
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public PatchJobs.PatchJob.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
       If this patch job failed, this message provides information about the
       failure.
       
      string error_message = 11;
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.
    • getPercentComplete

      public double getPercentComplete()
       Reflects the overall progress of the patch job in the range of
       0.0 being no progress to 100.0 being complete.
       
      double percent_complete = 12;
      Specified by:
      getPercentComplete in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The percentComplete.
    • setPercentComplete

      public PatchJobs.PatchJob.Builder setPercentComplete(double value)
       Reflects the overall progress of the patch job in the range of
       0.0 being no progress to 100.0 being complete.
       
      double percent_complete = 12;
      Parameters:
      value - The percentComplete to set.
      Returns:
      This builder for chaining.
    • clearPercentComplete

      public PatchJobs.PatchJob.Builder clearPercentComplete()
       Reflects the overall progress of the patch job in the range of
       0.0 being no progress to 100.0 being complete.
       
      double percent_complete = 12;
      Returns:
      This builder for chaining.
    • getPatchDeployment

      public String getPatchDeployment()
       Output only. Name of the patch deployment that created this patch job.
       
      string patch_deployment = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getPatchDeployment in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The patchDeployment.
    • getPatchDeploymentBytes

      public com.google.protobuf.ByteString getPatchDeploymentBytes()
       Output only. Name of the patch deployment that created this patch job.
       
      string patch_deployment = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getPatchDeploymentBytes in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The bytes for patchDeployment.
    • setPatchDeployment

      public PatchJobs.PatchJob.Builder setPatchDeployment(String value)
       Output only. Name of the patch deployment that created this patch job.
       
      string patch_deployment = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The patchDeployment to set.
      Returns:
      This builder for chaining.
    • clearPatchDeployment

      public PatchJobs.PatchJob.Builder clearPatchDeployment()
       Output only. Name of the patch deployment that created this patch job.
       
      string patch_deployment = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setPatchDeploymentBytes

      public PatchJobs.PatchJob.Builder setPatchDeploymentBytes(com.google.protobuf.ByteString value)
       Output only. Name of the patch deployment that created this patch job.
       
      string patch_deployment = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for patchDeployment to set.
      Returns:
      This builder for chaining.
    • hasRollout

      public boolean hasRollout()
       Rollout strategy being applied.
       
      .google.cloud.osconfig.v1.PatchRollout rollout = 16;
      Specified by:
      hasRollout in interface PatchJobs.PatchJobOrBuilder
      Returns:
      Whether the rollout field is set.
    • getRollout

      public PatchJobs.PatchRollout getRollout()
       Rollout strategy being applied.
       
      .google.cloud.osconfig.v1.PatchRollout rollout = 16;
      Specified by:
      getRollout in interface PatchJobs.PatchJobOrBuilder
      Returns:
      The rollout.
    • setRollout

       Rollout strategy being applied.
       
      .google.cloud.osconfig.v1.PatchRollout rollout = 16;
    • setRollout

      public PatchJobs.PatchJob.Builder setRollout(PatchJobs.PatchRollout.Builder builderForValue)
       Rollout strategy being applied.
       
      .google.cloud.osconfig.v1.PatchRollout rollout = 16;
    • mergeRollout

       Rollout strategy being applied.
       
      .google.cloud.osconfig.v1.PatchRollout rollout = 16;
    • clearRollout

      public PatchJobs.PatchJob.Builder clearRollout()
       Rollout strategy being applied.
       
      .google.cloud.osconfig.v1.PatchRollout rollout = 16;
    • getRolloutBuilder

      public PatchJobs.PatchRollout.Builder getRolloutBuilder()
       Rollout strategy being applied.
       
      .google.cloud.osconfig.v1.PatchRollout rollout = 16;
    • getRolloutOrBuilder

      public PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder()
       Rollout strategy being applied.
       
      .google.cloud.osconfig.v1.PatchRollout rollout = 16;
      Specified by:
      getRolloutOrBuilder in interface PatchJobs.PatchJobOrBuilder