Enum Transport

java.lang.Object
java.lang.Enum<Transport>
com.google.api.generator.gapic.model.Transport
All Implemented Interfaces:
Serializable, Comparable<Transport>

public enum Transport extends Enum<Transport>
  • Enum Constant Details

    • REST

      public static final Transport REST
    • GRPC

      public static final Transport GRPC
    • GRPC_REST

      public static final Transport GRPC_REST
  • Method Details

    • values

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

      public static Transport valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      public static Transport parse(String name)
      Parse the input and return the corresponding Transport enum
      Parameters:
      name - Transport name
      Returns:
      the Transport enum matching the name parameter