original_docstring: Check if this property value can be stored.
  
    Args:
      name: name of the property
      value: entity_pb.PropertyValue
      max_length: maximum length for string values
  
    Raises:
      apiproxy_errors.ApplicationError: if the property is invalid
    
docstring: Check if this property value can be stored.
docstring_tokens: Check if this property value can be stored .
code: def CheckPropertyValue(name, value, max_length):
    """Check if this property value can be stored.
  
    Args:
      name: name of the property
      value: entity_pb.PropertyValue
      max_length: maximum length for string values
  
    Raises:
      apiproxy_errors.ApplicationError: if the property is invalid
    """
    num_values = (value.has_int64value() +
                  value.has_stringvalue() +
                  value.has_booleanvalue() +
                  value.has_doublevalue() +
                  value.has_pointvalue() +
                  value.has_uservalue() +
                  value.has_referencevalue())
    Check(num_values <= 1, 'PropertyValue for ' + name +
          ' has multiple value fields set')
  
    if value.has_stringvalue():
  
  
  
  
  
  
  
      s16 = value.stringvalue().decode('utf-8', 'replace').encode('utf-16')
  
      Check((len(s16) - 2) / 2 <= max_length,
            'Property %s is too long. Maximum length is %d.' % (name, max_length))
code_tokens: def CheckPropertyValue ( name , value , max_length ) : num_values = ( value . has_int64value ( ) + value . has_stringvalue ( ) + value . has_booleanvalue ( ) + value . has_doublevalue ( ) + value . has_pointvalue ( ) + value . has_uservalue ( ) + value . has_referencevalue ( ) ) Check ( num_values <= 1 , 'PropertyValue for ' + name + ' has multiple value fields set' ) if value . has_stringvalue ( ) : s16 = value . stringvalue ( ) . decode ( 'utf-8' , 'replace' ) . encode ( 'utf-16' ) Check ( ( len ( s16 ) - 2 ) / 2 <= max_length , 'Property %s is too long. Maximum length is %d.' % ( name , max_length ) )
short_docstring: Check if this property value can be stored.
short_docstring_tokens: Check if this property value can be stored .
comment: """Check if this property value can be stored.
  
    Args:
      name: name of the property
      value: entity_pb.PropertyValue
      max_length: maximum length for string values
  
    Raises:
      apiproxy_errors.ApplicationError: if the property is invalid
    """