Package com.google.cloud.deploy.v1
Class CanaryDeployment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CanaryDeployment.Builder>
com.google.cloud.deploy.v1.CanaryDeployment.Builder
- All Implemented Interfaces:
CanaryDeploymentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CanaryDeployment
public static final class CanaryDeployment.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CanaryDeployment.Builder>
implements CanaryDeploymentOrBuilder
CanaryDeployment represents the canary deployment configurationProtobuf type
google.cloud.deploy.v1.CanaryDeployment-
Method Summary
Modifier and TypeMethodDescriptionaddAllPercentages(Iterable<? extends Integer> values) Required.addPercentages(int value) Required.build()clear()Required.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetPercentages(int index) Required.intRequired.Required.Optional.Optional.Optional.Optional.Optional.Optional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CanaryDeployment other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePostdeploy(Postdeploy value) Optional.mergePredeploy(Predeploy value) Optional.setPercentages(int index, int value) Required.setPostdeploy(Postdeploy value) Optional.setPostdeploy(Postdeploy.Builder builderForValue) Optional.setPredeploy(Predeploy value) Optional.setPredeploy(Predeploy.Builder builderForValue) Optional.setVerify(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<CanaryDeployment.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<CanaryDeployment.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<CanaryDeployment.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<CanaryDeployment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CanaryDeployment.Builder>
-
mergeFrom
public CanaryDeployment.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<CanaryDeployment.Builder>- Throws:
IOException
-
getPercentagesList
Required. The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 <= n < 100. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 <= n <= 100.
repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPercentagesListin interfaceCanaryDeploymentOrBuilder- Returns:
- A list containing the percentages.
-
getPercentagesCount
public int getPercentagesCount()Required. The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 <= n < 100. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 <= n <= 100.
repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPercentagesCountin interfaceCanaryDeploymentOrBuilder- Returns:
- The count of percentages.
-
getPercentages
public int getPercentages(int index) Required. The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 <= n < 100. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 <= n <= 100.
repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPercentagesin interfaceCanaryDeploymentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The percentages at the given index.
-
setPercentages
Required. The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 <= n < 100. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 <= n <= 100.
repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The percentages to set.- Returns:
- This builder for chaining.
-
addPercentages
Required. The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 <= n < 100. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 <= n <= 100.
repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The percentages to add.- Returns:
- This builder for chaining.
-
addAllPercentages
Required. The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 <= n < 100. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 <= n <= 100.
repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The percentages to add.- Returns:
- This builder for chaining.
-
clearPercentages
Required. The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 <= n < 100. If the GatewayServiceMesh is configured for Kubernetes, then the range for n is 0 <= n <= 100.
repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getVerify
public boolean getVerify()Optional. Whether to run verify tests after each percentage deployment via `skaffold verify`.
bool verify = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVerifyin interfaceCanaryDeploymentOrBuilder- Returns:
- The verify.
-
setVerify
Optional. Whether to run verify tests after each percentage deployment via `skaffold verify`.
bool verify = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The verify to set.- Returns:
- This builder for chaining.
-
clearVerify
Optional. Whether to run verify tests after each percentage deployment via `skaffold verify`.
bool verify = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasPredeploy
public boolean hasPredeploy()Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPredeployin interfaceCanaryDeploymentOrBuilder- Returns:
- Whether the predeploy field is set.
-
getPredeploy
Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredeployin interfaceCanaryDeploymentOrBuilder- Returns:
- The predeploy.
-
setPredeploy
Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setPredeploy
Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergePredeploy
Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearPredeploy
Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getPredeployBuilder
Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getPredeployOrBuilder
Optional. Configuration for the predeploy job of the first phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredeployOrBuilderin interfaceCanaryDeploymentOrBuilder
-
hasPostdeploy
public boolean hasPostdeploy()Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPostdeployin interfaceCanaryDeploymentOrBuilder- Returns:
- Whether the postdeploy field is set.
-
getPostdeploy
Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPostdeployin interfaceCanaryDeploymentOrBuilder- Returns:
- The postdeploy.
-
setPostdeploy
Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setPostdeploy
Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergePostdeploy
Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearPostdeploy
Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getPostdeployBuilder
Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getPostdeployOrBuilder
Optional. Configuration for the postdeploy job of the last phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPostdeployOrBuilderin interfaceCanaryDeploymentOrBuilder
-