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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PatchJobs.ExecutePatchJobRequest.Builder> implements PatchJobs.ExecutePatchJobRequestOrBuilder
A request message to initiate patching across Compute Engine instances.
Protobuf typegoogle.cloud.osconfig.v1beta.ExecutePatchJobRequest
-
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
getDefaultInstanceForType
public PatchJobs.ExecutePatchJobRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.ExecutePatchJobRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.ExecutePatchJobRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
setField
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
clearField
public PatchJobs.ExecutePatchJobRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
clearOneof
public PatchJobs.ExecutePatchJobRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
setRepeatedField
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
addRepeatedField
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
mergeFrom
public PatchJobs.ExecutePatchJobRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
mergeFrom
public PatchJobs.ExecutePatchJobRequest.Builder mergeFrom(PatchJobs.ExecutePatchJobRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String 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
public PatchJobs.ExecutePatchJobRequest.Builder setParent(String 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 parent to set.- Returns:
- This builder for chaining.
-
clearParent
public PatchJobs.ExecutePatchJobRequest.Builder 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
public String 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
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.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.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
public PatchJobs.PatchInstanceFilter 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
public PatchJobs.ExecutePatchJobRequest.Builder 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
public PatchJobs.PatchInstanceFilter.Builder 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
public PatchJobs.PatchInstanceFilterOrBuilder 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
public PatchJobs.PatchConfig 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
public PatchJobs.ExecutePatchJobRequest.Builder setPatchConfig(PatchJobs.PatchConfig value)
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
public PatchJobs.ExecutePatchJobRequest.Builder mergePatchConfig(PatchJobs.PatchConfig value)
Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
-
clearPatchConfig
public PatchJobs.ExecutePatchJobRequest.Builder clearPatchConfig()
Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
-
getPatchConfigBuilder
public PatchJobs.PatchConfig.Builder getPatchConfigBuilder()
Patch configuration being applied. If omitted, instances are patched using the default configurations.
.google.cloud.osconfig.v1beta.PatchConfig patch_config = 4;
-
getPatchConfigOrBuilder
public PatchJobs.PatchConfigOrBuilder 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
public PatchJobs.ExecutePatchJobRequest.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 = 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
public PatchJobs.ExecutePatchJobRequest.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 = 5;
-
clearDuration
public PatchJobs.ExecutePatchJobRequest.Builder 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
public PatchJobs.ExecutePatchJobRequest.Builder setDryRun(boolean value)
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
public PatchJobs.ExecutePatchJobRequest.Builder 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
public String 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
public PatchJobs.ExecutePatchJobRequest.Builder setDisplayName(String value)
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
public PatchJobs.ExecutePatchJobRequest.Builder 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
public PatchJobs.PatchRollout getRollout()
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9;- Specified by:
getRolloutin interfacePatchJobs.ExecutePatchJobRequestOrBuilder- Returns:
- The rollout.
-
setRollout
public PatchJobs.ExecutePatchJobRequest.Builder setRollout(PatchJobs.PatchRollout value)
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
public PatchJobs.ExecutePatchJobRequest.Builder mergeRollout(PatchJobs.PatchRollout value)
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
-
clearRollout
public PatchJobs.ExecutePatchJobRequest.Builder clearRollout()
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
-
getRolloutBuilder
public PatchJobs.PatchRollout.Builder getRolloutBuilder()
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9;
-
getRolloutOrBuilder
public PatchJobs.PatchRolloutOrBuilder getRolloutOrBuilder()
Rollout strategy of the patch job.
.google.cloud.osconfig.v1beta.PatchRollout rollout = 9;- Specified by:
getRolloutOrBuilderin interfacePatchJobs.ExecutePatchJobRequestOrBuilder
-
setUnknownFields
public final PatchJobs.ExecutePatchJobRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
mergeUnknownFields
public final PatchJobs.ExecutePatchJobRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
-