java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind
All Implemented Interfaces:
RolloutKindOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RolloutKind extends com.google.protobuf.GeneratedMessage implements RolloutKindOrBuilder
 An object that describes various settings of Rollout execution. Includes
 built-in policies across GCP and GDC, and customizable policies.
 
Protobuf type google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • UNIT_KIND_FIELD_NUMBER

      public static final int UNIT_KIND_FIELD_NUMBER
      See Also:
    • ROLLOUT_ORCHESTRATION_STRATEGY_FIELD_NUMBER

      public static final int ROLLOUT_ORCHESTRATION_STRATEGY_FIELD_NUMBER
      See Also:
    • UNIT_FILTER_FIELD_NUMBER

      public static final int UNIT_FILTER_FIELD_NUMBER
      See Also:
    • UPDATE_UNIT_KIND_STRATEGY_FIELD_NUMBER

      public static final int UPDATE_UNIT_KIND_STRATEGY_FIELD_NUMBER
      See Also:
    • ERROR_BUDGET_FIELD_NUMBER

      public static final int ERROR_BUDGET_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • ANNOTATIONS_FIELD_NUMBER

      public static final int ANNOTATIONS_FIELD_NUMBER
      See Also:
    • UID_FIELD_NUMBER

      public static final int UID_FIELD_NUMBER
      See Also:
    • ETAG_FIELD_NUMBER

      public static final int ETAG_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Identifier. The resource name (full URI of the resource) following the
       standard naming scheme:
      
       "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface RolloutKindOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name (full URI of the resource) following the
       standard naming scheme:
      
       "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface RolloutKindOrBuilder
      Returns:
      The bytes for name.
    • getUnitKind

      public String getUnitKind()
       Required. Immutable. UnitKind that this rollout kind corresponds to.
       Rollouts stemming from this rollout kind will target the units of this unit
       kind. In other words, this defines the population of target units to be
       upgraded by rollouts.
       
      string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getUnitKind in interface RolloutKindOrBuilder
      Returns:
      The unitKind.
    • getUnitKindBytes

      public com.google.protobuf.ByteString getUnitKindBytes()
       Required. Immutable. UnitKind that this rollout kind corresponds to.
       Rollouts stemming from this rollout kind will target the units of this unit
       kind. In other words, this defines the population of target units to be
       upgraded by rollouts.
       
      string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getUnitKindBytes in interface RolloutKindOrBuilder
      Returns:
      The bytes for unitKind.
    • getRolloutOrchestrationStrategy

      public String getRolloutOrchestrationStrategy()
       Optional. The strategy used for executing a Rollout. This is a required
       field.
      
       There are two supported values strategies which are used to control
       - "Google.Cloud.Simple.AllAtOnce"
       - "Google.Cloud.Simple.OneLocationAtATime"
      
       A rollout with one of these simple strategies will rollout across
       all locations defined in the associated UnitKind's Saas Locations.
       
      string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolloutOrchestrationStrategy in interface RolloutKindOrBuilder
      Returns:
      The rolloutOrchestrationStrategy.
    • getRolloutOrchestrationStrategyBytes

      public com.google.protobuf.ByteString getRolloutOrchestrationStrategyBytes()
       Optional. The strategy used for executing a Rollout. This is a required
       field.
      
       There are two supported values strategies which are used to control
       - "Google.Cloud.Simple.AllAtOnce"
       - "Google.Cloud.Simple.OneLocationAtATime"
      
       A rollout with one of these simple strategies will rollout across
       all locations defined in the associated UnitKind's Saas Locations.
       
      string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRolloutOrchestrationStrategyBytes in interface RolloutKindOrBuilder
      Returns:
      The bytes for rolloutOrchestrationStrategy.
    • getUnitFilter

      public String getUnitFilter()
       Optional. CEL(https://github.com/google/cel-spec) formatted filter string
       against Unit. The filter will be applied to determine the eligible unit
       population. This filter can only reduce, but not expand the scope of the
       rollout.
       
      string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUnitFilter in interface RolloutKindOrBuilder
      Returns:
      The unitFilter.
    • getUnitFilterBytes

      public com.google.protobuf.ByteString getUnitFilterBytes()
       Optional. CEL(https://github.com/google/cel-spec) formatted filter string
       against Unit. The filter will be applied to determine the eligible unit
       population. This filter can only reduce, but not expand the scope of the
       rollout.
       
      string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUnitFilterBytes in interface RolloutKindOrBuilder
      Returns:
      The bytes for unitFilter.
    • getUpdateUnitKindStrategyValue

      public int getUpdateUnitKindStrategyValue()
       Optional. The config for updating the unit kind. By default, the unit kind
       will be updated on the rollout start.
       
      .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateUnitKindStrategyValue in interface RolloutKindOrBuilder
      Returns:
      The enum numeric value on the wire for updateUnitKindStrategy.
    • getUpdateUnitKindStrategy

      public RolloutKind.UpdateUnitKindStrategy getUpdateUnitKindStrategy()
       Optional. The config for updating the unit kind. By default, the unit kind
       will be updated on the rollout start.
       
      .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateUnitKindStrategy in interface RolloutKindOrBuilder
      Returns:
      The updateUnitKindStrategy.
    • hasErrorBudget

      public boolean hasErrorBudget()
       Optional. The configuration for error budget. If the number of failed units
       exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
       be paused. If not set, all units will be attempted to be updated regardless
       of the number of failures encountered.
       
      optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasErrorBudget in interface RolloutKindOrBuilder
      Returns:
      Whether the errorBudget field is set.
    • getErrorBudget

      public ErrorBudget getErrorBudget()
       Optional. The configuration for error budget. If the number of failed units
       exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
       be paused. If not set, all units will be attempted to be updated regardless
       of the number of failures encountered.
       
      optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getErrorBudget in interface RolloutKindOrBuilder
      Returns:
      The errorBudget.
    • getErrorBudgetOrBuilder

      public ErrorBudgetOrBuilder getErrorBudgetOrBuilder()
       Optional. The configuration for error budget. If the number of failed units
       exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
       be paused. If not set, all units will be attempted to be updated regardless
       of the number of failures encountered.
       
      optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getErrorBudgetOrBuilder in interface RolloutKindOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: RolloutKindOrBuilder
       Optional. The labels on the resource, which can be used for categorization.
       similar to Kubernetes resource labels.
       
      map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface RolloutKindOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. The labels on the resource, which can be used for categorization.
       similar to Kubernetes resource labels.
       
      map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface RolloutKindOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface RolloutKindOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. The labels on the resource, which can be used for categorization.
       similar to Kubernetes resource labels.
       
      map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface RolloutKindOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. The labels on the resource, which can be used for categorization.
       similar to Kubernetes resource labels.
       
      map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface RolloutKindOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. The labels on the resource, which can be used for categorization.
       similar to Kubernetes resource labels.
       
      map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface RolloutKindOrBuilder
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: RolloutKindOrBuilder
       Optional. Annotations is an unstructured key-value map stored with a
       resource that may be set by external tools to store and retrieve arbitrary
       metadata. They are not queryable and should be preserved when modifying
       objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface RolloutKindOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. Annotations is an unstructured key-value map stored with a
       resource that may be set by external tools to store and retrieve arbitrary
       metadata. They are not queryable and should be preserved when modifying
       objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface RolloutKindOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface RolloutKindOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. Annotations is an unstructured key-value map stored with a
       resource that may be set by external tools to store and retrieve arbitrary
       metadata. They are not queryable and should be preserved when modifying
       objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface RolloutKindOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. Annotations is an unstructured key-value map stored with a
       resource that may be set by external tools to store and retrieve arbitrary
       metadata. They are not queryable and should be preserved when modifying
       objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface RolloutKindOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. Annotations is an unstructured key-value map stored with a
       resource that may be set by external tools to store and retrieve arbitrary
       metadata. They are not queryable and should be preserved when modifying
       objects.
      
       More info: https://kubernetes.io/docs/user-guide/annotations
       
      map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface RolloutKindOrBuilder
    • getUid

      public String getUid()
       Output only. The unique identifier of the resource. UID is unique in the
       time and space for this resource within the scope of the service. It is
       typically generated by the server on successful creation of a resource
       and must not be changed. UID is used to uniquely identify resources
       with resource name reuses. This should be a UUID4.
       
      string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface RolloutKindOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. The unique identifier of the resource. UID is unique in the
       time and space for this resource within the scope of the service. It is
       typically generated by the server on successful creation of a resource
       and must not be changed. UID is used to uniquely identify resources
       with resource name reuses. This should be a UUID4.
       
      string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface RolloutKindOrBuilder
      Returns:
      The bytes for uid.
    • getEtag

      public String getEtag()
       Output only. An opaque value that uniquely identifies a version or
       generation of a resource. It can be used to confirm that the client
       and server agree on the ordering of a resource being written.
       
      string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtag in interface RolloutKindOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Output only. An opaque value that uniquely identifies a version or
       generation of a resource. It can be used to confirm that the client
       and server agree on the ordering of a resource being written.
       
      string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtagBytes in interface RolloutKindOrBuilder
      Returns:
      The bytes for etag.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface RolloutKindOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface RolloutKindOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface RolloutKindOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when the resource was last updated. Any
       change to the resource made by users must refresh this value.
       Changes to a resource made by the service should refresh this value.
       
      .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface RolloutKindOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the resource was last updated. Any
       change to the resource made by users must refresh this value.
       Changes to a resource made by the service should refresh this value.
       
      .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface RolloutKindOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the resource was last updated. Any
       change to the resource made by users must refresh this value.
       Changes to a resource made by the service should refresh this value.
       
      .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface RolloutKindOrBuilder
    • 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 RolloutKind parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static RolloutKind.Builder newBuilder()
    • newBuilder

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

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

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

      public static RolloutKind getDefaultInstance()
    • parser

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

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