public static String getWriteValueToField ( FieldType type , String express , boolean isList ) { if ( ( type == FieldType . STRING || type == FieldType . BYTES ) && ! isList ) { String method = "copyFromUtf8" ; if ( type == FieldType . BYTES ) { method = "copyFrom" ; } return "com.google.protobuf.ByteString." + method + "(" + express + ")" ; } return express ; }
Gets the write value to field .