); ▁▁ ▁line -> set _ label ( name ); ▁▁ ▁return ▁line ; ▁} ▁ ▁Poly line * ▁create New Pol y line () ▁{ ▁▁ ▁// ▁create ▁a ▁poly line ▁with ▁points ▁at ▁( 1 0 , 1 0 ) ▁and ▁( 2 0 , 2 0 ) ▁▁ ▁Poly line * ▁poly line ▁= ▁new ▁Poly line ; ▁▁ ▁Point * ▁point 1 ▁= ▁poly line -> add _ point (); ▁▁ ▁point 1 -> set _ x ( 1 0 ); ▁▁ ▁point 1 -> set _ y ( 1 0 ); ▁▁ ▁Point * ▁point 2 ▁= ▁poly line -> add _ point (); ▁▁ ▁point 2 -> set _ x ( 2 0 ); ▁▁ ▁point 2 -> set _ y ( 2 0 ); ▁▁ ▁return ▁poly line ; ▁} ▁ ▁Language ▁support ▁proto 2 ▁provides ▁a ▁code ▁generator ▁for ▁C ++, ▁Java , ▁C #, ▁and ▁Python . ▁ ▁Third - party ▁implementations ▁are ▁also ▁available ▁for ▁JavaScript . ▁ ▁proto 3 ▁provides ▁a ▁code ▁generator ▁for ▁C ++, ▁Java ▁( including ▁Java N ano , ▁a ▁dialect ▁intended ▁for ▁low - resource ▁environments ), ▁Python , ▁Go , ▁Ruby , ▁Object ive - C ▁and ▁C # . ▁Since ▁ 3 . 0 . 0 ▁B eta ▁ 2 ▁support ▁for ▁JavaScript . ▁ ▁Third - party ▁implementations ▁are ▁also ▁available ▁for ▁C , ▁D art , ▁H askell , ▁Perl , ▁PHP , ▁R , ▁R ust , ▁Scala , ▁Swift ▁and ▁Julia