Enum Messages.GrpclbRouteType

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<Messages.GrpclbRouteType>
    Enclosing class:
    Messages

    public static enum Messages.GrpclbRouteType
    extends java.lang.Enum<Messages.GrpclbRouteType>
    implements com.google.protobuf.ProtocolMessageEnum
     The type of route that a client took to reach a server w.r.t. gRPCLB.
     The server must fill in "fallback" if it detects that the RPC reached
     the server via the "gRPCLB fallback" path, and "backend" if it detects
     that the RPC reached the server via "gRPCLB backend" path (i.e. if it got
     the address of this server from the gRPCLB server BalanceLoad RPC). Exactly
     how this detection is done is context and server dependent.
     
    Protobuf enum grpc.testing.GrpclbRouteType
    • Enum Constant Detail

      • GRPCLB_ROUTE_TYPE_UNKNOWN

        public static final Messages.GrpclbRouteType GRPCLB_ROUTE_TYPE_UNKNOWN
         Server didn't detect the route that a client took to reach it.
         
        GRPCLB_ROUTE_TYPE_UNKNOWN = 0;
      • GRPCLB_ROUTE_TYPE_FALLBACK

        public static final Messages.GrpclbRouteType GRPCLB_ROUTE_TYPE_FALLBACK
         Indicates that a client reached a server via gRPCLB fallback.
         
        GRPCLB_ROUTE_TYPE_FALLBACK = 1;
      • GRPCLB_ROUTE_TYPE_BACKEND

        public static final Messages.GrpclbRouteType GRPCLB_ROUTE_TYPE_BACKEND
         Indicates that a client reached a server as a gRPCLB-given backend.
         
        GRPCLB_ROUTE_TYPE_BACKEND = 2;
    • Field Detail

      • GRPCLB_ROUTE_TYPE_UNKNOWN_VALUE

        public static final int GRPCLB_ROUTE_TYPE_UNKNOWN_VALUE
         Server didn't detect the route that a client took to reach it.
         
        GRPCLB_ROUTE_TYPE_UNKNOWN = 0;
        See Also:
        Constant Field Values
      • GRPCLB_ROUTE_TYPE_FALLBACK_VALUE

        public static final int GRPCLB_ROUTE_TYPE_FALLBACK_VALUE
         Indicates that a client reached a server via gRPCLB fallback.
         
        GRPCLB_ROUTE_TYPE_FALLBACK = 1;
        See Also:
        Constant Field Values
      • GRPCLB_ROUTE_TYPE_BACKEND_VALUE

        public static final int GRPCLB_ROUTE_TYPE_BACKEND_VALUE
         Indicates that a client reached a server as a gRPCLB-given backend.
         
        GRPCLB_ROUTE_TYPE_BACKEND = 2;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Messages.GrpclbRouteType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Messages.GrpclbRouteType c : Messages.GrpclbRouteType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Messages.GrpclbRouteType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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 Messages.GrpclbRouteType valueOf​(int value)
        Deprecated.
        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:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • forNumber

        public static Messages.GrpclbRouteType 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<Messages.GrpclbRouteType> 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 Messages.GrpclbRouteType valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        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:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null