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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecutePatchJobRequest.Builder>
-
clear
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
getDefaultInstanceForType
public PatchJobs.ExecutePatchJobRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.ExecutePatchJobRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.ExecutePatchJobRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
setField
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
clearField
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
clearOneof
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
setRepeatedField
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
addRepeatedField
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
mergeFrom
public PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
mergeFrom
public PatchJobs.ExecutePatchJobRequest.Builder mergeFrom(PatchJobs.ExecutePatchJobRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
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.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:
getParent
in 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:
getParentBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
hasInstanceFilter
in 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:
getInstanceFilter
in 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:
getInstanceFilterOrBuilder
in 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:
hasPatchConfig
in 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:
getPatchConfig
in 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:
getPatchConfigOrBuilder
in 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:
hasDuration
in 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:
getDuration
in 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:
getDurationOrBuilder
in 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:
getDryRun
in 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:
getDisplayName
in 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:
getDisplayNameBytes
in 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:
hasRollout
in 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:
getRollout
in 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:
getRolloutOrBuilder
in interfacePatchJobs.ExecutePatchJobRequestOrBuilder
-
setUnknownFields
public final PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
mergeUnknownFields
public final PatchJobs.ExecutePatchJobRequest.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.ExecutePatchJobRequest.Builder>
-
-