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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<CustomCanaryDeployment.PhaseConfig.Builder> implements CustomCanaryDeployment.PhaseConfigOrBuilder
PhaseConfig represents the configuration for a phase in the custom canary deployment.
Protobuf typegoogle.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig
-
-
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<CustomCanaryDeployment.PhaseConfig.Builder>
-
clear
public CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
-
getDefaultInstanceForType
public CustomCanaryDeployment.PhaseConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CustomCanaryDeployment.PhaseConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CustomCanaryDeployment.PhaseConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
-
setField
public CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
-
clearField
public CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
-
clearOneof
public CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
-
setRepeatedField
public CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
-
addRepeatedField
public CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
-
mergeFrom
public CustomCanaryDeployment.PhaseConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomCanaryDeployment.PhaseConfig.Builder>
-
mergeFrom
public CustomCanaryDeployment.PhaseConfig.Builder mergeFrom(CustomCanaryDeployment.PhaseConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomCanaryDeployment.PhaseConfig.Builder>
-
mergeFrom
public CustomCanaryDeployment.PhaseConfig.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<CustomCanaryDeployment.PhaseConfig.Builder>
- Throws:
IOException
-
getPhaseId
public String 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:
getPhaseId
in 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:
getPhaseIdBytes
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
- Returns:
- The bytes for phaseId.
-
setPhaseId
public CustomCanaryDeployment.PhaseConfig.Builder setPhaseId(String 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 phaseId to set.- Returns:
- This builder for chaining.
-
clearPhaseId
public CustomCanaryDeployment.PhaseConfig.Builder 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:
getPercentage
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
- Returns:
- The percentage.
-
setPercentage
public CustomCanaryDeployment.PhaseConfig.Builder setPercentage(int value)
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
public CustomCanaryDeployment.PhaseConfig.Builder 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()
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;
- Specified by:
getProfilesList
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
- Returns:
- A list containing the profiles.
-
getProfilesCount
public int getProfilesCount()
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;
- Specified by:
getProfilesCount
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
- Returns:
- The count of profiles.
-
getProfiles
public String getProfiles(int index)
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;
- Specified by:
getProfiles
in 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)
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;
- Specified by:
getProfilesBytes
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the profiles at the given index.
-
setProfiles
public CustomCanaryDeployment.PhaseConfig.Builder setProfiles(int index, String value)
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;
- Parameters:
index
- The index to set the value at.value
- The profiles to set.- Returns:
- This builder for chaining.
-
addProfiles
public CustomCanaryDeployment.PhaseConfig.Builder addProfiles(String value)
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;
- Parameters:
value
- The profiles to add.- Returns:
- This builder for chaining.
-
addAllProfiles
public CustomCanaryDeployment.PhaseConfig.Builder addAllProfiles(Iterable<String> values)
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;
- Parameters:
values
- The profiles to add.- Returns:
- This builder for chaining.
-
clearProfiles
public CustomCanaryDeployment.PhaseConfig.Builder clearProfiles()
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;
- Returns:
- This builder for chaining.
-
addProfilesBytes
public CustomCanaryDeployment.PhaseConfig.Builder addProfilesBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes of the profiles to add.- Returns:
- This builder for chaining.
-
getVerify
public boolean getVerify()
Whether to run verify tests after the deployment.
bool verify = 4;
- Specified by:
getVerify
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
- Returns:
- The verify.
-
setVerify
public CustomCanaryDeployment.PhaseConfig.Builder setVerify(boolean value)
Whether to run verify tests after the deployment.
bool verify = 4;
- Parameters:
value
- The verify to set.- Returns:
- This builder for chaining.
-
clearVerify
public CustomCanaryDeployment.PhaseConfig.Builder clearVerify()
Whether to run verify tests after the deployment.
bool verify = 4;
- Returns:
- This builder for chaining.
-
hasPredeploy
public boolean hasPredeploy()
Optional. Configuration for the predeploy job of this phase. If this is not configured, predeploy job will not be present for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasPredeploy
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
- Returns:
- Whether the predeploy field is set.
-
getPredeploy
public Predeploy getPredeploy()
Optional. Configuration for the predeploy job of this phase. If this is not configured, predeploy job will not be present for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPredeploy
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
- Returns:
- The predeploy.
-
setPredeploy
public CustomCanaryDeployment.PhaseConfig.Builder setPredeploy(Predeploy value)
Optional. Configuration for the predeploy job of this phase. If this is not configured, predeploy job will not be present for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
-
setPredeploy
public CustomCanaryDeployment.PhaseConfig.Builder setPredeploy(Predeploy.Builder builderForValue)
Optional. Configuration for the predeploy job of this phase. If this is not configured, predeploy job will not be present for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
-
mergePredeploy
public CustomCanaryDeployment.PhaseConfig.Builder mergePredeploy(Predeploy value)
Optional. Configuration for the predeploy job of this phase. If this is not configured, predeploy job will not be present for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
-
clearPredeploy
public CustomCanaryDeployment.PhaseConfig.Builder clearPredeploy()
Optional. Configuration for the predeploy job of this phase. If this is not configured, predeploy job will not be present for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
-
getPredeployBuilder
public Predeploy.Builder getPredeployBuilder()
Optional. Configuration for the predeploy job of this phase. If this is not configured, predeploy job will not be present for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
-
getPredeployOrBuilder
public PredeployOrBuilder getPredeployOrBuilder()
Optional. Configuration for the predeploy job of this phase. If this is not configured, predeploy job will not be present for this phase.
.google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPredeployOrBuilder
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
-
hasPostdeploy
public boolean hasPostdeploy()
Optional. Configuration for the postdeploy job of this phase. If this is not configured, postdeploy job will not be present for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasPostdeploy
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
- Returns:
- Whether the postdeploy field is set.
-
getPostdeploy
public Postdeploy getPostdeploy()
Optional. Configuration for the postdeploy job of this phase. If this is not configured, postdeploy job will not be present for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPostdeploy
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
- Returns:
- The postdeploy.
-
setPostdeploy
public CustomCanaryDeployment.PhaseConfig.Builder setPostdeploy(Postdeploy value)
Optional. Configuration for the postdeploy job of this phase. If this is not configured, postdeploy job will not be present for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
-
setPostdeploy
public CustomCanaryDeployment.PhaseConfig.Builder setPostdeploy(Postdeploy.Builder builderForValue)
Optional. Configuration for the postdeploy job of this phase. If this is not configured, postdeploy job will not be present for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
-
mergePostdeploy
public CustomCanaryDeployment.PhaseConfig.Builder mergePostdeploy(Postdeploy value)
Optional. Configuration for the postdeploy job of this phase. If this is not configured, postdeploy job will not be present for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
-
clearPostdeploy
public CustomCanaryDeployment.PhaseConfig.Builder clearPostdeploy()
Optional. Configuration for the postdeploy job of this phase. If this is not configured, postdeploy job will not be present for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
-
getPostdeployBuilder
public Postdeploy.Builder getPostdeployBuilder()
Optional. Configuration for the postdeploy job of this phase. If this is not configured, postdeploy job will not be present for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
-
getPostdeployOrBuilder
public PostdeployOrBuilder getPostdeployOrBuilder()
Optional. Configuration for the postdeploy job of this phase. If this is not configured, postdeploy job will not be present for this phase.
.google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPostdeployOrBuilder
in interfaceCustomCanaryDeployment.PhaseConfigOrBuilder
-
setUnknownFields
public final CustomCanaryDeployment.PhaseConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomCanaryDeployment.PhaseConfig.Builder>
-
mergeUnknownFields
public final CustomCanaryDeployment.PhaseConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomCanaryDeployment.PhaseConfig.Builder>
-
-