File tree Expand file tree Collapse file tree 4 files changed +4
-303
lines changed
Expand file tree Collapse file tree 4 files changed +4
-303
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ Message template
8686| ----- | ---- | ----------- |
8787{{range .Fields}}{{ if (not .Desc.ContainingOneof) }}{{template "field" .}}{{end}}{{end}}
8888{{- end -}}
89- {{range .Oneofs}}{{template "oneof" .}}{{end}}
89+
90+ {{range .Oneofs}}{{ if .Desc.IsSynthetic }}{{template "field" (index .Fields 0) }}{{else}}{{template "oneof" .}}{{end}}{{end}}
9091
9192{{if .Extensions}}
9293| Extension | Type | Base | Number | Description |
@@ -110,7 +111,7 @@ Message template
110111Field template
111112***************************************************************/}}
112113{{define "field" -}}
113- | {{.Desc.Name}}{{ if .Desc.IsList }}[]{{ end }} |
114+ | {{.Desc.Name }}{{ if .Desc.IsList }}[]{{ end }}{{ if .Desc.HasOptionalKeyword }} (optional) {{ end }} |
114115{{- if (or (is_primitive .) (is_google_type .)) -}}
115116 {{ field_type . }}
116117{{- else -}}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ description: API Specification for the com.example.proto3 package.
2222| Field | Type | Description |
2323| ----- | ---- | ----------- |
2424| not_tracked | int32| |
25- | <tr ><td colspan =2 >Union field ` _tracked ` . ` _tracked ` can be only one of the following:</td ></tr >|
26- | tracked | int32| Explicit presence |
27-
25+ | tracked (optional) | int32| Explicit presence |
2826
2927
3028
You can’t perform that action at this time.
0 commit comments