def GetPropertyValueTag(value_pb):
 if value_pb.has_booleanvalue():
  return entity_pb.PropertyValue.kbooleanValue
 elif value_pb.has_doublevalue():
  return entity_pb.PropertyValue.kdoubleValue
 elif value_pb.has_int64value():
  return entity_pb.PropertyValue.kint64Value
 elif value_pb.has_pointvalue():
  return entity_pb.PropertyValue.kPointValueGroup
 elif value_pb.has_referencevalue():
  return entity_pb.PropertyValue.kReferenceValueGroup
 elif value_pb.has_stringvalue():
  return entity_pb.PropertyValue.kstringValue
 elif value_pb.has_uservalue():
  return entity_pb.PropertyValue.kUserValueGroup
 else:
  return 0

def GetPropertyValueTag ( value_pb ) : if value_pb . has_booleanvalue ( ) : return entity_pb . PropertyValue . kbooleanValue elif value_pb . has_doublevalue ( ) : return entity_pb . PropertyValue . kdoubleValue elif value_pb . has_int64value ( ) : return entity_pb . PropertyValue . kint64Value elif value_pb . has_pointvalue ( ) : return entity_pb . PropertyValue . kPointValueGroup elif value_pb . has_referencevalue ( ) : return entity_pb . PropertyValue . kReferenceValueGroup elif value_pb . has_stringvalue ( ) : return entity_pb . PropertyValue . kstringValue elif value_pb . has_uservalue ( ) : return entity_pb . PropertyValue . kUserValueGroup else : return 0
returns the tag constant associated with the given entity_pb .