public SoyValue getProtoField ( String name ) { FieldWithInterpreter field = clazz ( ) . fields . get ( name ) ; if ( field == null ) { throw new IllegalArgumentException ( "Proto " + proto . getClass ( ) . getName ( ) + " does not have a field of name " + name ) ; } if ( field . shouldCheckFieldPresenceToEmulateJspbNullability ( ) && ! proto . hasField ( field . getDescriptor ( ) ) ) { return NullData . INSTANCE ; } return field . interpretField ( proto ) ; }
Gets a value for the field for the underlying proto object . Not intended for general use .