OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
google
/
protobuf
/
src
/
Google
/
Protobuf
/
Internal
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
08/12/2024 10:36:21 AM
rwxr-xr-x
π
AnyBase.php
3.23 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
CodedInputStream.php
10.75 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
CodedOutputStream.php
4.03 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
Descriptor.php
5.17 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
DescriptorPool.php
5.35 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
DescriptorProto
-
08/12/2024 10:36:39 AM
rwxr-xr-x
π
DescriptorProto.php
11.7 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
DescriptorProto_ExtensionRange.php
635 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
DescriptorProto_ReservedRange.php
630 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
EnumBuilderContext.php
1.04 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
EnumDescriptor.php
2.69 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
EnumDescriptorProto
-
08/12/2024 10:36:39 AM
rwxr-xr-x
π
EnumDescriptorProto.php
7.02 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
EnumDescriptorProto_EnumReservedRange.php
670 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
EnumOptions.php
8.75 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
EnumValueDescriptorProto.php
3.57 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
EnumValueOptions.php
4.3 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
ExtensionRangeOptions.php
2.31 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
FieldDescriptor.php
7.73 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
FieldDescriptorProto
-
08/12/2024 10:36:39 AM
rwxr-xr-x
π
FieldDescriptorProto.php
21.52 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
FieldDescriptorProto_Label.php
615 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
FieldDescriptorProto_Type.php
610 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
FieldOptions
-
08/12/2024 10:36:39 AM
rwxr-xr-x
π
FieldOptions.php
24.37 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
FieldOptions_CType.php
575 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
FieldOptions_JSType.php
580 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
FileDescriptor.php
1.56 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
FileDescriptorProto.php
17 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
FileDescriptorSet.php
1.94 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
FileOptions
-
08/12/2024 10:36:40 AM
rwxr-xr-x
π
FileOptions.php
40.18 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
FileOptions_OptimizeMode.php
605 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
GPBDecodeException.php
643 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
GPBJsonWire.php
9.51 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
GPBLabel.php
430 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
GPBType.php
822 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
GPBUtil.php
22.14 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
GPBWire.php
16.95 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
GPBWireType.php
556 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
GeneratedCodeInfo
-
08/12/2024 10:36:40 AM
rwxr-xr-x
π
GeneratedCodeInfo.php
2.69 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
GeneratedCodeInfo_Annotation.php
625 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
GetPublicDescriptorTrait.php
504 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
HasPublicDescriptorTrait.php
493 bytes
08/12/2024 10:36:22 AM
rw-r--r--
π
MapEntry.php
1.31 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
MapField.php
7.66 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
MapFieldIter.php
3.1 KB
08/12/2024 10:36:22 AM
rw-r--r--
π
Message.php
74.69 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
MessageBuilderContext.php
2.77 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
MessageOptions.php
19.38 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
MethodDescriptorProto.php
7.7 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
MethodOptions
-
08/12/2024 10:36:40 AM
rwxr-xr-x
π
MethodOptions.php
5.5 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
MethodOptions_IdempotencyLevel.php
635 bytes
08/12/2024 10:36:23 AM
rw-r--r--
π
OneofDescriptor.php
1.58 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
OneofDescriptorProto.php
2.7 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
OneofField.php
1.04 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
OneofOptions.php
2.29 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
RawInputStream.php
557 bytes
08/12/2024 10:36:23 AM
rw-r--r--
π
RepeatedField.php
7.06 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
RepeatedFieldIter.php
2.38 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
ServiceDescriptorProto.php
3.76 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
ServiceOptions.php
4.27 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
SourceCodeInfo
-
08/12/2024 10:36:40 AM
rwxr-xr-x
π
SourceCodeInfo.php
11.99 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
SourceCodeInfo_Location.php
600 bytes
08/12/2024 10:36:23 AM
rw-r--r--
π
TimestampBase.php
795 bytes
08/12/2024 10:36:23 AM
rw-r--r--
π
UninterpretedOption
-
08/12/2024 10:36:40 AM
rwxr-xr-x
π
UninterpretedOption.php
8.67 KB
08/12/2024 10:36:23 AM
rw-r--r--
π
UninterpretedOption_NamePart.php
625 bytes
08/12/2024 10:36:23 AM
rw-r--r--
Editing: AnyBase.php
Close
<?php namespace Google\Protobuf\Internal; /** * Base class for Google\Protobuf\Any, this contains hand-written convenience * methods like pack() and unpack(). */ class AnyBase extends \Google\Protobuf\Internal\Message { const TYPE_URL_PREFIX = 'type.googleapis.com/'; /** * This method will try to resolve the type_url in Any message to get the * targeted message type. If failed, an error will be thrown. Otherwise, * the method will create a message of the targeted type and fill it with * the decoded value in Any. * @return Message unpacked message * @throws \Exception Type url needs to be type.googleapis.com/fully-qualified. * @throws \Exception Class hasn't been added to descriptor pool. * @throws \Exception cannot decode data in value field. */ public function unpack() { // Get fully qualified name from type url. $url_prifix_len = strlen(GPBUtil::TYPE_URL_PREFIX); if (substr($this->type_url, 0, $url_prifix_len) != GPBUtil::TYPE_URL_PREFIX) { throw new \Exception( "Type url needs to be type.googleapis.com/fully-qulified"); } $fully_qualifed_name = substr($this->type_url, $url_prifix_len); // Create message according to fully qualified name. $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool(); $desc = $pool->getDescriptorByProtoName($fully_qualifed_name); if (is_null($desc)) { throw new \Exception("Class ".$fully_qualifed_name ." hasn't been added to descriptor pool"); } $klass = $desc->getClass(); $msg = new $klass(); // Merge data into message. $msg->mergeFromString($this->value); return $msg; } /** * The type_url will be created according to the given messageβs type and * the value is encoded data from the given message.. * @param Message $msg A proto message. */ public function pack($msg) { if (!$msg instanceof Message) { trigger_error("Given parameter is not a message instance.", E_USER_ERROR); return; } // Set value using serialized message. $this->value = $msg->serializeToString(); // Set type url. $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool(); $desc = $pool->getDescriptorByClassName(get_class($msg)); $fully_qualifed_name = $desc->getFullName(); $this->type_url = GPBUtil::TYPE_URL_PREFIX . $fully_qualifed_name; } /** * This method returns whether the type_url in any_message is corresponded * to the given class. * @param string $klass The fully qualified PHP class name of a proto message type. */ public function is($klass) { $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool(); $desc = $pool->getDescriptorByClassName($klass); $fully_qualifed_name = $desc->getFullName(); $type_url = GPBUtil::TYPE_URL_PREFIX . $fully_qualifed_name; return $this->type_url === $type_url; } }