Package com.google.cloud.osconfig.v1
Class PatchJobs.PatchJob.InstanceDetailsSummary.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
- com.google.cloud.osconfig.v1.PatchJobs.PatchJob.InstanceDetailsSummary.Builder
-
- All Implemented Interfaces:
PatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PatchJobs.PatchJob.InstanceDetailsSummary
public static final class PatchJobs.PatchJob.InstanceDetailsSummary.Builder extends com.google.protobuf.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 typegoogle.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
clear
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
getDefaultInstanceForType
public PatchJobs.PatchJob.InstanceDetailsSummary getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.PatchJob.InstanceDetailsSummary build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.PatchJob.InstanceDetailsSummary buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
setField
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
clearField
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
clearOneof
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
setRepeatedField
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
addRepeatedField
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
mergeFrom
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
mergeFrom
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder mergeFrom(PatchJobs.PatchJob.InstanceDetailsSummary other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
mergeFrom
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
- Throws:
IOException
-
getPendingInstanceCount
public long getPendingInstanceCount()
Number of instances pending patch job.
int64 pending_instance_count = 1;
- Specified by:
getPendingInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The pendingInstanceCount.
-
setPendingInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setPendingInstanceCount(long value)
Number of instances pending patch job.
int64 pending_instance_count = 1;
- Parameters:
value
- The pendingInstanceCount to set.- Returns:
- This builder for chaining.
-
clearPendingInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearPendingInstanceCount()
Number of instances pending patch job.
int64 pending_instance_count = 1;
- Returns:
- This builder for chaining.
-
getInactiveInstanceCount
public long getInactiveInstanceCount()
Number of instances that are inactive.
int64 inactive_instance_count = 2;
- Specified by:
getInactiveInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The inactiveInstanceCount.
-
setInactiveInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setInactiveInstanceCount(long value)
Number of instances that are inactive.
int64 inactive_instance_count = 2;
- Parameters:
value
- The inactiveInstanceCount to set.- Returns:
- This builder for chaining.
-
clearInactiveInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearInactiveInstanceCount()
Number of instances that are inactive.
int64 inactive_instance_count = 2;
- Returns:
- This builder for chaining.
-
getNotifiedInstanceCount
public long getNotifiedInstanceCount()
Number of instances notified about patch job.
int64 notified_instance_count = 3;
- Specified by:
getNotifiedInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The notifiedInstanceCount.
-
setNotifiedInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setNotifiedInstanceCount(long value)
Number of instances notified about patch job.
int64 notified_instance_count = 3;
- Parameters:
value
- The notifiedInstanceCount to set.- Returns:
- This builder for chaining.
-
clearNotifiedInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearNotifiedInstanceCount()
Number of instances notified about patch job.
int64 notified_instance_count = 3;
- Returns:
- This builder for chaining.
-
getStartedInstanceCount
public long getStartedInstanceCount()
Number of instances that have started.
int64 started_instance_count = 4;
- Specified by:
getStartedInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The startedInstanceCount.
-
setStartedInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setStartedInstanceCount(long value)
Number of instances that have started.
int64 started_instance_count = 4;
- Parameters:
value
- The startedInstanceCount to set.- Returns:
- This builder for chaining.
-
clearStartedInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearStartedInstanceCount()
Number of instances that have started.
int64 started_instance_count = 4;
- Returns:
- This builder for chaining.
-
getDownloadingPatchesInstanceCount
public long getDownloadingPatchesInstanceCount()
Number of instances that are downloading patches.
int64 downloading_patches_instance_count = 5;
- Specified by:
getDownloadingPatchesInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The downloadingPatchesInstanceCount.
-
setDownloadingPatchesInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setDownloadingPatchesInstanceCount(long value)
Number of instances that are downloading patches.
int64 downloading_patches_instance_count = 5;
- Parameters:
value
- The downloadingPatchesInstanceCount to set.- Returns:
- 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:
- This builder for chaining.
-
getApplyingPatchesInstanceCount
public long getApplyingPatchesInstanceCount()
Number of instances that are applying patches.
int64 applying_patches_instance_count = 6;
- Specified by:
getApplyingPatchesInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The applyingPatchesInstanceCount.
-
setApplyingPatchesInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setApplyingPatchesInstanceCount(long value)
Number of instances that are applying patches.
int64 applying_patches_instance_count = 6;
- Parameters:
value
- The applyingPatchesInstanceCount to set.- Returns:
- 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:
- This builder for chaining.
-
getRebootingInstanceCount
public long getRebootingInstanceCount()
Number of instances rebooting.
int64 rebooting_instance_count = 7;
- Specified by:
getRebootingInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The rebootingInstanceCount.
-
setRebootingInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setRebootingInstanceCount(long value)
Number of instances rebooting.
int64 rebooting_instance_count = 7;
- Parameters:
value
- The rebootingInstanceCount to set.- Returns:
- This builder for chaining.
-
clearRebootingInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearRebootingInstanceCount()
Number of instances rebooting.
int64 rebooting_instance_count = 7;
- Returns:
- This builder for chaining.
-
getSucceededInstanceCount
public long getSucceededInstanceCount()
Number of instances that have completed successfully.
int64 succeeded_instance_count = 8;
- Specified by:
getSucceededInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The succeededInstanceCount.
-
setSucceededInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setSucceededInstanceCount(long value)
Number of instances that have completed successfully.
int64 succeeded_instance_count = 8;
- Parameters:
value
- The succeededInstanceCount to set.- Returns:
- This builder for chaining.
-
clearSucceededInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearSucceededInstanceCount()
Number of instances that have completed successfully.
int64 succeeded_instance_count = 8;
- Returns:
- This builder for chaining.
-
getSucceededRebootRequiredInstanceCount
public long getSucceededRebootRequiredInstanceCount()
Number of instances that require reboot.
int64 succeeded_reboot_required_instance_count = 9;
- Specified by:
getSucceededRebootRequiredInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The succeededRebootRequiredInstanceCount.
-
setSucceededRebootRequiredInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setSucceededRebootRequiredInstanceCount(long value)
Number of instances that require reboot.
int64 succeeded_reboot_required_instance_count = 9;
- Parameters:
value
- The succeededRebootRequiredInstanceCount to set.- Returns:
- 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:
- This builder for chaining.
-
getFailedInstanceCount
public long getFailedInstanceCount()
Number of instances that failed.
int64 failed_instance_count = 10;
- Specified by:
getFailedInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The failedInstanceCount.
-
setFailedInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setFailedInstanceCount(long value)
Number of instances that failed.
int64 failed_instance_count = 10;
- Parameters:
value
- The failedInstanceCount to set.- Returns:
- This builder for chaining.
-
clearFailedInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearFailedInstanceCount()
Number of instances that failed.
int64 failed_instance_count = 10;
- Returns:
- This builder for chaining.
-
getAckedInstanceCount
public long getAckedInstanceCount()
Number of instances that have acked and will start shortly.
int64 acked_instance_count = 11;
- Specified by:
getAckedInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The ackedInstanceCount.
-
setAckedInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder setAckedInstanceCount(long value)
Number of instances that have acked and will start shortly.
int64 acked_instance_count = 11;
- Parameters:
value
- The ackedInstanceCount to set.- Returns:
- This builder for chaining.
-
clearAckedInstanceCount
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder clearAckedInstanceCount()
Number of instances that have acked and will start shortly.
int64 acked_instance_count = 11;
- Returns:
- This builder for chaining.
-
getTimedOutInstanceCount
public long getTimedOutInstanceCount()
Number of instances that exceeded the time out while applying the patch.
int64 timed_out_instance_count = 12;
- Specified by:
getTimedOutInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The timedOutInstanceCount.
-
setTimedOutInstanceCount
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;
- Parameters:
value
- The timedOutInstanceCount to set.- Returns:
- 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:
- This builder for chaining.
-
getPrePatchStepInstanceCount
public long getPrePatchStepInstanceCount()
Number of instances that are running the pre-patch step.
int64 pre_patch_step_instance_count = 13;
- Specified by:
getPrePatchStepInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The prePatchStepInstanceCount.
-
setPrePatchStepInstanceCount
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;
- Parameters:
value
- The prePatchStepInstanceCount to set.- Returns:
- 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:
- This builder for chaining.
-
getPostPatchStepInstanceCount
public long getPostPatchStepInstanceCount()
Number of instances that are running the post-patch step.
int64 post_patch_step_instance_count = 14;
- Specified by:
getPostPatchStepInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The postPatchStepInstanceCount.
-
setPostPatchStepInstanceCount
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;
- Parameters:
value
- The postPatchStepInstanceCount to set.- Returns:
- 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:
- This builder for chaining.
-
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;
- Specified by:
getNoAgentDetectedInstanceCount
in interfacePatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder
- Returns:
- The noAgentDetectedInstanceCount.
-
setNoAgentDetectedInstanceCount
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;
- Parameters:
value
- The noAgentDetectedInstanceCount to set.- Returns:
- 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:
- This builder for chaining.
-
setUnknownFields
public final PatchJobs.PatchJob.InstanceDetailsSummary.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
mergeUnknownFields
public final PatchJobs.PatchJob.InstanceDetailsSummary.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.InstanceDetailsSummary.Builder>
-
-