CloneableInstantiable
Constants
public Google\ApiCore\ApiStatus::ABORTED = 'ABORTED'
public Google\ApiCore\ApiStatus::ALREADY_EXISTS = 'ALREADY_EXISTS'
public Google\ApiCore\ApiStatus::CANCELLED = 'CANCELLED'
public Google\ApiCore\ApiStatus::DATA_LOSS = 'DATA_LOSS'
public Google\ApiCore\ApiStatus::DEADLINE_EXCEEDED = 'DEADLINE_EXCEEDED'
public Google\ApiCore\ApiStatus::FAILED_PRECONDITION = 'FAILED_PRECONDITION'
public Google\ApiCore\ApiStatus::INTERNAL = 'INTERNAL'
public Google\ApiCore\ApiStatus::INVALID_ARGUMENT = 'INVALID_ARGUMENT'
public Google\ApiCore\ApiStatus::NOT_FOUND = 'NOT_FOUND'
public Google\ApiCore\ApiStatus::OK = 'OK'
public Google\ApiCore\ApiStatus::OUT_OF_RANGE = 'OUT_OF_RANGE'
public Google\ApiCore\ApiStatus::PERMISSION_DENIED = 'PERMISSION_DENIED'
public Google\ApiCore\ApiStatus::RESOURCE_EXHAUSTED = 'RESOURCE_EXHAUSTED'
public Google\ApiCore\ApiStatus::UNAUTHENTICATED = 'UNAUTHENTICATED'
public Google\ApiCore\ApiStatus::UNAVAILABLE = 'UNAVAILABLE'
public Google\ApiCore\ApiStatus::UNIMPLEMENTED = 'UNIMPLEMENTED'
public Google\ApiCore\ApiStatus::UNKNOWN = 'UNKNOWN'
public Google\ApiCore\ApiStatus::UNRECOGNIZED_CODE = -1
public Google\ApiCore\ApiStatus::UNRECOGNIZED_STATUS = 'UNRECOGNIZED_STATUS'
Methods
public static isValidStatus( $status)
 


  • return bool
public static rpcCodeFromHttpStatusCode( $httpStatusCode)
 
Maps HTTP status codes to Google\Rpc\Code codes.

Only map codes which do not map to multiple gRPC codes (e.g. excludes
400, 409, and 500).

  • return int
public static rpcCodeFromStatus( $status)
 


  • return int
public static statusFromRpcCode( $code)
 


  • return string
Properties
private static $apiStatusToCodeMap
private static $codeToApiStatusMap
private static $httpStatusCodeToRpcCodeMap
Properties
private static $apiStatusToCodeMap
private static $codeToApiStatusMap
private static $httpStatusCodeToRpcCodeMap
Methods
public static isValidStatus( $status)
 


  • return bool
public static rpcCodeFromHttpStatusCode( $httpStatusCode)
 
Maps HTTP status codes to Google\Rpc\Code codes.

Only map codes which do not map to multiple gRPC codes (e.g. excludes
400, 409, and 500).

  • return int
public static rpcCodeFromStatus( $status)
 


  • return int
public static statusFromRpcCode( $code)
 


  • return string
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only