Class PatchJobs.ExecutePatchJobRequest.Builder

    • Method Detail

      • 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.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.GeneratedMessageV3.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

        public PatchJobs.ExecutePatchJobRequest 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
      • 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, (.google.api.resource_reference) = { ... }
        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, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface PatchJobs.ExecutePatchJobRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public PatchJobs.ExecutePatchJobRequest.Builder setParent​(String value)
         Required. The project in which to run this patch in the form `projects/*`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public PatchJobs.ExecutePatchJobRequest.Builder clearParent()
         Required. The project in which to run this patch in the form `projects/*`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        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, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • 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.v1.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasInstanceFilter in interface PatchJobs.ExecutePatchJobRequestOrBuilder
        Returns:
        Whether the instanceFilter field is set.
      • 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.v1.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.v1.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED];
      • hasPatchConfig

        public boolean hasPatchConfig()
         Patch configuration being applied. If omitted, instances are
         patched using the default configurations.
         
        .google.cloud.osconfig.v1.PatchConfig patch_config = 4;
        Specified by:
        hasPatchConfig in interface PatchJobs.ExecutePatchJobRequestOrBuilder
        Returns:
        Whether the patchConfig field is set.
      • clearPatchConfig

        public PatchJobs.ExecutePatchJobRequest.Builder clearPatchConfig()
         Patch configuration being applied. If omitted, instances are
         patched using the default configurations.
         
        .google.cloud.osconfig.v1.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.v1.PatchConfig patch_config = 4;
      • 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;
      • 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;
      • 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

        public PatchJobs.ExecutePatchJobRequest.Builder 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.
      • 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.
      • getRolloutBuilder

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