Package com.google.cloud.osconfig.v1beta
Class PatchJobs.PatchJob.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
- com.google.cloud.osconfig.v1beta.PatchJobs.PatchJob.Builder
-
- All Implemented Interfaces:
PatchJobs.PatchJobOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PatchJobs.PatchJob
public static final class PatchJobs.PatchJob.Builder extends com.google.protobuf.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](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job).
Protobuf typegoogle.cloud.osconfig.v1beta.PatchJob
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchJobs.PatchJob.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchJobs.PatchJobbuild()PatchJobs.PatchJobbuildPartial()PatchJobs.PatchJob.Builderclear()PatchJobs.PatchJob.BuilderclearCreateTime()Time this patch job was created.PatchJobs.PatchJob.BuilderclearDescription()Description of the patch job.PatchJobs.PatchJob.BuilderclearDisplayName()Display name for this patch job.PatchJobs.PatchJob.BuilderclearDryRun()If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance.PatchJobs.PatchJob.BuilderclearDuration()Duration of the patch job.PatchJobs.PatchJob.BuilderclearErrorMessage()If this patch job failed, this message provides information about the failure.PatchJobs.PatchJob.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PatchJobs.PatchJob.BuilderclearInstanceDetailsSummary()Summary of instance details.PatchJobs.PatchJob.BuilderclearInstanceFilter()Instances to patch.PatchJobs.PatchJob.BuilderclearName()Unique identifier for this patch job in the form `projects/*/patchJobs/*`PatchJobs.PatchJob.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PatchJobs.PatchJob.BuilderclearPatchConfig()Patch configuration being applied.PatchJobs.PatchJob.BuilderclearPatchDeployment()Output only.PatchJobs.PatchJob.BuilderclearPercentComplete()Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete.PatchJobs.PatchJob.BuilderclearRollout()Rollout strategy being applied.PatchJobs.PatchJob.BuilderclearState()The current state of the PatchJob.PatchJobs.PatchJob.BuilderclearUpdateTime()Last time this patch job was updated.PatchJobs.PatchJob.Builderclone()com.google.protobuf.TimestampgetCreateTime()Time this patch job was created.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Time this patch job was created.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Time this patch job was created.PatchJobs.PatchJobgetDefaultInstanceForType()StringgetDescription()Description of the patch job.com.google.protobuf.ByteStringgetDescriptionBytes()Description of the patch job.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Display name for this patch job.com.google.protobuf.ByteStringgetDisplayNameBytes()Display name for this patch job.booleangetDryRun()If this patch job is a dry run, the agent reports that it has finished without running any updates on the VM instance.com.google.protobuf.DurationgetDuration()Duration of the patch job.com.google.protobuf.Duration.BuildergetDurationBuilder()Duration of the patch job.com.google.protobuf.DurationOrBuildergetDurationOrBuilder()Duration of the patch job.StringgetErrorMessage()If this patch job failed, this message provides information about the failure.com.google.protobuf.ByteStringgetErrorMessageBytes()If this patch job failed, this message provides information about the failure.PatchJobs.PatchJob.InstanceDetailsSummarygetInstanceDetailsSummary()Summary of instance details.PatchJobs.PatchJob.InstanceDetailsSummary.BuildergetInstanceDetailsSummaryBuilder()Summary of instance details.PatchJobs.PatchJob.InstanceDetailsSummaryOrBuildergetInstanceDetailsSummaryOrBuilder()Summary of instance details.PatchJobs.PatchInstanceFiltergetInstanceFilter()Instances to patch.PatchJobs.PatchInstanceFilter.BuildergetInstanceFilterBuilder()Instances to patch.PatchJobs.PatchInstanceFilterOrBuildergetInstanceFilterOrBuilder()Instances to patch.StringgetName()Unique identifier for this patch job in the form `projects/*/patchJobs/*`com.google.protobuf.ByteStringgetNameBytes()Unique identifier for this patch job in the form `projects/*/patchJobs/*`PatchJobs.PatchConfiggetPatchConfig()Patch configuration being applied.PatchJobs.PatchConfig.BuildergetPatchConfigBuilder()Patch configuration being applied.PatchJobs.PatchConfigOrBuildergetPatchConfigOrBuilder()Patch configuration being applied.StringgetPatchDeployment()Output only.com.google.protobuf.ByteStringgetPatchDeploymentBytes()Output only.doublegetPercentComplete()Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete.PatchJobs.PatchRolloutgetRollout()Rollout strategy being applied.PatchJobs.PatchRollout.BuildergetRolloutBuilder()Rollout strategy being applied.PatchJobs.PatchRolloutOrBuildergetRolloutOrBuilder()Rollout strategy being applied.PatchJobs.PatchJob.StategetState()The current state of the PatchJob.intgetStateValue()The current state of the PatchJob.com.google.protobuf.TimestampgetUpdateTime()Last time this patch job was updated.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Last time this patch job was updated.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Last time this patch job was updated.booleanhasCreateTime()Time this patch job was created.booleanhasDuration()Duration of the patch job.booleanhasInstanceDetailsSummary()Summary of instance details.booleanhasInstanceFilter()Instances to patch.booleanhasPatchConfig()Patch configuration being applied.booleanhasRollout()Rollout strategy being applied.booleanhasUpdateTime()Last time this patch job was updated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PatchJobs.PatchJob.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Time this patch job was created.PatchJobs.PatchJob.BuildermergeDuration(com.google.protobuf.Duration value)Duration of the patch job.PatchJobs.PatchJob.BuildermergeFrom(PatchJobs.PatchJob other)PatchJobs.PatchJob.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PatchJobs.PatchJob.BuildermergeFrom(com.google.protobuf.Message other)PatchJobs.PatchJob.BuildermergeInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary value)Summary of instance details.PatchJobs.PatchJob.BuildermergeInstanceFilter(PatchJobs.PatchInstanceFilter value)Instances to patch.PatchJobs.PatchJob.BuildermergePatchConfig(PatchJobs.PatchConfig value)Patch configuration being applied.PatchJobs.PatchJob.BuildermergeRollout(PatchJobs.PatchRollout value)Rollout strategy being applied.PatchJobs.PatchJob.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PatchJobs.PatchJob.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Last time this patch job was updated.PatchJobs.PatchJob.BuildersetCreateTime(com.google.protobuf.Timestamp value)Time this patch job was created.PatchJobs.PatchJob.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Time this patch job was created.PatchJobs.PatchJob.BuildersetDescription(String value)Description of the patch job.PatchJobs.PatchJob.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Description of the patch job.PatchJobs.PatchJob.BuildersetDisplayName(String value)Display name for this patch job.PatchJobs.PatchJob.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Display name for this patch job.PatchJobs.PatchJob.BuildersetDryRun(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.PatchJobs.PatchJob.BuildersetDuration(com.google.protobuf.Duration value)Duration of the patch job.PatchJobs.PatchJob.BuildersetDuration(com.google.protobuf.Duration.Builder builderForValue)Duration of the patch job.PatchJobs.PatchJob.BuildersetErrorMessage(String value)If this patch job failed, this message provides information about the failure.PatchJobs.PatchJob.BuildersetErrorMessageBytes(com.google.protobuf.ByteString value)If this patch job failed, this message provides information about the failure.PatchJobs.PatchJob.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchJobs.PatchJob.BuildersetInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary value)Summary of instance details.PatchJobs.PatchJob.BuildersetInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary.Builder builderForValue)Summary of instance details.PatchJobs.PatchJob.BuildersetInstanceFilter(PatchJobs.PatchInstanceFilter value)Instances to patch.PatchJobs.PatchJob.BuildersetInstanceFilter(PatchJobs.PatchInstanceFilter.Builder builderForValue)Instances to patch.PatchJobs.PatchJob.BuildersetName(String value)Unique identifier for this patch job in the form `projects/*/patchJobs/*`PatchJobs.PatchJob.BuildersetNameBytes(com.google.protobuf.ByteString value)Unique identifier for this patch job in the form `projects/*/patchJobs/*`PatchJobs.PatchJob.BuildersetPatchConfig(PatchJobs.PatchConfig value)Patch configuration being applied.PatchJobs.PatchJob.BuildersetPatchConfig(PatchJobs.PatchConfig.Builder builderForValue)Patch configuration being applied.PatchJobs.PatchJob.BuildersetPatchDeployment(String value)Output only.PatchJobs.PatchJob.BuildersetPatchDeploymentBytes(com.google.protobuf.ByteString value)Output only.PatchJobs.PatchJob.BuildersetPercentComplete(double value)Reflects the overall progress of the patch job in the range of 0.0 being no progress to 100.0 being complete.PatchJobs.PatchJob.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PatchJobs.PatchJob.BuildersetRollout(PatchJobs.PatchRollout value)Rollout strategy being applied.PatchJobs.PatchJob.BuildersetRollout(PatchJobs.PatchRollout.Builder builderForValue)Rollout strategy being applied.PatchJobs.PatchJob.BuildersetState(PatchJobs.PatchJob.State value)The current state of the PatchJob.PatchJobs.PatchJob.BuildersetStateValue(int value)The current state of the PatchJob.PatchJobs.PatchJob.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PatchJobs.PatchJob.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Last time this patch job was updated.PatchJobs.PatchJob.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Last time this patch job was updated.-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
clear
public PatchJobs.PatchJob.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
getDefaultInstanceForType
public PatchJobs.PatchJob getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.PatchJob build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.PatchJob buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.PatchJob.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
setField
public PatchJobs.PatchJob.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
clearField
public PatchJobs.PatchJob.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
clearOneof
public PatchJobs.PatchJob.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
setRepeatedField
public PatchJobs.PatchJob.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
addRepeatedField
public PatchJobs.PatchJob.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
mergeFrom
public PatchJobs.PatchJob.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchJob.Builder>
-
mergeFrom
public PatchJobs.PatchJob.Builder mergeFrom(PatchJobs.PatchJob other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
mergeFrom
public PatchJobs.PatchJob.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchJob.Builder>- Throws:
IOException
-
getName
public String getName()
Unique identifier for this patch job in the form `projects/*/patchJobs/*`
string name = 1;- Specified by:
getNamein interfacePatchJobs.PatchJobOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Unique identifier for this patch job in the form `projects/*/patchJobs/*`
string name = 1;- Specified by:
getNameBytesin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The bytes for name.
-
setName
public PatchJobs.PatchJob.Builder setName(String value)
Unique identifier for this patch job in the form `projects/*/patchJobs/*`
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public PatchJobs.PatchJob.Builder clearName()
Unique identifier for this patch job in the form `projects/*/patchJobs/*`
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public PatchJobs.PatchJob.Builder setNameBytes(com.google.protobuf.ByteString value)
Unique identifier for this patch job in the form `projects/*/patchJobs/*`
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Display name for this patch job. This is not a unique identifier.
string display_name = 14;- Specified by:
getDisplayNamein interfacePatchJobs.PatchJobOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Display name for this patch job. This is not a unique identifier.
string display_name = 14;- Specified by:
getDisplayNameBytesin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public PatchJobs.PatchJob.Builder setDisplayName(String value)
Display name for this patch job. This is not a unique identifier.
string display_name = 14;- Parameters:
value- The displayName to set.- Returns:
- 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:
- This builder for chaining.
-
setDisplayNameBytes
public PatchJobs.PatchJob.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Display name for this patch job. This is not a unique identifier.
string display_name = 14;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Description of the patch job. Length of the description is limited to 1024 characters.
string description = 2;- Specified by:
getDescriptionin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Description of the patch job. Length of the description is limited to 1024 characters.
string description = 2;- Specified by:
getDescriptionBytesin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The bytes for description.
-
setDescription
public PatchJobs.PatchJob.Builder setDescription(String value)
Description of the patch job. Length of the description is limited to 1024 characters.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public PatchJobs.PatchJob.Builder clearDescription()
Description of the patch job. Length of the description is limited to 1024 characters.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public PatchJobs.PatchJob.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Description of the patch job. Length of the description is limited to 1024 characters.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Time this patch job was created.
.google.protobuf.Timestamp create_time = 3;- Specified by:
hasCreateTimein interfacePatchJobs.PatchJobOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Time this patch job was created.
.google.protobuf.Timestamp create_time = 3;- Specified by:
getCreateTimein interfacePatchJobs.PatchJobOrBuilder- Returns:
- The createTime.
-
setCreateTime
public PatchJobs.PatchJob.Builder setCreateTime(com.google.protobuf.Timestamp value)
Time this patch job was created.
.google.protobuf.Timestamp create_time = 3;
-
setCreateTime
public PatchJobs.PatchJob.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Time this patch job was created.
.google.protobuf.Timestamp create_time = 3;
-
mergeCreateTime
public PatchJobs.PatchJob.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Time this patch job was created.
.google.protobuf.Timestamp create_time = 3;
-
clearCreateTime
public PatchJobs.PatchJob.Builder clearCreateTime()
Time this patch job was created.
.google.protobuf.Timestamp create_time = 3;
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Time this patch job was created.
.google.protobuf.Timestamp create_time = 3;
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Time this patch job was created.
.google.protobuf.Timestamp create_time = 3;- Specified by:
getCreateTimeOrBuilderin interfacePatchJobs.PatchJobOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Last time this patch job was updated.
.google.protobuf.Timestamp update_time = 4;- Specified by:
hasUpdateTimein interfacePatchJobs.PatchJobOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Last time this patch job was updated.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimein interfacePatchJobs.PatchJobOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public PatchJobs.PatchJob.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Last time this patch job was updated.
.google.protobuf.Timestamp update_time = 4;
-
setUpdateTime
public PatchJobs.PatchJob.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Last time this patch job was updated.
.google.protobuf.Timestamp update_time = 4;
-
mergeUpdateTime
public PatchJobs.PatchJob.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Last time this patch job was updated.
.google.protobuf.Timestamp update_time = 4;
-
clearUpdateTime
public PatchJobs.PatchJob.Builder clearUpdateTime()
Last time this patch job was updated.
.google.protobuf.Timestamp update_time = 4;
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Last time this patch job was updated.
.google.protobuf.Timestamp update_time = 4;
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Last time this patch job was updated.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimeOrBuilderin interfacePatchJobs.PatchJobOrBuilder
-
getStateValue
public int getStateValue()
The current state of the PatchJob.
.google.cloud.osconfig.v1beta.PatchJob.State state = 5;- Specified by:
getStateValuein interfacePatchJobs.PatchJobOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public PatchJobs.PatchJob.Builder setStateValue(int value)
The current state of the PatchJob.
.google.cloud.osconfig.v1beta.PatchJob.State state = 5;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public PatchJobs.PatchJob.State getState()
The current state of the PatchJob.
.google.cloud.osconfig.v1beta.PatchJob.State state = 5;- Specified by:
getStatein interfacePatchJobs.PatchJobOrBuilder- Returns:
- The state.
-
setState
public PatchJobs.PatchJob.Builder setState(PatchJobs.PatchJob.State value)
The current state of the PatchJob.
.google.cloud.osconfig.v1beta.PatchJob.State state = 5;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public PatchJobs.PatchJob.Builder clearState()
The current state of the PatchJob.
.google.cloud.osconfig.v1beta.PatchJob.State state = 5;- Returns:
- This builder for chaining.
-
hasInstanceFilter
public boolean hasInstanceFilter()
Instances to patch.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 13;- Specified by:
hasInstanceFilterin interfacePatchJobs.PatchJobOrBuilder- Returns:
- Whether the instanceFilter field is set.
-
getInstanceFilter
public PatchJobs.PatchInstanceFilter getInstanceFilter()
Instances to patch.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 13;- Specified by:
getInstanceFilterin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The instanceFilter.
-
setInstanceFilter
public PatchJobs.PatchJob.Builder setInstanceFilter(PatchJobs.PatchInstanceFilter value)
Instances to patch.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 13;
-
setInstanceFilter
public PatchJobs.PatchJob.Builder setInstanceFilter(PatchJobs.PatchInstanceFilter.Builder builderForValue)
Instances to patch.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 13;
-
mergeInstanceFilter
public PatchJobs.PatchJob.Builder mergeInstanceFilter(PatchJobs.PatchInstanceFilter value)
Instances to patch.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 13;
-
clearInstanceFilter
public PatchJobs.PatchJob.Builder clearInstanceFilter()
Instances to patch.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 13;
-
getInstanceFilterBuilder
public PatchJobs.PatchInstanceFilter.Builder getInstanceFilterBuilder()
Instances to patch.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 13;
-
getInstanceFilterOrBuilder
public PatchJobs.PatchInstanceFilterOrBuilder getInstanceFilterOrBuilder()
Instances to patch.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 13;- Specified by:
getInstanceFilterOrBuilderin interfacePatchJobs.PatchJobOrBuilder
-
hasPatchConfig
public boolean hasPatchConfig()
Patch configuration being applied.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 7;- Specified by:
hasPatchConfigin interfacePatchJobs.PatchJobOrBuilder- Returns:
- Whether the patchConfig field is set.
-
getPatchConfig
public PatchJobs.PatchConfig getPatchConfig()
Patch configuration being applied.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 7;- Specified by:
getPatchConfigin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The patchConfig.
-
setPatchConfig
public PatchJobs.PatchJob.Builder setPatchConfig(PatchJobs.PatchConfig value)
Patch configuration being applied.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 7;
-
setPatchConfig
public PatchJobs.PatchJob.Builder setPatchConfig(PatchJobs.PatchConfig.Builder builderForValue)
Patch configuration being applied.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 7;
-
mergePatchConfig
public PatchJobs.PatchJob.Builder mergePatchConfig(PatchJobs.PatchConfig value)
Patch configuration being applied.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 7;
-
clearPatchConfig
public PatchJobs.PatchJob.Builder clearPatchConfig()
Patch configuration being applied.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 7;
-
getPatchConfigBuilder
public PatchJobs.PatchConfig.Builder getPatchConfigBuilder()
Patch configuration being applied.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 7;
-
getPatchConfigOrBuilder
public PatchJobs.PatchConfigOrBuilder getPatchConfigOrBuilder()
Patch configuration being applied.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 7;- Specified by:
getPatchConfigOrBuilderin interfacePatchJobs.PatchJobOrBuilder
-
hasDuration
public boolean hasDuration()
Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 8;- Specified by:
hasDurationin interfacePatchJobs.PatchJobOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()
Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 8;- Specified by:
getDurationin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The duration.
-
setDuration
public PatchJobs.PatchJob.Builder setDuration(com.google.protobuf.Duration value)
Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 8;
-
setDuration
public PatchJobs.PatchJob.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 8;
-
mergeDuration
public PatchJobs.PatchJob.Builder mergeDuration(com.google.protobuf.Duration value)
Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 8;
-
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;
-
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()
Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 8;
-
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 8;- Specified by:
getDurationOrBuilderin interfacePatchJobs.PatchJobOrBuilder
-
hasInstanceDetailsSummary
public boolean hasInstanceDetailsSummary()
Summary of instance details.
.google.cloud.osconfig.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;- Specified by:
hasInstanceDetailsSummaryin interfacePatchJobs.PatchJobOrBuilder- Returns:
- Whether the instanceDetailsSummary field is set.
-
getInstanceDetailsSummary
public PatchJobs.PatchJob.InstanceDetailsSummary getInstanceDetailsSummary()
Summary of instance details.
.google.cloud.osconfig.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;- Specified by:
getInstanceDetailsSummaryin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The instanceDetailsSummary.
-
setInstanceDetailsSummary
public PatchJobs.PatchJob.Builder setInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary value)
Summary of instance details.
.google.cloud.osconfig.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
-
setInstanceDetailsSummary
public PatchJobs.PatchJob.Builder setInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary.Builder builderForValue)
Summary of instance details.
.google.cloud.osconfig.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
-
mergeInstanceDetailsSummary
public PatchJobs.PatchJob.Builder mergeInstanceDetailsSummary(PatchJobs.PatchJob.InstanceDetailsSummary value)
Summary of instance details.
.google.cloud.osconfig.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
-
clearInstanceDetailsSummary
public PatchJobs.PatchJob.Builder clearInstanceDetailsSummary()
Summary of instance details.
.google.cloud.osconfig.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
-
getInstanceDetailsSummaryBuilder
public PatchJobs.PatchJob.InstanceDetailsSummary.Builder getInstanceDetailsSummaryBuilder()
Summary of instance details.
.google.cloud.osconfig.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;
-
getInstanceDetailsSummaryOrBuilder
public PatchJobs.PatchJob.InstanceDetailsSummaryOrBuilder getInstanceDetailsSummaryOrBuilder()
Summary of instance details.
.google.cloud.osconfig.v1beta.PatchJob.InstanceDetailsSummary instance_details_summary = 9;- Specified by:
getInstanceDetailsSummaryOrBuilderin interfacePatchJobs.PatchJobOrBuilder
-
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;- Specified by:
getDryRunin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The dryRun.
-
setDryRun
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;- Parameters:
value- The dryRun to set.- Returns:
- 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:
- This builder for chaining.
-
getErrorMessage
public String getErrorMessage()
If this patch job failed, this message provides information about the failure.
string error_message = 11;- Specified by:
getErrorMessagein interfacePatchJobs.PatchJobOrBuilder- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()
If this patch job failed, this message provides information about the failure.
string error_message = 11;- Specified by:
getErrorMessageBytesin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The bytes for errorMessage.
-
setErrorMessage
public PatchJobs.PatchJob.Builder setErrorMessage(String value)
If this patch job failed, this message provides information about the failure.
string error_message = 11;- Parameters:
value- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
public PatchJobs.PatchJob.Builder clearErrorMessage()
If this patch job failed, this message provides information about the failure.
string error_message = 11;- Returns:
- This builder for chaining.
-
setErrorMessageBytes
public PatchJobs.PatchJob.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
If this patch job failed, this message provides information about the failure.
string error_message = 11;- Parameters:
value- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getPercentCompletein interfacePatchJobs.PatchJobOrBuilder- Returns:
- The percentComplete.
-
setPercentComplete
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;- Parameters:
value- The percentComplete to set.- Returns:
- 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:
- This builder for chaining.
-
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];- Specified by:
getPatchDeploymentin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The patchDeployment.
-
getPatchDeploymentBytes
public com.google.protobuf.ByteString getPatchDeploymentBytes()
Output only. Name of the patch deployment that created this patch job.
string patch_deployment = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPatchDeploymentBytesin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The bytes for patchDeployment.
-
setPatchDeployment
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];- Parameters:
value- The patchDeployment to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPatchDeploymentBytes
public PatchJobs.PatchJob.Builder setPatchDeploymentBytes(com.google.protobuf.ByteString value)
Output only. Name of the patch deployment that created this patch job.
string patch_deployment = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for patchDeployment to set.- Returns:
- This builder for chaining.
-
hasRollout
public boolean hasRollout()
Rollout strategy being applied.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 16;- Specified by:
hasRolloutin interfacePatchJobs.PatchJobOrBuilder- Returns:
- Whether the rollout field is set.
-
getRollout
public PatchJobs.PatchRollout getRollout()
Rollout strategy being applied.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 16;- Specified by:
getRolloutin interfacePatchJobs.PatchJobOrBuilder- Returns:
- The rollout.
-
setRollout
public PatchJobs.PatchJob.Builder setRollout(PatchJobs.PatchRollout value)
Rollout strategy being applied.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 16;
-
setRollout
public PatchJobs.PatchJob.Builder setRollout(PatchJobs.PatchRollout.Builder builderForValue)
Rollout strategy being applied.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 16;
-
mergeRollout
public PatchJobs.PatchJob.Builder mergeRollout(PatchJobs.PatchRollout value)
Rollout strategy being applied.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 16;
-
clearRollout
public PatchJobs.PatchJob.Builder clearRollout()
Rollout strategy being applied.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 16;
-
getRolloutBuilder
public PatchJobs.PatchRollout.Builder getRolloutBuilder()
Rollout strategy being applied.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 16;
-
getRolloutOrBuilder
public PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder()
Rollout strategy being applied.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 16;- Specified by:
getRolloutOrBuilderin interfacePatchJobs.PatchJobOrBuilder
-
setUnknownFields
public final PatchJobs.PatchJob.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
mergeUnknownFields
public final PatchJobs.PatchJob.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchJob.Builder>
-
-