Google\Cloud\Tests\TestLabelsEntry::descriptor PHP Method

descriptor() public static method

public static descriptor ( )
    public static function descriptor()
    {
        $descriptor = new \DrSlump\Protobuf\Descriptor(__CLASS__, 'Google.Cloud.Tests.TestLabelsEntry');
        $f = new \DrSlump\Protobuf\Field();
        $f->number = 1;
        $f->name = "key";
        $f->type = \DrSlump\Protobuf::TYPE_STRING;
        $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
        $descriptor->addField($f);
        $f = new \DrSlump\Protobuf\Field();
        $f->number = 2;
        $f->name = "value";
        $f->type = \DrSlump\Protobuf::TYPE_STRING;
        $f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
        $descriptor->addField($f);
        return $descriptor;
    }