Class RolloutOptions

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1beta1.RolloutOptions
All Implemented Interfaces:
RolloutOptionsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RolloutOptions extends com.google.protobuf.GeneratedMessage implements RolloutOptionsOrBuilder
 Configuration for rolling deployments.
 
Protobuf type google.cloud.aiplatform.v1beta1.RolloutOptions
See Also:
  • Field Details

    • MAX_UNAVAILABLE_REPLICAS_FIELD_NUMBER

      public static final int MAX_UNAVAILABLE_REPLICAS_FIELD_NUMBER
      See Also:
    • MAX_UNAVAILABLE_PERCENTAGE_FIELD_NUMBER

      public static final int MAX_UNAVAILABLE_PERCENTAGE_FIELD_NUMBER
      See Also:
    • MAX_SURGE_REPLICAS_FIELD_NUMBER

      public static final int MAX_SURGE_REPLICAS_FIELD_NUMBER
      See Also:
    • MAX_SURGE_PERCENTAGE_FIELD_NUMBER

      public static final int MAX_SURGE_PERCENTAGE_FIELD_NUMBER
      See Also:
    • PREVIOUS_DEPLOYED_MODEL_FIELD_NUMBER

      public static final int PREVIOUS_DEPLOYED_MODEL_FIELD_NUMBER
      See Also:
    • REVISION_NUMBER_FIELD_NUMBER

      public static final int REVISION_NUMBER_FIELD_NUMBER
      See Also:
  • 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
    • getMaxUnavailableCase

      public RolloutOptions.MaxUnavailableCase getMaxUnavailableCase()
      Specified by:
      getMaxUnavailableCase in interface RolloutOptionsOrBuilder
    • getMaxSurgeCase

      public RolloutOptions.MaxSurgeCase getMaxSurgeCase()
      Specified by:
      getMaxSurgeCase in interface RolloutOptionsOrBuilder
    • hasMaxUnavailableReplicas

      public boolean hasMaxUnavailableReplicas()
       Absolute count of replicas allowed to be unavailable.
       
      int32 max_unavailable_replicas = 3;
      Specified by:
      hasMaxUnavailableReplicas in interface RolloutOptionsOrBuilder
      Returns:
      Whether the maxUnavailableReplicas field is set.
    • getMaxUnavailableReplicas

      public int getMaxUnavailableReplicas()
       Absolute count of replicas allowed to be unavailable.
       
      int32 max_unavailable_replicas = 3;
      Specified by:
      getMaxUnavailableReplicas in interface RolloutOptionsOrBuilder
      Returns:
      The maxUnavailableReplicas.
    • hasMaxUnavailablePercentage

      public boolean hasMaxUnavailablePercentage()
       Percentage of replicas allowed to be unavailable.
       For autoscaling deployments, this refers to the target replica count.
       
      int32 max_unavailable_percentage = 4;
      Specified by:
      hasMaxUnavailablePercentage in interface RolloutOptionsOrBuilder
      Returns:
      Whether the maxUnavailablePercentage field is set.
    • getMaxUnavailablePercentage

      public int getMaxUnavailablePercentage()
       Percentage of replicas allowed to be unavailable.
       For autoscaling deployments, this refers to the target replica count.
       
      int32 max_unavailable_percentage = 4;
      Specified by:
      getMaxUnavailablePercentage in interface RolloutOptionsOrBuilder
      Returns:
      The maxUnavailablePercentage.
    • hasMaxSurgeReplicas

      public boolean hasMaxSurgeReplicas()
       Absolute count of allowed additional replicas.
       
      int32 max_surge_replicas = 5;
      Specified by:
      hasMaxSurgeReplicas in interface RolloutOptionsOrBuilder
      Returns:
      Whether the maxSurgeReplicas field is set.
    • getMaxSurgeReplicas

      public int getMaxSurgeReplicas()
       Absolute count of allowed additional replicas.
       
      int32 max_surge_replicas = 5;
      Specified by:
      getMaxSurgeReplicas in interface RolloutOptionsOrBuilder
      Returns:
      The maxSurgeReplicas.
    • hasMaxSurgePercentage

      public boolean hasMaxSurgePercentage()
       Percentage of allowed additional replicas.
       For autoscaling deployments, this refers to the target replica count.
       
      int32 max_surge_percentage = 6;
      Specified by:
      hasMaxSurgePercentage in interface RolloutOptionsOrBuilder
      Returns:
      Whether the maxSurgePercentage field is set.
    • getMaxSurgePercentage

      public int getMaxSurgePercentage()
       Percentage of allowed additional replicas.
       For autoscaling deployments, this refers to the target replica count.
       
      int32 max_surge_percentage = 6;
      Specified by:
      getMaxSurgePercentage in interface RolloutOptionsOrBuilder
      Returns:
      The maxSurgePercentage.
    • getPreviousDeployedModel

      public String getPreviousDeployedModel()
       ID of the DeployedModel that this deployment should replace.
       
      string previous_deployed_model = 1;
      Specified by:
      getPreviousDeployedModel in interface RolloutOptionsOrBuilder
      Returns:
      The previousDeployedModel.
    • getPreviousDeployedModelBytes

      public com.google.protobuf.ByteString getPreviousDeployedModelBytes()
       ID of the DeployedModel that this deployment should replace.
       
      string previous_deployed_model = 1;
      Specified by:
      getPreviousDeployedModelBytes in interface RolloutOptionsOrBuilder
      Returns:
      The bytes for previousDeployedModel.
    • getRevisionNumber

      public int getRevisionNumber()
       Output only. Read-only. Revision number determines the relative priority of
       DeployedModels in the same rollout. The DeployedModel with the largest
       revision number specifies the intended state of the deployment.
       
      int32 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionNumber in interface RolloutOptionsOrBuilder
      Returns:
      The revisionNumber.
    • 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 RolloutOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static RolloutOptions parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static RolloutOptions parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static RolloutOptions.Builder newBuilder()
    • newBuilder

      public static RolloutOptions.Builder newBuilder(RolloutOptions prototype)
    • toBuilder

      public RolloutOptions.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static RolloutOptions getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<RolloutOptions> 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 RolloutOptions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder