mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-07 12:56:47 +00:00
ca46d8c924
Generate field numbers for the well-known types, so that encoding/jsonpb can benefit from them as well. This CL fixes internal/cmd/generate-protos, which was silently failing because the modulePath was not properly initialized. We fix this by moving it to the start of the init function. Change-Id: I87637176f29218cffa512b4baa49f39dae924061 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/168497 Reviewed-by: Herbie Ong <herbie@google.com>
34 lines
1007 B
Go
34 lines
1007 B
Go
// 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 fieldnum
|
|
|
|
// Field numbers for google.protobuf.Struct.
|
|
const (
|
|
Struct_Fields = 1 // repeated google.protobuf.Struct.FieldsEntry
|
|
)
|
|
|
|
// Field numbers for google.protobuf.Struct.FieldsEntry.
|
|
const (
|
|
Struct_FieldsEntry_Key = 1 // optional string
|
|
Struct_FieldsEntry_Value = 2 // optional google.protobuf.Value
|
|
)
|
|
|
|
// Field numbers for google.protobuf.Value.
|
|
const (
|
|
Value_NullValue = 1 // optional google.protobuf.NullValue
|
|
Value_NumberValue = 2 // optional double
|
|
Value_StringValue = 3 // optional string
|
|
Value_BoolValue = 4 // optional bool
|
|
Value_StructValue = 5 // optional google.protobuf.Struct
|
|
Value_ListValue = 6 // optional google.protobuf.ListValue
|
|
)
|
|
|
|
// Field numbers for google.protobuf.ListValue.
|
|
const (
|
|
ListValue_Values = 1 // repeated google.protobuf.Value
|
|
)
|