Class PatchDeployments.PatchDeployment.Builder

public static final class PatchDeployments.PatchDeployment.Builder extends GeneratedMessageV3.Builder<PatchDeployments.PatchDeployment.Builder> 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.

Protobuf type google.cloud.osconfig.v1.PatchDeployment

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PatchDeployments.PatchDeployment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder
Overrides

build()

public PatchDeployments.PatchDeployment build()
Returns
TypeDescription
PatchDeployments.PatchDeployment

buildPartial()

public PatchDeployments.PatchDeployment buildPartial()
Returns
TypeDescription
PatchDeployments.PatchDeployment

clear()

public PatchDeployments.PatchDeployment.Builder clear()
Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder
Overrides

clearCreateTime()

public PatchDeployments.PatchDeployment.Builder clearCreateTime()

Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

clearDescription()

public PatchDeployments.PatchDeployment.Builder clearDescription()

Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

This builder for chaining.

clearDuration()

public PatchDeployments.PatchDeployment.Builder clearDuration()

Optional. Duration of the patch. After the duration ends, the patch times out.

.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

clearField(Descriptors.FieldDescriptor field)

public PatchDeployments.PatchDeployment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder
Overrides

clearInstanceFilter()

public PatchDeployments.PatchDeployment.Builder clearInstanceFilter()

Required. VM instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

clearLastExecuteTime()

public PatchDeployments.PatchDeployment.Builder clearLastExecuteTime()

Output only. The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp last_execute_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

clearName()

public PatchDeployments.PatchDeployment.Builder clearName()

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;

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

This builder for chaining.

clearOneTimeSchedule()

public PatchDeployments.PatchDeployment.Builder clearOneTimeSchedule()

Required. Schedule a one-time execution.

.google.cloud.osconfig.v1.OneTimeSchedule one_time_schedule = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PatchDeployments.PatchDeployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder
Overrides

clearPatchConfig()

public PatchDeployments.PatchDeployment.Builder clearPatchConfig()

Optional. Patch configuration that is applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

clearRecurringSchedule()

public PatchDeployments.PatchDeployment.Builder clearRecurringSchedule()

Required. Schedule recurring executions.

.google.cloud.osconfig.v1.RecurringSchedule recurring_schedule = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

clearRollout()

public PatchDeployments.PatchDeployment.Builder clearRollout()

Optional. Rollout strategy of the patch job.

.google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

clearSchedule()

public PatchDeployments.PatchDeployment.Builder clearSchedule()
Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

clearUpdateTime()

public PatchDeployments.PatchDeployment.Builder clearUpdateTime()

Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

clone()

public PatchDeployments.PatchDeployment.Builder clone()
Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public PatchDeployments.PatchDeployment getDefaultInstanceForType()
Returns
TypeDescription
PatchDeployments.PatchDeployment

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];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDuration()

public 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];

Returns
TypeDescription
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

Optional. Duration of the patch. After the duration ends, the patch times out.

.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getDurationOrBuilder()

public 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];

Returns
TypeDescription
DurationOrBuilder

getInstanceFilter()

public PatchJobs.PatchInstanceFilter getInstanceFilter()

Required. VM instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchJobs.PatchInstanceFilter

The instanceFilter.

getInstanceFilterBuilder()

public PatchJobs.PatchInstanceFilter.Builder getInstanceFilterBuilder()

Required. VM instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchJobs.PatchInstanceFilter.Builder

getInstanceFilterOrBuilder()

public PatchJobs.PatchInstanceFilterOrBuilder getInstanceFilterOrBuilder()

Required. VM instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchJobs.PatchInstanceFilterOrBuilder

getLastExecuteTime()

public Timestamp getLastExecuteTime()

Output only. The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp last_execute_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The lastExecuteTime.

getLastExecuteTimeBuilder()

public Timestamp.Builder getLastExecuteTimeBuilder()

Output only. The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp last_execute_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getLastExecuteTimeOrBuilder()

public TimestampOrBuilder getLastExecuteTimeOrBuilder()

Output only. The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp last_execute_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

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;

Returns
TypeDescription
String

The name.

getNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for name.

getOneTimeSchedule()

public PatchDeployments.OneTimeSchedule getOneTimeSchedule()

Required. Schedule a one-time execution.

.google.cloud.osconfig.v1.OneTimeSchedule one_time_schedule = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.OneTimeSchedule

The oneTimeSchedule.

getOneTimeScheduleBuilder()

public PatchDeployments.OneTimeSchedule.Builder getOneTimeScheduleBuilder()

Required. Schedule a one-time execution.

.google.cloud.osconfig.v1.OneTimeSchedule one_time_schedule = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.OneTimeSchedule.Builder

getOneTimeScheduleOrBuilder()

public PatchDeployments.OneTimeScheduleOrBuilder getOneTimeScheduleOrBuilder()

Required. Schedule a one-time execution.

.google.cloud.osconfig.v1.OneTimeSchedule one_time_schedule = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.OneTimeScheduleOrBuilder

getPatchConfig()

public PatchJobs.PatchConfig getPatchConfig()

Optional. Patch configuration that is applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PatchJobs.PatchConfig

The patchConfig.

getPatchConfigBuilder()

public PatchJobs.PatchConfig.Builder getPatchConfigBuilder()

Optional. Patch configuration that is applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

getPatchConfigOrBuilder()

public PatchJobs.PatchConfigOrBuilder getPatchConfigOrBuilder()

Optional. Patch configuration that is applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PatchJobs.PatchConfigOrBuilder

getRecurringSchedule()

public PatchDeployments.RecurringSchedule getRecurringSchedule()

Required. Schedule recurring executions.

.google.cloud.osconfig.v1.RecurringSchedule recurring_schedule = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.RecurringSchedule

The recurringSchedule.

getRecurringScheduleBuilder()

public PatchDeployments.RecurringSchedule.Builder getRecurringScheduleBuilder()

Required. Schedule recurring executions.

.google.cloud.osconfig.v1.RecurringSchedule recurring_schedule = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.RecurringSchedule.Builder

getRecurringScheduleOrBuilder()

public PatchDeployments.RecurringScheduleOrBuilder getRecurringScheduleOrBuilder()

Required. Schedule recurring executions.

.google.cloud.osconfig.v1.RecurringSchedule recurring_schedule = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PatchDeployments.RecurringScheduleOrBuilder

getRollout()

public PatchJobs.PatchRollout getRollout()

Optional. Rollout strategy of the patch job.

.google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PatchJobs.PatchRollout

The rollout.

getRolloutBuilder()

public PatchJobs.PatchRollout.Builder getRolloutBuilder()

Optional. Rollout strategy of the patch job.

.google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PatchJobs.PatchRollout.Builder

getRolloutOrBuilder()

public PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder()

Optional. Rollout strategy of the patch job.

.google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PatchJobs.PatchRolloutOrBuilder

getScheduleCase()

public PatchDeployments.PatchDeployment.ScheduleCase getScheduleCase()
Returns
TypeDescription
PatchDeployments.PatchDeployment.ScheduleCase

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime 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];

Returns
TypeDescription
boolean

Whether the duration field is set.

hasInstanceFilter()

public boolean hasInstanceFilter()

Required. VM instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the instanceFilter field is set.

hasLastExecuteTime()

public boolean hasLastExecuteTime()

Output only. The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp last_execute_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the lastExecuteTime field is set.

hasOneTimeSchedule()

public boolean hasOneTimeSchedule()

Required. Schedule a one-time execution.

.google.cloud.osconfig.v1.OneTimeSchedule one_time_schedule = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the oneTimeSchedule 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];

Returns
TypeDescription
boolean

Whether the patchConfig field is set.

hasRecurringSchedule()

public boolean hasRecurringSchedule()

Required. Schedule recurring executions.

.google.cloud.osconfig.v1.RecurringSchedule recurring_schedule = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the recurringSchedule field is set.

hasRollout()

public boolean hasRollout()

Optional. Rollout strategy of the patch job.

.google.cloud.osconfig.v1.PatchRollout rollout = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the rollout field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public PatchDeployments.PatchDeployment.Builder mergeCreateTime(Timestamp value)

Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

mergeDuration(Duration value)

public PatchDeployments.PatchDeployment.Builder mergeDuration(Duration value)

Optional. Duration of the patch. After the duration ends, the patch times out.

.google.protobuf.Duration duration = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

mergeFrom(PatchDeployments.PatchDeployment other)

public PatchDeployments.PatchDeployment.Builder mergeFrom(PatchDeployments.PatchDeployment other)
Parameter
NameDescription
otherPatchDeployments.PatchDeployment
Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PatchDeployments.PatchDeployment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchDeployments.PatchDeployment.Builder
Overrides Exceptions
TypeDescription