Class PatchDeployments.PatchDeployment

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment
All Implemented Interfaces:
PatchDeployments.PatchDeploymentOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
PatchDeployments

public static final class PatchDeployments.PatchDeployment extends com.google.protobuf.GeneratedMessage implements PatchDeployments.PatchDeploymentOrBuilder
 Patch deployments are configurations that individual patch jobs use to
 complete a patch. These configurations include instance filter, package
 repository settings, and a schedule. For more information about creating and
 managing patch deployments, see [Scheduling patch
 jobs](https://cloud.google.com/compute/docs/os-patch-management/schedule-patch-jobs).
 
Protobuf type google.cloud.osconfig.v1beta.PatchDeployment
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_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:
    • ONE_TIME_SCHEDULE_FIELD_NUMBER

      public static final int ONE_TIME_SCHEDULE_FIELD_NUMBER
      See Also:
    • RECURRING_SCHEDULE_FIELD_NUMBER

      public static final int RECURRING_SCHEDULE_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:
    • LAST_EXECUTE_TIME_FIELD_NUMBER

      public static final int LAST_EXECUTE_TIME_FIELD_NUMBER
      See Also:
    • ROLLOUT_FIELD_NUMBER

      public static final int ROLLOUT_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_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
    • getScheduleCase

      Specified by:
      getScheduleCase in interface PatchDeployments.PatchDeploymentOrBuilder
    • getName

      public String getName()
       Unique name for the patch deployment resource in a project. The patch
       deployment name is in the form:
       `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
       This field is ignored when you create a new patch deployment.
       
      string name = 1;
      Specified by:
      getName in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Unique name for the patch deployment resource in a project. The patch
       deployment name is in the form:
       `projects/{project_id}/patchDeployments/{patch_deployment_id}`.
       This field is ignored when you create a new patch deployment.
       
      string name = 1;
      Specified by:
      getNameBytes in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The bytes for name.
    • getDescription

      public String getDescription()
       Optional. Description of the patch deployment. Length of the description is limited
       to 1024 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description of the patch deployment. Length of the description is limited
       to 1024 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The bytes for description.
    • hasInstanceFilter

      public boolean hasInstanceFilter()
       Required. VM instances to patch.
       
      .google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInstanceFilter in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      Whether the instanceFilter field is set.
    • getInstanceFilter

      public PatchJobs.PatchInstanceFilter getInstanceFilter()
       Required. VM instances to patch.
       
      .google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstanceFilter in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The instanceFilter.
    • getInstanceFilterOrBuilder

      public PatchJobs.PatchInstanceFilterOrBuilder getInstanceFilterOrBuilder()
       Required. VM instances to patch.
       
      .google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstanceFilterOrBuilder in interface PatchDeployments.PatchDeploymentOrBuilder
    • hasPatchConfig

      public boolean hasPatchConfig()
       Optional. Patch configuration that is applied.
       
      .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPatchConfig in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      Whether the patchConfig field is set.
    • getPatchConfig

      public PatchJobs.PatchConfig getPatchConfig()
       Optional. Patch configuration that is applied.
       
      .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPatchConfig in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The patchConfig.
    • getPatchConfigOrBuilder

      public PatchJobs.PatchConfigOrBuilder getPatchConfigOrBuilder()
       Optional. Patch configuration that is applied.
       
      .google.cloud.osconfig.v1beta.PatchConfig patch_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPatchConfigOrBuilder in interface PatchDeployments.PatchDeploymentOrBuilder
    • hasDuration

      public boolean hasDuration()
       Optional. Duration of the patch. After the duration ends, the patch times out.
       
      .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDuration in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public com.google.protobuf.Duration getDuration()
       Optional. Duration of the patch. After the duration ends, the patch times out.
       
      .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDuration in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The duration.
    • getDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       Optional. Duration of the patch. After the duration ends, the patch times out.
       
      .google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDurationOrBuilder in interface PatchDeployments.PatchDeploymentOrBuilder
    • hasOneTimeSchedule

      public boolean hasOneTimeSchedule()
       Required. Schedule a one-time execution.
       
      .google.cloud.osconfig.v1beta.OneTimeSchedule one_time_schedule = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasOneTimeSchedule in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      Whether the oneTimeSchedule field is set.
    • getOneTimeSchedule

      public PatchDeployments.OneTimeSchedule getOneTimeSchedule()
       Required. Schedule a one-time execution.
       
      .google.cloud.osconfig.v1beta.OneTimeSchedule one_time_schedule = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOneTimeSchedule in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The oneTimeSchedule.
    • getOneTimeScheduleOrBuilder

      public PatchDeployments.OneTimeScheduleOrBuilder getOneTimeScheduleOrBuilder()
       Required. Schedule a one-time execution.
       
      .google.cloud.osconfig.v1beta.OneTimeSchedule one_time_schedule = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOneTimeScheduleOrBuilder in interface PatchDeployments.PatchDeploymentOrBuilder
    • hasRecurringSchedule

      public boolean hasRecurringSchedule()
       Required. Schedule recurring executions.
       
      .google.cloud.osconfig.v1beta.RecurringSchedule recurring_schedule = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRecurringSchedule in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      Whether the recurringSchedule field is set.
    • getRecurringSchedule

      public PatchDeployments.RecurringSchedule getRecurringSchedule()
       Required. Schedule recurring executions.
       
      .google.cloud.osconfig.v1beta.RecurringSchedule recurring_schedule = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecurringSchedule in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The recurringSchedule.
    • getRecurringScheduleOrBuilder

      public PatchDeployments.RecurringScheduleOrBuilder getRecurringScheduleOrBuilder()
       Required. Schedule recurring executions.
       
      .google.cloud.osconfig.v1beta.RecurringSchedule recurring_schedule = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecurringScheduleOrBuilder in interface PatchDeployments.PatchDeploymentOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time the patch deployment was created. Timestamp is in
       [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time the patch deployment was created. Timestamp is in
       [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time the patch deployment was created. Timestamp is in
       [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface PatchDeployments.PatchDeploymentOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Time the patch deployment was last updated. Timestamp is in
       [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Time the patch deployment was last updated. Timestamp is in
       [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Time the patch deployment was last updated. Timestamp is in
       [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface PatchDeployments.PatchDeploymentOrBuilder
    • hasLastExecuteTime

      public boolean hasLastExecuteTime()
       Output only. The last time a patch job was started by this deployment.
       Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
       format.
       
      .google.protobuf.Timestamp last_execute_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastExecuteTime in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      Whether the lastExecuteTime field is set.
    • getLastExecuteTime

      public com.google.protobuf.Timestamp getLastExecuteTime()
       Output only. The last time a patch job was started by this deployment.
       Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
       format.
       
      .google.protobuf.Timestamp last_execute_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastExecuteTime in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The lastExecuteTime.
    • getLastExecuteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastExecuteTimeOrBuilder()
       Output only. The last time a patch job was started by this deployment.
       Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text
       format.
       
      .google.protobuf.Timestamp last_execute_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastExecuteTimeOrBuilder in interface PatchDeployments.PatchDeploymentOrBuilder
    • hasRollout

      public boolean hasRollout()
       Optional. Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRollout in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      Whether the rollout field is set.
    • getRollout

      public PatchJobs.PatchRollout getRollout()
       Optional. Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRollout in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The rollout.
    • getRolloutOrBuilder

      public PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder()
       Optional. Rollout strategy of the patch job.
       
      .google.cloud.osconfig.v1beta.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolloutOrBuilder in interface PatchDeployments.PatchDeploymentOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. Current state of the patch deployment.
       
      .google.cloud.osconfig.v1beta.PatchDeployment.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

       Output only. Current state of the patch deployment.
       
      .google.cloud.osconfig.v1beta.PatchDeployment.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface PatchDeployments.PatchDeploymentOrBuilder
      Returns:
      The state.
    • 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 PatchDeployments.PatchDeployment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static PatchDeployments.PatchDeployment parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static PatchDeployments.PatchDeployment parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static PatchDeployments.PatchDeployment.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static PatchDeployments.PatchDeployment getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PatchDeployments.PatchDeployment> parser()
    • getParserForType

      public com.google.protobuf.Parser<PatchDeployments.PatchDeployment> 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 PatchDeployments.PatchDeployment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder