class GPBUtil (View source)

Constants

NANOS_PER_MILLISECOND

NANOS_PER_MICROSECOND

TYPE_URL_PREFIX

Methods

static 
divideInt64ToInt32($value, $high, $low, $trim = false)

No description

static 
checkString($var, $check_utf8)

No description

static 
checkEnum($var)

No description

static 
checkInt32($var)

No description

static 
checkUint32($var)

No description

static 
checkInt64($var)

No description

static 
checkUint64($var)

No description

static 
checkFloat($var)

No description

static 
checkDouble($var)

No description

static 
checkBool($var)

No description

static 
checkMessage($var, $klass, $newClass = null)

No description

static 
checkRepeatedField($var, $type, $klass = null)

No description

static 
checkMapField($var, $key_type, $value_type, $klass = null)

No description

static 
Int64($value)

No description

static 
Uint64($value)

No description

static 
getClassNamePrefix($classname, $file_proto)

No description

static 
getLegacyClassNameWithoutPackage($name, $file_proto)

No description

static 
getClassNameWithoutPackage($name, $file_proto)

No description

static 
getFullClassName($proto, $containing, $file_proto, $message_name_without_package, $classname, $legacy_classname, $fullname, $previous_classname)

No description

static 
combineInt32ToInt64($high, $low)

No description

static 
parseTimestamp($timestamp)

No description

static 
formatTimestamp($value)

No description

static 
parseDuration($value)

No description

static 
formatDuration($value)

No description

static 
parseFieldMask($paths_string)

No description

static 
formatFieldMask($field_mask)

No description

static 
getNanosecondsForTimestamp($nanoseconds)

No description

static 
hasSpecialJsonMapping($msg)

No description

static 
hasJsonValue($msg)

No description

Details

static divideInt64ToInt32($value, $high, $low, $trim = false)

No description

Parameters

$value
$high
$low
$trim

static checkString($var, $check_utf8)

No description

Parameters

$var
$check_utf8

static checkEnum($var)

No description

Parameters

$var

static checkInt32($var)

No description

Parameters

$var

static checkUint32($var)

No description

Parameters

$var

static checkInt64($var)

No description

Parameters

$var

static checkUint64($var)

No description

Parameters

$var

static checkFloat($var)

No description

Parameters

$var

static checkDouble($var)

No description

Parameters

$var

static checkBool($var)

No description

Parameters

$var

static checkMessage($var, $klass, $newClass = null)

No description

Parameters

$var
$klass
$newClass

static checkRepeatedField($var, $type, $klass = null)

No description

Parameters

$var
$type
$klass

static checkMapField($var, $key_type, $value_type, $klass = null)

No description

Parameters

$var
$key_type
$value_type
$klass

static Int64($value)

No description

Parameters

$value

static Uint64($value)

No description

Parameters

$value

static getClassNamePrefix($classname, $file_proto)

No description

Parameters

$classname
$file_proto

static getLegacyClassNameWithoutPackage($name, $file_proto)

No description

Parameters

$name
$file_proto

static getClassNameWithoutPackage($name, $file_proto)

No description

Parameters

$name
$file_proto

static getFullClassName($proto, $containing, $file_proto, $message_name_without_package, $classname, $legacy_classname, $fullname, $previous_classname)

No description

Parameters

$proto
$containing
$file_proto
$message_name_without_package
$classname
$legacy_classname
$fullname
$previous_classname

static combineInt32ToInt64($high, $low)

No description

Parameters

$high
$low

static parseTimestamp($timestamp)

No description

Parameters

$timestamp

static formatTimestamp($value)

No description

Parameters

$value

static parseDuration($value)

No description

Parameters

$value

static formatDuration($value)

No description

Parameters

$value

static parseFieldMask($paths_string)

No description

Parameters

$paths_string

static formatFieldMask($field_mask)

No description

Parameters

$field_mask

static getNanosecondsForTimestamp($nanoseconds)

No description

Parameters

$nanoseconds

static hasSpecialJsonMapping($msg)

No description

Parameters

$msg

static hasJsonValue($msg)

No description

Parameters

$msg