Class CustomCanaryDeployment.PhaseConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig
All Implemented Interfaces:
CustomCanaryDeployment.PhaseConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
CustomCanaryDeployment

public static final class CustomCanaryDeployment.PhaseConfig extends com.google.protobuf.GeneratedMessage implements CustomCanaryDeployment.PhaseConfigOrBuilder
 PhaseConfig represents the configuration for a phase in the custom
 canary deployment.
 
Protobuf type google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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 interface CustomCanaryDeployment.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 interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      The bytes for phaseId.
    • getPercentage

      public int getPercentage()
       Required. Percentage deployment for the phase.
       
      int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPercentage in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      The percentage.
    • 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:
      getProfilesList in interface CustomCanaryDeployment.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:
      getProfilesCount in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      The count of profiles.
    • getProfiles

      public String getProfiles(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:
      getProfiles in interface CustomCanaryDeployment.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:
      getProfilesBytes in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the profiles at the given index.
    • 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:
      getVerify in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      The verify.
    • 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:
      hasPredeploy in interface CustomCanaryDeployment.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, there will be no predeploy job for this phase.
       
      .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPredeploy in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      The predeploy.
    • getPredeployOrBuilder

      public PredeployOrBuilder 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:
      getPredeployOrBuilder in interface CustomCanaryDeployment.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:
      hasPostdeploy in interface CustomCanaryDeployment.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, there will be no postdeploy job for this phase.
       
      .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPostdeploy in interface CustomCanaryDeployment.PhaseConfigOrBuilder
      Returns:
      The postdeploy.
    • getPostdeployOrBuilder

      public PostdeployOrBuilder 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:
      getPostdeployOrBuilder in interface CustomCanaryDeployment.PhaseConfigOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CustomCanaryDeployment.PhaseConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomCanaryDeployment.PhaseConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomCanaryDeployment.PhaseConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomCanaryDeployment.PhaseConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomCanaryDeployment.PhaseConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomCanaryDeployment.PhaseConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomCanaryDeployment.PhaseConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CustomCanaryDeployment.PhaseConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CustomCanaryDeployment.PhaseConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CustomCanaryDeployment.PhaseConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CustomCanaryDeployment.PhaseConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CustomCanaryDeployment.PhaseConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CustomCanaryDeployment.PhaseConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CustomCanaryDeployment.PhaseConfig.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CustomCanaryDeployment.PhaseConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CustomCanaryDeployment.PhaseConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CustomCanaryDeployment.PhaseConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<CustomCanaryDeployment.PhaseConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CustomCanaryDeployment.PhaseConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder