mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-08-21 23:21:11 +02:00
* update github.com/blevesearch/bleve v2.0.2 -> v2.0.3 * github.com/denisenkom/go-mssqldb v0.9.0 -> v0.10.0 * github.com/editorconfig/editorconfig-core-go v2.4.1 -> v2.4.2 * github.com/go-chi/cors v1.1.1 -> v1.2.0 * github.com/go-git/go-billy v5.0.0 -> v5.1.0 * github.com/go-git/go-git v5.2.0 -> v5.3.0 * github.com/go-ldap/ldap v3.2.4 -> v3.3.0 * github.com/go-redis/redis v8.6.0 -> v8.8.2 * github.com/go-sql-driver/mysql v1.5.0 -> v1.6.0 * github.com/go-swagger/go-swagger v0.26.1 -> v0.27.0 * github.com/lib/pq v1.9.0 -> v1.10.1 * github.com/mattn/go-sqlite3 v1.14.6 -> v1.14.7 * github.com/go-testfixtures/testfixtures v3.5.0 -> v3.6.0 * github.com/issue9/identicon v1.0.1 -> v1.2.0 * github.com/klauspost/compress v1.11.8 -> v1.12.1 * github.com/mgechev/revive v1.0.3 -> v1.0.6 * github.com/microcosm-cc/bluemonday v1.0.7 -> v1.0.8 * github.com/niklasfasching/go-org v1.4.0 -> v1.5.0 * github.com/olivere/elastic v7.0.22 -> v7.0.24 * github.com/pelletier/go-toml v1.8.1 -> v1.9.0 * github.com/prometheus/client_golang v1.9.0 -> v1.10.0 * github.com/xanzy/go-gitlab v0.44.0 -> v0.48.0 * github.com/yuin/goldmark v1.3.3 -> v1.3.5 * github.com/6543/go-version v1.2.4 -> v1.3.1 * do github.com/lib/pq v1.10.0 -> v1.10.1 again ...
462 lines
12 KiB
Go
Vendored
462 lines
12 KiB
Go
Vendored
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Code generated by generate-protos. DO NOT EDIT.
|
|
|
|
package protoreflect
|
|
|
|
func (p *SourcePath) appendFileDescriptorProto(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "name", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "package", nil)
|
|
case 3:
|
|
b = p.appendRepeatedField(b, "dependency", nil)
|
|
case 10:
|
|
b = p.appendRepeatedField(b, "public_dependency", nil)
|
|
case 11:
|
|
b = p.appendRepeatedField(b, "weak_dependency", nil)
|
|
case 4:
|
|
b = p.appendRepeatedField(b, "message_type", (*SourcePath).appendDescriptorProto)
|
|
case 5:
|
|
b = p.appendRepeatedField(b, "enum_type", (*SourcePath).appendEnumDescriptorProto)
|
|
case 6:
|
|
b = p.appendRepeatedField(b, "service", (*SourcePath).appendServiceDescriptorProto)
|
|
case 7:
|
|
b = p.appendRepeatedField(b, "extension", (*SourcePath).appendFieldDescriptorProto)
|
|
case 8:
|
|
b = p.appendSingularField(b, "options", (*SourcePath).appendFileOptions)
|
|
case 9:
|
|
b = p.appendSingularField(b, "source_code_info", (*SourcePath).appendSourceCodeInfo)
|
|
case 12:
|
|
b = p.appendSingularField(b, "syntax", nil)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendDescriptorProto(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "name", nil)
|
|
case 2:
|
|
b = p.appendRepeatedField(b, "field", (*SourcePath).appendFieldDescriptorProto)
|
|
case 6:
|
|
b = p.appendRepeatedField(b, "extension", (*SourcePath).appendFieldDescriptorProto)
|
|
case 3:
|
|
b = p.appendRepeatedField(b, "nested_type", (*SourcePath).appendDescriptorProto)
|
|
case 4:
|
|
b = p.appendRepeatedField(b, "enum_type", (*SourcePath).appendEnumDescriptorProto)
|
|
case 5:
|
|
b = p.appendRepeatedField(b, "extension_range", (*SourcePath).appendDescriptorProto_ExtensionRange)
|
|
case 8:
|
|
b = p.appendRepeatedField(b, "oneof_decl", (*SourcePath).appendOneofDescriptorProto)
|
|
case 7:
|
|
b = p.appendSingularField(b, "options", (*SourcePath).appendMessageOptions)
|
|
case 9:
|
|
b = p.appendRepeatedField(b, "reserved_range", (*SourcePath).appendDescriptorProto_ReservedRange)
|
|
case 10:
|
|
b = p.appendRepeatedField(b, "reserved_name", nil)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendEnumDescriptorProto(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "name", nil)
|
|
case 2:
|
|
b = p.appendRepeatedField(b, "value", (*SourcePath).appendEnumValueDescriptorProto)
|
|
case 3:
|
|
b = p.appendSingularField(b, "options", (*SourcePath).appendEnumOptions)
|
|
case 4:
|
|
b = p.appendRepeatedField(b, "reserved_range", (*SourcePath).appendEnumDescriptorProto_EnumReservedRange)
|
|
case 5:
|
|
b = p.appendRepeatedField(b, "reserved_name", nil)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendServiceDescriptorProto(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "name", nil)
|
|
case 2:
|
|
b = p.appendRepeatedField(b, "method", (*SourcePath).appendMethodDescriptorProto)
|
|
case 3:
|
|
b = p.appendSingularField(b, "options", (*SourcePath).appendServiceOptions)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendFieldDescriptorProto(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "name", nil)
|
|
case 3:
|
|
b = p.appendSingularField(b, "number", nil)
|
|
case 4:
|
|
b = p.appendSingularField(b, "label", nil)
|
|
case 5:
|
|
b = p.appendSingularField(b, "type", nil)
|
|
case 6:
|
|
b = p.appendSingularField(b, "type_name", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "extendee", nil)
|
|
case 7:
|
|
b = p.appendSingularField(b, "default_value", nil)
|
|
case 9:
|
|
b = p.appendSingularField(b, "oneof_index", nil)
|
|
case 10:
|
|
b = p.appendSingularField(b, "json_name", nil)
|
|
case 8:
|
|
b = p.appendSingularField(b, "options", (*SourcePath).appendFieldOptions)
|
|
case 17:
|
|
b = p.appendSingularField(b, "proto3_optional", nil)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendFileOptions(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "java_package", nil)
|
|
case 8:
|
|
b = p.appendSingularField(b, "java_outer_classname", nil)
|
|
case 10:
|
|
b = p.appendSingularField(b, "java_multiple_files", nil)
|
|
case 20:
|
|
b = p.appendSingularField(b, "java_generate_equals_and_hash", nil)
|
|
case 27:
|
|
b = p.appendSingularField(b, "java_string_check_utf8", nil)
|
|
case 9:
|
|
b = p.appendSingularField(b, "optimize_for", nil)
|
|
case 11:
|
|
b = p.appendSingularField(b, "go_package", nil)
|
|
case 16:
|
|
b = p.appendSingularField(b, "cc_generic_services", nil)
|
|
case 17:
|
|
b = p.appendSingularField(b, "java_generic_services", nil)
|
|
case 18:
|
|
b = p.appendSingularField(b, "py_generic_services", nil)
|
|
case 42:
|
|
b = p.appendSingularField(b, "php_generic_services", nil)
|
|
case 23:
|
|
b = p.appendSingularField(b, "deprecated", nil)
|
|
case 31:
|
|
b = p.appendSingularField(b, "cc_enable_arenas", nil)
|
|
case 36:
|
|
b = p.appendSingularField(b, "objc_class_prefix", nil)
|
|
case 37:
|
|
b = p.appendSingularField(b, "csharp_namespace", nil)
|
|
case 39:
|
|
b = p.appendSingularField(b, "swift_prefix", nil)
|
|
case 40:
|
|
b = p.appendSingularField(b, "php_class_prefix", nil)
|
|
case 41:
|
|
b = p.appendSingularField(b, "php_namespace", nil)
|
|
case 44:
|
|
b = p.appendSingularField(b, "php_metadata_namespace", nil)
|
|
case 45:
|
|
b = p.appendSingularField(b, "ruby_package", nil)
|
|
case 999:
|
|
b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendSourceCodeInfo(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendRepeatedField(b, "location", (*SourcePath).appendSourceCodeInfo_Location)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendDescriptorProto_ExtensionRange(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "start", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "end", nil)
|
|
case 3:
|
|
b = p.appendSingularField(b, "options", (*SourcePath).appendExtensionRangeOptions)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendOneofDescriptorProto(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "name", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "options", (*SourcePath).appendOneofOptions)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendMessageOptions(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "message_set_wire_format", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "no_standard_descriptor_accessor", nil)
|
|
case 3:
|
|
b = p.appendSingularField(b, "deprecated", nil)
|
|
case 7:
|
|
b = p.appendSingularField(b, "map_entry", nil)
|
|
case 999:
|
|
b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendDescriptorProto_ReservedRange(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "start", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "end", nil)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendEnumValueDescriptorProto(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "name", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "number", nil)
|
|
case 3:
|
|
b = p.appendSingularField(b, "options", (*SourcePath).appendEnumValueOptions)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendEnumOptions(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 2:
|
|
b = p.appendSingularField(b, "allow_alias", nil)
|
|
case 3:
|
|
b = p.appendSingularField(b, "deprecated", nil)
|
|
case 999:
|
|
b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendEnumDescriptorProto_EnumReservedRange(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "start", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "end", nil)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendMethodDescriptorProto(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "name", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "input_type", nil)
|
|
case 3:
|
|
b = p.appendSingularField(b, "output_type", nil)
|
|
case 4:
|
|
b = p.appendSingularField(b, "options", (*SourcePath).appendMethodOptions)
|
|
case 5:
|
|
b = p.appendSingularField(b, "client_streaming", nil)
|
|
case 6:
|
|
b = p.appendSingularField(b, "server_streaming", nil)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendServiceOptions(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 33:
|
|
b = p.appendSingularField(b, "deprecated", nil)
|
|
case 999:
|
|
b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendFieldOptions(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "ctype", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "packed", nil)
|
|
case 6:
|
|
b = p.appendSingularField(b, "jstype", nil)
|
|
case 5:
|
|
b = p.appendSingularField(b, "lazy", nil)
|
|
case 3:
|
|
b = p.appendSingularField(b, "deprecated", nil)
|
|
case 10:
|
|
b = p.appendSingularField(b, "weak", nil)
|
|
case 999:
|
|
b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendUninterpretedOption(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 2:
|
|
b = p.appendRepeatedField(b, "name", (*SourcePath).appendUninterpretedOption_NamePart)
|
|
case 3:
|
|
b = p.appendSingularField(b, "identifier_value", nil)
|
|
case 4:
|
|
b = p.appendSingularField(b, "positive_int_value", nil)
|
|
case 5:
|
|
b = p.appendSingularField(b, "negative_int_value", nil)
|
|
case 6:
|
|
b = p.appendSingularField(b, "double_value", nil)
|
|
case 7:
|
|
b = p.appendSingularField(b, "string_value", nil)
|
|
case 8:
|
|
b = p.appendSingularField(b, "aggregate_value", nil)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendSourceCodeInfo_Location(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendRepeatedField(b, "path", nil)
|
|
case 2:
|
|
b = p.appendRepeatedField(b, "span", nil)
|
|
case 3:
|
|
b = p.appendSingularField(b, "leading_comments", nil)
|
|
case 4:
|
|
b = p.appendSingularField(b, "trailing_comments", nil)
|
|
case 6:
|
|
b = p.appendRepeatedField(b, "leading_detached_comments", nil)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendExtensionRangeOptions(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 999:
|
|
b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendOneofOptions(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 999:
|
|
b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendEnumValueOptions(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "deprecated", nil)
|
|
case 999:
|
|
b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendMethodOptions(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 33:
|
|
b = p.appendSingularField(b, "deprecated", nil)
|
|
case 34:
|
|
b = p.appendSingularField(b, "idempotency_level", nil)
|
|
case 999:
|
|
b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption)
|
|
}
|
|
return b
|
|
}
|
|
|
|
func (p *SourcePath) appendUninterpretedOption_NamePart(b []byte) []byte {
|
|
if len(*p) == 0 {
|
|
return b
|
|
}
|
|
switch (*p)[0] {
|
|
case 1:
|
|
b = p.appendSingularField(b, "name_part", nil)
|
|
case 2:
|
|
b = p.appendSingularField(b, "is_extension", nil)
|
|
}
|
|
return b
|
|
}
|