Class 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.GeneratedMessageV3
    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.v1.PatchDeployment
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.v1.PatchInstanceFilter instance_filter = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasInstanceFilter in interface PatchDeployments.PatchDeploymentOrBuilder
        Returns:
        Whether the instanceFilter field is set.
      • hasPatchConfig

        public boolean hasPatchConfig()
         Optional. Patch configuration that is applied.
         
        .google.cloud.osconfig.v1.PatchConfig patch_config = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasPatchConfig in interface PatchDeployments.PatchDeploymentOrBuilder
        Returns:
        Whether the patchConfig field is set.
      • 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.v1.OneTimeSchedule one_time_schedule = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasOneTimeSchedule in interface PatchDeployments.PatchDeploymentOrBuilder
        Returns:
        Whether the oneTimeSchedule field is set.
      • hasRecurringSchedule

        public boolean hasRecurringSchedule()
         Required. Schedule recurring executions.
         
        .google.cloud.osconfig.v1.RecurringSchedule recurring_schedule = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasRecurringSchedule in interface PatchDeployments.PatchDeploymentOrBuilder
        Returns:
        Whether the recurringSchedule field is set.
      • 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.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasRollout in interface PatchDeployments.PatchDeploymentOrBuilder
        Returns:
        Whether the rollout field is set.
      • getStateValue

        public int getStateValue()
         Output only. Current state of the patch deployment.
         
        .google.cloud.osconfig.v1.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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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,
                                                                 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
      • newBuilderForType

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

        public PatchDeployments.PatchDeployment.Builder 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

        public PatchDeployments.PatchDeployment getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder