Enum Class PlanBase

java.lang.Object
java.lang.Enum<PlanBase>
com.buildless.billing.PlanBase
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<PlanBase>, Constable

public enum PlanBase extends Enum<PlanBase> implements com.google.protobuf.ProtocolMessageEnum
 ## Plan: Base

 Describes the marketplace where a plan is made available for Buildless. For example, if a user or organization pays
 for their plan established through GitHub, then `PLAN_GITHUB` is specified within `PlanInfo`.
 
Protobuf enum buildless.billing.PlanBase
  • Enum Constant Details

    • PLAN_BASE_INTERNAL

      public static final PlanBase PLAN_BASE_INTERNAL
       Default value: no plan base specified. In this case, the plan is provided directly by Buildless.
       
      PLAN_BASE_INTERNAL = 0;
    • PLAN_GITHUB

      public static final PlanBase PLAN_GITHUB
       Base: GitHub. The subscriber has a plan which was established through the GitHub Marketplace.
       
      PLAN_GITHUB = 1;
    • UNRECOGNIZED

      public static final PlanBase UNRECOGNIZED
  • Field Details

    • PLAN_BASE_INTERNAL_VALUE

      public static final int PLAN_BASE_INTERNAL_VALUE
       Default value: no plan base specified. In this case, the plan is provided directly by Buildless.
       
      PLAN_BASE_INTERNAL = 0;
      See Also:
    • PLAN_GITHUB_VALUE

      public static final int PLAN_GITHUB_VALUE
       Base: GitHub. The subscriber has a plan which was established through the GitHub Marketplace.
       
      PLAN_GITHUB = 1;
      See Also:
  • Method Details

    • values

      public static PlanBase[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlanBase valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static PlanBase valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static PlanBase forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<PlanBase> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static PlanBase valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null