コード例 #1
0
ファイル: PrefixType.php プロジェクト: cminatti/phpGSB
 /**
  * @return \ProtocolBuffers\EnumDescriptor
  */
 public static function getEnumDescriptor()
 {
     static $descriptor;
     if (!$descriptor) {
         $builder = new \ProtocolBuffers\EnumDescriptorBuilder();
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::PREFIX_4B, "name" => 'PREFIX_4B')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::FULL_32B, "name" => 'FULL_32B')));
         // @@protoc_insertion_point(builder_scope:.ChunkData.PrefixType)
         $descriptor = $builder->build();
     }
     return $descriptor;
 }
コード例 #2
0
ファイル: Style.php プロジェクト: melanc/devel
 /**
  * @return \ProtocolBuffers\EnumDescriptor
  */
 public static function getEnumDescriptor()
 {
     static $descriptor;
     if (!$descriptor) {
         $builder = new \ProtocolBuffers\EnumDescriptorBuilder();
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::PSR4, "name" => 'PSR4')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::PEAR, "name" => 'PEAR')));
         // @@protoc_insertion_point(builder_scope:.PHPFileOptions.Style)
         $descriptor = $builder->build();
     }
     return $descriptor;
 }
コード例 #3
0
ファイル: ChunkType.php プロジェクト: cminatti/phpGSB
 /**
  * @return \ProtocolBuffers\EnumDescriptor
  */
 public static function getEnumDescriptor()
 {
     static $descriptor;
     if (!$descriptor) {
         $builder = new \ProtocolBuffers\EnumDescriptorBuilder();
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::ADD, "name" => 'ADD')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::SUB, "name" => 'SUB')));
         // @@protoc_insertion_point(builder_scope:.ChunkData.ChunkType)
         $descriptor = $builder->build();
     }
     return $descriptor;
 }
コード例 #4
0
ファイル: Label.php プロジェクト: melanc/devel
 /**
  * @return \ProtocolBuffers\EnumDescriptor
  */
 public static function getEnumDescriptor()
 {
     static $descriptor;
     if (!$descriptor) {
         $builder = new \ProtocolBuffers\EnumDescriptorBuilder();
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::LABEL_OPTIONAL, "name" => 'LABEL_OPTIONAL')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::LABEL_REQUIRED, "name" => 'LABEL_REQUIRED')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::LABEL_REPEATED, "name" => 'LABEL_REPEATED')));
         // @@protoc_insertion_point(builder_scope:.google.protobuf.FieldDescriptorProto.Label)
         $descriptor = $builder->build();
     }
     return $descriptor;
 }
コード例 #5
0
ファイル: OptimizeMode.php プロジェクト: melanc/devel
 /**
  * @return \ProtocolBuffers\EnumDescriptor
  */
 public static function getEnumDescriptor()
 {
     static $descriptor;
     if (!$descriptor) {
         $builder = new \ProtocolBuffers\EnumDescriptorBuilder();
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::SPEED, "name" => 'SPEED')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::CODE_SIZE, "name" => 'CODE_SIZE')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::LITE_RUNTIME, "name" => 'LITE_RUNTIME')));
         // @@protoc_insertion_point(builder_scope:.google.protobuf.FileOptions.OptimizeMode)
         $descriptor = $builder->build();
     }
     return $descriptor;
 }
コード例 #6
0
ファイル: CType.php プロジェクト: melanc/devel
 /**
  * @return \ProtocolBuffers\EnumDescriptor
  */
 public static function getEnumDescriptor()
 {
     static $descriptor;
     if (!$descriptor) {
         $builder = new \ProtocolBuffers\EnumDescriptorBuilder();
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::STRING, "name" => 'STRING')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::CORD, "name" => 'CORD')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::STRING_PIECE, "name" => 'STRING_PIECE')));
         // @@protoc_insertion_point(builder_scope:.google.protobuf.FieldOptions.CType)
         $descriptor = $builder->build();
     }
     return $descriptor;
 }
コード例 #7
0
ファイル: Type.php プロジェクト: melanc/devel
 /**
  * @return \ProtocolBuffers\EnumDescriptor
  */
 public static function getEnumDescriptor()
 {
     static $descriptor;
     if (!$descriptor) {
         $builder = new \ProtocolBuffers\EnumDescriptorBuilder();
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_DOUBLE, "name" => 'TYPE_DOUBLE')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_FLOAT, "name" => 'TYPE_FLOAT')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_INT64, "name" => 'TYPE_INT64')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_UINT64, "name" => 'TYPE_UINT64')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_INT32, "name" => 'TYPE_INT32')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_FIXED64, "name" => 'TYPE_FIXED64')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_FIXED32, "name" => 'TYPE_FIXED32')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_BOOL, "name" => 'TYPE_BOOL')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_STRING, "name" => 'TYPE_STRING')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_GROUP, "name" => 'TYPE_GROUP')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_MESSAGE, "name" => 'TYPE_MESSAGE')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_BYTES, "name" => 'TYPE_BYTES')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_UINT32, "name" => 'TYPE_UINT32')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_ENUM, "name" => 'TYPE_ENUM')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_SFIXED32, "name" => 'TYPE_SFIXED32')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_SFIXED64, "name" => 'TYPE_SFIXED64')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_SINT32, "name" => 'TYPE_SINT32')));
         $builder->addValue(new \ProtocolBuffers\EnumValueDescriptor(array("value" => self::TYPE_SINT64, "name" => 'TYPE_SINT64')));
         // @@protoc_insertion_point(builder_scope:.google.protobuf.FieldDescriptorProto.Type)
         $descriptor = $builder->build();
     }
     return $descriptor;
 }