mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-28 00:19:55 +00:00
e0b77db13b
The genid package unifies the genname, fieldnum, and detectknown packages into a single package. Whenever possible use the generated constants rather than hard-coded literals. This makes it easier to search the entire module for special logic that deal with well-known types. Change-Id: I13beff1f4149444a0c0b9e607ebf759657f000f4 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/235301 Reviewed-by: Herbie Ong <herbie@google.com>
33 lines
1.0 KiB
Go
33 lines
1.0 KiB
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 genid
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
)
|
|
|
|
// Names for google.protobuf.Duration.
|
|
const (
|
|
Duration_message_name protoreflect.Name = "Duration"
|
|
Duration_message_fullname protoreflect.FullName = "google.protobuf.Duration"
|
|
)
|
|
|
|
// Field names for google.protobuf.Duration.
|
|
const (
|
|
Duration_Seconds_field_name protoreflect.Name = "seconds"
|
|
Duration_Nanos_field_name protoreflect.Name = "nanos"
|
|
|
|
Duration_Seconds_field_fullname protoreflect.FullName = "google.protobuf.Duration.seconds"
|
|
Duration_Nanos_field_fullname protoreflect.FullName = "google.protobuf.Duration.nanos"
|
|
)
|
|
|
|
// Field numbers for google.protobuf.Duration.
|
|
const (
|
|
Duration_Seconds_field_number protoreflect.FieldNumber = 1
|
|
Duration_Nanos_field_number protoreflect.FieldNumber = 2
|
|
)
|