Class PatchJobs.PatchJob.Builder (2.56.0)

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

Protobuf type google.cloud.osconfig.v1.PatchJob

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PatchJobs.PatchJob.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides

build()

public PatchJobs.PatchJob build()
Returns
Type Description
PatchJobs.PatchJob

buildPartial()

public PatchJobs.PatchJob buildPartial()
Returns
Type Description
PatchJobs.PatchJob

clear()

public PatchJobs.PatchJob.Builder clear()
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides

clearCreateTime()

public PatchJobs.PatchJob.Builder clearCreateTime()

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
PatchJobs.PatchJob.Builder

clearDescription()

public PatchJobs.PatchJob.Builder clearDescription()

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

string description = 2;

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

clearDisplayName()

public PatchJobs.PatchJob.Builder clearDisplayName()

Display name for this patch job. This is not a unique identifier.

string display_name = 14;

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

clearDryRun()

public PatchJobs.PatchJob.Builder clearDryRun()

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;

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

clearDuration()

public PatchJobs.PatchJob.Builder clearDuration()

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

.google.protobuf.Duration duration = 8;

Returns
Type Description
PatchJobs.PatchJob.Builder

clearErrorMessage()

public PatchJobs.PatchJob.Builder clearErrorMessage()

If this patch job failed, this message provides information about the failure.

string error_message = 11;

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PatchJobs.PatchJob.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides

clearInstanceDetailsSummary()

public PatchJobs.PatchJob.Builder clearInstanceDetailsSummary()

Summary of instance details.

.google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Returns
Type Description
PatchJobs.PatchJob.Builder

clearInstanceFilter()

public PatchJobs.PatchJob.Builder clearInstanceFilter()

Instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;

Returns
Type Description
PatchJobs.PatchJob.Builder

clearName()

public PatchJobs.PatchJob.Builder clearName()

Unique identifier for this patch job in the form projects/*/patchJobs/*

string name = 1;

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PatchJobs.PatchJob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides

clearPatchConfig()

public PatchJobs.PatchJob.Builder clearPatchConfig()

Patch configuration being applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 7;

Returns
Type Description
PatchJobs.PatchJob.Builder

clearPatchDeployment()

public PatchJobs.PatchJob.Builder clearPatchDeployment()

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) = { ... }

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

clearPercentComplete()

public PatchJobs.PatchJob.Builder clearPercentComplete()

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;

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

clearRollout()

public PatchJobs.PatchJob.Builder clearRollout()

Rollout strategy being applied.

.google.cloud.osconfig.v1.PatchRollout rollout = 16;

Returns
Type Description
PatchJobs.PatchJob.Builder

clearState()

public PatchJobs.PatchJob.Builder clearState()

The current state of the PatchJob.

.google.cloud.osconfig.v1.PatchJob.State state = 5;

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

clearUpdateTime()

public PatchJobs.PatchJob.Builder clearUpdateTime()

Last time this patch job was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
PatchJobs.PatchJob.Builder

clone()

public PatchJobs.PatchJob.Builder clone()
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public PatchJobs.PatchJob getDefaultInstanceForType()
Returns
Type Description
PatchJobs.PatchJob

getDescription()

public String getDescription()

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

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

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

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Display name for this patch job. This is not a unique identifier.

string display_name = 14;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name for this patch job. This is not a unique identifier.

string display_name = 14;

Returns
Type Description
ByteString

The bytes for displayName.

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;

Returns
Type Description
boolean

The dryRun.

getDuration()

public Duration getDuration()

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

.google.protobuf.Duration duration = 8;

Returns
Type Description
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

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

.google.protobuf.Duration duration = 8;

Returns
Type Description
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

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

.google.protobuf.Duration duration = 8;

Returns
Type Description
DurationOrBuilder

getErrorMessage()

public String getErrorMessage()

If this patch job failed, this message provides information about the failure.

string error_message = 11;

Returns
Type Description
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

If this patch job failed, this message provides information about the failure.

string error_message = 11;

Returns
Type Description
ByteString

The bytes for errorMessage.

getInstanceDetailsSummary()

public PatchJobs.PatchJob.InstanceDetailsSummary getInstanceDetailsSummary()

Summary of instance details.

.google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary

The instanceDetailsSummary.

getInstanceDetailsSummaryBuilder()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder getInstanceDetailsSummaryBuilder()

Summary of instance details.

.google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

getInstanceDetailsSummaryOrBuilder()

public PatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder getInstanceDetailsSummaryOrBuilder()

Summary of instance details.

.google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder

getInstanceFilter()

public PatchJobs.PatchInstanceFilter getInstanceFilter()

Instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;

Returns
Type Description
PatchJobs.PatchInstanceFilter

The instanceFilter.

getInstanceFilterBuilder()

public PatchJobs.PatchInstanceFilter.Builder getInstanceFilterBuilder()

Instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;

Returns
Type Description
PatchJobs.PatchInstanceFilter.Builder

getInstanceFilterOrBuilder()

public PatchJobs.PatchInstanceFilterOrBuilder getInstanceFilterOrBuilder()

Instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;

Returns
Type Description
PatchJobs.PatchInstanceFilterOrBuilder

getName()

public String getName()

Unique identifier for this patch job in the form projects/*/patchJobs/*

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Unique identifier for this patch job in the form projects/*/patchJobs/*

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPatchConfig()

public PatchJobs.PatchConfig getPatchConfig()

Patch configuration being applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 7;

Returns
Type Description
PatchJobs.PatchConfig

The patchConfig.

getPatchConfigBuilder()

public PatchJobs.PatchConfig.Builder getPatchConfigBuilder()

Patch configuration being applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 7;

Returns
Type Description
PatchJobs.PatchConfig.Builder

getPatchConfigOrBuilder()

public PatchJobs.PatchConfigOrBuilder getPatchConfigOrBuilder()

Patch configuration being applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 7;

Returns
Type Description
PatchJobs.PatchConfigOrBuilder

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) = { ... }

Returns
Type Description
String

The patchDeployment.

getPatchDeploymentBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for patchDeployment.

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;

Returns
Type Description
double

The percentComplete.

getRollout()

public PatchJobs.PatchRollout getRollout()

Rollout strategy being applied.

.google.cloud.osconfig.v1.PatchRollout rollout = 16;

Returns
Type Description
PatchJobs.PatchRollout

The rollout.

getRolloutBuilder()

public PatchJobs.PatchRollout.Builder getRolloutBuilder()

Rollout strategy being applied.

.google.cloud.osconfig.v1.PatchRollout rollout = 16;

Returns
Type Description
PatchJobs.PatchRollout.Builder

getRolloutOrBuilder()

public PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder()

Rollout strategy being applied.

.google.cloud.osconfig.v1.PatchRollout rollout = 16;

Returns
Type Description
PatchJobs.PatchRolloutOrBuilder

getState()

public PatchJobs.PatchJob.State getState()

The current state of the PatchJob.

.google.cloud.osconfig.v1.PatchJob.State state = 5;

Returns
Type Description
PatchJobs.PatchJob.State

The state.

getStateValue()

public int getStateValue()

The current state of the PatchJob.

.google.cloud.osconfig.v1.PatchJob.State state = 5;

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Last time this patch job was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Last time this patch job was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Last time this patch job was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
boolean

Whether the createTime field is set.

hasDuration()

public boolean hasDuration()

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

.google.protobuf.Duration duration = 8;

Returns
Type Description
boolean

Whether the duration field is set.

hasInstanceDetailsSummary()

public boolean hasInstanceDetailsSummary()

Summary of instance details.

.google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Returns
Type Description
boolean

Whether the instanceDetailsSummary field is set.

hasInstanceFilter()

public boolean hasInstanceFilter()

Instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;

Returns
Type Description
boolean

Whether the instanceFilter field is set.

hasPatchConfig()

public boolean hasPatchConfig()

Patch configuration being applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 7;

Returns
Type Description
boolean

Whether the patchConfig field is set.

hasRollout()

public boolean hasRollout()

Rollout strategy being applied.

.google.cloud.osconfig.v1.PatchRollout rollout = 16;

Returns
Type Description
boolean

Whether the rollout field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Last time this patch job was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public PatchJobs.PatchJob.Builder mergeCreateTime(Timestamp value)

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
PatchJobs.PatchJob.Builder

mergeDuration(Duration value)

public PatchJobs.PatchJob.Builder mergeDuration(Duration value)

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

.google.protobuf.Duration duration = 8;

Parameter
Name Description
value Duration
Returns
Type Description
PatchJobs.PatchJob.Builder

mergeFrom(PatchJobs.PatchJob other)

public PatchJobs.PatchJob.Builder mergeFrom(PatchJobs.PatchJob other)
Parameter
Name Description
other PatchJobs.PatchJob
Returns
Type Description
PatchJobs.PatchJob.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PatchJobs.PatchJob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PatchJobs.PatchJob.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides

mergeInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary value)

public PatchJobs.PatchJob.Builder mergeInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary value)

Summary of instance details.

.google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Parameter
Name Description
value PatchJobs.PatchJob.InstanceDetailsSummary
Returns
Type Description
PatchJobs.PatchJob.Builder

mergeInstanceFilter(PatchJobs.PatchInstanceFilter value)

public PatchJobs.PatchJob.Builder mergeInstanceFilter(PatchJobs.PatchInstanceFilter value)

Instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;

Parameter
Name Description
value PatchJobs.PatchInstanceFilter
Returns
Type Description
PatchJobs.PatchJob.Builder

mergePatchConfig(PatchJobs.PatchConfig value)

public PatchJobs.PatchJob.Builder mergePatchConfig(PatchJobs.PatchConfig value)

Patch configuration being applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 7;

Parameter
Name Description
value PatchJobs.PatchConfig
Returns
Type Description
PatchJobs.PatchJob.Builder

mergeRollout(PatchJobs.PatchRollout value)

public PatchJobs.PatchJob.Builder mergeRollout(PatchJobs.PatchRollout value)

Rollout strategy being applied.

.google.cloud.osconfig.v1.PatchRollout rollout = 16;

Parameter
Name Description
value PatchJobs.PatchRollout
Returns
Type Description
PatchJobs.PatchJob.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.PatchJob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides

mergeUpdateTime(Timestamp value)

public PatchJobs.PatchJob.Builder mergeUpdateTime(Timestamp value)

Last time this patch job was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
PatchJobs.PatchJob.Builder

setCreateTime(Timestamp value)

public PatchJobs.PatchJob.Builder setCreateTime(Timestamp value)

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
PatchJobs.PatchJob.Builder

setCreateTime(Timestamp.Builder builderForValue)

public PatchJobs.PatchJob.Builder setCreateTime(Timestamp.Builder builderForValue)

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PatchJobs.PatchJob.Builder

setDescription(String value)

public PatchJobs.PatchJob.Builder setDescription(String value)

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

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public PatchJobs.PatchJob.Builder setDescriptionBytes(ByteString value)

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

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setDisplayName(String value)

public PatchJobs.PatchJob.Builder setDisplayName(String value)

Display name for this patch job. This is not a unique identifier.

string display_name = 14;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PatchJobs.PatchJob.Builder setDisplayNameBytes(ByteString value)

Display name for this patch job. This is not a unique identifier.

string display_name = 14;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setDryRun(boolean value)

public PatchJobs.PatchJob.Builder setDryRun(boolean value)

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;

Parameter
Name Description
value boolean

The dryRun to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setDuration(Duration value)

public PatchJobs.PatchJob.Builder setDuration(Duration value)

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

.google.protobuf.Duration duration = 8;

Parameter
Name Description
value Duration
Returns
Type Description
PatchJobs.PatchJob.Builder

setDuration(Duration.Builder builderForValue)

public PatchJobs.PatchJob.Builder setDuration(Duration.Builder builderForValue)

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

.google.protobuf.Duration duration = 8;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PatchJobs.PatchJob.Builder

setErrorMessage(String value)

public PatchJobs.PatchJob.Builder setErrorMessage(String value)

If this patch job failed, this message provides information about the failure.

string error_message = 11;

Parameter
Name Description
value String

The errorMessage to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setErrorMessageBytes(ByteString value)

public PatchJobs.PatchJob.Builder setErrorMessageBytes(ByteString value)

If this patch job failed, this message provides information about the failure.

string error_message = 11;

Parameter
Name Description
value ByteString

The bytes for errorMessage to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PatchJobs.PatchJob.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides

setInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary value)

public PatchJobs.PatchJob.Builder setInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary value)

Summary of instance details.

.google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Parameter
Name Description
value PatchJobs.PatchJob.InstanceDetailsSummary
Returns
Type Description
PatchJobs.PatchJob.Builder

setInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary.Builder builderForValue)

public PatchJobs.PatchJob.Builder setInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary.Builder builderForValue)

Summary of instance details.

.google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Parameter
Name Description
builderForValue PatchJobs.PatchJob.InstanceDetailsSummary.Builder
Returns
Type Description
PatchJobs.PatchJob.Builder

setInstanceFilter(PatchJobs.PatchInstanceFilter value)

public PatchJobs.PatchJob.Builder setInstanceFilter(PatchJobs.PatchInstanceFilter value)

Instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;

Parameter
Name Description
value PatchJobs.PatchInstanceFilter
Returns
Type Description
PatchJobs.PatchJob.Builder

setInstanceFilter(PatchJobs.PatchInstanceFilter.Builder builderForValue)

public PatchJobs.PatchJob.Builder setInstanceFilter(PatchJobs.PatchInstanceFilter.Builder builderForValue)

Instances to patch.

.google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13;

Parameter
Name Description
builderForValue PatchJobs.PatchInstanceFilter.Builder
Returns
Type Description
PatchJobs.PatchJob.Builder

setName(String value)

public PatchJobs.PatchJob.Builder setName(String value)

Unique identifier for this patch job in the form projects/*/patchJobs/*

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PatchJobs.PatchJob.Builder setNameBytes(ByteString value)

Unique identifier for this patch job in the form projects/*/patchJobs/*

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setPatchConfig(PatchJobs.PatchConfig value)

public PatchJobs.PatchJob.Builder setPatchConfig(PatchJobs.PatchConfig value)

Patch configuration being applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 7;

Parameter
Name Description
value PatchJobs.PatchConfig
Returns
Type Description
PatchJobs.PatchJob.Builder

setPatchConfig(PatchJobs.PatchConfig.Builder builderForValue)

public PatchJobs.PatchJob.Builder setPatchConfig(PatchJobs.PatchConfig.Builder builderForValue)

Patch configuration being applied.

.google.cloud.osconfig.v1.PatchConfig patch_config = 7;

Parameter
Name Description
builderForValue PatchJobs.PatchConfig.Builder
Returns
Type Description
PatchJobs.PatchJob.Builder

setPatchDeployment(String value)

public PatchJobs.PatchJob.Builder setPatchDeployment(String value)

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) = { ... }

Parameter
Name Description
value String

The patchDeployment to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setPatchDeploymentBytes(ByteString value)

public PatchJobs.PatchJob.Builder setPatchDeploymentBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for patchDeployment to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setPercentComplete(double value)

public PatchJobs.PatchJob.Builder setPercentComplete(double value)

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;

Parameter
Name Description
value double

The percentComplete to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PatchJobs.PatchJob.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides

setRollout(PatchJobs.PatchRollout value)

public PatchJobs.PatchJob.Builder setRollout(PatchJobs.PatchRollout value)

Rollout strategy being applied.

.google.cloud.osconfig.v1.PatchRollout rollout = 16;

Parameter
Name Description
value PatchJobs.PatchRollout
Returns
Type Description
PatchJobs.PatchJob.Builder

setRollout(PatchJobs.PatchRollout.Builder builderForValue)

public PatchJobs.PatchJob.Builder setRollout(PatchJobs.PatchRollout.Builder builderForValue)

Rollout strategy being applied.

.google.cloud.osconfig.v1.PatchRollout rollout = 16;

Parameter
Name Description
builderForValue PatchJobs.PatchRollout.Builder
Returns
Type Description
PatchJobs.PatchJob.Builder

setState(PatchJobs.PatchJob.State value)

public PatchJobs.PatchJob.Builder setState(PatchJobs.PatchJob.State value)

The current state of the PatchJob.

.google.cloud.osconfig.v1.PatchJob.State state = 5;

Parameter
Name Description
value PatchJobs.PatchJob.State

The state to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setStateValue(int value)

public PatchJobs.PatchJob.Builder setStateValue(int value)

The current state of the PatchJob.

.google.cloud.osconfig.v1.PatchJob.State state = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
PatchJobs.PatchJob.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.PatchJob.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PatchJobs.PatchJob.Builder
Overrides

setUpdateTime(Timestamp value)

public PatchJobs.PatchJob.Builder setUpdateTime(Timestamp value)

Last time this patch job was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
PatchJobs.PatchJob.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public PatchJobs.PatchJob.Builder setUpdateTime(Timestamp.Builder builderForValue)

Last time this patch job was updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PatchJobs.PatchJob.Builder