mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-06 09:40:07 +00:00
types/descriptorpb: regenerate using latest protobuf v25.0-rc2 release candidate
This updates all generated code to match the contents of the latest v25.0-rc2 release candidate of Protobuf. This provides access to the various new fields and types defined in google/protobuf/descriptor.proto. Change-Id: I209f8509f2d3e9a0ac7d9e134caef38c48a0d16b Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/538075 Reviewed-by: Lasse Folger <lassefolger@google.com> Reviewed-by: Michael Stapelberg <stapelberg@google.com>
This commit is contained in:
parent
86bdc4705a
commit
f4a6c1f6e5
@ -35,7 +35,7 @@ var (
|
|||||||
regenerate = flag.Bool("regenerate", false, "regenerate files")
|
regenerate = flag.Bool("regenerate", false, "regenerate files")
|
||||||
buildRelease = flag.Bool("buildRelease", false, "build release binaries")
|
buildRelease = flag.Bool("buildRelease", false, "build release binaries")
|
||||||
|
|
||||||
protobufVersion = "24.0-rc2"
|
protobufVersion = "25.0-rc2"
|
||||||
|
|
||||||
golangVersions = func() []string {
|
golangVersions = func() []string {
|
||||||
// Version policy: same version as is in the x/ repos' go.mod.
|
// Version policy: same version as is in the x/ repos' go.mod.
|
||||||
|
@ -12,6 +12,12 @@ import (
|
|||||||
|
|
||||||
const File_google_protobuf_descriptor_proto = "google/protobuf/descriptor.proto"
|
const File_google_protobuf_descriptor_proto = "google/protobuf/descriptor.proto"
|
||||||
|
|
||||||
|
// Full and short names for google.protobuf.Edition.
|
||||||
|
const (
|
||||||
|
Edition_enum_fullname = "google.protobuf.Edition"
|
||||||
|
Edition_enum_name = "Edition"
|
||||||
|
)
|
||||||
|
|
||||||
// Names for google.protobuf.FileDescriptorSet.
|
// Names for google.protobuf.FileDescriptorSet.
|
||||||
const (
|
const (
|
||||||
FileDescriptorSet_message_name protoreflect.Name = "FileDescriptorSet"
|
FileDescriptorSet_message_name protoreflect.Name = "FileDescriptorSet"
|
||||||
@ -81,7 +87,7 @@ const (
|
|||||||
FileDescriptorProto_Options_field_number protoreflect.FieldNumber = 8
|
FileDescriptorProto_Options_field_number protoreflect.FieldNumber = 8
|
||||||
FileDescriptorProto_SourceCodeInfo_field_number protoreflect.FieldNumber = 9
|
FileDescriptorProto_SourceCodeInfo_field_number protoreflect.FieldNumber = 9
|
||||||
FileDescriptorProto_Syntax_field_number protoreflect.FieldNumber = 12
|
FileDescriptorProto_Syntax_field_number protoreflect.FieldNumber = 12
|
||||||
FileDescriptorProto_Edition_field_number protoreflect.FieldNumber = 13
|
FileDescriptorProto_Edition_field_number protoreflect.FieldNumber = 14
|
||||||
)
|
)
|
||||||
|
|
||||||
// Names for google.protobuf.DescriptorProto.
|
// Names for google.protobuf.DescriptorProto.
|
||||||
@ -668,7 +674,7 @@ const (
|
|||||||
|
|
||||||
// Field numbers for google.protobuf.FieldOptions.EditionDefault.
|
// Field numbers for google.protobuf.FieldOptions.EditionDefault.
|
||||||
const (
|
const (
|
||||||
FieldOptions_EditionDefault_Edition_field_number protoreflect.FieldNumber = 1
|
FieldOptions_EditionDefault_Edition_field_number protoreflect.FieldNumber = 3
|
||||||
FieldOptions_EditionDefault_Value_field_number protoreflect.FieldNumber = 2
|
FieldOptions_EditionDefault_Value_field_number protoreflect.FieldNumber = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -875,18 +881,16 @@ const (
|
|||||||
FeatureSet_FieldPresence_field_name protoreflect.Name = "field_presence"
|
FeatureSet_FieldPresence_field_name protoreflect.Name = "field_presence"
|
||||||
FeatureSet_EnumType_field_name protoreflect.Name = "enum_type"
|
FeatureSet_EnumType_field_name protoreflect.Name = "enum_type"
|
||||||
FeatureSet_RepeatedFieldEncoding_field_name protoreflect.Name = "repeated_field_encoding"
|
FeatureSet_RepeatedFieldEncoding_field_name protoreflect.Name = "repeated_field_encoding"
|
||||||
FeatureSet_StringFieldValidation_field_name protoreflect.Name = "string_field_validation"
|
FeatureSet_Utf8Validation_field_name protoreflect.Name = "utf8_validation"
|
||||||
FeatureSet_MessageEncoding_field_name protoreflect.Name = "message_encoding"
|
FeatureSet_MessageEncoding_field_name protoreflect.Name = "message_encoding"
|
||||||
FeatureSet_JsonFormat_field_name protoreflect.Name = "json_format"
|
FeatureSet_JsonFormat_field_name protoreflect.Name = "json_format"
|
||||||
FeatureSet_RawFeatures_field_name protoreflect.Name = "raw_features"
|
|
||||||
|
|
||||||
FeatureSet_FieldPresence_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.field_presence"
|
FeatureSet_FieldPresence_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.field_presence"
|
||||||
FeatureSet_EnumType_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.enum_type"
|
FeatureSet_EnumType_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.enum_type"
|
||||||
FeatureSet_RepeatedFieldEncoding_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.repeated_field_encoding"
|
FeatureSet_RepeatedFieldEncoding_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.repeated_field_encoding"
|
||||||
FeatureSet_StringFieldValidation_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.string_field_validation"
|
FeatureSet_Utf8Validation_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.utf8_validation"
|
||||||
FeatureSet_MessageEncoding_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.message_encoding"
|
FeatureSet_MessageEncoding_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.message_encoding"
|
||||||
FeatureSet_JsonFormat_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.json_format"
|
FeatureSet_JsonFormat_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.json_format"
|
||||||
FeatureSet_RawFeatures_field_fullname protoreflect.FullName = "google.protobuf.FeatureSet.raw_features"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Field numbers for google.protobuf.FeatureSet.
|
// Field numbers for google.protobuf.FeatureSet.
|
||||||
@ -894,10 +898,9 @@ const (
|
|||||||
FeatureSet_FieldPresence_field_number protoreflect.FieldNumber = 1
|
FeatureSet_FieldPresence_field_number protoreflect.FieldNumber = 1
|
||||||
FeatureSet_EnumType_field_number protoreflect.FieldNumber = 2
|
FeatureSet_EnumType_field_number protoreflect.FieldNumber = 2
|
||||||
FeatureSet_RepeatedFieldEncoding_field_number protoreflect.FieldNumber = 3
|
FeatureSet_RepeatedFieldEncoding_field_number protoreflect.FieldNumber = 3
|
||||||
FeatureSet_StringFieldValidation_field_number protoreflect.FieldNumber = 4
|
FeatureSet_Utf8Validation_field_number protoreflect.FieldNumber = 4
|
||||||
FeatureSet_MessageEncoding_field_number protoreflect.FieldNumber = 5
|
FeatureSet_MessageEncoding_field_number protoreflect.FieldNumber = 5
|
||||||
FeatureSet_JsonFormat_field_number protoreflect.FieldNumber = 6
|
FeatureSet_JsonFormat_field_number protoreflect.FieldNumber = 6
|
||||||
FeatureSet_RawFeatures_field_number protoreflect.FieldNumber = 999
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Full and short names for google.protobuf.FeatureSet.FieldPresence.
|
// Full and short names for google.protobuf.FeatureSet.FieldPresence.
|
||||||
@ -918,10 +921,10 @@ const (
|
|||||||
FeatureSet_RepeatedFieldEncoding_enum_name = "RepeatedFieldEncoding"
|
FeatureSet_RepeatedFieldEncoding_enum_name = "RepeatedFieldEncoding"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Full and short names for google.protobuf.FeatureSet.StringFieldValidation.
|
// Full and short names for google.protobuf.FeatureSet.Utf8Validation.
|
||||||
const (
|
const (
|
||||||
FeatureSet_StringFieldValidation_enum_fullname = "google.protobuf.FeatureSet.StringFieldValidation"
|
FeatureSet_Utf8Validation_enum_fullname = "google.protobuf.FeatureSet.Utf8Validation"
|
||||||
FeatureSet_StringFieldValidation_enum_name = "StringFieldValidation"
|
FeatureSet_Utf8Validation_enum_name = "Utf8Validation"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Full and short names for google.protobuf.FeatureSet.MessageEncoding.
|
// Full and short names for google.protobuf.FeatureSet.MessageEncoding.
|
||||||
@ -936,6 +939,51 @@ const (
|
|||||||
FeatureSet_JsonFormat_enum_name = "JsonFormat"
|
FeatureSet_JsonFormat_enum_name = "JsonFormat"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Names for google.protobuf.FeatureSetDefaults.
|
||||||
|
const (
|
||||||
|
FeatureSetDefaults_message_name protoreflect.Name = "FeatureSetDefaults"
|
||||||
|
FeatureSetDefaults_message_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Field names for google.protobuf.FeatureSetDefaults.
|
||||||
|
const (
|
||||||
|
FeatureSetDefaults_Defaults_field_name protoreflect.Name = "defaults"
|
||||||
|
FeatureSetDefaults_MinimumEdition_field_name protoreflect.Name = "minimum_edition"
|
||||||
|
FeatureSetDefaults_MaximumEdition_field_name protoreflect.Name = "maximum_edition"
|
||||||
|
|
||||||
|
FeatureSetDefaults_Defaults_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.defaults"
|
||||||
|
FeatureSetDefaults_MinimumEdition_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.minimum_edition"
|
||||||
|
FeatureSetDefaults_MaximumEdition_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.maximum_edition"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Field numbers for google.protobuf.FeatureSetDefaults.
|
||||||
|
const (
|
||||||
|
FeatureSetDefaults_Defaults_field_number protoreflect.FieldNumber = 1
|
||||||
|
FeatureSetDefaults_MinimumEdition_field_number protoreflect.FieldNumber = 4
|
||||||
|
FeatureSetDefaults_MaximumEdition_field_number protoreflect.FieldNumber = 5
|
||||||
|
)
|
||||||
|
|
||||||
|
// Names for google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
|
||||||
|
const (
|
||||||
|
FeatureSetDefaults_FeatureSetEditionDefault_message_name protoreflect.Name = "FeatureSetEditionDefault"
|
||||||
|
FeatureSetDefaults_FeatureSetEditionDefault_message_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Field names for google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
|
||||||
|
const (
|
||||||
|
FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_name protoreflect.Name = "edition"
|
||||||
|
FeatureSetDefaults_FeatureSetEditionDefault_Features_field_name protoreflect.Name = "features"
|
||||||
|
|
||||||
|
FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.edition"
|
||||||
|
FeatureSetDefaults_FeatureSetEditionDefault_Features_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Field numbers for google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
|
||||||
|
const (
|
||||||
|
FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_number protoreflect.FieldNumber = 3
|
||||||
|
FeatureSetDefaults_FeatureSetEditionDefault_Features_field_number protoreflect.FieldNumber = 2
|
||||||
|
)
|
||||||
|
|
||||||
// Names for google.protobuf.SourceCodeInfo.
|
// Names for google.protobuf.SourceCodeInfo.
|
||||||
const (
|
const (
|
||||||
SourceCodeInfo_message_name protoreflect.Name = "SourceCodeInfo"
|
SourceCodeInfo_message_name protoreflect.Name = "SourceCodeInfo"
|
||||||
|
@ -1,32 +1,9 @@
|
|||||||
// Protocol Buffers - Google's data interchange format
|
// Protocol Buffers - Google's data interchange format
|
||||||
// Copyright 2008 Google Inc. All rights reserved.
|
// Copyright 2008 Google Inc. All rights reserved.
|
||||||
// https://developers.google.com/protocol-buffers/
|
|
||||||
//
|
//
|
||||||
// Redistribution and use in source and binary forms, with or without
|
// Use of this source code is governed by a BSD-style
|
||||||
// modification, are permitted provided that the following conditions are
|
// license that can be found in the LICENSE file or at
|
||||||
// met:
|
// https://developers.google.com/open-source/licenses/bsd
|
||||||
//
|
|
||||||
// * Redistributions of source code must retain the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer.
|
|
||||||
// * Redistributions in binary form must reproduce the above
|
|
||||||
// copyright notice, this list of conditions and the following disclaimer
|
|
||||||
// in the documentation and/or other materials provided with the
|
|
||||||
// distribution.
|
|
||||||
// * Neither the name of Google Inc. nor the names of its
|
|
||||||
// contributors may be used to endorse or promote products derived from
|
|
||||||
// this software without specific prior written permission.
|
|
||||||
//
|
|
||||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// source: conformance/conformance.proto
|
// source: conformance/conformance.proto
|
||||||
|
@ -1,32 +1,9 @@
|
|||||||
// Protocol Buffers - Google's data interchange format
|
// Protocol Buffers - Google's data interchange format
|
||||||
// Copyright 2008 Google Inc. All rights reserved.
|
// Copyright 2008 Google Inc. All rights reserved.
|
||||||
// https://developers.google.com/protocol-buffers/
|
|
||||||
//
|
//
|
||||||
// Redistribution and use in source and binary forms, with or without
|
// Use of this source code is governed by a BSD-style
|
||||||
// modification, are permitted provided that the following conditions are
|
// license that can be found in the LICENSE file or at
|
||||||
// met:
|
// https://developers.google.com/open-source/licenses/bsd
|
||||||
//
|
|
||||||
// * Redistributions of source code must retain the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer.
|
|
||||||
// * Redistributions in binary form must reproduce the above
|
|
||||||
// copyright notice, this list of conditions and the following disclaimer
|
|
||||||
// in the documentation and/or other materials provided with the
|
|
||||||
// distribution.
|
|
||||||
// * Neither the name of Google Inc. nor the names of its
|
|
||||||
// contributors may be used to endorse or promote products derived from
|
|
||||||
// this software without specific prior written permission.
|
|
||||||
//
|
|
||||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
//
|
//
|
||||||
// Test schema for proto2 messages. This test schema is used by:
|
// Test schema for proto2 messages. This test schema is used by:
|
||||||
//
|
//
|
||||||
|
@ -1,32 +1,9 @@
|
|||||||
// Protocol Buffers - Google's data interchange format
|
// Protocol Buffers - Google's data interchange format
|
||||||
// Copyright 2008 Google Inc. All rights reserved.
|
// Copyright 2008 Google Inc. All rights reserved.
|
||||||
// https://developers.google.com/protocol-buffers/
|
|
||||||
//
|
//
|
||||||
// Redistribution and use in source and binary forms, with or without
|
// Use of this source code is governed by a BSD-style
|
||||||
// modification, are permitted provided that the following conditions are
|
// license that can be found in the LICENSE file or at
|
||||||
// met:
|
// https://developers.google.com/open-source/licenses/bsd
|
||||||
//
|
|
||||||
// * Redistributions of source code must retain the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer.
|
|
||||||
// * Redistributions in binary form must reproduce the above
|
|
||||||
// copyright notice, this list of conditions and the following disclaimer
|
|
||||||
// in the documentation and/or other materials provided with the
|
|
||||||
// distribution.
|
|
||||||
// * Neither the name of Google Inc. nor the names of its
|
|
||||||
// contributors may be used to endorse or promote products derived from
|
|
||||||
// this software without specific prior written permission.
|
|
||||||
//
|
|
||||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
//
|
//
|
||||||
// Test schema for proto3 messages. This test schema is used by:
|
// Test schema for proto3 messages. This test schema is used by:
|
||||||
//
|
//
|
||||||
|
@ -35,7 +35,7 @@ func (p *SourcePath) appendFileDescriptorProto(b []byte) []byte {
|
|||||||
b = p.appendSingularField(b, "source_code_info", (*SourcePath).appendSourceCodeInfo)
|
b = p.appendSingularField(b, "source_code_info", (*SourcePath).appendSourceCodeInfo)
|
||||||
case 12:
|
case 12:
|
||||||
b = p.appendSingularField(b, "syntax", nil)
|
b = p.appendSingularField(b, "syntax", nil)
|
||||||
case 13:
|
case 14:
|
||||||
b = p.appendSingularField(b, "edition", nil)
|
b = p.appendSingularField(b, "edition", nil)
|
||||||
}
|
}
|
||||||
return b
|
return b
|
||||||
@ -393,13 +393,11 @@ func (p *SourcePath) appendFeatureSet(b []byte) []byte {
|
|||||||
case 3:
|
case 3:
|
||||||
b = p.appendSingularField(b, "repeated_field_encoding", nil)
|
b = p.appendSingularField(b, "repeated_field_encoding", nil)
|
||||||
case 4:
|
case 4:
|
||||||
b = p.appendSingularField(b, "string_field_validation", nil)
|
b = p.appendSingularField(b, "utf8_validation", nil)
|
||||||
case 5:
|
case 5:
|
||||||
b = p.appendSingularField(b, "message_encoding", nil)
|
b = p.appendSingularField(b, "message_encoding", nil)
|
||||||
case 6:
|
case 6:
|
||||||
b = p.appendSingularField(b, "json_format", nil)
|
b = p.appendSingularField(b, "json_format", nil)
|
||||||
case 999:
|
|
||||||
b = p.appendSingularField(b, "raw_features", (*SourcePath).appendFeatureSet)
|
|
||||||
}
|
}
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -515,7 +513,7 @@ func (p *SourcePath) appendFieldOptions_EditionDefault(b []byte) []byte {
|
|||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
switch (*p)[0] {
|
switch (*p)[0] {
|
||||||
case 1:
|
case 3:
|
||||||
b = p.appendSingularField(b, "edition", nil)
|
b = p.appendSingularField(b, "edition", nil)
|
||||||
case 2:
|
case 2:
|
||||||
b = p.appendSingularField(b, "value", nil)
|
b = p.appendSingularField(b, "value", nil)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,32 +1,9 @@
|
|||||||
// Protocol Buffers - Google's data interchange format
|
// Protocol Buffers - Google's data interchange format
|
||||||
// Copyright 2008 Google Inc. All rights reserved.
|
// Copyright 2008 Google Inc. All rights reserved.
|
||||||
// https://developers.google.com/protocol-buffers/
|
|
||||||
//
|
//
|
||||||
// Redistribution and use in source and binary forms, with or without
|
// Use of this source code is governed by a BSD-style
|
||||||
// modification, are permitted provided that the following conditions are
|
// license that can be found in the LICENSE file or at
|
||||||
// met:
|
// https://developers.google.com/open-source/licenses/bsd
|
||||||
//
|
|
||||||
// * Redistributions of source code must retain the above copyright
|
|
||||||
// notice, this list of conditions and the following disclaimer.
|
|
||||||
// * Redistributions in binary form must reproduce the above
|
|
||||||
// copyright notice, this list of conditions and the following disclaimer
|
|
||||||
// in the documentation and/or other materials provided with the
|
|
||||||
// distribution.
|
|
||||||
// * Neither the name of Google Inc. nor the names of its
|
|
||||||
// contributors may be used to endorse or promote products derived from
|
|
||||||
// this software without specific prior written permission.
|
|
||||||
//
|
|
||||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
// Author: kenton@google.com (Kenton Varda)
|
// Author: kenton@google.com (Kenton Varda)
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user