Package com.google.cloud.osconfig.v1beta
Class PatchJobs.ExecutePatchJobRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
com.google.cloud.osconfig.v1beta.PatchJobs.ExecutePatchJobRequest.Builder
- All Implemented Interfaces:
PatchJobs.ExecutePatchJobRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PatchJobs.ExecutePatchJobRequest
public static final class PatchJobs.ExecutePatchJobRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
implements PatchJobs.ExecutePatchJobRequestOrBuilder
A request message to initiate patching across Compute Engine instances.Protobuf type
google.cloud.osconfig.v1beta.ExecutePatchJobRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Description of the patch job.Display name for this patch job.If this patch is a dry-run only, instances are contacted but will do nothing.Duration of the patch job.Required.Required.Patch configuration being applied.Rollout strategy of the patch job.Description of the patch job.com.google.protobuf.ByteStringDescription of the patch job.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDisplay name for this patch job.com.google.protobuf.ByteStringDisplay name for this patch job.booleanIf this patch is a dry-run only, instances are contacted but will do nothing.com.google.protobuf.DurationDuration of the patch job.com.google.protobuf.Duration.BuilderDuration of the patch job.com.google.protobuf.DurationOrBuilderDuration of the patch job.Required.Required.Required.Required.com.google.protobuf.ByteStringRequired.Patch configuration being applied.Patch configuration being applied.Patch configuration being applied.Rollout strategy of the patch job.Rollout strategy of the patch job.Rollout strategy of the patch job.booleanDuration of the patch job.booleanRequired.booleanPatch configuration being applied.booleanRollout strategy of the patch job.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDuration(com.google.protobuf.Duration value) Duration of the patch job.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.Patch configuration being applied.Rollout strategy of the patch job.setDescription(String value) Description of the patch job.setDescriptionBytes(com.google.protobuf.ByteString value) Description of the patch job.setDisplayName(String value) Display name for this patch job.setDisplayNameBytes(com.google.protobuf.ByteString value) Display name for this patch job.setDryRun(boolean value) If this patch is a dry-run only, instances are contacted but will do nothing.setDuration(com.google.protobuf.Duration value) Duration of the patch job.setDuration(com.google.protobuf.Duration.Builder builderForValue) Duration of the patch job.Required.setInstanceFilter(PatchJobs.PatchInstanceFilter.Builder builderForValue) Required.Required.setParentBytes(com.google.protobuf.ByteString value) Required.Patch configuration being applied.setPatchConfig(PatchJobs.PatchConfig.Builder builderForValue) Patch configuration being applied.setRollout(PatchJobs.PatchRollout value) Rollout strategy of the patch job.setRollout(PatchJobs.PatchRollout.Builder builderForValue) Rollout strategy of the patch job.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.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.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
mergeFrom
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>- Throws:
IOException
-
getParent
Required. The project in which to run this patch in the form `projects/*`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParentin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The project in which to run this patch in the form `projects/*`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParentBytesin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The project in which to run this patch in the form `projects/*`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. The project in which to run this patch in the form `projects/*`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setParentBytes
public PatchJobs.ExecutePatchJobRequest.Builder setParentBytes(com.google.protobuf.ByteString value) Required. The project in which to run this patch in the form `projects/*`
string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getDescription
Description of the patch job. Length of the description is limited to 1024 characters.
string description = 2;- Specified by:
getDescriptionin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- 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.ExecutePatchJobRequestOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
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.ExecutePatchJobRequest.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.
-
hasInstanceFilter
public boolean hasInstanceFilter()Required. Instances to patch, either explicitly or filtered by some criteria such as zone or labels.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasInstanceFilterin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- Whether the instanceFilter field is set.
-
getInstanceFilter
Required. Instances to patch, either explicitly or filtered by some criteria such as zone or labels.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstanceFilterin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- The instanceFilter.
-
setInstanceFilter
public PatchJobs.ExecutePatchJobRequest.Builder setInstanceFilter(PatchJobs.PatchInstanceFilter value) Required. Instances to patch, either explicitly or filtered by some criteria such as zone or labels.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED]; -
setInstanceFilter
public PatchJobs.ExecutePatchJobRequest.Builder setInstanceFilter(PatchJobs.PatchInstanceFilter.Builder builderForValue) Required. Instances to patch, either explicitly or filtered by some criteria such as zone or labels.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED]; -
mergeInstanceFilter
public PatchJobs.ExecutePatchJobRequest.Builder mergeInstanceFilter(PatchJobs.PatchInstanceFilter value) Required. Instances to patch, either explicitly or filtered by some criteria such as zone or labels.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED]; -
clearInstanceFilter
Required. Instances to patch, either explicitly or filtered by some criteria such as zone or labels.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED]; -
getInstanceFilterBuilder
Required. Instances to patch, either explicitly or filtered by some criteria such as zone or labels.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED]; -
getInstanceFilterOrBuilder
Required. Instances to patch, either explicitly or filtered by some criteria such as zone or labels.
.google.cloud.osconfig.v1beta.PatchInstanceFilter instance_filter = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstanceFilterOrBuilderin interfacePatchJobs.ExecutePatchJobRequestOrBuilder
-
hasPatchConfig
public boolean hasPatchConfig()Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;- Specified by:
hasPatchConfigin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- Whether the patchConfig field is set.
-
getPatchConfig
Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;- Specified by:
getPatchConfigin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- The patchConfig.
-
setPatchConfig
Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4; -
setPatchConfig
public PatchJobs.ExecutePatchJobRequest.Builder setPatchConfig(PatchJobs.PatchConfig.Builder builderForValue) Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4; -
mergePatchConfig
Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4; -
clearPatchConfig
Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4; -
getPatchConfigBuilder
Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4; -
getPatchConfigOrBuilder
Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;- Specified by:
getPatchConfigOrBuilderin interfacePatchJobs.ExecutePatchJobRequestOrBuilder
-
hasDuration
public boolean hasDuration()Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 5;- Specified by:
hasDurationin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- 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 = 5;- Specified by:
getDurationin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- The duration.
-
setDuration
Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 5; -
setDuration
public PatchJobs.ExecutePatchJobRequest.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 = 5; -
mergeDuration
Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 5; -
clearDuration
Duration of the patch job. After the duration ends, the patch job times out.
.google.protobuf.Duration duration = 5; -
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 = 5; -
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 = 5;- Specified by:
getDurationOrBuilderin interfacePatchJobs.ExecutePatchJobRequestOrBuilder
-
getDryRun
public boolean getDryRun()If this patch is a dry-run only, instances are contacted but will do nothing.
bool dry_run = 6;- Specified by:
getDryRunin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- The dryRun.
-
setDryRun
If this patch is a dry-run only, instances are contacted but will do nothing.
bool dry_run = 6;- Parameters:
value- The dryRun to set.- Returns:
- This builder for chaining.
-
clearDryRun
If this patch is a dry-run only, instances are contacted but will do nothing.
bool dry_run = 6;- Returns:
- This builder for chaining.
-
getDisplayName
Display name for this patch job. This does not have to be unique.
string display_name = 8;- Specified by:
getDisplayNamein interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Display name for this patch job. This does not have to be unique.
string display_name = 8;- Specified by:
getDisplayNameBytesin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Display name for this patch job. This does not have to be unique.
string display_name = 8;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Display name for this patch job. This does not have to be unique.
string display_name = 8;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public PatchJobs.ExecutePatchJobRequest.Builder setDisplayNameBytes(com.google.protobuf.ByteString value) Display name for this patch job. This does not have to be unique.
string display_name = 8;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
hasRollout
public boolean hasRollout()Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9;- Specified by:
hasRolloutin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- Whether the rollout field is set.
-
getRollout
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9;- Specified by:
getRolloutin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- The rollout.
-
setRollout
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9; -
setRollout
public PatchJobs.ExecutePatchJobRequest.Builder setRollout(PatchJobs.PatchRollout.Builder builderForValue) Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9; -
mergeRollout
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9; -
clearRollout
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9; -
getRolloutBuilder
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9; -
getRolloutOrBuilder
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9;- Specified by:
getRolloutOrBuilderin interfacePatchJobs.ExecutePatchJobRequestOrBuilder
-