Commit e4958d0
authored
fix(sidekick): Fixes several issues with oneof main setter samples (#2589)
- Uses the right import for the oneof group
- Takes boxing of the oneof message variants into account.
- Messages variants are now deprioritized for selection as a oneof
example variant.
- Makes the values shown match the ones used in other samples
This also removes the sample generation for when the example one of
varinat that's use on the main setter is repeated or map, as that needs
bigger improvements that will be done in a subsequent PR. Note that the
samples for each specific variant, including repeated and map, continue
to be generated.1 parent 16df43c commit e4958d0
File tree
3 files changed
+55
-18
lines changed- internal/sidekick/internal/rust
- templates/common/setter_preamble
3 files changed
+55
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| 399 | + | |
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
402 | | - | |
403 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
404 | 409 | | |
405 | 410 | | |
406 | 411 | | |
| |||
991 | 996 | | |
992 | 997 | | |
993 | 998 | | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
994 | 1003 | | |
995 | 1004 | | |
996 | 1005 | | |
997 | 1006 | | |
998 | 1007 | | |
999 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
1000 | 1015 | | |
1001 | 1016 | | |
1002 | 1017 | | |
| |||
1021 | 1036 | | |
1022 | 1037 | | |
1023 | 1038 | | |
| 1039 | + | |
1024 | 1040 | | |
1025 | 1041 | | |
1026 | 1042 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| 498 | + | |
498 | 499 | | |
499 | 500 | | |
500 | 501 | | |
| |||
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
| 648 | + | |
647 | 649 | | |
648 | 650 | | |
649 | 651 | | |
| |||
1877 | 1879 | | |
1878 | 1880 | | |
1879 | 1881 | | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
1880 | 1889 | | |
1881 | 1890 | | |
1882 | 1891 | | |
| |||
1891 | 1900 | | |
1892 | 1901 | | |
1893 | 1902 | | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
1894 | 1913 | | |
1895 | 1914 | | |
1896 | 1915 | | |
| |||
1922 | 1941 | | |
1923 | 1942 | | |
1924 | 1943 | | |
1925 | | - | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
1926 | 1955 | | |
1927 | 1956 | | |
1928 | 1957 | | |
| |||
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
35 | 38 | | |
36 | | - | |
| 39 | + | |
37 | 40 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 41 | | |
50 | 42 | | |
51 | 43 | | |
0 commit comments