Class PatchJobs.PatchJob.InstanceDetailsSummary.Builder (2.49.0)

public static final class PatchJobs.PatchJob.InstanceDetailsSummary.Builder extends GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder> implements PatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder

A summary of the current patch state across all instances that this patch job affects. Contains counts of instances in different states. These states map to InstancePatchState. List patch job instance details to see the specific states of each instance.

Protobuf type google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAckedInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearAckedInstanceCount()

Number of instances that have acked and will start shortly.

int64 acked_instance_count = 11;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearApplyingPatchesInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearApplyingPatchesInstanceCount()

Number of instances that are applying patches.

int64 applying_patches_instance_count = 6;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearDownloadingPatchesInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearDownloadingPatchesInstanceCount()

Number of instances that are downloading patches.

int64 downloading_patches_instance_count = 5;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearFailedInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearFailedInstanceCount()

Number of instances that failed.

int64 failed_instance_count = 10;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInactiveInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearInactiveInstanceCount()

Number of instances that are inactive.

int64 inactive_instance_count = 2;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearNoAgentDetectedInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearNoAgentDetectedInstanceCount()

Number of instances that do not appear to be running the agent. Check to ensure that the agent is installed, running, and able to communicate with the service.

int64 no_agent_detected_instance_count = 15;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearNotifiedInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearNotifiedInstanceCount()

Number of instances notified about patch job.

int64 notified_instance_count = 3;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPendingInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearPendingInstanceCount()

Number of instances pending patch job.

int64 pending_instance_count = 1;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearPostPatchStepInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearPostPatchStepInstanceCount()

Number of instances that are running the post-patch step.

int64 post_patch_step_instance_count = 14;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearPrePatchStepInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearPrePatchStepInstanceCount()

Number of instances that are running the pre-patch step.

int64 pre_patch_step_instance_count = 13;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearRebootingInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearRebootingInstanceCount()

Number of instances rebooting.

int64 rebooting_instance_count = 7;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearStartedInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearStartedInstanceCount()

Number of instances that have started.

int64 started_instance_count = 4;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearSucceededInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearSucceededInstanceCount()

Number of instances that have completed successfully.

int64 succeeded_instance_count = 8;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearSucceededRebootRequiredInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearSucceededRebootRequiredInstanceCount()

Number of instances that require reboot.

int64 succeeded_reboot_required_instance_count = 9;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearTimedOutInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearTimedOutInstanceCount()

Number of instances that exceeded the time out while applying the patch.

int64 timed_out_instance_count = 12;

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clone()

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

getAckedInstanceCount()

public long getAckedInstanceCount()

Number of instances that have acked and will start shortly.

int64 acked_instance_count = 11;

Returns
Type Description
long

The ackedInstanceCount.

getApplyingPatchesInstanceCount()

public long getApplyingPatchesInstanceCount()

Number of instances that are applying patches.

int64 applying_patches_instance_count = 6;

Returns
Type Description
long

The applyingPatchesInstanceCount.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getDownloadingPatchesInstanceCount()

public long getDownloadingPatchesInstanceCount()

Number of instances that are downloading patches.

int64 downloading_patches_instance_count = 5;

Returns
Type Description
long

The downloadingPatchesInstanceCount.

getFailedInstanceCount()

public long getFailedInstanceCount()

Number of instances that failed.

int64 failed_instance_count = 10;

Returns
Type Description
long

The failedInstanceCount.

getInactiveInstanceCount()

public long getInactiveInstanceCount()

Number of instances that are inactive.

int64 inactive_instance_count = 2;

Returns
Type Description
long

The inactiveInstanceCount.

getNoAgentDetectedInstanceCount()

public long getNoAgentDetectedInstanceCount()

Number of instances that do not appear to be running the agent. Check to ensure that the agent is installed, running, and able to communicate with the service.

int64 no_agent_detected_instance_count = 15;

Returns
Type Description
long

The noAgentDetectedInstanceCount.

getNotifiedInstanceCount()

public long getNotifiedInstanceCount()

Number of instances notified about patch job.

int64 notified_instance_count = 3;

Returns
Type Description
long

The notifiedInstanceCount.

getPendingInstanceCount()

public long getPendingInstanceCount()

Number of instances pending patch job.

int64 pending_instance_count = 1;

Returns
Type Description
long

The pendingInstanceCount.

getPostPatchStepInstanceCount()

public long getPostPatchStepInstanceCount()

Number of instances that are running the post-patch step.

int64 post_patch_step_instance_count = 14;

Returns
Type Description
long

The postPatchStepInstanceCount.

getPrePatchStepInstanceCount()

public long getPrePatchStepInstanceCount()

Number of instances that are running the pre-patch step.

int64 pre_patch_step_instance_count = 13;

Returns
Type Description
long

The prePatchStepInstanceCount.

getRebootingInstanceCount()

public long getRebootingInstanceCount()

Number of instances rebooting.

int64 rebooting_instance_count = 7;

Returns
Type Description
long

The rebootingInstanceCount.

getStartedInstanceCount()

public long getStartedInstanceCount()

Number of instances that have started.

int64 started_instance_count = 4;

Returns
Type Description
long

The startedInstanceCount.

getSucceededInstanceCount()

public long getSucceededInstanceCount()

Number of instances that have completed successfully.

int64 succeeded_instance_count = 8;

Returns
Type Description
long

The succeededInstanceCount.

getSucceededRebootRequiredInstanceCount()

public long getSucceededRebootRequiredInstanceCount()

Number of instances that require reboot.

int64 succeeded_reboot_required_instance_count = 9;

Returns
Type Description
long

The succeededRebootRequiredInstanceCount.

getTimedOutInstanceCount()

public long getTimedOutInstanceCount()

Number of instances that exceeded the time out while applying the patch.

int64 timed_out_instance_count = 12;

Returns
Type Description
long

The timedOutInstanceCount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PatchJobs.PatchJob.InstanceDetailsSummary other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAckedInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setAckedInstanceCount(long value)

Number of instances that have acked and will start shortly.

int64 acked_instance_count = 11;

Parameter
Name Description
value long

The ackedInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setApplyingPatchesInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setApplyingPatchesInstanceCount(long value)

Number of instances that are applying patches.

int64 applying_patches_instance_count = 6;

Parameter
Name Description
value long

The applyingPatchesInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setDownloadingPatchesInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setDownloadingPatchesInstanceCount(long value)

Number of instances that are downloading patches.

int64 downloading_patches_instance_count = 5;

Parameter
Name Description
value long

The downloadingPatchesInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setFailedInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setFailedInstanceCount(long value)

Number of instances that failed.

int64 failed_instance_count = 10;

Parameter
Name Description
value long

The failedInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInactiveInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setInactiveInstanceCount(long value)

Number of instances that are inactive.

int64 inactive_instance_count = 2;

Parameter
Name Description
value long

The inactiveInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setNoAgentDetectedInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setNoAgentDetectedInstanceCount(long value)

Number of instances that do not appear to be running the agent. Check to ensure that the agent is installed, running, and able to communicate with the service.

int64 no_agent_detected_instance_count = 15;

Parameter
Name Description
value long

The noAgentDetectedInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setNotifiedInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setNotifiedInstanceCount(long value)

Number of instances notified about patch job.

int64 notified_instance_count = 3;

Parameter
Name Description
value long

The notifiedInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setPendingInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setPendingInstanceCount(long value)

Number of instances pending patch job.

int64 pending_instance_count = 1;

Parameter
Name Description
value long

The pendingInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setPostPatchStepInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setPostPatchStepInstanceCount(long value)

Number of instances that are running the post-patch step.

int64 post_patch_step_instance_count = 14;

Parameter
Name Description
value long

The postPatchStepInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setPrePatchStepInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setPrePatchStepInstanceCount(long value)

Number of instances that are running the pre-patch step.

int64 pre_patch_step_instance_count = 13;

Parameter
Name Description
value long

The prePatchStepInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setRebootingInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setRebootingInstanceCount(long value)

Number of instances rebooting.

int64 rebooting_instance_count = 7;

Parameter
Name Description
value long

The rebootingInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

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

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

setStartedInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setStartedInstanceCount(long value)

Number of instances that have started.

int64 started_instance_count = 4;

Parameter
Name Description
value long

The startedInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setSucceededInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setSucceededInstanceCount(long value)

Number of instances that have completed successfully.

int64 succeeded_instance_count = 8;

Parameter
Name Description
value long

The succeededInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setSucceededRebootRequiredInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setSucceededRebootRequiredInstanceCount(long value)

Number of instances that require reboot.

int64 succeeded_reboot_required_instance_count = 9;

Parameter
Name Description
value long

The succeededRebootRequiredInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setTimedOutInstanceCount(long value)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setTimedOutInstanceCount(long value)

Number of instances that exceeded the time out while applying the patch.

int64 timed_out_instance_count = 12;

Parameter
Name Description
value long

The timedOutInstanceCount to set.

Returns
Type Description
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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