Package com.google.cloud.deploy.v1
Class RollbackTargetRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RollbackTargetRequest.Builder>
com.google.cloud.deploy.v1.RollbackTargetRequest.Builder
- All Implemented Interfaces:
RollbackTargetRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RollbackTargetRequest
public static final class RollbackTargetRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RollbackTargetRequest.Builder>
implements RollbackTargetRequestOrBuilder
The request object for `RollbackTarget`.Protobuf type
google.cloud.deploy.v1.RollbackTargetRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllOverrideDeployPolicy(Iterable<String> values) Optional.addOverrideDeployPolicy(String value) Optional.addOverrideDeployPolicyBytes(com.google.protobuf.ByteString value) Optional.build()clear()Required.Optional.Optional.Optional.Required.Optional.Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.getOverrideDeployPolicy(int index) Optional.com.google.protobuf.ByteStringgetOverrideDeployPolicyBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RollbackTargetRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setOverrideDeployPolicy(int index, String value) Optional.setReleaseId(String value) Optional.setReleaseIdBytes(com.google.protobuf.ByteString value) Optional.Optional.setRollbackConfig(RollbackTargetConfig.Builder builderForValue) Optional.setRolloutId(String value) Required.setRolloutIdBytes(com.google.protobuf.ByteString value) Required.setRolloutToRollBack(String value) Optional.setRolloutToRollBackBytes(com.google.protobuf.ByteString value) Optional.setTargetId(String value) Required.setTargetIdBytes(com.google.protobuf.ByteString value) Required.setValidateOnly(boolean value) Optional.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<RollbackTargetRequest.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<RollbackTargetRequest.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<RollbackTargetRequest.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<RollbackTargetRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RollbackTargetRequest.Builder>
-
mergeFrom
public RollbackTargetRequest.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<RollbackTargetRequest.Builder>- Throws:
IOException
-
getName
Required. The `DeliveryPipeline` for which the rollback `Rollout` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceRollbackTargetRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The `DeliveryPipeline` for which the rollback `Rollout` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceRollbackTargetRequestOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The `DeliveryPipeline` for which the rollback `Rollout` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The `DeliveryPipeline` for which the rollback `Rollout` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
Required. The `DeliveryPipeline` for which the rollback `Rollout` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTargetId
Required. ID of the `Target` that is being rolled back.
string target_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTargetIdin interfaceRollbackTargetRequestOrBuilder- Returns:
- The targetId.
-
getTargetIdBytes
public com.google.protobuf.ByteString getTargetIdBytes()Required. ID of the `Target` that is being rolled back.
string target_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTargetIdBytesin interfaceRollbackTargetRequestOrBuilder- Returns:
- The bytes for targetId.
-
setTargetId
Required. ID of the `Target` that is being rolled back.
string target_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The targetId to set.- Returns:
- This builder for chaining.
-
clearTargetId
Required. ID of the `Target` that is being rolled back.
string target_id = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTargetIdBytes
Required. ID of the `Target` that is being rolled back.
string target_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for targetId to set.- Returns:
- This builder for chaining.
-
getRolloutId
Required. ID of the rollback `Rollout` to create.
string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRolloutIdin interfaceRollbackTargetRequestOrBuilder- Returns:
- The rolloutId.
-
getRolloutIdBytes
public com.google.protobuf.ByteString getRolloutIdBytes()Required. ID of the rollback `Rollout` to create.
string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRolloutIdBytesin interfaceRollbackTargetRequestOrBuilder- Returns:
- The bytes for rolloutId.
-
setRolloutId
Required. ID of the rollback `Rollout` to create.
string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The rolloutId to set.- Returns:
- This builder for chaining.
-
clearRolloutId
Required. ID of the rollback `Rollout` to create.
string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setRolloutIdBytes
Required. ID of the rollback `Rollout` to create.
string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for rolloutId to set.- Returns:
- This builder for chaining.
-
getReleaseId
Optional. ID of the `Release` to roll back to. If this isn't specified, the previous successful `Rollout` to the specified target will be used to determine the `Release`.
string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReleaseIdin interfaceRollbackTargetRequestOrBuilder- Returns:
- The releaseId.
-
getReleaseIdBytes
public com.google.protobuf.ByteString getReleaseIdBytes()Optional. ID of the `Release` to roll back to. If this isn't specified, the previous successful `Rollout` to the specified target will be used to determine the `Release`.
string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReleaseIdBytesin interfaceRollbackTargetRequestOrBuilder- Returns:
- The bytes for releaseId.
-
setReleaseId
Optional. ID of the `Release` to roll back to. If this isn't specified, the previous successful `Rollout` to the specified target will be used to determine the `Release`.
string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The releaseId to set.- Returns:
- This builder for chaining.
-
clearReleaseId
Optional. ID of the `Release` to roll back to. If this isn't specified, the previous successful `Rollout` to the specified target will be used to determine the `Release`.
string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setReleaseIdBytes
Optional. ID of the `Release` to roll back to. If this isn't specified, the previous successful `Rollout` to the specified target will be used to determine the `Release`.
string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for releaseId to set.- Returns:
- This builder for chaining.
-
getRolloutToRollBack
Optional. If provided, this must be the latest `Rollout` that is on the `Target`.
string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRolloutToRollBackin interfaceRollbackTargetRequestOrBuilder- Returns:
- The rolloutToRollBack.
-
getRolloutToRollBackBytes
public com.google.protobuf.ByteString getRolloutToRollBackBytes()Optional. If provided, this must be the latest `Rollout` that is on the `Target`.
string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRolloutToRollBackBytesin interfaceRollbackTargetRequestOrBuilder- Returns:
- The bytes for rolloutToRollBack.
-
setRolloutToRollBack
Optional. If provided, this must be the latest `Rollout` that is on the `Target`.
string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The rolloutToRollBack to set.- Returns:
- This builder for chaining.
-
clearRolloutToRollBack
Optional. If provided, this must be the latest `Rollout` that is on the `Target`.
string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setRolloutToRollBackBytes
public RollbackTargetRequest.Builder setRolloutToRollBackBytes(com.google.protobuf.ByteString value) Optional. If provided, this must be the latest `Rollout` that is on the `Target`.
string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for rolloutToRollBack to set.- Returns:
- This builder for chaining.
-
hasRollbackConfig
public boolean hasRollbackConfig()Optional. Configs for the rollback `Rollout`.
.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRollbackConfigin interfaceRollbackTargetRequestOrBuilder- Returns:
- Whether the rollbackConfig field is set.
-
getRollbackConfig
Optional. Configs for the rollback `Rollout`.
.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRollbackConfigin interfaceRollbackTargetRequestOrBuilder- Returns:
- The rollbackConfig.
-
setRollbackConfig
Optional. Configs for the rollback `Rollout`.
.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setRollbackConfig
public RollbackTargetRequest.Builder setRollbackConfig(RollbackTargetConfig.Builder builderForValue) Optional. Configs for the rollback `Rollout`.
.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRollbackConfig
Optional. Configs for the rollback `Rollout`.
.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearRollbackConfig
Optional. Configs for the rollback `Rollout`.
.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getRollbackConfigBuilder
Optional. Configs for the rollback `Rollout`.
.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getRollbackConfigOrBuilder
Optional. Configs for the rollback `Rollout`.
.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRollbackConfigOrBuilderin interfaceRollbackTargetRequestOrBuilder
-
getValidateOnly
public boolean getValidateOnly()Optional. If set to true, the request is validated and the user is provided with a `RollbackTargetResponse`.
bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getValidateOnlyin interfaceRollbackTargetRequestOrBuilder- Returns:
- The validateOnly.
-
setValidateOnly
Optional. If set to true, the request is validated and the user is provided with a `RollbackTargetResponse`.
bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The validateOnly to set.- Returns:
- This builder for chaining.
-
clearValidateOnly
Optional. If set to true, the request is validated and the user is provided with a `RollbackTargetResponse`.
bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getOverrideDeployPolicyList
public com.google.protobuf.ProtocolStringList getOverrideDeployPolicyList()Optional. Deploy policies to override. Format is `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getOverrideDeployPolicyListin interfaceRollbackTargetRequestOrBuilder- Returns:
- A list containing the overrideDeployPolicy.
-
getOverrideDeployPolicyCount
public int getOverrideDeployPolicyCount()Optional. Deploy policies to override. Format is `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getOverrideDeployPolicyCountin interfaceRollbackTargetRequestOrBuilder- Returns:
- The count of overrideDeployPolicy.
-
getOverrideDeployPolicy
Optional. Deploy policies to override. Format is `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getOverrideDeployPolicyin interfaceRollbackTargetRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The overrideDeployPolicy at the given index.
-
getOverrideDeployPolicyBytes
public com.google.protobuf.ByteString getOverrideDeployPolicyBytes(int index) Optional. Deploy policies to override. Format is `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getOverrideDeployPolicyBytesin interfaceRollbackTargetRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the overrideDeployPolicy at the given index.
-
setOverrideDeployPolicy
Optional. Deploy policies to override. Format is `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
index- The index to set the value at.value- The overrideDeployPolicy to set.- Returns:
- This builder for chaining.
-
addOverrideDeployPolicy
Optional. Deploy policies to override. Format is `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The overrideDeployPolicy to add.- Returns:
- This builder for chaining.
-
addAllOverrideDeployPolicy
Optional. Deploy policies to override. Format is `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
values- The overrideDeployPolicy to add.- Returns:
- This builder for chaining.
-
clearOverrideDeployPolicy
Optional. Deploy policies to override. Format is `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
addOverrideDeployPolicyBytes
public RollbackTargetRequest.Builder addOverrideDeployPolicyBytes(com.google.protobuf.ByteString value) Optional. Deploy policies to override. Format is `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`.repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes of the overrideDeployPolicy to add.- Returns:
- This builder for chaining.
-