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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInactiveInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearInactiveInstanceCount()

Number of instances that are inactive.

int64 inactive_instance_count = 2;

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPendingInstanceCount()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearPendingInstanceCount()

Number of instances pending patch job.

int64 pending_instance_count = 1;

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

This builder for chaining.

clone()

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clone()
Returns
TypeDescription
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
TypeDescription
long

The ackedInstanceCount.

getApplyingPatchesInstanceCount()

public long getApplyingPatchesInstanceCount()

Number of instances that are applying patches.

int64 applying_patches_instance_count = 6;

Returns
TypeDescription
long

The applyingPatchesInstanceCount.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDownloadingPatchesInstanceCount()

public long getDownloadingPatchesInstanceCount()

Number of instances that are downloading patches.

int64 downloading_patches_instance_count = 5;

Returns
TypeDescription
long

The downloadingPatchesInstanceCount.

getFailedInstanceCount()

public long getFailedInstanceCount()

Number of instances that failed.

int64 failed_instance_count = 10;

Returns
TypeDescription
long

The failedInstanceCount.

getInactiveInstanceCount()

public long getInactiveInstanceCount()

Number of instances that are inactive.

int64 inactive_instance_count = 2;

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

The noAgentDetectedInstanceCount.

getNotifiedInstanceCount()

public long getNotifiedInstanceCount()

Number of instances notified about patch job.

int64 notified_instance_count = 3;

Returns
TypeDescription
long

The notifiedInstanceCount.

getPendingInstanceCount()

public long getPendingInstanceCount()

Number of instances pending patch job.

int64 pending_instance_count = 1;

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

The prePatchStepInstanceCount.

getRebootingInstanceCount()

public long getRebootingInstanceCount()

Number of instances rebooting.

int64 rebooting_instance_count = 7;

Returns
TypeDescription
long

The rebootingInstanceCount.

getStartedInstanceCount()

public long getStartedInstanceCount()

Number of instances that have started.

int64 started_instance_count = 4;

Returns
TypeDescription
long

The startedInstanceCount.

getSucceededInstanceCount()

public long getSucceededInstanceCount()

Number of instances that have completed successfully.

int64 succeeded_instance_count = 8;

Returns
TypeDescription
long

The succeededInstanceCount.

getSucceededRebootRequiredInstanceCount()

public long getSucceededRebootRequiredInstanceCount()

Number of instances that require reboot.

int64 succeeded_reboot_required_instance_count = 9;

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

The timedOutInstanceCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PatchJobs.PatchJob.InstanceDetailsSummary other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PatchJobs.PatchJob.InstanceDetailsSummary.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PatchJobs.PatchJob.InstanceDetailsSummary.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The ackedInstanceCount to set.

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

The applyingPatchesInstanceCount to set.

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

The downloadingPatchesInstanceCount to set.

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

The failedInstanceCount to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The inactiveInstanceCount to set.

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

The noAgentDetectedInstanceCount to set.

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

The notifiedInstanceCount to set.

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

The pendingInstanceCount to set.

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

The postPatchStepInstanceCount to set.

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

The prePatchStepInstanceCount to set.

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

The rebootingInstanceCount to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The startedInstanceCount to set.

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

The succeededInstanceCount to set.

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

The succeededRebootRequiredInstanceCount to set.

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

The timedOutInstanceCount to set.

Returns
TypeDescription
PatchJobs.PatchJob.InstanceDetailsSummary.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.PatchJob.InstanceDetailsSummary.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PatchJobs.PatchJob.InstanceDetailsSummary.Builder
Overrides