ByteString function ( String arg0 ) { try { return ByteString . copyFrom ( arg0 . getBytes ( "srini_string" ) ) ; } catch ( UnsupportedEncodingException loc0 ) { throw new IllegalStateException ( "srini_string" , loc0 ) ; } }
helper called by generated code to construct default values for bytes fields . this is a lot like #stringdefaultvalue , but for bytes fields . in this case we only need the second of the two hacks -- allowing us to embed raw bytes as a string literal with iso-8859-1 encoding . concode_field_sep PlaceHolder placeHolder concode_field_sep int getNumber concode_elem_sep T findValueByNumber concode_elem_sep boolean isValidUtf8 concode_elem_sep String stringDefaultValue