Class PatchJobs.PatchJob

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

public static final class PatchJobs.PatchJob extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • INSTANCE_FILTER_FIELD_NUMBER

      public static final int INSTANCE_FILTER_FIELD_NUMBER
      See Also:
    • PATCH_CONFIG_FIELD_NUMBER

      public static final int PATCH_CONFIG_FIELD_NUMBER
      See Also:
    • DURATION_FIELD_NUMBER

      public static final int DURATION_FIELD_NUMBER
      See Also:
    • INSTANCE_DETAILS_SUMMARY_FIELD_NUMBER

      public static final int INSTANCE_DETAILS_SUMMARY_FIELD_NUMBER
      See Also:
    • DRY_RUN_FIELD_NUMBER

      public static final int DRY_RUN_FIELD_NUMBER
      See Also:
    • ERROR_MESSAGE_FIELD_NUMBER

      public static final int ERROR_MESSAGE_FIELD_NUMBER
      See Also:
    • PERCENT_COMPLETE_FIELD_NUMBER

      public static final int PERCENT_COMPLETE_FIELD_NUMBER
      See Also:
    • PATCH_DEPLOYMENT_FIELD_NUMBER

      public static final int PATCH_DEPLOYMENT_FIELD_NUMBER
      See Also:
    • ROLLOUT_FIELD_NUMBER

      public static final int ROLLOUT_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • getRolloutOrBuilder

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PatchJobs.PatchJob parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchJob parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchJob parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchJob parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchJob parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PatchJobs.PatchJob parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PatchJobs.PatchJob parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PatchJobs.PatchJob parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PatchJobs.PatchJob parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PatchJobs.PatchJob parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static PatchJobs.PatchJob.Builder newBuilder()
    • newBuilder

      public static PatchJobs.PatchJob.Builder newBuilder(PatchJobs.PatchJob prototype)
    • toBuilder

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

      protected PatchJobs.PatchJob.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static PatchJobs.PatchJob getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PatchJobs.PatchJob> parser()
    • getParserForType

      public com.google.protobuf.Parser<PatchJobs.PatchJob> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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