Showing preview only (825K chars total). Download the full file or copy to clipboard to get everything.
Repository: golang/protobuf
Branch: master
Commit: 75de7c059e36
Files: 70
Total size: 794.3 KB
Directory structure:
gitextract_1mqoipbk/
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.md
│ │ ├── feature_request.md
│ │ └── question.md
│ └── workflows/
│ └── test.yml
├── .gitignore
├── AUTHORS
├── CONTRIBUTING.md
├── CONTRIBUTORS
├── LICENSE
├── README.md
├── descriptor/
│ ├── descriptor.go
│ └── descriptor_test.go
├── go.mod
├── go.sum
├── internal/
│ ├── cmd/
│ │ └── generate-alias/
│ │ └── main.go
│ ├── gengogrpc/
│ │ └── grpc.go
│ └── testprotos/
│ ├── jsonpb_proto/
│ │ ├── test2.pb.go
│ │ ├── test2.proto
│ │ ├── test3.pb.go
│ │ └── test3.proto
│ ├── proto2_proto/
│ │ ├── test.pb.go
│ │ └── test.proto
│ ├── proto3_proto/
│ │ ├── test.pb.go
│ │ └── test.proto
│ └── regenerate.bash
├── jsonpb/
│ ├── decode.go
│ ├── encode.go
│ ├── json.go
│ └── json_test.go
├── proto/
│ ├── buffer.go
│ ├── defaults.go
│ ├── deprecated.go
│ ├── discard.go
│ ├── discard_test.go
│ ├── extensions.go
│ ├── extensions_test.go
│ ├── properties.go
│ ├── proto.go
│ ├── proto_clone_test.go
│ ├── proto_equal_test.go
│ ├── proto_test.go
│ ├── registry.go
│ ├── registry_test.go
│ ├── text_decode.go
│ ├── text_encode.go
│ ├── text_test.go
│ ├── wire.go
│ └── wrappers.go
├── protoc-gen-go/
│ ├── descriptor/
│ │ └── descriptor.pb.go
│ ├── generator/
│ │ ├── generator.go
│ │ └── internal/
│ │ └── remap/
│ │ ├── remap.go
│ │ └── remap_test.go
│ ├── grpc/
│ │ └── grpc.go
│ ├── main.go
│ └── plugin/
│ └── plugin.pb.go
├── ptypes/
│ ├── any/
│ │ └── any.pb.go
│ ├── any.go
│ ├── any_test.go
│ ├── doc.go
│ ├── duration/
│ │ └── duration.pb.go
│ ├── duration.go
│ ├── duration_test.go
│ ├── empty/
│ │ └── empty.pb.go
│ ├── struct/
│ │ └── struct.pb.go
│ ├── timestamp/
│ │ └── timestamp.pb.go
│ ├── timestamp.go
│ ├── timestamp_test.go
│ └── wrappers/
│ └── wrappers.pb.go
├── regenerate.bash
└── test.bash
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve
---
**What version of protobuf and what language are you using?**
Version: (e.g., `v1.1.0`, `89a0c16f`, etc)
**What did you do?**
If possible, provide a recipe for reproducing the error.
A complete runnable program is good with `.proto` and `.go` source code.
**What did you expect to see?**
**What did you see instead?**
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
**Anything else we should know about your project / environment?**
================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.md
================================================
---
name: Feature request
about: Suggest an idea for this project
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
================================================
FILE: .github/ISSUE_TEMPLATE/question.md
================================================
---
name: Question
about: Questions and troubleshooting
---
================================================
FILE: .github/workflows/test.yml
================================================
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: TestLatest
if: matrix.go-version == '1.21.x'
run: ./test.bash
- name: TestAll
if: matrix.go-version != '1.21.x'
run: go test ./...
================================================
FILE: .gitignore
================================================
.cache
vendor
cmd/protoc-gen-go/protoc-gen-go
================================================
FILE: AUTHORS
================================================
# This source code refers to The Go Authors for copyright purposes.
# The master list of authors is in the main Go distribution,
# visible at http://tip.golang.org/AUTHORS.
================================================
FILE: CONTRIBUTING.md
================================================
# Contributing to Go Protocol Buffers
Go protocol buffers is an open source project and accepts contributions.
This project is the first major version of Go protobufs,
while the next major revision of this project is located at
[protocolbuffers/protobuf-go](https://github.com/protocolbuffers/protobuf-go).
Most new development effort is focused on the latter project,
and changes to this project is primarily reserved for bug fixes.
## Contributor License Agreement
Contributions to this project must be accompanied by a Contributor License
Agreement. You (or your employer) retain the copyright to your contribution,
this simply gives us permission to use and redistribute your contributions as
part of the project. Head over to <https://cla.developers.google.com/> to see
your current agreements on file or to sign a new one.
You generally only need to submit a CLA once, so if you've already submitted one
(even if it was for a different project), you probably don't need to do it
again.
## Code reviews
All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.
================================================
FILE: CONTRIBUTORS
================================================
# This source code was written by the Go contributors.
# The master list of contributors is in the main Go distribution,
# visible at http://tip.golang.org/CONTRIBUTORS.
================================================
FILE: LICENSE
================================================
Copyright 2010 The Go Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* 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.
================================================
FILE: README.md
================================================
# Go support for Protocol Buffers
[](https://pkg.go.dev/mod/github.com/golang/protobuf)
[](https://travis-ci.org/golang/protobuf)
This module
([`github.com/golang/protobuf`](https://pkg.go.dev/mod/github.com/golang/protobuf))
contains Go bindings for protocol buffers.
It has been superseded by the
[`google.golang.org/protobuf`](https://pkg.go.dev/mod/google.golang.org/protobuf)
module, which contains an updated and simplified API,
support for protobuf reflection, and many other improvements.
We recommend that new code use the `google.golang.org/protobuf` module.
Versions v1.4 and later of `github.com/golang/protobuf` are implemented
in terms of `google.golang.org/protobuf`.
Programs which use both modules must use at least version v1.4 of this one.
See the
[developer guide for protocol buffers in Go](https://developers.google.com/protocol-buffers/docs/gotutorial)
for a general guide for how to get started using protobufs in Go.
See
[release note documentation](https://github.com/golang/protobuf/releases)
for more information about individual releases of this project.
See
[documentation for the next major revision](https://pkg.go.dev/mod/google.golang.org/protobuf)
for more information about the purpose, usage, and history of this project.
## Package index
Summary of the packages provided by this module:
* [`proto`](https://pkg.go.dev/github.com/golang/protobuf/proto): Package
`proto` provides functions operating on protobuf messages such as cloning,
merging, and checking equality, as well as binary serialization and text
serialization.
* [`jsonpb`](https://pkg.go.dev/github.com/golang/protobuf/jsonpb): Package
`jsonpb` serializes protobuf messages as JSON.
* [`ptypes`](https://pkg.go.dev/github.com/golang/protobuf/ptypes): Package
`ptypes` provides helper functionality for protobuf well-known types.
* [`ptypes/any`](https://pkg.go.dev/github.com/golang/protobuf/ptypes/any):
Package `any` is the generated package for `google/protobuf/any.proto`.
* [`ptypes/empty`](https://pkg.go.dev/github.com/golang/protobuf/ptypes/empty):
Package `empty` is the generated package for `google/protobuf/empty.proto`.
* [`ptypes/timestamp`](https://pkg.go.dev/github.com/golang/protobuf/ptypes/timestamp):
Package `timestamp` is the generated package for
`google/protobuf/timestamp.proto`.
* [`ptypes/duration`](https://pkg.go.dev/github.com/golang/protobuf/ptypes/duration):
Package `duration` is the generated package for
`google/protobuf/duration.proto`.
* [`ptypes/wrappers`](https://pkg.go.dev/github.com/golang/protobuf/ptypes/wrappers):
Package `wrappers` is the generated package for
`google/protobuf/wrappers.proto`.
* [`ptypes/struct`](https://pkg.go.dev/github.com/golang/protobuf/ptypes/struct):
Package `structpb` is the generated package for
`google/protobuf/struct.proto`.
* [`protoc-gen-go/descriptor`](https://pkg.go.dev/github.com/golang/protobuf/protoc-gen-go/descriptor):
Package `descriptor` is the generated package for
`google/protobuf/descriptor.proto`.
* [`protoc-gen-go/plugin`](https://pkg.go.dev/github.com/golang/protobuf/protoc-gen-go/plugin):
Package `plugin` is the generated package for
`google/protobuf/compiler/plugin.proto`.
* [`protoc-gen-go`](https://pkg.go.dev/github.com/golang/protobuf/protoc-gen-go):
The `protoc-gen-go` binary is a protoc plugin to generate a Go protocol
buffer package.
## Reporting issues
The issue tracker for this project
[is located here](https://github.com/golang/protobuf/issues).
Please report any issues with a sufficient description of the bug or feature
request. Bug reports should ideally be accompanied by a minimal reproduction of
the issue. Irreproducible bugs are difficult to diagnose and fix (and likely to
be closed after some period of time). Bug reports must specify the version of
the
[Go protocol buffer module](https://github.com/protocolbuffers/protobuf-go/releases)
and also the version of the
[protocol buffer toolchain](https://github.com/protocolbuffers/protobuf/releases)
being used.
## Contributing
This project is open-source and accepts contributions. See the
[contribution guide](https://github.com/golang/protobuf/blob/master/CONTRIBUTING.md)
for more information.
## Compatibility
This module and the generated code are expected to be stable over time. However,
we reserve the right to make breaking changes without notice for the following
reasons:
* **Security:** A security issue in the specification or implementation may
come to light whose resolution requires breaking compatibility. We reserve
the right to address such issues.
* **Unspecified behavior:** There are some aspects of the protocol buffer
specification that are undefined. Programs that depend on unspecified
behavior may break in future releases.
* **Specification changes:** It may become necessary to address an
inconsistency, incompleteness, or change in the protocol buffer
specification, which may affect the behavior of existing programs. We
reserve the right to address such changes.
* **Bugs:** If a package has a bug that violates correctness, a program
depending on the buggy behavior may break if the bug is fixed. We reserve
the right to fix such bugs.
* **Generated additions**: We reserve the right to add new declarations to
generated Go packages of `.proto` files. This includes declared constants,
variables, functions, types, fields in structs, and methods on types. This
may break attempts at injecting additional code on top of what is generated
by `protoc-gen-go`. Such practice is not supported by this project.
* **Internal changes**: We reserve the right to add, modify, and remove
internal code, which includes all unexported declarations, the
[`generator`](https://pkg.go.dev/github.com/golang/protobuf/protoc-gen-go/generator)
package, and all packages under
[`internal`](https://pkg.go.dev/github.com/golang/protobuf/internal).
Any breaking changes outside of these will be announced 6 months in advance to
[protobuf@googlegroups.com](https://groups.google.com/forum/#!forum/protobuf).
================================================
FILE: descriptor/descriptor.go
================================================
// Copyright 2016 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.
// Package descriptor provides functions for obtaining the protocol buffer
// descriptors of generated Go types.
//
// Deprecated: See the "google.golang.org/protobuf/reflect/protoreflect" package
// for how to obtain an EnumDescriptor or MessageDescriptor in order to
// programatically interact with the protobuf type system.
package descriptor
import (
"bytes"
"compress/gzip"
"io/ioutil"
"sync"
"github.com/golang/protobuf/proto"
"google.golang.org/protobuf/reflect/protodesc"
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/runtime/protoimpl"
descriptorpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
)
// Message is proto.Message with a method to return its descriptor.
//
// Deprecated: The Descriptor method may not be generated by future
// versions of protoc-gen-go, meaning that this interface may not
// be implemented by many concrete message types.
type Message interface {
proto.Message
Descriptor() ([]byte, []int)
}
// ForMessage returns the file descriptor proto containing
// the message and the message descriptor proto for the message itself.
// The returned proto messages must not be mutated.
//
// Deprecated: Not all concrete message types satisfy the Message interface.
// Use MessageDescriptorProto instead. If possible, the calling code should
// be rewritten to use protobuf reflection instead.
// See package "google.golang.org/protobuf/reflect/protoreflect" for details.
func ForMessage(m Message) (*descriptorpb.FileDescriptorProto, *descriptorpb.DescriptorProto) {
return MessageDescriptorProto(m)
}
type rawDesc struct {
fileDesc []byte
indexes []int
}
var rawDescCache sync.Map // map[protoreflect.Descriptor]*rawDesc
func deriveRawDescriptor(d protoreflect.Descriptor) ([]byte, []int) {
// Fast-path: check whether raw descriptors are already cached.
origDesc := d
if v, ok := rawDescCache.Load(origDesc); ok {
return v.(*rawDesc).fileDesc, v.(*rawDesc).indexes
}
// Slow-path: derive the raw descriptor from the v2 descriptor.
// Start with the leaf (a given enum or message declaration) and
// ascend upwards until we hit the parent file descriptor.
var idxs []int
for {
idxs = append(idxs, d.Index())
d = d.Parent()
if d == nil {
// TODO: We could construct a FileDescriptor stub for standalone
// descriptors to satisfy the API.
return nil, nil
}
if _, ok := d.(protoreflect.FileDescriptor); ok {
break
}
}
// Obtain the raw file descriptor.
fd := d.(protoreflect.FileDescriptor)
b, _ := proto.Marshal(protodesc.ToFileDescriptorProto(fd))
file := protoimpl.X.CompressGZIP(b)
// Reverse the indexes, since we populated it in reverse.
for i, j := 0, len(idxs)-1; i < j; i, j = i+1, j-1 {
idxs[i], idxs[j] = idxs[j], idxs[i]
}
if v, ok := rawDescCache.LoadOrStore(origDesc, &rawDesc{file, idxs}); ok {
return v.(*rawDesc).fileDesc, v.(*rawDesc).indexes
}
return file, idxs
}
// EnumRawDescriptor returns the GZIP'd raw file descriptor representing
// the enum and the index path to reach the enum declaration.
// The returned slices must not be mutated.
func EnumRawDescriptor(e proto.GeneratedEnum) ([]byte, []int) {
if ev, ok := e.(interface{ EnumDescriptor() ([]byte, []int) }); ok {
return ev.EnumDescriptor()
}
ed := protoimpl.X.EnumTypeOf(e)
return deriveRawDescriptor(ed.Descriptor())
}
// MessageRawDescriptor returns the GZIP'd raw file descriptor representing
// the message and the index path to reach the message declaration.
// The returned slices must not be mutated.
func MessageRawDescriptor(m proto.GeneratedMessage) ([]byte, []int) {
if mv, ok := m.(interface{ Descriptor() ([]byte, []int) }); ok {
return mv.Descriptor()
}
md := protoimpl.X.MessageTypeOf(m)
return deriveRawDescriptor(md.Descriptor())
}
var fileDescCache sync.Map // map[*byte]*descriptorpb.FileDescriptorProto
func deriveFileDescriptor(rawDesc []byte) *descriptorpb.FileDescriptorProto {
// Fast-path: check whether descriptor protos are already cached.
if v, ok := fileDescCache.Load(&rawDesc[0]); ok {
return v.(*descriptorpb.FileDescriptorProto)
}
// Slow-path: derive the descriptor proto from the GZIP'd message.
zr, err := gzip.NewReader(bytes.NewReader(rawDesc))
if err != nil {
panic(err)
}
b, err := ioutil.ReadAll(zr)
if err != nil {
panic(err)
}
fd := new(descriptorpb.FileDescriptorProto)
if err := proto.Unmarshal(b, fd); err != nil {
panic(err)
}
if v, ok := fileDescCache.LoadOrStore(&rawDesc[0], fd); ok {
return v.(*descriptorpb.FileDescriptorProto)
}
return fd
}
// EnumDescriptorProto returns the file descriptor proto representing
// the enum and the enum descriptor proto for the enum itself.
// The returned proto messages must not be mutated.
func EnumDescriptorProto(e proto.GeneratedEnum) (*descriptorpb.FileDescriptorProto, *descriptorpb.EnumDescriptorProto) {
rawDesc, idxs := EnumRawDescriptor(e)
if rawDesc == nil || idxs == nil {
return nil, nil
}
fd := deriveFileDescriptor(rawDesc)
if len(idxs) == 1 {
return fd, fd.EnumType[idxs[0]]
}
md := fd.MessageType[idxs[0]]
for _, i := range idxs[1 : len(idxs)-1] {
md = md.NestedType[i]
}
ed := md.EnumType[idxs[len(idxs)-1]]
return fd, ed
}
// MessageDescriptorProto returns the file descriptor proto representing
// the message and the message descriptor proto for the message itself.
// The returned proto messages must not be mutated.
func MessageDescriptorProto(m proto.GeneratedMessage) (*descriptorpb.FileDescriptorProto, *descriptorpb.DescriptorProto) {
rawDesc, idxs := MessageRawDescriptor(m)
if rawDesc == nil || idxs == nil {
return nil, nil
}
fd := deriveFileDescriptor(rawDesc)
md := fd.MessageType[idxs[0]]
for _, i := range idxs[1:] {
md = md.NestedType[i]
}
return fd, md
}
================================================
FILE: descriptor/descriptor_test.go
================================================
// Copyright 2020 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.
package descriptor
import (
"testing"
"github.com/google/go-cmp/cmp"
"google.golang.org/protobuf/reflect/protoreflect"
descpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
)
func TestEnumDescriptor(t *testing.T) {
tests := []struct {
enum protoreflect.Enum
idxs []int
name string
}{{
enum: descpb.FieldDescriptorProto_Type(0),
idxs: []int{
new(descpb.FieldDescriptorProto).ProtoReflect().Descriptor().Index(),
new(descpb.FieldDescriptorProto_Type).Descriptor().Index(),
},
name: "Type",
}, {
enum: descpb.FieldOptions_CType(0),
idxs: []int{
new(descpb.FieldOptions).ProtoReflect().Descriptor().Index(),
new(descpb.FieldOptions_CType).Descriptor().Index(),
},
name: "CType",
}}
for _, tt := range tests {
e := struct{ protoreflect.Enum }{tt.enum} // v2-only enum
_, idxs := EnumRawDescriptor(e)
if diff := cmp.Diff(tt.idxs, idxs); diff != "" {
t.Errorf("path index mismatch (-want +got):\n%v", diff)
}
_, ed := EnumDescriptorProto(e)
if ed.GetName() != tt.name {
t.Errorf("mismatching enum name: got %v, want %v", ed.GetName(), tt.name)
}
}
}
func TestMessageDescriptor(t *testing.T) {
tests := []struct {
message protoreflect.ProtoMessage
idxs []int
name string
}{{
message: (*descpb.SourceCodeInfo_Location)(nil),
idxs: []int{
new(descpb.SourceCodeInfo).ProtoReflect().Descriptor().Index(),
new(descpb.SourceCodeInfo_Location).ProtoReflect().Descriptor().Index(),
},
name: "Location",
}, {
message: (*descpb.FileDescriptorProto)(nil),
idxs: []int{
new(descpb.FileDescriptorProto).ProtoReflect().Descriptor().Index(),
},
name: "FileDescriptorProto",
}}
for _, tt := range tests {
m := struct{ protoreflect.ProtoMessage }{tt.message} // v2-only message
_, idxs := MessageRawDescriptor(m)
if diff := cmp.Diff(tt.idxs, idxs); diff != "" {
t.Errorf("path index mismatch (-want +got):\n%v", diff)
}
_, md := MessageDescriptorProto(m)
if md.GetName() != tt.name {
t.Errorf("mismatching message name: got %v, want %v", md.GetName(), tt.name)
}
}
}
================================================
FILE: go.mod
================================================
// Deprecated: Use the "google.golang.org/protobuf" module instead.
module github.com/golang/protobuf
go 1.17
require (
github.com/google/go-cmp v0.5.5
google.golang.org/protobuf v1.33.0
)
================================================
FILE: go.sum
================================================
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
================================================
FILE: internal/cmd/generate-alias/main.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.
//go:generate go run . -execute
package main
import (
"flag"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
"path/filepath"
"strings"
"github.com/golang/protobuf/proto"
gengo "google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo"
"google.golang.org/protobuf/compiler/protogen"
"google.golang.org/protobuf/reflect/protodesc"
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/types/descriptorpb"
"google.golang.org/protobuf/types/known/anypb"
"google.golang.org/protobuf/types/known/durationpb"
"google.golang.org/protobuf/types/known/emptypb"
"google.golang.org/protobuf/types/known/structpb"
"google.golang.org/protobuf/types/known/timestamppb"
"google.golang.org/protobuf/types/known/wrapperspb"
"google.golang.org/protobuf/types/pluginpb"
)
func main() {
run := flag.Bool("execute", false, "Write generated files to destination.")
flag.Parse()
// Set of generated proto packages to forward to v2.
files := []struct {
oldGoPkg string
newGoPkg string
pbDesc protoreflect.FileDescriptor
}{{
oldGoPkg: "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor",
newGoPkg: "google.golang.org/protobuf/types/descriptorpb",
pbDesc: descriptorpb.File_google_protobuf_descriptor_proto,
}, {
oldGoPkg: "github.com/golang/protobuf/protoc-gen-go/plugin;plugin_go",
newGoPkg: "google.golang.org/protobuf/types/pluginpb",
pbDesc: pluginpb.File_google_protobuf_compiler_plugin_proto,
}, {
oldGoPkg: "github.com/golang/protobuf/ptypes/any;any",
newGoPkg: "google.golang.org/protobuf/types/known/anypb",
pbDesc: anypb.File_google_protobuf_any_proto,
}, {
oldGoPkg: "github.com/golang/protobuf/ptypes/duration;duration",
newGoPkg: "google.golang.org/protobuf/types/known/durationpb",
pbDesc: durationpb.File_google_protobuf_duration_proto,
}, {
oldGoPkg: "github.com/golang/protobuf/ptypes/timestamp;timestamp",
newGoPkg: "google.golang.org/protobuf/types/known/timestamppb",
pbDesc: timestamppb.File_google_protobuf_timestamp_proto,
}, {
oldGoPkg: "github.com/golang/protobuf/ptypes/wrappers;wrappers",
newGoPkg: "google.golang.org/protobuf/types/known/wrapperspb",
pbDesc: wrapperspb.File_google_protobuf_wrappers_proto,
}, {
oldGoPkg: "github.com/golang/protobuf/ptypes/struct;structpb",
newGoPkg: "google.golang.org/protobuf/types/known/structpb",
pbDesc: structpb.File_google_protobuf_struct_proto,
}, {
oldGoPkg: "github.com/golang/protobuf/ptypes/empty;empty",
newGoPkg: "google.golang.org/protobuf/types/known/emptypb",
pbDesc: emptypb.File_google_protobuf_empty_proto,
}}
// For each package, construct a proto file that public imports the package.
var req pluginpb.CodeGeneratorRequest
var flags []string
for _, file := range files {
pkgPath := file.oldGoPkg[:strings.IndexByte(file.oldGoPkg, ';')]
fd := &descriptorpb.FileDescriptorProto{
Name: proto.String(pkgPath + "/" + path.Base(pkgPath) + ".proto"),
Syntax: proto.String(file.pbDesc.Syntax().String()),
Dependency: []string{file.pbDesc.Path()},
PublicDependency: []int32{0},
Options: &descriptorpb.FileOptions{GoPackage: proto.String(file.oldGoPkg)},
}
req.ProtoFile = append(req.ProtoFile, protodesc.ToFileDescriptorProto(file.pbDesc), fd)
req.FileToGenerate = append(req.FileToGenerate, fd.GetName())
flags = append(flags, "M"+file.pbDesc.Path()+"="+file.newGoPkg)
}
req.Parameter = proto.String(strings.Join(flags, ","))
// Use the internal logic of protoc-gen-go to generate the files.
gen, err := protogen.Options{}.New(&req)
check(err)
for _, file := range gen.Files {
if file.Generate {
gengo.GenerateVersionMarkers = false
gengo.GenerateFile(gen, file)
}
}
// Write the generated files.
resp := gen.Response()
if resp.Error != nil {
panic("gengo error: " + resp.GetError())
}
for _, file := range resp.File {
relPath, err := filepath.Rel(filepath.FromSlash("github.com/golang/protobuf"), file.GetName())
check(err)
check(ioutil.WriteFile(relPath+".bak", []byte(file.GetContent()), 0664))
if *run {
fmt.Println("#", relPath)
check(os.Rename(relPath+".bak", relPath))
} else {
cmd := exec.Command("diff", relPath, relPath+".bak", "-N", "-u")
cmd.Stdout = os.Stdout
cmd.Run()
os.Remove(relPath + ".bak") // best-effort delete
}
}
}
func check(err error) {
if err != nil {
panic(err)
}
}
================================================
FILE: internal/gengogrpc/grpc.go
================================================
// Copyright 2018 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.
// Package gengogrpc contains the gRPC code generator.
package gengogrpc
import (
"fmt"
"strconv"
"strings"
"google.golang.org/protobuf/compiler/protogen"
"google.golang.org/protobuf/types/descriptorpb"
)
const (
contextPackage = protogen.GoImportPath("context")
grpcPackage = protogen.GoImportPath("google.golang.org/grpc")
codesPackage = protogen.GoImportPath("google.golang.org/grpc/codes")
statusPackage = protogen.GoImportPath("google.golang.org/grpc/status")
)
// GenerateFile generates a _grpc.pb.go file containing gRPC service definitions.
func GenerateFile(gen *protogen.Plugin, file *protogen.File) *protogen.GeneratedFile {
if len(file.Services) == 0 {
return nil
}
filename := file.GeneratedFilenamePrefix + "_grpc.pb.go"
g := gen.NewGeneratedFile(filename, file.GoImportPath)
g.P("// Code generated by protoc-gen-go-grpc. DO NOT EDIT.")
g.P()
g.P("package ", file.GoPackageName)
g.P()
GenerateFileContent(gen, file, g)
return g
}
// GenerateFileContent generates the gRPC service definitions, excluding the package statement.
func GenerateFileContent(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile) {
if len(file.Services) == 0 {
return
}
// TODO: Remove this. We don't need to include these references any more.
g.P("// Reference imports to suppress errors if they are not otherwise used.")
g.P("var _ ", contextPackage.Ident("Context"))
g.P("var _ ", grpcPackage.Ident("ClientConnInterface"))
g.P()
g.P("// This is a compile-time assertion to ensure that this generated file")
g.P("// is compatible with the grpc package it is being compiled against.")
g.P("const _ = ", grpcPackage.Ident("SupportPackageIsVersion6"))
g.P()
for _, service := range file.Services {
genService(gen, file, g, service)
}
}
func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, service *protogen.Service) {
clientName := service.GoName + "Client"
g.P("// ", clientName, " is the client API for ", service.GoName, " service.")
g.P("//")
g.P("// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.")
// Client interface.
if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
g.P("//")
g.P(deprecationComment)
}
g.Annotate(clientName, service.Location)
g.P("type ", clientName, " interface {")
for _, method := range service.Methods {
g.Annotate(clientName+"."+method.GoName, method.Location)
if method.Desc.Options().(*descriptorpb.MethodOptions).GetDeprecated() {
g.P(deprecationComment)
}
g.P(method.Comments.Leading,
clientSignature(g, method))
}
g.P("}")
g.P()
// Client structure.
g.P("type ", unexport(clientName), " struct {")
g.P("cc ", grpcPackage.Ident("ClientConnInterface"))
g.P("}")
g.P()
// NewClient factory.
if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
g.P(deprecationComment)
}
g.P("func New", clientName, " (cc ", grpcPackage.Ident("ClientConnInterface"), ") ", clientName, " {")
g.P("return &", unexport(clientName), "{cc}")
g.P("}")
g.P()
var methodIndex, streamIndex int
// Client method implementations.
for _, method := range service.Methods {
if !method.Desc.IsStreamingServer() && !method.Desc.IsStreamingClient() {
// Unary RPC method
genClientMethod(gen, file, g, method, methodIndex)
methodIndex++
} else {
// Streaming RPC method
genClientMethod(gen, file, g, method, streamIndex)
streamIndex++
}
}
// Server interface.
serverType := service.GoName + "Server"
g.P("// ", serverType, " is the server API for ", service.GoName, " service.")
if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
g.P("//")
g.P(deprecationComment)
}
g.Annotate(serverType, service.Location)
g.P("type ", serverType, " interface {")
for _, method := range service.Methods {
g.Annotate(serverType+"."+method.GoName, method.Location)
if method.Desc.Options().(*descriptorpb.MethodOptions).GetDeprecated() {
g.P(deprecationComment)
}
g.P(method.Comments.Leading,
serverSignature(g, method))
}
g.P("}")
g.P()
// Server Unimplemented struct for forward compatibility.
g.P("// Unimplemented", serverType, " can be embedded to have forward compatible implementations.")
g.P("type Unimplemented", serverType, " struct {")
g.P("}")
g.P()
for _, method := range service.Methods {
nilArg := ""
if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() {
nilArg = "nil,"
}
g.P("func (*Unimplemented", serverType, ") ", serverSignature(g, method), "{")
g.P("return ", nilArg, statusPackage.Ident("Errorf"), "(", codesPackage.Ident("Unimplemented"), `, "method `, method.GoName, ` not implemented")`)
g.P("}")
}
g.P()
// Server registration.
if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
g.P(deprecationComment)
}
serviceDescVar := "_" + service.GoName + "_serviceDesc"
g.P("func Register", service.GoName, "Server(s *", grpcPackage.Ident("Server"), ", srv ", serverType, ") {")
g.P("s.RegisterService(&", serviceDescVar, `, srv)`)
g.P("}")
g.P()
// Server handler implementations.
var handlerNames []string
for _, method := range service.Methods {
hname := genServerMethod(gen, file, g, method)
handlerNames = append(handlerNames, hname)
}
// Service descriptor.
g.P("var ", serviceDescVar, " = ", grpcPackage.Ident("ServiceDesc"), " {")
g.P("ServiceName: ", strconv.Quote(string(service.Desc.FullName())), ",")
g.P("HandlerType: (*", serverType, ")(nil),")
g.P("Methods: []", grpcPackage.Ident("MethodDesc"), "{")
for i, method := range service.Methods {
if method.Desc.IsStreamingClient() || method.Desc.IsStreamingServer() {
continue
}
g.P("{")
g.P("MethodName: ", strconv.Quote(string(method.Desc.Name())), ",")
g.P("Handler: ", handlerNames[i], ",")
g.P("},")
}
g.P("},")
g.P("Streams: []", grpcPackage.Ident("StreamDesc"), "{")
for i, method := range service.Methods {
if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() {
continue
}
g.P("{")
g.P("StreamName: ", strconv.Quote(string(method.Desc.Name())), ",")
g.P("Handler: ", handlerNames[i], ",")
if method.Desc.IsStreamingServer() {
g.P("ServerStreams: true,")
}
if method.Desc.IsStreamingClient() {
g.P("ClientStreams: true,")
}
g.P("},")
}
g.P("},")
g.P("Metadata: \"", file.Desc.Path(), "\",")
g.P("}")
g.P()
}
func clientSignature(g *protogen.GeneratedFile, method *protogen.Method) string {
s := method.GoName + "(ctx " + g.QualifiedGoIdent(contextPackage.Ident("Context"))
if !method.Desc.IsStreamingClient() {
s += ", in *" + g.QualifiedGoIdent(method.Input.GoIdent)
}
s += ", opts ..." + g.QualifiedGoIdent(grpcPackage.Ident("CallOption")) + ") ("
if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() {
s += "*" + g.QualifiedGoIdent(method.Output.GoIdent)
} else {
s += method.Parent.GoName + "_" + method.GoName + "Client"
}
s += ", error)"
return s
}
func genClientMethod(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, method *protogen.Method, index int) {
service := method.Parent
sname := fmt.Sprintf("/%s/%s", service.Desc.FullName(), method.Desc.Name())
if method.Desc.Options().(*descriptorpb.MethodOptions).GetDeprecated() {
g.P(deprecationComment)
}
g.P("func (c *", unexport(service.GoName), "Client) ", clientSignature(g, method), "{")
if !method.Desc.IsStreamingServer() && !method.Desc.IsStreamingClient() {
g.P("out := new(", method.Output.GoIdent, ")")
g.P(`err := c.cc.Invoke(ctx, "`, sname, `", in, out, opts...)`)
g.P("if err != nil { return nil, err }")
g.P("return out, nil")
g.P("}")
g.P()
return
}
streamType := unexport(service.GoName) + method.GoName + "Client"
serviceDescVar := "_" + service.GoName + "_serviceDesc"
g.P("stream, err := c.cc.NewStream(ctx, &", serviceDescVar, ".Streams[", index, `], "`, sname, `", opts...)`)
g.P("if err != nil { return nil, err }")
g.P("x := &", streamType, "{stream}")
if !method.Desc.IsStreamingClient() {
g.P("if err := x.ClientStream.SendMsg(in); err != nil { return nil, err }")
g.P("if err := x.ClientStream.CloseSend(); err != nil { return nil, err }")
}
g.P("return x, nil")
g.P("}")
g.P()
genSend := method.Desc.IsStreamingClient()
genRecv := method.Desc.IsStreamingServer()
genCloseAndRecv := !method.Desc.IsStreamingServer()
// Stream auxiliary types and methods.
g.P("type ", service.GoName, "_", method.GoName, "Client interface {")
if genSend {
g.P("Send(*", method.Input.GoIdent, ") error")
}
if genRecv {
g.P("Recv() (*", method.Output.GoIdent, ", error)")
}
if genCloseAndRecv {
g.P("CloseAndRecv() (*", method.Output.GoIdent, ", error)")
}
g.P(grpcPackage.Ident("ClientStream"))
g.P("}")
g.P()
g.P("type ", streamType, " struct {")
g.P(grpcPackage.Ident("ClientStream"))
g.P("}")
g.P()
if genSend {
g.P("func (x *", streamType, ") Send(m *", method.Input.GoIdent, ") error {")
g.P("return x.ClientStream.SendMsg(m)")
g.P("}")
g.P()
}
if genRecv {
g.P("func (x *", streamType, ") Recv() (*", method.Output.GoIdent, ", error) {")
g.P("m := new(", method.Output.GoIdent, ")")
g.P("if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err }")
g.P("return m, nil")
g.P("}")
g.P()
}
if genCloseAndRecv {
g.P("func (x *", streamType, ") CloseAndRecv() (*", method.Output.GoIdent, ", error) {")
g.P("if err := x.ClientStream.CloseSend(); err != nil { return nil, err }")
g.P("m := new(", method.Output.GoIdent, ")")
g.P("if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err }")
g.P("return m, nil")
g.P("}")
g.P()
}
}
func serverSignature(g *protogen.GeneratedFile, method *protogen.Method) string {
var reqArgs []string
ret := "error"
if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() {
reqArgs = append(reqArgs, g.QualifiedGoIdent(contextPackage.Ident("Context")))
ret = "(*" + g.QualifiedGoIdent(method.Output.GoIdent) + ", error)"
}
if !method.Desc.IsStreamingClient() {
reqArgs = append(reqArgs, "*"+g.QualifiedGoIdent(method.Input.GoIdent))
}
if method.Desc.IsStreamingClient() || method.Desc.IsStreamingServer() {
reqArgs = append(reqArgs, method.Parent.GoName+"_"+method.GoName+"Server")
}
return method.GoName + "(" + strings.Join(reqArgs, ", ") + ") " + ret
}
func genServerMethod(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, method *protogen.Method) string {
service := method.Parent
hname := fmt.Sprintf("_%s_%s_Handler", service.GoName, method.GoName)
if !method.Desc.IsStreamingClient() && !method.Desc.IsStreamingServer() {
g.P("func ", hname, "(srv interface{}, ctx ", contextPackage.Ident("Context"), ", dec func(interface{}) error, interceptor ", grpcPackage.Ident("UnaryServerInterceptor"), ") (interface{}, error) {")
g.P("in := new(", method.Input.GoIdent, ")")
g.P("if err := dec(in); err != nil { return nil, err }")
g.P("if interceptor == nil { return srv.(", service.GoName, "Server).", method.GoName, "(ctx, in) }")
g.P("info := &", grpcPackage.Ident("UnaryServerInfo"), "{")
g.P("Server: srv,")
g.P("FullMethod: ", strconv.Quote(fmt.Sprintf("/%s/%s", service.Desc.FullName(), method.GoName)), ",")
g.P("}")
g.P("handler := func(ctx ", contextPackage.Ident("Context"), ", req interface{}) (interface{}, error) {")
g.P("return srv.(", service.GoName, "Server).", method.GoName, "(ctx, req.(*", method.Input.GoIdent, "))")
g.P("}")
g.P("return interceptor(ctx, in, info, handler)")
g.P("}")
g.P()
return hname
}
streamType := unexport(service.GoName) + method.GoName + "Server"
g.P("func ", hname, "(srv interface{}, stream ", grpcPackage.Ident("ServerStream"), ") error {")
if !method.Desc.IsStreamingClient() {
g.P("m := new(", method.Input.GoIdent, ")")
g.P("if err := stream.RecvMsg(m); err != nil { return err }")
g.P("return srv.(", service.GoName, "Server).", method.GoName, "(m, &", streamType, "{stream})")
} else {
g.P("return srv.(", service.GoName, "Server).", method.GoName, "(&", streamType, "{stream})")
}
g.P("}")
g.P()
genSend := method.Desc.IsStreamingServer()
genSendAndClose := !method.Desc.IsStreamingServer()
genRecv := method.Desc.IsStreamingClient()
// Stream auxiliary types and methods.
g.P("type ", service.GoName, "_", method.GoName, "Server interface {")
if genSend {
g.P("Send(*", method.Output.GoIdent, ") error")
}
if genSendAndClose {
g.P("SendAndClose(*", method.Output.GoIdent, ") error")
}
if genRecv {
g.P("Recv() (*", method.Input.GoIdent, ", error)")
}
g.P(grpcPackage.Ident("ServerStream"))
g.P("}")
g.P()
g.P("type ", streamType, " struct {")
g.P(grpcPackage.Ident("ServerStream"))
g.P("}")
g.P()
if genSend {
g.P("func (x *", streamType, ") Send(m *", method.Output.GoIdent, ") error {")
g.P("return x.ServerStream.SendMsg(m)")
g.P("}")
g.P()
}
if genSendAndClose {
g.P("func (x *", streamType, ") SendAndClose(m *", method.Output.GoIdent, ") error {")
g.P("return x.ServerStream.SendMsg(m)")
g.P("}")
g.P()
}
if genRecv {
g.P("func (x *", streamType, ") Recv() (*", method.Input.GoIdent, ", error) {")
g.P("m := new(", method.Input.GoIdent, ")")
g.P("if err := x.ServerStream.RecvMsg(m); err != nil { return nil, err }")
g.P("return m, nil")
g.P("}")
g.P()
}
return hname
}
const deprecationComment = "// Deprecated: Do not use."
func unexport(s string) string { return strings.ToLower(s[:1]) + s[1:] }
================================================
FILE: internal/testprotos/jsonpb_proto/test2.pb.go
================================================
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: jsonpb_proto/test2.proto
package jsonpb_proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
anypb "google.golang.org/protobuf/types/known/anypb"
durationpb "google.golang.org/protobuf/types/known/durationpb"
structpb "google.golang.org/protobuf/types/known/structpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Widget_Color int32
const (
Widget_RED Widget_Color = 0
Widget_GREEN Widget_Color = 1
Widget_BLUE Widget_Color = 2
)
var Widget_Color_name = map[int32]string{
0: "RED",
1: "GREEN",
2: "BLUE",
}
var Widget_Color_value = map[string]int32{
"RED": 0,
"GREEN": 1,
"BLUE": 2,
}
func (x Widget_Color) Enum() *Widget_Color {
p := new(Widget_Color)
*p = x
return p
}
func (x Widget_Color) String() string {
return proto.EnumName(Widget_Color_name, int32(x))
}
func (x *Widget_Color) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Widget_Color_value, data, "Widget_Color")
if err != nil {
return err
}
*x = Widget_Color(value)
return nil
}
func (Widget_Color) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{3, 0}
}
// Test message for holding primitive types.
type Simple struct {
OBool *bool `protobuf:"varint,1,opt,name=o_bool,json=oBool" json:"o_bool,omitempty"`
OInt32 *int32 `protobuf:"varint,2,opt,name=o_int32,json=oInt32" json:"o_int32,omitempty"`
OInt32Str *int32 `protobuf:"varint,3,opt,name=o_int32_str,json=oInt32Str" json:"o_int32_str,omitempty"`
OInt64 *int64 `protobuf:"varint,4,opt,name=o_int64,json=oInt64" json:"o_int64,omitempty"`
OInt64Str *int64 `protobuf:"varint,5,opt,name=o_int64_str,json=oInt64Str" json:"o_int64_str,omitempty"`
OUint32 *uint32 `protobuf:"varint,6,opt,name=o_uint32,json=oUint32" json:"o_uint32,omitempty"`
OUint32Str *uint32 `protobuf:"varint,7,opt,name=o_uint32_str,json=oUint32Str" json:"o_uint32_str,omitempty"`
OUint64 *uint64 `protobuf:"varint,8,opt,name=o_uint64,json=oUint64" json:"o_uint64,omitempty"`
OUint64Str *uint64 `protobuf:"varint,9,opt,name=o_uint64_str,json=oUint64Str" json:"o_uint64_str,omitempty"`
OSint32 *int32 `protobuf:"zigzag32,10,opt,name=o_sint32,json=oSint32" json:"o_sint32,omitempty"`
OSint32Str *int32 `protobuf:"zigzag32,11,opt,name=o_sint32_str,json=oSint32Str" json:"o_sint32_str,omitempty"`
OSint64 *int64 `protobuf:"zigzag64,12,opt,name=o_sint64,json=oSint64" json:"o_sint64,omitempty"`
OSint64Str *int64 `protobuf:"zigzag64,13,opt,name=o_sint64_str,json=oSint64Str" json:"o_sint64_str,omitempty"`
OFloat *float32 `protobuf:"fixed32,14,opt,name=o_float,json=oFloat" json:"o_float,omitempty"`
OFloatStr *float32 `protobuf:"fixed32,15,opt,name=o_float_str,json=oFloatStr" json:"o_float_str,omitempty"`
ODouble *float64 `protobuf:"fixed64,16,opt,name=o_double,json=oDouble" json:"o_double,omitempty"`
ODoubleStr *float64 `protobuf:"fixed64,17,opt,name=o_double_str,json=oDoubleStr" json:"o_double_str,omitempty"`
OString *string `protobuf:"bytes,18,opt,name=o_string,json=oString" json:"o_string,omitempty"`
OBytes []byte `protobuf:"bytes,19,opt,name=o_bytes,json=oBytes" json:"o_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Simple) Reset() { *m = Simple{} }
func (m *Simple) String() string { return proto.CompactTextString(m) }
func (*Simple) ProtoMessage() {}
func (*Simple) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{0}
}
func (m *Simple) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Simple.Unmarshal(m, b)
}
func (m *Simple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Simple.Marshal(b, m, deterministic)
}
func (m *Simple) XXX_Merge(src proto.Message) {
xxx_messageInfo_Simple.Merge(m, src)
}
func (m *Simple) XXX_Size() int {
return xxx_messageInfo_Simple.Size(m)
}
func (m *Simple) XXX_DiscardUnknown() {
xxx_messageInfo_Simple.DiscardUnknown(m)
}
var xxx_messageInfo_Simple proto.InternalMessageInfo
func (m *Simple) GetOBool() bool {
if m != nil && m.OBool != nil {
return *m.OBool
}
return false
}
func (m *Simple) GetOInt32() int32 {
if m != nil && m.OInt32 != nil {
return *m.OInt32
}
return 0
}
func (m *Simple) GetOInt32Str() int32 {
if m != nil && m.OInt32Str != nil {
return *m.OInt32Str
}
return 0
}
func (m *Simple) GetOInt64() int64 {
if m != nil && m.OInt64 != nil {
return *m.OInt64
}
return 0
}
func (m *Simple) GetOInt64Str() int64 {
if m != nil && m.OInt64Str != nil {
return *m.OInt64Str
}
return 0
}
func (m *Simple) GetOUint32() uint32 {
if m != nil && m.OUint32 != nil {
return *m.OUint32
}
return 0
}
func (m *Simple) GetOUint32Str() uint32 {
if m != nil && m.OUint32Str != nil {
return *m.OUint32Str
}
return 0
}
func (m *Simple) GetOUint64() uint64 {
if m != nil && m.OUint64 != nil {
return *m.OUint64
}
return 0
}
func (m *Simple) GetOUint64Str() uint64 {
if m != nil && m.OUint64Str != nil {
return *m.OUint64Str
}
return 0
}
func (m *Simple) GetOSint32() int32 {
if m != nil && m.OSint32 != nil {
return *m.OSint32
}
return 0
}
func (m *Simple) GetOSint32Str() int32 {
if m != nil && m.OSint32Str != nil {
return *m.OSint32Str
}
return 0
}
func (m *Simple) GetOSint64() int64 {
if m != nil && m.OSint64 != nil {
return *m.OSint64
}
return 0
}
func (m *Simple) GetOSint64Str() int64 {
if m != nil && m.OSint64Str != nil {
return *m.OSint64Str
}
return 0
}
func (m *Simple) GetOFloat() float32 {
if m != nil && m.OFloat != nil {
return *m.OFloat
}
return 0
}
func (m *Simple) GetOFloatStr() float32 {
if m != nil && m.OFloatStr != nil {
return *m.OFloatStr
}
return 0
}
func (m *Simple) GetODouble() float64 {
if m != nil && m.ODouble != nil {
return *m.ODouble
}
return 0
}
func (m *Simple) GetODoubleStr() float64 {
if m != nil && m.ODoubleStr != nil {
return *m.ODoubleStr
}
return 0
}
func (m *Simple) GetOString() string {
if m != nil && m.OString != nil {
return *m.OString
}
return ""
}
func (m *Simple) GetOBytes() []byte {
if m != nil {
return m.OBytes
}
return nil
}
// Test message for holding special non-finites primitives.
type NonFinites struct {
FNan *float32 `protobuf:"fixed32,1,opt,name=f_nan,json=fNan" json:"f_nan,omitempty"`
FPinf *float32 `protobuf:"fixed32,2,opt,name=f_pinf,json=fPinf" json:"f_pinf,omitempty"`
FNinf *float32 `protobuf:"fixed32,3,opt,name=f_ninf,json=fNinf" json:"f_ninf,omitempty"`
DNan *float64 `protobuf:"fixed64,4,opt,name=d_nan,json=dNan" json:"d_nan,omitempty"`
DPinf *float64 `protobuf:"fixed64,5,opt,name=d_pinf,json=dPinf" json:"d_pinf,omitempty"`
DNinf *float64 `protobuf:"fixed64,6,opt,name=d_ninf,json=dNinf" json:"d_ninf,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NonFinites) Reset() { *m = NonFinites{} }
func (m *NonFinites) String() string { return proto.CompactTextString(m) }
func (*NonFinites) ProtoMessage() {}
func (*NonFinites) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{1}
}
func (m *NonFinites) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NonFinites.Unmarshal(m, b)
}
func (m *NonFinites) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NonFinites.Marshal(b, m, deterministic)
}
func (m *NonFinites) XXX_Merge(src proto.Message) {
xxx_messageInfo_NonFinites.Merge(m, src)
}
func (m *NonFinites) XXX_Size() int {
return xxx_messageInfo_NonFinites.Size(m)
}
func (m *NonFinites) XXX_DiscardUnknown() {
xxx_messageInfo_NonFinites.DiscardUnknown(m)
}
var xxx_messageInfo_NonFinites proto.InternalMessageInfo
func (m *NonFinites) GetFNan() float32 {
if m != nil && m.FNan != nil {
return *m.FNan
}
return 0
}
func (m *NonFinites) GetFPinf() float32 {
if m != nil && m.FPinf != nil {
return *m.FPinf
}
return 0
}
func (m *NonFinites) GetFNinf() float32 {
if m != nil && m.FNinf != nil {
return *m.FNinf
}
return 0
}
func (m *NonFinites) GetDNan() float64 {
if m != nil && m.DNan != nil {
return *m.DNan
}
return 0
}
func (m *NonFinites) GetDPinf() float64 {
if m != nil && m.DPinf != nil {
return *m.DPinf
}
return 0
}
func (m *NonFinites) GetDNinf() float64 {
if m != nil && m.DNinf != nil {
return *m.DNinf
}
return 0
}
// Test message for holding repeated primitives.
type Repeats struct {
RBool []bool `protobuf:"varint,1,rep,name=r_bool,json=rBool" json:"r_bool,omitempty"`
RInt32 []int32 `protobuf:"varint,2,rep,name=r_int32,json=rInt32" json:"r_int32,omitempty"`
RInt64 []int64 `protobuf:"varint,3,rep,name=r_int64,json=rInt64" json:"r_int64,omitempty"`
RUint32 []uint32 `protobuf:"varint,4,rep,name=r_uint32,json=rUint32" json:"r_uint32,omitempty"`
RUint64 []uint64 `protobuf:"varint,5,rep,name=r_uint64,json=rUint64" json:"r_uint64,omitempty"`
RSint32 []int32 `protobuf:"zigzag32,6,rep,name=r_sint32,json=rSint32" json:"r_sint32,omitempty"`
RSint64 []int64 `protobuf:"zigzag64,7,rep,name=r_sint64,json=rSint64" json:"r_sint64,omitempty"`
RFloat []float32 `protobuf:"fixed32,8,rep,name=r_float,json=rFloat" json:"r_float,omitempty"`
RDouble []float64 `protobuf:"fixed64,9,rep,name=r_double,json=rDouble" json:"r_double,omitempty"`
RString []string `protobuf:"bytes,10,rep,name=r_string,json=rString" json:"r_string,omitempty"`
RBytes [][]byte `protobuf:"bytes,11,rep,name=r_bytes,json=rBytes" json:"r_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Repeats) Reset() { *m = Repeats{} }
func (m *Repeats) String() string { return proto.CompactTextString(m) }
func (*Repeats) ProtoMessage() {}
func (*Repeats) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{2}
}
func (m *Repeats) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Repeats.Unmarshal(m, b)
}
func (m *Repeats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Repeats.Marshal(b, m, deterministic)
}
func (m *Repeats) XXX_Merge(src proto.Message) {
xxx_messageInfo_Repeats.Merge(m, src)
}
func (m *Repeats) XXX_Size() int {
return xxx_messageInfo_Repeats.Size(m)
}
func (m *Repeats) XXX_DiscardUnknown() {
xxx_messageInfo_Repeats.DiscardUnknown(m)
}
var xxx_messageInfo_Repeats proto.InternalMessageInfo
func (m *Repeats) GetRBool() []bool {
if m != nil {
return m.RBool
}
return nil
}
func (m *Repeats) GetRInt32() []int32 {
if m != nil {
return m.RInt32
}
return nil
}
func (m *Repeats) GetRInt64() []int64 {
if m != nil {
return m.RInt64
}
return nil
}
func (m *Repeats) GetRUint32() []uint32 {
if m != nil {
return m.RUint32
}
return nil
}
func (m *Repeats) GetRUint64() []uint64 {
if m != nil {
return m.RUint64
}
return nil
}
func (m *Repeats) GetRSint32() []int32 {
if m != nil {
return m.RSint32
}
return nil
}
func (m *Repeats) GetRSint64() []int64 {
if m != nil {
return m.RSint64
}
return nil
}
func (m *Repeats) GetRFloat() []float32 {
if m != nil {
return m.RFloat
}
return nil
}
func (m *Repeats) GetRDouble() []float64 {
if m != nil {
return m.RDouble
}
return nil
}
func (m *Repeats) GetRString() []string {
if m != nil {
return m.RString
}
return nil
}
func (m *Repeats) GetRBytes() [][]byte {
if m != nil {
return m.RBytes
}
return nil
}
// Test message for holding enums and nested messages.
type Widget struct {
Color *Widget_Color `protobuf:"varint,1,opt,name=color,enum=jsonpb_test.Widget_Color" json:"color,omitempty"`
RColor []Widget_Color `protobuf:"varint,2,rep,name=r_color,json=rColor,enum=jsonpb_test.Widget_Color" json:"r_color,omitempty"`
Simple *Simple `protobuf:"bytes,10,opt,name=simple" json:"simple,omitempty"`
RSimple []*Simple `protobuf:"bytes,11,rep,name=r_simple,json=rSimple" json:"r_simple,omitempty"`
Repeats *Repeats `protobuf:"bytes,20,opt,name=repeats" json:"repeats,omitempty"`
RRepeats []*Repeats `protobuf:"bytes,21,rep,name=r_repeats,json=rRepeats" json:"r_repeats,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Widget) Reset() { *m = Widget{} }
func (m *Widget) String() string { return proto.CompactTextString(m) }
func (*Widget) ProtoMessage() {}
func (*Widget) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{3}
}
func (m *Widget) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Widget.Unmarshal(m, b)
}
func (m *Widget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Widget.Marshal(b, m, deterministic)
}
func (m *Widget) XXX_Merge(src proto.Message) {
xxx_messageInfo_Widget.Merge(m, src)
}
func (m *Widget) XXX_Size() int {
return xxx_messageInfo_Widget.Size(m)
}
func (m *Widget) XXX_DiscardUnknown() {
xxx_messageInfo_Widget.DiscardUnknown(m)
}
var xxx_messageInfo_Widget proto.InternalMessageInfo
func (m *Widget) GetColor() Widget_Color {
if m != nil && m.Color != nil {
return *m.Color
}
return Widget_RED
}
func (m *Widget) GetRColor() []Widget_Color {
if m != nil {
return m.RColor
}
return nil
}
func (m *Widget) GetSimple() *Simple {
if m != nil {
return m.Simple
}
return nil
}
func (m *Widget) GetRSimple() []*Simple {
if m != nil {
return m.RSimple
}
return nil
}
func (m *Widget) GetRepeats() *Repeats {
if m != nil {
return m.Repeats
}
return nil
}
func (m *Widget) GetRRepeats() []*Repeats {
if m != nil {
return m.RRepeats
}
return nil
}
type Maps struct {
MInt64Str map[int64]string `protobuf:"bytes,1,rep,name=m_int64_str,json=mInt64Str" json:"m_int64_str,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MBoolSimple map[bool]*Simple `protobuf:"bytes,2,rep,name=m_bool_simple,json=mBoolSimple" json:"m_bool_simple,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Maps) Reset() { *m = Maps{} }
func (m *Maps) String() string { return proto.CompactTextString(m) }
func (*Maps) ProtoMessage() {}
func (*Maps) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{4}
}
func (m *Maps) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Maps.Unmarshal(m, b)
}
func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Maps.Marshal(b, m, deterministic)
}
func (m *Maps) XXX_Merge(src proto.Message) {
xxx_messageInfo_Maps.Merge(m, src)
}
func (m *Maps) XXX_Size() int {
return xxx_messageInfo_Maps.Size(m)
}
func (m *Maps) XXX_DiscardUnknown() {
xxx_messageInfo_Maps.DiscardUnknown(m)
}
var xxx_messageInfo_Maps proto.InternalMessageInfo
func (m *Maps) GetMInt64Str() map[int64]string {
if m != nil {
return m.MInt64Str
}
return nil
}
func (m *Maps) GetMBoolSimple() map[bool]*Simple {
if m != nil {
return m.MBoolSimple
}
return nil
}
type MsgWithOneof struct {
// Types that are valid to be assigned to Union:
// *MsgWithOneof_Title
// *MsgWithOneof_Salary
// *MsgWithOneof_Country
// *MsgWithOneof_HomeAddress
// *MsgWithOneof_MsgWithRequired
// *MsgWithOneof_NullValue
Union isMsgWithOneof_Union `protobuf_oneof:"union"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MsgWithOneof) Reset() { *m = MsgWithOneof{} }
func (m *MsgWithOneof) String() string { return proto.CompactTextString(m) }
func (*MsgWithOneof) ProtoMessage() {}
func (*MsgWithOneof) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{5}
}
func (m *MsgWithOneof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MsgWithOneof.Unmarshal(m, b)
}
func (m *MsgWithOneof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MsgWithOneof.Marshal(b, m, deterministic)
}
func (m *MsgWithOneof) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgWithOneof.Merge(m, src)
}
func (m *MsgWithOneof) XXX_Size() int {
return xxx_messageInfo_MsgWithOneof.Size(m)
}
func (m *MsgWithOneof) XXX_DiscardUnknown() {
xxx_messageInfo_MsgWithOneof.DiscardUnknown(m)
}
var xxx_messageInfo_MsgWithOneof proto.InternalMessageInfo
type isMsgWithOneof_Union interface {
isMsgWithOneof_Union()
}
type MsgWithOneof_Title struct {
Title string `protobuf:"bytes,1,opt,name=title,oneof"`
}
type MsgWithOneof_Salary struct {
Salary int64 `protobuf:"varint,2,opt,name=salary,oneof"`
}
type MsgWithOneof_Country struct {
Country string `protobuf:"bytes,3,opt,name=Country,oneof"`
}
type MsgWithOneof_HomeAddress struct {
HomeAddress string `protobuf:"bytes,4,opt,name=home_address,json=homeAddress,oneof"`
}
type MsgWithOneof_MsgWithRequired struct {
MsgWithRequired *MsgWithRequired `protobuf:"bytes,5,opt,name=msg_with_required,json=msgWithRequired,oneof"`
}
type MsgWithOneof_NullValue struct {
NullValue structpb.NullValue `protobuf:"varint,6,opt,name=null_value,json=nullValue,enum=google.protobuf.NullValue,oneof"`
}
func (*MsgWithOneof_Title) isMsgWithOneof_Union() {}
func (*MsgWithOneof_Salary) isMsgWithOneof_Union() {}
func (*MsgWithOneof_Country) isMsgWithOneof_Union() {}
func (*MsgWithOneof_HomeAddress) isMsgWithOneof_Union() {}
func (*MsgWithOneof_MsgWithRequired) isMsgWithOneof_Union() {}
func (*MsgWithOneof_NullValue) isMsgWithOneof_Union() {}
func (m *MsgWithOneof) GetUnion() isMsgWithOneof_Union {
if m != nil {
return m.Union
}
return nil
}
func (m *MsgWithOneof) GetTitle() string {
if x, ok := m.GetUnion().(*MsgWithOneof_Title); ok {
return x.Title
}
return ""
}
func (m *MsgWithOneof) GetSalary() int64 {
if x, ok := m.GetUnion().(*MsgWithOneof_Salary); ok {
return x.Salary
}
return 0
}
func (m *MsgWithOneof) GetCountry() string {
if x, ok := m.GetUnion().(*MsgWithOneof_Country); ok {
return x.Country
}
return ""
}
func (m *MsgWithOneof) GetHomeAddress() string {
if x, ok := m.GetUnion().(*MsgWithOneof_HomeAddress); ok {
return x.HomeAddress
}
return ""
}
func (m *MsgWithOneof) GetMsgWithRequired() *MsgWithRequired {
if x, ok := m.GetUnion().(*MsgWithOneof_MsgWithRequired); ok {
return x.MsgWithRequired
}
return nil
}
func (m *MsgWithOneof) GetNullValue() structpb.NullValue {
if x, ok := m.GetUnion().(*MsgWithOneof_NullValue); ok {
return x.NullValue
}
return structpb.NullValue_NULL_VALUE
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*MsgWithOneof) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*MsgWithOneof_Title)(nil),
(*MsgWithOneof_Salary)(nil),
(*MsgWithOneof_Country)(nil),
(*MsgWithOneof_HomeAddress)(nil),
(*MsgWithOneof_MsgWithRequired)(nil),
(*MsgWithOneof_NullValue)(nil),
}
}
type Real struct {
Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
proto.XXX_InternalExtensions `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Real) Reset() { *m = Real{} }
func (m *Real) String() string { return proto.CompactTextString(m) }
func (*Real) ProtoMessage() {}
func (*Real) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{6}
}
var extRange_Real = []proto.ExtensionRange{
{Start: 100, End: 536870911},
}
func (*Real) ExtensionRangeArray() []proto.ExtensionRange {
return extRange_Real
}
func (m *Real) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Real.Unmarshal(m, b)
}
func (m *Real) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Real.Marshal(b, m, deterministic)
}
func (m *Real) XXX_Merge(src proto.Message) {
xxx_messageInfo_Real.Merge(m, src)
}
func (m *Real) XXX_Size() int {
return xxx_messageInfo_Real.Size(m)
}
func (m *Real) XXX_DiscardUnknown() {
xxx_messageInfo_Real.DiscardUnknown(m)
}
var xxx_messageInfo_Real proto.InternalMessageInfo
func (m *Real) GetValue() float64 {
if m != nil && m.Value != nil {
return *m.Value
}
return 0
}
type Complex struct {
Imaginary *float64 `protobuf:"fixed64,1,opt,name=imaginary" json:"imaginary,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
proto.XXX_InternalExtensions `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Complex) Reset() { *m = Complex{} }
func (m *Complex) String() string { return proto.CompactTextString(m) }
func (*Complex) ProtoMessage() {}
func (*Complex) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{7}
}
var extRange_Complex = []proto.ExtensionRange{
{Start: 100, End: 536870911},
}
func (*Complex) ExtensionRangeArray() []proto.ExtensionRange {
return extRange_Complex
}
func (m *Complex) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Complex.Unmarshal(m, b)
}
func (m *Complex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Complex.Marshal(b, m, deterministic)
}
func (m *Complex) XXX_Merge(src proto.Message) {
xxx_messageInfo_Complex.Merge(m, src)
}
func (m *Complex) XXX_Size() int {
return xxx_messageInfo_Complex.Size(m)
}
func (m *Complex) XXX_DiscardUnknown() {
xxx_messageInfo_Complex.DiscardUnknown(m)
}
var xxx_messageInfo_Complex proto.InternalMessageInfo
func (m *Complex) GetImaginary() float64 {
if m != nil && m.Imaginary != nil {
return *m.Imaginary
}
return 0
}
var E_Complex_RealExtension = &proto.ExtensionDesc{
ExtendedType: (*Real)(nil),
ExtensionType: (*Complex)(nil),
Field: 123,
Name: "jsonpb_test.Complex.real_extension",
Tag: "bytes,123,opt,name=real_extension",
Filename: "jsonpb_proto/test2.proto",
}
type KnownTypes struct {
An *anypb.Any `protobuf:"bytes,14,opt,name=an" json:"an,omitempty"`
Dur *durationpb.Duration `protobuf:"bytes,1,opt,name=dur" json:"dur,omitempty"`
St *structpb.Struct `protobuf:"bytes,12,opt,name=st" json:"st,omitempty"`
Ts *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ts" json:"ts,omitempty"`
Lv *structpb.ListValue `protobuf:"bytes,15,opt,name=lv" json:"lv,omitempty"`
Val *structpb.Value `protobuf:"bytes,16,opt,name=val" json:"val,omitempty"`
Dbl *wrapperspb.DoubleValue `protobuf:"bytes,3,opt,name=dbl" json:"dbl,omitempty"`
Flt *wrapperspb.FloatValue `protobuf:"bytes,4,opt,name=flt" json:"flt,omitempty"`
I64 *wrapperspb.Int64Value `protobuf:"bytes,5,opt,name=i64" json:"i64,omitempty"`
U64 *wrapperspb.UInt64Value `protobuf:"bytes,6,opt,name=u64" json:"u64,omitempty"`
I32 *wrapperspb.Int32Value `protobuf:"bytes,7,opt,name=i32" json:"i32,omitempty"`
U32 *wrapperspb.UInt32Value `protobuf:"bytes,8,opt,name=u32" json:"u32,omitempty"`
Bool *wrapperspb.BoolValue `protobuf:"bytes,9,opt,name=bool" json:"bool,omitempty"`
Str *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=str" json:"str,omitempty"`
Bytes *wrapperspb.BytesValue `protobuf:"bytes,11,opt,name=bytes" json:"bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KnownTypes) Reset() { *m = KnownTypes{} }
func (m *KnownTypes) String() string { return proto.CompactTextString(m) }
func (*KnownTypes) ProtoMessage() {}
func (*KnownTypes) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{8}
}
func (m *KnownTypes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KnownTypes.Unmarshal(m, b)
}
func (m *KnownTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KnownTypes.Marshal(b, m, deterministic)
}
func (m *KnownTypes) XXX_Merge(src proto.Message) {
xxx_messageInfo_KnownTypes.Merge(m, src)
}
func (m *KnownTypes) XXX_Size() int {
return xxx_messageInfo_KnownTypes.Size(m)
}
func (m *KnownTypes) XXX_DiscardUnknown() {
xxx_messageInfo_KnownTypes.DiscardUnknown(m)
}
var xxx_messageInfo_KnownTypes proto.InternalMessageInfo
func (m *KnownTypes) GetAn() *anypb.Any {
if m != nil {
return m.An
}
return nil
}
func (m *KnownTypes) GetDur() *durationpb.Duration {
if m != nil {
return m.Dur
}
return nil
}
func (m *KnownTypes) GetSt() *structpb.Struct {
if m != nil {
return m.St
}
return nil
}
func (m *KnownTypes) GetTs() *timestamppb.Timestamp {
if m != nil {
return m.Ts
}
return nil
}
func (m *KnownTypes) GetLv() *structpb.ListValue {
if m != nil {
return m.Lv
}
return nil
}
func (m *KnownTypes) GetVal() *structpb.Value {
if m != nil {
return m.Val
}
return nil
}
func (m *KnownTypes) GetDbl() *wrapperspb.DoubleValue {
if m != nil {
return m.Dbl
}
return nil
}
func (m *KnownTypes) GetFlt() *wrapperspb.FloatValue {
if m != nil {
return m.Flt
}
return nil
}
func (m *KnownTypes) GetI64() *wrapperspb.Int64Value {
if m != nil {
return m.I64
}
return nil
}
func (m *KnownTypes) GetU64() *wrapperspb.UInt64Value {
if m != nil {
return m.U64
}
return nil
}
func (m *KnownTypes) GetI32() *wrapperspb.Int32Value {
if m != nil {
return m.I32
}
return nil
}
func (m *KnownTypes) GetU32() *wrapperspb.UInt32Value {
if m != nil {
return m.U32
}
return nil
}
func (m *KnownTypes) GetBool() *wrapperspb.BoolValue {
if m != nil {
return m.Bool
}
return nil
}
func (m *KnownTypes) GetStr() *wrapperspb.StringValue {
if m != nil {
return m.Str
}
return nil
}
func (m *KnownTypes) GetBytes() *wrapperspb.BytesValue {
if m != nil {
return m.Bytes
}
return nil
}
// Test messages for marshaling/unmarshaling required fields.
type MsgWithRequired struct {
Str *string `protobuf:"bytes,1,req,name=str" json:"str,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MsgWithRequired) Reset() { *m = MsgWithRequired{} }
func (m *MsgWithRequired) String() string { return proto.CompactTextString(m) }
func (*MsgWithRequired) ProtoMessage() {}
func (*MsgWithRequired) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{9}
}
func (m *MsgWithRequired) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MsgWithRequired.Unmarshal(m, b)
}
func (m *MsgWithRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MsgWithRequired.Marshal(b, m, deterministic)
}
func (m *MsgWithRequired) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgWithRequired.Merge(m, src)
}
func (m *MsgWithRequired) XXX_Size() int {
return xxx_messageInfo_MsgWithRequired.Size(m)
}
func (m *MsgWithRequired) XXX_DiscardUnknown() {
xxx_messageInfo_MsgWithRequired.DiscardUnknown(m)
}
var xxx_messageInfo_MsgWithRequired proto.InternalMessageInfo
func (m *MsgWithRequired) GetStr() string {
if m != nil && m.Str != nil {
return *m.Str
}
return ""
}
type MsgWithIndirectRequired struct {
Subm *MsgWithRequired `protobuf:"bytes,1,opt,name=subm" json:"subm,omitempty"`
MapField map[string]*MsgWithRequired `protobuf:"bytes,2,rep,name=map_field,json=mapField" json:"map_field,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
SliceField []*MsgWithRequired `protobuf:"bytes,3,rep,name=slice_field,json=sliceField" json:"slice_field,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MsgWithIndirectRequired) Reset() { *m = MsgWithIndirectRequired{} }
func (m *MsgWithIndirectRequired) String() string { return proto.CompactTextString(m) }
func (*MsgWithIndirectRequired) ProtoMessage() {}
func (*MsgWithIndirectRequired) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{10}
}
func (m *MsgWithIndirectRequired) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MsgWithIndirectRequired.Unmarshal(m, b)
}
func (m *MsgWithIndirectRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MsgWithIndirectRequired.Marshal(b, m, deterministic)
}
func (m *MsgWithIndirectRequired) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgWithIndirectRequired.Merge(m, src)
}
func (m *MsgWithIndirectRequired) XXX_Size() int {
return xxx_messageInfo_MsgWithIndirectRequired.Size(m)
}
func (m *MsgWithIndirectRequired) XXX_DiscardUnknown() {
xxx_messageInfo_MsgWithIndirectRequired.DiscardUnknown(m)
}
var xxx_messageInfo_MsgWithIndirectRequired proto.InternalMessageInfo
func (m *MsgWithIndirectRequired) GetSubm() *MsgWithRequired {
if m != nil {
return m.Subm
}
return nil
}
func (m *MsgWithIndirectRequired) GetMapField() map[string]*MsgWithRequired {
if m != nil {
return m.MapField
}
return nil
}
func (m *MsgWithIndirectRequired) GetSliceField() []*MsgWithRequired {
if m != nil {
return m.SliceField
}
return nil
}
type MsgWithRequiredBytes struct {
Byts []byte `protobuf:"bytes,1,req,name=byts" json:"byts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MsgWithRequiredBytes) Reset() { *m = MsgWithRequiredBytes{} }
func (m *MsgWithRequiredBytes) String() string { return proto.CompactTextString(m) }
func (*MsgWithRequiredBytes) ProtoMessage() {}
func (*MsgWithRequiredBytes) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{11}
}
func (m *MsgWithRequiredBytes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MsgWithRequiredBytes.Unmarshal(m, b)
}
func (m *MsgWithRequiredBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MsgWithRequiredBytes.Marshal(b, m, deterministic)
}
func (m *MsgWithRequiredBytes) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgWithRequiredBytes.Merge(m, src)
}
func (m *MsgWithRequiredBytes) XXX_Size() int {
return xxx_messageInfo_MsgWithRequiredBytes.Size(m)
}
func (m *MsgWithRequiredBytes) XXX_DiscardUnknown() {
xxx_messageInfo_MsgWithRequiredBytes.DiscardUnknown(m)
}
var xxx_messageInfo_MsgWithRequiredBytes proto.InternalMessageInfo
func (m *MsgWithRequiredBytes) GetByts() []byte {
if m != nil {
return m.Byts
}
return nil
}
type MsgWithRequiredWKT struct {
Str *wrapperspb.StringValue `protobuf:"bytes,1,req,name=str" json:"str,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MsgWithRequiredWKT) Reset() { *m = MsgWithRequiredWKT{} }
func (m *MsgWithRequiredWKT) String() string { return proto.CompactTextString(m) }
func (*MsgWithRequiredWKT) ProtoMessage() {}
func (*MsgWithRequiredWKT) Descriptor() ([]byte, []int) {
return fileDescriptor_50cab1d8463dea41, []int{12}
}
func (m *MsgWithRequiredWKT) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MsgWithRequiredWKT.Unmarshal(m, b)
}
func (m *MsgWithRequiredWKT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MsgWithRequiredWKT.Marshal(b, m, deterministic)
}
func (m *MsgWithRequiredWKT) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgWithRequiredWKT.Merge(m, src)
}
func (m *MsgWithRequiredWKT) XXX_Size() int {
return xxx_messageInfo_MsgWithRequiredWKT.Size(m)
}
func (m *MsgWithRequiredWKT) XXX_DiscardUnknown() {
xxx_messageInfo_MsgWithRequiredWKT.DiscardUnknown(m)
}
var xxx_messageInfo_MsgWithRequiredWKT proto.InternalMessageInfo
func (m *MsgWithRequiredWKT) GetStr() *wrapperspb.StringValue {
if m != nil {
return m.Str
}
return nil
}
var E_Name = &proto.ExtensionDesc{
ExtendedType: (*Real)(nil),
ExtensionType: (*string)(nil),
Field: 124,
Name: "jsonpb_test.name",
Tag: "bytes,124,opt,name=name",
Filename: "jsonpb_proto/test2.proto",
}
var E_Extm = &proto.ExtensionDesc{
ExtendedType: (*Real)(nil),
ExtensionType: (*MsgWithRequired)(nil),
Field: 125,
Name: "jsonpb_test.extm",
Tag: "bytes,125,opt,name=extm",
Filename: "jsonpb_proto/test2.proto",
}
func init() {
proto.RegisterEnum("jsonpb_test.Widget_Color", Widget_Color_name, Widget_Color_value)
proto.RegisterType((*Simple)(nil), "jsonpb_test.Simple")
proto.RegisterType((*NonFinites)(nil), "jsonpb_test.NonFinites")
proto.RegisterType((*Repeats)(nil), "jsonpb_test.Repeats")
proto.RegisterType((*Widget)(nil), "jsonpb_test.Widget")
proto.RegisterType((*Maps)(nil), "jsonpb_test.Maps")
proto.RegisterMapType((map[bool]*Simple)(nil), "jsonpb_test.Maps.MBoolSimpleEntry")
proto.RegisterMapType((map[int64]string)(nil), "jsonpb_test.Maps.MInt64StrEntry")
proto.RegisterType((*MsgWithOneof)(nil), "jsonpb_test.MsgWithOneof")
proto.RegisterType((*Real)(nil), "jsonpb_test.Real")
proto.RegisterExtension(E_Complex_RealExtension)
proto.RegisterType((*Complex)(nil), "jsonpb_test.Complex")
proto.RegisterType((*KnownTypes)(nil), "jsonpb_test.KnownTypes")
proto.RegisterType((*MsgWithRequired)(nil), "jsonpb_test.MsgWithRequired")
proto.RegisterType((*MsgWithIndirectRequired)(nil), "jsonpb_test.MsgWithIndirectRequired")
proto.RegisterMapType((map[string]*MsgWithRequired)(nil), "jsonpb_test.MsgWithIndirectRequired.MapFieldEntry")
proto.RegisterType((*MsgWithRequiredBytes)(nil), "jsonpb_test.MsgWithRequiredBytes")
proto.RegisterType((*MsgWithRequiredWKT)(nil), "jsonpb_test.MsgWithRequiredWKT")
proto.RegisterExtension(E_Name)
proto.RegisterExtension(E_Extm)
}
func init() { proto.RegisterFile("jsonpb_proto/test2.proto", fileDescriptor_50cab1d8463dea41) }
var fileDescriptor_50cab1d8463dea41 = []byte{
// 1537 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x57, 0xdd, 0x6e, 0xdb, 0xc8,
0x15, 0x36, 0x49, 0x51, 0x12, 0x8f, 0xec, 0xc4, 0x99, 0x64, 0x37, 0xb4, 0x1b, 0x6c, 0x09, 0x6d,
0xb7, 0x55, 0xb3, 0xa8, 0xdc, 0xa5, 0x05, 0xa1, 0xc8, 0x76, 0x81, 0xae, 0x13, 0xa7, 0xd9, 0xee,
0xc6, 0x5b, 0x8c, 0x93, 0x06, 0xed, 0x8d, 0x40, 0x99, 0x94, 0xc2, 0x96, 0x9c, 0x51, 0x67, 0x86,
0x4e, 0x84, 0xb6, 0x80, 0xfb, 0x0a, 0xed, 0x23, 0x14, 0xe8, 0x6d, 0xef, 0x7a, 0xd1, 0xe7, 0xe8,
0x03, 0x2d, 0xe6, 0xcc, 0x50, 0x7f, 0x96, 0x8d, 0xbd, 0xb2, 0x66, 0xbe, 0x9f, 0x19, 0xce, 0xf9,
0x78, 0x86, 0x86, 0xf0, 0x8f, 0x92, 0xb3, 0xd9, 0x78, 0x34, 0x13, 0x5c, 0xf1, 0x23, 0x95, 0x49,
0x15, 0xf7, 0xf1, 0x37, 0xe9, 0x58, 0x44, 0xcf, 0x1d, 0x1e, 0x4c, 0x39, 0x9f, 0x16, 0xd9, 0x11,
0x42, 0xe3, 0x6a, 0x72, 0x94, 0xb0, 0xb9, 0xe1, 0x1d, 0x7e, 0xb4, 0x09, 0xa5, 0x95, 0x48, 0x54,
0xce, 0x99, 0xc5, 0x1f, 0x6d, 0xe2, 0x52, 0x89, 0xea, 0x42, 0x59, 0xf4, 0x87, 0x9b, 0xa8, 0xca,
0xcb, 0x4c, 0xaa, 0xa4, 0x9c, 0xdd, 0x64, 0xff, 0x4e, 0x24, 0xb3, 0x59, 0x26, 0xa4, 0xc1, 0xbb,
0xff, 0x69, 0x40, 0xf3, 0x3c, 0x2f, 0x67, 0x45, 0x46, 0x3e, 0x80, 0x26, 0x1f, 0x8d, 0x39, 0x2f,
0x42, 0x27, 0x72, 0x7a, 0x6d, 0xea, 0xf3, 0x13, 0xce, 0x0b, 0xf2, 0x10, 0x5a, 0x7c, 0x94, 0x33,
0x75, 0x1c, 0x87, 0x6e, 0xe4, 0xf4, 0x7c, 0xda, 0xe4, 0x5f, 0xe9, 0x11, 0xf9, 0x08, 0x3a, 0x16,
0x18, 0x49, 0x25, 0x42, 0x0f, 0xc1, 0xc0, 0x80, 0xe7, 0x4a, 0x2c, 0x84, 0xc3, 0x41, 0xd8, 0x88,
0x9c, 0x9e, 0x67, 0x84, 0xc3, 0xc1, 0x42, 0x38, 0x1c, 0xa0, 0xd0, 0x47, 0x30, 0x30, 0xa0, 0x16,
0x1e, 0x40, 0x9b, 0x8f, 0x2a, 0xb3, 0x64, 0x33, 0x72, 0x7a, 0x7b, 0xb4, 0xc5, 0x5f, 0xe3, 0x90,
0x44, 0xb0, 0x5b, 0x43, 0xa8, 0x6d, 0x21, 0x0c, 0x16, 0x5e, 0x13, 0x0f, 0x07, 0x61, 0x3b, 0x72,
0x7a, 0x0d, 0x2b, 0x1e, 0x0e, 0x96, 0x62, 0xbb, 0x70, 0x80, 0x30, 0x58, 0x78, 0x21, 0x96, 0x66,
0x65, 0x88, 0x9c, 0xde, 0x3d, 0xda, 0xe2, 0xe7, 0x2b, 0x2b, 0xcb, 0xe5, 0xca, 0x1d, 0x84, 0xc1,
0xc2, 0x6b, 0xe2, 0xe1, 0x20, 0xdc, 0x8d, 0x9c, 0x1e, 0xb1, 0xe2, 0x7a, 0x65, 0xb9, 0x5c, 0x79,
0x0f, 0x61, 0xb0, 0xf0, 0xe2, 0xb0, 0x26, 0x05, 0x4f, 0x54, 0x78, 0x27, 0x72, 0x7a, 0x2e, 0x6d,
0xf2, 0xe7, 0x7a, 0x64, 0x0e, 0x0b, 0x01, 0x54, 0xde, 0x45, 0x30, 0x30, 0xe0, 0x62, 0xd5, 0x94,
0x57, 0xe3, 0x22, 0x0b, 0xf7, 0x23, 0xa7, 0xe7, 0xd0, 0x16, 0x7f, 0x86, 0x43, 0xb3, 0xaa, 0x81,
0x50, 0x7b, 0x0f, 0x61, 0xb0, 0xf0, 0x72, 0xcb, 0x4a, 0xe4, 0x6c, 0x1a, 0x92, 0xc8, 0xe9, 0x05,
0x7a, 0xcb, 0x38, 0x34, 0x1b, 0x1a, 0xcf, 0x55, 0x26, 0xc3, 0xfb, 0x91, 0xd3, 0xdb, 0xa5, 0x4d,
0x7e, 0xa2, 0x47, 0xdd, 0x7f, 0x38, 0x00, 0x67, 0x9c, 0x3d, 0xcf, 0x59, 0xae, 0x32, 0x49, 0xee,
0x83, 0x3f, 0x19, 0xb1, 0x84, 0x61, 0x68, 0x5c, 0xda, 0x98, 0x9c, 0x25, 0x4c, 0x47, 0x69, 0x32,
0x9a, 0xe5, 0x6c, 0x82, 0x91, 0x71, 0xa9, 0x3f, 0xf9, 0x6d, 0xce, 0x26, 0x66, 0x9a, 0xe9, 0x69,
0xcf, 0x4e, 0x9f, 0xe9, 0xe9, 0xfb, 0xe0, 0xa7, 0x68, 0xd1, 0xc0, 0x0d, 0x36, 0x52, 0x6b, 0x91,
0x1a, 0x0b, 0x1f, 0x67, 0xfd, 0xb4, 0xb6, 0x48, 0x8d, 0x45, 0xd3, 0x4e, 0x6b, 0x8b, 0xee, 0xbf,
0x5d, 0x68, 0xd1, 0x6c, 0x96, 0x25, 0x4a, 0x6a, 0x8a, 0xa8, 0x73, 0xec, 0xe9, 0x1c, 0x8b, 0x3a,
0xc7, 0x62, 0x91, 0x63, 0x4f, 0xe7, 0x58, 0x98, 0x1c, 0xd7, 0xc0, 0x70, 0x10, 0x7a, 0x91, 0xa7,
0x73, 0x2a, 0x4c, 0x4e, 0x0f, 0xa0, 0x2d, 0xea, 0x1c, 0x36, 0x22, 0x4f, 0xe7, 0x50, 0xd8, 0x1c,
0x2e, 0xa0, 0xe1, 0x20, 0xf4, 0x23, 0x4f, 0xa7, 0x4c, 0xd8, 0x94, 0x21, 0x24, 0xeb, 0xf4, 0x7a,
0x3a, 0x43, 0xe2, 0x7c, 0x45, 0x65, 0x13, 0xd2, 0x8a, 0x3c, 0x9d, 0x10, 0x61, 0x13, 0x82, 0x9b,
0x30, 0xf5, 0x6f, 0x47, 0x9e, 0xae, 0xbf, 0x30, 0xf5, 0x47, 0x8d, 0xad, 0x6f, 0x10, 0x79, 0xba,
0xbe, 0xc2, 0xd6, 0xd7, 0xd8, 0x99, 0xea, 0x41, 0xe4, 0xe9, 0xea, 0x89, 0x65, 0xf5, 0x84, 0xad,
0x5e, 0x27, 0xf2, 0x74, 0xf5, 0x84, 0xa9, 0xde, 0xff, 0x5d, 0x68, 0xbe, 0xc9, 0xd3, 0x69, 0xa6,
0xc8, 0x11, 0xf8, 0x17, 0xbc, 0xe0, 0x02, 0x2b, 0x77, 0x27, 0x3e, 0xe8, 0xaf, 0x74, 0xac, 0xbe,
0xe1, 0xf4, 0x9f, 0x6a, 0x02, 0x35, 0x3c, 0x12, 0x6b, 0x53, 0x23, 0xd1, 0x27, 0x78, 0xab, 0xa4,
0x29, 0xf0, 0x2f, 0xf9, 0x14, 0x9a, 0x12, 0xdb, 0x0b, 0xbe, 0x4f, 0x9d, 0xf8, 0xfe, 0x9a, 0xc4,
0x74, 0x1e, 0x6a, 0x29, 0xa4, 0x6f, 0xce, 0x07, 0xe9, 0x7a, 0xdb, 0x37, 0xd0, 0xf5, 0xa1, 0x59,
0x7e, 0x4b, 0x98, 0xa2, 0x87, 0x0f, 0xd0, 0xfd, 0xc1, 0x1a, 0xdd, 0x06, 0x82, 0xd6, 0x24, 0xf2,
0x19, 0x04, 0x62, 0x54, 0x2b, 0x3e, 0xc0, 0x05, 0xb6, 0x2b, 0xda, 0xc2, 0xfe, 0xea, 0x7e, 0x02,
0xbe, 0x79, 0x90, 0x16, 0x78, 0xf4, 0xf4, 0xd9, 0xfe, 0x0e, 0x09, 0xc0, 0xff, 0x35, 0x3d, 0x3d,
0x3d, 0xdb, 0x77, 0x48, 0x1b, 0x1a, 0x27, 0xdf, 0xbc, 0x3e, 0xdd, 0x77, 0xbb, 0xff, 0x72, 0xa1,
0xf1, 0x32, 0x99, 0x49, 0xf2, 0x2b, 0xe8, 0x94, 0x2b, 0xbd, 0xcd, 0xc1, 0x45, 0xa2, 0xb5, 0x45,
0x34, 0xaf, 0xff, 0xb2, 0xee, 0x76, 0xa7, 0x4c, 0x89, 0x39, 0x0d, 0xca, 0x45, 0xf7, 0x7b, 0x0e,
0x7b, 0x25, 0xc6, 0xb7, 0x3e, 0x09, 0x17, 0x3d, 0xba, 0x5b, 0x3c, 0x74, 0xae, 0xcd, 0x51, 0x18,
0x97, 0x4e, 0xb9, 0x9c, 0x39, 0xfc, 0x25, 0xdc, 0x59, 0x5f, 0x84, 0xec, 0x83, 0xf7, 0xa7, 0x6c,
0x8e, 0xe5, 0xf6, 0xa8, 0xfe, 0x49, 0x1e, 0x80, 0x7f, 0x99, 0x14, 0x55, 0x86, 0xaf, 0x69, 0x40,
0xcd, 0xe0, 0x89, 0xfb, 0x0b, 0xe7, 0xf0, 0x1c, 0xf6, 0x37, 0xed, 0x57, 0xf5, 0x6d, 0xa3, 0xff,
0xe9, 0xaa, 0xfe, 0x86, 0x6a, 0x2d, 0x4d, 0xbb, 0xff, 0x74, 0x61, 0xf7, 0xa5, 0x9c, 0xbe, 0xc9,
0xd5, 0xdb, 0x6f, 0x59, 0xc6, 0x27, 0xe4, 0x43, 0xf0, 0x55, 0xae, 0x8a, 0x0c, 0x3d, 0x83, 0x17,
0x3b, 0xd4, 0x0c, 0x49, 0x08, 0x4d, 0x99, 0x14, 0x89, 0x98, 0xa3, 0xb1, 0xf7, 0x62, 0x87, 0xda,
0x31, 0x39, 0x84, 0xd6, 0x53, 0x5e, 0xe9, 0xed, 0x60, 0x0f, 0xd1, 0x9a, 0x7a, 0x82, 0x7c, 0x0c,
0xbb, 0x6f, 0x79, 0x99, 0x8d, 0x92, 0x34, 0x15, 0x99, 0x94, 0xd8, 0x4e, 0x34, 0xa1, 0xa3, 0x67,
0xbf, 0x34, 0x93, 0xe4, 0x37, 0x70, 0xaf, 0x94, 0xd3, 0xd1, 0xbb, 0x5c, 0xbd, 0x1d, 0x89, 0xec,
0xcf, 0x55, 0x2e, 0xb2, 0x14, 0x5b, 0x4c, 0x27, 0x7e, 0xb4, 0x7e, 0xc4, 0x66, 0xa3, 0xd4, 0x72,
0x5e, 0xec, 0xd0, 0xbb, 0xe5, 0xfa, 0x14, 0xf9, 0x1c, 0x80, 0x55, 0x45, 0x31, 0x32, 0x67, 0xd0,
0xc4, 0xd7, 0xe8, 0xb0, 0x6f, 0x6e, 0xdc, 0x7e, 0x7d, 0xe3, 0xf6, 0xcf, 0xaa, 0xa2, 0xf8, 0x9d,
0x66, 0xbc, 0xd8, 0xa1, 0x01, 0xab, 0x07, 0x27, 0x2d, 0xf0, 0x2b, 0x96, 0x73, 0xd6, 0xfd, 0x31,
0x34, 0x68, 0x96, 0x14, 0xcb, 0x62, 0x38, 0xa6, 0xb3, 0xe1, 0xe0, 0x71, 0xbb, 0x9d, 0xee, 0x5f,
0x5d, 0x5d, 0x5d, 0xb9, 0xdd, 0xbf, 0x3b, 0xfa, 0xd9, 0xf5, 0x99, 0xbe, 0x27, 0x8f, 0x20, 0xc8,
0xcb, 0x64, 0x9a, 0x33, 0x7d, 0x46, 0x86, 0xbf, 0x9c, 0x58, 0x6a, 0xe2, 0x33, 0xb8, 0x23, 0xb2,
0xa4, 0x18, 0x65, 0xef, 0x55, 0xc6, 0x64, 0xce, 0x19, 0xb9, 0xb7, 0x11, 0xf8, 0xa4, 0x08, 0xff,
0xb2, 0xe5, 0xdd, 0xb1, 0x0b, 0xd1, 0x3d, 0x2d, 0x3f, 0xad, 0xd5, 0xdd, 0xff, 0xf9, 0x00, 0x5f,
0x33, 0xfe, 0x8e, 0xbd, 0x9a, 0xcf, 0x32, 0x49, 0x7e, 0x04, 0x6e, 0xc2, 0xf0, 0xc2, 0xd2, 0xfa,
0xcd, 0x07, 0xff, 0x92, 0xcd, 0xa9, 0x9b, 0x30, 0xf2, 0x29, 0x78, 0x69, 0x65, 0xda, 0x4c, 0x27,
0x3e, 0xb8, 0x46, 0x7b, 0x66, 0x3f, 0x78, 0xa8, 0x66, 0x91, 0x9f, 0x80, 0x2b, 0x15, 0xde, 0x9f,
0x9d, 0xf8, 0xe1, 0x35, 0xee, 0x39, 0x7e, 0xfc, 0x50, 0x57, 0x2a, 0xf2, 0x18, 0x5c, 0x25, 0x6d,
0xf0, 0xae, 0x1f, 0xfa, 0xab, 0xfa, 0x3b, 0x88, 0xba, 0x4a, 0x6a, 0x6e, 0x71, 0x89, 0x77, 0xe7,
0x36, 0xee, 0x37, 0xb9, 0x54, 0x58, 0x13, 0xea, 0x16, 0x97, 0xa4, 0x07, 0xde, 0x65, 0x52, 0xe0,
0x5d, 0xda, 0x89, 0x3f, 0xbc, 0x46, 0x36, 0x44, 0x4d, 0x21, 0x7d, 0xf0, 0xd2, 0x71, 0x81, 0x39,
0xd4, 0xe1, 0xb9, 0xf6, 0x5c, 0xd8, 0xa5, 0x2d, 0x3f, 0x1d, 0x17, 0xe4, 0x67, 0xe0, 0x4d, 0x0a,
0x85, 0xb1, 0xec, 0xc4, 0x3f, 0xb8, 0xc6, 0xc7, 0x7e, 0x6f, 0xe9, 0x93, 0x42, 0x69, 0x7a, 0x8e,
0xd7, 0xcb, 0x76, 0x3a, 0xbe, 0xdb, 0x96, 0x9e, 0x0f, 0x07, 0x7a, 0x37, 0xd5, 0x70, 0x80, 0x29,
0xdc, 0xb6, 0x9b, 0xd7, 0xab, 0xfc, 0x6a, 0x38, 0x40, 0xfb, 0xe3, 0x18, 0xbf, 0xa0, 0x6e, 0xb0,
0x3f, 0x8e, 0x6b, 0xfb, 0xe3, 0x18, 0xed, 0x8f, 0x63, 0xfc, 0xa4, 0xba, 0xc9, 0x7e, 0xc1, 0xaf,
0x90, 0xdf, 0xc0, 0x3b, 0x38, 0xb8, 0xe1, 0xd0, 0x75, 0x73, 0x31, 0x74, 0xe4, 0x69, 0x7f, 0xdd,
0x30, 0xe1, 0x06, 0x7f, 0x73, 0xaf, 0x59, 0x7f, 0xa9, 0x04, 0xf9, 0x0c, 0xfc, 0xfa, 0x7e, 0xdb,
0xfe, 0x00, 0x78, 0xdf, 0x19, 0x81, 0x61, 0x76, 0x3f, 0x86, 0xbb, 0x1b, 0x2f, 0xb5, 0x6e, 0x69,
0xa6, 0x4d, 0xbb, 0xbd, 0x00, 0x7d, 0xbb, 0xff, 0x75, 0xe1, 0xa1, 0x65, 0x7d, 0xc5, 0xd2, 0x5c,
0x64, 0x17, 0x6a, 0xc1, 0xfe, 0x39, 0x34, 0x64, 0x35, 0x2e, 0x6d, 0x92, 0x6f, 0x6d, 0x17, 0x14,
0x99, 0xe4, 0x5b, 0x08, 0xca, 0x64, 0x36, 0x9a, 0xe4, 0x59, 0x91, 0xda, 0x46, 0x1e, 0x6f, 0x93,
0x6d, 0x2e, 0xa5, 0x1b, 0xfc, 0x73, 0x2d, 0x32, 0x8d, 0xbd, 0x5d, 0xda, 0x21, 0xf9, 0x02, 0x3a,
0xb2, 0xc8, 0x2f, 0x32, 0x6b, 0xe9, 0xa1, 0xe5, 0xed, 0x3b, 0x01, 0x14, 0xa0, 0xfc, 0xf0, 0xf7,
0xb0, 0xb7, 0xe6, 0xbc, 0xda, 0xd3, 0x03, 0xd3, 0xd3, 0xe3, 0xf5, 0x9e, 0x7e, 0xbb, 0xf7, 0x4a,
0x73, 0x7f, 0x0c, 0x0f, 0x36, 0x50, 0xac, 0x00, 0x21, 0xd0, 0x18, 0xcf, 0x95, 0xc4, 0x33, 0xde,
0xa5, 0xf8, 0xbb, 0xfb, 0x0c, 0xc8, 0x06, 0xf7, 0xcd, 0xd7, 0xaf, 0xea, 0x08, 0x68, 0xe2, 0xf7,
0x89, 0xc0, 0x93, 0x4f, 0xa0, 0xc1, 0x92, 0x32, 0xdb, 0xd6, 0xd2, 0xfe, 0x8a, 0xcf, 0x83, 0xf0,
0x93, 0xa7, 0xd0, 0xc8, 0xde, 0xab, 0x72, 0x1b, 0xed, 0x6f, 0xdf, 0xa7, 0x90, 0x5a, 0x7c, 0xf2,
0xc5, 0x1f, 0x3e, 0x9f, 0xe6, 0xea, 0x6d, 0x35, 0xee, 0x5f, 0xf0, 0xf2, 0x68, 0xca, 0x8b, 0x84,
0x4d, 0x97, 0xff, 0x54, 0xe5, 0x4c, 0x65, 0x82, 0x25, 0x05, 0xfe, 0x07, 0x88, 0xb3, 0xf2, 0x68,
0xf5, 0x3f, 0xc3, 0xef, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5b, 0xac, 0xa6, 0xa5, 0x28, 0x0e, 0x00,
0x00,
}
================================================
FILE: internal/testprotos/jsonpb_proto/test2.proto
================================================
// Copyright 2015 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.
syntax = "proto2";
option go_package = "github.com/golang/protobuf/internal/testprotos/jsonpb_proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
package jsonpb_test;
// Test message for holding primitive types.
message Simple {
optional bool o_bool = 1;
optional int32 o_int32 = 2;
optional int32 o_int32_str = 3;
optional int64 o_int64 = 4;
optional int64 o_int64_str = 5;
optional uint32 o_uint32 = 6;
optional uint32 o_uint32_str = 7;
optional uint64 o_uint64 = 8;
optional uint64 o_uint64_str = 9;
optional sint32 o_sint32 = 10;
optional sint32 o_sint32_str = 11;
optional sint64 o_sint64 = 12;
optional sint64 o_sint64_str = 13;
optional float o_float = 14;
optional float o_float_str = 15;
optional double o_double = 16;
optional double o_double_str = 17;
optional string o_string = 18;
optional bytes o_bytes = 19;
}
// Test message for holding special non-finites primitives.
message NonFinites {
optional float f_nan = 1;
optional float f_pinf = 2;
optional float f_ninf = 3;
optional double d_nan = 4;
optional double d_pinf = 5;
optional double d_ninf = 6;
}
// Test message for holding repeated primitives.
message Repeats {
repeated bool r_bool = 1;
repeated int32 r_int32 = 2;
repeated int64 r_int64 = 3;
repeated uint32 r_uint32 = 4;
repeated uint64 r_uint64 = 5;
repeated sint32 r_sint32 = 6;
repeated sint64 r_sint64 = 7;
repeated float r_float = 8;
repeated double r_double = 9;
repeated string r_string = 10;
repeated bytes r_bytes = 11;
}
// Test message for holding enums and nested messages.
message Widget {
enum Color {
RED = 0;
GREEN = 1;
BLUE = 2;
};
optional Color color = 1;
repeated Color r_color = 2;
optional Simple simple = 10;
repeated Simple r_simple = 11;
optional Repeats repeats = 20;
repeated Repeats r_repeats = 21;
}
message Maps {
map<int64, string> m_int64_str = 1;
map<bool, Simple> m_bool_simple = 2;
}
message MsgWithOneof {
oneof union {
string title = 1;
int64 salary = 2;
string Country = 3;
string home_address = 4;
MsgWithRequired msg_with_required = 5;
google.protobuf.NullValue null_value = 6;
}
}
message Real {
optional double value = 1;
extensions 100 to max;
}
extend Real {
optional string name = 124;
}
message Complex {
extend Real {
optional Complex real_extension = 123;
}
optional double imaginary = 1;
extensions 100 to max;
}
message KnownTypes {
optional google.protobuf.Any an = 14;
optional google.protobuf.Duration dur = 1;
optional google.protobuf.Struct st = 12;
optional google.protobuf.Timestamp ts = 2;
optional google.protobuf.ListValue lv = 15;
optional google.protobuf.Value val = 16;
optional google.protobuf.DoubleValue dbl = 3;
optional google.protobuf.FloatValue flt = 4;
optional google.protobuf.Int64Value i64 = 5;
optional google.protobuf.UInt64Value u64 = 6;
optional google.protobuf.Int32Value i32 = 7;
optional google.protobuf.UInt32Value u32 = 8;
optional google.protobuf.BoolValue bool = 9;
optional google.protobuf.StringValue str = 10;
optional google.protobuf.BytesValue bytes = 11;
}
// Test messages for marshaling/unmarshaling required fields.
message MsgWithRequired {
required string str = 1;
}
message MsgWithIndirectRequired {
optional MsgWithRequired subm = 1;
map<string, MsgWithRequired> map_field = 2;
repeated MsgWithRequired slice_field = 3;
}
message MsgWithRequiredBytes {
required bytes byts = 1;
}
message MsgWithRequiredWKT {
required google.protobuf.StringValue str = 1;
}
extend Real {
optional MsgWithRequired extm = 125;
}
================================================
FILE: internal/testprotos/jsonpb_proto/test3.pb.go
================================================
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: jsonpb_proto/test3.proto
package jsonpb_proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Numeral int32
const (
Numeral_UNKNOWN Numeral = 0
Numeral_ARABIC Numeral = 1
Numeral_ROMAN Numeral = 2
)
var Numeral_name = map[int32]string{
0: "UNKNOWN",
1: "ARABIC",
2: "ROMAN",
}
var Numeral_value = map[string]int32{
"UNKNOWN": 0,
"ARABIC": 1,
"ROMAN": 2,
}
func (x Numeral) String() string {
return proto.EnumName(Numeral_name, int32(x))
}
func (Numeral) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_813baf511b225405, []int{0}
}
type Simple3 struct {
Dub float64 `protobuf:"fixed64,1,opt,name=dub,proto3" json:"dub,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Simple3) Reset() { *m = Simple3{} }
func (m *Simple3) String() string { return proto.CompactTextString(m) }
func (*Simple3) ProtoMessage() {}
func (*Simple3) Descriptor() ([]byte, []int) {
return fileDescriptor_813baf511b225405, []int{0}
}
func (m *Simple3) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Simple3.Unmarshal(m, b)
}
func (m *Simple3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Simple3.Marshal(b, m, deterministic)
}
func (m *Simple3) XXX_Merge(src proto.Message) {
xxx_messageInfo_Simple3.Merge(m, src)
}
func (m *Simple3) XXX_Size() int {
return xxx_messageInfo_Simple3.Size(m)
}
func (m *Simple3) XXX_DiscardUnknown() {
xxx_messageInfo_Simple3.DiscardUnknown(m)
}
var xxx_messageInfo_Simple3 proto.InternalMessageInfo
func (m *Simple3) GetDub() float64 {
if m != nil {
return m.Dub
}
return 0
}
type SimpleSlice3 struct {
Slices []string `protobuf:"bytes,1,rep,name=slices,proto3" json:"slices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SimpleSlice3) Reset() { *m = SimpleSlice3{} }
func (m *SimpleSlice3) String() string { return proto.CompactTextString(m) }
func (*SimpleSlice3) ProtoMessage() {}
func (*SimpleSlice3) Descriptor() ([]byte, []int) {
return fileDescriptor_813baf511b225405, []int{1}
}
func (m *SimpleSlice3) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SimpleSlice3.Unmarshal(m, b)
}
func (m *SimpleSlice3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SimpleSlice3.Marshal(b, m, deterministic)
}
func (m *SimpleSlice3) XXX_Merge(src proto.Message) {
xxx_messageInfo_SimpleSlice3.Merge(m, src)
}
func (m *SimpleSlice3) XXX_Size() int {
return xxx_messageInfo_SimpleSlice3.Size(m)
}
func (m *SimpleSlice3) XXX_DiscardUnknown() {
xxx_messageInfo_SimpleSlice3.DiscardUnknown(m)
}
var xxx_messageInfo_SimpleSlice3 proto.InternalMessageInfo
func (m *SimpleSlice3) GetSlices() []string {
if m != nil {
return m.Slices
}
return nil
}
type SimpleMap3 struct {
Stringy map[string]string `protobuf:"bytes,1,rep,name=stringy,proto3" json:"stringy,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SimpleMap3) Reset() { *m = SimpleMap3{} }
func (m *SimpleMap3) String() string { return proto.CompactTextString(m) }
func (*SimpleMap3) ProtoMessage() {}
func (*SimpleMap3) Descriptor() ([]byte, []int) {
return fileDescriptor_813baf511b225405, []int{2}
}
func (m *SimpleMap3) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SimpleMap3.Unmarshal(m, b)
}
func (m *SimpleMap3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SimpleMap3.Marshal(b, m, deterministic)
}
func (m *SimpleMap3) XXX_Merge(src proto.Message) {
xxx_messageInfo_SimpleMap3.Merge(m, src)
}
func (m *SimpleMap3) XXX_Size() int {
return xxx_messageInfo_SimpleMap3.Size(m)
}
func (m *SimpleMap3) XXX_DiscardUnknown() {
xxx_messageInfo_SimpleMap3.DiscardUnknown(m)
}
var xxx_messageInfo_SimpleMap3 proto.InternalMessageInfo
func (m *SimpleMap3) GetStringy() map[string]string {
if m != nil {
return m.Stringy
}
return nil
}
type SimpleNull3 struct {
Simple *Simple3 `protobuf:"bytes,1,opt,name=simple,proto3" json:"simple,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SimpleNull3) Reset() { *m = SimpleNull3{} }
func (m *SimpleNull3) String() string { return proto.CompactTextString(m) }
func (*SimpleNull3) ProtoMessage() {}
func (*SimpleNull3) Descriptor() ([]byte, []int) {
return fileDescriptor_813baf511b225405, []int{3}
}
func (m *SimpleNull3) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SimpleNull3.Unmarshal(m, b)
}
func (m *SimpleNull3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SimpleNull3.Marshal(b, m, deterministic)
}
func (m *SimpleNull3) XXX_Merge(src proto.Message) {
xxx_messageInfo_SimpleNull3.Merge(m, src)
}
func (m *SimpleNull3) XXX_Size() int {
return xxx_messageInfo_SimpleNull3.Size(m)
}
func (m *SimpleNull3) XXX_DiscardUnknown() {
xxx_messageInfo_SimpleNull3.DiscardUnknown(m)
}
var xxx_messageInfo_SimpleNull3 proto.InternalMessageInfo
func (m *SimpleNull3) GetSimple() *Simple3 {
if m != nil {
return m.Simple
}
return nil
}
type Mappy struct {
Nummy map[int64]int32 `protobuf:"bytes,1,rep,name=nummy,proto3" json:"nummy,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
Strry map[string]string `protobuf:"bytes,2,rep,name=strry,proto3" json:"strry,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Objjy map[int32]*Simple3 `protobuf:"bytes,3,rep,name=objjy,proto3" json:"objjy,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Buggy map[int64]string `protobuf:"bytes,4,rep,name=buggy,proto3" json:"buggy,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Booly map[bool]bool `protobuf:"bytes,5,rep,name=booly,proto3" json:"booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
Enumy map[string]Numeral `protobuf:"bytes,6,rep,name=enumy,proto3" json:"enumy,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=jsonpb_test.Numeral"`
S32Booly map[int32]bool `protobuf:"bytes,7,rep,name=s32booly,proto3" json:"s32booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
S64Booly map[int64]bool `protobuf:"bytes,8,rep,name=s64booly,proto3" json:"s64booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
U32Booly map[uint32]bool `protobuf:"bytes,9,rep,name=u32booly,proto3" json:"u32booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
U64Booly map[uint64]bool `protobuf:"bytes,10,rep,name=u64booly,proto3" json:"u64booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Mappy) Reset() { *m = Mappy{} }
func (m *Mappy) String() string { return proto.CompactTextString(m) }
func (*Mappy) ProtoMessage() {}
func (*Mappy) Descriptor() ([]byte, []int) {
return fileDescriptor_813baf511b225405, []int{4}
}
func (m *Mappy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Mappy.Unmarshal(m, b)
}
func (m *Mappy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Mappy.Marshal(b, m, deterministic)
}
func (m *Mappy) XXX_Merge(src proto.Message) {
xxx_messageInfo_Mappy.Merge(m, src)
}
func (m *Mappy) XXX_Size() int {
return xxx_messageInfo_Mappy.Size(m)
}
func (m *Mappy) XXX_DiscardUnknown() {
xxx_messageInfo_Mappy.DiscardUnknown(m)
}
var xxx_messageInfo_Mappy proto.InternalMessageInfo
func (m *Mappy) GetNummy() map[int64]int32 {
if m != nil {
return m.Nummy
}
return nil
}
func (m *Mappy) GetStrry() map[string]string {
if m != nil {
return m.Strry
}
return nil
}
func (m *Mappy) GetObjjy() map[int32]*Simple3 {
if m != nil {
return m.Objjy
}
return nil
}
func (m *Mappy) GetBuggy() map[int64]string {
if m != nil {
return m.Buggy
}
return nil
}
func (m *Mappy) GetBooly() map[bool]bool {
if m != nil {
return m.Booly
}
return nil
}
func (m *Mappy) GetEnumy() map[string]Numeral {
if m != nil {
return m.Enumy
}
return nil
}
func (m *Mappy) GetS32Booly() map[int32]bool {
if m != nil {
return m.S32Booly
}
return nil
}
func (m *Mappy) GetS64Booly() map[int64]bool {
if m != nil {
return m.S64Booly
}
return nil
}
func (m *Mappy) GetU32Booly() map[uint32]bool {
if m != nil {
return m.U32Booly
}
return nil
}
func (m *Mappy) GetU64Booly() map[uint64]bool {
if m != nil {
return m.U64Booly
}
return nil
}
func init() {
proto.RegisterEnum("jsonpb_test.Numeral", Numeral_name, Numeral_value)
proto.RegisterType((*Simple3)(nil), "jsonpb_test.Simple3")
proto.RegisterType((*SimpleSlice3)(nil), "jsonpb_test.SimpleSlice3")
proto.RegisterType((*SimpleMap3)(nil), "jsonpb_test.SimpleMap3")
proto.RegisterMapType((map[string]string)(nil), "jsonpb_test.SimpleMap3.StringyEntry")
proto.RegisterType((*SimpleNull3)(nil), "jsonpb_test.SimpleNull3")
proto.RegisterType((*Mappy)(nil), "jsonpb_test.Mappy")
proto.RegisterMapType((map[bool]bool)(nil), "jsonpb_test.Mappy.BoolyEntry")
proto.RegisterMapType((map[int64]string)(nil), "jsonpb_test.Mappy.BuggyEntry")
proto.RegisterMapType((map[string]Numeral)(nil), "jsonpb_test.Mappy.EnumyEntry")
proto.RegisterMapType((map[int64]int32)(nil), "jsonpb_test.Mappy.NummyEntry")
proto.RegisterMapType((map[int32]*Simple3)(nil), "jsonpb_test.Mappy.ObjjyEntry")
proto.RegisterMapType((map[int32]bool)(nil), "jsonpb_test.Mappy.S32boolyEntry")
proto.RegisterMapType((map[int64]bool)(nil), "jsonpb_test.Mappy.S64boolyEntry")
proto.RegisterMapType((map[string]string)(nil), "jsonpb_test.Mappy.StrryEntry")
proto.RegisterMapType((map[uint32]bool)(nil), "jsonpb_test.Mappy.U32boolyEntry")
proto.RegisterMapType((map[uint64]bool)(nil), "jsonpb_test.Mappy.U64boolyEntry")
}
func init() { proto.RegisterFile("jsonpb_proto/test3.proto", fileDescriptor_813baf511b225405) }
var fileDescriptor_813baf511b225405 = []byte{
// 563 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x95, 0xdd, 0x8a, 0xd3, 0x40,
0x14, 0xc7, 0x4d, 0xbb, 0x69, 0x9b, 0xd3, 0x5d, 0x29, 0xc3, 0x22, 0xa1, 0x22, 0x94, 0x22, 0xb2,
0x2c, 0x9a, 0x40, 0x23, 0xb2, 0x6c, 0x55, 0x68, 0x65, 0x2f, 0x44, 0x9a, 0x42, 0x4a, 0x11, 0xbc,
0x91, 0x64, 0x8d, 0x31, 0x35, 0x5f, 0x24, 0x19, 0x21, 0x6f, 0xe0, 0x2b, 0xf9, 0x76, 0x32, 0x1f,
0xd9, 0x4c, 0x4a, 0x86, 0xea, 0xd5, 0x9e, 0x99, 0xf3, 0xff, 0xe5, 0x7c, 0xec, 0xbf, 0x0c, 0xe8,
0x87, 0x22, 0x4d, 0x32, 0xef, 0x6b, 0x96, 0xa7, 0x65, 0x6a, 0x96, 0x7e, 0x51, 0x5a, 0x06, 0x8d,
0xd1, 0x98, 0x67, 0xc8, 0xdd, 0xfc, 0x29, 0x0c, 0x77, 0x61, 0x9c, 0x45, 0xbe, 0x85, 0x26, 0xd0,
0xff, 0x86, 0x3d, 0x5d, 0x99, 0x29, 0x57, 0x8a, 0x43, 0xc2, 0xf9, 0x0b, 0x38, 0x67, 0xc9, 0x5d,
0x14, 0xde, 0xfb, 0x16, 0x7a, 0x02, 0x83, 0x82, 0x44, 0x85, 0xae, 0xcc, 0xfa, 0x57, 0x9a, 0xc3,
0x4f, 0xf3, 0xdf, 0x0a, 0x00, 0x13, 0x6e, 0xdc, 0xcc, 0x42, 0xef, 0x61, 0x58, 0x94, 0x79, 0x98,
0x04, 0x15, 0xd5, 0x8d, 0x17, 0xcf, 0x0d, 0xa1, 0xa4, 0xd1, 0x28, 0x8d, 0x1d, 0x93, 0xdd, 0x25,
0x65, 0x5e, 0x39, 0x35, 0x34, 0xbd, 0x85, 0x73, 0x31, 0x41, 0x1a, 0xfb, 0xe9, 0x57, 0xb4, 0x31,
0xcd, 0x21, 0x21, 0xba, 0x04, 0xf5, 0x97, 0x1b, 0x61, 0x5f, 0xef, 0xd1, 0x3b, 0x76, 0xb8, 0xed,
0xdd, 0x28, 0xf3, 0x25, 0x8c, 0xd9, 0xf7, 0x6d, 0x1c, 0x45, 0x16, 0x7a, 0x09, 0x83, 0x82, 0x1e,
0x29, 0x3d, 0x5e, 0x5c, 0x76, 0x74, 0x62, 0x39, 0x5c, 0x33, 0xff, 0xa3, 0x81, 0xba, 0x71, 0xb3,
0xac, 0x42, 0x16, 0xa8, 0x09, 0x8e, 0xe3, 0x7a, 0x80, 0x67, 0x2d, 0x8c, 0x4a, 0x0c, 0x9b, 0xe4,
0x59, 0xe7, 0x4c, 0x4b, 0xa0, 0xa2, 0xcc, 0xf3, 0x4a, 0xef, 0x49, 0xa1, 0x1d, 0xc9, 0x73, 0x88,
0x6a, 0x09, 0x94, 0x7a, 0x87, 0x43, 0xa5, 0xf7, 0xa5, 0xd0, 0x96, 0xe4, 0x39, 0x44, 0xb5, 0x04,
0xf2, 0x70, 0x10, 0x54, 0xfa, 0x99, 0x14, 0x5a, 0x93, 0x3c, 0x87, 0xa8, 0x96, 0x42, 0x69, 0x1a,
0x55, 0xba, 0x2a, 0x87, 0x48, 0xbe, 0x86, 0x48, 0x4c, 0x20, 0x3f, 0xc1, 0x71, 0xa5, 0x0f, 0xa4,
0xd0, 0x1d, 0xc9, 0x73, 0x88, 0x6a, 0xd1, 0x5b, 0x18, 0x15, 0xd6, 0x82, 0x15, 0x1b, 0x52, 0x6e,
0xd6, 0xb5, 0x0b, 0x2e, 0x61, 0xe8, 0x03, 0x41, 0xe9, 0x37, 0xaf, 0x19, 0x3d, 0x92, 0xd3, 0x5c,
0x52, 0xd3, 0xfc, 0x48, 0x68, 0x5c, 0xd7, 0xd6, 0xa4, 0xf4, 0xbe, 0x5d, 0x1b, 0x0b, 0xb5, 0x71,
0x5d, 0x1b, 0xe4, 0x74, 0xbb, 0x76, 0x4d, 0x4c, 0x6f, 0x00, 0x1a, 0x57, 0x88, 0xb6, 0xed, 0x77,
0xd8, 0x56, 0x15, 0x6c, 0x4b, 0xc8, 0xc6, 0x1a, 0xff, 0x63, 0xf8, 0xa9, 0x0d, 0xd0, 0xf8, 0x43,
0x24, 0x55, 0x46, 0x5e, 0x8b, 0xa4, 0xec, 0x07, 0xd0, 0xee, 0xa4, 0xb1, 0xce, 0xa9, 0x19, 0xb4,
0x63, 0xf2, 0x61, 0x2b, 0x22, 0x39, 0xea, 0x20, 0x47, 0x47, 0x33, 0x34, 0x26, 0xea, 0x98, 0xbe,
0x35, 0xc3, 0xe3, 0xa3, 0x19, 0x6c, 0x1c, 0xfb, 0xb9, 0x1b, 0x89, 0xdf, 0x5b, 0xc2, 0x45, 0xcb,
0x5c, 0x1d, 0x6b, 0x91, 0x37, 0x43, 0x60, 0xf1, 0xff, 0x7b, 0x6a, 0x07, 0xc7, 0xf0, 0x5e, 0x56,
0xf9, 0xe2, 0x5f, 0x60, 0x59, 0xe5, 0xb3, 0x13, 0xf0, 0xf5, 0x2b, 0x18, 0xf2, 0x4d, 0xa0, 0x31,
0x0c, 0xf7, 0xf6, 0x27, 0x7b, 0xfb, 0xd9, 0x9e, 0x3c, 0x42, 0x00, 0x83, 0x95, 0xb3, 0x5a, 0x7f,
0xfc, 0x30, 0x51, 0x90, 0x06, 0xaa, 0xb3, 0xdd, 0xac, 0xec, 0x49, 0x6f, 0xfd, 0xee, 0xcb, 0x32,
0x08, 0xcb, 0x1f, 0xd8, 0x33, 0xee, 0xd3, 0xd8, 0x0c, 0xd2, 0xc8, 0x4d, 0x02, 0x93, 0xbe, 0x0f,
0x1e, 0xfe, 0x6e, 0x86, 0x49, 0xe9, 0xe7, 0x89, 0x1b, 0xd1, 0x77, 0x83, 0xde, 0x16, 0xa6, 0xf8,
0x9e, 0x78, 0x03, 0xfa, 0xc7, 0xfa, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x7c, 0xda, 0x44, 0x24, 0x66,
0x06, 0x00, 0x00,
}
================================================
FILE: internal/testprotos/jsonpb_proto/test3.proto
================================================
// Copyright 2015 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.
syntax = "proto3";
option go_package = "github.com/golang/protobuf/internal/testprotos/jsonpb_proto";
package jsonpb_test;
message Simple3 {
double dub = 1;
}
message SimpleSlice3 {
repeated string slices = 1;
}
message SimpleMap3 {
map<string,string> stringy = 1;
}
message SimpleNull3 {
Simple3 simple = 1;
}
enum Numeral {
UNKNOWN = 0;
ARABIC = 1;
ROMAN = 2;
}
message Mappy {
map<int64, int32> nummy = 1;
map<string, string> strry = 2;
map<int32, Simple3> objjy = 3;
map<int64, string> buggy = 4;
map<bool, bool> booly = 5;
map<string, Numeral> enumy = 6;
map<int32, bool> s32booly = 7;
map<int64, bool> s64booly = 8;
map<uint32, bool> u32booly = 9;
map<uint64, bool> u64booly = 10;
}
================================================
FILE: internal/testprotos/proto2_proto/test.pb.go
================================================
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto2_proto/test.proto
package proto2_proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type FOO int32
const (
FOO_FOO1 FOO = 1
)
var FOO_name = map[int32]string{
1: "FOO1",
}
var FOO_value = map[string]int32{
"FOO1": 1,
}
func (x FOO) Enum() *FOO {
p := new(FOO)
*p = x
return p
}
func (x FOO) String() string {
return proto.EnumName(FOO_name, int32(x))
}
func (x *FOO) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(FOO_value, data, "FOO")
if err != nil {
return err
}
*x = FOO(value)
return nil
}
func (FOO) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{0}
}
// An enum, for completeness.
type GoTest_KIND int32
const (
GoTest_VOID GoTest_KIND = 0
// Basic types
GoTest_BOOL GoTest_KIND = 1
GoTest_BYTES GoTest_KIND = 2
GoTest_FINGERPRINT GoTest_KIND = 3
GoTest_FLOAT GoTest_KIND = 4
GoTest_INT GoTest_KIND = 5
GoTest_STRING GoTest_KIND = 6
GoTest_TIME GoTest_KIND = 7
// Groupings
GoTest_TUPLE GoTest_KIND = 8
GoTest_ARRAY GoTest_KIND = 9
GoTest_MAP GoTest_KIND = 10
// Table types
GoTest_TABLE GoTest_KIND = 11
// Functions
GoTest_FUNCTION GoTest_KIND = 12
)
var GoTest_KIND_name = map[int32]string{
0: "VOID",
1: "BOOL",
2: "BYTES",
3: "FINGERPRINT",
4: "FLOAT",
5: "INT",
6: "STRING",
7: "TIME",
8: "TUPLE",
9: "ARRAY",
10: "MAP",
11: "TABLE",
12: "FUNCTION",
}
var GoTest_KIND_value = map[string]int32{
"VOID": 0,
"BOOL": 1,
"BYTES": 2,
"FINGERPRINT": 3,
"FLOAT": 4,
"INT": 5,
"STRING": 6,
"TIME": 7,
"TUPLE": 8,
"ARRAY": 9,
"MAP": 10,
"TABLE": 11,
"FUNCTION": 12,
}
func (x GoTest_KIND) Enum() *GoTest_KIND {
p := new(GoTest_KIND)
*p = x
return p
}
func (x GoTest_KIND) String() string {
return proto.EnumName(GoTest_KIND_name, int32(x))
}
func (x *GoTest_KIND) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(GoTest_KIND_value, data, "GoTest_KIND")
if err != nil {
return err
}
*x = GoTest_KIND(value)
return nil
}
func (GoTest_KIND) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{2, 0}
}
type MyMessage_Color int32
const (
MyMessage_RED MyMessage_Color = 0
MyMessage_GREEN MyMessage_Color = 1
MyMessage_BLUE MyMessage_Color = 2
)
var MyMessage_Color_name = map[int32]string{
0: "RED",
1: "GREEN",
2: "BLUE",
}
var MyMessage_Color_value = map[string]int32{
"RED": 0,
"GREEN": 1,
"BLUE": 2,
}
func (x MyMessage_Color) Enum() *MyMessage_Color {
p := new(MyMessage_Color)
*p = x
return p
}
func (x MyMessage_Color) String() string {
return proto.EnumName(MyMessage_Color_name, int32(x))
}
func (x *MyMessage_Color) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(MyMessage_Color_value, data, "MyMessage_Color")
if err != nil {
return err
}
*x = MyMessage_Color(value)
return nil
}
func (MyMessage_Color) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{13, 0}
}
type DefaultsMessage_DefaultsEnum int32
const (
DefaultsMessage_ZERO DefaultsMessage_DefaultsEnum = 0
DefaultsMessage_ONE DefaultsMessage_DefaultsEnum = 1
DefaultsMessage_TWO DefaultsMessage_DefaultsEnum = 2
)
var DefaultsMessage_DefaultsEnum_name = map[int32]string{
0: "ZERO",
1: "ONE",
2: "TWO",
}
var DefaultsMessage_DefaultsEnum_value = map[string]int32{
"ZERO": 0,
"ONE": 1,
"TWO": 2,
}
func (x DefaultsMessage_DefaultsEnum) Enum() *DefaultsMessage_DefaultsEnum {
p := new(DefaultsMessage_DefaultsEnum)
*p = x
return p
}
func (x DefaultsMessage_DefaultsEnum) String() string {
return proto.EnumName(DefaultsMessage_DefaultsEnum_name, int32(x))
}
func (x *DefaultsMessage_DefaultsEnum) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(DefaultsMessage_DefaultsEnum_value, data, "DefaultsMessage_DefaultsEnum")
if err != nil {
return err
}
*x = DefaultsMessage_DefaultsEnum(value)
return nil
}
func (DefaultsMessage_DefaultsEnum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{16, 0}
}
type Defaults_Color int32
const (
Defaults_RED Defaults_Color = 0
Defaults_GREEN Defaults_Color = 1
Defaults_BLUE Defaults_Color = 2
)
var Defaults_Color_name = map[int32]string{
0: "RED",
1: "GREEN",
2: "BLUE",
}
var Defaults_Color_value = map[string]int32{
"RED": 0,
"GREEN": 1,
"BLUE": 2,
}
func (x Defaults_Color) Enum() *Defaults_Color {
p := new(Defaults_Color)
*p = x
return p
}
func (x Defaults_Color) String() string {
return proto.EnumName(Defaults_Color_name, int32(x))
}
func (x *Defaults_Color) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Defaults_Color_value, data, "Defaults_Color")
if err != nil {
return err
}
*x = Defaults_Color(value)
return nil
}
func (Defaults_Color) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{20, 0}
}
type RepeatedEnum_Color int32
const (
RepeatedEnum_RED RepeatedEnum_Color = 1
)
var RepeatedEnum_Color_name = map[int32]string{
1: "RED",
}
var RepeatedEnum_Color_value = map[string]int32{
"RED": 1,
}
func (x RepeatedEnum_Color) Enum() *RepeatedEnum_Color {
p := new(RepeatedEnum_Color)
*p = x
return p
}
func (x RepeatedEnum_Color) String() string {
return proto.EnumName(RepeatedEnum_Color_name, int32(x))
}
func (x *RepeatedEnum_Color) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(RepeatedEnum_Color_value, data, "RepeatedEnum_Color")
if err != nil {
return err
}
*x = RepeatedEnum_Color(value)
return nil
}
func (RepeatedEnum_Color) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{22, 0}
}
type GoEnum struct {
Foo *FOO `protobuf:"varint,1,req,name=foo,enum=proto2_test.FOO" json:"foo,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoEnum) Reset() { *m = GoEnum{} }
func (m *GoEnum) String() string { return proto.CompactTextString(m) }
func (*GoEnum) ProtoMessage() {}
func (*GoEnum) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{0}
}
func (m *GoEnum) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoEnum.Unmarshal(m, b)
}
func (m *GoEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoEnum.Marshal(b, m, deterministic)
}
func (m *GoEnum) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoEnum.Merge(m, src)
}
func (m *GoEnum) XXX_Size() int {
return xxx_messageInfo_GoEnum.Size(m)
}
func (m *GoEnum) XXX_DiscardUnknown() {
xxx_messageInfo_GoEnum.DiscardUnknown(m)
}
var xxx_messageInfo_GoEnum proto.InternalMessageInfo
func (m *GoEnum) GetFoo() FOO {
if m != nil && m.Foo != nil {
return *m.Foo
}
return FOO_FOO1
}
type GoTestField struct {
Label *string `protobuf:"bytes,1,req,name=Label" json:"Label,omitempty"`
Type *string `protobuf:"bytes,2,req,name=Type" json:"Type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoTestField) Reset() { *m = GoTestField{} }
func (m *GoTestField) String() string { return proto.CompactTextString(m) }
func (*GoTestField) ProtoMessage() {}
func (*GoTestField) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{1}
}
func (m *GoTestField) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoTestField.Unmarshal(m, b)
}
func (m *GoTestField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoTestField.Marshal(b, m, deterministic)
}
func (m *GoTestField) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoTestField.Merge(m, src)
}
func (m *GoTestField) XXX_Size() int {
return xxx_messageInfo_GoTestField.Size(m)
}
func (m *GoTestField) XXX_DiscardUnknown() {
xxx_messageInfo_GoTestField.DiscardUnknown(m)
}
var xxx_messageInfo_GoTestField proto.InternalMessageInfo
func (m *GoTestField) GetLabel() string {
if m != nil && m.Label != nil {
return *m.Label
}
return ""
}
func (m *GoTestField) GetType() string {
if m != nil && m.Type != nil {
return *m.Type
}
return ""
}
type GoTest struct {
// Some typical parameters
Kind *GoTest_KIND `protobuf:"varint,1,req,name=Kind,enum=proto2_test.GoTest_KIND" json:"Kind,omitempty"`
Table *string `protobuf:"bytes,2,opt,name=Table" json:"Table,omitempty"`
Param *int32 `protobuf:"varint,3,opt,name=Param" json:"Param,omitempty"`
// Required, repeated and optional foreign fields.
RequiredField *GoTestField `protobuf:"bytes,4,req,name=RequiredField" json:"RequiredField,omitempty"`
RepeatedField []*GoTestField `protobuf:"bytes,5,rep,name=RepeatedField" json:"RepeatedField,omitempty"`
OptionalField *GoTestField `protobuf:"bytes,6,opt,name=OptionalField" json:"OptionalField,omitempty"`
// Required fields of all basic types
F_BoolRequired *bool `protobuf:"varint,10,req,name=F_Bool_required,json=FBoolRequired" json:"F_Bool_required,omitempty"`
F_Int32Required *int32 `protobuf:"varint,11,req,name=F_Int32_required,json=FInt32Required" json:"F_Int32_required,omitempty"`
F_Int64Required *int64 `protobuf:"varint,12,req,name=F_Int64_required,json=FInt64Required" json:"F_Int64_required,omitempty"`
F_Fixed32Required *uint32 `protobuf:"fixed32,13,req,name=F_Fixed32_required,json=FFixed32Required" json:"F_Fixed32_required,omitempty"`
F_Fixed64Required *uint64 `protobuf:"fixed64,14,req,name=F_Fixed64_required,json=FFixed64Required" json:"F_Fixed64_required,omitempty"`
F_Uint32Required *uint32 `protobuf:"varint,15,req,name=F_Uint32_required,json=FUint32Required" json:"F_Uint32_required,omitempty"`
F_Uint64Required *uint64 `protobuf:"varint,16,req,name=F_Uint64_required,json=FUint64Required" json:"F_Uint64_required,omitempty"`
F_FloatRequired *float32 `protobuf:"fixed32,17,req,name=F_Float_required,json=FFloatRequired" json:"F_Float_required,omitempty"`
F_DoubleRequired *float64 `protobuf:"fixed64,18,req,name=F_Double_required,json=FDoubleRequired" json:"F_Double_required,omitempty"`
F_StringRequired *string `protobuf:"bytes,19,req,name=F_String_required,json=FStringRequired" json:"F_String_required,omitempty"`
F_BytesRequired []byte `protobuf:"bytes,101,req,name=F_Bytes_required,json=FBytesRequired" json:"F_Bytes_required,omitempty"`
F_Sint32Required *int32 `protobuf:"zigzag32,102,req,name=F_Sint32_required,json=FSint32Required" json:"F_Sint32_required,omitempty"`
F_Sint64Required *int64 `protobuf:"zigzag64,103,req,name=F_Sint64_required,json=FSint64Required" json:"F_Sint64_required,omitempty"`
F_Sfixed32Required *int32 `protobuf:"fixed32,104,req,name=F_Sfixed32_required,json=FSfixed32Required" json:"F_Sfixed32_required,omitempty"`
F_Sfixed64Required *int64 `protobuf:"fixed64,105,req,name=F_Sfixed64_required,json=FSfixed64Required" json:"F_Sfixed64_required,omitempty"`
// Repeated fields of all basic types
F_BoolRepeated []bool `protobuf:"varint,20,rep,name=F_Bool_repeated,json=FBoolRepeated" json:"F_Bool_repeated,omitempty"`
F_Int32Repeated []int32 `protobuf:"varint,21,rep,name=F_Int32_repeated,json=FInt32Repeated" json:"F_Int32_repeated,omitempty"`
F_Int64Repeated []int64 `protobuf:"varint,22,rep,name=F_Int64_repeated,json=FInt64Repeated" json:"F_Int64_repeated,omitempty"`
F_Fixed32Repeated []uint32 `protobuf:"fixed32,23,rep,name=F_Fixed32_repeated,json=FFixed32Repeated" json:"F_Fixed32_repeated,omitempty"`
F_Fixed64Repeated []uint64 `protobuf:"fixed64,24,rep,name=F_Fixed64_repeated,json=FFixed64Repeated" json:"F_Fixed64_repeated,omitempty"`
F_Uint32Repeated []uint32 `protobuf:"varint,25,rep,name=F_Uint32_repeated,json=FUint32Repeated" json:"F_Uint32_repeated,omitempty"`
F_Uint64Repeated []uint64 `protobuf:"varint,26,rep,name=F_Uint64_repeated,json=FUint64Repeated" json:"F_Uint64_repeated,omitempty"`
F_FloatRepeated []float32 `protobuf:"fixed32,27,rep,name=F_Float_repeated,json=FFloatRepeated" json:"F_Float_repeated,omitempty"`
F_DoubleRepeated []float64 `protobuf:"fixed64,28,rep,name=F_Double_repeated,json=FDoubleRepeated" json:"F_Double_repeated,omitempty"`
F_StringRepeated []string `protobuf:"bytes,29,rep,name=F_String_repeated,json=FStringRepeated" json:"F_String_repeated,omitempty"`
F_BytesRepeated [][]byte `protobuf:"bytes,201,rep,name=F_Bytes_repeated,json=FBytesRepeated" json:"F_Bytes_repeated,omitempty"`
F_Sint32Repeated []int32 `protobuf:"zigzag32,202,rep,name=F_Sint32_repeated,json=FSint32Repeated" json:"F_Sint32_repeated,omitempty"`
F_Sint64Repeated []int64 `protobuf:"zigzag64,203,rep,name=F_Sint64_repeated,json=FSint64Repeated" json:"F_Sint64_repeated,omitempty"`
F_Sfixed32Repeated []int32 `protobuf:"fixed32,204,rep,name=F_Sfixed32_repeated,json=FSfixed32Repeated" json:"F_Sfixed32_repeated,omitempty"`
F_Sfixed64Repeated []int64 `protobuf:"fixed64,205,rep,name=F_Sfixed64_repeated,json=FSfixed64Repeated" json:"F_Sfixed64_repeated,omitempty"`
// Optional fields of all basic types
F_BoolOptional *bool `protobuf:"varint,30,opt,name=F_Bool_optional,json=FBoolOptional" json:"F_Bool_optional,omitempty"`
F_Int32Optional *int32 `protobuf:"varint,31,opt,name=F_Int32_optional,json=FInt32Optional" json:"F_Int32_optional,omitempty"`
F_Int64Optional *int64 `protobuf:"varint,32,opt,name=F_Int64_optional,json=FInt64Optional" json:"F_Int64_optional,omitempty"`
F_Fixed32Optional *uint32 `protobuf:"fixed32,33,opt,name=F_Fixed32_optional,json=FFixed32Optional" json:"F_Fixed32_optional,omitempty"`
F_Fixed64Optional *uint64 `protobuf:"fixed64,34,opt,name=F_Fixed64_optional,json=FFixed64Optional" json:"F_Fixed64_optional,omitempty"`
F_Uint32Optional *uint32 `protobuf:"varint,35,opt,name=F_Uint32_optional,json=FUint32Optional" json:"F_Uint32_optional,omitempty"`
F_Uint64Optional *uint64 `protobuf:"varint,36,opt,name=F_Uint64_optional,json=FUint64Optional" json:"F_Uint64_optional,omitempty"`
F_FloatOptional *float32 `protobuf:"fixed32,37,opt,name=F_Float_optional,json=FFloatOptional" json:"F_Float_optional,omitempty"`
F_DoubleOptional *float64 `protobuf:"fixed64,38,opt,name=F_Double_optional,json=FDoubleOptional" json:"F_Double_optional,omitempty"`
F_StringOptional *string `protobuf:"bytes,39,opt,name=F_String_optional,json=FStringOptional" json:"F_String_optional,omitempty"`
F_BytesOptional []byte `protobuf:"bytes,301,opt,name=F_Bytes_optional,json=FBytesOptional" json:"F_Bytes_optional,omitempty"`
F_Sint32Optional *int32 `protobuf:"zigzag32,302,opt,name=F_Sint32_optional,json=FSint32Optional" json:"F_Sint32_optional,omitempty"`
F_Sint64Optional *int64 `protobuf:"zigzag64,303,opt,name=F_Sint64_optional,json=FSint64Optional" json:"F_Sint64_optional,omitempty"`
F_Sfixed32Optional *int32 `protobuf:"fixed32,304,opt,name=F_Sfixed32_optional,json=FSfixed32Optional" json:"F_Sfixed32_optional,omitempty"`
F_Sfixed64Optional *int64 `protobuf:"fixed64,305,opt,name=F_Sfixed64_optional,json=FSfixed64Optional" json:"F_Sfixed64_optional,omitempty"`
// Default-valued fields of all basic types
F_BoolDefaulted *bool `protobuf:"varint,40,opt,name=F_Bool_defaulted,json=FBoolDefaulted,def=1" json:"F_Bool_defaulted,omitempty"`
F_Int32Defaulted *int32 `protobuf:"varint,41,opt,name=F_Int32_defaulted,json=FInt32Defaulted,def=32" json:"F_Int32_defaulted,omitempty"`
F_Int64Defaulted *int64 `protobuf:"varint,42,opt,name=F_Int64_defaulted,json=FInt64Defaulted,def=64" json:"F_Int64_defaulted,omitempty"`
F_Fixed32Defaulted *uint32 `protobuf:"fixed32,43,opt,name=F_Fixed32_defaulted,json=FFixed32Defaulted,def=320" json:"F_Fixed32_defaulted,omitempty"`
F_Fixed64Defaulted *uint64 `protobuf:"fixed64,44,opt,name=F_Fixed64_defaulted,json=FFixed64Defaulted,def=640" json:"F_Fixed64_defaulted,omitempty"`
F_Uint32Defaulted *uint32 `protobuf:"varint,45,opt,name=F_Uint32_defaulted,json=FUint32Defaulted,def=3200" json:"F_Uint32_defaulted,omitempty"`
F_Uint64Defaulted *uint64 `protobuf:"varint,46,opt,name=F_Uint64_defaulted,json=FUint64Defaulted,def=6400" json:"F_Uint64_defaulted,omitempty"`
F_FloatDefaulted *float32 `protobuf:"fixed32,47,opt,name=F_Float_defaulted,json=FFloatDefaulted,def=314159" json:"F_Float_defaulted,omitempty"`
F_DoubleDefaulted *float64 `protobuf:"fixed64,48,opt,name=F_Double_defaulted,json=FDoubleDefaulted,def=271828" json:"F_Double_defaulted,omitempty"`
F_StringDefaulted *string `protobuf:"bytes,49,opt,name=F_String_defaulted,json=FStringDefaulted,def=hello, \"world!\"\n" json:"F_String_defaulted,omitempty"`
F_BytesDefaulted []byte `protobuf:"bytes,401,opt,name=F_Bytes_defaulted,json=FBytesDefaulted,def=Bignose" json:"F_Bytes_defaulted,omitempty"`
F_Sint32Defaulted *int32 `protobuf:"zigzag32,402,opt,name=F_Sint32_defaulted,json=FSint32Defaulted,def=-32" json:"F_Sint32_defaulted,omitempty"`
F_Sint64Defaulted *int64 `protobuf:"zigzag64,403,opt,name=F_Sint64_defaulted,json=FSint64Defaulted,def=-64" json:"F_Sint64_defaulted,omitempty"`
F_Sfixed32Defaulted *int32 `protobuf:"fixed32,404,opt,name=F_Sfixed32_defaulted,json=FSfixed32Defaulted,def=-32" json:"F_Sfixed32_defaulted,omitempty"`
F_Sfixed64Defaulted *int64 `protobuf:"fixed64,405,opt,name=F_Sfixed64_defaulted,json=FSfixed64Defaulted,def=-64" json:"F_Sfixed64_defaulted,omitempty"`
// Packed repeated fields (no string or bytes).
F_BoolRepeatedPacked []bool `protobuf:"varint,50,rep,packed,name=F_Bool_repeated_packed,json=FBoolRepeatedPacked" json:"F_Bool_repeated_packed,omitempty"`
F_Int32RepeatedPacked []int32 `protobuf:"varint,51,rep,packed,name=F_Int32_repeated_packed,json=FInt32RepeatedPacked" json:"F_Int32_repeated_packed,omitempty"`
F_Int64RepeatedPacked []int64 `protobuf:"varint,52,rep,packed,name=F_Int64_repeated_packed,json=FInt64RepeatedPacked" json:"F_Int64_repeated_packed,omitempty"`
F_Fixed32RepeatedPacked []uint32 `protobuf:"fixed32,53,rep,packed,name=F_Fixed32_repeated_packed,json=FFixed32RepeatedPacked" json:"F_Fixed32_repeated_packed,omitempty"`
F_Fixed64RepeatedPacked []uint64 `protobuf:"fixed64,54,rep,packed,name=F_Fixed64_repeated_packed,json=FFixed64RepeatedPacked" json:"F_Fixed64_repeated_packed,omitempty"`
F_Uint32RepeatedPacked []uint32 `protobuf:"varint,55,rep,packed,name=F_Uint32_repeated_packed,json=FUint32RepeatedPacked" json:"F_Uint32_repeated_packed,omitempty"`
F_Uint64RepeatedPacked []uint64 `protobuf:"varint,56,rep,packed,name=F_Uint64_repeated_packed,json=FUint64RepeatedPacked" json:"F_Uint64_repeated_packed,omitempty"`
F_FloatRepeatedPacked []float32 `protobuf:"fixed32,57,rep,packed,name=F_Float_repeated_packed,json=FFloatRepeatedPacked" json:"F_Float_repeated_packed,omitempty"`
F_DoubleRepeatedPacked []float64 `protobuf:"fixed64,58,rep,packed,name=F_Double_repeated_packed,json=FDoubleRepeatedPacked" json:"F_Double_repeated_packed,omitempty"`
F_Sint32RepeatedPacked []int32 `protobuf:"zigzag32,502,rep,packed,name=F_Sint32_repeated_packed,json=FSint32RepeatedPacked" json:"F_Sint32_repeated_packed,omitempty"`
F_Sint64RepeatedPacked []int64 `protobuf:"zigzag64,503,rep,packed,name=F_Sint64_repeated_packed,json=FSint64RepeatedPacked" json:"F_Sint64_repeated_packed,omitempty"`
F_Sfixed32RepeatedPacked []int32 `protobuf:"fixed32,504,rep,packed,name=F_Sfixed32_repeated_packed,json=FSfixed32RepeatedPacked" json:"F_Sfixed32_repeated_packed,omitempty"`
F_Sfixed64RepeatedPacked []int64 `protobuf:"fixed64,505,rep,packed,name=F_Sfixed64_repeated_packed,json=FSfixed64RepeatedPacked" json:"F_Sfixed64_repeated_packed,omitempty"`
Requiredgroup *GoTest_RequiredGroup `protobuf:"group,70,req,name=RequiredGroup,json=requiredgroup" json:"requiredgroup,omitempty"`
Repeatedgroup []*GoTest_RepeatedGroup `protobuf:"group,80,rep,name=RepeatedGroup,json=repeatedgroup" json:"repeatedgroup,omitempty"`
Optionalgroup *GoTest_OptionalGroup `protobuf:"group,90,opt,name=OptionalGroup,json=optionalgroup" json:"optionalgroup,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoTest) Reset() { *m = GoTest{} }
func (m *GoTest) String() string { return proto.CompactTextString(m) }
func (*GoTest) ProtoMessage() {}
func (*GoTest) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{2}
}
func (m *GoTest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoTest.Unmarshal(m, b)
}
func (m *GoTest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoTest.Marshal(b, m, deterministic)
}
func (m *GoTest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoTest.Merge(m, src)
}
func (m *GoTest) XXX_Size() int {
return xxx_messageInfo_GoTest.Size(m)
}
func (m *GoTest) XXX_DiscardUnknown() {
xxx_messageInfo_GoTest.DiscardUnknown(m)
}
var xxx_messageInfo_GoTest proto.InternalMessageInfo
const Default_GoTest_F_BoolDefaulted bool = true
const Default_GoTest_F_Int32Defaulted int32 = 32
const Default_GoTest_F_Int64Defaulted int64 = 64
const Default_GoTest_F_Fixed32Defaulted uint32 = 320
const Default_GoTest_F_Fixed64Defaulted uint64 = 640
const Default_GoTest_F_Uint32Defaulted uint32 = 3200
const Default_GoTest_F_Uint64Defaulted uint64 = 6400
const Default_GoTest_F_FloatDefaulted float32 = 314159
const Default_GoTest_F_DoubleDefaulted float64 = 271828
const Default_GoTest_F_StringDefaulted string = "hello, \"world!\"\n"
var Default_GoTest_F_BytesDefaulted []byte = []byte("Bignose")
const Default_GoTest_F_Sint32Defaulted int32 = -32
const Default_GoTest_F_Sint64Defaulted int64 = -64
const Default_GoTest_F_Sfixed32Defaulted int32 = -32
const Default_GoTest_F_Sfixed64Defaulted int64 = -64
func (m *GoTest) GetKind() GoTest_KIND {
if m != nil && m.Kind != nil {
return *m.Kind
}
return GoTest_VOID
}
func (m *GoTest) GetTable() string {
if m != nil && m.Table != nil {
return *m.Table
}
return ""
}
func (m *GoTest) GetParam() int32 {
if m != nil && m.Param != nil {
return *m.Param
}
return 0
}
func (m *GoTest) GetRequiredField() *GoTestField {
if m != nil {
return m.RequiredField
}
return nil
}
func (m *GoTest) GetRepeatedField() []*GoTestField {
if m != nil {
return m.RepeatedField
}
return nil
}
func (m *GoTest) GetOptionalField() *GoTestField {
if m != nil {
return m.OptionalField
}
return nil
}
func (m *GoTest) GetF_BoolRequired() bool {
if m != nil && m.F_BoolRequired != nil {
return *m.F_BoolRequired
}
return false
}
func (m *GoTest) GetF_Int32Required() int32 {
if m != nil && m.F_Int32Required != nil {
return *m.F_Int32Required
}
return 0
}
func (m *GoTest) GetF_Int64Required() int64 {
if m != nil && m.F_Int64Required != nil {
return *m.F_Int64Required
}
return 0
}
func (m *GoTest) GetF_Fixed32Required() uint32 {
if m != nil && m.F_Fixed32Required != nil {
return *m.F_Fixed32Required
}
return 0
}
func (m *GoTest) GetF_Fixed64Required() uint64 {
if m != nil && m.F_Fixed64Required != nil {
return *m.F_Fixed64Required
}
return 0
}
func (m *GoTest) GetF_Uint32Required() uint32 {
if m != nil && m.F_Uint32Required != nil {
return *m.F_Uint32Required
}
return 0
}
func (m *GoTest) GetF_Uint64Required() uint64 {
if m != nil && m.F_Uint64Required != nil {
return *m.F_Uint64Required
}
return 0
}
func (m *GoTest) GetF_FloatRequired() float32 {
if m != nil && m.F_FloatRequired != nil {
return *m.F_FloatRequired
}
return 0
}
func (m *GoTest) GetF_DoubleRequired() float64 {
if m != nil && m.F_DoubleRequired != nil {
return *m.F_DoubleRequired
}
return 0
}
func (m *GoTest) GetF_StringRequired() string {
if m != nil && m.F_StringRequired != nil {
return *m.F_StringRequired
}
return ""
}
func (m *GoTest) GetF_BytesRequired() []byte {
if m != nil {
return m.F_BytesRequired
}
return nil
}
func (m *GoTest) GetF_Sint32Required() int32 {
if m != nil && m.F_Sint32Required != nil {
return *m.F_Sint32Required
}
return 0
}
func (m *GoTest) GetF_Sint64Required() int64 {
if m != nil && m.F_Sint64Required != nil {
return *m.F_Sint64Required
}
return 0
}
func (m *GoTest) GetF_Sfixed32Required() int32 {
if m != nil && m.F_Sfixed32Required != nil {
return *m.F_Sfixed32Required
}
return 0
}
func (m *GoTest) GetF_Sfixed64Required() int64 {
if m != nil && m.F_Sfixed64Required != nil {
return *m.F_Sfixed64Required
}
return 0
}
func (m *GoTest) GetF_BoolRepeated() []bool {
if m != nil {
return m.F_BoolRepeated
}
return nil
}
func (m *GoTest) GetF_Int32Repeated() []int32 {
if m != nil {
return m.F_Int32Repeated
}
return nil
}
func (m *GoTest) GetF_Int64Repeated() []int64 {
if m != nil {
return m.F_Int64Repeated
}
return nil
}
func (m *GoTest) GetF_Fixed32Repeated() []uint32 {
if m != nil {
return m.F_Fixed32Repeated
}
return nil
}
func (m *GoTest) GetF_Fixed64Repeated() []uint64 {
if m != nil {
return m.F_Fixed64Repeated
}
return nil
}
func (m *GoTest) GetF_Uint32Repeated() []uint32 {
if m != nil {
return m.F_Uint32Repeated
}
return nil
}
func (m *GoTest) GetF_Uint64Repeated() []uint64 {
if m != nil {
return m.F_Uint64Repeated
}
return nil
}
func (m *GoTest) GetF_FloatRepeated() []float32 {
if m != nil {
return m.F_FloatRepeated
}
return nil
}
func (m *GoTest) GetF_DoubleRepeated() []float64 {
if m != nil {
return m.F_DoubleRepeated
}
return nil
}
func (m *GoTest) GetF_StringRepeated() []string {
if m != nil {
return m.F_StringRepeated
}
return nil
}
func (m *GoTest) GetF_BytesRepeated() [][]byte {
if m != nil {
return m.F_BytesRepeated
}
return nil
}
func (m *GoTest) GetF_Sint32Repeated() []int32 {
if m != nil {
return m.F_Sint32Repeated
}
return nil
}
func (m *GoTest) GetF_Sint64Repeated() []int64 {
if m != nil {
return m.F_Sint64Repeated
}
return nil
}
func (m *GoTest) GetF_Sfixed32Repeated() []int32 {
if m != nil {
return m.F_Sfixed32Repeated
}
return nil
}
func (m *GoTest) GetF_Sfixed64Repeated() []int64 {
if m != nil {
return m.F_Sfixed64Repeated
}
return nil
}
func (m *GoTest) GetF_BoolOptional() bool {
if m != nil && m.F_BoolOptional != nil {
return *m.F_BoolOptional
}
return false
}
func (m *GoTest) GetF_Int32Optional() int32 {
if m != nil && m.F_Int32Optional != nil {
return *m.F_Int32Optional
}
return 0
}
func (m *GoTest) GetF_Int64Optional() int64 {
if m != nil && m.F_Int64Optional != nil {
return *m.F_Int64Optional
}
return 0
}
func (m *GoTest) GetF_Fixed32Optional() uint32 {
if m != nil && m.F_Fixed32Optional != nil {
return *m.F_Fixed32Optional
}
return 0
}
func (m *GoTest) GetF_Fixed64Optional() uint64 {
if m != nil && m.F_Fixed64Optional != nil {
return *m.F_Fixed64Optional
}
return 0
}
func (m *GoTest) GetF_Uint32Optional() uint32 {
if m != nil && m.F_Uint32Optional != nil {
return *m.F_Uint32Optional
}
return 0
}
func (m *GoTest) GetF_Uint64Optional() uint64 {
if m != nil && m.F_Uint64Optional != nil {
return *m.F_Uint64Optional
}
return 0
}
func (m *GoTest) GetF_FloatOptional() float32 {
if m != nil && m.F_FloatOptional != nil {
return *m.F_FloatOptional
}
return 0
}
func (m *GoTest) GetF_DoubleOptional() float64 {
if m != nil && m.F_DoubleOptional != nil {
return *m.F_DoubleOptional
}
return 0
}
func (m *GoTest) GetF_StringOptional() string {
if m != nil && m.F_StringOptional != nil {
return *m.F_StringOptional
}
return ""
}
func (m *GoTest) GetF_BytesOptional() []byte {
if m != nil {
return m.F_BytesOptional
}
return nil
}
func (m *GoTest) GetF_Sint32Optional() int32 {
if m != nil && m.F_Sint32Optional != nil {
return *m.F_Sint32Optional
}
return 0
}
func (m *GoTest) GetF_Sint64Optional() int64 {
if m != nil && m.F_Sint64Optional != nil {
return *m.F_Sint64Optional
}
return 0
}
func (m *GoTest) GetF_Sfixed32Optional() int32 {
if m != nil && m.F_Sfixed32Optional != nil {
return *m.F_Sfixed32Optional
}
return 0
}
func (m *GoTest) GetF_Sfixed64Optional() int64 {
if m != nil && m.F_Sfixed64Optional != nil {
return *m.F_Sfixed64Optional
}
return 0
}
func (m *GoTest) GetF_BoolDefaulted() bool {
if m != nil && m.F_BoolDefaulted != nil {
return *m.F_BoolDefaulted
}
return Default_GoTest_F_BoolDefaulted
}
func (m *GoTest) GetF_Int32Defaulted() int32 {
if m != nil && m.F_Int32Defaulted != nil {
return *m.F_Int32Defaulted
}
return Default_GoTest_F_Int32Defaulted
}
func (m *GoTest) GetF_Int64Defaulted() int64 {
if m != nil && m.F_Int64Defaulted != nil {
return *m.F_Int64Defaulted
}
return Default_GoTest_F_Int64Defaulted
}
func (m *GoTest) GetF_Fixed32Defaulted() uint32 {
if m != nil && m.F_Fixed32Defaulted != nil {
return *m.F_Fixed32Defaulted
}
return Default_GoTest_F_Fixed32Defaulted
}
func (m *GoTest) GetF_Fixed64Defaulted() uint64 {
if m != nil && m.F_Fixed64Defaulted != nil {
return *m.F_Fixed64Defaulted
}
return Default_GoTest_F_Fixed64Defaulted
}
func (m *GoTest) GetF_Uint32Defaulted() uint32 {
if m != nil && m.F_Uint32Defaulted != nil {
return *m.F_Uint32Defaulted
}
return Default_GoTest_F_Uint32Defaulted
}
func (m *GoTest) GetF_Uint64Defaulted() uint64 {
if m != nil && m.F_Uint64Defaulted != nil {
return *m.F_Uint64Defaulted
}
return Default_GoTest_F_Uint64Defaulted
}
func (m *GoTest) GetF_FloatDefaulted() float32 {
if m != nil && m.F_FloatDefaulted != nil {
return *m.F_FloatDefaulted
}
return Default_GoTest_F_FloatDefaulted
}
func (m *GoTest) GetF_DoubleDefaulted() float64 {
if m != nil && m.F_DoubleDefaulted != nil {
return *m.F_DoubleDefaulted
}
return Default_GoTest_F_DoubleDefaulted
}
func (m *GoTest) GetF_StringDefaulted() string {
if m != nil && m.F_StringDefaulted != nil {
return *m.F_StringDefaulted
}
return Default_GoTest_F_StringDefaulted
}
func (m *GoTest) GetF_BytesDefaulted() []byte {
if m != nil && m.F_BytesDefaulted != nil {
return m.F_BytesDefaulted
}
return append([]byte(nil), Default_GoTest_F_BytesDefaulted...)
}
func (m *GoTest) GetF_Sint32Defaulted() int32 {
if m != nil && m.F_Sint32Defaulted != nil {
return *m.F_Sint32Defaulted
}
return Default_GoTest_F_Sint32Defaulted
}
func (m *GoTest) GetF_Sint64Defaulted() int64 {
if m != nil && m.F_Sint64Defaulted != nil {
return *m.F_Sint64Defaulted
}
return Default_GoTest_F_Sint64Defaulted
}
func (m *GoTest) GetF_Sfixed32Defaulted() int32 {
if m != nil && m.F_Sfixed32Defaulted != nil {
return *m.F_Sfixed32Defaulted
}
return Default_GoTest_F_Sfixed32Defaulted
}
func (m *GoTest) GetF_Sfixed64Defaulted() int64 {
if m != nil && m.F_Sfixed64Defaulted != nil {
return *m.F_Sfixed64Defaulted
}
return Default_GoTest_F_Sfixed64Defaulted
}
func (m *GoTest) GetF_BoolRepeatedPacked() []bool {
if m != nil {
return m.F_BoolRepeatedPacked
}
return nil
}
func (m *GoTest) GetF_Int32RepeatedPacked() []int32 {
if m != nil {
return m.F_Int32RepeatedPacked
}
return nil
}
func (m *GoTest) GetF_Int64RepeatedPacked() []int64 {
if m != nil {
return m.F_Int64RepeatedPacked
}
return nil
}
func (m *GoTest) GetF_Fixed32RepeatedPacked() []uint32 {
if m != nil {
return m.F_Fixed32RepeatedPacked
}
return nil
}
func (m *GoTest) GetF_Fixed64RepeatedPacked() []uint64 {
if m != nil {
return m.F_Fixed64RepeatedPacked
}
return nil
}
func (m *GoTest) GetF_Uint32RepeatedPacked() []uint32 {
if m != nil {
return m.F_Uint32RepeatedPacked
}
return nil
}
func (m *GoTest) GetF_Uint64RepeatedPacked() []uint64 {
if m != nil {
return m.F_Uint64RepeatedPacked
}
return nil
}
func (m *GoTest) GetF_FloatRepeatedPacked() []float32 {
if m != nil {
return m.F_FloatRepeatedPacked
}
return nil
}
func (m *GoTest) GetF_DoubleRepeatedPacked() []float64 {
if m != nil {
return m.F_DoubleRepeatedPacked
}
return nil
}
func (m *GoTest) GetF_Sint32RepeatedPacked() []int32 {
if m != nil {
return m.F_Sint32RepeatedPacked
}
return nil
}
func (m *GoTest) GetF_Sint64RepeatedPacked() []int64 {
if m != nil {
return m.F_Sint64RepeatedPacked
}
return nil
}
func (m *GoTest) GetF_Sfixed32RepeatedPacked() []int32 {
if m != nil {
return m.F_Sfixed32RepeatedPacked
}
return nil
}
func (m *GoTest) GetF_Sfixed64RepeatedPacked() []int64 {
if m != nil {
return m.F_Sfixed64RepeatedPacked
}
return nil
}
func (m *GoTest) GetRequiredgroup() *GoTest_RequiredGroup {
if m != nil {
return m.Requiredgroup
}
return nil
}
func (m *GoTest) GetRepeatedgroup() []*GoTest_RepeatedGroup {
if m != nil {
return m.Repeatedgroup
}
return nil
}
func (m *GoTest) GetOptionalgroup() *GoTest_OptionalGroup {
if m != nil {
return m.Optionalgroup
}
return nil
}
// Required, repeated, and optional groups.
type GoTest_RequiredGroup struct {
RequiredField *string `protobuf:"bytes,71,req,name=RequiredField" json:"RequiredField,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoTest_RequiredGroup) Reset() { *m = GoTest_RequiredGroup{} }
func (m *GoTest_RequiredGroup) String() string { return proto.CompactTextString(m) }
func (*GoTest_RequiredGroup) ProtoMessage() {}
func (*GoTest_RequiredGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{2, 0}
}
func (m *GoTest_RequiredGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoTest_RequiredGroup.Unmarshal(m, b)
}
func (m *GoTest_RequiredGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoTest_RequiredGroup.Marshal(b, m, deterministic)
}
func (m *GoTest_RequiredGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoTest_RequiredGroup.Merge(m, src)
}
func (m *GoTest_RequiredGroup) XXX_Size() int {
return xxx_messageInfo_GoTest_RequiredGroup.Size(m)
}
func (m *GoTest_RequiredGroup) XXX_DiscardUnknown() {
xxx_messageInfo_GoTest_RequiredGroup.DiscardUnknown(m)
}
var xxx_messageInfo_GoTest_RequiredGroup proto.InternalMessageInfo
func (m *GoTest_RequiredGroup) GetRequiredField() string {
if m != nil && m.RequiredField != nil {
return *m.RequiredField
}
return ""
}
type GoTest_RepeatedGroup struct {
RequiredField *string `protobuf:"bytes,81,req,name=RequiredField" json:"RequiredField,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoTest_RepeatedGroup) Reset() { *m = GoTest_RepeatedGroup{} }
func (m *GoTest_RepeatedGroup) String() string { return proto.CompactTextString(m) }
func (*GoTest_RepeatedGroup) ProtoMessage() {}
func (*GoTest_RepeatedGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{2, 1}
}
func (m *GoTest_RepeatedGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoTest_RepeatedGroup.Unmarshal(m, b)
}
func (m *GoTest_RepeatedGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoTest_RepeatedGroup.Marshal(b, m, deterministic)
}
func (m *GoTest_RepeatedGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoTest_RepeatedGroup.Merge(m, src)
}
func (m *GoTest_RepeatedGroup) XXX_Size() int {
return xxx_messageInfo_GoTest_RepeatedGroup.Size(m)
}
func (m *GoTest_RepeatedGroup) XXX_DiscardUnknown() {
xxx_messageInfo_GoTest_RepeatedGroup.DiscardUnknown(m)
}
var xxx_messageInfo_GoTest_RepeatedGroup proto.InternalMessageInfo
func (m *GoTest_RepeatedGroup) GetRequiredField() string {
if m != nil && m.RequiredField != nil {
return *m.RequiredField
}
return ""
}
type GoTest_OptionalGroup struct {
RequiredField *string `protobuf:"bytes,91,req,name=RequiredField" json:"RequiredField,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoTest_OptionalGroup) Reset() { *m = GoTest_OptionalGroup{} }
func (m *GoTest_OptionalGroup) String() string { return proto.CompactTextString(m) }
func (*GoTest_OptionalGroup) ProtoMessage() {}
func (*GoTest_OptionalGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{2, 2}
}
func (m *GoTest_OptionalGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoTest_OptionalGroup.Unmarshal(m, b)
}
func (m *GoTest_OptionalGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoTest_OptionalGroup.Marshal(b, m, deterministic)
}
func (m *GoTest_OptionalGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoTest_OptionalGroup.Merge(m, src)
}
func (m *GoTest_OptionalGroup) XXX_Size() int {
return xxx_messageInfo_GoTest_OptionalGroup.Size(m)
}
func (m *GoTest_OptionalGroup) XXX_DiscardUnknown() {
xxx_messageInfo_GoTest_OptionalGroup.DiscardUnknown(m)
}
var xxx_messageInfo_GoTest_OptionalGroup proto.InternalMessageInfo
func (m *GoTest_OptionalGroup) GetRequiredField() string {
if m != nil && m.RequiredField != nil {
return *m.RequiredField
}
return ""
}
// For testing a group containing a required field.
type GoTestRequiredGroupField struct {
Group *GoTestRequiredGroupField_Group `protobuf:"group,1,req,name=Group,json=group" json:"group,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoTestRequiredGroupField) Reset() { *m = GoTestRequiredGroupField{} }
func (m *GoTestRequiredGroupField) String() string { return proto.CompactTextString(m) }
func (*GoTestRequiredGroupField) ProtoMessage() {}
func (*GoTestRequiredGroupField) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{3}
}
func (m *GoTestRequiredGroupField) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoTestRequiredGroupField.Unmarshal(m, b)
}
func (m *GoTestRequiredGroupField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoTestRequiredGroupField.Marshal(b, m, deterministic)
}
func (m *GoTestRequiredGroupField) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoTestRequiredGroupField.Merge(m, src)
}
func (m *GoTestRequiredGroupField) XXX_Size() int {
return xxx_messageInfo_GoTestRequiredGroupField.Size(m)
}
func (m *GoTestRequiredGroupField) XXX_DiscardUnknown() {
xxx_messageInfo_GoTestRequiredGroupField.DiscardUnknown(m)
}
var xxx_messageInfo_GoTestRequiredGroupField proto.InternalMessageInfo
func (m *GoTestRequiredGroupField) GetGroup() *GoTestRequiredGroupField_Group {
if m != nil {
return m.Group
}
return nil
}
type GoTestRequiredGroupField_Group struct {
Field *int32 `protobuf:"varint,2,req,name=Field" json:"Field,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoTestRequiredGroupField_Group) Reset() { *m = GoTestRequiredGroupField_Group{} }
func (m *GoTestRequiredGroupField_Group) String() string { return proto.CompactTextString(m) }
func (*GoTestRequiredGroupField_Group) ProtoMessage() {}
func (*GoTestRequiredGroupField_Group) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{3, 0}
}
func (m *GoTestRequiredGroupField_Group) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoTestRequiredGroupField_Group.Unmarshal(m, b)
}
func (m *GoTestRequiredGroupField_Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoTestRequiredGroupField_Group.Marshal(b, m, deterministic)
}
func (m *GoTestRequiredGroupField_Group) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoTestRequiredGroupField_Group.Merge(m, src)
}
func (m *GoTestRequiredGroupField_Group) XXX_Size() int {
return xxx_messageInfo_GoTestRequiredGroupField_Group.Size(m)
}
func (m *GoTestRequiredGroupField_Group) XXX_DiscardUnknown() {
xxx_messageInfo_GoTestRequiredGroupField_Group.DiscardUnknown(m)
}
var xxx_messageInfo_GoTestRequiredGroupField_Group proto.InternalMessageInfo
func (m *GoTestRequiredGroupField_Group) GetField() int32 {
if m != nil && m.Field != nil {
return *m.Field
}
return 0
}
// For testing skipping of unrecognized fields.
// Numbers are all big, larger than tag numbers in GoTestField,
// the message used in the corresponding test.
type GoSkipTest struct {
SkipInt32 *int32 `protobuf:"varint,11,req,name=skip_int32,json=skipInt32" json:"skip_int32,omitempty"`
SkipFixed32 *uint32 `protobuf:"fixed32,12,req,name=skip_fixed32,json=skipFixed32" json:"skip_fixed32,omitempty"`
SkipFixed64 *uint64 `protobuf:"fixed64,13,req,name=skip_fixed64,json=skipFixed64" json:"skip_fixed64,omitempty"`
SkipString *string `protobuf:"bytes,14,req,name=skip_string,json=skipString" json:"skip_string,omitempty"`
Skipgroup *GoSkipTest_SkipGroup `protobuf:"group,15,req,name=SkipGroup,json=skipgroup" json:"skipgroup,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoSkipTest) Reset() { *m = GoSkipTest{} }
func (m *GoSkipTest) String() string { return proto.CompactTextString(m) }
func (*GoSkipTest) ProtoMessage() {}
func (*GoSkipTest) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{4}
}
func (m *GoSkipTest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoSkipTest.Unmarshal(m, b)
}
func (m *GoSkipTest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoSkipTest.Marshal(b, m, deterministic)
}
func (m *GoSkipTest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoSkipTest.Merge(m, src)
}
func (m *GoSkipTest) XXX_Size() int {
return xxx_messageInfo_GoSkipTest.Size(m)
}
func (m *GoSkipTest) XXX_DiscardUnknown() {
xxx_messageInfo_GoSkipTest.DiscardUnknown(m)
}
var xxx_messageInfo_GoSkipTest proto.InternalMessageInfo
func (m *GoSkipTest) GetSkipInt32() int32 {
if m != nil && m.SkipInt32 != nil {
return *m.SkipInt32
}
return 0
}
func (m *GoSkipTest) GetSkipFixed32() uint32 {
if m != nil && m.SkipFixed32 != nil {
return *m.SkipFixed32
}
return 0
}
func (m *GoSkipTest) GetSkipFixed64() uint64 {
if m != nil && m.SkipFixed64 != nil {
return *m.SkipFixed64
}
return 0
}
func (m *GoSkipTest) GetSkipString() string {
if m != nil && m.SkipString != nil {
return *m.SkipString
}
return ""
}
func (m *GoSkipTest) GetSkipgroup() *GoSkipTest_SkipGroup {
if m != nil {
return m.Skipgroup
}
return nil
}
type GoSkipTest_SkipGroup struct {
GroupInt32 *int32 `protobuf:"varint,16,req,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupString *string `protobuf:"bytes,17,req,name=group_string,json=groupString" json:"group_string,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoSkipTest_SkipGroup) Reset() { *m = GoSkipTest_SkipGroup{} }
func (m *GoSkipTest_SkipGroup) String() string { return proto.CompactTextString(m) }
func (*GoSkipTest_SkipGroup) ProtoMessage() {}
func (*GoSkipTest_SkipGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{4, 0}
}
func (m *GoSkipTest_SkipGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoSkipTest_SkipGroup.Unmarshal(m, b)
}
func (m *GoSkipTest_SkipGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoSkipTest_SkipGroup.Marshal(b, m, deterministic)
}
func (m *GoSkipTest_SkipGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoSkipTest_SkipGroup.Merge(m, src)
}
func (m *GoSkipTest_SkipGroup) XXX_Size() int {
return xxx_messageInfo_GoSkipTest_SkipGroup.Size(m)
}
func (m *GoSkipTest_SkipGroup) XXX_DiscardUnknown() {
xxx_messageInfo_GoSkipTest_SkipGroup.DiscardUnknown(m)
}
var xxx_messageInfo_GoSkipTest_SkipGroup proto.InternalMessageInfo
func (m *GoSkipTest_SkipGroup) GetGroupInt32() int32 {
if m != nil && m.GroupInt32 != nil {
return *m.GroupInt32
}
return 0
}
func (m *GoSkipTest_SkipGroup) GetGroupString() string {
if m != nil && m.GroupString != nil {
return *m.GroupString
}
return ""
}
// For testing packed/non-packed decoder switching.
// A serialized instance of one should be deserializable as the other.
type NonPackedTest struct {
A []int32 `protobuf:"varint,1,rep,name=a" json:"a,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NonPackedTest) Reset() { *m = NonPackedTest{} }
func (m *NonPackedTest) String() string { return proto.CompactTextString(m) }
func (*NonPackedTest) ProtoMessage() {}
func (*NonPackedTest) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{5}
}
func (m *NonPackedTest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NonPackedTest.Unmarshal(m, b)
}
func (m *NonPackedTest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NonPackedTest.Marshal(b, m, deterministic)
}
func (m *NonPackedTest) XXX_Merge(src proto.Message) {
xxx_messageInfo_NonPackedTest.Merge(m, src)
}
func (m *NonPackedTest) XXX_Size() int {
return xxx_messageInfo_NonPackedTest.Size(m)
}
func (m *NonPackedTest) XXX_DiscardUnknown() {
xxx_messageInfo_NonPackedTest.DiscardUnknown(m)
}
var xxx_messageInfo_NonPackedTest proto.InternalMessageInfo
func (m *NonPackedTest) GetA() []int32 {
if m != nil {
return m.A
}
return nil
}
type PackedTest struct {
B []int32 `protobuf:"varint,1,rep,packed,name=b" json:"b,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PackedTest) Reset() { *m = PackedTest{} }
func (m *PackedTest) String() string { return proto.CompactTextString(m) }
func (*PackedTest) ProtoMessage() {}
func (*PackedTest) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{6}
}
func (m *PackedTest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PackedTest.Unmarshal(m, b)
}
func (m *PackedTest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PackedTest.Marshal(b, m, deterministic)
}
func (m *PackedTest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PackedTest.Merge(m, src)
}
func (m *PackedTest) XXX_Size() int {
return xxx_messageInfo_PackedTest.Size(m)
}
func (m *PackedTest) XXX_DiscardUnknown() {
xxx_messageInfo_PackedTest.DiscardUnknown(m)
}
var xxx_messageInfo_PackedTest proto.InternalMessageInfo
func (m *PackedTest) GetB() []int32 {
if m != nil {
return m.B
}
return nil
}
type MaxTag struct {
// Maximum possible tag number.
LastField *string `protobuf:"bytes,536870911,opt,name=last_field,json=lastField" json:"last_field,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MaxTag) Reset() { *m = MaxTag{} }
func (m *MaxTag) String() string { return proto.CompactTextString(m) }
func (*MaxTag) ProtoMessage() {}
func (*MaxTag) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{7}
}
func (m *MaxTag) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MaxTag.Unmarshal(m, b)
}
func (m *MaxTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MaxTag.Marshal(b, m, deterministic)
}
func (m *MaxTag) XXX_Merge(src proto.Message) {
xxx_messageInfo_MaxTag.Merge(m, src)
}
func (m *MaxTag) XXX_Size() int {
return xxx_messageInfo_MaxTag.Size(m)
}
func (m *MaxTag) XXX_DiscardUnknown() {
xxx_messageInfo_MaxTag.DiscardUnknown(m)
}
var xxx_messageInfo_MaxTag proto.InternalMessageInfo
func (m *MaxTag) GetLastField() string {
if m != nil && m.LastField != nil {
return *m.LastField
}
return ""
}
type OldMessage struct {
Nested *OldMessage_Nested `protobuf:"bytes,1,opt,name=nested" json:"nested,omitempty"`
Num *int32 `protobuf:"varint,2,opt,name=num" json:"num,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OldMessage) Reset() { *m = OldMessage{} }
func (m *OldMessage) String() string { return proto.CompactTextString(m) }
func (*OldMessage) ProtoMessage() {}
func (*OldMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{8}
}
func (m *OldMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OldMessage.Unmarshal(m, b)
}
func (m *OldMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OldMessage.Marshal(b, m, deterministic)
}
func (m *OldMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_OldMessage.Merge(m, src)
}
func (m *OldMessage) XXX_Size() int {
return xxx_messageInfo_OldMessage.Size(m)
}
func (m *OldMessage) XXX_DiscardUnknown() {
xxx_messageInfo_OldMessage.DiscardUnknown(m)
}
var xxx_messageInfo_OldMessage proto.InternalMessageInfo
func (m *OldMessage) GetNested() *OldMessage_Nested {
if m != nil {
return m.Nested
}
return nil
}
func (m *OldMessage) GetNum() int32 {
if m != nil && m.Num != nil {
return *m.Num
}
return 0
}
type OldMessage_Nested struct {
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OldMessage_Nested) Reset() { *m = OldMessage_Nested{} }
func (m *OldMessage_Nested) String() string { return proto.CompactTextString(m) }
func (*OldMessage_Nested) ProtoMessage() {}
func (*OldMessage_Nested) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{8, 0}
}
func (m *OldMessage_Nested) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OldMessage_Nested.Unmarshal(m, b)
}
func (m *OldMessage_Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OldMessage_Nested.Marshal(b, m, deterministic)
}
func (m *OldMessage_Nested) XXX_Merge(src proto.Message) {
xxx_messageInfo_OldMessage_Nested.Merge(m, src)
}
func (m *OldMessage_Nested) XXX_Size() int {
return xxx_messageInfo_OldMessage_Nested.Size(m)
}
func (m *OldMessage_Nested) XXX_DiscardUnknown() {
xxx_messageInfo_OldMessage_Nested.DiscardUnknown(m)
}
var xxx_messageInfo_OldMessage_Nested proto.InternalMessageInfo
func (m *OldMessage_Nested) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
// NewMessage is wire compatible with OldMessage;
// imagine it as a future version.
type NewMessage struct {
Nested *NewMessage_Nested `protobuf:"bytes,1,opt,name=nested" json:"nested,omitempty"`
// This is an int32 in OldMessage.
Num *int64 `protobuf:"varint,2,opt,name=num" json:"num,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NewMessage) Reset() { *m = NewMessage{} }
func (m *NewMessage) String() string { return proto.CompactTextString(m) }
func (*NewMessage) ProtoMessage() {}
func (*NewMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{9}
}
func (m *NewMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NewMessage.Unmarshal(m, b)
}
func (m *NewMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NewMessage.Marshal(b, m, deterministic)
}
func (m *NewMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_NewMessage.Merge(m, src)
}
func (m *NewMessage) XXX_Size() int {
return xxx_messageInfo_NewMessage.Size(m)
}
func (m *NewMessage) XXX_DiscardUnknown() {
xxx_messageInfo_NewMessage.DiscardUnknown(m)
}
var xxx_messageInfo_NewMessage proto.InternalMessageInfo
func (m *NewMessage) GetNested() *NewMessage_Nested {
if m != nil {
return m.Nested
}
return nil
}
func (m *NewMessage) GetNum() int64 {
if m != nil && m.Num != nil {
return *m.Num
}
return 0
}
type NewMessage_Nested struct {
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
FoodGroup *string `protobuf:"bytes,2,opt,name=food_group,json=foodGroup" json:"food_group,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NewMessage_Nested) Reset() { *m = NewMessage_Nested{} }
func (m *NewMessage_Nested) String() string { return proto.CompactTextString(m) }
func (*NewMessage_Nested) ProtoMessage() {}
func (*NewMessage_Nested) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{9, 0}
}
func (m *NewMessage_Nested) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NewMessage_Nested.Unmarshal(m, b)
}
func (m *NewMessage_Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NewMessage_Nested.Marshal(b, m, deterministic)
}
func (m *NewMessage_Nested) XXX_Merge(src proto.Message) {
xxx_messageInfo_NewMessage_Nested.Merge(m, src)
}
func (m *NewMessage_Nested) XXX_Size() int {
return xxx_messageInfo_NewMessage_Nested.Size(m)
}
func (m *NewMessage_Nested) XXX_DiscardUnknown() {
xxx_messageInfo_NewMessage_Nested.DiscardUnknown(m)
}
var xxx_messageInfo_NewMessage_Nested proto.InternalMessageInfo
func (m *NewMessage_Nested) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *NewMessage_Nested) GetFoodGroup() string {
if m != nil && m.FoodGroup != nil {
return *m.FoodGroup
}
return ""
}
type InnerMessage struct {
Host *string `protobuf:"bytes,1,req,name=host" json:"host,omitempty"`
Port *int32 `protobuf:"varint,2,opt,name=port,def=4000" json:"port,omitempty"`
Connected *bool `protobuf:"varint,3,opt,name=connected" json:"connected,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InnerMessage) Reset() { *m = InnerMessage{} }
func (m *InnerMessage) String() string { return proto.CompactTextString(m) }
func (*InnerMessage) ProtoMessage() {}
func (*InnerMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{10}
}
func (m *InnerMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InnerMessage.Unmarshal(m, b)
}
func (m *InnerMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InnerMessage.Marshal(b, m, deterministic)
}
func (m *InnerMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_InnerMessage.Merge(m, src)
}
func (m *InnerMessage) XXX_Size() int {
return xxx_messageInfo_InnerMessage.Size(m)
}
func (m *InnerMessage) XXX_DiscardUnknown() {
xxx_messageInfo_InnerMessage.DiscardUnknown(m)
}
var xxx_messageInfo_InnerMessage proto.InternalMessageInfo
const Default_InnerMessage_Port int32 = 4000
func (m *InnerMessage) GetHost() string {
if m != nil && m.Host != nil {
return *m.Host
}
return ""
}
func (m *InnerMessage) GetPort() int32 {
if m != nil && m.Port != nil {
return *m.Port
}
return Default_InnerMessage_Port
}
func (m *InnerMessage) GetConnected() bool {
if m != nil && m.Connected != nil {
return *m.Connected
}
return false
}
type OtherMessage struct {
Key *int64 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
Weight *float32 `protobuf:"fixed32,3,opt,name=weight" json:"weight,omitempty"`
Inner *InnerMessage `protobuf:"bytes,4,opt,name=inner" json:"inner,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
proto.XXX_InternalExtensions `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OtherMessage) Reset() { *m = OtherMessage{} }
func (m *OtherMessage) String() string { return proto.CompactTextString(m) }
func (*OtherMessage) ProtoMessage() {}
func (*OtherMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{11}
}
var extRange_OtherMessage = []proto.ExtensionRange{
{Start: 100, End: 536870911},
}
func (*OtherMessage) ExtensionRangeArray() []proto.ExtensionRange {
return extRange_OtherMessage
}
func (m *OtherMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OtherMessage.Unmarshal(m, b)
}
func (m *OtherMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OtherMessage.Marshal(b, m, deterministic)
}
func (m *OtherMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_OtherMessage.Merge(m, src)
}
func (m *OtherMessage) XXX_Size() int {
return xxx_messageInfo_OtherMessage.Size(m)
}
func (m *OtherMessage) XXX_DiscardUnknown() {
xxx_messageInfo_OtherMessage.DiscardUnknown(m)
}
var xxx_messageInfo_OtherMessage proto.InternalMessageInfo
func (m *OtherMessage) GetKey() int64 {
if m != nil && m.Key != nil {
return *m.Key
}
return 0
}
func (m *OtherMessage) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
func (m *OtherMessage) GetWeight() float32 {
if m != nil && m.Weight != nil {
return *m.Weight
}
return 0
}
func (m *OtherMessage) GetInner() *InnerMessage {
if m != nil {
return m.Inner
}
return nil
}
type RequiredInnerMessage struct {
LeoFinallyWonAnOscar *InnerMessage `protobuf:"bytes,1,req,name=leo_finally_won_an_oscar,json=leoFinallyWonAnOscar" json:"leo_finally_won_an_oscar,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RequiredInnerMessage) Reset() { *m = RequiredInnerMessage{} }
func (m *RequiredInnerMessage) String() string { return proto.CompactTextString(m) }
func (*RequiredInnerMessage) ProtoMessage() {}
func (*RequiredInnerMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{12}
}
func (m *RequiredInnerMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RequiredInnerMessage.Unmarshal(m, b)
}
func (m *RequiredInnerMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequiredInnerMessage.Marshal(b, m, deterministic)
}
func (m *RequiredInnerMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequiredInnerMessage.Merge(m, src)
}
func (m *RequiredInnerMessage) XXX_Size() int {
return xxx_messageInfo_RequiredInnerMessage.Size(m)
}
func (m *RequiredInnerMessage) XXX_DiscardUnknown() {
xxx_messageInfo_RequiredInnerMessage.DiscardUnknown(m)
}
var xxx_messageInfo_RequiredInnerMessage proto.InternalMessageInfo
func (m *RequiredInnerMessage) GetLeoFinallyWonAnOscar() *InnerMessage {
if m != nil {
return m.LeoFinallyWonAnOscar
}
return nil
}
type MyMessage struct {
Count *int32 `protobuf:"varint,1,req,name=count" json:"count,omitempty"`
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Quote *string `protobuf:"bytes,3,opt,name=quote" json:"quote,omitempty"`
Pet []string `protobuf:"bytes,4,rep,name=pet" json:"pet,omitempty"`
Inner *InnerMessage `protobuf:"bytes,5,opt,name=inner" json:"inner,omitempty"`
Others []*OtherMessage `protobuf:"bytes,6,rep,name=others" json:"others,omitempty"`
WeMustGoDeeper *RequiredInnerMessage `protobuf:"bytes,13,opt,name=we_must_go_deeper,json=weMustGoDeeper" json:"we_must_go_deeper,omitempty"`
RepInner []*InnerMessage `protobuf:"bytes,12,rep,name=rep_inner,json=repInner" json:"rep_inner,omitempty"`
Bikeshed *MyMessage_Color `protobuf:"varint,7,opt,name=bikeshed,enum=proto2_test.MyMessage_Color" json:"bikeshed,omitempty"`
Somegroup *MyMessage_SomeGroup `protobuf:"group,8,opt,name=SomeGroup,json=somegroup" json:"somegroup,omitempty"`
// This field becomes [][]byte in the generated code.
RepBytes [][]byte `protobuf:"bytes,10,rep,name=rep_bytes,json=repBytes" json:"rep_bytes,omitempty"`
Bigfloat *float64 `protobuf:"fixed64,11,opt,name=bigfloat" json:"bigfloat,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
proto.XXX_InternalExtensions `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MyMessage) Reset() { *m = MyMessage{} }
func (m *MyMessage) String() string { return proto.CompactTextString(m) }
func (*MyMessage) ProtoMessage() {}
func (*MyMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{13}
}
var extRange_MyMessage = []proto.ExtensionRange{
{Start: 100, End: 536870911},
}
func (*MyMessage) ExtensionRangeArray() []proto.ExtensionRange {
return extRange_MyMessage
}
func (m *MyMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MyMessage.Unmarshal(m, b)
}
func (m *MyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MyMessage.Marshal(b, m, deterministic)
}
func (m *MyMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_MyMessage.Merge(m, src)
}
func (m *MyMessage) XXX_Size() int {
return xxx_messageInfo_MyMessage.Size(m)
}
func (m *MyMessage) XXX_DiscardUnknown() {
xxx_messageInfo_MyMessage.DiscardUnknown(m)
}
var xxx_messageInfo_MyMessage proto.InternalMessageInfo
func (m *MyMessage) GetCount() int32 {
if m != nil && m.Count != nil {
return *m.Count
}
return 0
}
func (m *MyMessage) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *MyMessage) GetQuote() string {
if m != nil && m.Quote != nil {
return *m.Quote
}
return ""
}
func (m *MyMessage) GetPet() []string {
if m != nil {
return m.Pet
}
return nil
}
func (m *MyMessage) GetInner() *InnerMessage {
if m != nil {
return m.Inner
}
return nil
}
func (m *MyMessage) GetOthers() []*OtherMessage {
if m != nil {
return m.Others
}
return nil
}
func (m *MyMessage) GetWeMustGoDeeper() *RequiredInnerMessage {
if m != nil {
return m.WeMustGoDeeper
}
return nil
}
func (m *MyMessage) GetRepInner() []*InnerMessage {
if m != nil {
return m.RepInner
}
return nil
}
func (m *MyMessage) GetBikeshed() MyMessage_Color {
if m != nil && m.Bikeshed != nil {
return *m.Bikeshed
}
return MyMessage_RED
}
func (m *MyMessage) GetSomegroup() *MyMessage_SomeGroup {
if m != nil {
return m.Somegroup
}
return nil
}
func (m *MyMessage) GetRepBytes() [][]byte {
if m != nil {
return m.RepBytes
}
return nil
}
func (m *MyMessage) GetBigfloat() float64 {
if m != nil && m.Bigfloat != nil {
return *m.Bigfloat
}
return 0
}
type MyMessage_SomeGroup struct {
GroupField *int32 `protobuf:"varint,9,opt,name=group_field,json=groupField" json:"group_field,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MyMessage_SomeGroup) Reset() { *m = MyMessage_SomeGroup{} }
func (m *MyMessage_SomeGroup) String() string { return proto.CompactTextString(m) }
func (*MyMessage_SomeGroup) ProtoMessage() {}
func (*MyMessage_SomeGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{13, 0}
}
func (m *MyMessage_SomeGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MyMessage_SomeGroup.Unmarshal(m, b)
}
func (m *MyMessage_SomeGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MyMessage_SomeGroup.Marshal(b, m, deterministic)
}
func (m *MyMessage_SomeGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_MyMessage_SomeGroup.Merge(m, src)
}
func (m *MyMessage_SomeGroup) XXX_Size() int {
return xxx_messageInfo_MyMessage_SomeGroup.Size(m)
}
func (m *MyMessage_SomeGroup) XXX_DiscardUnknown() {
xxx_messageInfo_MyMessage_SomeGroup.DiscardUnknown(m)
}
var xxx_messageInfo_MyMessage_SomeGroup proto.InternalMessageInfo
func (m *MyMessage_SomeGroup) GetGroupField() int32 {
if m != nil && m.GroupField != nil {
return *m.GroupField
}
return 0
}
type Ext struct {
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
MapField map[int32]int32 `protobuf:"bytes,2,rep,name=map_field,json=mapField" json:"map_field,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Ext) Reset() { *m = Ext{} }
func (m *Ext) String() string { return proto.CompactTextString(m) }
func (*Ext) ProtoMessage() {}
func (*Ext) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{14}
}
func (m *Ext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Ext.Unmarshal(m, b)
}
func (m *Ext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Ext.Marshal(b, m, deterministic)
}
func (m *Ext) XXX_Merge(src proto.Message) {
xxx_messageInfo_Ext.Merge(m, src)
}
func (m *Ext) XXX_Size() int {
return xxx_messageInfo_Ext.Size(m)
}
func (m *Ext) XXX_DiscardUnknown() {
xxx_messageInfo_Ext.DiscardUnknown(m)
}
var xxx_messageInfo_Ext proto.InternalMessageInfo
func (m *Ext) GetData() string {
if m != nil && m.Data != nil {
return *m.Data
}
return ""
}
func (m *Ext) GetMapField() map[int32]int32 {
if m != nil {
return m.MapField
}
return nil
}
var E_Ext_More = &proto.ExtensionDesc{
ExtendedType: (*MyMessage)(nil),
ExtensionType: (*Ext)(nil),
Field: 103,
Name: "proto2_test.Ext.more",
Tag: "bytes,103,opt,name=more",
Filename: "proto2_proto/test.proto",
}
var E_Ext_Text = &proto.ExtensionDesc{
ExtendedType: (*MyMessage)(nil),
ExtensionType: (*string)(nil),
Field: 104,
Name: "proto2_test.Ext.text",
Tag: "bytes,104,opt,name=text",
Filename: "proto2_proto/test.proto",
}
var E_Ext_Number = &proto.ExtensionDesc{
ExtendedType: (*MyMessage)(nil),
ExtensionType: (*int32)(nil),
Field: 105,
Name: "proto2_test.Ext.number",
Tag: "varint,105,opt,name=number",
Filename: "proto2_proto/test.proto",
}
type ComplexExtension struct {
First *int32 `protobuf:"varint,1,opt,name=first" json:"first,omitempty"`
Second *int32 `protobuf:"varint,2,opt,name=second" json:"second,omitempty"`
Third []int32 `protobuf:"varint,3,rep,name=third" json:"third,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ComplexExtension) Reset() { *m = ComplexExtension{} }
func (m *ComplexExtension) String() string { return proto.CompactTextString(m) }
func (*ComplexExtension) ProtoMessage() {}
func (*ComplexExtension) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{15}
}
func (m *ComplexExtension) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ComplexExtension.Unmarshal(m, b)
}
func (m *ComplexExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ComplexExtension.Marshal(b, m, deterministic)
}
func (m *ComplexExtension) XXX_Merge(src proto.Message) {
xxx_messageInfo_ComplexExtension.Merge(m, src)
}
func (m *ComplexExtension) XXX_Size() int {
return xxx_messageInfo_ComplexExtension.Size(m)
}
func (m *ComplexExtension) XXX_DiscardUnknown() {
xxx_messageInfo_ComplexExtension.DiscardUnknown(m)
}
var xxx_messageInfo_ComplexExtension proto.InternalMessageInfo
func (m *ComplexExtension) GetFirst() int32 {
if m != nil && m.First != nil {
return *m.First
}
return 0
}
func (m *ComplexExtension) GetSecond() int32 {
if m != nil && m.Second != nil {
return *m.Second
}
return 0
}
func (m *ComplexExtension) GetThird() []int32 {
if m != nil {
return m.Third
}
return nil
}
type DefaultsMessage struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
proto.XXX_InternalExtensions `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DefaultsMessage) Reset() { *m = DefaultsMessage{} }
func (m *DefaultsMessage) String() string { return proto.CompactTextString(m) }
func (*DefaultsMessage) ProtoMessage() {}
func (*DefaultsMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{16}
}
var extRange_DefaultsMessage = []proto.ExtensionRange{
{Start: 100, End: 536870911},
}
func (*DefaultsMessage) ExtensionRangeArray() []proto.ExtensionRange {
return extRange_DefaultsMessage
}
func (m *DefaultsMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DefaultsMessage.Unmarshal(m, b)
}
func (m *DefaultsMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DefaultsMessage.Marshal(b, m, deterministic)
}
func (m *DefaultsMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_DefaultsMessage.Merge(m, src)
}
func (m *DefaultsMessage) XXX_Size() int {
return xxx_messageInfo_DefaultsMessage.Size(m)
}
func (m *DefaultsMessage) XXX_DiscardUnknown() {
xxx_messageInfo_DefaultsMessage.DiscardUnknown(m)
}
var xxx_messageInfo_DefaultsMessage proto.InternalMessageInfo
type Empty struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Empty) Reset() { *m = Empty{} }
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{17}
}
func (m *Empty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Empty.Unmarshal(m, b)
}
func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
}
func (m *Empty) XXX_Merge(src proto.Message) {
xxx_messageInfo_Empty.Merge(m, src)
}
func (m *Empty) XXX_Size() int {
return xxx_messageInfo_Empty.Size(m)
}
func (m *Empty) XXX_DiscardUnknown() {
xxx_messageInfo_Empty.DiscardUnknown(m)
}
var xxx_messageInfo_Empty proto.InternalMessageInfo
type MessageList struct {
Message []*MessageList_Message `protobuf:"group,1,rep,name=Message,json=message" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MessageList) Reset() { *m = MessageList{} }
func (m *MessageList) String() string { return proto.CompactTextString(m) }
func (*MessageList) ProtoMessage() {}
func (*MessageList) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{18}
}
func (m *MessageList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MessageList.Unmarshal(m, b)
}
func (m *MessageList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MessageList.Marshal(b, m, deterministic)
}
func (m *MessageList) XXX_Merge(src proto.Message) {
xxx_messageInfo_MessageList.Merge(m, src)
}
func (m *MessageList) XXX_Size() int {
return xxx_messageInfo_MessageList.Size(m)
}
func (m *MessageList) XXX_DiscardUnknown() {
xxx_messageInfo_MessageList.DiscardUnknown(m)
}
var xxx_messageInfo_MessageList proto.InternalMessageInfo
func (m *MessageList) GetMessage() []*MessageList_Message {
if m != nil {
return m.Message
}
return nil
}
type MessageList_Message struct {
Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
Count *int32 `protobuf:"varint,3,req,name=count" json:"count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MessageList_Message) Reset() { *m = MessageList_Message{} }
func (m *MessageList_Message) String() string { return proto.CompactTextString(m) }
func (*MessageList_Message) ProtoMessage() {}
func (*MessageList_Message) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{18, 0}
}
func (m *MessageList_Message) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MessageList_Message.Unmarshal(m, b)
}
func (m *MessageList_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MessageList_Message.Marshal(b, m, deterministic)
}
func (m *MessageList_Message) XXX_Merge(src proto.Message) {
xxx_messageInfo_MessageList_Message.Merge(m, src)
}
func (m *MessageList_Message) XXX_Size() int {
return xxx_messageInfo_MessageList_Message.Size(m)
}
func (m *MessageList_Message) XXX_DiscardUnknown() {
xxx_messageInfo_MessageList_Message.DiscardUnknown(m)
}
var xxx_messageInfo_MessageList_Message proto.InternalMessageInfo
func (m *MessageList_Message) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *MessageList_Message) GetCount() int32 {
if m != nil && m.Count != nil {
return *m.Count
}
return 0
}
type Strings struct {
StringField *string `protobuf:"bytes,1,opt,name=string_field,json=stringField" json:"string_field,omitempty"`
BytesField []byte `protobuf:"bytes,2,opt,name=bytes_field,json=bytesField" json:"bytes_field,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Strings) Reset() { *m = Strings{} }
func (m *Strings) String() string { return proto.CompactTextString(m) }
func (*Strings) ProtoMessage() {}
func (*Strings) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{19}
}
func (m *Strings) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Strings.Unmarshal(m, b)
}
func (m *Strings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Strings.Marshal(b, m, deterministic)
}
func (m *Strings) XXX_Merge(src proto.Message) {
xxx_messageInfo_Strings.Merge(m, src)
}
func (m *Strings) XXX_Size() int {
return xxx_messageInfo_Strings.Size(m)
}
func (m *Strings) XXX_DiscardUnknown() {
xxx_messageInfo_Strings.DiscardUnknown(m)
}
var xxx_messageInfo_Strings proto.InternalMessageInfo
func (m *Strings) GetStringField() string {
if m != nil && m.StringField != nil {
return *m.StringField
}
return ""
}
func (m *Strings) GetBytesField() []byte {
if m != nil {
return m.BytesField
}
return nil
}
type Defaults struct {
// Default-valued fields of all basic types.
// Same as GoTest, but copied here to make testing easier.
F_Bool *bool `protobuf:"varint,1,opt,name=F_Bool,json=FBool,def=1" json:"F_Bool,omitempty"`
F_Int32 *int32 `protobuf:"varint,2,opt,name=F_Int32,json=FInt32,def=32" json:"F_Int32,omitempty"`
F_Int64 *int64 `protobuf:"varint,3,opt,name=F_Int64,json=FInt64,def=64" json:"F_Int64,omitempty"`
F_Fixed32 *uint32 `protobuf:"fixed32,4,opt,name=F_Fixed32,json=FFixed32,def=320" json:"F_Fixed32,omitempty"`
F_Fixed64 *uint64 `protobuf:"fixed64,5,opt,name=F_Fixed64,json=FFixed64,def=640" json:"F_Fixed64,omitempty"`
F_Uint32 *uint32 `protobuf:"varint,6,opt,name=F_Uint32,json=FUint32,def=3200" json:"F_Uint32,omitempty"`
F_Uint64 *uint64 `protobuf:"varint,7,opt,name=F_Uint64,json=FUint64,def=6400" json:"F_Uint64,omitempty"`
F_Float *float32 `protobuf:"fixed32,8,opt,name=F_Float,json=FFloat,def=314159" json:"F_Float,omitempty"`
F_Double *float64 `protobuf:"fixed64,9,opt,name=F_Double,json=FDouble,def=271828" json:"F_Double,omitempty"`
F_String *string `protobuf:"bytes,10,opt,name=F_String,json=FString,def=hello, \"world!\"\n" json:"F_String,omitempty"`
F_Bytes []byte `protobuf:"bytes,11,opt,name=F_Bytes,json=FBytes,def=Bignose" json:"F_Bytes,omitempty"`
F_Sint32 *int32 `protobuf:"zigzag32,12,opt,name=F_Sint32,json=FSint32,def=-32" json:"F_Sint32,omitempty"`
F_Sint64 *int64 `protobuf:"zigzag64,13,opt,name=F_Sint64,json=FSint64,def=-64" json:"F_Sint64,omitempty"`
F_Enum *Defaults_Color `protobuf:"varint,14,opt,name=F_Enum,json=FEnum,enum=proto2_test.Defaults_Color,def=1" json:"F_Enum,omitempty"`
// More fields with crazy defaults.
F_Pinf *float32 `protobuf:"fixed32,15,opt,name=F_Pinf,json=FPinf,def=inf" json:"F_Pinf,omitempty"`
F_Ninf *float32 `protobuf:"fixed32,16,opt,name=F_Ninf,json=FNinf,def=-inf" json:"F_Ninf,omitempty"`
F_Nan *float32 `protobuf:"fixed32,17,opt,name=F_Nan,json=FNan,def=nan" json:"F_Nan,omitempty"`
// Sub-message.
Sub *SubDefaults `protobuf:"bytes,18,opt,name=sub" json:"sub,omitempty"`
// Redundant but explicit defaults.
StrZero *string `protobuf:"bytes,19,opt,name=str_zero,json=strZero,def=" json:"str_zero,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Defaults) Reset() { *m = Defaults{} }
func (m *Defaults) String() string { return proto.CompactTextString(m) }
func (*Defaults) ProtoMessage() {}
func (*Defaults) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{20}
}
func (m *Defaults) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Defaults.Unmarshal(m, b)
}
func (m *Defaults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Defaults.Marshal(b, m, deterministic)
}
func (m *Defaults) XXX_Merge(src proto.Message) {
xxx_messageInfo_Defaults.Merge(m, src)
}
func (m *Defaults) XXX_Size() int {
return xxx_messageInfo_Defaults.Size(m)
}
func (m *Defaults) XXX_DiscardUnknown() {
xxx_messageInfo_Defaults.DiscardUnknown(m)
}
var xxx_messageInfo_Defaults proto.InternalMessageInfo
const Default_Defaults_F_Bool bool = true
const Default_Defaults_F_Int32 int32 = 32
const Default_Defaults_F_Int64 int64 = 64
const Default_Defaults_F_Fixed32 uint32 = 320
const Default_Defaults_F_Fixed64 uint64 = 640
const Default_Defaults_F_Uint32 uint32 = 3200
const Default_Defaults_F_Uint64 uint64 = 6400
const Default_Defaults_F_Float float32 = 314159
const Default_Defaults_F_Double float64 = 271828
const Default_Defaults_F_String string = "hello, \"world!\"\n"
var Default_Defaults_F_Bytes []byte = []byte("Bignose")
const Default_Defaults_F_Sint32 int32 = -32
const Default_Defaults_F_Sint64 int64 = -64
const Default_Defaults_F_Enum Defaults_Color = Defaults_GREEN
var Default_Defaults_F_Pinf float32 = float32(math.Inf(1))
var Default_Defaults_F_Ninf float32 = float32(math.Inf(-1))
var Default_Defaults_F_Nan float32 = float32(math.NaN())
func (m *Defaults) GetF_Bool() bool {
if m != nil && m.F_Bool != nil {
return *m.F_Bool
}
return Default_Defaults_F_Bool
}
func (m *Defaults) GetF_Int32() int32 {
if m != nil && m.F_Int32 != nil {
return *m.F_Int32
}
return Default_Defaults_F_Int32
}
func (m *Defaults) GetF_Int64() int64 {
if m != nil && m.F_Int64 != nil {
return *m.F_Int64
}
return Default_Defaults_F_Int64
}
func (m *Defaults) GetF_Fixed32() uint32 {
if m != nil && m.F_Fixed32 != nil {
return *m.F_Fixed32
}
return Default_Defaults_F_Fixed32
}
func (m *Defaults) GetF_Fixed64() uint64 {
if m != nil && m.F_Fixed64 != nil {
return *m.F_Fixed64
}
return Default_Defaults_F_Fixed64
}
func (m *Defaults) GetF_Uint32() uint32 {
if m != nil && m.F_Uint32 != nil {
return *m.F_Uint32
}
return Default_Defaults_F_Uint32
}
func (m *Defaults) GetF_Uint64() uint64 {
if m != nil && m.F_Uint64 != nil {
return *m.F_Uint64
}
return Default_Defaults_F_Uint64
}
func (m *Defaults) GetF_Float() float32 {
if m != nil && m.F_Float != nil {
return *m.F_Float
}
return Default_Defaults_F_Float
}
func (m *Defaults) GetF_Double() float64 {
if m != nil && m.F_Double != nil {
return *m.F_Double
}
return Default_Defaults_F_Double
}
func (m *Defaults) GetF_String() string {
if m != nil && m.F_String != nil {
return *m.F_String
}
return Default_Defaults_F_String
}
func (m *Defaults) GetF_Bytes() []byte {
if m != nil && m.F_Bytes != nil {
return m.F_Bytes
}
return append([]byte(nil), Default_Defaults_F_Bytes...)
}
func (m *Defaults) GetF_Sint32() int32 {
if m != nil && m.F_Sint32 != nil {
return *m.F_Sint32
}
return Default_Defaults_F_Sint32
}
func (m *Defaults) GetF_Sint64() int64 {
if m != nil && m.F_Sint64 != nil {
return *m.F_Sint64
}
return Default_Defaults_F_Sint64
}
func (m *Defaults) GetF_Enum() Defaults_Color {
if m != nil && m.F_Enum != nil {
return *m.F_Enum
}
return Default_Defaults_F_Enum
}
func (m *Defaults) GetF_Pinf() float32 {
if m != nil && m.F_Pinf != nil {
return *m.F_Pinf
}
return Default_Defaults_F_Pinf
}
func (m *Defaults) GetF_Ninf() float32 {
if m != nil && m.F_Ninf != nil {
return *m.F_Ninf
}
return Default_Defaults_F_Ninf
}
func (m *Defaults) GetF_Nan() float32 {
if m != nil && m.F_Nan != nil {
return *m.F_Nan
}
return Default_Defaults_F_Nan
}
func (m *Defaults) GetSub() *SubDefaults {
if m != nil {
return m.Sub
}
return nil
}
func (m *Defaults) GetStrZero() string {
if m != nil && m.StrZero != nil {
return *m.StrZero
}
return ""
}
type SubDefaults struct {
N *int64 `protobuf:"varint,1,opt,name=n,def=7" json:"n,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SubDefaults) Reset() { *m = SubDefaults{} }
func (m *SubDefaults) String() string { return proto.CompactTextString(m) }
func (*SubDefaults) ProtoMessage() {}
func (*SubDefaults) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{21}
}
func (m *SubDefaults) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SubDefaults.Unmarshal(m, b)
}
func (m *SubDefaults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SubDefaults.Marshal(b, m, deterministic)
}
func (m *SubDefaults) XXX_Merge(src proto.Message) {
xxx_messageInfo_SubDefaults.Merge(m, src)
}
func (m *SubDefaults) XXX_Size() int {
return xxx_messageInfo_SubDefaults.Size(m)
}
func (m *SubDefaults) XXX_DiscardUnknown() {
xxx_messageInfo_SubDefaults.DiscardUnknown(m)
}
var xxx_messageInfo_SubDefaults proto.InternalMessageInfo
const Default_SubDefaults_N int64 = 7
func (m *SubDefaults) GetN() int64 {
if m != nil && m.N != nil {
return *m.N
}
return Default_SubDefaults_N
}
type RepeatedEnum struct {
Color []RepeatedEnum_Color `protobuf:"varint,1,rep,name=color,enum=proto2_test.RepeatedEnum_Color" json:"color,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepeatedEnum) Reset() { *m = RepeatedEnum{} }
func (m *RepeatedEnum) String() string { return proto.CompactTextString(m) }
func (*RepeatedEnum) ProtoMessage() {}
func (*RepeatedEnum) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{22}
}
func (m *RepeatedEnum) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepeatedEnum.Unmarshal(m, b)
}
func (m *RepeatedEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepeatedEnum.Marshal(b, m, deterministic)
}
func (m *RepeatedEnum) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepeatedEnum.Merge(m, src)
}
func (m *RepeatedEnum) XXX_Size() int {
return xxx_messageInfo_RepeatedEnum.Size(m)
}
func (m *RepeatedEnum) XXX_DiscardUnknown() {
xxx_messageInfo_RepeatedEnum.DiscardUnknown(m)
}
var xxx_messageInfo_RepeatedEnum proto.InternalMessageInfo
func (m *RepeatedEnum) GetColor() []RepeatedEnum_Color {
if m != nil {
return m.Color
}
return nil
}
type MoreRepeated struct {
Bools []bool `protobuf:"varint,1,rep,name=bools" json:"bools,omitempty"`
BoolsPacked []bool `protobuf:"varint,2,rep,packed,name=bools_packed,json=boolsPacked" json:"bools_packed,omitempty"`
Ints []int32 `protobuf:"varint,3,rep,name=ints" json:"ints,omitempty"`
IntsPacked []int32 `protobuf:"varint,4,rep,packed,name=ints_packed,json=intsPacked" json:"ints_packed,omitempty"`
Int64SPacked []int64 `protobuf:"varint,7,rep,packed,name=int64s_packed,json=int64sPacked" json:"int64s_packed,omitempty"`
Strings []string `protobuf:"bytes,5,rep,name=strings" json:"strings,omitempty"`
Fixeds []uint32 `protobuf:"fixed32,6,rep,name=fixeds" json:"fixeds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MoreRepeated) Reset() { *m = MoreRepeated{} }
func (m *MoreRepeated) String() string { return proto.CompactTextString(m) }
func (*MoreRepeated) ProtoMessage() {}
func (*MoreRepeated) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{23}
}
func (m *MoreRepeated) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MoreRepeated.Unmarshal(m, b)
}
func (m *MoreRepeated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MoreRepeated.Marshal(b, m, deterministic)
}
func (m *MoreRepeated) XXX_Merge(src proto.Message) {
xxx_messageInfo_MoreRepeated.Merge(m, src)
}
func (m *MoreRepeated) XXX_Size() int {
return xxx_messageInfo_MoreRepeated.Size(m)
}
func (m *MoreRepeated) XXX_DiscardUnknown() {
xxx_messageInfo_MoreRepeated.DiscardUnknown(m)
}
var xxx_messageInfo_MoreRepeated proto.InternalMessageInfo
func (m *MoreRepeated) GetBools() []bool {
if m != nil {
return m.Bools
}
return nil
}
func (m *MoreRepeated) GetBoolsPacked() []bool {
if m != nil {
return m.BoolsPacked
}
return nil
}
func (m *MoreRepeated) GetInts() []int32 {
if m != nil {
return m.Ints
}
return nil
}
func (m *MoreRepeated) GetIntsPacked() []int32 {
if m != nil {
return m.IntsPacked
}
return nil
}
func (m *MoreRepeated) GetInt64SPacked() []int64 {
if m != nil {
return m.Int64SPacked
}
return nil
}
func (m *MoreRepeated) GetStrings() []string {
if m != nil {
return m.Strings
}
return nil
}
func (m *MoreRepeated) GetFixeds() []uint32 {
if m != nil {
return m.Fixeds
}
return nil
}
type GroupOld struct {
G *GroupOld_G `protobuf:"group,101,opt,name=G,json=g" json:"g,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GroupOld) Reset() { *m = GroupOld{} }
func (m *GroupOld) String() string { return proto.CompactTextString(m) }
func (*GroupOld) ProtoMessage() {}
func (*GroupOld) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{24}
}
func (m *GroupOld) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GroupOld.Unmarshal(m, b)
}
func (m *GroupOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GroupOld.Marshal(b, m, deterministic)
}
func (m *GroupOld) XXX_Merge(src proto.Message) {
xxx_messageInfo_GroupOld.Merge(m, src)
}
func (m *GroupOld) XXX_Size() int {
return xxx_messageInfo_GroupOld.Size(m)
}
func (m *GroupOld) XXX_DiscardUnknown() {
xxx_messageInfo_GroupOld.DiscardUnknown(m)
}
var xxx_messageInfo_GroupOld proto.InternalMessageInfo
func (m *GroupOld) GetG() *GroupOld_G {
if m != nil {
return m.G
}
return nil
}
type GroupOld_G struct {
X *int32 `protobuf:"varint,2,opt,name=x" json:"x,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GroupOld_G) Reset() { *m = GroupOld_G{} }
func (m *GroupOld_G) String() string { return proto.CompactTextString(m) }
func (*GroupOld_G) ProtoMessage() {}
func (*GroupOld_G) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{24, 0}
}
func (m *GroupOld_G) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GroupOld_G.Unmarshal(m, b)
}
func (m *GroupOld_G) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GroupOld_G.Marshal(b, m, deterministic)
}
func (m *GroupOld_G) XXX_Merge(src proto.Message) {
xxx_messageInfo_GroupOld_G.Merge(m, src)
}
func (m *GroupOld_G) XXX_Size() int {
return xxx_messageInfo_GroupOld_G.Size(m)
}
func (m *GroupOld_G) XXX_DiscardUnknown() {
xxx_messageInfo_GroupOld_G.DiscardUnknown(m)
}
var xxx_messageInfo_GroupOld_G proto.InternalMessageInfo
func (m *GroupOld_G) GetX() int32 {
if m != nil && m.X != nil {
return *m.X
}
return 0
}
type GroupNew struct {
G *GroupNew_G `protobuf:"group,101,opt,name=G,json=g" json:"g,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GroupNew) Reset() { *m = GroupNew{} }
func (m *GroupNew) String() string { return proto.CompactTextString(m) }
func (*GroupNew) ProtoMessage() {}
func (*GroupNew) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{25}
}
func (m *GroupNew) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GroupNew.Unmarshal(m, b)
}
func (m *GroupNew) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GroupNew.Marshal(b, m, deterministic)
}
func (m *GroupNew) XXX_Merge(src proto.Message) {
xxx_messageInfo_GroupNew.Merge(m, src)
}
func (m *GroupNew) XXX_Size() int {
return xxx_messageInfo_GroupNew.Size(m)
}
func (m *GroupNew) XXX_DiscardUnknown() {
xxx_messageInfo_GroupNew.DiscardUnknown(m)
}
var xxx_messageInfo_GroupNew proto.InternalMessageInfo
func (m *GroupNew) GetG() *GroupNew_G {
if m != nil {
return m.G
}
return nil
}
type GroupNew_G struct {
X *int32 `protobuf:"varint,2,opt,name=x" json:"x,omitempty"`
Y *int32 `protobuf:"varint,3,opt,name=y" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GroupNew_G) Reset() { *m = GroupNew_G{} }
func (m *GroupNew_G) String() string { return proto.CompactTextString(m) }
func (*GroupNew_G) ProtoMessage() {}
func (*GroupNew_G) Descriptor() ([]byte, []int) {
return fileDescriptor_e5b3e7ca68f98362, []int{25, 0}
}
func (m *GroupNew_G) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GroupNew_G.Unmarshal(m, b)
}
func (m *GroupNew_G) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GroupNew_G.Marshal(b, m, deterministic)
}
func (m *GroupNew_G) XXX_Merge(src proto.Message) {
xxx_messageInfo_GroupNew_G.Merge(m, src)
}
func (m *GroupNew_G) XXX_Size() int {
return xxx_messageInfo_GroupNew_G.Size(m)
}
func (m *GroupNew_G) XXX_DiscardUnknown() {
xxx_messageInfo_GroupNew_G.DiscardUnknown(m)
}
var xxx_messageInfo_GroupNew_G proto.InternalMessageInfo
func (m *GroupNew_G) GetX() int32 {
if m != nil && m.X != nil {
return *m.X
}
return 0
}
func (m *GroupNew_G) GetY() int32 {
if m != nil && m.Y != nil {
return *m.Y
}
return 0
}
type FloatingPoint struct {
F *float64 `protobuf:"fixed64,1,req,name=f" json:"f,omitempty"`
Exact *bool `protobuf:"varint,2,opt,name=exact" json:"exact,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FloatingPoint) Reset() { *m
gitextract_1mqoipbk/ ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.md │ │ ├── feature_request.md │ │ └── question.md │ └── workflows/ │ └── test.yml ├── .gitignore ├── AUTHORS ├── CONTRIBUTING.md ├── CONTRIBUTORS ├── LICENSE ├── README.md ├── descriptor/ │ ├── descriptor.go │ └── descriptor_test.go ├── go.mod ├── go.sum ├── internal/ │ ├── cmd/ │ │ └── generate-alias/ │ │ └── main.go │ ├── gengogrpc/ │ │ └── grpc.go │ └── testprotos/ │ ├── jsonpb_proto/ │ │ ├── test2.pb.go │ │ ├── test2.proto │ │ ├── test3.pb.go │ │ └── test3.proto │ ├── proto2_proto/ │ │ ├── test.pb.go │ │ └── test.proto │ ├── proto3_proto/ │ │ ├── test.pb.go │ │ └── test.proto │ └── regenerate.bash ├── jsonpb/ │ ├── decode.go │ ├── encode.go │ ├── json.go │ └── json_test.go ├── proto/ │ ├── buffer.go │ ├── defaults.go │ ├── deprecated.go │ ├── discard.go │ ├── discard_test.go │ ├── extensions.go │ ├── extensions_test.go │ ├── properties.go │ ├── proto.go │ ├── proto_clone_test.go │ ├── proto_equal_test.go │ ├── proto_test.go │ ├── registry.go │ ├── registry_test.go │ ├── text_decode.go │ ├── text_encode.go │ ├── text_test.go │ ├── wire.go │ └── wrappers.go ├── protoc-gen-go/ │ ├── descriptor/ │ │ └── descriptor.pb.go │ ├── generator/ │ │ ├── generator.go │ │ └── internal/ │ │ └── remap/ │ │ ├── remap.go │ │ └── remap_test.go │ ├── grpc/ │ │ └── grpc.go │ ├── main.go │ └── plugin/ │ └── plugin.pb.go ├── ptypes/ │ ├── any/ │ │ └── any.pb.go │ ├── any.go │ ├── any_test.go │ ├── doc.go │ ├── duration/ │ │ └── duration.pb.go │ ├── duration.go │ ├── duration_test.go │ ├── empty/ │ │ └── empty.pb.go │ ├── struct/ │ │ └── struct.pb.go │ ├── timestamp/ │ │ └── timestamp.pb.go │ ├── timestamp.go │ ├── timestamp_test.go │ └── wrappers/ │ └── wrappers.pb.go ├── regenerate.bash └── test.bash
SYMBOL INDEX (2026 symbols across 50 files)
FILE: descriptor/descriptor.go
type Message (line 32) | type Message interface
function ForMessage (line 45) | func ForMessage(m Message) (*descriptorpb.FileDescriptorProto, *descript...
type rawDesc (line 49) | type rawDesc struct
function deriveRawDescriptor (line 56) | func deriveRawDescriptor(d protoreflect.Descriptor) ([]byte, []int) {
function EnumRawDescriptor (line 100) | func EnumRawDescriptor(e proto.GeneratedEnum) ([]byte, []int) {
function MessageRawDescriptor (line 111) | func MessageRawDescriptor(m proto.GeneratedMessage) ([]byte, []int) {
function deriveFileDescriptor (line 121) | func deriveFileDescriptor(rawDesc []byte) *descriptorpb.FileDescriptorPr...
function EnumDescriptorProto (line 149) | func EnumDescriptorProto(e proto.GeneratedEnum) (*descriptorpb.FileDescr...
function MessageDescriptorProto (line 169) | func MessageDescriptorProto(m proto.GeneratedMessage) (*descriptorpb.Fil...
FILE: descriptor/descriptor_test.go
function TestEnumDescriptor (line 16) | func TestEnumDescriptor(t *testing.T) {
function TestMessageDescriptor (line 52) | func TestMessageDescriptor(t *testing.T) {
FILE: internal/cmd/generate-alias/main.go
function main (line 35) | func main() {
function check (line 128) | func check(err error) {
FILE: internal/gengogrpc/grpc.go
constant contextPackage (line 19) | contextPackage = protogen.GoImportPath("context")
constant grpcPackage (line 20) | grpcPackage = protogen.GoImportPath("google.golang.org/grpc")
constant codesPackage (line 21) | codesPackage = protogen.GoImportPath("google.golang.org/grpc/codes")
constant statusPackage (line 22) | statusPackage = protogen.GoImportPath("google.golang.org/grpc/status")
function GenerateFile (line 26) | func GenerateFile(gen *protogen.Plugin, file *protogen.File) *protogen.G...
function GenerateFileContent (line 41) | func GenerateFileContent(gen *protogen.Plugin, file *protogen.File, g *p...
function genService (line 61) | func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.G...
function clientSignature (line 205) | func clientSignature(g *protogen.GeneratedFile, method *protogen.Method)...
function genClientMethod (line 220) | func genClientMethod(gen *protogen.Plugin, file *protogen.File, g *proto...
function serverSignature (line 299) | func serverSignature(g *protogen.GeneratedFile, method *protogen.Method)...
function genServerMethod (line 315) | func genServerMethod(gen *protogen.Plugin, file *protogen.File, g *proto...
constant deprecationComment (line 396) | deprecationComment = "// Deprecated: Do not use."
function unexport (line 398) | func unexport(s string) string { return strings.ToLower(s[:1]) + s[1:] }
FILE: internal/testprotos/jsonpb_proto/test2.pb.go
constant _ (line 26) | _ = proto.ProtoPackageIsVersion3
type Widget_Color (line 28) | type Widget_Color
method Enum (line 48) | func (x Widget_Color) Enum() *Widget_Color {
method String (line 54) | func (x Widget_Color) String() string {
method UnmarshalJSON (line 58) | func (x *Widget_Color) UnmarshalJSON(data []byte) error {
method EnumDescriptor (line 67) | func (Widget_Color) EnumDescriptor() ([]byte, []int) {
constant Widget_RED (line 31) | Widget_RED Widget_Color = 0
constant Widget_GREEN (line 32) | Widget_GREEN Widget_Color = 1
constant Widget_BLUE (line 33) | Widget_BLUE Widget_Color = 2
type Simple (line 72) | type Simple struct
method Reset (line 97) | func (m *Simple) Reset() { *m = Simple{} }
method String (line 98) | func (m *Simple) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 99) | func (*Simple) ProtoMessage() {}
method Descriptor (line 100) | func (*Simple) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 104) | func (m *Simple) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 107) | func (m *Simple) XXX_Marshal(b []byte, deterministic bool) ([]byte, er...
method XXX_Merge (line 110) | func (m *Simple) XXX_Merge(src proto.Message) {
method XXX_Size (line 113) | func (m *Simple) XXX_Size() int {
method XXX_DiscardUnknown (line 116) | func (m *Simple) XXX_DiscardUnknown() {
method GetOBool (line 122) | func (m *Simple) GetOBool() bool {
method GetOInt32 (line 129) | func (m *Simple) GetOInt32() int32 {
method GetOInt32Str (line 136) | func (m *Simple) GetOInt32Str() int32 {
method GetOInt64 (line 143) | func (m *Simple) GetOInt64() int64 {
method GetOInt64Str (line 150) | func (m *Simple) GetOInt64Str() int64 {
method GetOUint32 (line 157) | func (m *Simple) GetOUint32() uint32 {
method GetOUint32Str (line 164) | func (m *Simple) GetOUint32Str() uint32 {
method GetOUint64 (line 171) | func (m *Simple) GetOUint64() uint64 {
method GetOUint64Str (line 178) | func (m *Simple) GetOUint64Str() uint64 {
method GetOSint32 (line 185) | func (m *Simple) GetOSint32() int32 {
method GetOSint32Str (line 192) | func (m *Simple) GetOSint32Str() int32 {
method GetOSint64 (line 199) | func (m *Simple) GetOSint64() int64 {
method GetOSint64Str (line 206) | func (m *Simple) GetOSint64Str() int64 {
method GetOFloat (line 213) | func (m *Simple) GetOFloat() float32 {
method GetOFloatStr (line 220) | func (m *Simple) GetOFloatStr() float32 {
method GetODouble (line 227) | func (m *Simple) GetODouble() float64 {
method GetODoubleStr (line 234) | func (m *Simple) GetODoubleStr() float64 {
method GetOString (line 241) | func (m *Simple) GetOString() string {
method GetOBytes (line 248) | func (m *Simple) GetOBytes() []byte {
type NonFinites (line 256) | type NonFinites struct
method Reset (line 268) | func (m *NonFinites) Reset() { *m = NonFinites{} }
method String (line 269) | func (m *NonFinites) String() string { return proto.CompactTextString(...
method ProtoMessage (line 270) | func (*NonFinites) ProtoMessage() {}
method Descriptor (line 271) | func (*NonFinites) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 275) | func (m *NonFinites) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 278) | func (m *NonFinites) XXX_Marshal(b []byte, deterministic bool) ([]byte...
method XXX_Merge (line 281) | func (m *NonFinites) XXX_Merge(src proto.Message) {
method XXX_Size (line 284) | func (m *NonFinites) XXX_Size() int {
method XXX_DiscardUnknown (line 287) | func (m *NonFinites) XXX_DiscardUnknown() {
method GetFNan (line 293) | func (m *NonFinites) GetFNan() float32 {
method GetFPinf (line 300) | func (m *NonFinites) GetFPinf() float32 {
method GetFNinf (line 307) | func (m *NonFinites) GetFNinf() float32 {
method GetDNan (line 314) | func (m *NonFinites) GetDNan() float64 {
method GetDPinf (line 321) | func (m *NonFinites) GetDPinf() float64 {
method GetDNinf (line 328) | func (m *NonFinites) GetDNinf() float64 {
type Repeats (line 336) | type Repeats struct
method Reset (line 353) | func (m *Repeats) Reset() { *m = Repeats{} }
method String (line 354) | func (m *Repeats) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 355) | func (*Repeats) ProtoMessage() {}
method Descriptor (line 356) | func (*Repeats) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 360) | func (m *Repeats) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 363) | func (m *Repeats) XXX_Marshal(b []byte, deterministic bool) ([]byte, e...
method XXX_Merge (line 366) | func (m *Repeats) XXX_Merge(src proto.Message) {
method XXX_Size (line 369) | func (m *Repeats) XXX_Size() int {
method XXX_DiscardUnknown (line 372) | func (m *Repeats) XXX_DiscardUnknown() {
method GetRBool (line 378) | func (m *Repeats) GetRBool() []bool {
method GetRInt32 (line 385) | func (m *Repeats) GetRInt32() []int32 {
method GetRInt64 (line 392) | func (m *Repeats) GetRInt64() []int64 {
method GetRUint32 (line 399) | func (m *Repeats) GetRUint32() []uint32 {
method GetRUint64 (line 406) | func (m *Repeats) GetRUint64() []uint64 {
method GetRSint32 (line 413) | func (m *Repeats) GetRSint32() []int32 {
method GetRSint64 (line 420) | func (m *Repeats) GetRSint64() []int64 {
method GetRFloat (line 427) | func (m *Repeats) GetRFloat() []float32 {
method GetRDouble (line 434) | func (m *Repeats) GetRDouble() []float64 {
method GetRString (line 441) | func (m *Repeats) GetRString() []string {
method GetRBytes (line 448) | func (m *Repeats) GetRBytes() [][]byte {
type Widget (line 456) | type Widget struct
method Reset (line 468) | func (m *Widget) Reset() { *m = Widget{} }
method String (line 469) | func (m *Widget) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 470) | func (*Widget) ProtoMessage() {}
method Descriptor (line 471) | func (*Widget) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 475) | func (m *Widget) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 478) | func (m *Widget) XXX_Marshal(b []byte, deterministic bool) ([]byte, er...
method XXX_Merge (line 481) | func (m *Widget) XXX_Merge(src proto.Message) {
method XXX_Size (line 484) | func (m *Widget) XXX_Size() int {
method XXX_DiscardUnknown (line 487) | func (m *Widget) XXX_DiscardUnknown() {
method GetColor (line 493) | func (m *Widget) GetColor() Widget_Color {
method GetRColor (line 500) | func (m *Widget) GetRColor() []Widget_Color {
method GetSimple (line 507) | func (m *Widget) GetSimple() *Simple {
method GetRSimple (line 514) | func (m *Widget) GetRSimple() []*Simple {
method GetRepeats (line 521) | func (m *Widget) GetRepeats() *Repeats {
method GetRRepeats (line 528) | func (m *Widget) GetRRepeats() []*Repeats {
type Maps (line 535) | type Maps struct
method Reset (line 543) | func (m *Maps) Reset() { *m = Maps{} }
method String (line 544) | func (m *Maps) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 545) | func (*Maps) ProtoMessage() {}
method Descriptor (line 546) | func (*Maps) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 550) | func (m *Maps) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 553) | func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro...
method XXX_Merge (line 556) | func (m *Maps) XXX_Merge(src proto.Message) {
method XXX_Size (line 559) | func (m *Maps) XXX_Size() int {
method XXX_DiscardUnknown (line 562) | func (m *Maps) XXX_DiscardUnknown() {
method GetMInt64Str (line 568) | func (m *Maps) GetMInt64Str() map[int64]string {
method GetMBoolSimple (line 575) | func (m *Maps) GetMBoolSimple() map[bool]*Simple {
type MsgWithOneof (line 582) | type MsgWithOneof struct
method Reset (line 596) | func (m *MsgWithOneof) Reset() { *m = MsgWithOneof{} }
method String (line 597) | func (m *MsgWithOneof) String() string { return proto.CompactTextStrin...
method ProtoMessage (line 598) | func (*MsgWithOneof) ProtoMessage() {}
method Descriptor (line 599) | func (*MsgWithOneof) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 603) | func (m *MsgWithOneof) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 606) | func (m *MsgWithOneof) XXX_Marshal(b []byte, deterministic bool) ([]by...
method XXX_Merge (line 609) | func (m *MsgWithOneof) XXX_Merge(src proto.Message) {
method XXX_Size (line 612) | func (m *MsgWithOneof) XXX_Size() int {
method XXX_DiscardUnknown (line 615) | func (m *MsgWithOneof) XXX_DiscardUnknown() {
method GetUnion (line 661) | func (m *MsgWithOneof) GetUnion() isMsgWithOneof_Union {
method GetTitle (line 668) | func (m *MsgWithOneof) GetTitle() string {
method GetSalary (line 675) | func (m *MsgWithOneof) GetSalary() int64 {
method GetCountry (line 682) | func (m *MsgWithOneof) GetCountry() string {
method GetHomeAddress (line 689) | func (m *MsgWithOneof) GetHomeAddress() string {
method GetMsgWithRequired (line 696) | func (m *MsgWithOneof) GetMsgWithRequired() *MsgWithRequired {
method GetNullValue (line 703) | func (m *MsgWithOneof) GetNullValue() structpb.NullValue {
method XXX_OneofWrappers (line 711) | func (*MsgWithOneof) XXX_OneofWrappers() []interface{} {
type isMsgWithOneof_Union (line 621) | type isMsgWithOneof_Union interface
type MsgWithOneof_Title (line 625) | type MsgWithOneof_Title struct
method isMsgWithOneof_Union (line 649) | func (*MsgWithOneof_Title) isMsgWithOneof_Union() {}
type MsgWithOneof_Salary (line 629) | type MsgWithOneof_Salary struct
method isMsgWithOneof_Union (line 651) | func (*MsgWithOneof_Salary) isMsgWithOneof_Union() {}
type MsgWithOneof_Country (line 633) | type MsgWithOneof_Country struct
method isMsgWithOneof_Union (line 653) | func (*MsgWithOneof_Country) isMsgWithOneof_Union() {}
type MsgWithOneof_HomeAddress (line 637) | type MsgWithOneof_HomeAddress struct
method isMsgWithOneof_Union (line 655) | func (*MsgWithOneof_HomeAddress) isMsgWithOneof_Union() {}
type MsgWithOneof_MsgWithRequired (line 641) | type MsgWithOneof_MsgWithRequired struct
method isMsgWithOneof_Union (line 657) | func (*MsgWithOneof_MsgWithRequired) isMsgWithOneof_Union() {}
type MsgWithOneof_NullValue (line 645) | type MsgWithOneof_NullValue struct
method isMsgWithOneof_Union (line 659) | func (*MsgWithOneof_NullValue) isMsgWithOneof_Union() {}
type Real (line 722) | type Real struct
method Reset (line 730) | func (m *Real) Reset() { *m = Real{} }
method String (line 731) | func (m *Real) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 732) | func (*Real) ProtoMessage() {}
method Descriptor (line 733) | func (*Real) Descriptor() ([]byte, []int) {
method ExtensionRangeArray (line 741) | func (*Real) ExtensionRangeArray() []proto.ExtensionRange {
method XXX_Unmarshal (line 745) | func (m *Real) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 748) | func (m *Real) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro...
method XXX_Merge (line 751) | func (m *Real) XXX_Merge(src proto.Message) {
method XXX_Size (line 754) | func (m *Real) XXX_Size() int {
method XXX_DiscardUnknown (line 757) | func (m *Real) XXX_DiscardUnknown() {
method GetValue (line 763) | func (m *Real) GetValue() float64 {
type Complex (line 770) | type Complex struct
method Reset (line 778) | func (m *Complex) Reset() { *m = Complex{} }
method String (line 779) | func (m *Complex) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 780) | func (*Complex) ProtoMessage() {}
method Descriptor (line 781) | func (*Complex) Descriptor() ([]byte, []int) {
method ExtensionRangeArray (line 789) | func (*Complex) ExtensionRangeArray() []proto.ExtensionRange {
method XXX_Unmarshal (line 793) | func (m *Complex) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 796) | func (m *Complex) XXX_Marshal(b []byte, deterministic bool) ([]byte, e...
method XXX_Merge (line 799) | func (m *Complex) XXX_Merge(src proto.Message) {
method XXX_Size (line 802) | func (m *Complex) XXX_Size() int {
method XXX_DiscardUnknown (line 805) | func (m *Complex) XXX_DiscardUnknown() {
method GetImaginary (line 811) | func (m *Complex) GetImaginary() float64 {
type KnownTypes (line 827) | type KnownTypes struct
method Reset (line 848) | func (m *KnownTypes) Reset() { *m = KnownTypes{} }
method String (line 849) | func (m *KnownTypes) String() string { return proto.CompactTextString(...
method ProtoMessage (line 850) | func (*KnownTypes) ProtoMessage() {}
method Descriptor (line 851) | func (*KnownTypes) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 855) | func (m *KnownTypes) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 858) | func (m *KnownTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte...
method XXX_Merge (line 861) | func (m *KnownTypes) XXX_Merge(src proto.Message) {
method XXX_Size (line 864) | func (m *KnownTypes) XXX_Size() int {
method XXX_DiscardUnknown (line 867) | func (m *KnownTypes) XXX_DiscardUnknown() {
method GetAn (line 873) | func (m *KnownTypes) GetAn() *anypb.Any {
method GetDur (line 880) | func (m *KnownTypes) GetDur() *durationpb.Duration {
method GetSt (line 887) | func (m *KnownTypes) GetSt() *structpb.Struct {
method GetTs (line 894) | func (m *KnownTypes) GetTs() *timestamppb.Timestamp {
method GetLv (line 901) | func (m *KnownTypes) GetLv() *structpb.ListValue {
method GetVal (line 908) | func (m *KnownTypes) GetVal() *structpb.Value {
method GetDbl (line 915) | func (m *KnownTypes) GetDbl() *wrapperspb.DoubleValue {
method GetFlt (line 922) | func (m *KnownTypes) GetFlt() *wrapperspb.FloatValue {
method GetI64 (line 929) | func (m *KnownTypes) GetI64() *wrapperspb.Int64Value {
method GetU64 (line 936) | func (m *KnownTypes) GetU64() *wrapperspb.UInt64Value {
method GetI32 (line 943) | func (m *KnownTypes) GetI32() *wrapperspb.Int32Value {
method GetU32 (line 950) | func (m *KnownTypes) GetU32() *wrapperspb.UInt32Value {
method GetBool (line 957) | func (m *KnownTypes) GetBool() *wrapperspb.BoolValue {
method GetStr (line 964) | func (m *KnownTypes) GetStr() *wrapperspb.StringValue {
method GetBytes (line 971) | func (m *KnownTypes) GetBytes() *wrapperspb.BytesValue {
type MsgWithRequired (line 979) | type MsgWithRequired struct
method Reset (line 986) | func (m *MsgWithRequired) Reset() { *m = MsgWithRequired{} }
method String (line 987) | func (m *MsgWithRequired) String() string { return proto.CompactTextSt...
method ProtoMessage (line 988) | func (*MsgWithRequired) ProtoMessage() {}
method Descriptor (line 989) | func (*MsgWithRequired) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 993) | func (m *MsgWithRequired) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 996) | func (m *MsgWithRequired) XXX_Marshal(b []byte, deterministic bool) ([...
method XXX_Merge (line 999) | func (m *MsgWithRequired) XXX_Merge(src proto.Message) {
method XXX_Size (line 1002) | func (m *MsgWithRequired) XXX_Size() int {
method XXX_DiscardUnknown (line 1005) | func (m *MsgWithRequired) XXX_DiscardUnknown() {
method GetStr (line 1011) | func (m *MsgWithRequired) GetStr() string {
type MsgWithIndirectRequired (line 1018) | type MsgWithIndirectRequired struct
method Reset (line 1027) | func (m *MsgWithIndirectRequired) Reset() { *m = MsgWithIndire...
method String (line 1028) | func (m *MsgWithIndirectRequired) String() string { return proto.Compa...
method ProtoMessage (line 1029) | func (*MsgWithIndirectRequired) ProtoMessage() {}
method Descriptor (line 1030) | func (*MsgWithIndirectRequired) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1034) | func (m *MsgWithIndirectRequired) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1037) | func (m *MsgWithIndirectRequired) XXX_Marshal(b []byte, deterministic ...
method XXX_Merge (line 1040) | func (m *MsgWithIndirectRequired) XXX_Merge(src proto.Message) {
method XXX_Size (line 1043) | func (m *MsgWithIndirectRequired) XXX_Size() int {
method XXX_DiscardUnknown (line 1046) | func (m *MsgWithIndirectRequired) XXX_DiscardUnknown() {
method GetSubm (line 1052) | func (m *MsgWithIndirectRequired) GetSubm() *MsgWithRequired {
method GetMapField (line 1059) | func (m *MsgWithIndirectRequired) GetMapField() map[string]*MsgWithReq...
method GetSliceField (line 1066) | func (m *MsgWithIndirectRequired) GetSliceField() []*MsgWithRequired {
type MsgWithRequiredBytes (line 1073) | type MsgWithRequiredBytes struct
method Reset (line 1080) | func (m *MsgWithRequiredBytes) Reset() { *m = MsgWithRequiredB...
method String (line 1081) | func (m *MsgWithRequiredBytes) String() string { return proto.CompactT...
method ProtoMessage (line 1082) | func (*MsgWithRequiredBytes) ProtoMessage() {}
method Descriptor (line 1083) | func (*MsgWithRequiredBytes) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1087) | func (m *MsgWithRequiredBytes) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1090) | func (m *MsgWithRequiredBytes) XXX_Marshal(b []byte, deterministic boo...
method XXX_Merge (line 1093) | func (m *MsgWithRequiredBytes) XXX_Merge(src proto.Message) {
method XXX_Size (line 1096) | func (m *MsgWithRequiredBytes) XXX_Size() int {
method XXX_DiscardUnknown (line 1099) | func (m *MsgWithRequiredBytes) XXX_DiscardUnknown() {
method GetByts (line 1105) | func (m *MsgWithRequiredBytes) GetByts() []byte {
type MsgWithRequiredWKT (line 1112) | type MsgWithRequiredWKT struct
method Reset (line 1119) | func (m *MsgWithRequiredWKT) Reset() { *m = MsgWithRequiredWKT...
method String (line 1120) | func (m *MsgWithRequiredWKT) String() string { return proto.CompactTex...
method ProtoMessage (line 1121) | func (*MsgWithRequiredWKT) ProtoMessage() {}
method Descriptor (line 1122) | func (*MsgWithRequiredWKT) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1126) | func (m *MsgWithRequiredWKT) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1129) | func (m *MsgWithRequiredWKT) XXX_Marshal(b []byte, deterministic bool)...
method XXX_Merge (line 1132) | func (m *MsgWithRequiredWKT) XXX_Merge(src proto.Message) {
method XXX_Size (line 1135) | func (m *MsgWithRequiredWKT) XXX_Size() int {
method XXX_DiscardUnknown (line 1138) | func (m *MsgWithRequiredWKT) XXX_DiscardUnknown() {
method GetStr (line 1144) | func (m *MsgWithRequiredWKT) GetStr() *wrapperspb.StringValue {
function init (line 1169) | func init() {
function init (line 1192) | func init() { proto.RegisterFile("jsonpb_proto/test2.proto", fileDescrip...
FILE: internal/testprotos/jsonpb_proto/test3.pb.go
constant _ (line 21) | _ = proto.ProtoPackageIsVersion3
type Numeral (line 23) | type Numeral
method String (line 43) | func (x Numeral) String() string {
method EnumDescriptor (line 47) | func (Numeral) EnumDescriptor() ([]byte, []int) {
constant Numeral_UNKNOWN (line 26) | Numeral_UNKNOWN Numeral = 0
constant Numeral_ARABIC (line 27) | Numeral_ARABIC Numeral = 1
constant Numeral_ROMAN (line 28) | Numeral_ROMAN Numeral = 2
type Simple3 (line 51) | type Simple3 struct
method Reset (line 58) | func (m *Simple3) Reset() { *m = Simple3{} }
method String (line 59) | func (m *Simple3) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 60) | func (*Simple3) ProtoMessage() {}
method Descriptor (line 61) | func (*Simple3) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 65) | func (m *Simple3) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 68) | func (m *Simple3) XXX_Marshal(b []byte, deterministic bool) ([]byte, e...
method XXX_Merge (line 71) | func (m *Simple3) XXX_Merge(src proto.Message) {
method XXX_Size (line 74) | func (m *Simple3) XXX_Size() int {
method XXX_DiscardUnknown (line 77) | func (m *Simple3) XXX_DiscardUnknown() {
method GetDub (line 83) | func (m *Simple3) GetDub() float64 {
type SimpleSlice3 (line 90) | type SimpleSlice3 struct
method Reset (line 97) | func (m *SimpleSlice3) Reset() { *m = SimpleSlice3{} }
method String (line 98) | func (m *SimpleSlice3) String() string { return proto.CompactTextStrin...
method ProtoMessage (line 99) | func (*SimpleSlice3) ProtoMessage() {}
method Descriptor (line 100) | func (*SimpleSlice3) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 104) | func (m *SimpleSlice3) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 107) | func (m *SimpleSlice3) XXX_Marshal(b []byte, deterministic bool) ([]by...
method XXX_Merge (line 110) | func (m *SimpleSlice3) XXX_Merge(src proto.Message) {
method XXX_Size (line 113) | func (m *SimpleSlice3) XXX_Size() int {
method XXX_DiscardUnknown (line 116) | func (m *SimpleSlice3) XXX_DiscardUnknown() {
method GetSlices (line 122) | func (m *SimpleSlice3) GetSlices() []string {
type SimpleMap3 (line 129) | type SimpleMap3 struct
method Reset (line 136) | func (m *SimpleMap3) Reset() { *m = SimpleMap3{} }
method String (line 137) | func (m *SimpleMap3) String() string { return proto.CompactTextString(...
method ProtoMessage (line 138) | func (*SimpleMap3) ProtoMessage() {}
method Descriptor (line 139) | func (*SimpleMap3) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 143) | func (m *SimpleMap3) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 146) | func (m *SimpleMap3) XXX_Marshal(b []byte, deterministic bool) ([]byte...
method XXX_Merge (line 149) | func (m *SimpleMap3) XXX_Merge(src proto.Message) {
method XXX_Size (line 152) | func (m *SimpleMap3) XXX_Size() int {
method XXX_DiscardUnknown (line 155) | func (m *SimpleMap3) XXX_DiscardUnknown() {
method GetStringy (line 161) | func (m *SimpleMap3) GetStringy() map[string]string {
type SimpleNull3 (line 168) | type SimpleNull3 struct
method Reset (line 175) | func (m *SimpleNull3) Reset() { *m = SimpleNull3{} }
method String (line 176) | func (m *SimpleNull3) String() string { return proto.CompactTextString...
method ProtoMessage (line 177) | func (*SimpleNull3) ProtoMessage() {}
method Descriptor (line 178) | func (*SimpleNull3) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 182) | func (m *SimpleNull3) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 185) | func (m *SimpleNull3) XXX_Marshal(b []byte, deterministic bool) ([]byt...
method XXX_Merge (line 188) | func (m *SimpleNull3) XXX_Merge(src proto.Message) {
method XXX_Size (line 191) | func (m *SimpleNull3) XXX_Size() int {
method XXX_DiscardUnknown (line 194) | func (m *SimpleNull3) XXX_DiscardUnknown() {
method GetSimple (line 200) | func (m *SimpleNull3) GetSimple() *Simple3 {
type Mappy (line 207) | type Mappy struct
method Reset (line 223) | func (m *Mappy) Reset() { *m = Mappy{} }
method String (line 224) | func (m *Mappy) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 225) | func (*Mappy) ProtoMessage() {}
method Descriptor (line 226) | func (*Mappy) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 230) | func (m *Mappy) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 233) | func (m *Mappy) XXX_Marshal(b []byte, deterministic bool) ([]byte, err...
method XXX_Merge (line 236) | func (m *Mappy) XXX_Merge(src proto.Message) {
method XXX_Size (line 239) | func (m *Mappy) XXX_Size() int {
method XXX_DiscardUnknown (line 242) | func (m *Mappy) XXX_DiscardUnknown() {
method GetNummy (line 248) | func (m *Mappy) GetNummy() map[int64]int32 {
method GetStrry (line 255) | func (m *Mappy) GetStrry() map[string]string {
method GetObjjy (line 262) | func (m *Mappy) GetObjjy() map[int32]*Simple3 {
method GetBuggy (line 269) | func (m *Mappy) GetBuggy() map[int64]string {
method GetBooly (line 276) | func (m *Mappy) GetBooly() map[bool]bool {
method GetEnumy (line 283) | func (m *Mappy) GetEnumy() map[string]Numeral {
method GetS32Booly (line 290) | func (m *Mappy) GetS32Booly() map[int32]bool {
method GetS64Booly (line 297) | func (m *Mappy) GetS64Booly() map[int64]bool {
method GetU32Booly (line 304) | func (m *Mappy) GetU32Booly() map[uint32]bool {
method GetU64Booly (line 311) | func (m *Mappy) GetU64Booly() map[uint64]bool {
function init (line 318) | func init() {
function init (line 338) | func init() { proto.RegisterFile("jsonpb_proto/test3.proto", fileDescrip...
FILE: internal/testprotos/proto2_proto/test.pb.go
constant _ (line 21) | _ = proto.ProtoPackageIsVersion3
type FOO (line 23) | type FOO
method Enum (line 37) | func (x FOO) Enum() *FOO {
method String (line 43) | func (x FOO) String() string {
method UnmarshalJSON (line 47) | func (x *FOO) UnmarshalJSON(data []byte) error {
method EnumDescriptor (line 56) | func (FOO) EnumDescriptor() ([]byte, []int) {
constant FOO_FOO1 (line 26) | FOO_FOO1 FOO = 1
type GoTest_KIND (line 61) | type GoTest_KIND
method Enum (line 115) | func (x GoTest_KIND) Enum() *GoTest_KIND {
method String (line 121) | func (x GoTest_KIND) String() string {
method UnmarshalJSON (line 125) | func (x *GoTest_KIND) UnmarshalJSON(data []byte) error {
method EnumDescriptor (line 134) | func (GoTest_KIND) EnumDescriptor() ([]byte, []int) {
constant GoTest_VOID (line 64) | GoTest_VOID GoTest_KIND = 0
constant GoTest_BOOL (line 66) | GoTest_BOOL GoTest_KIND = 1
constant GoTest_BYTES (line 67) | GoTest_BYTES GoTest_KIND = 2
constant GoTest_FINGERPRINT (line 68) | GoTest_FINGERPRINT GoTest_KIND = 3
constant GoTest_FLOAT (line 69) | GoTest_FLOAT GoTest_KIND = 4
constant GoTest_INT (line 70) | GoTest_INT GoTest_KIND = 5
constant GoTest_STRING (line 71) | GoTest_STRING GoTest_KIND = 6
constant GoTest_TIME (line 72) | GoTest_TIME GoTest_KIND = 7
constant GoTest_TUPLE (line 74) | GoTest_TUPLE GoTest_KIND = 8
constant GoTest_ARRAY (line 75) | GoTest_ARRAY GoTest_KIND = 9
constant GoTest_MAP (line 76) | GoTest_MAP GoTest_KIND = 10
constant GoTest_TABLE (line 78) | GoTest_TABLE GoTest_KIND = 11
constant GoTest_FUNCTION (line 80) | GoTest_FUNCTION GoTest_KIND = 12
type MyMessage_Color (line 138) | type MyMessage_Color
method Enum (line 158) | func (x MyMessage_Color) Enum() *MyMessage_Color {
method String (line 164) | func (x MyMessage_Color) String() string {
method UnmarshalJSON (line 168) | func (x *MyMessage_Color) UnmarshalJSON(data []byte) error {
method EnumDescriptor (line 177) | func (MyMessage_Color) EnumDescriptor() ([]byte, []int) {
constant MyMessage_RED (line 141) | MyMessage_RED MyMessage_Color = 0
constant MyMessage_GREEN (line 142) | MyMessage_GREEN MyMessage_Color = 1
constant MyMessage_BLUE (line 143) | MyMessage_BLUE MyMessage_Color = 2
type DefaultsMessage_DefaultsEnum (line 181) | type DefaultsMessage_DefaultsEnum
method Enum (line 201) | func (x DefaultsMessage_DefaultsEnum) Enum() *DefaultsMessage_Defaults...
method String (line 207) | func (x DefaultsMessage_DefaultsEnum) String() string {
method UnmarshalJSON (line 211) | func (x *DefaultsMessage_DefaultsEnum) UnmarshalJSON(data []byte) error {
method EnumDescriptor (line 220) | func (DefaultsMessage_DefaultsEnum) EnumDescriptor() ([]byte, []int) {
constant DefaultsMessage_ZERO (line 184) | DefaultsMessage_ZERO DefaultsMessage_DefaultsEnum = 0
constant DefaultsMessage_ONE (line 185) | DefaultsMessage_ONE DefaultsMessage_DefaultsEnum = 1
constant DefaultsMessage_TWO (line 186) | DefaultsMessage_TWO DefaultsMessage_DefaultsEnum = 2
type Defaults_Color (line 224) | type Defaults_Color
method Enum (line 244) | func (x Defaults_Color) Enum() *Defaults_Color {
method String (line 250) | func (x Defaults_Color) String() string {
method UnmarshalJSON (line 254) | func (x *Defaults_Color) UnmarshalJSON(data []byte) error {
method EnumDescriptor (line 263) | func (Defaults_Color) EnumDescriptor() ([]byte, []int) {
constant Defaults_RED (line 227) | Defaults_RED Defaults_Color = 0
constant Defaults_GREEN (line 228) | Defaults_GREEN Defaults_Color = 1
constant Defaults_BLUE (line 229) | Defaults_BLUE Defaults_Color = 2
type RepeatedEnum_Color (line 267) | type RepeatedEnum_Color
method Enum (line 281) | func (x RepeatedEnum_Color) Enum() *RepeatedEnum_Color {
method String (line 287) | func (x RepeatedEnum_Color) String() string {
method UnmarshalJSON (line 291) | func (x *RepeatedEnum_Color) UnmarshalJSON(data []byte) error {
method EnumDescriptor (line 300) | func (RepeatedEnum_Color) EnumDescriptor() ([]byte, []int) {
constant RepeatedEnum_RED (line 270) | RepeatedEnum_RED RepeatedEnum_Color = 1
type GoEnum (line 304) | type GoEnum struct
method Reset (line 311) | func (m *GoEnum) Reset() { *m = GoEnum{} }
method String (line 312) | func (m *GoEnum) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 313) | func (*GoEnum) ProtoMessage() {}
method Descriptor (line 314) | func (*GoEnum) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 318) | func (m *GoEnum) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 321) | func (m *GoEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, er...
method XXX_Merge (line 324) | func (m *GoEnum) XXX_Merge(src proto.Message) {
method XXX_Size (line 327) | func (m *GoEnum) XXX_Size() int {
method XXX_DiscardUnknown (line 330) | func (m *GoEnum) XXX_DiscardUnknown() {
method GetFoo (line 336) | func (m *GoEnum) GetFoo() FOO {
type GoTestField (line 343) | type GoTestField struct
method Reset (line 351) | func (m *GoTestField) Reset() { *m = GoTestField{} }
method String (line 352) | func (m *GoTestField) String() string { return proto.CompactTextString...
method ProtoMessage (line 353) | func (*GoTestField) ProtoMessage() {}
method Descriptor (line 354) | func (*GoTestField) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 358) | func (m *GoTestField) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 361) | func (m *GoTestField) XXX_Marshal(b []byte, deterministic bool) ([]byt...
method XXX_Merge (line 364) | func (m *GoTestField) XXX_Merge(src proto.Message) {
method XXX_Size (line 367) | func (m *GoTestField) XXX_Size() int {
method XXX_DiscardUnknown (line 370) | func (m *GoTestField) XXX_DiscardUnknown() {
method GetLabel (line 376) | func (m *GoTestField) GetLabel() string {
method GetType (line 383) | func (m *GoTestField) GetType() string {
type GoTest (line 390) | type GoTest struct
method Reset (line 485) | func (m *GoTest) Reset() { *m = GoTest{} }
method String (line 486) | func (m *GoTest) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 487) | func (*GoTest) ProtoMessage() {}
method Descriptor (line 488) | func (*GoTest) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 492) | func (m *GoTest) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 495) | func (m *GoTest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er...
method XXX_Merge (line 498) | func (m *GoTest) XXX_Merge(src proto.Message) {
method XXX_Size (line 501) | func (m *GoTest) XXX_Size() int {
method XXX_DiscardUnknown (line 504) | func (m *GoTest) XXX_DiscardUnknown() {
method GetKind (line 528) | func (m *GoTest) GetKind() GoTest_KIND {
method GetTable (line 535) | func (m *GoTest) GetTable() string {
method GetParam (line 542) | func (m *GoTest) GetParam() int32 {
method GetRequiredField (line 549) | func (m *GoTest) GetRequiredField() *GoTestField {
method GetRepeatedField (line 556) | func (m *GoTest) GetRepeatedField() []*GoTestField {
method GetOptionalField (line 563) | func (m *GoTest) GetOptionalField() *GoTestField {
method GetF_BoolRequired (line 570) | func (m *GoTest) GetF_BoolRequired() bool {
method GetF_Int32Required (line 577) | func (m *GoTest) GetF_Int32Required() int32 {
method GetF_Int64Required (line 584) | func (m *GoTest) GetF_Int64Required() int64 {
method GetF_Fixed32Required (line 591) | func (m *GoTest) GetF_Fixed32Required() uint32 {
method GetF_Fixed64Required (line 598) | func (m *GoTest) GetF_Fixed64Required() uint64 {
method GetF_Uint32Required (line 605) | func (m *GoTest) GetF_Uint32Required() uint32 {
method GetF_Uint64Required (line 612) | func (m *GoTest) GetF_Uint64Required() uint64 {
method GetF_FloatRequired (line 619) | func (m *GoTest) GetF_FloatRequired() float32 {
method GetF_DoubleRequired (line 626) | func (m *GoTest) GetF_DoubleRequired() float64 {
method GetF_StringRequired (line 633) | func (m *GoTest) GetF_StringRequired() string {
method GetF_BytesRequired (line 640) | func (m *GoTest) GetF_BytesRequired() []byte {
method GetF_Sint32Required (line 647) | func (m *GoTest) GetF_Sint32Required() int32 {
method GetF_Sint64Required (line 654) | func (m *GoTest) GetF_Sint64Required() int64 {
method GetF_Sfixed32Required (line 661) | func (m *GoTest) GetF_Sfixed32Required() int32 {
method GetF_Sfixed64Required (line 668) | func (m *GoTest) GetF_Sfixed64Required() int64 {
method GetF_BoolRepeated (line 675) | func (m *GoTest) GetF_BoolRepeated() []bool {
method GetF_Int32Repeated (line 682) | func (m *GoTest) GetF_Int32Repeated() []int32 {
method GetF_Int64Repeated (line 689) | func (m *GoTest) GetF_Int64Repeated() []int64 {
method GetF_Fixed32Repeated (line 696) | func (m *GoTest) GetF_Fixed32Repeated() []uint32 {
method GetF_Fixed64Repeated (line 703) | func (m *GoTest) GetF_Fixed64Repeated() []uint64 {
method GetF_Uint32Repeated (line 710) | func (m *GoTest) GetF_Uint32Repeated() []uint32 {
method GetF_Uint64Repeated (line 717) | func (m *GoTest) GetF_Uint64Repeated() []uint64 {
method GetF_FloatRepeated (line 724) | func (m *GoTest) GetF_FloatRepeated() []float32 {
method GetF_DoubleRepeated (line 731) | func (m *GoTest) GetF_DoubleRepeated() []float64 {
method GetF_StringRepeated (line 738) | func (m *GoTest) GetF_StringRepeated() []string {
method GetF_BytesRepeated (line 745) | func (m *GoTest) GetF_BytesRepeated() [][]byte {
method GetF_Sint32Repeated (line 752) | func (m *GoTest) GetF_Sint32Repeated() []int32 {
method GetF_Sint64Repeated (line 759) | func (m *GoTest) GetF_Sint64Repeated() []int64 {
method GetF_Sfixed32Repeated (line 766) | func (m *GoTest) GetF_Sfixed32Repeated() []int32 {
method GetF_Sfixed64Repeated (line 773) | func (m *GoTest) GetF_Sfixed64Repeated() []int64 {
method GetF_BoolOptional (line 780) | func (m *GoTest) GetF_BoolOptional() bool {
method GetF_Int32Optional (line 787) | func (m *GoTest) GetF_Int32Optional() int32 {
method GetF_Int64Optional (line 794) | func (m *GoTest) GetF_Int64Optional() int64 {
method GetF_Fixed32Optional (line 801) | func (m *GoTest) GetF_Fixed32Optional() uint32 {
method GetF_Fixed64Optional (line 808) | func (m *GoTest) GetF_Fixed64Optional() uint64 {
method GetF_Uint32Optional (line 815) | func (m *GoTest) GetF_Uint32Optional() uint32 {
method GetF_Uint64Optional (line 822) | func (m *GoTest) GetF_Uint64Optional() uint64 {
method GetF_FloatOptional (line 829) | func (m *GoTest) GetF_FloatOptional() float32 {
method GetF_DoubleOptional (line 836) | func (m *GoTest) GetF_DoubleOptional() float64 {
method GetF_StringOptional (line 843) | func (m *GoTest) GetF_StringOptional() string {
method GetF_BytesOptional (line 850) | func (m *GoTest) GetF_BytesOptional() []byte {
method GetF_Sint32Optional (line 857) | func (m *GoTest) GetF_Sint32Optional() int32 {
method GetF_Sint64Optional (line 864) | func (m *GoTest) GetF_Sint64Optional() int64 {
method GetF_Sfixed32Optional (line 871) | func (m *GoTest) GetF_Sfixed32Optional() int32 {
method GetF_Sfixed64Optional (line 878) | func (m *GoTest) GetF_Sfixed64Optional() int64 {
method GetF_BoolDefaulted (line 885) | func (m *GoTest) GetF_BoolDefaulted() bool {
method GetF_Int32Defaulted (line 892) | func (m *GoTest) GetF_Int32Defaulted() int32 {
method GetF_Int64Defaulted (line 899) | func (m *GoTest) GetF_Int64Defaulted() int64 {
method GetF_Fixed32Defaulted (line 906) | func (m *GoTest) GetF_Fixed32Defaulted() uint32 {
method GetF_Fixed64Defaulted (line 913) | func (m *GoTest) GetF_Fixed64Defaulted() uint64 {
method GetF_Uint32Defaulted (line 920) | func (m *GoTest) GetF_Uint32Defaulted() uint32 {
method GetF_Uint64Defaulted (line 927) | func (m *GoTest) GetF_Uint64Defaulted() uint64 {
method GetF_FloatDefaulted (line 934) | func (m *GoTest) GetF_FloatDefaulted() float32 {
method GetF_DoubleDefaulted (line 941) | func (m *GoTest) GetF_DoubleDefaulted() float64 {
method GetF_StringDefaulted (line 948) | func (m *GoTest) GetF_StringDefaulted() string {
method GetF_BytesDefaulted (line 955) | func (m *GoTest) GetF_BytesDefaulted() []byte {
method GetF_Sint32Defaulted (line 962) | func (m *GoTest) GetF_Sint32Defaulted() int32 {
method GetF_Sint64Defaulted (line 969) | func (m *GoTest) GetF_Sint64Defaulted() int64 {
method GetF_Sfixed32Defaulted (line 976) | func (m *GoTest) GetF_Sfixed32Defaulted() int32 {
method GetF_Sfixed64Defaulted (line 983) | func (m *GoTest) GetF_Sfixed64Defaulted() int64 {
method GetF_BoolRepeatedPacked (line 990) | func (m *GoTest) GetF_BoolRepeatedPacked() []bool {
method GetF_Int32RepeatedPacked (line 997) | func (m *GoTest) GetF_Int32RepeatedPacked() []int32 {
method GetF_Int64RepeatedPacked (line 1004) | func (m *GoTest) GetF_Int64RepeatedPacked() []int64 {
method GetF_Fixed32RepeatedPacked (line 1011) | func (m *GoTest) GetF_Fixed32RepeatedPacked() []uint32 {
method GetF_Fixed64RepeatedPacked (line 1018) | func (m *GoTest) GetF_Fixed64RepeatedPacked() []uint64 {
method GetF_Uint32RepeatedPacked (line 1025) | func (m *GoTest) GetF_Uint32RepeatedPacked() []uint32 {
method GetF_Uint64RepeatedPacked (line 1032) | func (m *GoTest) GetF_Uint64RepeatedPacked() []uint64 {
method GetF_FloatRepeatedPacked (line 1039) | func (m *GoTest) GetF_FloatRepeatedPacked() []float32 {
method GetF_DoubleRepeatedPacked (line 1046) | func (m *GoTest) GetF_DoubleRepeatedPacked() []float64 {
method GetF_Sint32RepeatedPacked (line 1053) | func (m *GoTest) GetF_Sint32RepeatedPacked() []int32 {
method GetF_Sint64RepeatedPacked (line 1060) | func (m *GoTest) GetF_Sint64RepeatedPacked() []int64 {
method GetF_Sfixed32RepeatedPacked (line 1067) | func (m *GoTest) GetF_Sfixed32RepeatedPacked() []int32 {
method GetF_Sfixed64RepeatedPacked (line 1074) | func (m *GoTest) GetF_Sfixed64RepeatedPacked() []int64 {
method GetRequiredgroup (line 1081) | func (m *GoTest) GetRequiredgroup() *GoTest_RequiredGroup {
method GetRepeatedgroup (line 1088) | func (m *GoTest) GetRepeatedgroup() []*GoTest_RepeatedGroup {
method GetOptionalgroup (line 1095) | func (m *GoTest) GetOptionalgroup() *GoTest_OptionalGroup {
constant Default_GoTest_F_BoolDefaulted (line 510) | Default_GoTest_F_BoolDefaulted bool = true
constant Default_GoTest_F_Int32Defaulted (line 511) | Default_GoTest_F_Int32Defaulted int32 = 32
constant Default_GoTest_F_Int64Defaulted (line 512) | Default_GoTest_F_Int64Defaulted int64 = 64
constant Default_GoTest_F_Fixed32Defaulted (line 513) | Default_GoTest_F_Fixed32Defaulted uint32 = 320
constant Default_GoTest_F_Fixed64Defaulted (line 514) | Default_GoTest_F_Fixed64Defaulted uint64 = 640
constant Default_GoTest_F_Uint32Defaulted (line 515) | Default_GoTest_F_Uint32Defaulted uint32 = 3200
constant Default_GoTest_F_Uint64Defaulted (line 516) | Default_GoTest_F_Uint64Defaulted uint64 = 6400
constant Default_GoTest_F_FloatDefaulted (line 517) | Default_GoTest_F_FloatDefaulted float32 = 314159
constant Default_GoTest_F_DoubleDefaulted (line 518) | Default_GoTest_F_DoubleDefaulted float64 = 271828
constant Default_GoTest_F_StringDefaulted (line 519) | Default_GoTest_F_StringDefaulted string = "hello, \"world!\"\n"
constant Default_GoTest_F_Sint32Defaulted (line 523) | Default_GoTest_F_Sint32Defaulted int32 = -32
constant Default_GoTest_F_Sint64Defaulted (line 524) | Default_GoTest_F_Sint64Defaulted int64 = -64
constant Default_GoTest_F_Sfixed32Defaulted (line 525) | Default_GoTest_F_Sfixed32Defaulted int32 = -32
constant Default_GoTest_F_Sfixed64Defaulted (line 526) | Default_GoTest_F_Sfixed64Defaulted int64 = -64
type GoTest_RequiredGroup (line 1103) | type GoTest_RequiredGroup struct
method Reset (line 1110) | func (m *GoTest_RequiredGroup) Reset() { *m = GoTest_RequiredG...
method String (line 1111) | func (m *GoTest_RequiredGroup) String() string { return proto.CompactT...
method ProtoMessage (line 1112) | func (*GoTest_RequiredGroup) ProtoMessage() {}
method Descriptor (line 1113) | func (*GoTest_RequiredGroup) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1117) | func (m *GoTest_RequiredGroup) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1120) | func (m *GoTest_RequiredGroup) XXX_Marshal(b []byte, deterministic boo...
method XXX_Merge (line 1123) | func (m *GoTest_RequiredGroup) XXX_Merge(src proto.Message) {
method XXX_Size (line 1126) | func (m *GoTest_RequiredGroup) XXX_Size() int {
method XXX_DiscardUnknown (line 1129) | func (m *GoTest_RequiredGroup) XXX_DiscardUnknown() {
method GetRequiredField (line 1135) | func (m *GoTest_RequiredGroup) GetRequiredField() string {
type GoTest_RepeatedGroup (line 1142) | type GoTest_RepeatedGroup struct
method Reset (line 1149) | func (m *GoTest_RepeatedGroup) Reset() { *m = GoTest_RepeatedG...
method String (line 1150) | func (m *GoTest_RepeatedGroup) String() string { return proto.CompactT...
method ProtoMessage (line 1151) | func (*GoTest_RepeatedGroup) ProtoMessage() {}
method Descriptor (line 1152) | func (*GoTest_RepeatedGroup) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1156) | func (m *GoTest_RepeatedGroup) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1159) | func (m *GoTest_RepeatedGroup) XXX_Marshal(b []byte, deterministic boo...
method XXX_Merge (line 1162) | func (m *GoTest_RepeatedGroup) XXX_Merge(src proto.Message) {
method XXX_Size (line 1165) | func (m *GoTest_RepeatedGroup) XXX_Size() int {
method XXX_DiscardUnknown (line 1168) | func (m *GoTest_RepeatedGroup) XXX_DiscardUnknown() {
method GetRequiredField (line 1174) | func (m *GoTest_RepeatedGroup) GetRequiredField() string {
type GoTest_OptionalGroup (line 1181) | type GoTest_OptionalGroup struct
method Reset (line 1188) | func (m *GoTest_OptionalGroup) Reset() { *m = GoTest_OptionalG...
method String (line 1189) | func (m *GoTest_OptionalGroup) String() string { return proto.CompactT...
method ProtoMessage (line 1190) | func (*GoTest_OptionalGroup) ProtoMessage() {}
method Descriptor (line 1191) | func (*GoTest_OptionalGroup) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1195) | func (m *GoTest_OptionalGroup) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1198) | func (m *GoTest_OptionalGroup) XXX_Marshal(b []byte, deterministic boo...
method XXX_Merge (line 1201) | func (m *GoTest_OptionalGroup) XXX_Merge(src proto.Message) {
method XXX_Size (line 1204) | func (m *GoTest_OptionalGroup) XXX_Size() int {
method XXX_DiscardUnknown (line 1207) | func (m *GoTest_OptionalGroup) XXX_DiscardUnknown() {
method GetRequiredField (line 1213) | func (m *GoTest_OptionalGroup) GetRequiredField() string {
type GoTestRequiredGroupField (line 1221) | type GoTestRequiredGroupField struct
method Reset (line 1228) | func (m *GoTestRequiredGroupField) Reset() { *m = GoTestRequir...
method String (line 1229) | func (m *GoTestRequiredGroupField) String() string { return proto.Comp...
method ProtoMessage (line 1230) | func (*GoTestRequiredGroupField) ProtoMessage() {}
method Descriptor (line 1231) | func (*GoTestRequiredGroupField) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1235) | func (m *GoTestRequiredGroupField) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1238) | func (m *GoTestRequiredGroupField) XXX_Marshal(b []byte, deterministic...
method XXX_Merge (line 1241) | func (m *GoTestRequiredGroupField) XXX_Merge(src proto.Message) {
method XXX_Size (line 1244) | func (m *GoTestRequiredGroupField) XXX_Size() int {
method XXX_DiscardUnknown (line 1247) | func (m *GoTestRequiredGroupField) XXX_DiscardUnknown() {
method GetGroup (line 1253) | func (m *GoTestRequiredGroupField) GetGroup() *GoTestRequiredGroupFiel...
type GoTestRequiredGroupField_Group (line 1260) | type GoTestRequiredGroupField_Group struct
method Reset (line 1267) | func (m *GoTestRequiredGroupField_Group) Reset() { *m = GoTest...
method String (line 1268) | func (m *GoTestRequiredGroupField_Group) String() string { return prot...
method ProtoMessage (line 1269) | func (*GoTestRequiredGroupField_Group) ProtoMessage() {}
method Descriptor (line 1270) | func (*GoTestRequiredGroupField_Group) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1274) | func (m *GoTestRequiredGroupField_Group) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1277) | func (m *GoTestRequiredGroupField_Group) XXX_Marshal(b []byte, determi...
method XXX_Merge (line 1280) | func (m *GoTestRequiredGroupField_Group) XXX_Merge(src proto.Message) {
method XXX_Size (line 1283) | func (m *GoTestRequiredGroupField_Group) XXX_Size() int {
method XXX_DiscardUnknown (line 1286) | func (m *GoTestRequiredGroupField_Group) XXX_DiscardUnknown() {
method GetField (line 1292) | func (m *GoTestRequiredGroupField_Group) GetField() int32 {
type GoSkipTest (line 1302) | type GoSkipTest struct
method Reset (line 1313) | func (m *GoSkipTest) Reset() { *m = GoSkipTest{} }
method String (line 1314) | func (m *GoSkipTest) String() string { return proto.CompactTextString(...
method ProtoMessage (line 1315) | func (*GoSkipTest) ProtoMessage() {}
method Descriptor (line 1316) | func (*GoSkipTest) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1320) | func (m *GoSkipTest) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1323) | func (m *GoSkipTest) XXX_Marshal(b []byte, deterministic bool) ([]byte...
method XXX_Merge (line 1326) | func (m *GoSkipTest) XXX_Merge(src proto.Message) {
method XXX_Size (line 1329) | func (m *GoSkipTest) XXX_Size() int {
method XXX_DiscardUnknown (line 1332) | func (m *GoSkipTest) XXX_DiscardUnknown() {
method GetSkipInt32 (line 1338) | func (m *GoSkipTest) GetSkipInt32() int32 {
method GetSkipFixed32 (line 1345) | func (m *GoSkipTest) GetSkipFixed32() uint32 {
method GetSkipFixed64 (line 1352) | func (m *GoSkipTest) GetSkipFixed64() uint64 {
method GetSkipString (line 1359) | func (m *GoSkipTest) GetSkipString() string {
method GetSkipgroup (line 1366) | func (m *GoSkipTest) GetSkipgroup() *GoSkipTest_SkipGroup {
type GoSkipTest_SkipGroup (line 1373) | type GoSkipTest_SkipGroup struct
method Reset (line 1381) | func (m *GoSkipTest_SkipGroup) Reset() { *m = GoSkipTest_SkipG...
method String (line 1382) | func (m *GoSkipTest_SkipGroup) String() string { return proto.CompactT...
method ProtoMessage (line 1383) | func (*GoSkipTest_SkipGroup) ProtoMessage() {}
method Descriptor (line 1384) | func (*GoSkipTest_SkipGroup) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1388) | func (m *GoSkipTest_SkipGroup) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1391) | func (m *GoSkipTest_SkipGroup) XXX_Marshal(b []byte, deterministic boo...
method XXX_Merge (line 1394) | func (m *GoSkipTest_SkipGroup) XXX_Merge(src proto.Message) {
method XXX_Size (line 1397) | func (m *GoSkipTest_SkipGroup) XXX_Size() int {
method XXX_DiscardUnknown (line 1400) | func (m *GoSkipTest_SkipGroup) XXX_DiscardUnknown() {
method GetGroupInt32 (line 1406) | func (m *GoSkipTest_SkipGroup) GetGroupInt32() int32 {
method GetGroupString (line 1413) | func (m *GoSkipTest_SkipGroup) GetGroupString() string {
type NonPackedTest (line 1422) | type NonPackedTest struct
method Reset (line 1429) | func (m *NonPackedTest) Reset() { *m = NonPackedTest{} }
method String (line 1430) | func (m *NonPackedTest) String() string { return proto.CompactTextStri...
method ProtoMessage (line 1431) | func (*NonPackedTest) ProtoMessage() {}
method Descriptor (line 1432) | func (*NonPackedTest) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1436) | func (m *NonPackedTest) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1439) | func (m *NonPackedTest) XXX_Marshal(b []byte, deterministic bool) ([]b...
method XXX_Merge (line 1442) | func (m *NonPackedTest) XXX_Merge(src proto.Message) {
method XXX_Size (line 1445) | func (m *NonPackedTest) XXX_Size() int {
method XXX_DiscardUnknown (line 1448) | func (m *NonPackedTest) XXX_DiscardUnknown() {
method GetA (line 1454) | func (m *NonPackedTest) GetA() []int32 {
type PackedTest (line 1461) | type PackedTest struct
method Reset (line 1468) | func (m *PackedTest) Reset() { *m = PackedTest{} }
method String (line 1469) | func (m *PackedTest) String() string { return proto.CompactTextString(...
method ProtoMessage (line 1470) | func (*PackedTest) ProtoMessage() {}
method Descriptor (line 1471) | func (*PackedTest) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1475) | func (m *PackedTest) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1478) | func (m *PackedTest) XXX_Marshal(b []byte, deterministic bool) ([]byte...
method XXX_Merge (line 1481) | func (m *PackedTest) XXX_Merge(src proto.Message) {
method XXX_Size (line 1484) | func (m *PackedTest) XXX_Size() int {
method XXX_DiscardUnknown (line 1487) | func (m *PackedTest) XXX_DiscardUnknown() {
method GetB (line 1493) | func (m *PackedTest) GetB() []int32 {
type MaxTag (line 1500) | type MaxTag struct
method Reset (line 1508) | func (m *MaxTag) Reset() { *m = MaxTag{} }
method String (line 1509) | func (m *MaxTag) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 1510) | func (*MaxTag) ProtoMessage() {}
method Descriptor (line 1511) | func (*MaxTag) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1515) | func (m *MaxTag) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1518) | func (m *MaxTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, er...
method XXX_Merge (line 1521) | func (m *MaxTag) XXX_Merge(src proto.Message) {
method XXX_Size (line 1524) | func (m *MaxTag) XXX_Size() int {
method XXX_DiscardUnknown (line 1527) | func (m *MaxTag) XXX_DiscardUnknown() {
method GetLastField (line 1533) | func (m *MaxTag) GetLastField() string {
type OldMessage (line 1540) | type OldMessage struct
method Reset (line 1548) | func (m *OldMessage) Reset() { *m = OldMessage{} }
method String (line 1549) | func (m *OldMessage) String() string { return proto.CompactTextString(...
method ProtoMessage (line 1550) | func (*OldMessage) ProtoMessage() {}
method Descriptor (line 1551) | func (*OldMessage) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1555) | func (m *OldMessage) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1558) | func (m *OldMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte...
method XXX_Merge (line 1561) | func (m *OldMessage) XXX_Merge(src proto.Message) {
method XXX_Size (line 1564) | func (m *OldMessage) XXX_Size() int {
method XXX_DiscardUnknown (line 1567) | func (m *OldMessage) XXX_DiscardUnknown() {
method GetNested (line 1573) | func (m *OldMessage) GetNested() *OldMessage_Nested {
method GetNum (line 1580) | func (m *OldMessage) GetNum() int32 {
type OldMessage_Nested (line 1587) | type OldMessage_Nested struct
method Reset (line 1594) | func (m *OldMessage_Nested) Reset() { *m = OldMessage_Nested{} }
method String (line 1595) | func (m *OldMessage_Nested) String() string { return proto.CompactText...
method ProtoMessage (line 1596) | func (*OldMessage_Nested) ProtoMessage() {}
method Descriptor (line 1597) | func (*OldMessage_Nested) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1601) | func (m *OldMessage_Nested) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1604) | func (m *OldMessage_Nested) XXX_Marshal(b []byte, deterministic bool) ...
method XXX_Merge (line 1607) | func (m *OldMessage_Nested) XXX_Merge(src proto.Message) {
method XXX_Size (line 1610) | func (m *OldMessage_Nested) XXX_Size() int {
method XXX_DiscardUnknown (line 1613) | func (m *OldMessage_Nested) XXX_DiscardUnknown() {
method GetName (line 1619) | func (m *OldMessage_Nested) GetName() string {
type NewMessage (line 1628) | type NewMessage struct
method Reset (line 1637) | func (m *NewMessage) Reset() { *m = NewMessage{} }
method String (line 1638) | func (m *NewMessage) String() string { return proto.CompactTextString(...
method ProtoMessage (line 1639) | func (*NewMessage) ProtoMessage() {}
method Descriptor (line 1640) | func (*NewMessage) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1644) | func (m *NewMessage) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1647) | func (m *NewMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte...
method XXX_Merge (line 1650) | func (m *NewMessage) XXX_Merge(src proto.Message) {
method XXX_Size (line 1653) | func (m *NewMessage) XXX_Size() int {
method XXX_DiscardUnknown (line 1656) | func (m *NewMessage) XXX_DiscardUnknown() {
method GetNested (line 1662) | func (m *NewMessage) GetNested() *NewMessage_Nested {
method GetNum (line 1669) | func (m *NewMessage) GetNum() int64 {
type NewMessage_Nested (line 1676) | type NewMessage_Nested struct
method Reset (line 1684) | func (m *NewMessage_Nested) Reset() { *m = NewMessage_Nested{} }
method String (line 1685) | func (m *NewMessage_Nested) String() string { return proto.CompactText...
method ProtoMessage (line 1686) | func (*NewMessage_Nested) ProtoMessage() {}
method Descriptor (line 1687) | func (*NewMessage_Nested) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1691) | func (m *NewMessage_Nested) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1694) | func (m *NewMessage_Nested) XXX_Marshal(b []byte, deterministic bool) ...
method XXX_Merge (line 1697) | func (m *NewMessage_Nested) XXX_Merge(src proto.Message) {
method XXX_Size (line 1700) | func (m *NewMessage_Nested) XXX_Size() int {
method XXX_DiscardUnknown (line 1703) | func (m *NewMessage_Nested) XXX_DiscardUnknown() {
method GetName (line 1709) | func (m *NewMessage_Nested) GetName() string {
method GetFoodGroup (line 1716) | func (m *NewMessage_Nested) GetFoodGroup() string {
type InnerMessage (line 1723) | type InnerMessage struct
method Reset (line 1732) | func (m *InnerMessage) Reset() { *m = InnerMessage{} }
method String (line 1733) | func (m *InnerMessage) String() string { return proto.CompactTextStrin...
method ProtoMessage (line 1734) | func (*InnerMessage) ProtoMessage() {}
method Descriptor (line 1735) | func (*InnerMessage) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1739) | func (m *InnerMessage) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1742) | func (m *InnerMessage) XXX_Marshal(b []byte, deterministic bool) ([]by...
method XXX_Merge (line 1745) | func (m *InnerMessage) XXX_Merge(src proto.Message) {
method XXX_Size (line 1748) | func (m *InnerMessage) XXX_Size() int {
method XXX_DiscardUnknown (line 1751) | func (m *InnerMessage) XXX_DiscardUnknown() {
method GetHost (line 1759) | func (m *InnerMessage) GetHost() string {
method GetPort (line 1766) | func (m *InnerMessage) GetPort() int32 {
method GetConnected (line 1773) | func (m *InnerMessage) GetConnected() bool {
constant Default_InnerMessage_Port (line 1757) | Default_InnerMessage_Port int32 = 4000
type OtherMessage (line 1780) | type OtherMessage struct
method Reset (line 1791) | func (m *OtherMessage) Reset() { *m = OtherMessage{} }
method String (line 1792) | func (m *OtherMessage) String() string { return proto.CompactTextStrin...
method ProtoMessage (line 1793) | func (*OtherMessage) ProtoMessage() {}
method Descriptor (line 1794) | func (*OtherMessage) Descriptor() ([]byte, []int) {
method ExtensionRangeArray (line 1802) | func (*OtherMessage) ExtensionRangeArray() []proto.ExtensionRange {
method XXX_Unmarshal (line 1806) | func (m *OtherMessage) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1809) | func (m *OtherMessage) XXX_Marshal(b []byte, deterministic bool) ([]by...
method XXX_Merge (line 1812) | func (m *OtherMessage) XXX_Merge(src proto.Message) {
method XXX_Size (line 1815) | func (m *OtherMessage) XXX_Size() int {
method XXX_DiscardUnknown (line 1818) | func (m *OtherMessage) XXX_DiscardUnknown() {
method GetKey (line 1824) | func (m *OtherMessage) GetKey() int64 {
method GetValue (line 1831) | func (m *OtherMessage) GetValue() []byte {
method GetWeight (line 1838) | func (m *OtherMessage) GetWeight() float32 {
method GetInner (line 1845) | func (m *OtherMessage) GetInner() *InnerMessage {
type RequiredInnerMessage (line 1852) | type RequiredInnerMessage struct
method Reset (line 1859) | func (m *RequiredInnerMessage) Reset() { *m = RequiredInnerMes...
method String (line 1860) | func (m *RequiredInnerMessage) String() string { return proto.CompactT...
method ProtoMessage (line 1861) | func (*RequiredInnerMessage) ProtoMessage() {}
method Descriptor (line 1862) | func (*RequiredInnerMessage) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 1866) | func (m *RequiredInnerMessage) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1869) | func (m *RequiredInnerMessage) XXX_Marshal(b []byte, deterministic boo...
method XXX_Merge (line 1872) | func (m *RequiredInnerMessage) XXX_Merge(src proto.Message) {
method XXX_Size (line 1875) | func (m *RequiredInnerMessage) XXX_Size() int {
method XXX_DiscardUnknown (line 1878) | func (m *RequiredInnerMessage) XXX_DiscardUnknown() {
method GetLeoFinallyWonAnOscar (line 1884) | func (m *RequiredInnerMessage) GetLeoFinallyWonAnOscar() *InnerMessage {
type MyMessage (line 1891) | type MyMessage struct
method Reset (line 1911) | func (m *MyMessage) Reset() { *m = MyMessage{} }
method String (line 1912) | func (m *MyMessage) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 1913) | func (*MyMessage) ProtoMessage() {}
method Descriptor (line 1914) | func (*MyMessage) Descriptor() ([]byte, []int) {
method ExtensionRangeArray (line 1922) | func (*MyMessage) ExtensionRangeArray() []proto.ExtensionRange {
method XXX_Unmarshal (line 1926) | func (m *MyMessage) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 1929) | func (m *MyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte,...
method XXX_Merge (line 1932) | func (m *MyMessage) XXX_Merge(src proto.Message) {
method XXX_Size (line 1935) | func (m *MyMessage) XXX_Size() int {
method XXX_DiscardUnknown (line 1938) | func (m *MyMessage) XXX_DiscardUnknown() {
method GetCount (line 1944) | func (m *MyMessage) GetCount() int32 {
method GetName (line 1951) | func (m *MyMessage) GetName() string {
method GetQuote (line 1958) | func (m *MyMessage) GetQuote() string {
method GetPet (line 1965) | func (m *MyMessage) GetPet() []string {
method GetInner (line 1972) | func (m *MyMessage) GetInner() *InnerMessage {
method GetOthers (line 1979) | func (m *MyMessage) GetOthers() []*OtherMessage {
method GetWeMustGoDeeper (line 1986) | func (m *MyMessage) GetWeMustGoDeeper() *RequiredInnerMessage {
method GetRepInner (line 1993) | func (m *MyMessage) GetRepInner() []*InnerMessage {
method GetBikeshed (line 2000) | func (m *MyMessage) GetBikeshed() MyMessage_Color {
method GetSomegroup (line 2007) | func (m *MyMessage) GetSomegroup() *MyMessage_SomeGroup {
method GetRepBytes (line 2014) | func (m *MyMessage) GetRepBytes() [][]byte {
method GetBigfloat (line 2021) | func (m *MyMessage) GetBigfloat() float64 {
type MyMessage_SomeGroup (line 2028) | type MyMessage_SomeGroup struct
method Reset (line 2035) | func (m *MyMessage_SomeGroup) Reset() { *m = MyMessage_SomeGro...
method String (line 2036) | func (m *MyMessage_SomeGroup) String() string { return proto.CompactTe...
method ProtoMessage (line 2037) | func (*MyMessage_SomeGroup) ProtoMessage() {}
method Descriptor (line 2038) | func (*MyMessage_SomeGroup) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2042) | func (m *MyMessage_SomeGroup) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2045) | func (m *MyMessage_SomeGroup) XXX_Marshal(b []byte, deterministic bool...
method XXX_Merge (line 2048) | func (m *MyMessage_SomeGroup) XXX_Merge(src proto.Message) {
method XXX_Size (line 2051) | func (m *MyMessage_SomeGroup) XXX_Size() int {
method XXX_DiscardUnknown (line 2054) | func (m *MyMessage_SomeGroup) XXX_DiscardUnknown() {
method GetGroupField (line 2060) | func (m *MyMessage_SomeGroup) GetGroupField() int32 {
type Ext (line 2067) | type Ext struct
method Reset (line 2075) | func (m *Ext) Reset() { *m = Ext{} }
method String (line 2076) | func (m *Ext) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 2077) | func (*Ext) ProtoMessage() {}
method Descriptor (line 2078) | func (*Ext) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2082) | func (m *Ext) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2085) | func (m *Ext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
method XXX_Merge (line 2088) | func (m *Ext) XXX_Merge(src proto.Message) {
method XXX_Size (line 2091) | func (m *Ext) XXX_Size() int {
method XXX_DiscardUnknown (line 2094) | func (m *Ext) XXX_DiscardUnknown() {
method GetData (line 2100) | func (m *Ext) GetData() string {
method GetMapField (line 2107) | func (m *Ext) GetMapField() map[int32]int32 {
type ComplexExtension (line 2141) | type ComplexExtension struct
method Reset (line 2150) | func (m *ComplexExtension) Reset() { *m = ComplexExtension{} }
method String (line 2151) | func (m *ComplexExtension) String() string { return proto.CompactTextS...
method ProtoMessage (line 2152) | func (*ComplexExtension) ProtoMessage() {}
method Descriptor (line 2153) | func (*ComplexExtension) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2157) | func (m *ComplexExtension) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2160) | func (m *ComplexExtension) XXX_Marshal(b []byte, deterministic bool) (...
method XXX_Merge (line 2163) | func (m *ComplexExtension) XXX_Merge(src proto.Message) {
method XXX_Size (line 2166) | func (m *ComplexExtension) XXX_Size() int {
method XXX_DiscardUnknown (line 2169) | func (m *ComplexExtension) XXX_DiscardUnknown() {
method GetFirst (line 2175) | func (m *ComplexExtension) GetFirst() int32 {
method GetSecond (line 2182) | func (m *ComplexExtension) GetSecond() int32 {
method GetThird (line 2189) | func (m *ComplexExtension) GetThird() []int32 {
type DefaultsMessage (line 2196) | type DefaultsMessage struct
method Reset (line 2203) | func (m *DefaultsMessage) Reset() { *m = DefaultsMessage{} }
method String (line 2204) | func (m *DefaultsMessage) String() string { return proto.CompactTextSt...
method ProtoMessage (line 2205) | func (*DefaultsMessage) ProtoMessage() {}
method Descriptor (line 2206) | func (*DefaultsMessage) Descriptor() ([]byte, []int) {
method ExtensionRangeArray (line 2214) | func (*DefaultsMessage) ExtensionRangeArray() []proto.ExtensionRange {
method XXX_Unmarshal (line 2218) | func (m *DefaultsMessage) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2221) | func (m *DefaultsMessage) XXX_Marshal(b []byte, deterministic bool) ([...
method XXX_Merge (line 2224) | func (m *DefaultsMessage) XXX_Merge(src proto.Message) {
method XXX_Size (line 2227) | func (m *DefaultsMessage) XXX_Size() int {
method XXX_DiscardUnknown (line 2230) | func (m *DefaultsMessage) XXX_DiscardUnknown() {
type Empty (line 2236) | type Empty struct
method Reset (line 2242) | func (m *Empty) Reset() { *m = Empty{} }
method String (line 2243) | func (m *Empty) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 2244) | func (*Empty) ProtoMessage() {}
method Descriptor (line 2245) | func (*Empty) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2249) | func (m *Empty) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2252) | func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, err...
method XXX_Merge (line 2255) | func (m *Empty) XXX_Merge(src proto.Message) {
method XXX_Size (line 2258) | func (m *Empty) XXX_Size() int {
method XXX_DiscardUnknown (line 2261) | func (m *Empty) XXX_DiscardUnknown() {
type MessageList (line 2267) | type MessageList struct
method Reset (line 2274) | func (m *MessageList) Reset() { *m = MessageList{} }
method String (line 2275) | func (m *MessageList) String() string { return proto.CompactTextString...
method ProtoMessage (line 2276) | func (*MessageList) ProtoMessage() {}
method Descriptor (line 2277) | func (*MessageList) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2281) | func (m *MessageList) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2284) | func (m *MessageList) XXX_Marshal(b []byte, deterministic bool) ([]byt...
method XXX_Merge (line 2287) | func (m *MessageList) XXX_Merge(src proto.Message) {
method XXX_Size (line 2290) | func (m *MessageList) XXX_Size() int {
method XXX_DiscardUnknown (line 2293) | func (m *MessageList) XXX_DiscardUnknown() {
method GetMessage (line 2299) | func (m *MessageList) GetMessage() []*MessageList_Message {
type MessageList_Message (line 2306) | type MessageList_Message struct
method Reset (line 2314) | func (m *MessageList_Message) Reset() { *m = MessageList_Messa...
method String (line 2315) | func (m *MessageList_Message) String() string { return proto.CompactTe...
method ProtoMessage (line 2316) | func (*MessageList_Message) ProtoMessage() {}
method Descriptor (line 2317) | func (*MessageList_Message) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2321) | func (m *MessageList_Message) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2324) | func (m *MessageList_Message) XXX_Marshal(b []byte, deterministic bool...
method XXX_Merge (line 2327) | func (m *MessageList_Message) XXX_Merge(src proto.Message) {
method XXX_Size (line 2330) | func (m *MessageList_Message) XXX_Size() int {
method XXX_DiscardUnknown (line 2333) | func (m *MessageList_Message) XXX_DiscardUnknown() {
method GetName (line 2339) | func (m *MessageList_Message) GetName() string {
method GetCount (line 2346) | func (m *MessageList_Message) GetCount() int32 {
type Strings (line 2353) | type Strings struct
method Reset (line 2361) | func (m *Strings) Reset() { *m = Strings{} }
method String (line 2362) | func (m *Strings) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 2363) | func (*Strings) ProtoMessage() {}
method Descriptor (line 2364) | func (*Strings) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2368) | func (m *Strings) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2371) | func (m *Strings) XXX_Marshal(b []byte, deterministic bool) ([]byte, e...
method XXX_Merge (line 2374) | func (m *Strings) XXX_Merge(src proto.Message) {
method XXX_Size (line 2377) | func (m *Strings) XXX_Size() int {
method XXX_DiscardUnknown (line 2380) | func (m *Strings) XXX_DiscardUnknown() {
method GetStringField (line 2386) | func (m *Strings) GetStringField() string {
method GetBytesField (line 2393) | func (m *Strings) GetBytesField() []byte {
type Defaults (line 2400) | type Defaults struct
method Reset (line 2430) | func (m *Defaults) Reset() { *m = Defaults{} }
method String (line 2431) | func (m *Defaults) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 2432) | func (*Defaults) ProtoMessage() {}
method Descriptor (line 2433) | func (*Defaults) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2437) | func (m *Defaults) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2440) | func (m *Defaults) XXX_Marshal(b []byte, deterministic bool) ([]byte, ...
method XXX_Merge (line 2443) | func (m *Defaults) XXX_Merge(src proto.Message) {
method XXX_Size (line 2446) | func (m *Defaults) XXX_Size() int {
method XXX_DiscardUnknown (line 2449) | func (m *Defaults) XXX_DiscardUnknown() {
method GetF_Bool (line 2476) | func (m *Defaults) GetF_Bool() bool {
method GetF_Int32 (line 2483) | func (m *Defaults) GetF_Int32() int32 {
method GetF_Int64 (line 2490) | func (m *Defaults) GetF_Int64() int64 {
method GetF_Fixed32 (line 2497) | func (m *Defaults) GetF_Fixed32() uint32 {
method GetF_Fixed64 (line 2504) | func (m *Defaults) GetF_Fixed64() uint64 {
method GetF_Uint32 (line 2511) | func (m *Defaults) GetF_Uint32() uint32 {
method GetF_Uint64 (line 2518) | func (m *Defaults) GetF_Uint64() uint64 {
method GetF_Float (line 2525) | func (m *Defaults) GetF_Float() float32 {
method GetF_Double (line 2532) | func (m *Defaults) GetF_Double() float64 {
method GetF_String (line 2539) | func (m *Defaults) GetF_String() string {
method GetF_Bytes (line 2546) | func (m *Defaults) GetF_Bytes() []byte {
method GetF_Sint32 (line 2553) | func (m *Defaults) GetF_Sint32() int32 {
method GetF_Sint64 (line 2560) | func (m *Defaults) GetF_Sint64() int64 {
method GetF_Enum (line 2567) | func (m *Defaults) GetF_Enum() Defaults_Color {
method GetF_Pinf (line 2574) | func (m *Defaults) GetF_Pinf() float32 {
method GetF_Ninf (line 2581) | func (m *Defaults) GetF_Ninf() float32 {
method GetF_Nan (line 2588) | func (m *Defaults) GetF_Nan() float32 {
method GetSub (line 2595) | func (m *Defaults) GetSub() *SubDefaults {
method GetStrZero (line 2602) | func (m *Defaults) GetStrZero() string {
constant Default_Defaults_F_Bool (line 2455) | Default_Defaults_F_Bool bool = true
constant Default_Defaults_F_Int32 (line 2456) | Default_Defaults_F_Int32 int32 = 32
constant Default_Defaults_F_Int64 (line 2457) | Default_Defaults_F_Int64 int64 = 64
constant Default_Defaults_F_Fixed32 (line 2458) | Default_Defaults_F_Fixed32 uint32 = 320
constant Default_Defaults_F_Fixed64 (line 2459) | Default_Defaults_F_Fixed64 uint64 = 640
constant Default_Defaults_F_Uint32 (line 2460) | Default_Defaults_F_Uint32 uint32 = 3200
constant Default_Defaults_F_Uint64 (line 2461) | Default_Defaults_F_Uint64 uint64 = 6400
constant Default_Defaults_F_Float (line 2462) | Default_Defaults_F_Float float32 = 314159
constant Default_Defaults_F_Double (line 2463) | Default_Defaults_F_Double float64 = 271828
constant Default_Defaults_F_String (line 2464) | Default_Defaults_F_String string = "hello, \"world!\"\n"
constant Default_Defaults_F_Sint32 (line 2468) | Default_Defaults_F_Sint32 int32 = -32
constant Default_Defaults_F_Sint64 (line 2469) | Default_Defaults_F_Sint64 int64 = -64
constant Default_Defaults_F_Enum (line 2470) | Default_Defaults_F_Enum Defaults_Color = Defaults_GREEN
type SubDefaults (line 2609) | type SubDefaults struct
method Reset (line 2616) | func (m *SubDefaults) Reset() { *m = SubDefaults{} }
method String (line 2617) | func (m *SubDefaults) String() string { return proto.CompactTextString...
method ProtoMessage (line 2618) | func (*SubDefaults) ProtoMessage() {}
method Descriptor (line 2619) | func (*SubDefaults) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2623) | func (m *SubDefaults) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2626) | func (m *SubDefaults) XXX_Marshal(b []byte, deterministic bool) ([]byt...
method XXX_Merge (line 2629) | func (m *SubDefaults) XXX_Merge(src proto.Message) {
method XXX_Size (line 2632) | func (m *SubDefaults) XXX_Size() int {
method XXX_DiscardUnknown (line 2635) | func (m *SubDefaults) XXX_DiscardUnknown() {
method GetN (line 2643) | func (m *SubDefaults) GetN() int64 {
constant Default_SubDefaults_N (line 2641) | Default_SubDefaults_N int64 = 7
type RepeatedEnum (line 2650) | type RepeatedEnum struct
method Reset (line 2657) | func (m *RepeatedEnum) Reset() { *m = RepeatedEnum{} }
method String (line 2658) | func (m *RepeatedEnum) String() string { return proto.CompactTextStrin...
method ProtoMessage (line 2659) | func (*RepeatedEnum) ProtoMessage() {}
method Descriptor (line 2660) | func (*RepeatedEnum) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2664) | func (m *RepeatedEnum) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2667) | func (m *RepeatedEnum) XXX_Marshal(b []byte, deterministic bool) ([]by...
method XXX_Merge (line 2670) | func (m *RepeatedEnum) XXX_Merge(src proto.Message) {
method XXX_Size (line 2673) | func (m *RepeatedEnum) XXX_Size() int {
method XXX_DiscardUnknown (line 2676) | func (m *RepeatedEnum) XXX_DiscardUnknown() {
method GetColor (line 2682) | func (m *RepeatedEnum) GetColor() []RepeatedEnum_Color {
type MoreRepeated (line 2689) | type MoreRepeated struct
method Reset (line 2702) | func (m *MoreRepeated) Reset() { *m = MoreRepeated{} }
method String (line 2703) | func (m *MoreRepeated) String() string { return proto.CompactTextStrin...
method ProtoMessage (line 2704) | func (*MoreRepeated) ProtoMessage() {}
method Descriptor (line 2705) | func (*MoreRepeated) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2709) | func (m *MoreRepeated) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2712) | func (m *MoreRepeated) XXX_Marshal(b []byte, deterministic bool) ([]by...
method XXX_Merge (line 2715) | func (m *MoreRepeated) XXX_Merge(src proto.Message) {
method XXX_Size (line 2718) | func (m *MoreRepeated) XXX_Size() int {
method XXX_DiscardUnknown (line 2721) | func (m *MoreRepeated) XXX_DiscardUnknown() {
method GetBools (line 2727) | func (m *MoreRepeated) GetBools() []bool {
method GetBoolsPacked (line 2734) | func (m *MoreRepeated) GetBoolsPacked() []bool {
method GetInts (line 2741) | func (m *MoreRepeated) GetInts() []int32 {
method GetIntsPacked (line 2748) | func (m *MoreRepeated) GetIntsPacked() []int32 {
method GetInt64SPacked (line 2755) | func (m *MoreRepeated) GetInt64SPacked() []int64 {
method GetStrings (line 2762) | func (m *MoreRepeated) GetStrings() []string {
method GetFixeds (line 2769) | func (m *MoreRepeated) GetFixeds() []uint32 {
type GroupOld (line 2776) | type GroupOld struct
method Reset (line 2783) | func (m *GroupOld) Reset() { *m = GroupOld{} }
method String (line 2784) | func (m *GroupOld) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 2785) | func (*GroupOld) ProtoMessage() {}
method Descriptor (line 2786) | func (*GroupOld) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2790) | func (m *GroupOld) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2793) | func (m *GroupOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, ...
method XXX_Merge (line 2796) | func (m *GroupOld) XXX_Merge(src proto.Message) {
method XXX_Size (line 2799) | func (m *GroupOld) XXX_Size() int {
method XXX_DiscardUnknown (line 2802) | func (m *GroupOld) XXX_DiscardUnknown() {
method GetG (line 2808) | func (m *GroupOld) GetG() *GroupOld_G {
type GroupOld_G (line 2815) | type GroupOld_G struct
method Reset (line 2822) | func (m *GroupOld_G) Reset() { *m = GroupOld_G{} }
method String (line 2823) | func (m *GroupOld_G) String() string { return proto.CompactTextString(...
method ProtoMessage (line 2824) | func (*GroupOld_G) ProtoMessage() {}
method Descriptor (line 2825) | func (*GroupOld_G) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2829) | func (m *GroupOld_G) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2832) | func (m *GroupOld_G) XXX_Marshal(b []byte, deterministic bool) ([]byte...
method XXX_Merge (line 2835) | func (m *GroupOld_G) XXX_Merge(src proto.Message) {
method XXX_Size (line 2838) | func (m *GroupOld_G) XXX_Size() int {
method XXX_DiscardUnknown (line 2841) | func (m *GroupOld_G) XXX_DiscardUnknown() {
method GetX (line 2847) | func (m *GroupOld_G) GetX() int32 {
type GroupNew (line 2854) | type GroupNew struct
method Reset (line 2861) | func (m *GroupNew) Reset() { *m = GroupNew{} }
method String (line 2862) | func (m *GroupNew) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 2863) | func (*GroupNew) ProtoMessage() {}
method Descriptor (line 2864) | func (*GroupNew) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2868) | func (m *GroupNew) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2871) | func (m *GroupNew) XXX_Marshal(b []byte, deterministic bool) ([]byte, ...
method XXX_Merge (line 2874) | func (m *GroupNew) XXX_Merge(src proto.Message) {
method XXX_Size (line 2877) | func (m *GroupNew) XXX_Size() int {
method XXX_DiscardUnknown (line 2880) | func (m *GroupNew) XXX_DiscardUnknown() {
method GetG (line 2886) | func (m *GroupNew) GetG() *GroupNew_G {
type GroupNew_G (line 2893) | type GroupNew_G struct
method Reset (line 2901) | func (m *GroupNew_G) Reset() { *m = GroupNew_G{} }
method String (line 2902) | func (m *GroupNew_G) String() string { return proto.CompactTextString(...
method ProtoMessage (line 2903) | func (*GroupNew_G) ProtoMessage() {}
method Descriptor (line 2904) | func (*GroupNew_G) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2908) | func (m *GroupNew_G) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2911) | func (m *GroupNew_G) XXX_Marshal(b []byte, deterministic bool) ([]byte...
method XXX_Merge (line 2914) | func (m *GroupNew_G) XXX_Merge(src proto.Message) {
method XXX_Size (line 2917) | func (m *GroupNew_G) XXX_Size() int {
method XXX_DiscardUnknown (line 2920) | func (m *GroupNew_G) XXX_DiscardUnknown() {
method GetX (line 2926) | func (m *GroupNew_G) GetX() int32 {
method GetY (line 2933) | func (m *GroupNew_G) GetY() int32 {
type FloatingPoint (line 2940) | type FloatingPoint struct
method Reset (line 2948) | func (m *FloatingPoint) Reset() { *m = FloatingPoint{} }
method String (line 2949) | func (m *FloatingPoint) String() string { return proto.CompactTextStri...
method ProtoMessage (line 2950) | func (*FloatingPoint) ProtoMessage() {}
method Descriptor (line 2951) | func (*FloatingPoint) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 2955) | func (m *FloatingPoint) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 2958) | func (m *FloatingPoint) XXX_Marshal(b []byte, deterministic bool) ([]b...
method XXX_Merge (line 2961) | func (m *FloatingPoint) XXX_Merge(src proto.Message) {
method XXX_Size (line 2964) | func (m *FloatingPoint) XXX_Size() int {
method XXX_DiscardUnknown (line 2967) | func (m *FloatingPoint) XXX_DiscardUnknown() {
method GetF (line 2973) | func (m *FloatingPoint) GetF() float64 {
method GetExact (line 2980) | func (m *FloatingPoint) GetExact() bool {
type MessageWithMap (line 2987) | type MessageWithMap struct
method Reset (line 2997) | func (m *MessageWithMap) Reset() { *m = MessageWithMap{} }
method String (line 2998) | func (m *MessageWithMap) String() string { return proto.CompactTextStr...
method ProtoMessage (line 2999) | func (*MessageWithMap) ProtoMessage() {}
method Descriptor (line 3000) | func (*MessageWithMap) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 3004) | func (m *MessageWithMap) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 3007) | func (m *MessageWithMap) XXX_Marshal(b []byte, deterministic bool) ([]...
method XXX_Merge (line 3010) | func (m *MessageWithMap) XXX_Merge(src proto.Message) {
method XXX_Size (line 3013) | func (m *MessageWithMap) XXX_Size() int {
method XXX_DiscardUnknown (line 3016) | func (m *MessageWithMap) XXX_DiscardUnknown() {
method GetNameMapping (line 3022) | func (m *MessageWithMap) GetNameMapping() map[int32]string {
method GetMsgMapping (line 3029) | func (m *MessageWithMap) GetMsgMapping() map[int64]*FloatingPoint {
method GetByteMapping (line 3036) | func (m *MessageWithMap) GetByteMapping() map[bool][]byte {
method GetStrToStr (line 3043) | func (m *MessageWithMap) GetStrToStr() map[string]string {
type Oneof (line 3050) | type Oneof struct
method Reset (line 3078) | func (m *Oneof) Reset() { *m = Oneof{} }
method String (line 3079) | func (m *Oneof) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 3080) | func (*Oneof) ProtoMessage() {}
method Descriptor (line 3081) | func (*Oneof) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 3085) | func (m *Oneof) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 3088) | func (m *Oneof) XXX_Marshal(b []byte, deterministic bool) ([]byte, err...
method XXX_Merge (line 3091) | func (m *Oneof) XXX_Merge(src proto.Message) {
method XXX_Size (line 3094) | func (m *Oneof) XXX_Size() int {
method XXX_DiscardUnknown (line 3097) | func (m *Oneof) XXX_DiscardUnknown() {
method GetUnion (line 3209) | func (m *Oneof) GetUnion() isOneof_Union {
method GetF_Bool (line 3216) | func (m *Oneof) GetF_Bool() bool {
method GetF_Int32 (line 3223) | func (m *Oneof) GetF_Int32() int32 {
method GetF_Int64 (line 3230) | func (m *Oneof) GetF_Int64() int64 {
method GetF_Fixed32 (line 3237) | func (m *Oneof) GetF_Fixed32() uint32 {
method GetF_Fixed64 (line 3244) | func (m *Oneof) GetF_Fixed64() uint64 {
method GetF_Uint32 (line 3251) | func (m *Oneof) GetF_Uint32() uint32 {
method GetF_Uint64 (line 3258) | func (m *Oneof) GetF_Uint64() uint64 {
method GetF_Float (line 3265) | func (m *Oneof) GetF_Float() float32 {
method GetF_Double (line 3272) | func (m *Oneof) GetF_Double() float64 {
method GetF_String (line 3279) | func (m *Oneof) GetF_String() string {
method GetF_Bytes (line 3286) | func (m *Oneof) GetF_Bytes() []byte {
method GetF_Sint32 (line 3293) | func (m *Oneof) GetF_Sint32() int32 {
method GetF_Sint64 (line 3300) | func (m *Oneof) GetF_Sint64() int64 {
method GetF_Enum (line 3307) | func (m *Oneof) GetF_Enum() MyMessage_Color {
method GetF_Message (line 3314) | func (m *Oneof) GetF_Message() *GoTestField {
method GetFGroup (line 3321) | func (m *Oneof) GetFGroup() *Oneof_F_Group {
method GetF_Largest_Tag (line 3328) | func (m *Oneof) GetF_Largest_Tag() int32 {
method GetTormato (line 3345) | func (m *Oneof) GetTormato() isOneof_Tormato {
method GetValue (line 3352) | func (m *Oneof) GetValue() int32 {
method XXX_OneofWrappers (line 3360) | func (*Oneof) XXX_OneofWrappers() []interface{} {
type isOneof_Union (line 3103) | type isOneof_Union interface
type Oneof_F_Bool (line 3107) | type Oneof_F_Bool struct
method isOneof_Union (line 3175) | func (*Oneof_F_Bool) isOneof_Union() {}
type Oneof_F_Int32 (line 3111) | type Oneof_F_Int32 struct
method isOneof_Union (line 3177) | func (*Oneof_F_Int32) isOneof_Union() {}
type Oneof_F_Int64 (line 3115) | type Oneof_F_Int64 struct
method isOneof_Union (line 3179) | func (*Oneof_F_Int64) isOneof_Union() {}
type Oneof_F_Fixed32 (line 3119) | type Oneof_F_Fixed32 struct
method isOneof_Union (line 3181) | func (*Oneof_F_Fixed32) isOneof_Union() {}
type Oneof_F_Fixed64 (line 3123) | type Oneof_F_Fixed64 struct
method isOneof_Union (line 3183) | func (*Oneof_F_Fixed64) isOneof_Union() {}
type Oneof_F_Uint32 (line 3127) | type Oneof_F_Uint32 struct
method isOneof_Union (line 3185) | func (*Oneof_F_Uint32) isOneof_Union() {}
type Oneof_F_Uint64 (line 3131) | type Oneof_F_Uint64 struct
method isOneof_Union (line 3187) | func (*Oneof_F_Uint64) isOneof_Union() {}
type Oneof_F_Float (line 3135) | type Oneof_F_Float struct
method isOneof_Union (line 3189) | func (*Oneof_F_Float) isOneof_Union() {}
type Oneof_F_Double (line 3139) | type Oneof_F_Double struct
method isOneof_Union (line 3191) | func (*Oneof_F_Double) isOneof_Union() {}
type Oneof_F_String (line 3143) | type Oneof_F_String struct
method isOneof_Union (line 3193) | func (*Oneof_F_String) isOneof_Union() {}
type Oneof_F_Bytes (line 3147) | type Oneof_F_Bytes struct
method isOneof_Union (line 3195) | func (*Oneof_F_Bytes) isOneof_Union() {}
type Oneof_F_Sint32 (line 3151) | type Oneof_F_Sint32 struct
method isOneof_Union (line 3197) | func (*Oneof_F_Sint32) isOneof_Union() {}
type Oneof_F_Sint64 (line 3155) | type Oneof_F_Sint64 struct
method isOneof_Union (line 3199) | func (*Oneof_F_Sint64) isOneof_Union() {}
type Oneof_F_Enum (line 3159) | type Oneof_F_Enum struct
method isOneof_Union (line 3201) | func (*Oneof_F_Enum) isOneof_Union() {}
type Oneof_F_Message (line 3163) | type Oneof_F_Message struct
method isOneof_Union (line 3203) | func (*Oneof_F_Message) isOneof_Union() {}
type Oneof_FGroup (line 3167) | type Oneof_FGroup struct
method isOneof_Union (line 3205) | func (*Oneof_FGroup) isOneof_Union() {}
type Oneof_F_Largest_Tag (line 3171) | type Oneof_F_Largest_Tag struct
method isOneof_Union (line 3207) | func (*Oneof_F_Largest_Tag) isOneof_Union() {}
type isOneof_Tormato (line 3335) | type isOneof_Tormato interface
type Oneof_Value (line 3339) | type Oneof_Value struct
method isOneof_Tormato (line 3343) | func (*Oneof_Value) isOneof_Tormato() {}
type Oneof_F_Group (line 3383) | type Oneof_F_Group struct
method Reset (line 3390) | func (m *Oneof_F_Group) Reset() { *m = Oneof_F_Group{} }
method String (line 3391) | func (m *Oneof_F_Group) String() string { return proto.CompactTextStri...
method ProtoMessage (line 3392) | func (*Oneof_F_Group) ProtoMessage() {}
method Descriptor (line 3393) | func (*Oneof_F_Group) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 3397) | func (m *Oneof_F_Group) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 3400) | func (m *Oneof_F_Group) XXX_Marshal(b []byte, deterministic bool) ([]b...
method XXX_Merge (line 3403) | func (m *Oneof_F_Group) XXX_Merge(src proto.Message) {
method XXX_Size (line 3406) | func (m *Oneof_F_Group) XXX_Size() int {
method XXX_DiscardUnknown (line 3409) | func (m *Oneof_F_Group) XXX_DiscardUnknown() {
method GetX (line 3415) | func (m *Oneof_F_Group) GetX() int32 {
type Communique (line 3422) | type Communique struct
method Reset (line 3439) | func (m *Communique) Reset() { *m = Communique{} }
method String (line 3440) | func (m *Communique) String() string { return proto.CompactTextString(...
method ProtoMessage (line 3441) | func (*Communique) ProtoMessage() {}
method Descriptor (line 3442) | func (*Communique) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 3446) | func (m *Communique) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 3449) | func (m *Communique) XXX_Marshal(b []byte, deterministic bool) ([]byte...
method XXX_Merge (line 3452) | func (m *Communique) XXX_Merge(src proto.Message) {
method XXX_Size (line 3455) | func (m *Communique) XXX_Size() int {
method XXX_DiscardUnknown (line 3458) | func (m *Communique) XXX_DiscardUnknown() {
method GetMakeMeCry (line 3464) | func (m *Communique) GetMakeMeCry() bool {
method GetUnion (line 3511) | func (m *Communique) GetUnion() isCommunique_Union {
method GetNumber (line 3518) | func (m *Communique) GetNumber() int32 {
method GetName (line 3525) | func (m *Communique) GetName() string {
method GetData (line 3532) | func (m *Communique) GetData() []byte {
method GetTempC (line 3539) | func (m *Communique) GetTempC() float64 {
method GetCol (line 3546) | func (m *Communique) GetCol() MyMessage_Color {
method GetMsg (line 3553) | func (m *Communique) GetMsg() *Strings {
method XXX_OneofWrappers (line 3561) | func (*Communique) XXX_OneofWrappers() []interface{} {
type isCommunique_Union (line 3471) | type isCommunique_Union interface
type Communique_Number (line 3475) | type Communique_Number struct
method isCommunique_Union (line 3499) | func (*Communique_Number) isCommunique_Union() {}
type Communique_Name (line 3479) | type Communique_Name struct
method isCommunique_Union (line 3501) | func (*Communique_Name) isCommunique_Union() {}
type Communique_Data (line 3483) | type Communique_Data struct
method isCommunique_Union (line 3503) | func (*Communique_Data) isCommunique_Union() {}
type Communique_TempC (line 3487) | type Communique_TempC struct
method isCommunique_Union (line 3505) | func (*Communique_TempC) isCommunique_Union() {}
type Communique_Col (line 3491) | type Communique_Col struct
method isCommunique_Union (line 3507) | func (*Communique_Col) isCommunique_Union() {}
type Communique_Msg (line 3495) | type Communique_Msg struct
method isCommunique_Union (line 3509) | func (*Communique_Msg) isCommunique_Union() {}
type TestUTF8 (line 3572) | type TestUTF8 struct
method Reset (line 3585) | func (m *TestUTF8) Reset() { *m = TestUTF8{} }
method String (line 3586) | func (m *TestUTF8) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 3587) | func (*TestUTF8) ProtoMessage() {}
method Descriptor (line 3588) | func (*TestUTF8) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 3592) | func (m *TestUTF8) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 3595) | func (m *TestUTF8) XXX_Marshal(b []byte, deterministic bool) ([]byte, ...
method XXX_Merge (line 3598) | func (m *TestUTF8) XXX_Merge(src proto.Message) {
method XXX_Size (line 3601) | func (m *TestUTF8) XXX_Size() int {
method XXX_DiscardUnknown (line 3604) | func (m *TestUTF8) XXX_DiscardUnknown() {
method GetScalar (line 3610) | func (m *TestUTF8) GetScalar() string {
method GetVector (line 3617) | func (m *TestUTF8) GetVector() []string {
method GetOneof (line 3634) | func (m *TestUTF8) GetOneof() isTestUTF8_Oneof {
method GetField (line 3641) | func (m *TestUTF8) GetField() string {
method GetMapKey (line 3648) | func (m *TestUTF8) GetMapKey() map[string]int64 {
method GetMapValue (line 3655) | func (m *TestUTF8) GetMapValue() map[int64]string {
method XXX_OneofWrappers (line 3663) | func (*TestUTF8) XXX_OneofWrappers() []interface{} {
type isTestUTF8_Oneof (line 3624) | type isTestUTF8_Oneof interface
type TestUTF8_Field (line 3628) | type TestUTF8_Field struct
method isTestUTF8_Oneof (line 3632) | func (*TestUTF8_Field) isTestUTF8_Oneof() {}
function init (line 3984) | func init() {
function init (line 4081) | func init() { proto.RegisterFile("proto2_proto/test.proto", fileDescript...
FILE: internal/testprotos/proto3_proto/test.pb.go
constant _ (line 23) | _ = proto.ProtoPackageIsVersion3
type Message_Humour (line 25) | type Message_Humour
method String (line 48) | func (x Message_Humour) String() string {
method EnumDescriptor (line 52) | func (Message_Humour) EnumDescriptor() ([]byte, []int) {
constant Message_UNKNOWN (line 28) | Message_UNKNOWN Message_Humour = 0
constant Message_PUNS (line 29) | Message_PUNS Message_Humour = 1
constant Message_SLAPSTICK (line 30) | Message_SLAPSTICK Message_Humour = 2
constant Message_BILL_BAILEY (line 31) | Message_BILL_BAILEY Message_Humour = 3
type Message (line 56) | type Message struct
method Reset (line 81) | func (m *Message) Reset() { *m = Message{} }
method String (line 82) | func (m *Message) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 83) | func (*Message) ProtoMessage() {}
method Descriptor (line 84) | func (*Message) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 88) | func (m *Message) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 91) | func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, e...
method XXX_Merge (line 94) | func (m *Message) XXX_Merge(src proto.Message) {
method XXX_Size (line 97) | func (m *Message) XXX_Size() int {
method XXX_DiscardUnknown (line 100) | func (m *Message) XXX_DiscardUnknown() {
method GetName (line 106) | func (m *Message) GetName() string {
method GetHilarity (line 113) | func (m *Message) GetHilarity() Message_Humour {
method GetHeightInCm (line 120) | func (m *Message) GetHeightInCm() uint32 {
method GetData (line 127) | func (m *Message) GetData() []byte {
method GetResultCount (line 134) | func (m *Message) GetResultCount() int64 {
method GetTrueScotsman (line 141) | func (m *Message) GetTrueScotsman() bool {
method GetScore (line 148) | func (m *Message) GetScore() float32 {
method GetKey (line 155) | func (m *Message) GetKey() []uint64 {
method GetShortKey (line 162) | func (m *Message) GetShortKey() []int32 {
method GetNested (line 169) | func (m *Message) GetNested() *Nested {
method GetRFunny (line 176) | func (m *Message) GetRFunny() []Message_Humour {
method GetTerrain (line 183) | func (m *Message) GetTerrain() map[string]*Nested {
method GetProto2Field (line 190) | func (m *Message) GetProto2Field() *proto2_proto.SubDefaults {
method GetProto2Value (line 197) | func (m *Message) GetProto2Value() map[string]*proto2_proto.SubDefaults {
method GetAnything (line 204) | func (m *Message) GetAnything() *anypb.Any {
method GetManyThings (line 211) | func (m *Message) GetManyThings() []*anypb.Any {
method GetSubmessage (line 218) | func (m *Message) GetSubmessage() *Message {
method GetChildren (line 225) | func (m *Message) GetChildren() []*Message {
method GetStringMap (line 232) | func (m *Message) GetStringMap() map[string]string {
type Nested (line 239) | type Nested struct
method Reset (line 247) | func (m *Nested) Reset() { *m = Nested{} }
method String (line 248) | func (m *Nested) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 249) | func (*Nested) ProtoMessage() {}
method Descriptor (line 250) | func (*Nested) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 254) | func (m *Nested) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 257) | func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, er...
method XXX_Merge (line 260) | func (m *Nested) XXX_Merge(src proto.Message) {
method XXX_Size (line 263) | func (m *Nested) XXX_Size() int {
method XXX_DiscardUnknown (line 266) | func (m *Nested) XXX_DiscardUnknown() {
method GetBunny (line 272) | func (m *Nested) GetBunny() string {
method GetCute (line 279) | func (m *Nested) GetCute() bool {
type MessageWithMap (line 286) | type MessageWithMap struct
method Reset (line 293) | func (m *MessageWithMap) Reset() { *m = MessageWithMap{} }
method String (line 294) | func (m *MessageWithMap) String() string { return proto.CompactTextStr...
method ProtoMessage (line 295) | func (*MessageWithMap) ProtoMessage() {}
method Descriptor (line 296) | func (*MessageWithMap) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 300) | func (m *MessageWithMap) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 303) | func (m *MessageWithMap) XXX_Marshal(b []byte, deterministic bool) ([]...
method XXX_Merge (line 306) | func (m *MessageWithMap) XXX_Merge(src proto.Message) {
method XXX_Size (line 309) | func (m *MessageWithMap) XXX_Size() int {
method XXX_DiscardUnknown (line 312) | func (m *MessageWithMap) XXX_DiscardUnknown() {
method GetByteMapping (line 318) | func (m *MessageWithMap) GetByteMapping() map[bool][]byte {
type IntMap (line 325) | type IntMap struct
method Reset (line 332) | func (m *IntMap) Reset() { *m = IntMap{} }
method String (line 333) | func (m *IntMap) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 334) | func (*IntMap) ProtoMessage() {}
method Descriptor (line 335) | func (*IntMap) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 339) | func (m *IntMap) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 342) | func (m *IntMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, er...
method XXX_Merge (line 345) | func (m *IntMap) XXX_Merge(src proto.Message) {
method XXX_Size (line 348) | func (m *IntMap) XXX_Size() int {
method XXX_DiscardUnknown (line 351) | func (m *IntMap) XXX_DiscardUnknown() {
method GetRtt (line 357) | func (m *IntMap) GetRtt() map[int32]int32 {
type IntMaps (line 364) | type IntMaps struct
method Reset (line 371) | func (m *IntMaps) Reset() { *m = IntMaps{} }
method String (line 372) | func (m *IntMaps) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 373) | func (*IntMaps) ProtoMessage() {}
method Descriptor (line 374) | func (*IntMaps) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 378) | func (m *IntMaps) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 381) | func (m *IntMaps) XXX_Marshal(b []byte, deterministic bool) ([]byte, e...
method XXX_Merge (line 384) | func (m *IntMaps) XXX_Merge(src proto.Message) {
method XXX_Size (line 387) | func (m *IntMaps) XXX_Size() int {
method XXX_DiscardUnknown (line 390) | func (m *IntMaps) XXX_DiscardUnknown() {
method GetMaps (line 396) | func (m *IntMaps) GetMaps() []*IntMap {
type TestUTF8 (line 403) | type TestUTF8 struct
method Reset (line 416) | func (m *TestUTF8) Reset() { *m = TestUTF8{} }
method String (line 417) | func (m *TestUTF8) String() string { return proto.CompactTextString(m) }
method ProtoMessage (line 418) | func (*TestUTF8) ProtoMessage() {}
method Descriptor (line 419) | func (*TestUTF8) Descriptor() ([]byte, []int) {
method XXX_Unmarshal (line 423) | func (m *TestUTF8) XXX_Unmarshal(b []byte) error {
method XXX_Marshal (line 426) | func (m *TestUTF8) XXX_Marshal(b []byte, deterministic bool) ([]byte, ...
method XXX_Merge (line 429) | func (m *TestUTF8) XXX_Merge(src proto.Message) {
method XXX_Size (line 432) | func (m *TestUTF8) XXX_Size() int {
method XXX_DiscardUnknown (line 435) | func (m *TestUTF8) XXX_DiscardUnknown() {
method GetScalar (line 441) | func (m *TestUTF8) GetScalar() string {
method GetVector (line 448) | func (m *TestUTF8) GetVector() []string {
method GetOneof (line 465) | func (m *TestUTF8) GetOneof() isTestUTF8_Oneof {
method GetField (line 472) | func (m *TestUTF8) GetField() string {
method GetMapKey (line 479) | func (m *TestUTF8) GetMapKey() map[string]int64 {
method GetMapValue (line 486) | func (m *TestUTF8) GetMapValue() map[int64]string {
method XXX_OneofWrappers (line 494) | func (*TestUTF8) XXX_OneofWrappers() []interface{} {
type isTestUTF8_Oneof (line 455) | type isTestUTF8_Oneof interface
type TestUTF8_Field (line 459) | type TestUTF8_Field struct
method isTestUTF8_Oneof (line 463) | func (*TestUTF8_Field) isTestUTF8_Oneof() {}
function init (line 500) | func init() {
function init (line 517) | func init() { proto.RegisterFile("proto3_proto/test.proto", fileDescript...
FILE: jsonpb/decode.go
constant wrapJSONUnmarshalV2 (line 25) | wrapJSONUnmarshalV2 = false
function UnmarshalNext (line 28) | func UnmarshalNext(d *json.Decoder, m proto.Message) error {
function Unmarshal (line 33) | func Unmarshal(r io.Reader, m proto.Message) error {
function UnmarshalString (line 38) | func UnmarshalString(s string, m proto.Message) error {
type Unmarshaler (line 44) | type Unmarshaler struct
method Unmarshal (line 68) | func (u *Unmarshaler) Unmarshal(r io.Reader, m proto.Message) error {
method UnmarshalNext (line 73) | func (u *Unmarshaler) UnmarshalNext(d *json.Decoder, m proto.Message) ...
method unmarshalMessage (line 135) | func (u *Unmarshaler) unmarshalMessage(m protoreflect.Message, in []by...
method unmarshalValue (line 410) | func (u *Unmarshaler) unmarshalValue(v protoreflect.Value, in []byte, ...
method unmarshalSingularValue (line 464) | func (u *Unmarshaler) unmarshalSingularValue(v protoreflect.Value, in ...
type JSONPBUnmarshaler (line 63) | type JSONPBUnmarshaler interface
function isSingularWellKnownValue (line 389) | func isSingularWellKnownValue(fd protoreflect.FieldDescriptor) bool {
function isSingularJSONPBUnmarshaler (line 402) | func isSingularJSONPBUnmarshaler(v protoreflect.Value, fd protoreflect.F...
function unmarshalValue (line 507) | func unmarshalValue(in []byte, v interface{}) (protoreflect.Value, error) {
function unquoteString (line 512) | func unquoteString(in string) (out string, err error) {
function hasPrefixAndSuffix (line 517) | func hasPrefixAndSuffix(prefix byte, in []byte, suffix byte) bool {
function trimQuote (line 526) | func trimQuote(in []byte) []byte {
FILE: jsonpb/encode.go
constant wrapJSONMarshalV2 (line 26) | wrapJSONMarshalV2 = false
type Marshaler (line 30) | type Marshaler struct
method Marshal (line 67) | func (jm *Marshaler) Marshal(w io.Writer, m proto.Message) error {
method MarshalToString (line 78) | func (jm *Marshaler) MarshalToString(m proto.Message) (string, error) {
method marshal (line 86) | func (jm *Marshaler) marshal(m proto.Message) ([]byte, error) {
type JSONPBMarshaler (line 62) | type JSONPBMarshaler interface
type jsonWriter (line 122) | type jsonWriter struct
method write (line 127) | func (w *jsonWriter) write(s string) {
method marshalMessage (line 131) | func (w *jsonWriter) marshalMessage(m protoreflect.Message, indent, ty...
method writeComma (line 306) | func (w *jsonWriter) writeComma() {
method marshalAny (line 314) | func (w *jsonWriter) marshalAny(m protoreflect.Message, indent string)...
method marshalTypeURL (line 372) | func (w *jsonWriter) marshalTypeURL(indent, typeURL string) error {
method marshalField (line 390) | func (w *jsonWriter) marshalField(fd protoreflect.FieldDescriptor, v p...
method marshalValue (line 421) | func (w *jsonWriter) marshalValue(fd protoreflect.FieldDescriptor, v p...
method marshalSingularValue (line 514) | func (w *jsonWriter) marshalSingularValue(fd protoreflect.FieldDescrip...
FILE: jsonpb/json.go
type AnyResolver (line 25) | type AnyResolver interface
type anyResolver (line 29) | type anyResolver struct
method FindMessageByName (line 31) | func (r anyResolver) FindMessageByName(message protoreflect.FullName) ...
method FindMessageByURL (line 35) | func (r anyResolver) FindMessageByURL(url string) (protoreflect.Messag...
method FindExtensionByName (line 43) | func (r anyResolver) FindExtensionByName(field protoreflect.FullName) ...
method FindExtensionByNumber (line 47) | func (r anyResolver) FindExtensionByNumber(message protoreflect.FullNa...
function wellKnownType (line 51) | func wellKnownType(s protoreflect.FullName) string {
function isMessageSet (line 66) | func isMessageSet(md protoreflect.MessageDescriptor) bool {
FILE: jsonpb/json_test.go
function init (line 374) | func init() {
function TestMarshaling (line 511) | func TestMarshaling(t *testing.T) {
function TestMarshalingNil (line 522) | func TestMarshalingNil(t *testing.T) {
function TestMarshalIllegalTime (line 530) | func TestMarshalIllegalTime(t *testing.T) {
function TestMarshalJSONPBMarshaler (line 558) | func TestMarshalJSONPBMarshaler(t *testing.T) {
function TestMarshalAnyJSONPBMarshaler (line 570) | func TestMarshalAnyJSONPBMarshaler(t *testing.T) {
function TestMarshalWithCustomValidation (line 588) | func TestMarshalWithCustomValidation(t *testing.T) {
function TestMarshalUnsetRequiredFields (line 602) | func TestMarshalUnsetRequiredFields(t *testing.T) {
function TestUnmarshaling (line 834) | func TestUnmarshaling(t *testing.T) {
function TestUnmarshalNullArray (line 854) | func TestUnmarshalNullArray(t *testing.T) {
function TestUnmarshalNullObject (line 864) | func TestUnmarshalNullObject(t *testing.T) {
function TestUnmarshalNext (line 874) | func TestUnmarshalNext(t *testing.T) {
function TestUnmarshalingBadInput (line 928) | func TestUnmarshalingBadInput(t *testing.T) {
type funcResolver (line 937) | type funcResolver
method Resolve (line 939) | func (fn funcResolver) Resolve(turl string) (proto.Message, error) {
function TestAnyWithCustomResolver (line 943) | func TestAnyWithCustomResolver(t *testing.T) {
function TestUnmarshalJSONPBUnmarshaler (line 996) | func TestUnmarshalJSONPBUnmarshaler(t *testing.T) {
function TestUnmarshalNullWithJSONPBUnmarshaler (line 1007) | func TestUnmarshalNullWithJSONPBUnmarshaler(t *testing.T) {
function TestUnmarshalAnyJSONPBUnmarshaler (line 1020) | func TestUnmarshalAnyJSONPBUnmarshaler(t *testing.T) {
constant dynamicMessageName (line 1042) | dynamicMessageName = "github_com.golang.protobuf.jsonpb.dynamicMessage"
function init (line 1045) | func init() {
type ptrFieldMessage (line 1050) | type ptrFieldMessage struct
method Reset (line 1054) | func (m *ptrFieldMessage) Reset() {
method String (line 1057) | func (m *ptrFieldMessage) String() string {
method ProtoMessage (line 1061) | func (m *ptrFieldMessage) ProtoMessage() {
method Descriptor (line 1064) | func (m *ptrFieldMessage) Descriptor() ([]byte, []int) {
type stringField (line 1068) | type stringField struct
method Reset (line 1073) | func (s *stringField) Reset() {
method String (line 1076) | func (s *stringField) String() string {
method ProtoMessage (line 1080) | func (s *stringField) ProtoMessage() {
method Descriptor (line 1083) | func (s *stringField) Descriptor() ([]byte, []int) {
method UnmarshalJSONPB (line 1087) | func (s *stringField) UnmarshalJSONPB(jum *Unmarshaler, js []byte) err...
type dynamicMessage (line 1095) | type dynamicMessage struct
method Reset (line 1103) | func (m *dynamicMessage) Reset() {
method String (line 1107) | func (m *dynamicMessage) String() string {
method ProtoMessage (line 1111) | func (m *dynamicMessage) ProtoMessage() {
method Descriptor (line 1114) | func (m *dynamicMessage) Descriptor() ([]byte, []int) {
method MarshalJSONPB (line 1118) | func (m *dynamicMessage) MarshalJSONPB(jm *Marshaler) ([]byte, error) {
method UnmarshalJSONPB (line 1122) | func (m *dynamicMessage) UnmarshalJSONPB(jum *Unmarshaler, js []byte) ...
function TestUnmarshalUnsetRequiredFields (line 1161) | func TestUnmarshalUnsetRequiredFields(t *testing.T) {
FILE: proto/buffer.go
constant WireVarint (line 17) | WireVarint = 0
constant WireFixed32 (line 18) | WireFixed32 = 5
constant WireFixed64 (line 19) | WireFixed64 = 1
constant WireBytes (line 20) | WireBytes = 2
constant WireStartGroup (line 21) | WireStartGroup = 3
constant WireEndGroup (line 22) | WireEndGroup = 4
function EncodeVarint (line 26) | func EncodeVarint(v uint64) []byte {
function SizeVarint (line 32) | func SizeVarint(v uint64) int {
function DecodeVarint (line 39) | func DecodeVarint(b []byte) (uint64, int) {
type Buffer (line 49) | type Buffer struct
method SetDeterministic (line 81) | func (b *Buffer) SetDeterministic(deterministic bool) {
method SetBuf (line 87) | func (b *Buffer) SetBuf(buf []byte) {
method Reset (line 93) | func (b *Buffer) Reset() {
method Bytes (line 99) | func (b *Buffer) Bytes() []byte {
method Unread (line 104) | func (b *Buffer) Unread() []byte {
method Marshal (line 109) | func (b *Buffer) Marshal(m Message) error {
method Unmarshal (line 118) | func (b *Buffer) Unmarshal(m Message) error {
method DebugPrint (line 132) | func (*Buffer) DebugPrint(s string, b []byte) {
method EncodeVarint (line 140) | func (b *Buffer) EncodeVarint(v uint64) error {
method EncodeZigzag32 (line 146) | func (b *Buffer) EncodeZigzag32(v uint64) error {
method EncodeZigzag64 (line 151) | func (b *Buffer) EncodeZigzag64(v uint64) error {
method EncodeFixed32 (line 156) | func (b *Buffer) EncodeFixed32(v uint64) error {
method EncodeFixed64 (line 162) | func (b *Buffer) EncodeFixed64(v uint64) error {
method EncodeRawBytes (line 168) | func (b *Buffer) EncodeRawBytes(v []byte) error {
method EncodeStringBytes (line 175) | func (b *Buffer) EncodeStringBytes(v string) error {
method EncodeMessage (line 181) | func (b *Buffer) EncodeMessage(m Message) error {
method DecodeVarint (line 189) | func (b *Buffer) DecodeVarint() (uint64, error) {
method DecodeZigzag32 (line 199) | func (b *Buffer) DecodeZigzag32() (uint64, error) {
method DecodeZigzag64 (line 208) | func (b *Buffer) DecodeZigzag64() (uint64, error) {
method DecodeFixed32 (line 217) | func (b *Buffer) DecodeFixed32() (uint64, error) {
method DecodeFixed64 (line 227) | func (b *Buffer) DecodeFixed64() (uint64, error) {
method DecodeRawBytes (line 239) | func (b *Buffer) DecodeRawBytes(alloc bool) ([]byte, error) {
method DecodeStringBytes (line 253) | func (b *Buffer) DecodeStringBytes() (string, error) {
method DecodeMessage (line 264) | func (b *Buffer) DecodeMessage(m Message) error {
method DecodeGroup (line 276) | func (b *Buffer) DecodeGroup(m Message) error {
function NewBuffer (line 57) | func NewBuffer(buf []byte) *Buffer {
type unknownFields (line 124) | type unknownFields struct
method String (line 126) | func (m *unknownFields) String() string { panic("not implemented") }
method Reset (line 127) | func (m *unknownFields) Reset() { panic("not implemented") }
method ProtoMessage (line 128) | func (m *unknownFields) ProtoMessage() { panic("not implemented") }
function consumeGroup (line 288) | func consumeGroup(b []byte) ([]byte, int, error) {
FILE: proto/defaults.go
function SetDefaults (line 14) | func SetDefaults(m Message) {
function setDefaults (line 20) | func setDefaults(m protoreflect.Message) {
FILE: proto/deprecated.go
type Stats (line 28) | type Stats struct
function GetStats (line 31) | func GetStats() Stats { return Stats{} }
function MarshalMessageSet (line 34) | func MarshalMessageSet(interface{}) ([]byte, error) {
function UnmarshalMessageSet (line 39) | func UnmarshalMessageSet([]byte, interface{}) error {
function MarshalMessageSetJSON (line 44) | func MarshalMessageSetJSON(interface{}) ([]byte, error) {
function UnmarshalMessageSetJSON (line 49) | func UnmarshalMessageSetJSON([]byte, interface{}) error {
function RegisterMessageSetType (line 54) | func RegisterMessageSetType(Message, int32, string) {}
function EnumName (line 57) | func EnumName(m map[int32]string, v int32) string {
function UnmarshalJSONEnum (line 66) | func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string)...
type InternalMessageInfo (line 88) | type InternalMessageInfo struct
method DiscardUnknown (line 91) | func (*InternalMessageInfo) DiscardUnknown(m Message) {
method Marshal (line 96) | func (*InternalMessageInfo) Marshal(b []byte, m Message, deterministic...
method Merge (line 101) | func (*InternalMessageInfo) Merge(dst, src Message) {
method Size (line 106) | func (*InternalMessageInfo) Size(m Message) int {
method Unmarshal (line 111) | func (*InternalMessageInfo) Unmarshal(m Message, b []byte) error {
FILE: proto/discard.go
function DiscardUnknown (line 19) | func DiscardUnknown(m Message) {
function discardUnknown (line 25) | func discardUnknown(m protoreflect.Message) {
FILE: proto/discard_test.go
function TestDiscardUnknown (line 21) | func TestDiscardUnknown(t *testing.T) {
FILE: proto/extensions.go
function HasExtension (line 45) | func HasExtension(m Message, xt *ExtensionDesc) (has bool) {
function ClearExtension (line 73) | func ClearExtension(m Message, xt *ExtensionDesc) {
function ClearAllExtensions (line 96) | func ClearAllExtensions(m Message) {
function GetExtension (line 120) | func GetExtension(m Message, xt *ExtensionDesc) (interface{}, error) {
type extensionResolver (line 183) | type extensionResolver struct
method FindExtensionByName (line 185) | func (r extensionResolver) FindExtensionByName(field protoreflect.Full...
method FindExtensionByNumber (line 192) | func (r extensionResolver) FindExtensionByNumber(message protoreflect....
function GetExtensions (line 202) | func GetExtensions(m Message, xts []*ExtensionDesc) ([]interface{}, erro...
function SetExtension (line 223) | func SetExtension(m Message, xt *ExtensionDesc, v interface{}) error {
function SetRawExtension (line 254) | func SetRawExtension(m Message, fnum int32, b []byte) {
function ExtensionDescs (line 279) | func ExtensionDescs(m Message) ([]*ExtensionDesc, error) {
function isValidExtension (line 319) | func isValidExtension(md protoreflect.MessageDescriptor, xtd protoreflec...
function isScalarKind (line 326) | func isScalarKind(k reflect.Kind) bool {
function clearUnknown (line 336) | func clearUnknown(m protoreflect.Message, remover interface {
type fieldNum (line 352) | type fieldNum
method Has (line 354) | func (n1 fieldNum) Has(n2 protoreflect.FieldNumber) bool {
FILE: proto/extensions_test.go
function TestGetExtensionsWithMissingExtensions (line 21) | func TestGetExtensionsWithMissingExtensions(t *testing.T) {
function TestGetExtensionForIncompleteDesc (line 42) | func TestGetExtensionForIncompleteDesc(t *testing.T) {
function TestExtensionDescsWithUnregisteredExtensions (line 131) | func TestExtensionDescsWithUnregisteredExtensions(t *testing.T) {
type ExtensionDescSlice (line 173) | type ExtensionDescSlice
method Len (line 175) | func (s ExtensionDescSlice) Len() int { return len(s) }
method Less (line 176) | func (s ExtensionDescSlice) Less(i, j int) bool { return s[i].Field < ...
method Swap (line 177) | func (s ExtensionDescSlice) Swap(i, j int) { s[i], s[j] = s[j], s...
function sortExtDescs (line 179) | func sortExtDescs(s []*proto.ExtensionDesc) {
function TestGetExtensionStability (line 183) | func TestGetExtensionStability(t *testing.T) {
function TestGetExtensionDefaults (line 217) | func TestGetExtensionDefaults(t *testing.T) {
function TestNilMessage (line 351) | func TestNilMessage(t *testing.T) {
function TestExtensionsRoundTrip (line 389) | func TestExtensionsRoundTrip(t *testing.T) {
function TestNilExtension (line 426) | func TestNilExtension(t *testing.T) {
function TestMarshalUnmarshalRepeatedExtension (line 442) | func TestMarshalUnmarshalRepeatedExtension(t *testing.T) {
function TestUnmarshalRepeatingNonRepeatedExtension (line 509) | func TestUnmarshalRepeatingNonRepeatedExtension(t *testing.T) {
function TestClearAllExtensions (line 584) | func TestClearAllExtensions(t *testing.T) {
function TestMarshalRace (line 609) | func TestMarshalRace(t *testing.T) {
FILE: proto/properties.go
type StructProperties (line 22) | type StructProperties struct
method Len (line 304) | func (sp *StructProperties) Len() int { return len(sp.Prop) }
method Less (line 305) | func (sp *StructProperties) Less(i, j int) bool { return false }
method Swap (line 306) | func (sp *StructProperties) Swap(i, j int) { return }
type Properties (line 41) | type Properties struct
method String (line 99) | func (p *Properties) String() string {
method Parse (line 137) | func (p *Properties) Parse(tag string) {
method Init (line 196) | func (p *Properties) Init(typ reflect.Type, name, tag string, f *refle...
type OneofProperties (line 88) | type OneofProperties struct
function GetProperties (line 219) | func GetProperties(t reflect.Type) *StructProperties {
function newProperties (line 227) | func newProperties(t reflect.Type) *StructProperties {
FILE: proto/proto.go
constant ProtoPackageIsVersion1 (line 23) | ProtoPackageIsVersion1 = true
constant ProtoPackageIsVersion2 (line 24) | ProtoPackageIsVersion2 = true
constant ProtoPackageIsVersion3 (line 25) | ProtoPackageIsVersion3 = true
constant ProtoPackageIsVersion4 (line 26) | ProtoPackageIsVersion4 = true
type GeneratedEnum (line 32) | type GeneratedEnum interface
type GeneratedMessage (line 37) | type GeneratedMessage interface
function MessageV1 (line 54) | func MessageV1(m GeneratedMessage) protoiface.MessageV1 {
function MessageV2 (line 60) | func MessageV2(m GeneratedMessage) protoV2.Message {
function MessageReflect (line 66) | func MessageReflect(m Message) protoreflect.Message {
type Marshaler (line 75) | type Marshaler interface
type Unmarshaler (line 87) | type Unmarshaler interface
type Merger (line 98) | type Merger interface
type RequiredNotSetError (line 107) | type RequiredNotSetError struct
method Error (line 111) | func (e *RequiredNotSetError) Error() string {
method RequiredNotSet (line 117) | func (e *RequiredNotSetError) RequiredNotSet() bool {
function checkRequiredNotSet (line 121) | func checkRequiredNotSet(m protoV2.Message) error {
function Clone (line 129) | func Clone(src Message) Message {
function Merge (line 141) | func Merge(dst, src Message) {
function Equal (line 160) | func Equal(x, y Message) bool {
function isMessageSet (line 164) | func isMessageSet(md protoreflect.MessageDescriptor) bool {
FILE: proto/proto_clone_test.go
function init (line 36) | func init() {
function TestClone (line 51) | func TestClone(t *testing.T) {
function TestCloneNil (line 90) | func TestCloneNil(t *testing.T) {
function TestMerge (line 367) | func TestMerge(t *testing.T) {
FILE: proto/proto_equal_test.go
function init (line 30) | func init() {
function TestEqual (line 212) | func TestEqual(t *testing.T) {
FILE: proto/proto_test.go
function initGoTestField (line 30) | func initGoTestField() *pb2.GoTestField {
function initGoTest_RequiredGroup (line 40) | func initGoTest_RequiredGroup() *pb2.GoTest_RequiredGroup {
function initGoTest_OptionalGroup (line 46) | func initGoTest_OptionalGroup() *pb2.GoTest_OptionalGroup {
function initGoTest_RepeatedGroup (line 52) | func initGoTest_RepeatedGroup() *pb2.GoTest_RepeatedGroup {
function initGoTest (line 58) | func initGoTest(setdefaults bool) *pb2.GoTest {
function overify (line 100) | func overify(t *testing.T, pb *pb2.GoTest, want []byte) {
function isRequiredNotSetError (line 132) | func isRequiredNotSetError(err error) bool {
function TestNumericPrimitives (line 138) | func TestNumericPrimitives(t *testing.T) {
type fakeMarshaler (line 209) | type fakeMarshaler struct
method Marshal (line 214) | func (f *fakeMarshaler) Marshal() ([]byte, error) { return f.b, f.err }
method String (line 215) | func (f *fakeMarshaler) String() string { return fmt.Sprintf...
method ProtoMessage (line 216) | func (f *fakeMarshaler) ProtoMessage() {}
method Reset (line 217) | func (f *fakeMarshaler) Reset() {}
type msgWithFakeMarshaler (line 219) | type msgWithFakeMarshaler struct
method String (line 223) | func (m *msgWithFakeMarshaler) String() string { return proto.CompactT...
method ProtoMessage (line 224) | func (m *msgWithFakeMarshaler) ProtoMessage() {}
method Reset (line 225) | func (m *msgWithFakeMarshaler) Reset() {}
function TestMarshalerEncoding (line 228) | func TestMarshalerEncoding(t *testing.T) {
function TestBufferMarshalAllocs (line 290) | func TestBufferMarshalAllocs(t *testing.T) {
function TestBytesPrimitives (line 323) | func TestBytesPrimitives(t *testing.T) {
function TestStringPrimitives (line 339) | func TestStringPrimitives(t *testing.T) {
function TestRequiredBit (line 355) | func TestRequiredBit(t *testing.T) {
function checkInitialized (line 370) | func checkInitialized(pb *pb2.GoTest, t *testing.T) {
function TestReset (line 402) | func TestReset(t *testing.T) {
function TestEncodeDecode1 (line 423) | func TestEncodeDecode1(t *testing.T) {
function TestEncodeDecode2 (line 456) | func TestEncodeDecode2(t *testing.T) {
function TestEncodeDecode3 (line 504) | func TestEncodeDecode3(t *testing.T) {
function TestEncodeDecode4 (line 568) | func TestEncodeDecode4(t *testing.T) {
function TestEncodeDecode5 (line 662) | func TestEncodeDecode5(t *testing.T) {
function TestEncodeDecode6 (line 776) | func TestEncodeDecode6(t *testing.T) {
function TestEncodeDecodeBytes1 (line 836) | func TestEncodeDecodeBytes1(t *testing.T) {
function TestEncodeDecodeBytes2 (line 867) | func TestEncodeDecodeBytes2(t *testing.T) {
function TestSkippingUnrecognizedFields (line 889) | func TestSkippingUnrecognizedFields(t *testing.T) {
function TestSubmessageUnrecognizedFields (line 937) | func TestSubmessageUnrecognizedFields(t *testing.T) {
function TestNegativeInt32 (line 986) | func TestNegativeInt32(t *testing.T) {
function TestBigRepeated (line 1020) | func TestBigRepeated(t *testing.T) {
function TestBadWireTypeUnknown (line 1107) | func TestBadWireTypeUnknown(t *testing.T) {
function encodeDecode (line 1154) | func encodeDecode(t *testing.T, in, out proto.Message, msg string) {
function TestPackedNonPackedDecoderSwitching (line 1164) | func TestPackedNonPackedDecoderSwitching(t *testing.T) {
function TestProto1RepeatedGroup (line 1183) | func TestProto1RepeatedGroup(t *testing.T) {
function TestEnum (line 1208) | func TestEnum(t *testing.T) {
function TestPrintingNilEnumFields (line 1226) | func TestPrintingNilEnumFields(t *testing.T) {
function TestRequiredFieldEnforcement (line 1232) | func TestRequiredFieldEnforcement(t *testing.T) {
function TestRequiredFieldEnforcementGroups (line 1254) | func TestRequiredFieldEnforcementGroups(t *testing.T) {
function TestTypedNilMarshal (line 1270) | func TestTypedNilMarshal(t *testing.T) {
function TestTypedNilMarshalInOneof (line 1278) | func TestTypedNilMarshalInOneof(t *testing.T) {
type nonNillableInt (line 1287) | type nonNillableInt
method Marshal (line 1289) | func (nni nonNillableInt) Marshal() ([]byte, error) {
type NNIMessage (line 1293) | type NNIMessage struct
method Reset (line 1297) | func (*NNIMessage) Reset() {}
method String (line 1298) | func (*NNIMessage) String() string { return "" }
method ProtoMessage (line 1299) | func (*NNIMessage) ProtoMessage() {}
type NMMessage (line 1301) | type NMMessage struct
method Reset (line 1303) | func (*NMMessage) Reset() {}
method String (line 1304) | func (*NMMessage) String() string { return "" }
method ProtoMessage (line 1305) | func (*NMMessage) ProtoMessage() {}
function TestNilMarshaler (line 1308) | func TestNilMarshaler(t *testing.T) {
function TestAllSetDefaults (line 1325) | func TestAllSetDefaults(t *testing.T) {
function TestSetDefaultsWithSetField (line 1357) | func TestSetDefaultsWithSetField(t *testing.T) {
function TestSetDefaultsWithSubMessage (line 1368) | func TestSetDefaultsWithSubMessage(t *testing.T) {
function TestSetDefaultsWithRepeatedSubMessage (line 1388) | func TestSetDefaultsWithRepeatedSubMessage(t *testing.T) {
function TestSetDefaultWithRepeatedNonMessage (line 1403) | func TestSetDefaultWithRepeatedNonMessage(t *testing.T) {
function TestMaximumTagNumber (line 1414) | func TestMaximumTagNumber(t *testing.T) {
function TestJSON (line 1431) | func TestJSON(t *testing.T) {
function TestBadWireType (line 1470) | func TestBadWireType(t *testing.T) {
function TestBytesWithInvalidLength (line 1478) | func TestBytesWithInvalidLength(t *testing.T) {
function TestLengthOverflow (line 1486) | func TestLengthOverflow(t *testing.T) {
function TestVarintOverflow (line 1496) | func TestVarintOverflow(t *testing.T) {
function TestBytesWithInvalidLengthInGroup (line 1508) | func TestBytesWithInvalidLengthInGroup(t *testing.T) {
function TestUnmarshalFuzz (line 1522) | func TestUnmarshalFuzz(t *testing.T) {
function TestMergeMessages (line 1536) | func TestMergeMessages(t *testing.T) {
function TestExtensionMarshalOrder (line 1566) | func TestExtensionMarshalOrder(t *testing.T) {
function TestExtensionMapFieldMarshalDeterministic (line 1595) | func TestExtensionMapFieldMarshalDeterministic(t *testing.T) {
function TestUnmarshalMergesMessages (line 1617) | func TestUnmarshalMergesMessages(t *testing.T) {
function TestUnmarshalMergesGroups (line 1660) | func TestUnmarshalMergesGroups(t *testing.T) {
function TestEncodingSizes (line 1697) | func TestEncodingSizes(t *testing.T) {
function TestRequiredNotSetError (line 1719) | func TestRequiredNotSetError(t *testing.T) {
function TestRequiredNotSetErrorWithBadWireTypes (line 1776) | func TestRequiredNotSetErrorWithBadWireTypes(t *testing.T) {
function fuzzUnmarshal (line 1795) | func fuzzUnmarshal(t *testing.T, data []byte) {
function TestMapFieldMarshal (line 1808) | func TestMapFieldMarshal(t *testing.T) {
function TestMapFieldDeterministicMarshal (line 1851) | func TestMapFieldDeterministicMarshal(t *testing.T) {
function TestMapFieldRoundTrips (line 1877) | func TestMapFieldRoundTrips(t *testing.T) {
function TestMapFieldWithNil (line 1906) | func TestMapFieldWithNil(t *testing.T) {
function TestMapFieldWithNilBytes (line 1926) | func TestMapFieldWithNilBytes(t *testing.T) {
function TestDecodeMapFieldMissingKey (line 1957) | func TestDecodeMapFieldMissingKey(t *testing.T) {
function TestDecodeMapFieldMissingValue (line 1974) | func TestDecodeMapFieldMissingValue(t *testing.T) {
function TestOneof (line 1991) | func TestOneof(t *testing.T) {
function TestOneofNilBytes (line 2043) | func TestOneofNilBytes(t *testing.T) {
function TestInefficientPackedBool (line 2058) | func TestInefficientPackedBool(t *testing.T) {
function TestRepeatedEnum2 (line 2070) | func TestRepeatedEnum2(t *testing.T) {
function TestConcurrentMarshal (line 2090) | func TestConcurrentMarshal(t *testing.T) {
function TestInvalidUTF8 (line 2116) | func TestInvalidUTF8(t *testing.T) {
function TestRequired (line 2182) | func TestRequired(t *testing.T) {
function TestUnknownV2 (line 2204) | func TestUnknownV2(t *testing.T) {
function testMsg (line 2213) | func testMsg() *pb2.GoTest {
function bytesMsg (line 2225) | func bytesMsg() *pb2.GoTest {
function benchmarkMarshal (line 2235) | func benchmarkMarshal(b *testing.B, pb proto.Message, marshal func(proto...
function benchmarkBufferMarshal (line 2244) | func benchmarkBufferMarshal(b *testing.B, pb proto.Message) {
function benchmarkSize (line 2253) | func benchmarkSize(b *testing.B, pb proto.Message) {
function TestProto3ZeroValues (line 2260) | func TestProto3ZeroValues(t *testing.T) {
function TestRoundTripProto3 (line 2280) | func TestRoundTripProto3(t *testing.T) {
function TestGettersForBasicTypesExist (line 2314) | func TestGettersForBasicTypesExist(t *testing.T) {
function TestProto3SetDefaults (line 2324) | func TestProto3SetDefaults(t *testing.T) {
function TestUnknownFieldPreservation (line 2355) | func TestUnknownFieldPreservation(t *testing.T) {
function TestMap (line 2370) | func TestMap(t *testing.T) {
function marshalled (line 2421) | func marshalled() []byte {
function init (line 2440) | func init() {
type nonptrMessage (line 2454) | type nonptrMessage struct
method ProtoMessage (line 2456) | func (m nonptrMessage) ProtoMessage() {}
method Reset (line 2457) | func (m nonptrMessage) Reset() {}
method String (line 2458) | func (m nonptrMessage) String() string { return "" }
method Marshal (line 2460) | func (m nonptrMessage) Marshal() ([]byte, error) {
function TestSize (line 2555) | func TestSize(t *testing.T) {
function TestVarintSize (line 2572) | func TestVarintSize(t *testing.T) {
FILE: proto/registry.go
function RegisterFile (line 34) | func RegisterFile(s filePath, d fileDescGZIP) {
function FileDescriptor (line 58) | func FileDescriptor(s filePath) fileDescGZIP {
function RegisterEnum (line 96) | func RegisterEnum(s enumName, _ enumsByNumber, m enumsByName) {
function EnumValueMap (line 110) | func EnumValueMap(s enumName) enumsByName {
function walkEnums (line 156) | func walkEnums(d interface {
function RegisterType (line 179) | func RegisterType(m Message, s messageName) {
function RegisterMapType (line 191) | func RegisterMapType(m interface{}, s messageName) {
function MessageType (line 206) | func MessageType(s messageName) reflect.Type {
function goTypeForField (line 236) | func goTypeForField(fd protoreflect.FieldDescriptor) reflect.Type {
function enumGoType (line 253) | func enumGoType(et protoreflect.EnumType) reflect.Type {
function messageGoType (line 257) | func messageGoType(mt protoreflect.MessageType) reflect.Type {
function MessageName (line 264) | func MessageName(m Message) messageName {
function RegisterExtension (line 278) | func RegisterExtension(d *ExtensionDesc) {
function RegisteredExtensions (line 292) | func RegisteredExtensions(m Message) extensionsByNumber {
FILE: proto/registry_test.go
function TestRegistry (line 17) | func TestRegistry(t *testing.T) {
FILE: proto/text_decode.go
constant wrapTextUnmarshalV2 (line 22) | wrapTextUnmarshalV2 = false
type ParseError (line 25) | type ParseError struct
method Error (line 32) | func (e *ParseError) Error() string {
function UnmarshalText (line 43) | func UnmarshalText(s string, m Message) error {
type textParser (line 67) | type textParser struct
method unmarshalMessage (line 91) | func (p *textParser) unmarshalMessage(m protoreflect.Message, terminat...
method unmarshalExtensionOrAny (line 171) | func (p *textParser) unmarshalExtensionOrAny(m protoreflect.Message, s...
method unmarshalValue (line 258) | func (p *textParser) unmarshalValue(v protoreflect.Value, fd protorefl...
method unmarshalSingularValue (line 368) | func (p *textParser) unmarshalSingularValue(v protoreflect.Value, fd p...
method checkForColon (line 475) | func (p *textParser) checkForColon(fd protoreflect.FieldDescriptor) *P...
method consumeExtensionOrAnyName (line 491) | func (p *textParser) consumeExtensionOrAnyName() (string, error) {
method consumeOptionalSeparator (line 523) | func (p *textParser) consumeOptionalSeparator() error {
method errorf (line 534) | func (p *textParser) errorf(format string, a ...interface{}) *ParseErr...
method skipWhitespace (line 541) | func (p *textParser) skipWhitespace() {
method advance (line 565) | func (p *textParser) advance() {
method back (line 617) | func (p *textParser) back() { p.backed = true }
method next (line 620) | func (p *textParser) next() *token {
method consumeToken (line 650) | func (p *textParser) consumeToken(s string) error {
type token (line 75) | type token struct
function newTextParser (line 83) | func newTextParser(s string) *textParser {
function unquoteC (line 664) | func unquoteC(s string, quote rune) (string, error) {
function unescape (line 707) | func unescape(s string) (ch string, tail string, err error) {
function isIdentOrNumberChar (line 773) | func isIdentOrNumberChar(c byte) bool {
function isWhitespace (line 787) | func isWhitespace(c byte) bool {
function isQuote (line 795) | func isQuote(c byte) bool {
FILE: proto/text_encode.go
constant wrapTextMarshalV2 (line 23) | wrapTextMarshalV2 = false
type TextMarshaler (line 26) | type TextMarshaler struct
method Marshal (line 32) | func (tm *TextMarshaler) Marshal(w io.Writer, m Message) error {
method Text (line 43) | func (tm *TextMarshaler) Text(m Message) string {
method marshal (line 48) | func (tm *TextMarshaler) marshal(m Message) ([]byte, error) {
function MarshalText (line 97) | func MarshalText(w io.Writer, m Message) error { return defaultTextMarsh...
function MarshalTextString (line 100) | func MarshalTextString(m Message) string { return defaultTextMarshaler.T...
function CompactText (line 103) | func CompactText(w io.Writer, m Message) error { return compactTextMarsh...
function CompactTextString (line 106) | func CompactTextString(m Message) string { return compactTextMarshaler.T...
type textWriter (line 117) | type textWriter struct
method Write (line 125) | func (w *textWriter) Write(p []byte) (n int, _ error) {
method WriteByte (line 164) | func (w *textWriter) WriteByte(c byte) error {
method writeName (line 176) | func (w *textWriter) writeName(fd protoreflect.FieldDescriptor) {
method writeProto3Any (line 221) | func (w *textWriter) writeProto3Any(m protoreflect.Message) (bool, err...
method writeMessage (line 261) | func (w *textWriter) writeMessage(m protoreflect.Message) error {
method writeSingularValue (line 354) | func (w *textWriter) writeSingularValue(v protoreflect.Value, fd proto...
method writeQuotedString (line 407) | func (w *textWriter) writeQuotedString(s string) {
method writeUnknownFields (line 432) | func (w *textWriter) writeUnknownFields(b []byte) {
method writeExtensions (line 496) | func (w *textWriter) writeExtensions(m protoreflect.Message) error {
method writeSingularExtension (line 540) | func (w *textWriter) writeSingularExtension(name string, v protoreflec...
method writeIndent (line 552) | func (w *textWriter) writeIndent() {
function requiresQuotes (line 195) | func requiresQuotes(u string) bool {
FILE: proto/text_test.go
function anyEqual (line 33) | func anyEqual(got, want proto.Message) bool {
type golden (line 43) | type golden struct
function makeGolden (line 50) | func makeGolden() []golden {
function TestMarshalGolden (line 188) | func TestMarshalGolden(t *testing.T) {
function TestUnmarshalGolden (line 201) | func TestUnmarshalGolden(t *testing.T) {
function TestMarshalUnknownAny (line 224) | func TestMarshalUnknownAny(t *testing.T) {
function TestAmbiguousAny (line 242) | func TestAmbiguousAny(t *testing.T) {
function TestUnmarshalOverwriteAny (line 253) | func TestUnmarshalOverwriteAny(t *testing.T) {
function TestUnmarshalAnyMixAndMatch (line 269) | func TestUnmarshalAnyMixAndMatch(t *testing.T) {
type textMessage (line 285) | type textMessage struct
method MarshalText (line 288) | func (*textMessage) MarshalText() ([]byte, error) {
method UnmarshalText (line 292) | func (*textMessage) UnmarshalText(bytes []byte) error {
method Reset (line 299) | func (*textMessage) Reset() {}
method String (line 300) | func (*textMessage) String() string { return "" }
method ProtoMessage (line 301) | func (*textMessage) ProtoMessage() {}
function newTestMessage (line 303) | func newTestMessage() *pb2.MyMessage {
constant text (line 361) | text = `count: 42
function TestMarshalText (line 399) | func TestMarshalText(t *testing.T) {
function TestMarshalTextCustomMessage (line 410) | func TestMarshalTextCustomMessage(t *testing.T) {
function TestMarshalTextNil (line 420) | func TestMarshalTextNil(t *testing.T) {
function TestMarshalTextUnknownEnum (line 434) | func TestMarshalTextUnknownEnum(t *testing.T) {
function TestTextOneof (line 444) | func TestTextOneof(t *testing.T) {
function compact (line 468) | func compact(src string) string {
function TestCompactText (line 513) | func TestCompactText(t *testing.T) {
function TestStringEscaping (line 520) | func TestStringEscaping(t *testing.T) {
type limitedWriter (line 569) | type limitedWriter struct
method Write (line 576) | func (w *limitedWriter) Write(p []byte) (n int, err error) {
function TestMarshalTextFailing (line 588) | func TestMarshalTextFailing(t *testing.T) {
function TestFloats (line 606) | func TestFloats(t *testing.T) {
function TestRepeatedNilText (line 627) | func TestRepeatedNilText(t *testing.T) {
function TestProto3Text (line 650) | func TestProto3Text(t *testing.T) {
function TestRacyMarshal (line 691) | func TestRacyMarshal(t *testing.T) {
type UnmarshalTextTest (line 733) | type UnmarshalTextTest struct
function buildExtStructTest (line 739) | func buildExtStructTest(text string) UnmarshalTextTest {
function buildExtDataTest (line 749) | func buildExtDataTest(text string) UnmarshalTextTest {
function buildExtRepStringTest (line 758) | func buildExtRepStringTest(text string) UnmarshalTextTest {
function TestUnmarshalText (line 1255) | func TestUnmarshalText(t *testing.T) {
function TestUnmarshalTextCustomMessage (line 1281) | func TestUnmarshalTextCustomMessage(t *testing.T) {
function TestRepeatedEnum (line 1292) | func TestRepeatedEnum(t *testing.T) {
function TestProto3TextParsing (line 1305) | func TestProto3TextParsing(t *testing.T) {
function TestMapParsing (line 1320) | func TestMapParsing(t *testing.T) {
function TestOneofParsing (line 1351) | func TestOneofParsing(t *testing.T) {
FILE: proto/wire.go
function Size (line 13) | func Size(m Message) int {
function Marshal (line 22) | func Marshal(m Message) ([]byte, error) {
function marshalAppend (line 32) | func marshalAppend(buf []byte, m Message, deterministic bool) ([]byte, e...
function Unmarshal (line 56) | func Unmarshal(b []byte, m Message) error {
function UnmarshalMerge (line 62) | func UnmarshalMerge(b []byte, m Message) error {
FILE: proto/wrappers.go
function Bool (line 8) | func Bool(v bool) *bool { return &v }
function Int (line 13) | func Int(v int) *int32 { return Int32(int32(v)) }
function Int32 (line 16) | func Int32(v int32) *int32 { return &v }
function Int64 (line 19) | func Int64(v int64) *int64 { return &v }
function Uint32 (line 22) | func Uint32(v uint32) *uint32 { return &v }
function Uint64 (line 25) | func Uint64(v uint64) *uint64 { return &v }
function Float32 (line 28) | func Float32(v float32) *float32 { return &v }
function Float64 (line 31) | func Float64(v float64) *float64 { return &v }
function String (line 34) | func String(v string) *string { return &v }
FILE: protoc-gen-go/descriptor/descriptor.pb.go
constant Edition_EDITION_UNKNOWN (line 17) | Edition_EDITION_UNKNOWN = descriptorpb.Edition_EDITION_UNKNOWN
constant Edition_EDITION_PROTO2 (line 18) | Edition_EDITION_PROTO2 = descriptorpb.Edition_EDITION_PROTO2
constant Edition_EDITION_PROTO3 (line 19) | Edition_EDITION_PROTO3 = descriptorpb.Edition_EDITION_PROTO3
constant Edition_EDITION_2023 (line 20) | Edition_EDITION_2023 = descriptorpb.Edition_EDITION_2023
constant Edition_EDITION_2024 (line 21) | Edition_EDITION_2024 = descriptorpb.Edition_EDITION_2024
constant Edition_EDITION_1_TEST_ONLY (line 22) | Edition_EDITION_1_TEST_ONLY = descriptorpb.Edition_EDITION_1_TEST_ONLY
constant Edition_EDITION_2_TEST_ONLY (line 23) | Edition_EDITION_2_TEST_ONLY = descriptorpb.Edition_EDITION_2_TEST_ONLY
constant Edition_EDITION_99997_TEST_ONLY (line 24) | Edition_EDITION_99997_TEST_ONLY = descriptorpb.Edition_EDITION_99997_TES...
constant Edition_EDITION_99998_TEST_ONLY (line 25) | Edition_EDITION_99998_TEST_ONLY = descriptorpb.Edition_EDITION_99998_TES...
constant Edition_EDITION_99999_TEST_ONLY (line 26) | Edition_EDITION_99999_TEST_ONLY = descriptorpb.Edition_EDITION_99999_TES...
constant Edition_EDITION_MAX (line 27) | Edition_EDITION_MAX = descriptorpb.Edition_EDITION_MAX
constant ExtensionRangeOptions_DECLARATION (line 34) | ExtensionRangeOptions_DECLARATION = descriptorpb.ExtensionRangeOptions_D...
constant ExtensionRangeOptions_UNVERIFIED (line 35) | ExtensionRangeOptions_UNVERIFIED = descriptorpb.ExtensionRangeOptions_UN...
constant FieldDescriptorProto_TYPE_DOUBLE (line 42) | FieldDescriptorProto_TYPE_DOUBLE = descriptorpb.FieldDescriptorProto_TYP...
constant FieldDescriptorProto_TYPE_FLOAT (line 43) | FieldDescriptorProto_TYPE_FLOAT = descriptorpb.FieldDescriptorProto_TYPE...
constant FieldDescriptorProto_TYPE_INT64 (line 44) | FieldDescriptorProto_TYPE_INT64 = descriptorpb.FieldDescriptorProto_TYPE...
constant FieldDescriptorProto_TYPE_UINT64 (line 45) | FieldDescriptorProto_TYPE_UINT64 = descriptorpb.FieldDescriptorProto_TYP...
constant FieldDescriptorProto_TYPE_INT32 (line 46) | FieldDescriptorProto_TYPE_INT32 = descriptorpb.FieldDescriptorProto_TYPE...
constant FieldDescriptorProto_TYPE_FIXED64 (line 47) | FieldDescriptorProto_TYPE_FIXED64 = descriptorpb.FieldDescriptorProto_TY...
constant FieldDescriptorProto_TYPE_FIXED32 (line 48) | FieldDescriptorProto_TYPE_FIXED32 = descriptorpb.FieldDescriptorProto_TY...
constant FieldDescriptorProto_TYPE_BOOL (line 49) | FieldDescriptorProto_TYPE_BOOL = descriptorpb.FieldDescriptorProto_TYPE_...
constant FieldDescriptorProto_TYPE_STRING (line 50) | FieldDescriptorProto_TYPE_STRING = descriptorpb.FieldDescriptorProto_TYP...
constant FieldDescriptorProto_TYPE_GROUP (line 51) | FieldDescriptorProto_TYPE_GROUP = descriptorpb.FieldDescriptorProto_TYPE...
constant FieldDescriptorProto_TYPE_MESSAGE (line 52) | FieldDescriptorProto_TYPE_MESSAGE = descriptorpb.FieldDescriptorProto_TY...
constant FieldDescriptorProto_TYPE_BYTES (line 53) | FieldDescriptorProto_TYPE_BYTES = descriptorpb.FieldDescriptorProto_TYPE...
constant FieldDescriptorProto_TYPE_UINT32 (line 54) | FieldDescriptorProto_TYPE_UINT32 = descriptorpb.FieldDescriptorProto_TYP...
constant FieldDescriptorProto_TYPE_ENUM (line 55) | FieldDescriptorProto_TYPE_ENUM = descriptorpb.FieldDescriptorProto_TYPE_...
constant FieldDescriptorProto_TYPE_SFIXED32 (line 56) | FieldDescriptorProto_TYPE_SFIXED32 = descriptorpb.FieldDescriptorProto_T...
constant FieldDescriptorProto_TYPE_SFIXED64 (line 57) | FieldDescriptorProto_TYPE_SFIXED64 = descriptorpb.FieldDescriptorProto_T...
constant FieldDescriptorProto_TYPE_SINT32 (line 58) | FieldDescriptorProto_TYPE_SINT32 = descriptorpb.FieldDescriptorProto_TYP...
constant FieldDescriptorProto_TYPE_SINT64 (line 59) | FieldDescriptorProto_TYPE_SINT64 = descriptorpb.FieldDescriptorProto_TYP...
constant FieldDescriptorProto_LABEL_OPTIONAL (line 66) | FieldDescriptorProto_LABEL_OPTIONAL = descriptorpb.FieldDescriptorProto_...
constant FieldDescriptorProto_LABEL_REPEATED (line 67) | FieldDescriptorProto_LABEL_REPEATED = descriptorpb.FieldDescriptorProto_...
constant FieldDescriptorProto_LABEL_REQUIRED (line 68) | FieldDescriptorProto_LABEL_REQUIRED = descriptorpb.FieldDescriptorProto_...
constant FileOptions_SPEED (line 75) | FileOptions_SPEED = descriptorpb.FileOptions_SPEED
constant FileOptions_CODE_SIZE (line 76) | FileOptions_CODE_SIZE = descriptorpb.FileOptions_CODE_SIZE
constant FileOptions_LITE_RUNTIME (line 77) | FileOptions_LITE_RUNTIME = descriptorpb.FileOptions_LITE_RUNTIME
constant FieldOptions_STRING (line 84) | FieldOptions_STRING = descriptorpb.FieldOptions_STRING
constant FieldOptions_CORD (line 85) | FieldOptions_CORD = descriptorpb.FieldOptions_CORD
constant FieldOptions_STRING_PIECE (line 86) | FieldOptions_STRING_PIECE = descriptorpb.FieldOptions_STRING_PIECE
constant FieldOptions_JS_NORMAL (line 93) | FieldOptions_JS_NORMAL = descriptorpb.FieldOptions_JS_NORMAL
constant FieldOptions_JS_STRING (line 94) | FieldOptions_JS_STRING = descriptorpb.FieldOptions_JS_STRING
constant FieldOptions_JS_NUMBER (line 95) | FieldOptions_JS_NUMBER = descriptorpb.FieldOptions_JS_NUMBER
constant FieldOptions_RETENTION_UNKNOWN (line 102) | FieldOptions_RETENTION_UNKNOWN = descriptorpb.FieldOptions_RETENTION_UNK...
constant FieldOptions_RETENTION_RUNTIME (line 103) | FieldOptions_RETENTION_RUNTIME = descriptorpb.FieldOptions_RETENTION_RUN...
constant FieldOptions_RETENTION_SOURCE (line 104) | FieldOptions_RETENTION_SOURCE = descriptorpb.FieldOptions_RETENTION_SOURCE
constant FieldOptions_TARGET_TYPE_UNKNOWN (line 111) | FieldOptions_TARGET_TYPE_UNKNOWN = descriptorpb.FieldOptions_TARGET_TYPE...
constant FieldOptions_TARGET_TYPE_FILE (line 112) | FieldOptions_TARGET_TYPE_FILE = descriptorpb.FieldOptions_TARGET_TYPE_FILE
constant FieldOptions_TARGET_TYPE_EXTENSION_RANGE (line 113) | FieldOptions_TARGET_TYPE_EXTENSION_RANGE = descriptorpb.FieldOptions_TAR...
constant FieldOptions_TARGET_TYPE_MESSAGE (line 114) | FieldOptions_TARGET_TYPE_MESSAGE = descriptorpb.FieldOptions_TARGET_TYPE...
constant FieldOptions_TARGET_TYPE_FIELD (line 115) | FieldOptions_TARGET_TYPE_FIELD = descriptorpb.FieldOptions_TARGET_TYPE_F...
constant FieldOptions_TARGET_TYPE_ONEOF (line 116) | FieldOptions_TARGET_TYPE_ONEOF = descriptorpb.FieldOptions_TARGET_TYPE_O...
constant FieldOptions_TARGET_TYPE_ENUM (line 117) | FieldOptions_TARGET_TYPE_ENUM = descriptorpb.FieldOptions_TARGET_TYPE_ENUM
constant FieldOptions_TARGET_TYPE_ENUM_ENTRY (line 118) | FieldOptions_TARGET_TYPE_ENUM_ENTRY = descriptorpb.FieldOptions_TARGET_T...
constant FieldOptions_TARGET_TYPE_SERVICE (line 119) | FieldOptions_TARGET_TYPE_SERVICE = descriptorpb.FieldOptions_TARGET_TYPE...
constant FieldOptions_TARGET_TYPE_METHOD (line 120) | FieldOptions_TARGET_TYPE_METHOD = descriptorpb.FieldOptions_TARGET_TYPE_...
constant MethodOptions_IDEMPOTENCY_UNKNOWN (line 127) | MethodOptions_IDEMPOTENCY_UNKNOWN = descriptorpb.MethodOptions_IDEMPOTEN...
constant MethodOptions_NO_SIDE_EFFECTS (line 128) | MethodOptions_NO_SIDE_EFFECTS = descriptorpb.MethodOptions_NO_SIDE_EFFECTS
constant MethodOptions_IDEMPOTENT (line 129) | MethodOptions_IDEMPOTENT = descriptorpb.MethodOptions_IDEMPOTENT
constant FeatureSet_FIELD_PRESENCE_UNKNOWN (line 136) | FeatureSet_FIELD_PRESENCE_UNKNOWN = descriptorpb.FeatureSet_FIELD_PRESEN...
constant FeatureSet_EXPLICIT (line 137) | FeatureSet_EXPLICIT = descriptorpb.FeatureSet_EXPLICIT
constant FeatureSet_IMPLICIT (line 138) | FeatureSet_IMPLICIT = descriptorpb.FeatureSet_IMPLICIT
constant FeatureSet_LEGACY_REQUIRED (line 139) | FeatureSet_LEGACY_REQUIRED = descriptorpb.FeatureSet_LEGACY_REQUIRED
constant FeatureSet_ENUM_TYPE_UNKNOWN (line 146) | FeatureSet_ENUM_TYPE_UNKNOWN = descriptorpb.FeatureSet_ENUM_TYPE_UNKNOWN
constant FeatureSet_OPEN (line 147) | FeatureSet_OPEN = descriptorpb.FeatureSet_OPEN
constant FeatureSet_CLOSED (line 148) | FeatureSet_CLOSED = descriptorpb.FeatureSet_CLOSED
constant FeatureSet_REPEATED_FIELD_ENCODING_UNKNOWN (line 155) | FeatureSet_REPEATED_FIELD_ENCODING_UNKNOWN = descriptorpb.FeatureSet_REP...
constant FeatureSet_PACKED (line 156) | FeatureSet_PACKED = descriptorpb.FeatureSet_PACKED
constant FeatureSet_EXPANDED (line 157) | FeatureSet_EXPANDED = descriptorpb.FeatureSet_EXPANDED
constant FeatureSet_UTF8_VALIDATION_UNKNOWN (line 164) | FeatureSet_UTF8_VALIDATION_UNKNOWN = descriptorpb.FeatureSet_UTF8_VALIDA...
constant FeatureSet_VERIFY (line 165) | FeatureSet_VERIFY = descriptorpb.FeatureSet_VERIFY
constant FeatureSet_NONE (line 166) | FeatureSet_NONE = descriptorpb.FeatureSet_NONE
constant FeatureSet_MESSAGE_ENCODING_UNKNOWN (line 173) | FeatureSet_MESSAGE_ENCODING_UNKNOWN = descriptorpb.FeatureSet_MESSAGE_EN...
constant FeatureSet_LENGTH_PREFIXED (line 174) | FeatureSet_LENGTH_PREFIXED = descriptorpb.FeatureSet_LENGTH_PREFIXED
constant FeatureSet_DELIMITED (line 175) | FeatureSet_DELIMITED = descriptorpb.FeatureSet_DELIMITED
constant FeatureSet_JSON_FORMAT_UNKNOWN (line 182) | FeatureSet_JSON_FORMAT_UNKNOWN = descriptorpb.FeatureSet_JSON_FORMAT_UNK...
constant FeatureSet_ALLOW (line 183) | FeatureSet_ALLOW = descriptorpb.FeatureSet_ALLOW
constant FeatureSet_LEGACY_BEST_EFFORT (line 184) | FeatureSet_LEGACY_BEST_EFFORT = descriptorpb.FeatureSet_LEGACY_BEST_EFFORT
constant GeneratedCodeInfo_Annotation_NONE (line 191) | GeneratedCodeInfo_Annotation_NONE = descriptorpb.GeneratedCodeInfo_Annot...
constant GeneratedCodeInfo_Annotation_SET (line 192) | GeneratedCodeInfo_Annotation_SET = descriptorpb.GeneratedCodeInfo_Annota...
constant GeneratedCodeInfo_Annotation_ALIAS (line 193) | GeneratedCodeInfo_Annotation_ALIAS = descriptorpb.GeneratedCodeInfo_Anno...
constant Default_ExtensionRangeOptions_Verification (line 203) | Default_ExtensionRangeOptions_Verification = descriptorpb.Default_Extens...
constant Default_MethodDescriptorProto_ClientStreaming (line 212) | Default_MethodDescriptorProto_ClientStreaming = descriptorpb.Default_Met...
constant Default_MethodDescriptorProto_ServerStreaming (line 213) | Default_MethodDescriptorProto_ServerStreaming = descriptorpb.Default_Met...
constant Default_FileOptions_JavaMultipleFiles (line 217) | Default_FileOptions_JavaMultipleFiles = descriptorpb.Default_FileOptions...
constant Default_FileOptions_JavaStringCheckUtf8 (line 218) | Default_FileOptions_JavaStringCheckUtf8 = descriptorpb.Default_FileOptio...
constant Default_FileOptions_OptimizeFor (line 219) | Default_FileOptions_OptimizeFor = descriptorpb.Default_FileOptions_Optim...
constant Default_FileOptions_CcGenericServices (line 220) | Default_FileOptions_CcGenericServices = descriptorpb.Default_FileOptions...
constant Default_FileOptions_JavaGenericServices (line 221) | Default_FileOptions_JavaGenericServices = descriptorpb.Default_FileOptio...
constant Default_FileOptions_PyGenericServices (line 222) | Default_FileOptions_PyGenericServices = descriptorpb.Default_FileOptions...
constant Default_FileOptions_Deprecated (line 223) | Default_FileOptions_Deprecated = descriptorpb.Default_FileOptions_Deprec...
constant Default_FileOptions_CcEnableArenas (line 224) | Default_FileOptions_CcEnableArenas = descriptorpb.Default_FileOptions_Cc...
constant Default_MessageOptions_MessageSetWireFormat (line 228) | Default_MessageOptions_MessageSetWireFormat = descriptorpb.Default_Messa...
constant Default_MessageOptions_NoStandardDescriptorAccessor (line 229) | Default_MessageOptions_NoStandardDescriptorAccessor = descriptorpb.Defau...
constant Default_MessageOptions_Deprecated (line 230) | Default_MessageOptions_Deprecated = descriptorpb.Default_MessageOptions_...
constant Default_FieldOptions_Ctype (line 234) | Default_FieldOptions_Ctype = descriptorpb.Default_FieldOptions_Ctype
constant Default_FieldOptions_Jstype (line 235) | Default_FieldOptions_Jstype = descriptorpb.Default_FieldOptions_Jstype
constant Default_FieldOptions_Lazy (line 236) | Default_FieldOptions_Lazy = descriptorpb.Default_FieldOptions_Lazy
constant Default_FieldOptions_UnverifiedLazy (line 237) | Default_FieldOptions_UnverifiedLazy = descriptorpb.Default_FieldOptions_...
constant Default_FieldOptions_Deprecated (line 238) | Default_FieldOptions_Deprecated = descriptorpb.Default_FieldOptions_Depr...
constant Default_FieldOptions_Weak (line 239) | Default_FieldOptions_Weak = descriptorpb.Default_FieldOptions_Weak
constant Default_FieldOptions_DebugRedact (line 240) | Default_FieldOptions_DebugRedact = descriptorpb.Default_FieldOptions_Deb...
constant Default_EnumOptions_Deprecated (line 245) | Default_EnumOptions_Deprecated = descriptorpb.Default_EnumOptions_Deprec...
constant Default_EnumValueOptions_Deprecated (line 249) | Default_EnumValueOptions_Deprecated = descriptorpb.Default_EnumValueOpti...
constant Default_EnumValueOptions_DebugRedact (line 250) | Default_EnumValueOptions_DebugRedact = descriptorpb.Default_EnumValueOpt...
constant Default_ServiceOptions_Deprecated (line 254) | Default_ServiceOptions_Deprecated = descriptorpb.Default_ServiceOptions_...
constant Default_MethodOptions_Deprecated (line 258) | Default_MethodOptions_Deprecated = descriptorpb.Default_MethodOptions_De...
constant Default_MethodOptions_IdempotencyLevel (line 259) | Default_MethodOptions_IdempotencyLevel = descriptorpb.Default_MethodOpti...
function init (line 302) | func init() { file_github_com_golang_protobuf_protoc_gen_go_descriptor_d...
function file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_init (line 303) | func file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor...
FILE: protoc-gen-go/generator/generator.go
function init (line 42) | func init() {
constant generatedCodeVersion (line 53) | generatedCodeVersion = 3
type Plugin (line 57) | type Plugin interface
function RegisterPlugin (line 75) | func RegisterPlugin(p Plugin) {
type GoImportPath (line 80) | type GoImportPath
method String (line 82) | func (p GoImportPath) String() string { return strconv.Quote(string(p)) }
type GoPackageName (line 85) | type GoPackageName
type common (line 94) | type common struct
method GoImportPath (line 99) | func (c *common) GoImportPath() GoImportPath {
method File (line 103) | func (c *common) File() *FileDescriptor { return c.file }
method proto3 (line 109) | func (c *common) proto3() bool { return fileIsProto3(c.file.FileDescri...
function fileIsProto3 (line 105) | func fileIsProto3(file *descriptor.FileDescriptorProto) bool {
type Descriptor (line 112) | type Descriptor struct
method TypeName (line 127) | func (d *Descriptor) TypeName() []string {
type EnumDescriptor (line 146) | type EnumDescriptor struct
method TypeName (line 157) | func (e *EnumDescriptor) TypeName() (s []string) {
method prefix (line 176) | func (e *EnumDescriptor) prefix() string {
method integerValueAsString (line 186) | func (e *EnumDescriptor) integerValueAsString(name string) string {
type ExtensionDescriptor (line 198) | type ExtensionDescriptor struct
method TypeName (line 206) | func (e *ExtensionDescriptor) TypeName() (s []string) {
method DescName (line 221) | func (e *ExtensionDescriptor) DescName() string {
type ImportedDescriptor (line 232) | type ImportedDescriptor struct
method TypeName (line 237) | func (id *ImportedDescriptor) TypeName() []string { return id.o.TypeNa...
type FileDescriptor (line 242) | type FileDescriptor struct
method VarName (line 266) | func (d *FileDescriptor) VarName() string {
method goPackageOption (line 275) | func (d *FileDescriptor) goPackageOption() (impPath GoImportPath, pkg ...
method goFileName (line 294) | func (d *FileDescriptor) goFileName(pathType pathType) string {
method addExport (line 317) | func (d *FileDescriptor) addExport(obj Object, sym symbol) {
type symbol (line 322) | type symbol interface
type messageSymbol (line 328) | type messageSymbol struct
method GenerateAlias (line 341) | func (ms *messageSymbol) GenerateAlias(g *Generator, filename string, ...
type getterSymbol (line 334) | type getterSymbol struct
type enumSymbol (line 349) | type enumSymbol struct
method GenerateAlias (line 354) | func (es enumSymbol) GenerateAlias(g *Generator, filename string, pkg ...
type constOrVarSymbol (line 362) | type constOrVarSymbol struct
method GenerateAlias (line 368) | func (cs constOrVarSymbol) GenerateAlias(g *Generator, filename string...
type Object (line 377) | type Object interface
type Generator (line 384) | type Generator struct
method Error (line 432) | func (g *Generator) Error(err error, msgs ...string) {
method Fail (line 439) | func (g *Generator) Fail(msgs ...string) {
method CommandLineParameters (line 448) | func (g *Generator) CommandLineParameters(parameter string) {
method DefaultPackageName (line 506) | func (g *Generator) DefaultPackageName(obj Object) string {
method GoPackageName (line 515) | func (g *Generator) GoPackageName(importPath GoImportPath) GoPackageNa...
method AddImport (line 530) | func (g *Generator) AddImport(importPath GoImportPath) GoPackageName {
method defaultGoPackage (line 637) | func (g *Generator) defaultGoPackage() GoPackageName {
method SetPackageNames (line 648) | func (g *Generator) SetPackageNames() {
method WrapTypes (line 705) | func (g *Generator) WrapTypes() {
method buildNestedDescriptors (line 766) | func (g *Generator) buildNestedDescriptors(descs []*Descriptor) {
method buildNestedEnums (line 781) | func (g *Generator) buildNestedEnums(descs []*Descriptor, enums []*Enu...
method BuildTypeNameMap (line 930) | func (g *Generator) BuildTypeNameMap() {
method ObjectNamed (line 953) | func (g *Generator) ObjectNamed(typeName string) Object {
method printAtom (line 975) | func (g *Generator) printAtom(v interface{}) {
method P (line 1008) | func (g *Generator) P(str ...interface{}) {
method addInitf (line 1046) | func (g *Generator) addInitf(stmt string, a ...interface{}) {
method In (line 1051) | func (g *Generator) In() { g.indent += "\t" }
method Out (line 1054) | func (g *Generator) Out() {
method GenerateAllFiles (line 1061) | func (g *Generator) GenerateAllFiles() {
method runPlugins (line 1098) | func (g *Generator) runPlugins(file *FileDescriptor) {
method generate (line 1106) | func (g *Generator) generate(file *FileDescriptor) {
method generateHeader (line 1205) | func (g *Generator) generateHeader() {
method PrintComments (line 1227) | func (g *Generator) PrintComments(path string) bool {
method makeComments (line 1239) | func (g *Generator) makeComments(path string) (string, bool) {
method fileByName (line 1253) | func (g *Generator) fileByName(filename string) *FileDescriptor {
method weak (line 1258) | func (g *Generator) weak(i int32) bool {
method generateImports (line 1268) | func (g *Generator) generateImports() {
method generateImported (line 1321) | func (g *Generator) generateImported(id *ImportedDescriptor) {
method generateEnum (line 1341) | func (g *Generator) generateEnum(enum *EnumDescriptor) {
method goTag (line 1449) | func (g *Generator) goTag(message *Descriptor, field *descriptor.Field...
method TypeName (line 1580) | func (g *Generator) TypeName(obj Object) string {
method GoType (line 1585) | func (g *Generator) GoType(message *Descriptor, field *descriptor.Fiel...
method RecordTypeUse (line 1642) | func (g *Generator) RecordTypeUse(t string) {
method getterDefault (line 1693) | func (g *Generator) getterDefault(field *descriptor.FieldDescriptorPro...
method defaultConstantName (line 1736) | func (g *Generator) defaultConstantName(goMessageType, protoFieldName ...
method generateDefaultConstants (line 1960) | func (g *Generator) generateDefaultConstants(mc *msgCtx, topLevelField...
method generateInternalStructFields (line 2035) | func (g *Generator) generateInternalStructFields(mc *msgCtx, topLevelF...
method generateOneofFuncs (line 2050) | func (g *Generator) generateOneofFuncs(mc *msgCtx, topLevelFields []to...
method generateMessageStruct (line 2076) | func (g *Generator) generateMessageStruct(mc *msgCtx, topLevelFields [...
method generateGetters (line 2098) | func (g *Generator) generateGetters(mc *msgCtx, topLevelFields []topLe...
method generateSetters (line 2105) | func (g *Generator) generateSetters(mc *msgCtx, topLevelFields []topLe...
method generateCommonMethods (line 2112) | func (g *Generator) generateCommonMethods(mc *msgCtx) {
method generateMessage (line 2179) | func (g *Generator) generateMessage(message *Descriptor) {
method generateExtension (line 2507) | func (g *Generator) generateExtension(ext *ExtensionDescriptor) {
method generateInitFunction (line 2566) | func (g *Generator) generateInitFunction() {
method generateFileDescriptor (line 2578) | func (g *Generator) generateFileDescriptor(file *FileDescriptor) {
method generateEnumRegistration (line 2617) | func (g *Generator) generateEnumRegistration(enum *EnumDescriptor) {
type pathType (line 415) | type pathType
constant pathTypeImport (line 418) | pathTypeImport pathType = iota
constant pathTypeSourceRelative (line 419) | pathTypeSourceRelative
function New (line 423) | func New() *Generator {
function RegisterUniquePackageName (line 543) | func RegisterUniquePackageName(pkg string, f *FileDescriptor) string {
function cleanPackageName (line 622) | func cleanPackageName(name string) GoPackageName {
function newDescriptor (line 797) | func newDescriptor(desc *descriptor.DescriptorProto, parent *Descriptor,...
function wrapDescriptors (line 834) | func wrapDescriptors(file *FileDescriptor) []*Descriptor {
function wrapThisDescriptor (line 843) | func wrapThisDescriptor(sl []*Descriptor, desc *descriptor.DescriptorPro...
function newEnumDescriptor (line 853) | func newEnumDescriptor(desc *descriptor.EnumDescriptorProto, parent *Des...
function wrapEnumDescriptors (line 869) | func wrapEnumDescriptors(file *FileDescriptor, descs []*Descriptor) []*E...
function wrapExtensions (line 885) | func wrapExtensions(file *FileDescriptor) []*ExtensionDescriptor {
function wrapImported (line 894) | func wrapImported(file *FileDescriptor, g *Generator) (sl []*ImportedDes...
function extractComments (line 913) | func extractComments(file *FileDescriptor) {
type AnnotatedAtoms (line 962) | type AnnotatedAtoms struct
function Annotate (line 970) | func Annotate(file *FileDescriptor, path string, atoms ...interface{}) *...
function needsStar (line 1563) | func needsStar(typ descriptor.FieldDescriptorProto_Type) bool {
type msgCtx (line 1753) | type msgCtx struct
type fieldCommon (line 1759) | type fieldCommon struct
method getProtoName (line 1769) | func (f *fieldCommon) getProtoName() string {
method getGoType (line 1774) | func (f *fieldCommon) getGoType() string {
type simpleField (line 1779) | type simpleField struct
method decl (line 1790) | func (f *simpleField) decl(g *Generator, mc *msgCtx) {
method getter (line 1795) | func (f *simpleField) getter(g *Generator, mc *msgCtx) {
method setter (line 1828) | func (f *simpleField) setter(g *Generator, mc *msgCtx) {
method getProtoDef (line 1833) | func (f *simpleField) getProtoDef() string {
method getProtoTypeName (line 1838) | func (f *simpleField) getProtoTypeName() string {
method getProtoType (line 1843) | func (f *simpleField) getProtoType() descriptor.FieldDescriptorProto_T...
type oneofSubField (line 1848) | type oneofSubField struct
method typedNil (line 1861) | func (f *oneofSubField) typedNil(g *Generator) {
method getProtoDef (line 1866) | func (f *oneofSubField) getProtoDef() string {
method getProtoTypeName (line 1871) | func (f *oneofSubField) getProtoTypeName() string {
method getProtoType (line 1876) | func (f *oneofSubField) getProtoType() descriptor.FieldDescriptorProto...
type oneofField (line 1882) | type oneofField struct
method decl (line 1889) | func (f *oneofField) decl(g *Generator, mc *msgCtx) {
method getter (line 1899) | func (f *oneofField) getter(g *Generator, mc *msgCtx) {
method setter (line 1938) | func (f *oneofField) setter(g *Generator, mc *msgCtx) {
type topLevelField (line 1943) | type topLevelField interface
type defField (line 1950) | type defField interface
type byTypeName (line 2430) | type byTypeName
method Len (line 2432) | func (a byTypeName) Len() int { return len(a) }
method Swap (line 2433) | func (a byTypeName) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
method Less (line 2434) | func (a byTypeName) Less(i, j int) bool { return *a[i].TypeName < *a[j...
function mapFieldKeys (line 2437) | func mapFieldKeys(m map[*descriptor.FieldDescriptorProto]string) []*desc...
function unescape (line 2453) | func unescape(s string) string {
function isASCIILower (line 2633) | func isASCIILower(c byte) bool {
function isASCIIDigit (line 2638) | func isASCIIDigit(c byte) bool {
function CamelCase (line 2650) | func CamelCase(s string) string {
function CamelCaseSlice (line 2691) | func CamelCaseSlice(elem []string) string { return CamelCase(strings.Joi...
function dottedSlice (line 2694) | func dottedSlice(elem []string) string { return strings.Join(elem, ".") }
function isOptional (line 2697) | func isOptional(field *descriptor.FieldDescriptorProto) bool {
function isRequired (line 2702) | func isRequired(field *descriptor.FieldDescriptorProto) bool {
function isRepeated (line 2707) | func isRepeated(field *descriptor.FieldDescriptorProto) bool {
function isScalar (line 2712) | func isScalar(field *descriptor.FieldDescriptorProto) bool {
function badToUnderscore (line 2740) | func badToUnderscore(r rune) rune {
function baseName (line 2748) | func baseName(name string) string {
constant packagePath (line 2770) | packagePath = 2
constant messagePath (line 2771) | messagePath = 4
constant enumPath (line 2772) | enumPath = 5
constant messageFieldPath (line 2774) | messageFieldPath = 2
constant messageMessagePath (line 2775) | messageMessagePath = 3
constant messageEnumPath (line 2776) | messageEnumPath = 4
constant messageOneofPath (line 2777) | messageOneofPath = 8
constant enumValuePath (line 2779) | enumValuePath = 2
function init (line 2784) | func init() {
FILE: protoc-gen-go/generator/internal/remap/remap.go
type Location (line 16) | type Location struct
type Map (line 22) | type Map
method Find (line 27) | func (m Map) Find(pos, end int) (Location, bool) {
method add (line 38) | func (m Map) add(opos, oend, npos, nend int) {
function Compute (line 44) | func Compute(input, output []byte) (Map, error) {
type tokinfo (line 62) | type tokinfo struct
function tokenize (line 67) | func tokenize(src []byte) []tokinfo {
FILE: protoc-gen-go/generator/internal/remap/remap_test.go
function TestErrors (line 12) | func TestErrors(t *testing.T) {
function TestMatching (line 31) | func TestMatching(t *testing.T) {
FILE: protoc-gen-go/grpc/grpc.go
constant generatedCodeVersion (line 26) | generatedCodeVersion = 6
constant contextPkgPath (line 31) | contextPkgPath = "context"
constant grpcPkgPath (line 32) | grpcPkgPath = "google.golang.org/grpc"
constant codePkgPath (line 33) | codePkgPath = "google.golang.org/grpc/codes"
constant statusPkgPath (line 34) | statusPkgPath = "google.golang.org/grpc/status"
function init (line 37) | func init() {
type grpc (line 43) | type grpc struct
method Name (line 48) | func (g *grpc) Name() string {
method Init (line 61) | func (g *grpc) Init(gen *generator.Generator) {
method objectNamed (line 67) | func (g *grpc) objectNamed(name string) generator.Object {
method typeName (line 73) | func (g *grpc) typeName(str string) string {
method P (line 78) | func (g *grpc) P(args ...interface{}) { g.gen.P(args...) }
method Generate (line 81) | func (g *grpc) Generate(file *generator.FileDescriptor) {
method GenerateImports (line 106) | func (g *grpc) GenerateImports(file *generator.FileDescriptor) {
method generateService (line 121) | func (g *grpc) generateService(file *generator.FileDescriptor, service...
method generateUnimplementedServer (line 265) | func (g *grpc) generateUnimplementedServer(servName string, service *p...
method generateServerMethodConcrete (line 279) | func (g *grpc) generateServerMethodConcrete(servName string, method *p...
method generateClientSignature (line 294) | func (g *grpc) generateClientSignature(servName string, method *pb.Met...
method generateClientMethod (line 311) | func (g *grpc) generateClientMethod(servName, fullServName, serviceDes...
method generateServerSignatureWithParamNames (line 393) | func (g *grpc) generateServerSignatureWithParamNames(servName string, ...
method generateServerSignature (line 417) | func (g *grpc) generateServerSignature(servName string, method *pb.Met...
method generateServerMethod (line 440) | func (g *grpc) generateServerMethod(servName, fullServName string, met...
function unexport (line 114) | func unexport(s string) string { return strings.ToLower(s[:1]) + s[1:] }
FILE: protoc-gen-go/main.go
function main (line 36) | func main() {
FILE: protoc-gen-go/plugin/plugin.pb.go
constant CodeGeneratorResponse_FEATURE_NONE (line 17) | CodeGeneratorResponse_FEATURE_NONE = pluginpb.CodeGeneratorResponse_FEAT...
constant CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL (line 18) | CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL = pluginpb.CodeGeneratorRe...
constant CodeGeneratorResponse_FEATURE_SUPPORTS_EDITIONS (line 19) | CodeGeneratorResponse_FEATURE_SUPPORTS_EDITIONS = pluginpb.CodeGenerator...
function init (line 54) | func init() { file_github_com_golang_protobuf_protoc_gen_go_plugin_plugi...
function file_github_com_golang_protobuf_protoc_gen_go_plugin_plugin_proto_init (line 55) | func file_github_com_golang_protobuf_protoc_gen_go_plugin_plugin_proto_i...
FILE: ptypes/any.go
constant urlPrefix (line 18) | urlPrefix = "type.googleapis.com/"
function AnyMessageName (line 24) | func AnyMessageName(any *anypb.Any) (string, error) {
function anyMessageName (line 28) | func anyMessageName(any *anypb.Any) (protoreflect.FullName, error) {
function MarshalAny (line 45) | func MarshalAny(m proto.Message) (*anypb.Any, error) {
function Empty (line 68) | func Empty(any *anypb.Any) (proto.Message, error) {
function UnmarshalAny (line 88) | func UnmarshalAny(any *anypb.Any, m proto.Message) error {
function Is (line 114) | func Is(any *anypb.Any, m proto.Message) bool {
type DynamicAny (line 137) | type DynamicAny struct
method String (line 139) | func (m DynamicAny) String() string {
method Reset (line 145) | func (m DynamicAny) Reset() {
method ProtoMessage (line 151) | func (m DynamicAny) ProtoMessage() {
method ProtoReflect (line 154) | func (m DynamicAny) ProtoReflect() protoreflect.Message {
type dynamicAny (line 161) | type dynamicAny struct
method Type (line 163) | func (m dynamicAny) Type() protoreflect.MessageType {
method New (line 166) | func (m dynamicAny) New() protoreflect.Message {
method Interface (line 169) | func (m dynamicAny) Interface() protoreflect.ProtoMessage {
type dynamicAnyType (line 173) | type dynamicAnyType struct
method New (line 175) | func (t dynamicAnyType) New() protoreflect.Message {
method Zero (line 178) | func (t dynamicAnyType) Zero() protoreflect.Message {
FILE: ptypes/any/any.pb.go
function init (line 40) | func init() { file_github_com_golang_protobuf_ptypes_any_any_proto_init() }
function file_github_com_golang_protobuf_ptypes_any_any_proto_init (line 41) | func file_github_com_golang_protobuf_ptypes_any_any_proto_init() {
FILE: ptypes/any_test.go
function TestMarshalUnmarshal (line 17) | func TestMarshalUnmarshal(t *testing.T) {
function TestIs (line 32) | func TestIs(t *testing.T) {
function TestIsDifferentUrlPrefixes (line 50) | func TestIsDifferentUrlPrefixes(t *testing.T) {
function TestIsCornerCases (line 58) | func TestIsCornerCases(t *testing.T) {
function TestUnmarshalDynamic (line 73) | func TestUnmarshalDynamic(t *testing.T) {
function TestEmpty (line 88) | func TestEmpty(t *testing.T) {
function TestEmptyCornerCases (line 110) | func TestEmptyCornerCases(t *testing.T) {
function TestAnyReflect (line 134) | func TestAnyReflect(t *testing.T) {
FILE: ptypes/duration.go
constant maxSeconds (line 18) | maxSeconds = int64(10000 * 365.25 * 24 * 60 * 60)
constant minSeconds (line 19) | minSeconds = -maxSeconds
function Duration (line 26) | func Duration(dur *durationpb.Duration) (time.Duration, error) {
function DurationProto (line 46) | func DurationProto(d time.Duration) *durationpb.Duration {
function validateDuration (line 61) | func validateDuration(dur *durationpb.Duration) error {
FILE: ptypes/duration/duration.pb.go
function init (line 41) | func init() { file_github_com_golang_protobuf_ptypes_duration_duration_p...
function file_github_com_golang_protobuf_ptypes_duration_duration_proto_init (line 42) | func file_github_com_golang_protobuf_ptypes_duration_duration_proto_init...
FILE: ptypes/duration_test.go
constant minGoSeconds (line 18) | minGoSeconds = math.MinInt64 / int64(1e9)
constant maxGoSeconds (line 19) | maxGoSeconds = math.MaxInt64 / int64(1e9)
function TestValidateDuration (line 62) | func TestValidateDuration(t *testing.T) {
function TestDuration (line 72) | func TestDuration(t *testing.T) {
function TestDurationProto (line 86) | func TestDurationProto(t *testing.T) {
FILE: ptypes/empty/empty.pb.go
function init (line 40) | func init() { file_github_com_golang_protobuf_ptypes_empty_empty_proto_i...
function file_github_com_golang_protobuf_ptypes_empty_empty_proto_init (line 41) | func file_github_com_golang_protobuf_ptypes_empty_empty_proto_init() {
FILE: ptypes/struct/struct.pb.go
constant NullValue_NULL_VALUE (line 17) | NullValue_NULL_VALUE = structpb.NullValue_NULL_VALUE
function init (line 56) | func init() { file_github_com_golang_protobuf_ptypes_struct_struct_proto...
function file_github_com_golang_protobuf_ptypes_struct_struct_proto_init (line 57) | func file_github_com_golang_protobuf_ptypes_struct_struct_proto_init() {
FILE: ptypes/timestamp.go
constant minValidSeconds (line 19) | minValidSeconds = -62135596800
constant maxValidSeconds (line 22) | maxValidSeconds = 253402300800
function Timestamp (line 38) | func Timestamp(ts *timestamppb.Timestamp) (time.Time, error) {
function TimestampNow (line 53) | func TimestampNow() *timestamppb.Timestamp {
function TimestampProto (line 65) | func TimestampProto(t time.Time) (*timestamppb.Timestamp, error) {
function TimestampString (line 81) | func TimestampString(ts *timestamppb.Timestamp) string {
function validateTimestamp (line 98) | func validateTimestamp(ts *timestamppb.Timestamp) error {
FILE: ptypes/timestamp/timestamp.pb.go
function init (line 42) | func init() { file_github_com_golang_protobuf_ptypes_timestamp_timestamp...
function file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_init (line 43) | func file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_in...
FILE: ptypes/timestamp_test.go
function TestValidateTimestamp (line 52) | func TestValidateTimestamp(t *testing.T) {
function TestTimestamp (line 61) | func TestTimestamp(t *testing.T) {
function TestTimestampProto (line 81) | func TestTimestampProto(t *testing.T) {
function TestTimestampString (line 93) | func TestTimestampString(t *testing.T) {
function utcDate (line 109) | func utcDate(year, month, day int) time.Time {
function TestTimestampNow (line 113) | func TestTimestampNow(t *testing.T) {
FILE: ptypes/wrappers/wrappers.pb.go
function init (line 49) | func init() { file_github_com_golang_protobuf_ptypes_wrappers_wrappers_p...
function file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_init (line 50) | func file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_init...
Condensed preview — 70 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (879K chars).
[
{
"path": ".github/ISSUE_TEMPLATE/bug_report.md",
"chars": 576,
"preview": "---\nname: Bug report\nabout: Create a report to help us improve\n\n---\n\n**What version of protobuf and what language are yo"
},
{
"path": ".github/ISSUE_TEMPLATE/feature_request.md",
"chars": 523,
"preview": "---\nname: Feature request\nabout: Suggest an idea for this project\n\n---\n\n**Is your feature request related to a problem? "
},
{
"path": ".github/ISSUE_TEMPLATE/question.md",
"chars": 63,
"preview": "---\nname: Question\nabout: Questions and troubleshooting\n\n---\n\n\n"
},
{
"path": ".github/workflows/test.yml",
"chars": 571,
"preview": "on: [push, pull_request]\nname: Test\njobs:\n test:\n strategy:\n matrix:\n go-version: [1.17.x, 1.18.x, 1.19."
},
{
"path": ".gitignore",
"chars": 46,
"preview": ".cache\nvendor\ncmd/protoc-gen-go/protoc-gen-go\n"
},
{
"path": "AUTHORS",
"chars": 173,
"preview": "# This source code refers to The Go Authors for copyright purposes.\n# The master list of authors is in the main Go distr"
},
{
"path": "CONTRIBUTING.md",
"chars": 1260,
"preview": "# Contributing to Go Protocol Buffers\n\nGo protocol buffers is an open source project and accepts contributions.\n\nThis pr"
},
{
"path": "CONTRIBUTORS",
"chars": 170,
"preview": "# This source code was written by the Go contributors.\n# The master list of contributors is in the main Go distribution,"
},
{
"path": "LICENSE",
"chars": 1480,
"preview": "Copyright 2010 The Go Authors. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without"
},
{
"path": "README.md",
"chars": 6362,
"preview": "# Go support for Protocol Buffers\n\n[. The extraction includes 70 files (794.3 KB), approximately 269.0k tokens, and a symbol index with 2026 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.