Class PatchJobs.PatchJob.Builder (2.35.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.v1beta.PatchJob

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PatchJobs.PatchJob build()
Returns
TypeDescription
PatchJobs.PatchJob

buildPartial()

public PatchJobs.PatchJob buildPartial()
Returns
TypeDescription
PatchJobs.PatchJob

clear()

public PatchJobs.PatchJob.Builder clear()
Returns
TypeDescription
PatchJobs.PatchJob.Builder
Overrides

clearCreateTime()

public PatchJobs.PatchJob.Builder clearCreateTime()

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PatchJobs.PatchJob.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PatchJobs.PatchJob.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PatchJobs.PatchJob.Builder
Overrides

clearInstanceDetailsSummary()

public PatchJobs.PatchJob.Builder clearInstanceDetailsSummary()

Summary of instance details.

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

Returns
TypeDescription
PatchJobs.PatchJob.Builder

clearInstanceFilter()

public PatchJobs.PatchJob.Builder clearInstanceFilter()

Instances to patch.

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

Returns
TypeDescription
PatchJobs.PatchJob.Builder

clearName()

public PatchJobs.PatchJob.Builder clearName()

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

string name = 1;

Returns
TypeDescription
PatchJobs.PatchJob.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PatchJobs.PatchJob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PatchJobs.PatchJob.Builder
Overrides

clearPatchConfig()

public PatchJobs.PatchJob.Builder clearPatchConfig()

Patch configuration being applied.

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

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

Returns
TypeDescription
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
TypeDescription
PatchJobs.PatchJob.Builder

This builder for chaining.

clearRollout()

public PatchJobs.PatchJob.Builder clearRollout()

Rollout strategy being applied.

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

Returns
TypeDescription
PatchJobs.PatchJob.Builder

clearState()

public PatchJobs.PatchJob.Builder clearState()

The current state of the PatchJob.

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

Returns
TypeDescription
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
TypeDescription
PatchJobs.PatchJob.Builder

clone()

public PatchJobs.PatchJob.Builder clone()
Returns
TypeDescription
PatchJobs.PatchJob.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public PatchJobs.PatchJob getDefaultInstanceForType()
Returns
TypeDescription
PatchJobs.PatchJob

getDescription()

public String getDescription()

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

string description = 2;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

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

string display_name = 14;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

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

string display_name = 14;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

getErrorMessage()

public String getErrorMessage()

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

string error_message = 11;

Returns
TypeDescription
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

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

string error_message = 11;

Returns
TypeDescription
ByteString

The bytes for errorMessage.

getInstanceDetailsSummary()

public PatchJobs.PatchJob.InstanceDetailsSummary getInstanceDetailsSummary()

Summary of instance details.

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

Returns
TypeDescription
PatchJobs.PatchJob.InstanceDetailsSummary

The instanceDetailsSummary.

getInstanceDetailsSummaryBuilder()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder getInstanceDetailsSummaryBuilder()

Summary of instance details.

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

Returns
TypeDescription
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

getInstanceDetailsSummaryOrBuilder()

public PatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder getInstanceDetailsSummaryOrBuilder()

Summary of instance details.

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

Returns
TypeDescription
PatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder

getInstanceFilter()

public PatchJobs.PatchInstanceFilter getInstanceFilter()

Instances to patch.

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

Returns
TypeDescription
PatchJobs.PatchInstanceFilter

The instanceFilter.

getInstanceFilterBuilder()

public PatchJobs.PatchInstanceFilter.Builder getInstanceFilterBuilder()

Instances to patch.

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

Returns
TypeDescription
PatchJobs.PatchInstanceFilter.Builder

getInstanceFilterOrBuilder()

public PatchJobs.PatchInstanceFilterOrBuilder getInstanceFilterOrBuilder()

Instances to patch.

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

Returns
TypeDescription
PatchJobs.PatchInstanceFilterOrBuilder

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPatchConfig()

public PatchJobs.PatchConfig getPatchConfig()

Patch configuration being applied.

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

Returns
TypeDescription
PatchJobs.PatchConfig

The patchConfig.

getPatchConfigBuilder()

public PatchJobs.PatchConfig.Builder getPatchConfigBuilder()

Patch configuration being applied.

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

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

getPatchConfigOrBuilder()

public PatchJobs.PatchConfigOrBuilder getPatchConfigOrBuilder()

Patch configuration being applied.

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

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

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

Returns
TypeDescription
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
TypeDescription
double

The percentComplete.

getRollout()

public PatchJobs.PatchRollout getRollout()

Rollout strategy being applied.

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

Returns
TypeDescription
PatchJobs.PatchRollout

The rollout.

getRolloutBuilder()

public PatchJobs.PatchRollout.Builder getRolloutBuilder()

Rollout strategy being applied.

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

Returns
TypeDescription
PatchJobs.PatchRollout.Builder

getRolloutOrBuilder()

public PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder()

Rollout strategy being applied.

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

Returns
TypeDescription
PatchJobs.PatchRolloutOrBuilder

getState()

public PatchJobs.PatchJob.State getState()

The current state of the PatchJob.

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

Returns
TypeDescription
PatchJobs.PatchJob.State

The state.

getStateValue()

public int getStateValue()

The current state of the PatchJob.

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

Returns
TypeDescription
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
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Last time this patch job was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Last time this patch job was updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the duration field is set.

hasInstanceDetailsSummary()

public boolean hasInstanceDetailsSummary()

Summary of instance details.

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

Returns
TypeDescription
boolean

Whether the instanceDetailsSummary field is set.

hasInstanceFilter()

public boolean hasInstanceFilter()

Instances to patch.

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

Returns
TypeDescription
boolean

Whether the instanceFilter field is set.

hasPatchConfig()

public boolean hasPatchConfig()

Patch configuration being applied.

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

Returns
TypeDescription
boolean

Whether the patchConfig field is set.

hasRollout()

public boolean hasRollout()

Rollout strategy being applied.

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

Returns
TypeDescription
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
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 PatchJobs.PatchJob.Builder mergeCreateTime(Timestamp value)

Time this patch job was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
PatchJobs.PatchJob.Builder

mergeFrom(PatchJobs.PatchJob other)

public PatchJobs.PatchJob.Builder mergeFrom(PatchJobs.PatchJob other)
Parameter
NameDescription
otherPatchJobs.PatchJob
Returns
TypeDescription
PatchJobs.PatchJob.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PatchJobs.PatchJob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchJobs.PatchJob.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PatchJobs.PatchJob.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Parameter
NameDescription
valuePatchJobs.PatchJob.InstanceDetailsSummary
Returns
TypeDescription
PatchJobs.PatchJob.Builder

mergeInstanceFilter(PatchJobs.PatchInstanceFilter value)

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

Instances to patch.

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

Parameter
NameDescription
valuePatchJobs.PatchInstanceFilter
Returns
TypeDescription
PatchJobs.PatchJob.Builder

mergePatchConfig(PatchJobs.PatchConfig value)

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

Patch configuration being applied.

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

Parameter
NameDescription
valuePatchJobs.PatchConfig
Returns
TypeDescription
PatchJobs.PatchJob.Builder

mergeRollout(PatchJobs.PatchRollout value)

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

Rollout strategy being applied.

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

Parameter
NameDescription
valuePatchJobs.PatchRollout
Returns
TypeDescription
PatchJobs.PatchJob.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.PatchJob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The dryRun to set.

Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The errorMessage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for errorMessage to set.

Returns
TypeDescription
PatchJobs.PatchJob.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PatchJobs.PatchJob.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Parameter
NameDescription
valuePatchJobs.PatchJob.InstanceDetailsSummary
Returns
TypeDescription
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.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;

Parameter
NameDescription
builderForValuePatchJobs.PatchJob.InstanceDetailsSummary.Builder
Returns
TypeDescription
PatchJobs.PatchJob.Builder

setInstanceFilter(PatchJobs.PatchInstanceFilter value)

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

Instances to patch.

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

Parameter
NameDescription
valuePatchJobs.PatchInstanceFilter
Returns
TypeDescription
PatchJobs.PatchJob.Builder

setInstanceFilter(PatchJobs.PatchInstanceFilter.Builder builderForValue)

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

Instances to patch.

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

Parameter
NameDescription
builderForValuePatchJobs.PatchInstanceFilter.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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.v1beta.PatchConfig patch_config = 7;

Parameter
NameDescription
valuePatchJobs.PatchConfig
Returns
TypeDescription
PatchJobs.PatchJob.Builder

setPatchConfig(PatchJobs.PatchConfig.Builder builderForValue)

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

Patch configuration being applied.

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

Parameter
NameDescription
builderForValuePatchJobs.PatchConfig.Builder
Returns
TypeDescription
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];

Parameter
NameDescription
valueString

The patchDeployment to set.

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

Parameter
NameDescription
valueByteString

The bytes for patchDeployment to set.

Returns
TypeDescription
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
NameDescription
valuedouble

The percentComplete to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PatchJobs.PatchJob.Builder
Overrides

setRollout(PatchJobs.PatchRollout value)

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

Rollout strategy being applied.

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

Parameter
NameDescription
valuePatchJobs.PatchRollout
Returns
TypeDescription
PatchJobs.PatchJob.Builder

setRollout(PatchJobs.PatchRollout.Builder builderForValue)

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

Rollout strategy being applied.

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

Parameter
NameDescription
builderForValuePatchJobs.PatchRollout.Builder
Returns
TypeDescription
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.v1beta.PatchJob.State state = 5;

Parameter
NameDescription
valuePatchJobs.PatchJob.State

The state to set.

Returns
TypeDescription
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.v1beta.PatchJob.State state = 5;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
PatchJobs.PatchJob.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.PatchJob.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PatchJobs.PatchJob.Builder