<?php
namespace google\protobuf\FieldOptions;

// @@protoc_insertion_point(namespace:.google.protobuf.FieldOptions.CType)

/**
 * Generated by the protocol buffer compiler.  DO NOT EDIT!
 * source: google/protobuf/descriptor.proto
 *
 */
class CType extends \ProtocolBuffers\Enum
{
  // @@protoc_insertion_point(traits:.google.protobuf.FieldOptions.CType)
  
  /**
   * Default mode.
   */
  const STRING = 0;
  const CORD = 1;
  const STRING_PIECE = 2;
  
  // @@protoc_insertion_point(const_scope:.google.protobuf.FieldOptions.CType)
  
  // @@protoc_insertion_point(class_scope:.google.protobuf.FieldOptions.CType)
  
  /**
   * @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;
  }
}
