Package com.google.cloud.deploy.v1
Class CustomCanaryDeployment.PhaseConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomCanaryDeployment.PhaseConfig.Builder>
com.google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig.Builder
- All Implemented Interfaces:
CustomCanaryDeployment.PhaseConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomCanaryDeployment.PhaseConfig
public static final class CustomCanaryDeployment.PhaseConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomCanaryDeployment.PhaseConfig.Builder>
implements CustomCanaryDeployment.PhaseConfigOrBuilder
PhaseConfig represents the configuration for a phase in the custom canary deployment.Protobuf type
google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllProfiles(Iterable<String> values) Optional.addProfiles(String value) Optional.addProfilesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Required.Required.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintRequired.Required.com.google.protobuf.ByteStringRequired.Optional.Optional.Optional.Optional.Optional.Optional.getProfiles(int index) Optional.com.google.protobuf.ByteStringgetProfilesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePostdeploy(Postdeploy value) Optional.mergePredeploy(Predeploy value) Optional.setPercentage(int value) Required.setPhaseId(String value) Required.setPhaseIdBytes(com.google.protobuf.ByteString value) Required.setPostdeploy(Postdeploy value) Optional.setPostdeploy(Postdeploy.Builder builderForValue) Optional.setPredeploy(Predeploy value) Optional.setPredeploy(Predeploy.Builder builderForValue) Optional.setProfiles(int index, String value) 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<CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
-
mergeFrom
public CustomCanaryDeployment.PhaseConfig.Builder mergeFrom(CustomCanaryDeployment.PhaseConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomCanaryDeployment.PhaseConfig.Builder>
-
mergeFrom
public CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>- Throws:
IOException
-
getPhaseId
Required. The ID to assign to the `Rollout` phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPhaseIdin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Returns:
- The phaseId.
-
getPhaseIdBytes
public com.google.protobuf.ByteString getPhaseIdBytes()Required. The ID to assign to the `Rollout` phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPhaseIdBytesin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Returns:
- The bytes for phaseId.
-
setPhaseId
Required. The ID to assign to the `Rollout` phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The phaseId to set.- Returns:
- This builder for chaining.
-
clearPhaseId
Required. The ID to assign to the `Rollout` phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setPhaseIdBytes
public CustomCanaryDeployment.PhaseConfig.Builder setPhaseIdBytes(com.google.protobuf.ByteString value) Required. The ID to assign to the `Rollout` phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.string phase_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for phaseId to set.- Returns:
- This builder for chaining.
-
getPercentage
public int getPercentage()Required. Percentage deployment for the phase.
int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPercentagein interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Returns:
- The percentage.
-
setPercentage
Required. Percentage deployment for the phase.
int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The percentage to set.- Returns:
- This builder for chaining.
-
clearPercentage
Required. Percentage deployment for the phase.
int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getProfilesList
public com.google.protobuf.ProtocolStringList getProfilesList()Optional. Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the `DeliveryPipeline` stage.
repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProfilesListin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Returns:
- A list containing the profiles.
-
getProfilesCount
public int getProfilesCount()Optional. Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the `DeliveryPipeline` stage.
repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProfilesCountin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Returns:
- The count of profiles.
-
getProfiles
Optional. Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the `DeliveryPipeline` stage.
repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProfilesin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The profiles at the given index.
-
getProfilesBytes
public com.google.protobuf.ByteString getProfilesBytes(int index) Optional. Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the `DeliveryPipeline` stage.
repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProfilesBytesin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the profiles at the given index.
-
setProfiles
Optional. Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the `DeliveryPipeline` stage.
repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The profiles to set.- Returns:
- This builder for chaining.
-
addProfiles
Optional. Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the `DeliveryPipeline` stage.
repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The profiles to add.- Returns:
- This builder for chaining.
-
addAllProfiles
Optional. Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the `DeliveryPipeline` stage.
repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The profiles to add.- Returns:
- This builder for chaining.
-
clearProfiles
Optional. Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the `DeliveryPipeline` stage.
repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addProfilesBytes
public CustomCanaryDeployment.PhaseConfig.Builder addProfilesBytes(com.google.protobuf.ByteString value) Optional. Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the `DeliveryPipeline` stage.
repeated string profiles = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the profiles to add.- Returns:
- This builder for chaining.
-
getVerify
public boolean getVerify()Optional. Whether to run verify tests after the deployment via `skaffold verify`.
bool verify = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVerifyin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Returns:
- The verify.
-
setVerify
Optional. Whether to run verify tests after the deployment via `skaffold verify`.
bool verify = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The verify to set.- Returns:
- This builder for chaining.
-
clearVerify
Optional. Whether to run verify tests after the deployment via `skaffold verify`.
bool verify = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasPredeploy
public boolean hasPredeploy()Optional. Configuration for the predeploy job of this phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPredeployin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Returns:
- Whether the predeploy field is set.
-
getPredeploy
Optional. Configuration for the predeploy job of this phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredeployin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Returns:
- The predeploy.
-
setPredeploy
Optional. Configuration for the predeploy job of this phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setPredeploy
Optional. Configuration for the predeploy job of this phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
mergePredeploy
Optional. Configuration for the predeploy job of this phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearPredeploy
Optional. Configuration for the predeploy job of this phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getPredeployBuilder
Optional. Configuration for the predeploy job of this phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getPredeployOrBuilder
Optional. Configuration for the predeploy job of this phase. If this is not configured, there will be no predeploy job for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredeployOrBuilderin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
-
hasPostdeploy
public boolean hasPostdeploy()Optional. Configuration for the postdeploy job of this phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPostdeployin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Returns:
- Whether the postdeploy field is set.
-
getPostdeploy
Optional. Configuration for the postdeploy job of this phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPostdeployin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder- Returns:
- The postdeploy.
-
setPostdeploy
Optional. Configuration for the postdeploy job of this phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setPostdeploy
Optional. Configuration for the postdeploy job of this phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; -
mergePostdeploy
Optional. Configuration for the postdeploy job of this phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearPostdeploy
Optional. Configuration for the postdeploy job of this phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getPostdeployBuilder
Optional. Configuration for the postdeploy job of this phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getPostdeployOrBuilder
Optional. Configuration for the postdeploy job of this phase. If this is not configured, there will be no postdeploy job for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPostdeployOrBuilderin interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
-