mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
vendor update for CSI 0.3.0
This commit is contained in:
Gopkg.lockGopkg.toml
vendor
github.com
container-storage-interface
spec
golang
protobuf
.gitignore.travis.ymlMake.protobufMakefileREADME.md
conformance
descriptor
jsonpb
proto
Makefileall_test.goany_test.goclone.goclone_test.godecode.godecode_test.godiscard.godiscard_test.goencode.goequal.goequal_test.goextensions.goextensions_test.golib.gomap_test.gomessage_set.gomessage_set_test.gopointer_reflect.gopointer_unsafe.goproperties.go
proto3_proto
proto3_test.gosize2_test.gosize_test.gotable_marshal.gotable_merge.gotable_unmarshal.gotest_proto
testdata
text.gotext_parser.gotext_parser_test.gotext_test.goprotoc-gen-go
Makefile
descriptor
generator
golden_test.gogrpc
plugin
testdata
Makefilemain_test.go
deprecated
extension_base
extension_extra
extension_test.goextension_user
grpc
imp.pb.go.goldenimport_public
import_public_test.goimports
fmt
test_a_1
test_a_2
test_b_1
test_import_a1m1.pb.gotest_import_a1m1.prototest_import_a1m2.pb.gotest_import_a1m2.prototest_import_all.pb.gotest_import_all.protomulti
my_test
proto3
ptypes
regenerate.shkubernetes-csi
drivers
.travis.ymlGopkg.lockGopkg.tomlLICENSEMakefileREADME.md
app
hostpathplugin
hack
pkg
cinder
csi-common
controllerserver-default.godriver_test.goidentityserver-default.gonodeserver-default.gonodeserver-default_test.go
flexadapter
hostpath
iscsi
nfs
golang.org
x
net
CONTRIBUTING.md
dns
dnsmessage
html
http
http2
client_conn_pool.goconfigure_transport.goflow.goflow_test.goframe.goframe_test.gogo111.gogo17.go
h2demo
h2i
hpack
http2.gohttp2_test.gonot_go111.gonot_go17.goserver.goserver_test.gotransport.gotransport_test.gowrite.goicmp
diag_test.godstunreach.goecho.goendpoint.goextension.goextension_test.gointerface.goipv4_test.golisten_stub.gomessage.gomessage_test.gompls.gomultipart.gomultipart_test.gopackettoobig.goparamprob.goping_test.gotimeexceeded.go
internal
iana
nettest
socket
socks
sockstest
ipv4
batch.godgramopt.godoc.goendpoint.gogen.gogenericopt.goheader.gohelper.goiana.gomulticast_test.gomulticastlistener_test.gomulticastsockopt_test.gopacket.gopayload_cmsg.gopayload_cmsg_go1_8.gopayload_cmsg_go1_9.gopayload_nocmsg.goreadwrite_go1_8_test.goreadwrite_go1_9_test.goreadwrite_test.gounicast_test.gounicastsockopt_test.go
ipv6
batch.godgramopt.godoc.goendpoint.gogen.gogenericopt.gohelper.goiana.goicmp_test.gomulticast_test.gomulticastlistener_test.gomulticastsockopt_test.gopayload_cmsg.gopayload_cmsg_go1_8.gopayload_cmsg_go1_9.gopayload_nocmsg.goreadwrite_go1_8_test.goreadwrite_go1_9_test.goreadwrite_test.gosockopt_test.gounicast_test.gounicastsockopt_test.go
netutil
proxy
publicsuffix
route
trace
webdav
websocket
sys
CONTRIBUTING.md
cpu
cpu.gocpu_arm.gocpu_arm64.gocpu_gc_x86.gocpu_gccgo.ccpu_gccgo.gocpu_mips64x.gocpu_mipsx.gocpu_ppc64x.gocpu_s390x.gocpu_test.gocpu_x86.gocpu_x86.s
plan9
mkerrors.shmksyscall.plsyscall.gosyscall_plan9.gozsyscall_plan9_386.gozsyscall_plan9_amd64.gozsyscall_plan9_arm.go
unix
asm_dragonfly_amd64.scap_freebsd.gocreds_test.godev_darwin_test.godev_dragonfly_test.godev_linux_test.godev_netbsd_test.godev_openbsd_test.godev_solaris_test.goexample_test.gofcntl.gofcntl_linux_32bit.gogccgo_c.cioctl.go
linux
mkerrors.shmkpost.gomksysctl_openbsd.plopenbsd_pledge.gosyscall.gosyscall_bsd.gosyscall_darwin.gosyscall_darwin_test.gosyscall_dragonfly.gosyscall_freebsd.gosyscall_freebsd_test.gosyscall_linux.gosyscall_linux_386.gosyscall_linux_amd64.gosyscall_linux_arm.gosyscall_linux_arm64.gosyscall_linux_gc_386.gosyscall_linux_gccgo_386.gosyscall_linux_gccgo_arm.gosyscall_linux_mips64x.gosyscall_linux_mipsx.gosyscall_linux_ppc64x.gosyscall_linux_s390x.gosyscall_linux_sparc64.gosyscall_linux_test.gosyscall_netbsd.gosyscall_openbsd.gosyscall_openbsd_amd64.gosyscall_solaris.gosyscall_solaris_amd64.gosyscall_unix.gosyscall_unix_test.gotypes_netbsd.goxattr_test.gozerrors_darwin_386.gozerrors_darwin_amd64.gozerrors_darwin_arm.gozerrors_darwin_arm64.gozerrors_dragonfly_amd64.gozerrors_freebsd_386.gozerrors_freebsd_amd64.gozerrors_freebsd_arm.gozerrors_linux_386.gozerrors_linux_amd64.gozerrors_linux_arm.gozerrors_linux_arm64.gozerrors_linux_mips.gozerrors_linux_mips64.gozerrors_linux_mips64le.gozerrors_linux_mipsle.gozerrors_linux_ppc64.gozerrors_linux_ppc64le.gozerrors_linux_s390x.gozerrors_linux_sparc64.gozerrors_netbsd_386.gozerrors_netbsd_amd64.gozerrors_netbsd_arm.gozerrors_openbsd_386.gozerrors_openbsd_amd64.gozerrors_openbsd_arm.gozerrors_solaris_amd64.gozsyscall_darwin_386.gozsyscall_darwin_amd64.gozsyscall_darwin_arm.gozsyscall_darwin_arm64.gozsyscall_dragonfly_amd64.gozsyscall_freebsd_386.gozsyscall_freebsd_amd64.gozsyscall_freebsd_arm.gozsyscall_linux_386.gozsyscall_linux_amd64.gozsyscall_linux_arm.gozsyscall_linux_arm64.gozsyscall_linux_mips.gozsyscall_linux_mips64.gozsyscall_linux_mips64le.gozsyscall_linux_mipsle.gozsyscall_linux_ppc64.gozsyscall_linux_ppc64le.gozsyscall_linux_s390x.gozsyscall_linux_sparc64.gozsyscall_netbsd_386.gozsyscall_netbsd_amd64.gozsyscall_netbsd_arm.gozsyscall_openbsd_386.gozsyscall_openbsd_amd64.gozsyscall_openbsd_arm.gozsyscall_solaris_amd64.gozsysctl_openbsd_386.gozsysctl_openbsd_amd64.gozsysctl_openbsd_arm.gozsysnum_linux_ppc64.gozsysnum_linux_ppc64le.gozsysnum_linux_s390x.gozsysnum_linux_sparc64.gozsysnum_netbsd_386.gozsysnum_netbsd_amd64.gozsysnum_netbsd_arm.gozsysnum_openbsd_386.gozsysnum_openbsd_amd64.gozsysnum_openbsd_arm.goztypes_darwin_386.goztypes_darwin_amd64.goztypes_darwin_arm.goztypes_darwin_arm64.goztypes_dragonfly_amd64.goztypes_linux_386.goztypes_linux_amd64.goztypes_linux_arm.goztypes_linux_arm64.goztypes_linux_mips.goztypes_linux_mips64.goztypes_linux_mips64le.goztypes_linux_mipsle.goztypes_linux_ppc64.goztypes_linux_ppc64le.goztypes_linux_s390x.goztypes_linux_sparc64.goztypes_netbsd_386.goztypes_netbsd_amd64.goztypes_netbsd_arm.goztypes_openbsd_amd64.goztypes_solaris_amd64.gowindows
google.golang.org
genproto
.travis.yml
googleapis
api
annotations
authorization_config.pb.goconfigchange
distribution
experimental.pb.gohttpbody
label
metric
monitoredres
serviceconfig
auth.pb.gobackend.pb.gobilling.pb.goconsumer.pb.gocontext.pb.gocontrol.pb.godocumentation.pb.goendpoint.pb.golog.pb.gologging.pb.gomonitoring.pb.goquota.pb.goservice.pb.gosource_info.pb.gosystem_parameter.pb.gousage.pb.go
servicecontrol
v1
servicemanagement
appengine
legacy
logging
v1
assistant
embedded
bigtable
admin
cluster
table
v2
v1
v2
bytestream
cloud
audit
automl
v1beta1
bigquery
billing
dataproc
v1
v1beta2
dialogflow
v2
agent.pb.gocontext.pb.goentity_type.pb.gointent.pb.gosession.pb.gosession_entity_type.pb.gowebhook.pb.go
v2beta1
functions
iot
kms
language
location
ml
v1
oslogin
redis
v1beta1
resourcemanager
runtimeconfig
speech
support
tasks
texttospeech
videointelligence
v1
v1beta1
v1beta2
v1p1beta1
vision
v1
v1p1beta1
v1p2beta1
v1p3beta1
websecurityscanner
container
datastore
admin
v1
v1beta3
devtools
build
cloudbuild
clouddebugger
clouderrorreporting
cloudprofiler
cloudtrace
containeranalysis
v1alpha1
remoteexecution
v1test
remoteworkers
resultstore
v2
source
sourcerepo
example
library
firestore
admin
v1beta1
genomics
v1
annotations.pb.gocigar.pb.godatasets.pb.gooperations.pb.goposition.pb.gorange.pb.goreadalignment.pb.goreadgroup.pb.goreadgroupset.pb.goreads.pb.goreferences.pb.govariants.pb.go
v1alpha2
home
graph
iam
logging
type
v2
longrunning
monitoring
v3
privacy
dlp
pubsub
rpc
spanner
admin
v1
storagetransfer
streetview
type
color
date
dayofweek
latlng
money
postaladdress
timeofday
watcher
protobuf
regen.goregen.shgrpc
.travis.ymlCONTRIBUTING.md
Documentation
MakefileREADME.mdbackoff.gobalancer.gobalancer
balancer.go
balancer_conn_wrappers.gobalancer_switching_test.gobalancer_test.gobalancer_v1_wrapper.gobase
grpclb
grpc_lb_v1
grpclb.gogrpclb_picker.gogrpclb_remote_balancer.gogrpclb_test.gogrpclb_util.gogrpclb_util_test.goregenerate.shroundrobin
benchmark
call.gocall_test.gochannelz
clientconn.goclientconn_test.gocodes
credentials
alts
encoding
envconfig.goexamples
go16.gogo17.gogrpclb
grpclog
health
interceptor.gointernal
interop
metadata
naming
picker_wrapper.gopicker_wrapper_test.gopickfirst_test.goproxy_test.goreflection
resolver
resolver_conn_wrapper.goresolver_conn_wrapper_test.gorpc_util.gorpc_util_test.goserver.goserver_test.goservice_config.gostats
status
stickiness_linkedmap.gostickiness_linkedmap_test.gostickiness_test.gostream.gostress
test
transport
controlbuf.goflowcontrol.gohandler_server.gohttp2_client.gohttp2_server.gohttp_util.gohttp_util_test.gotransport.gotransport_test.go
version.govet.shk8s.io
kubernetes
.github
.gitignoreCHANGELOG-1.10.mdCHANGELOG-1.11.mdCHANGELOG.mdGodeps
OWNERSOWNERS_ALIASESSECURITY_CONTACTSapi
openapi-spec
swagger-spec
admissionregistration.k8s.io.jsonadmissionregistration.k8s.io_v1beta1.jsonapis.jsonapps.jsonapps_v1.jsonapps_v1beta1.jsonapps_v1beta2.jsonauthentication.k8s.io.jsonauthorization.k8s.io.jsonautoscaling.jsonbatch.jsonbatch_v1.jsonbatch_v1beta1.jsonbatch_v2alpha1.jsoncertificates.k8s.io.jsoncertificates.k8s.io_v1beta1.jsonevents.k8s.io.jsonextensions.jsonextensions_v1beta1.jsonnetworking.k8s.io.jsonnetworking.k8s.io_v1.jsonpolicy.jsonpolicy_v1beta1.jsonrbac.authorization.k8s.io.jsonrbac.authorization.k8s.io_v1.jsonrbac.authorization.k8s.io_v1alpha1.jsonrbac.authorization.k8s.io_v1beta1.jsonresourceListing.jsonscheduling.k8s.io.jsonscheduling.k8s.io_v1beta1.jsonsettings.k8s.io.jsonsettings.k8s.io_v1alpha1.jsonstorage.k8s.io.jsonstorage.k8s.io_v1.jsonstorage.k8s.io_v1beta1.jsonv1.json
build
BUILDOWNERSREADME.mdbindata.bzl
build-image
common.shcopy-output.shdebian-hyperkube-base
debs
lib
make-build-image.shmake-clean.shpackage-tarballs.shrelease-in-a-container.shrelease-tars
release.shroot
rpms
10-kubeadm.confBUILDcri-tools.speckubeadm.speckubectl.speckubelet.envkubelet.speckubernetes-cni.spec
run.shshell.shutil.shvisible_to
workspace.bzlworkspace_mirror.bzlcluster
BUILD
addons
addon-manager
calico-policy-controller
calico-clusterrole.yamlcalico-node-daemonset.yamlclusterinformations-crd.yamlfelixconfigurations-crd.yamlglobalbgpconfig-crd.yamlglobalfelixconfig-crd.yamlglobalnetworkpolicy-crd.yamlglobalnetworksets-crd.yamlhostendpoints-crd.yamlippool-crd.yamlnetworkpolicies-crd.yamltypha-deployment.yamltypha-horizontal-autoscaler-deployment.yamltypha-vertical-autoscaler-clusterrole.yamltypha-vertical-autoscaler-clusterrolebinding.yamltypha-vertical-autoscaler-serviceaccount.yaml
cluster-loadbalancing
cluster-monitoring
dashboard
device-plugins
nvidia-gpu
dns-horizontal-autoscaler
dns
coredns
kube-dns
etcd-empty-dir-cleanup
etcd-empty-dir-cleanup.yaml
podsecuritypolicies
fluentd-elasticsearch
fluentd-gcp
OWNERSevent-exporter.yamlfluentd-gcp-configmap-old.yamlfluentd-gcp-configmap.yamlfluentd-gcp-ds.yaml
podsecuritypolicies
scaler-deployment.yamlistio
kube-proxy
metadata-agent
stackdriver
metadata-proxy
metrics-server
node-problem-detector
prometheus
OWNERSREADME.mdalertmanager-configmap.yamlalertmanager-deployment.yamlalertmanager-pvc.yamlalertmanager-service.yamlkube-state-metrics-deployment.yamlkube-state-metrics-rbac.yamlkube-state-metrics-service.yamlnode-exporter-ds.ymlnode-exporter-service.yamlprometheus-configmap.yamlprometheus-rbac.yamlprometheus-service.yamlprometheus-statefulset.yaml
rbac
cluster-autoscaler
centos
build.shconfig-build.shconfig-default.shconfig-test.shdeployAddons.shmake-ca-cert.sh
clientbin.shcommon.shmaster
node
util.shgce
BUILDOWNERSconfig-common.shconfig-default.shconfig-test.shdelete-stranded-load-balancers.sh
get-kube-local.shaddons
podsecuritypolicies
gci
BUILDapiserver_manifest_test.goconfigure-helper.shconfigure.shconfigure_helper_test.goflexvolume_node_setup.shhealth-monitor.shhelper.shmaster-helper.shmaster.yaml
list-resources.shmounter
node-helper.shnode.yamlshutdown.shmanifests
BUILDcluster-autoscaler.manifeste2e-image-puller.manifestetcd-empty-dir-cleanup.yamletcd.manifestglbc.manifestkms-plugin-container.manifestkube-addon-manager.yamlkube-apiserver.manifestkube-controller-manager.manifestkube-proxy.manifestkube-scheduler.manifestrescheduler.manifest
upgrade-aliases.shupgrade.shutil.shimages
etcd-empty-dir-cleanup
etcd
DockerfileMakefileREADME.md
attachlease
migrate-if-needed.shmigrate
BUILDdata_dir.godata_dir_test.gointegration_test.gomigrate.gomigrate_client.gomigrate_server.gomigrator.gorollback_v2.go
testdata
versions.goversions_test.gorollback
start-stop-etcd.shhyperkube
juju
config-default.shconfig-test.sh
kube-down.shkube-up.shkube-util.shkubeadm.shkubectl.shlayers
kubernetes-e2e
kubernetes-master
kubernetes-worker
prereqs
util.shkubemark
kubernetes-anywhere
local
log-dump
pre-existing
restore-from-backup.shskeleton
test-e2e.shtest-network.shtest-smoke.shupdate-storage-objects.shvalidate-cluster.shcmd
clicheck
cloud-controller-manager
controller-manager
app
BUILDconfig.goinsecure_serving.go
options
BUILDattachdetachcontroller.gocloudprovider.gocsrsigningcontroller.godaemonsetcontroller.godebugging.godeploymentcontroller.godeprecatedcontroller.goendpointcontroller.gogarbagecollectorcontroller.gogeneric.gohpacontroller.goinsecure_serving.gojobcontroller.gokubecloudshared.gonamespacecontroller.gonodeipamcontroller.gonodelifecyclecontroller.gooptions.gopersistentvolumebindercontroller.gopodgccontroller.goreplicasetcontroller.goreplicationcontroller.goresourcequotacontroller.goserviceaccountcontroller.goservicecontroller.go
serve.gogendocs
genkubedocs
genman
genyaml
hyperkube
importverifier
kube-apiserver
kube-controller-manager
app
kube-proxy
kube-scheduler
OWNERS
app
kubeadm
.import-restrictionsOWNERS
app
BUILD
apis
kubeadm
BUILDbootstraptokenhelpers.gobootstraptokenhelpers_test.gobootstraptokenstring.gobootstraptokenstring_test.go
fuzzer
install
scheme
types.gov1alpha1
BUILDconversion.goconversion_test.godefaults.goregister.gotypes.goupgrade.goupgrade_test.gozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
v1alpha2
BUILDbootstraptokenstring.gobootstraptokenstring_test.godefaults.godefaults_unix.godefaults_windows.godoc.goregister.gotypes.gozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
validation
zz_generated.deepcopy.gocmd
BUILDcmd.gocompletion.gocompletion_test.goconfig.goconfig_test.goinit.gojoin.gojoin_test.go
options
phases
BUILDaddons.goaddons_test.gobootstraptoken.gocerts.gocerts_test.gocontrolplane.gocontrolplane_test.goetcd.goetcd_test.gokubeconfig.gokubeconfig_test.gokubelet.gokubelet_test.gomarkmaster.gophase.goselfhosting.gouploadconfig.goutil.go
reset.goreset_test.gotoken.gotoken_test.goupgrade
BUILDapply.goapply_test.gocommon.gocommon_test.godiff.godiff_test.gonode.goplan.goplan_test.go
version.goversion_test.gotestdata
upgrade.goconstants
discovery
features
images
kubeadm.gophases
addons
dns
proxy
bootstraptoken
certs
controlplane
etcd
kubeconfig
kubelet
markmaster
patchnode
selfhosting
upgrade
BUILDcompute.gocompute_test.goconfiguration.gopolicy.gopolicy_test.gopostupgrade.gopostupgrade_test.gopostupgrade_v18_19.goprepull.gostaticpods.gostaticpods_test.goversiongetter.go
uploadconfig
preflight
util
BUILD
apiclient
arguments.goarguments_test.goaudit
cgroupdriver.gocgroupdriver_test.goconfig
BUILDcluster.gomasterconfig.gomasterconfig_test.gonodeconfig.gonodeconfig_test.go
testdata
conversion
master
node
defaulting
v1alpha1_upgrade
validation
dryrun
endpoint.goendpoint_test.goerror.goerror_test.goetcd.goetcd
marshal.gomarshal_test.gostaticpod
token
version.goversion_test.gotest
kubectl
kubelet
docs
.generated_docs
admin
kubeadm_alpha_phase_addon_coredns.mdkubeadm_alpha_phase_certs_etcd-ca.mdkubeadm_alpha_phase_certs_etcd-healthcheck-client.mdkubeadm_alpha_phase_kubelet.mdkubeadm_alpha_phase_kubelet_config.mdkubeadm_alpha_phase_kubelet_config_download.mdkubeadm_alpha_phase_kubelet_config_enable-dynamic.mdkubeadm_alpha_phase_kubelet_config_upload.mdkubeadm_alpha_phase_kubelet_config_write-to-disk.mdkubeadm_alpha_phase_kubelet_write-env-file.mdkubeadm_config_images.mdkubeadm_config_images_list.mdkubeadm_config_images_pull.mdkubeadm_config_migrate.mdkubeadm_config_print-default.mdkubeadm_upgrade_diff.mdkubeadm_upgrade_node.mdkubeadm_upgrade_node_config.md
api-reference
admissionregistration.k8s.io
v1beta1
apps
batch
certificates.k8s.io
v1beta1
extensions
v1beta1
networking.k8s.io
policy
v1beta1
rbac.authorization.k8s.io
scheduling.k8s.io
settings.k8s.io
v1alpha1
storage.k8s.io
v1
man
man1
kubeadm-alpha-phase-addon-coredns.1kubeadm-alpha-phase-certs-etcd-ca.1kubeadm-alpha-phase-certs-etcd-healthcheck-client.1kubeadm-alpha-phase-kubelet-config-download.1kubeadm-alpha-phase-kubelet-config-enable-dynamic.1kubeadm-alpha-phase-kubelet-config-upload.1kubeadm-alpha-phase-kubelet-config-write-to-disk.1kubeadm-alpha-phase-kubelet-config.1kubeadm-alpha-phase-kubelet-write-env-file.1kubeadm-alpha-phase-kubelet.1kubeadm-config-images-list-images.1kubeadm-config-images-list.1kubeadm-config-images-pull.1kubeadm-config-images.1kubeadm-config-migrate.1kubeadm-config-print-default.1kubeadm-upgrade-diff.1kubeadm-upgrade-node-config.1kubeadm-upgrade-node.1kubectl-api-resources.1kubectl-wait.1
user-guide
yaml
examples
BUILDOWNERSREADME.md
cloud-controller-manager
cluster-dns
README.mddns-backend-rc.yamldns-backend-service.yamldns-frontend-pod.yaml
images
namespace-dev.yamlnamespace-prod.yamlcockroachdb
cpu-manager
OWNERSREADME.mdbe.yamlexclusive-1.yamlexclusive-2.yamlexclusive-3.yamlexclusive-4.yamlpod-ipsshared.yaml
elasticsearch
examples_test.goexplorer
guestbook-go
.gitignoreBUILDDockerfileMakefileREADME.mdguestbook-controller.jsonguestbook-page.pngguestbook-service.jsonmain.go
public
redis-master-controller.jsonredis-master-service.jsonredis-slave-controller.jsonredis-slave-service.jsonguestbook
README.md
guidelines.mdall-in-one
frontend-deployment.yamlfrontend-service.yamlphp-redis
redis-master-deployment.yamlredis-master-service.yamlredis-slave-deployment.yamlredis-slave-service.yamlredis-slave
https-nginx
javaee
javaweb-tomcat-sidecar
job
kubectl-container
meteor
mysql-cinder-pd
mysql-wordpress-pd
OWNERSREADME.mdWordPress.pnggce-volumes.yamllocal-volumes.yamlmysql-deployment.yamlwordpress-deployment.yaml
newrelic-infrastructure
.gitignoreREADME.mdconfig-to-secret.shnewrelic-config-template.yamlnewrelic-infra-daemonset.yamlnrconfig.env
newrelic
README.mdconfig-to-secret.shnewrelic-config-template.yamlnewrelic-config.yamlnewrelic-daemonset.yamlnrconfig.env
nodesjs-mongodb
README.mdmongo-controller.yamlmongo-service.yamlweb-controller-demo.yamlweb-controller.yamlweb-service.yaml
oms
openshift-origin
.gitignoreREADME.mdcleanup.shcreate.shetcd-controller.yamletcd-discovery-controller.yamletcd-discovery-service.yamletcd-service.yamlopenshift-controller.yamlopenshift-origin-namespace.yamlopenshift-service.yaml
persistent-volume-provisioning
phabricator
podsecuritypolicy
runtime-constraints
scheduler-policy-config-with-extender.jsonscheduler-policy-config.jsonselenium
README.mdselenium-hub-rc.yamlselenium-hub-svc.yamlselenium-node-chrome-rc.yamlselenium-node-firefox-rc.yamlselenium-test.py
sharing-clusters
simple-nginx.mdspark
README.mdnamespace-spark-cluster.yaml
spark-gluster
README.mdglusterfs-endpoints.yamlspark-master-controller.yamlspark-master-service.yamlspark-worker-controller.yaml
spark-master-controller.yamlspark-master-service.yamlspark-ui-proxy-controller.yamlspark-ui-proxy-service.yamlspark-worker-controller.yamlzeppelin-controller.yamlzeppelin-service.yamlstorage
cassandra
hazelcast
minio
README.mdminio-distributed-headless-service.yamlminio-distributed-service.yamlminio-distributed-statefulset.yamlminio-standalone-deployment.yamlminio-standalone-pvc.yamlminio-standalone-service.yaml
mysql-galera
redis
rethinkdb
vitess
README.mdconfigure.shcreate_test_table.sqlenv.shetcd-controller-template.yamletcd-down.shetcd-service-template.yamletcd-up.shguestbook-controller.yamlguestbook-service.yamlvitess-down.shvitess-up.shvtctld-controller-template.yamlvtctld-down.shvtctld-service.yamlvtctld-up.shvtgate-controller-template.yamlvtgate-down.shvtgate-service.yamlvtgate-up.shvttablet-down.shvttablet-pod-template.yamlvttablet-up.sh
storm
README.mdstorm-nimbus-service.jsonstorm-nimbus.jsonstorm-worker-controller.jsonzookeeper-service.jsonzookeeper.json
sysdig-cloud
volumes
aws_ebs
azure_disk
azure_file
cephfs
cinder
fibre_channel
flexvolume
README.md
deploy
dummydummy-attachablelvmnfsnginx-dummy-attachable.yamlnginx-dummy.yamlnginx-lvm.yamlnginx-nfs.yamlflocker
glusterfs
iscsi
nfs
README.mdnfs-busybox-rc.yaml
nfs-data
nfs-pv.pngnfs-pv.yamlnfs-pvc.yamlnfs-server-rc.yamlnfs-server-service.yamlnfs-web-rc.yamlnfs-web-service.yamlprovisioner
portworx
README.mdportworx-volume-pod.yamlportworx-volume-pv.yamlportworx-volume-pvc.yamlportworx-volume-pvcpod.yamlportworx-volume-pvcsc.yamlportworx-volume-pvcscpod.yamlportworx-volume-sc-high.yaml
quobyte
rbd
scaleio
storageos
README.mdstorageos-pod.yamlstorageos-pv.yamlstorageos-pvc.yamlstorageos-pvcpod.yamlstorageos-sc-pvc.yamlstorageos-sc-pvcpod.yamlstorageos-sc.yamlstorageos-secret.yaml
vsphere
README.mddeployment.yamlsimple-statefulset.yamlsimple-storageclass.yamlvsphere-volume-pod.yamlvsphere-volume-pv.yamlvsphere-volume-pvc.yamlvsphere-volume-pvcpod.yamlvsphere-volume-pvcsc.yamlvsphere-volume-pvcscpod.yamlvsphere-volume-sc-fast.yamlvsphere-volume-sc-vsancapabilities-with-datastore.yamlvsphere-volume-sc-vsancapabilities.yamlvsphere-volume-sc-with-datastore.yamlvsphere-volume-spbm-policy-with-datastore.yamlvsphere-volume-spbm-policy.yaml
hack
.golint_failuresBUILDOWNERSbenchmark-go.shdev-build-and-push.shdev-build-and-up.sh
boilerplate
build-cross.shbuild-go.shbuild-ui.shcherry_pick_pull.shcmd
teststale
e2e-internal
e2e-node-test.she2e.goe2e_test.gogen-swagger-doc
generate-bindata.shgenerate-docs.shget-build.shginkgo-e2e.shgodep-restore.shgodep-save.shgrab-profiles.shimport-restrictions.yamlinstall-etcd.shjenkins
benchmark-dockerized.shbuild.shgotest.shtest-dockerized.shupload-to-gcs.shverify-dockerized.shverify.sh
lib
list-feature-tests.shlocal-up-cluster.shlookup_pull.pymake-rules
build.shclean.shcross.sh
run-in-gopath.shtest-go.shtest-integration.shtest-update-storage-objects.shhelpers
make-help.shtest-cmd-util.shtest-cmd.shtest-e2e-node.shtest-integration.shtest-kubeadm-cmd.shtest.shupdate.shverify.shvet.shtestdata
deployment-label-change3.yamldeployment-with-initializer.yamlpod-with-precision.jsonreplicaset-with-initializer.yaml
update-all.shupdate-api-reference-docs.shupdate-bazel.shupdate-cloudprovider-gce.shupdate-codegen.shupdate-generated-device-plugin-dockerized.shupdate-generated-device-plugin.shupdate-generated-docs.shupdate-generated-kms-dockerized.shupdate-generated-kms.shupdate-generated-kubelet-plugin-registration-dockerized.shupdate-generated-kubelet-plugin-registration.shupdate-generated-protobuf-dockerized.shupdate-generated-protobuf.shupdate-generated-runtime-dockerized.shupdate-generated-runtime.shupdate-generated-swagger-docs.shupdate-godep-licenses.shupdate-gofmt.shupdate-openapi-spec.shupdate-staging-godeps-dockerized.shupdate-staging-godeps.shupdate-swagger-spec.shupdate-translations.shupdate-workspace-mirror.shupdate_owners.pyverify-all.shverify-api-groups.shverify-api-reference-docs.shverify-bazel.shverify-boilerplate.shverify-cli-conventions.shverify-cloudprovider-gce.shverify-codegen.shverify-description.shverify-flags-underscore.pyverify-generated-device-plugin.shverify-generated-docs.shverify-generated-files-remake.shverify-generated-files.shverify-generated-kms.shverify-generated-kubelet-plugin-registration.shverify-generated-protobuf.shverify-generated-runtime.shverify-generated-swagger-docs.shverify-godeps.shverify-gofmt.shverify-golint.shverify-govet.shverify-import-boss.shverify-imports.shverify-linkcheck.shverify-no-vendor-cycles.shverify-openapi-spec.shverify-pkg-names.shverify-readonly-packages.shverify-spelling.shverify-staging-godeps.shverify-swagger-spec.shverify-symbols.shverify-test-images.shverify-typecheck.shpkg
BUILD
api
legacyscheme
persistentvolume
pod
testapi
testing
BUILD
compat
conversion_test.gocopy_test.godefaulting_test.gometa_test.goserialization_test.gounstructured_test.gounversioned
v1
apis
abac
admission
admissionregistration
apps
authentication
authorization
autoscaling
batch
certificates
componentconfig
install
types.gov1alpha1
BUILDdefaults.godefaults_test.gotypes.gozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
zz_generated.deepcopy.gocore
BUILDannotation_key_constants.go
fuzzer
helper
install
register.goresource.gotypes.gov1
conversion.godefaults.godefaults_test.go
helper
validation
zz_generated.conversion.gozz_generated.defaults.govalidation
zz_generated.deepcopy.goevents
extensions
BUILD
fuzzer
helpers.gohelpers_test.goinstall
register.gotypes.gov1beta1
validation
zz_generated.deepcopy.goimagepolicy
networking
policy
rbac
helpers.gohelpers_test.go
install
v1
BUILDdoc.goevaluation_helpers.gohelpers.gozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
v1alpha1
v1beta1
validation
zz_generated.deepcopy.goscheduling
settings
storage
auth
client
clientset_generated
internalclientset
BUILDclientset.godoc.go
fake
scheme
typed
admissionregistration
internalversion
admissionregistration_client.godoc.go
fake
doc.gofake_admissionregistration_client.gofake_initializerconfiguration.gofake_mutatingwebhookconfiguration.gofake_validatingwebhookconfiguration.go
generated_expansion.goinitializerconfiguration.gomutatingwebhookconfiguration.govalidatingwebhookconfiguration.goapps
internalversion
authentication
internalversion
authorization
internalversion
authorization_client.godoc.go
fake
doc.gofake_authorization_client.gofake_localsubjectaccessreview.gofake_selfsubjectaccessreview.gofake_selfsubjectrulesreview.gofake_subjectaccessreview.go
generated_expansion.golocalsubjectaccessreview.goselfsubjectaccessreview.goselfsubjectrulesreview.gosubjectaccessreview.goautoscaling
internalversion
batch
internalversion
certificates
internalversion
core
internalversion
componentstatus.goconfigmap.gocore_client.godoc.goendpoints.goevent.go
fake
doc.gofake_componentstatus.gofake_configmap.gofake_core_client.gofake_endpoints.gofake_event.gofake_limitrange.gofake_namespace.gofake_node.gofake_persistentvolume.gofake_persistentvolumeclaim.gofake_pod.gofake_podtemplate.gofake_replicationcontroller.gofake_resourcequota.gofake_secret.gofake_service.gofake_serviceaccount.go
generated_expansion.golimitrange.gonamespace.gonode.gopersistentvolume.gopersistentvolumeclaim.gopod.gopodtemplate.goreplicationcontroller.goresourcequota.gosecret.goservice.goserviceaccount.goevents
internalversion
extensions
internalversion
networking
internalversion
policy
internalversion
rbac
internalversion
scheduling
internalversion
settings
internalversion
storage
informers
informers_generated
internalversion
admissionregistration
interface.go
internalversion
apps
autoscaling
batch
certificates
core
interface.go
internalversion
extensions
factory.gogeneric.gointernalinterfaces
networking
policy
rbac
scheduling
settings
storage
leaderelectionconfig
listers
admissionregistration
internalversion
apps
internalversion
authentication
internalversion
authorization
internalversion
autoscaling
internalversion
batch
internalversion
certificates
internalversion
core
internalversion
extensions
imagepolicy
internalversion
networking
internalversion
policy
rbac
scheduling
internalversion
settings
internalversion
storage
internalversion
tests
cloudprovider
OWNERScloud.goplugins.go
providers
aws
azure
BUILD
auth
azure.goazure_backoff.goazure_blobDiskController.goazure_client.goazure_controller_common.goazure_controller_standard.goazure_controller_vmss.goazure_fakes.goazure_instances.goazure_loadbalancer.goazure_loadbalancer_test.goazure_managedDiskController.goazure_routes.goazure_routes_test.goazure_standard.goazure_standard_test.goazure_storage.goazure_storage_test.goazure_storageaccount.goazure_storageaccount_test.goazure_test.goazure_vmsets.goazure_vmss.goazure_vmss_cache.goazure_vmss_cache_test.goazure_vmss_test.goazure_wrap.goazure_wrap_test.gocloudstack
fake
gce
BUILD
cloud
BUILDcontext.godoc.goerrors.gogen.go
gce.gogce_address_manager_test.gogce_addresses.gogce_addresses_fakes.gogce_alpha.gogce_backendservice.gogce_cert.gogce_disks.gogce_disks_test.gogce_firewall.gogce_forwardingrule.gogce_healthchecks.gogce_instancegroup.gogce_instances.gogce_loadbalancer_external_test.gogce_loadbalancer_internal.gogce_loadbalancer_internal_test.gogce_loadbalancer_test.gogce_loadbalancer_utils_test.gogce_networkendpointgroup.gogce_op.gogce_routes.gogce_securitypolicy.gogce_targetpool.gogce_targetproxy.gogce_test.gogce_tpu.gogce_urlmap.gogce_zones.gosupport.gogen
gen_test.gometa
mock
op.goratelimit.goratelimit_test.goservice.goservice_test.goutils.goutils_test.goopenstack
metadata.gometadata_test.goopenstack.goopenstack_instances.goopenstack_loadbalancer.goopenstack_routes.goopenstack_test.goopenstack_volumes.go
ovirt
photon
vsphere
BUILDcredentialmanager.gocredentialmanager_test.gonodemanager.go
vclib
BUILDconnection.goconstants.godatacenter.godatacenter_test.godatastore.godatastore_test.go
vsphere.govsphere_test.govsphere_util.godiskmanagers
folder.gofolder_test.gopbm.goutils.goutils_test.govirtualmachine.govirtualmachine_test.gocontroller
BUILD
bootstrap
certificates
cloud
controller_ref_manager.gocontroller_ref_manager_test.gocontroller_utils.gocontroller_utils_test.gocronjob
daemon
deployment
BUILDdeployment_controller.godeployment_controller_test.goprogress.goprogress_test.gorecreate.gorecreate_test.gorollback.gorolling.gorolling_test.gosync.gosync_test.go
util
disruption
endpoint
garbagecollector
history
job
namespace
deletion
namespace_controller.gonodeipam
ipam
BUILDadapter.gocidr_allocator.gocloud_cidr_allocator.gocloud_cidr_allocator_test.gocontroller.gorange_allocator.go
node_ipam_controller.gonodelifecycle
podautoscaler
BUILDhorizontal.gohorizontal_test.golegacy_horizontal_test.golegacy_replica_calculator_test.go
metrics
replica_calculator.goreplica_calculator_test.goreplicaset
replication
resourcequota
route
service
serviceaccount
statefulset
testutil
util
volume
attachdetach
expand
persistentvolume
BUILDOWNERSbinder_test.goframework_test.gopv_controller.gopv_controller_base.gopv_controller_test.goscheduler_assume_cache.goscheduler_assume_cache_test.goscheduler_binder.goscheduler_binder_cache.goscheduler_binder_cache_test.goscheduler_binder_fake.goscheduler_binder_test.govolume_host.go
pvcprotection
pvprotection
credentialprovider
features
generated
kubeapiserver
authenticator
authorizer
default_storage_factory_builder.gooptions
BUILDadmission.goauthentication.goauthorization.goauthorization_test.goplugins.goserving.gostorage_versions.go
server
kubectl
.import-restrictionsBUILDapply.go
apply
BUILDelement.goerror.golist_element.gomap_element.go
autoscale_test.gobash_comp_utils.goparse
primitive_element.gostrategy
BUILDmerge_conflict_test.gomerge_visitor.goreplace_visitor.gostrategic_visitor.gotest_swagger.jsonutils_test.go
type_element.gocmd
BUILDalpha.goannotate.goannotate_test.goapiresources.goapiversions.goapply.goapply_edit_last_applied.goapply_set_last_applied.goapply_test.goapply_view_last_applied.goattach.goattach_test.go
conditions.godelete.godelete_test.godeployment.godeployment_test.goauth
autoscale.gocertificates.goclusterinfo.goclusterinfo_dump.goclusterinfo_dump_test.gocmd.gocmd_printing_test.gocmd_test.gocompletion.goconfig
BUILDconfig.goconfig_test.gocreate_authinfo_test.goget_contexts.goget_contexts_test.goset.goview.goview_test.go
convert.goconvert_test.gocp.gocp_test.gocreate.gocreate
BUILDcreate.gocreate_clusterrole.gocreate_clusterrole_test.gocreate_clusterrolebinding.gocreate_clusterrolebinding_test.gocreate_configmap.gocreate_configmap_test.gocreate_deployment.gocreate_deployment_test.gocreate_job.gocreate_job_test.gocreate_namespace.gocreate_namespace_test.gocreate_pdb.gocreate_pdb_test.gocreate_priorityclass.gocreate_priorityclass_test.gocreate_quota.gocreate_quota_test.gocreate_role.gocreate_role_test.gocreate_rolebinding.gocreate_rolebinding_test.gocreate_secret.gocreate_secret_test.gocreate_service.gocreate_service_test.gocreate_serviceaccount.gocreate_serviceaccount_test.gocreate_test.go
create_job.godelete.godelete_flags.godelete_test.godescribe.godescribe_test.godiff.godiff_test.godrain.godrain_test.goedit.goedit_test.goexec.goexec_test.goexplain.goexpose.goexpose_test.goget
label.golabel_test.gologs.gologs_test.gopatch.gopatch_test.goplugin.goplugin_test.goportforward.goportforward_test.goproxy.goreplace.goreplace_test.gorollingupdate.gorollingupdate_test.gorollout
BUILDrollout.gorollout_history.gorollout_pause.gorollout_pause_test.gorollout_resume.gorollout_status.gorollout_undo.go
run.gorun_test.goscale.goscalejob
set
BUILD
taint.gotaint_test.goenv
helper.goset.goset_env.goset_env_test.goset_image.goset_image_test.goset_resources.goset_resources_test.goset_selector.goset_selector_test.goset_serviceaccount.goset_serviceaccount_test.goset_subject.goset_subject_test.goset_test.gotemplates
testdata
edit
record_editor.shrecord_testcase.shtest_editor.sh
testcase-apply-edit-last-applied-list-fail
testcase-apply-edit-last-applied-list
testcase-apply-edit-last-applied-syntax-error
testcase-apply-edit-last-applied
testcase-create-list-error
testcase-create-list
testcase-edit-error-reedit
testcase-edit-output-patch
testcase-list-errors
testcase-list-record
testcase-list
testcase-not-update-annotation
testcase-schemaless-list
testcase-single-service
testcase-syntax-error
testcase-unknown-field-known-group-kind
testcase-unknown-version-known-group-kind
testcase-update-annotation
testing
top.gotop_node.gotop_node_test.gotop_pod.gotop_pod_test.gotop_test.goutil
BUILDclientcache.goconversion.go
version.goeditor
factory.gofactory_builder.gofactory_client_access.gofactory_object_mapping.gofactory_test.gogenerator.gohelpers.gohelpers_test.gojsonmerge
kubectl_match_version.goopenapi
printing.gowait
explain
genericclioptions
BUILDbuilder_flags.gobuilder_flags_fake.goconfig_flags.goconfig_flags_fake.godoc.gofilename_flags.goio_options.gojson_yaml_flags.gojson_yaml_flags_test.gojsonpath_flags.gojsonpath_flags_test.gokube_template_flags.goname_flags.goname_flags_test.goprint_flags.go
history.gokubectl.goprinters
BUILDdiscard.gointerface.gojson.gojsonpath.goname.gosourcechecker.gosourcechecker_test.gotemplate.gotemplate_test.gotypesetter.go
record_flags.goresource
BUILDbuilder.gobuilder_test.goclient.godoc.gofake.gohelper.gohelper_test.gointerfaces.gomapper.goresult.goscheme.goselector.govisitor.govisitor_test.go
template_flags.gotemplate_flags_test.goplugins
polymorphichelpers
BUILDattachablepodforobject.gocanbeautoscaled.gocanbeexposed.gocanbeexposed_test.gohelpers.gohelpers_test.gohistoryviewer.gointerface.gologsforobject.gologsforobject_test.gomapbasedselectorforobject.goobjectpauser.goobjectresumer.goportsforobject.goportsforobject_test.goprotocolsforobject.gorollbacker.gostatusviewer.goupdatepodspec.go
resource
resource_filter.goresource_filter_test.gorollback.gorolling_updater.gorolling_updater_test.gorollout_status.gorollout_status_test.gorun.goscale.goscale_test.goscheme
secret.gosecret_for_docker_registry.gosecret_test.goservice_basic_test.gosorter.gosorter_test.goutil
kubelet
BUILD
apis
BUILDwell_known_annotations.go
cri
deviceplugin
kubeletconfig
pluginregistration
stats
v1alpha1
cadvisor
certificate
checkpoint
checkpointmanager
client
cm
BUILDcgroup_manager_linux.gocgroup_manager_linux_test.gocgroup_manager_unsupported.gocontainer_manager.gocontainer_manager_linux.gocontainer_manager_linux_test.gocontainer_manager_stub.go
cpumanager
devicemanager
BUILD
helpers_linux.gohelpers_linux_test.gohelpers_unsupported.gonode_container_manager.gopod_container_manager_linux.gopod_container_manager_linux_test.gopod_container_manager_stub.goqos_container_manager_linux.gotypes.gocheckpoint
device_plugin_stub.goendpoint.gomanager.gomanager_stub.gomanager_test.gopod_devices.gotypes.goconfig
BUILDcommon.gocommon_test.goconfig.goconfig_test.gofile.gofile_linux.gofile_linux_test.gofile_test.gofile_unsupported.goflags.gohttp_test.go
configmap
container
dockershim
BUILDconvert.godocker_checkpoint.godocker_checkpoint_test.godocker_container.godocker_container_test.godocker_image.godocker_image_linux.godocker_image_unsupported.godocker_image_windows.godocker_logs.godocker_sandbox.godocker_sandbox_others.godocker_sandbox_test.godocker_sandbox_windows.godocker_service.godocker_service_test.godocker_stats_linux.godocker_stats_unsupported.godocker_stats_windows.godocker_streaming.gohelpers_linux.gohelpers_linux_test.gohelpers_test.gohelpers_windows.go
libdocker
network
BUILDOWNERS
cni
hairpin
hostport
BUILDfake_iptables.gofake_iptables_test.gohostport.gohostport_manager.gohostport_manager_test.gohostport_syncer.gohostport_syncer_test.gohostport_test.go
testing
kubenet
metrics
network.goplugins.gotesting
remote
security_context.gosecurity_context_test.goselinux_util.goeviction
BUILD
api
eviction_manager.goeviction_manager_test.gohelpers.gohelpers_test.gomemory_threshold_notifier.gomemory_threshold_notifier_test.gomock_threshold_notifier_test.gothreshold_notifier_linux.gothreshold_notifier_unsupported.gotypes.gogpu
images
kubelet.gokubelet_getters.gokubelet_network.gokubelet_network_test.gokubelet_node_status.gokubelet_node_status_test.gokubelet_pods.gokubelet_pods_test.gokubelet_pods_windows_test.gokubelet_test.gokubelet_volumes.gokubelet_volumes_test.gokubeletconfig
BUILD
checkpoint
configsync.gocontroller.gostatus
util
watch.gokuberuntime
BUILDhelpers.gohelpers_test.gokuberuntime_container.gokuberuntime_container_linux_test.gokuberuntime_container_windows.gokuberuntime_gc_test.gokuberuntime_manager.gokuberuntime_manager_test.gokuberuntime_sandbox.golegacy_test.go
logs
security_context.golifecycle
logs
metrics
mountpod
network
pod
pod_container_deletor.gopod_workers.gopreemption
prober
remote
rkt
BUILDOWNERScap.goconfig.gocontainer_id.gofake_rkt_interface_test.goimage.golog.gorkt.gorkt_test.gosystemd.goversion.go
runonce.gorunonce_test.gosecret
server
stats
status
sysctl
token
types
util
BUILD
volume_host.gomanager
BUILDcache_based_manager.gocache_based_manager_test.gomanager.gowatch_based_manager.gowatch_based_manager_test.go
pluginwatcher
util_unsupported.govolumemanager
master
BUILDclient_ca_hook_test.gocontroller.go
controller
controller_test.goimport_known_versions.goimport_known_versions_test.gomaster.gomaster_openapi_test.gomaster_test.goreconcilers
tunneler
printers
BUILDcustomcolumn.gocustomcolumn_flags.gocustomcolumn_flags_test.gocustomcolumn_test.gohumanreadable.gohumanreadable_test.gointerface.go
internalversion
printers.gostorage
versioned.goproxy
quota
registry
BUILD
admissionregistration
initializerconfiguration
mutatingwebhookconfiguration
rest
validatingwebhookconfiguration
apps
controllerrevision
daemonset
deployment
replicaset
rest
statefulset
authentication
authorization
localsubjectaccessreview
rest
selfsubjectaccessreview
selfsubjectrulesreview
subjectaccessreview
autoscaling
horizontalpodautoscaler
rest
batch
cronjob
job
rest
certificates
core
componentstatus
configmap
endpoint
event
limitrange
namespace
node
persistentvolume
persistentvolumeclaim
pod
podtemplate
replicationcontroller
resourcequota
rest
secret
service
serviceaccount
events
extensions
controller
storage
ingress
rest
networking
policy
poddisruptionbudget
podsecuritypolicy
rest
rbac
clusterrole
clusterrolebinding
escalation_check.goreconciliation
BUILDclusterrole_interfaces.goclusterrolebinding_interfaces.goreconcile_role.goreconcile_role_test.goreconcile_rolebindings.goreconcile_rolebindings_test.gorole_interfaces.gorolebinding_interfaces.gozz_generated.deepcopy.go
rest
role
rolebinding
validation
registrytest
scheduling
priorityclass
rest
settings
storage
rest
storageclass
volumeattachment
scheduler
BUILDOWNERS
algorithm
BUILD
predicates
BUILDerror.gomax_attachable_volume_predicate_test.gometadata.gometadata_test.gopredicates.gopredicates_test.goutils.go
priorities
BUILDbalanced_resource_allocation.gobalanced_resource_allocation_test.goimage_locality.goimage_locality_test.gointerpod_affinity.gointerpod_affinity_test.goleast_requested.goleast_requested_test.gometadata.gometadata_test.gomost_requested.gomost_requested_test.gonode_affinity.gonode_affinity_test.gonode_label.gonode_label_test.gonode_prefer_avoid_pods.gonode_prefer_avoid_pods_test.goreduce.gorequested_to_capacity_ratio.gorequested_to_capacity_ratio_test.goresource_allocation.goresource_limits.goresource_limits_test.goselector_spreading.goselector_spreading_test.gotaint_toleration.gotaint_toleration_test.gotest_util.go
scheduler_interface.gotypes.gotypes_test.gowell_known_labels.goutil
algorithmprovider
api
cache
core
BUILDequivalence_cache.goequivalence_cache_test.goextender.goextender_test.gogeneric_scheduler.gogeneric_scheduler_test.goscheduling_queue.go
factory
BUILDcache_comparer.gocache_comparer_test.gofactory.gofactory_test.goplugins.goplugins_test.gosignal.gosignal_windows.go
metrics
scheduler.goscheduler_test.gotesting
util
volumebinder
security
podsecuritypolicy
securitycontext
serviceaccount
ssh
util
BUILD
configz
filesystem
initsystem
io
ipset
iptables
ipvs
BUILDipvs.goipvs_linux_test.gokernelcheck_linux.gokernelcheck_linux_test.gokernelcheck_unsupported.go
mount
BUILDOWNERSexec_mount.goexec_mount_test.goexec_mount_unsupported.gofake.gomount.gomount_linux.gomount_linux_test.gomount_unsupported.gomount_windows.gomount_windows_test.gonsenter_mount.gonsenter_mount_test.gonsenter_mount_unsupported.gosafe_format_and_mount_test.go
nsenter
pod
pointer
removeall
verify-util-pkg.shvolume
BUILD
aws_ebs
azure_dd
BUILDattacher.goazure_common.goazure_common_linux.goazure_common_unsupported.goazure_common_windows.goazure_dd.goazure_dd_block.goazure_dd_block_test.goazure_mounter.goazure_provision.go
azure_file
cephfs
cinder
configmap
csi
BUILDcsi_attacher.gocsi_attacher_test.gocsi_block.gocsi_block_test.gocsi_client.gocsi_client_test.gocsi_mounter.gocsi_mounter_test.gocsi_plugin.gocsi_plugin_test.gocsi_util.go
fake
labelmanager
downwardapi
fc
flexvolume
flocker
gce_pd
git_repo
glusterfs
host_path
iscsi
local
metrics_du.gonfs
photon_pd
plugins.goportworx
projected
quobyte
rbd
scaleio
secret
storageos
testing
util
BUILDatomic_writer.goatomic_writer_test.goattach_limit.go
volume.govolume_linux.govolume_unsupported.gofs
operationexecutor
recyclerclient
util.goutil_test.govsphere_volume
windows
service
plugin
BUILD
pkg
admission
defaulttolerationseconds
eventratelimit
gc
imagepolicy
initialresources
BUILDadmission.goadmission_test.godata_source.godata_source_test.gogcm.gogcm_test.gohawkular.gohawkular_test.goinfluxdb.goinfluxdb_test.go
noderestriction
podtolerationrestriction
priority
resourcequota
security
podsecuritypolicy
serviceaccount
storage
persistentvolume
auth
OWNERS
authenticator
token
bootstrap
authorizer
staging
BUILDgenerate-groups.sh
src
k8s.io
api
BUILDroundtrip_test.go
Godeps
SECURITY_CONTACTSadmission
admissionregistration
v1alpha1
v1beta1
apps
v1
v1beta1
v1beta2
authentication
v1
v1beta1
authorization
v1
v1beta1
autoscaling
v1
v2beta1
batch
v1
v1beta1
v2alpha1
certificates
core
v1
events
extensions
imagepolicy
networking
policy
rbac
v1
v1alpha1
v1beta1
scheduling
v1alpha1
v1beta1
settings
storage
apiextensions-apiserver
BUILD
Godeps
OWNERSSECURITY_CONTACTSartifacts
example
examples
client-go
hack
pkg
apis
client
hack
main.gopkg
apis
apiextensions
apiserver
BUILDapiserver.go
conversion
customresource_discovery_controller.gocustomresource_handler.gocustomresource_handler_test.gojsonpath_test.goclient
clientset
informers
externalversions
internalversion
listers
apiextensions
cmd
server
controller
features
registry
customresource
BUILDetcd.goetcd_test.goregistry.gostatus_strategy.gostatus_strategy_test.gostrategy.go
tableconvertor
validator.gocustomresourcedefinition
test
apimachinery
Godeps
SECURITY_CONTACTSpkg
api
meta
BUILDinterfaces.golazy.gometa.gopriority.gopriority_test.gorestmapper.gorestmapper_test.go
table
testrestmapper
unstructured.goresource
testing
roundtrip
validation
apimachinery
apis
meta
fuzzer
internalversion
v1
BUILDconversion.goconversion_test.goduration.gogenerated.pb.gogenerated.protogroup_version_test.gomicro_time.gotime.gotypes.gotypes_swagger_doc_generated.gotypes_test.go
unstructured
BUILDhelpers.gohelpers_test.gounstructured.gounstructured_list.gounstructured_test.go
unstructuredscheme
zz_generated.deepcopy.govalidation
zz_generated.deepcopy.gozz_generated.defaults.gov1beta1
testapigroup
conversion
queryparams
fields
labels
runtime
BUILDconverter.goerror.gogenerated.pb.gogenerated.protointerfaces.golocal_scheme_test.go
schema
scheme.goserializer
testing
zz_generated.deepcopy.gotest
types
util
clock
diff
httpstream
intstr
jsonmergepatch
net
proxy
runtime
sets
strategicpatch
wait
version
watch
third_party
forked
golang
reflect
apiserver
CONTRIBUTING.md
Godeps
OWNERSSECURITY_CONTACTSpkg
admission
BUILDattributes.goattributes_test.goaudit.goaudit_test.goplugins.go
configuration
BUILDmutating_webhook_manager.gomutating_webhook_manager_test.govalidating_webhook_manager.govalidating_webhook_manager_test.go
interfaces.goplugin
webhook
apis
apiserver
audit
install
v1alpha1
generated.pb.gogenerated.protozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
v1beta1
generated.pb.gogenerated.protozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
zz_generated.deepcopy.goexample
install
v1
generated.pb.gogenerated.protozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
zz_generated.deepcopy.goexample2
audit
endpoints
BUILDapiserver_test.goaudit_test.go
discovery
filters
BUILDaudit.goaudit_test.goauthentication.goauthentication_test.goauthn_audit.goauthn_audit_test.goauthorization.goauthorization_test.goimpersonation.goimpersonation_test.golegacy_audit.golegacy_audit_test.gorequestinfo.go
groupversion.gohandlers
BUILDcreate.godelete.goget.gonamer.gopatch.goresponse.go
installer.goresponsewriters
rest.gorest_test.goupdate.gowatch.gometrics
openapi
patchhandler_test.gorequest
testing
features
registry
generic
rest
server
BUILDconfig.goconfig_test.go
filters
BUILDcompression.gocompression_test.gomaxinflight.gomaxinflight_test.gotimeout.gotimeout_test.gowaitgroup.go
genericapiserver.gogenericapiserver_test.gohandler.gohealthz
httplog
options
BUILDadmission.goadmission_test.goapi_enablement.goaudit.goaudit_test.goauthentication.goauthorization.goetcd.goserver_run_options.goserving.goserving_test.go
resourceconfig
routes
storage
storage
BUILDcacher.go
etcd
etcd3
BUILDcompact.gocompact_test.golease_manager.golease_manager_test.go
interfaces.gopreflight
store.gostore_test.gowatcher.gowatcher_test.gostoragebackend
testing
tests
value
watch_cache.gowatch_cache_test.goutil
plugin
pkg
client-go
.github
Godeps
OWNERSSECURITY_CONTACTSdeprecated-dynamic
discovery
BUILD
cached
cached_discovery.gocached_discovery_test.godiscovery_client.godiscovery_client_test.goround_tripper.goround_tripper_test.gounstructured.godynamic
examples
informers
BUILD
admissionregistration
apps
autoscaling
batch
certificates
core
events
extensions
factory.gogeneric.gointernalinterfaces
networking
policy
rbac
scheduling
settings
storage
kubernetes
BUILDclientset.godoc.go
fake
scheme
typed
admissionregistration
v1alpha1
v1beta1
apps
v1
apps_client.gocontrollerrevision.godaemonset.godeployment.godoc.go
fake
doc.gofake_apps_client.gofake_controllerrevision.gofake_daemonset.gofake_deployment.gofake_replicaset.gofake_statefulset.go
generated_expansion.goreplicaset.gostatefulset.gov1beta1
apps_client.gocontrollerrevision.godeployment.godoc.go
fake
doc.gofake_apps_client.gofake_controllerrevision.gofake_deployment.gofake_scale.gofake_statefulset.go
generated_expansion.goscale.gostatefulset.gov1beta2
authentication
authorization
v1
authorization_client.godoc.go
fake
doc.gofake_authorization_client.gofake_localsubjectaccessreview.gofake_selfsubjectaccessreview.gofake_selfsubjectrulesreview.gofake_subjectaccessreview.go
generated_expansion.golocalsubjectaccessreview.goselfsubjectaccessreview.goselfsubjectrulesreview.gosubjectaccessreview.gov1beta1
authorization_client.godoc.go
fake
doc.gofake_authorization_client.gofake_localsubjectaccessreview.gofake_selfsubjectaccessreview.gofake_selfsubjectrulesreview.gofake_subjectaccessreview.go
generated_expansion.golocalsubjectaccessreview.goselfsubjectaccessreview.goselfsubjectrulesreview.gosubjectaccessreview.goautoscaling
batch
v1
v1beta1
v2alpha1
certificates
v1beta1
core
v1
componentstatus.goconfigmap.gocore_client.godoc.goendpoints.goevent.go
fake
doc.gofake_componentstatus.gofake_configmap.gofake_core_client.gofake_endpoints.gofake_event.gofake_limitrange.gofake_namespace.gofake_node.gofake_persistentvolume.gofake_persistentvolumeclaim.gofake_pod.gofake_podtemplate.gofake_replicationcontroller.gofake_resourcequota.gofake_secret.gofake_service.gofake_serviceaccount.go
generated_expansion.golimitrange.gonamespace.gonode.gopersistentvolume.gopersistentvolumeclaim.gopod.gopodtemplate.goreplicationcontroller.goresourcequota.gosecret.goservice.goserviceaccount.goevents
v1beta1
extensions
v1beta1
networking
v1
policy
v1beta1
rbac
v1
clusterrole.goclusterrolebinding.godoc.go
fake
doc.gofake_clusterrole.gofake_clusterrolebinding.gofake_rbac_client.gofake_role.gofake_rolebinding.go
generated_expansion.gorbac_client.gorole.gorolebinding.gov1alpha1
clusterrole.goclusterrolebinding.godoc.go
fake
doc.gofake_clusterrole.gofake_clusterrolebinding.gofake_rbac_client.gofake_role.gofake_rolebinding.go
generated_expansion.gorbac_client.gorole.gorolebinding.gov1beta1
scheduling
settings
v1alpha1
storage
listers
admissionregistration
v1alpha1
v1beta1
apps
v1
v1beta1
v1beta2
authentication
authorization
v1
expansion_generated.golocalsubjectaccessreview.goselfsubjectaccessreview.goselfsubjectrulesreview.gosubjectaccessreview.go
v1beta1
autoscaling
v1
v2beta1
batch
v1
v1beta1
v2alpha1
certificates
core
v1
events
extensions
v1beta1
imagepolicy
networking
policy
rbac
v1
v1alpha1
v1beta1
scheduling
settings
storage
pkg
apis
clientauthentication
version
plugin
pkg
client
auth
rest
restmapper
BUILDcategory_expansion.gocategory_expansion_test.godiscovery.godiscovery_test.goshortcut.goshortcut_test.go
scale
BUILDclient.goclient_test.go
scheme
util.gotesting
tools
bootstrap
token
cache
clientcmd
BUILD
api
auth_loaders.goclient_config.goconfig.goloader.goloader_test.gomerged_client_builder.govalidation.govalidation_test.goleaderelection
pager
record
reference
transport
util
buffer
cert
certificate
connrotation
workqueue
code-generator
Godeps
SECURITY_CONTACTS_examples
apiserver
apis
clientset
internalversion
versioned
informers
externalversions
internalversion
listers
example
example2
crd
apis
example
example2
clientset
versioned
informers
externalversions
listers
cmd
client-gen
args
generators
conversion-gen
args
informer-gen
generators
hack
kube-aggregator
Godeps
SECURITY_CONTACTSartifacts
hack
boilerplate.go.txtbuild-image.shlocal-up-kube-aggregator.shregister-all-apis-from.shupdate-codegen.shverify-codegen.sh
main.gopkg
apis
apiregistration
apiserver
apiserver.gohandler_apis.gohandler_apis_test.gohandler_proxy.gohandler_proxy_test.goresolvers.go
scheme
client
clientset_generated
informers
externalversions
internalversion
listers
apiregistration
cmd
server
controllers
openapi
status
registry
apiservice
metrics
Godeps
SECURITY_CONTACTShack
pkg
apis
custom_metrics
external_metrics
metrics
client
sample-apiserver
BUILD
Godeps
README.mdSECURITY_CONTACTSartifacts
example
hack
main.gopkg
admission
plugin
banflunder
apis
wardle
BUILD
fuzzer
install
types.gov1alpha1
BUILDconversion.godefaults.godoc.goregister.gotypes.gozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
v1beta1
BUILDdoc.goregister.gotypes.gozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
validation
zz_generated.deepcopy.goapiserver
client
clientset
internalversion
versioned
informers
externalversions
internalversion
listers
wardle
cmd
server
registry
wardle
sample-controller
BUILD
Godeps
README.mdSECURITY_CONTACTSartifacts
controller.gocontroller_test.godocs
hack
main.gopkg
apis
samplecontroller
v1alpha1
client
clientset
versioned
informers
externalversions
listers
samplecontroller
v1alpha1
test
BUILDOWNERS
conformance
e2e
BUILD
apimachinery
BUILDaggregator.gocrd_watch.gocustom_resource_definition.goetcd_failure.gogarbage_collector.gogenerated_clientset.gonamespace.gotable_conversion.gowatch.gowebhook.go
apps
BUILDcronjob.godaemon_restart.godaemon_set.godeployment.gojob.gonetwork_partition.gorc.goreplica_set.gostatefulset.go
auth
autoscaling
BUILDautoscaling_timer.gocluster_autoscaler_scalability.gocluster_size_autoscaling.gocustom_metrics_autoscaling.gocustom_metrics_stackdriver_autoscaling.godns_autoscaling.gohorizontal_pod_autoscaling.go
common
BUILDautoscaling_utils.goconfigmap.goconfigmap_volume.gocontainer_probe.godocker_containers.godownward_api.godownwardapi_volume.goempty_dir.goexpansion.gohost_path.goinit_container.gokubelet_etc_hosts.gonetworking.gopods.goprivileged.goprojected.gosecrets.gosecrets_volume.gosysctl.goutil.go
e2e.goexamples.goframework
BUILDcrd_util.godeployment_util.goframework.goget-kubemark-resource-usage.gogoogle_compute.goingress_utils.gojobs_util.gokubelet_stats.gometrics_util.gonetworking_utils.gonodes_util.goperf_util.goprofile_gatherer.gopsp_util.gopv_util.gorc_util.gors_util.goservice_util.gotest_context.goutil.govolume_util.go
generated
gke_local_ssd.goinstrumentation
kubectl
lifecycle
manifest
network
BUILDdns.godns_common.godns_configmap.godns_scale_records.goingress.gonetwork_tiers.goproxy.go
scale
service.goservice_latency.gonode
scalability
scheduling
BUILDequivalence_cache_predicates.goevents.golimit_range.gonvidia-gpus.gopredicates.gopreemption.gopriorities.gorescheduler.goresource_quota.goubernetes_lite.go
storage
BUILDcsi_hostpath.gocsi_objects.gocsi_volumes.goempty_dir_wrapper.goephemeral_volume.gogeneric_persistent_volume-disruptive.gomounted_volume_resize.gonfs_persistent_volume-disruptive.gopd.gopersistent_volumes-gce.gopersistent_volumes-local.gopersistent_volumes.gopv_protection.goregional_pd.gosubpath.go
utils
volume_expand.govolume_io.govolume_provisioning.govolumes.govsphere
BUILDconnection.gonodemapper.gopersistent_volumes-vsphere.govsphere.govsphere_scale.govsphere_stress.govsphere_utils.govsphere_volume_cluster_ds.govsphere_volume_datastore.govsphere_volume_diskformat.govsphere_volume_disksize.govsphere_volume_fstype.govsphere_volume_master_restart.govsphere_volume_node_delete.govsphere_volume_node_poweroff.govsphere_volume_ops_storm.govsphere_volume_perf.govsphere_volume_placement.govsphere_volume_vpxd_restart.govsphere_volume_vsan_policy.go
testing-manifests
guestbook
ingress
http
http2
multiple-certs
neg-clusterip
pre-shared-cert
static-ip-2
static-ip
kubectl
podrbd-storage-class.yamlstatefulset
cassandra
cockroachdb
etcd
mysql-galera
mysql-upgrade
redis
zookeeper
storage-csi
ui
upgrades
e2e_kubeadm
e2e_node
BUILDapparmor_test.gokubelet_test.golifecycle_hook_test.golog_path_test.gomirror_pod_test.gonode_container_manager_test.gonode_problem_detector_linux.gopods_container_manager_test.go
builder
conformance
container_manager_test.gocpu_manager_test.gocritical_pod_test.godensity_test.godevice_plugin.godocker_test.godockershim_checkpoint_test.godynamic_kubelet_config_test.goenvironment
eviction_test.gogarbage_collector_test.gogke_environment_test.gogpu_device_plugin.gogpus.gogubernator.shhugepages_test.goimage_id_test.goimage_list.gojenkins
benchmark
conformance
copy-e2e-image.shdocker_validation
e2e-node-jenkins.shjenkins-ci-ubuntu.propertiesjenkins-ci.propertiesjenkins-flaky.propertiesjenkins-pull.propertiesjenkins-serial-ubuntu.propertiesjenkins-serial.propertiestemplate.propertiesubuntu-14.04-nvidia-install.shremote
resource_collector.goresource_usage_test.gorestart_test.gorunner
runtime_conformance_test.gosecurity_context_test.goservices
simple_mount.gosummary_test.gosystem
util.govolume_manager_test.gofixtures
images
Makefileimage-util.sh
liveness
logs-generator
pets
resource-consumer
consume-cpu
volumes-tester
ceph
gluster
iscsi
nfs
rbd
webhook
integration
BUILD
apiserver
auth
benchmark-controller.jsonclient
configmap
daemonset
defaulttolerationseconds
deployment
etcd
examples
framework
garbagecollector
ipamperf
master
BUILDcrd_test.gokms_plugin_mock.gokms_transformation_test.gokube_apiserver_test.gosecrets_transformation_test.gosynthetic_master_test.gotransformation_testcase.go
metrics
objectmeta
openshift
pods
quota
replicaset
scale
scheduler
BUILDextender_test.gopredicates_test.gopreemption_test.goscheduler_test.gotaint_test.goutil.govolume_binding_test.go
scheduler_perf
secrets
serviceaccount
statefulset
storageclasses
tls
util
volume
kubemark
cloud-provider-config.sh
test_owners.csvcommon
configure-kubectl.shgce
master-log-dump.shpre-existing
resources
hollow-node_template.yamlkube_dns_template.yamlstart-kubemark-master.sh
run-e2e-tests.shmanifests
addons
kubemark-rbac-bindings
skeleton
start-kubemark.shstop-kubemark.shtypecheck
utils
third_party
translations
utils
33
vendor/github.com/golang/protobuf/protoc-gen-go/Makefile
generated
vendored
33
vendor/github.com/golang/protobuf/protoc-gen-go/Makefile
generated
vendored
@ -1,33 +0,0 @@
|
||||
# Go support for Protocol Buffers - Google's data interchange format
|
||||
#
|
||||
# Copyright 2010 The Go Authors. All rights reserved.
|
||||
# https://github.com/golang/protobuf
|
||||
#
|
||||
# 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.
|
||||
|
||||
test:
|
||||
cd testdata && make test
|
37
vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/Makefile
generated
vendored
37
vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/Makefile
generated
vendored
@ -1,37 +0,0 @@
|
||||
# Go support for Protocol Buffers - Google's data interchange format
|
||||
#
|
||||
# Copyright 2010 The Go Authors. All rights reserved.
|
||||
# https://github.com/golang/protobuf
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Not stored here, but descriptor.proto is in https://github.com/google/protobuf/
|
||||
# at src/google/protobuf/descriptor.proto
|
||||
regenerate:
|
||||
@echo WARNING! THIS RULE IS PROBABLY NOT RIGHT FOR YOUR INSTALLATION
|
||||
cp $(HOME)/src/protobuf/include/google/protobuf/descriptor.proto .
|
||||
protoc --go_out=../../../../.. -I$(HOME)/src/protobuf/include $(HOME)/src/protobuf/include/google/protobuf/descriptor.proto
|
1301
vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go
generated
vendored
1301
vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
27
vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto
generated
vendored
27
vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto
generated
vendored
@ -45,6 +45,7 @@ option java_package = "com.google.protobuf";
|
||||
option java_outer_classname = "DescriptorProtos";
|
||||
option csharp_namespace = "Google.Protobuf.Reflection";
|
||||
option objc_class_prefix = "GPB";
|
||||
option cc_enable_arenas = true;
|
||||
|
||||
// descriptor.proto must be optimized for speed because reflection-based
|
||||
// algorithms don't work during bootstrapping.
|
||||
@ -225,6 +226,26 @@ message EnumDescriptorProto {
|
||||
repeated EnumValueDescriptorProto value = 2;
|
||||
|
||||
optional EnumOptions options = 3;
|
||||
|
||||
// Range of reserved numeric values. Reserved values may not be used by
|
||||
// entries in the same enum. Reserved ranges may not overlap.
|
||||
//
|
||||
// Note that this is distinct from DescriptorProto.ReservedRange in that it
|
||||
// is inclusive such that it can appropriately represent the entire int32
|
||||
// domain.
|
||||
message EnumReservedRange {
|
||||
optional int32 start = 1; // Inclusive.
|
||||
optional int32 end = 2; // Inclusive.
|
||||
}
|
||||
|
||||
// Range of reserved numeric values. Reserved numeric values may not be used
|
||||
// by enum values in the same enum declaration. Reserved ranges may not
|
||||
// overlap.
|
||||
repeated EnumReservedRange reserved_range = 4;
|
||||
|
||||
// Reserved enum value names, which may not be reused. A given name may only
|
||||
// be reserved once.
|
||||
repeated string reserved_name = 5;
|
||||
}
|
||||
|
||||
// Describes a value within an enum.
|
||||
@ -396,10 +417,12 @@ message FileOptions {
|
||||
// determining the namespace.
|
||||
optional string php_namespace = 41;
|
||||
|
||||
// The parser stores options it doesn't recognize here. See above.
|
||||
// The parser stores options it doesn't recognize here.
|
||||
// See the documentation for the "Options" section above.
|
||||
repeated UninterpretedOption uninterpreted_option = 999;
|
||||
|
||||
// Clients can define custom options in extensions of this message. See above.
|
||||
// Clients can define custom options in extensions of this message.
|
||||
// See the documentation for the "Options" section above.
|
||||
extensions 1000 to max;
|
||||
|
||||
reserved 38;
|
||||
|
40
vendor/github.com/golang/protobuf/protoc-gen-go/generator/Makefile
generated
vendored
40
vendor/github.com/golang/protobuf/protoc-gen-go/generator/Makefile
generated
vendored
@ -1,40 +0,0 @@
|
||||
# Go support for Protocol Buffers - Google's data interchange format
|
||||
#
|
||||
# Copyright 2010 The Go Authors. All rights reserved.
|
||||
# https://github.com/golang/protobuf
|
||||
#
|
||||
# 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.
|
||||
|
||||
include $(GOROOT)/src/Make.inc
|
||||
|
||||
TARG=github.com/golang/protobuf/compiler/generator
|
||||
GOFILES=\
|
||||
generator.go\
|
||||
|
||||
DEPS=../descriptor ../plugin ../../proto
|
||||
|
||||
include $(GOROOT)/src/Make.pkg
|
1128
vendor/github.com/golang/protobuf/protoc-gen-go/generator/generator.go
generated
vendored
1128
vendor/github.com/golang/protobuf/protoc-gen-go/generator/generator.go
generated
vendored
File diff suppressed because it is too large
Load Diff
117
vendor/github.com/golang/protobuf/protoc-gen-go/generator/internal/remap/remap.go
generated
vendored
Normal file
117
vendor/github.com/golang/protobuf/protoc-gen-go/generator/internal/remap/remap.go
generated
vendored
Normal file
@ -0,0 +1,117 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
/*
|
||||
Package remap handles tracking the locations of Go tokens in a source text
|
||||
across a rewrite by the Go formatter.
|
||||
*/
|
||||
package remap
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"go/scanner"
|
||||
"go/token"
|
||||
)
|
||||
|
||||
// A Location represents a span of byte offsets in the source text.
|
||||
type Location struct {
|
||||
Pos, End int // End is exclusive
|
||||
}
|
||||
|
||||
// A Map represents a mapping between token locations in an input source text
|
||||
// and locations in the correspnding output text.
|
||||
type Map map[Location]Location
|
||||
|
||||
// Find reports whether the specified span is recorded by m, and if so returns
|
||||
// the new location it was mapped to. If the input span was not found, the
|
||||
// returned location is the same as the input.
|
||||
func (m Map) Find(pos, end int) (Location, bool) {
|
||||
key := Location{
|
||||
Pos: pos,
|
||||
End: end,
|
||||
}
|
||||
if loc, ok := m[key]; ok {
|
||||
return loc, true
|
||||
}
|
||||
return key, false
|
||||
}
|
||||
|
||||
func (m Map) add(opos, oend, npos, nend int) {
|
||||
m[Location{Pos: opos, End: oend}] = Location{Pos: npos, End: nend}
|
||||
}
|
||||
|
||||
// Compute constructs a location mapping from input to output. An error is
|
||||
// reported if any of the tokens of output cannot be mapped.
|
||||
func Compute(input, output []byte) (Map, error) {
|
||||
itok := tokenize(input)
|
||||
otok := tokenize(output)
|
||||
if len(itok) != len(otok) {
|
||||
return nil, fmt.Errorf("wrong number of tokens, %d ≠ %d", len(itok), len(otok))
|
||||
}
|
||||
m := make(Map)
|
||||
for i, ti := range itok {
|
||||
to := otok[i]
|
||||
if ti.Token != to.Token {
|
||||
return nil, fmt.Errorf("token %d type mismatch: %s ≠ %s", i+1, ti, to)
|
||||
}
|
||||
m.add(ti.pos, ti.end, to.pos, to.end)
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// tokinfo records the span and type of a source token.
|
||||
type tokinfo struct {
|
||||
pos, end int
|
||||
token.Token
|
||||
}
|
||||
|
||||
func tokenize(src []byte) []tokinfo {
|
||||
fs := token.NewFileSet()
|
||||
var s scanner.Scanner
|
||||
s.Init(fs.AddFile("src", fs.Base(), len(src)), src, nil, scanner.ScanComments)
|
||||
var info []tokinfo
|
||||
for {
|
||||
pos, next, lit := s.Scan()
|
||||
switch next {
|
||||
case token.SEMICOLON:
|
||||
continue
|
||||
}
|
||||
info = append(info, tokinfo{
|
||||
pos: int(pos - 1),
|
||||
end: int(pos + token.Pos(len(lit)) - 1),
|
||||
Token: next,
|
||||
})
|
||||
if next == token.EOF {
|
||||
break
|
||||
}
|
||||
}
|
||||
return info
|
||||
}
|
82
vendor/github.com/golang/protobuf/protoc-gen-go/generator/internal/remap/remap_test.go
generated
vendored
Normal file
82
vendor/github.com/golang/protobuf/protoc-gen-go/generator/internal/remap/remap_test.go
generated
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
package remap
|
||||
|
||||
import (
|
||||
"go/format"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestErrors(t *testing.T) {
|
||||
tests := []struct {
|
||||
in, out string
|
||||
}{
|
||||
{"", "x"},
|
||||
{"x", ""},
|
||||
{"var x int = 5\n", "var x = 5\n"},
|
||||
{"these are \"one\" thing", "those are 'another' thing"},
|
||||
}
|
||||
for _, test := range tests {
|
||||
m, err := Compute([]byte(test.in), []byte(test.out))
|
||||
if err != nil {
|
||||
t.Logf("Got expected error: %v", err)
|
||||
continue
|
||||
}
|
||||
t.Errorf("Compute(%q, %q): got %+v, wanted error", test.in, test.out, m)
|
||||
}
|
||||
}
|
||||
|
||||
func TestMatching(t *testing.T) {
|
||||
// The input is a source text that will be rearranged by the formatter.
|
||||
const input = `package foo
|
||||
var s int
|
||||
func main(){}
|
||||
`
|
||||
|
||||
output, err := format.Source([]byte(input))
|
||||
if err != nil {
|
||||
t.Fatalf("Formatting failed: %v", err)
|
||||
}
|
||||
m, err := Compute([]byte(input), output)
|
||||
if err != nil {
|
||||
t.Fatalf("Unexpected error: %v", err)
|
||||
}
|
||||
|
||||
// Verify that the mapped locations have the same text.
|
||||
for key, val := range m {
|
||||
want := input[key.Pos:key.End]
|
||||
got := string(output[val.Pos:val.End])
|
||||
if got != want {
|
||||
t.Errorf("Token at %d:%d: got %q, want %q", key.Pos, key.End, got, want)
|
||||
}
|
||||
}
|
||||
}
|
11
vendor/github.com/golang/protobuf/protoc-gen-go/generator/name_test.go
generated
vendored
11
vendor/github.com/golang/protobuf/protoc-gen-go/generator/name_test.go
generated
vendored
@ -59,9 +59,10 @@ func TestCamelCase(t *testing.T) {
|
||||
|
||||
func TestGoPackageOption(t *testing.T) {
|
||||
tests := []struct {
|
||||
in string
|
||||
impPath, pkg string
|
||||
ok bool
|
||||
in string
|
||||
impPath GoImportPath
|
||||
pkg GoPackageName
|
||||
ok bool
|
||||
}{
|
||||
{"", "", "", false},
|
||||
{"foo", "", "foo", true},
|
||||
@ -86,8 +87,8 @@ func TestGoPackageOption(t *testing.T) {
|
||||
|
||||
func TestUnescape(t *testing.T) {
|
||||
tests := []struct {
|
||||
in string
|
||||
out string
|
||||
in string
|
||||
out string
|
||||
}{
|
||||
// successful cases, including all kinds of escapes
|
||||
{"", ""},
|
||||
|
422
vendor/github.com/golang/protobuf/protoc-gen-go/golden_test.go
generated
vendored
Normal file
422
vendor/github.com/golang/protobuf/protoc-gen-go/golden_test.go
generated
vendored
Normal file
@ -0,0 +1,422 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"flag"
|
||||
"fmt"
|
||||
"go/build"
|
||||
"go/parser"
|
||||
"go/token"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// Set --regenerate to regenerate the golden files.
|
||||
var regenerate = flag.Bool("regenerate", false, "regenerate golden files")
|
||||
|
||||
// When the environment variable RUN_AS_PROTOC_GEN_GO is set, we skip running
|
||||
// tests and instead act as protoc-gen-go. This allows the test binary to
|
||||
// pass itself to protoc.
|
||||
func init() {
|
||||
if os.Getenv("RUN_AS_PROTOC_GEN_GO") != "" {
|
||||
main()
|
||||
os.Exit(0)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGolden(t *testing.T) {
|
||||
workdir, err := ioutil.TempDir("", "proto-test")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer os.RemoveAll(workdir)
|
||||
|
||||
// Find all the proto files we need to compile. We assume that each directory
|
||||
// contains the files for a single package.
|
||||
supportTypeAliases := hasReleaseTag("go1.9")
|
||||
packages := map[string][]string{}
|
||||
err = filepath.Walk("testdata", func(path string, info os.FileInfo, err error) error {
|
||||
if filepath.Base(path) == "import_public" && !supportTypeAliases {
|
||||
// Public imports require type alias support.
|
||||
return filepath.SkipDir
|
||||
}
|
||||
if !strings.HasSuffix(path, ".proto") {
|
||||
return nil
|
||||
}
|
||||
dir := filepath.Dir(path)
|
||||
packages[dir] = append(packages[dir], path)
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// Compile each package, using this binary as protoc-gen-go.
|
||||
for _, sources := range packages {
|
||||
args := []string{"-Itestdata", "--go_out=plugins=grpc,paths=source_relative:" + workdir}
|
||||
args = append(args, sources...)
|
||||
protoc(t, args)
|
||||
}
|
||||
|
||||
// Compare each generated file to the golden version.
|
||||
filepath.Walk(workdir, func(genPath string, info os.FileInfo, _ error) error {
|
||||
if info.IsDir() {
|
||||
return nil
|
||||
}
|
||||
|
||||
// For each generated file, figure out the path to the corresponding
|
||||
// golden file in the testdata directory.
|
||||
relPath, err := filepath.Rel(workdir, genPath)
|
||||
if err != nil {
|
||||
t.Errorf("filepath.Rel(%q, %q): %v", workdir, genPath, err)
|
||||
return nil
|
||||
}
|
||||
if filepath.SplitList(relPath)[0] == ".." {
|
||||
t.Errorf("generated file %q is not relative to %q", genPath, workdir)
|
||||
}
|
||||
goldenPath := filepath.Join("testdata", relPath)
|
||||
|
||||
got, err := ioutil.ReadFile(genPath)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return nil
|
||||
}
|
||||
if *regenerate {
|
||||
// If --regenerate set, just rewrite the golden files.
|
||||
err := ioutil.WriteFile(goldenPath, got, 0666)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
want, err := ioutil.ReadFile(goldenPath)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return nil
|
||||
}
|
||||
|
||||
want = fdescRE.ReplaceAll(want, nil)
|
||||
got = fdescRE.ReplaceAll(got, nil)
|
||||
if bytes.Equal(got, want) {
|
||||
return nil
|
||||
}
|
||||
|
||||
cmd := exec.Command("diff", "-u", goldenPath, genPath)
|
||||
out, _ := cmd.CombinedOutput()
|
||||
t.Errorf("golden file differs: %v\n%v", relPath, string(out))
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
var fdescRE = regexp.MustCompile(`(?ms)^var fileDescriptor.*}`)
|
||||
|
||||
// Source files used by TestParameters.
|
||||
const (
|
||||
aProto = `
|
||||
syntax = "proto3";
|
||||
package test.alpha;
|
||||
option go_package = "package/alpha";
|
||||
import "beta/b.proto";
|
||||
message M { test.beta.M field = 1; }`
|
||||
|
||||
bProto = `
|
||||
syntax = "proto3";
|
||||
package test.beta;
|
||||
// no go_package option
|
||||
message M {}`
|
||||
)
|
||||
|
||||
func TestParameters(t *testing.T) {
|
||||
for _, test := range []struct {
|
||||
parameters string
|
||||
wantFiles map[string]bool
|
||||
wantImportsA map[string]bool
|
||||
wantPackageA string
|
||||
wantPackageB string
|
||||
}{{
|
||||
parameters: "",
|
||||
wantFiles: map[string]bool{
|
||||
"package/alpha/a.pb.go": true,
|
||||
"beta/b.pb.go": true,
|
||||
},
|
||||
wantPackageA: "alpha",
|
||||
wantPackageB: "test_beta",
|
||||
wantImportsA: map[string]bool{
|
||||
"github.com/golang/protobuf/proto": true,
|
||||
"beta": true,
|
||||
},
|
||||
}, {
|
||||
parameters: "import_prefix=prefix",
|
||||
wantFiles: map[string]bool{
|
||||
"package/alpha/a.pb.go": true,
|
||||
"beta/b.pb.go": true,
|
||||
},
|
||||
wantPackageA: "alpha",
|
||||
wantPackageB: "test_beta",
|
||||
wantImportsA: map[string]bool{
|
||||
// This really doesn't seem like useful behavior.
|
||||
"prefixgithub.com/golang/protobuf/proto": true,
|
||||
"prefixbeta": true,
|
||||
},
|
||||
}, {
|
||||
// import_path only affects the 'package' line.
|
||||
parameters: "import_path=import/path/of/pkg",
|
||||
wantPackageA: "alpha",
|
||||
wantPackageB: "pkg",
|
||||
wantFiles: map[string]bool{
|
||||
"package/alpha/a.pb.go": true,
|
||||
"beta/b.pb.go": true,
|
||||
},
|
||||
}, {
|
||||
parameters: "Mbeta/b.proto=package/gamma",
|
||||
wantFiles: map[string]bool{
|
||||
"package/alpha/a.pb.go": true,
|
||||
"beta/b.pb.go": true,
|
||||
},
|
||||
wantPackageA: "alpha",
|
||||
wantPackageB: "test_beta",
|
||||
wantImportsA: map[string]bool{
|
||||
"github.com/golang/protobuf/proto": true,
|
||||
// Rewritten by the M parameter.
|
||||
"package/gamma": true,
|
||||
},
|
||||
}, {
|
||||
parameters: "import_prefix=prefix,Mbeta/b.proto=package/gamma",
|
||||
wantFiles: map[string]bool{
|
||||
"package/alpha/a.pb.go": true,
|
||||
"beta/b.pb.go": true,
|
||||
},
|
||||
wantPackageA: "alpha",
|
||||
wantPackageB: "test_beta",
|
||||
wantImportsA: map[string]bool{
|
||||
// import_prefix applies after M.
|
||||
"prefixpackage/gamma": true,
|
||||
},
|
||||
}, {
|
||||
parameters: "paths=source_relative",
|
||||
wantFiles: map[string]bool{
|
||||
"alpha/a.pb.go": true,
|
||||
"beta/b.pb.go": true,
|
||||
},
|
||||
wantPackageA: "alpha",
|
||||
wantPackageB: "test_beta",
|
||||
}, {
|
||||
parameters: "paths=source_relative,import_prefix=prefix",
|
||||
wantFiles: map[string]bool{
|
||||
// import_prefix doesn't affect filenames.
|
||||
"alpha/a.pb.go": true,
|
||||
"beta/b.pb.go": true,
|
||||
},
|
||||
wantPackageA: "alpha",
|
||||
wantPackageB: "test_beta",
|
||||
}} {
|
||||
name := test.parameters
|
||||
if name == "" {
|
||||
name = "defaults"
|
||||
}
|
||||
// TODO: Switch to t.Run when we no longer support Go 1.6.
|
||||
t.Logf("TEST: %v", name)
|
||||
workdir, err := ioutil.TempDir("", "proto-test")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer os.RemoveAll(workdir)
|
||||
|
||||
for _, dir := range []string{"alpha", "beta", "out"} {
|
||||
if err := os.MkdirAll(filepath.Join(workdir, dir), 0777); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
if err := ioutil.WriteFile(filepath.Join(workdir, "alpha", "a.proto"), []byte(aProto), 0666); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if err := ioutil.WriteFile(filepath.Join(workdir, "beta", "b.proto"), []byte(bProto), 0666); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
protoc(t, []string{
|
||||
"-I" + workdir,
|
||||
"--go_out=" + test.parameters + ":" + filepath.Join(workdir, "out"),
|
||||
filepath.Join(workdir, "alpha", "a.proto"),
|
||||
})
|
||||
protoc(t, []string{
|
||||
"-I" + workdir,
|
||||
"--go_out=" + test.parameters + ":" + filepath.Join(workdir, "out"),
|
||||
filepath.Join(workdir, "beta", "b.proto"),
|
||||
})
|
||||
|
||||
contents := make(map[string]string)
|
||||
gotFiles := make(map[string]bool)
|
||||
outdir := filepath.Join(workdir, "out")
|
||||
filepath.Walk(outdir, func(p string, info os.FileInfo, _ error) error {
|
||||
if info.IsDir() {
|
||||
return nil
|
||||
}
|
||||
base := filepath.Base(p)
|
||||
if base == "a.pb.go" || base == "b.pb.go" {
|
||||
b, err := ioutil.ReadFile(p)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
contents[base] = string(b)
|
||||
}
|
||||
relPath, _ := filepath.Rel(outdir, p)
|
||||
gotFiles[relPath] = true
|
||||
return nil
|
||||
})
|
||||
for got := range gotFiles {
|
||||
if runtime.GOOS == "windows" {
|
||||
got = filepath.ToSlash(got)
|
||||
}
|
||||
if !test.wantFiles[got] {
|
||||
t.Errorf("unexpected output file: %v", got)
|
||||
}
|
||||
}
|
||||
for want := range test.wantFiles {
|
||||
if runtime.GOOS == "windows" {
|
||||
want = filepath.FromSlash(want)
|
||||
}
|
||||
if !gotFiles[want] {
|
||||
t.Errorf("missing output file: %v", want)
|
||||
}
|
||||
}
|
||||
gotPackageA, gotImports, err := parseFile(contents["a.pb.go"])
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
gotPackageB, _, err := parseFile(contents["b.pb.go"])
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if got, want := gotPackageA, test.wantPackageA; want != got {
|
||||
t.Errorf("output file a.pb.go is package %q, want %q", got, want)
|
||||
}
|
||||
if got, want := gotPackageB, test.wantPackageB; want != got {
|
||||
t.Errorf("output file b.pb.go is package %q, want %q", got, want)
|
||||
}
|
||||
missingImport := false
|
||||
WantImport:
|
||||
for want := range test.wantImportsA {
|
||||
for _, imp := range gotImports {
|
||||
if `"`+want+`"` == imp {
|
||||
continue WantImport
|
||||
}
|
||||
}
|
||||
t.Errorf("output file a.pb.go does not contain expected import %q", want)
|
||||
missingImport = true
|
||||
}
|
||||
if missingImport {
|
||||
t.Error("got imports:")
|
||||
for _, imp := range gotImports {
|
||||
t.Errorf(" %v", imp)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestPackageComment(t *testing.T) {
|
||||
workdir, err := ioutil.TempDir("", "proto-test")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer os.RemoveAll(workdir)
|
||||
|
||||
var packageRE = regexp.MustCompile(`(?m)^package .*`)
|
||||
|
||||
for i, test := range []struct {
|
||||
goPackageOption string
|
||||
wantPackage string
|
||||
}{{
|
||||
goPackageOption: ``,
|
||||
wantPackage: `package proto_package`,
|
||||
}, {
|
||||
goPackageOption: `option go_package = "go_package";`,
|
||||
wantPackage: `package go_package`,
|
||||
}, {
|
||||
goPackageOption: `option go_package = "import/path/of/go_package";`,
|
||||
wantPackage: `package go_package // import "import/path/of/go_package"`,
|
||||
}, {
|
||||
goPackageOption: `option go_package = "import/path/of/something;go_package";`,
|
||||
wantPackage: `package go_package // import "import/path/of/something"`,
|
||||
}, {
|
||||
goPackageOption: `option go_package = "import_path;go_package";`,
|
||||
wantPackage: `package go_package // import "import_path"`,
|
||||
}} {
|
||||
srcName := filepath.Join(workdir, fmt.Sprintf("%d.proto", i))
|
||||
tgtName := filepath.Join(workdir, fmt.Sprintf("%d.pb.go", i))
|
||||
|
||||
buf := &bytes.Buffer{}
|
||||
fmt.Fprintln(buf, `syntax = "proto3";`)
|
||||
fmt.Fprintln(buf, `package proto_package;`)
|
||||
fmt.Fprintln(buf, test.goPackageOption)
|
||||
if err := ioutil.WriteFile(srcName, buf.Bytes(), 0666); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
protoc(t, []string{"-I" + workdir, "--go_out=paths=source_relative:" + workdir, srcName})
|
||||
|
||||
out, err := ioutil.ReadFile(tgtName)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
pkg := packageRE.Find(out)
|
||||
if pkg == nil {
|
||||
t.Errorf("generated .pb.go contains no package line\n\nsource:\n%v\n\noutput:\n%v", buf.String(), string(out))
|
||||
continue
|
||||
}
|
||||
|
||||
if got, want := string(pkg), test.wantPackage; got != want {
|
||||
t.Errorf("unexpected package statement with go_package = %q\n got: %v\nwant: %v", test.goPackageOption, got, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// parseFile returns a file's package name and a list of all packages it imports.
|
||||
func parseFile(source string) (packageName string, imports []string, err error) {
|
||||
fset := token.NewFileSet()
|
||||
f, err := parser.ParseFile(fset, "<source>", source, parser.ImportsOnly)
|
||||
if err != nil {
|
||||
return "", nil, err
|
||||
}
|
||||
for _, imp := range f.Imports {
|
||||
imports = append(imports, imp.Path.Value)
|
||||
}
|
||||
return f.Name.Name, imports, nil
|
||||
}
|
||||
|
||||
func protoc(t *testing.T, args []string) {
|
||||
cmd := exec.Command("protoc", "--plugin=protoc-gen-go="+os.Args[0])
|
||||
cmd.Args = append(cmd.Args, args...)
|
||||
// We set the RUN_AS_PROTOC_GEN_GO environment variable to indicate that
|
||||
// the subprocess should act as a proto compiler rather than a test.
|
||||
cmd.Env = append(os.Environ(), "RUN_AS_PROTOC_GEN_GO=1")
|
||||
out, err := cmd.CombinedOutput()
|
||||
if len(out) > 0 || err != nil {
|
||||
t.Log("RUNNING: ", strings.Join(cmd.Args, " "))
|
||||
}
|
||||
if len(out) > 0 {
|
||||
t.Log(string(out))
|
||||
}
|
||||
if err != nil {
|
||||
t.Fatalf("protoc: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func hasReleaseTag(want string) bool {
|
||||
for _, tag := range build.Default.ReleaseTags {
|
||||
if tag == want {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
26
vendor/github.com/golang/protobuf/protoc-gen-go/grpc/grpc.go
generated
vendored
26
vendor/github.com/golang/protobuf/protoc-gen-go/grpc/grpc.go
generated
vendored
@ -130,19 +130,23 @@ func (g *grpc) GenerateImports(file *generator.FileDescriptor) {
|
||||
return
|
||||
}
|
||||
g.P("import (")
|
||||
g.P(contextPkg, " ", strconv.Quote(path.Join(g.gen.ImportPrefix, contextPkgPath)))
|
||||
g.P(grpcPkg, " ", strconv.Quote(path.Join(g.gen.ImportPrefix, grpcPkgPath)))
|
||||
g.P(contextPkg, " ", generator.GoImportPath(path.Join(string(g.gen.ImportPrefix), contextPkgPath)))
|
||||
g.P(grpcPkg, " ", generator.GoImportPath(path.Join(string(g.gen.ImportPrefix), grpcPkgPath)))
|
||||
g.P(")")
|
||||
g.P()
|
||||
}
|
||||
|
||||
// reservedClientName records whether a client name is reserved on the client side.
|
||||
var reservedClientName = map[string]bool{
|
||||
// TODO: do we need any in gRPC?
|
||||
// TODO: do we need any in gRPC?
|
||||
}
|
||||
|
||||
func unexport(s string) string { return strings.ToLower(s[:1]) + s[1:] }
|
||||
|
||||
// deprecationComment is the standard comment added to deprecated
|
||||
// messages, fields, enums, and enum values.
|
||||
var deprecationComment = "// Deprecated: Do not use."
|
||||
|
||||
// generateService generates all the code for the named service.
|
||||
func (g *grpc) generateService(file *generator.FileDescriptor, service *pb.ServiceDescriptorProto, index int) {
|
||||
path := fmt.Sprintf("6,%d", index) // 6 means service.
|
||||
@ -153,12 +157,16 @@ func (g *grpc) generateService(file *generator.FileDescriptor, service *pb.Servi
|
||||
fullServName = pkg + "." + fullServName
|
||||
}
|
||||
servName := generator.CamelCase(origServName)
|
||||
deprecated := service.GetOptions().GetDeprecated()
|
||||
|
||||
g.P()
|
||||
g.P("// Client API for ", servName, " service")
|
||||
g.P()
|
||||
|
||||
// Client interface.
|
||||
if deprecated {
|
||||
g.P(deprecationComment)
|
||||
}
|
||||
g.P("type ", servName, "Client interface {")
|
||||
for i, method := range service.Method {
|
||||
g.gen.PrintComments(fmt.Sprintf("%s,2,%d", path, i)) // 2 means method in a service.
|
||||
@ -174,6 +182,9 @@ func (g *grpc) generateService(file *generator.FileDescriptor, service *pb.Servi
|
||||
g.P()
|
||||
|
||||
// NewClient factory.
|
||||
if deprecated {
|
||||
g.P(deprecationComment)
|
||||
}
|
||||
g.P("func New", servName, "Client (cc *", grpcPkg, ".ClientConn) ", servName, "Client {")
|
||||
g.P("return &", unexport(servName), "Client{cc}")
|
||||
g.P("}")
|
||||
@ -200,6 +211,9 @@ func (g *grpc) generateService(file *generator.FileDescriptor, service *pb.Servi
|
||||
g.P()
|
||||
|
||||
// Server interface.
|
||||
if deprecated {
|
||||
g.P(deprecationComment)
|
||||
}
|
||||
serverType := servName + "Server"
|
||||
g.P("type ", serverType, " interface {")
|
||||
for i, method := range service.Method {
|
||||
@ -210,6 +224,9 @@ func (g *grpc) generateService(file *generator.FileDescriptor, service *pb.Servi
|
||||
g.P()
|
||||
|
||||
// Server registration.
|
||||
if deprecated {
|
||||
g.P(deprecationComment)
|
||||
}
|
||||
g.P("func Register", servName, "Server(s *", grpcPkg, ".Server, srv ", serverType, ") {")
|
||||
g.P("s.RegisterService(&", serviceDescVar, `, srv)`)
|
||||
g.P("}")
|
||||
@ -283,6 +300,9 @@ func (g *grpc) generateClientMethod(servName, fullServName, serviceDescVar strin
|
||||
inType := g.typeName(method.GetInputType())
|
||||
outType := g.typeName(method.GetOutputType())
|
||||
|
||||
if method.GetOptions().GetDeprecated() {
|
||||
g.P(deprecationComment)
|
||||
}
|
||||
g.P("func (c *", unexport(servName), "Client) ", g.generateClientSignature(servName, method), "{")
|
||||
if !method.GetServerStreaming() && !method.GetClientStreaming() {
|
||||
g.P("out := new(", outType, ")")
|
||||
|
45
vendor/github.com/golang/protobuf/protoc-gen-go/plugin/Makefile
generated
vendored
45
vendor/github.com/golang/protobuf/protoc-gen-go/plugin/Makefile
generated
vendored
@ -1,45 +0,0 @@
|
||||
# Go support for Protocol Buffers - Google's data interchange format
|
||||
#
|
||||
# Copyright 2010 The Go Authors. All rights reserved.
|
||||
# https://github.com/golang/protobuf
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Not stored here, but plugin.proto is in https://github.com/google/protobuf/
|
||||
# at src/google/protobuf/compiler/plugin.proto
|
||||
# Also we need to fix an import.
|
||||
regenerate:
|
||||
@echo WARNING! THIS RULE IS PROBABLY NOT RIGHT FOR YOUR INSTALLATION
|
||||
cp $(HOME)/src/protobuf/include/google/protobuf/compiler/plugin.proto .
|
||||
protoc --go_out=Mgoogle/protobuf/descriptor.proto=github.com/golang/protobuf/protoc-gen-go/descriptor:../../../../.. \
|
||||
-I$(HOME)/src/protobuf/include $(HOME)/src/protobuf/include/google/protobuf/compiler/plugin.proto
|
||||
|
||||
restore:
|
||||
cp plugin.pb.golden plugin.pb.go
|
||||
|
||||
preserve:
|
||||
cp plugin.pb.go plugin.pb.golden
|
94
vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.go
generated
vendored
94
vendor/github.com/golang/protobuf/protoc-gen-go/plugin/plugin.pb.go
generated
vendored
@ -37,14 +37,33 @@ type Version struct {
|
||||
Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"`
|
||||
// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
|
||||
// be empty for mainline stable releases.
|
||||
Suffix *string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
Suffix *string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Version) Reset() { *m = Version{} }
|
||||
func (m *Version) String() string { return proto.CompactTextString(m) }
|
||||
func (*Version) ProtoMessage() {}
|
||||
func (*Version) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (m *Version) Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Version.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Version) Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Version.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Version) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Version.Merge(dst, src)
|
||||
}
|
||||
func (m *Version) XXX_Size() int {
|
||||
return xxx_messageInfo_Version.Size(m)
|
||||
}
|
||||
func (m *Version) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Version.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Version proto.InternalMessageInfo
|
||||
|
||||
func (m *Version) GetMajor() int32 {
|
||||
if m != nil && m.Major != nil {
|
||||
@ -98,14 +117,33 @@ type CodeGeneratorRequest struct {
|
||||
// fully qualified.
|
||||
ProtoFile []*google_protobuf.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"`
|
||||
// The version number of protocol compiler.
|
||||
CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CodeGeneratorRequest) Reset() { *m = CodeGeneratorRequest{} }
|
||||
func (m *CodeGeneratorRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CodeGeneratorRequest) ProtoMessage() {}
|
||||
func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
func (m *CodeGeneratorRequest) Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CodeGeneratorRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CodeGeneratorRequest) Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CodeGeneratorRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CodeGeneratorRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CodeGeneratorRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *CodeGeneratorRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CodeGeneratorRequest.Size(m)
|
||||
}
|
||||
func (m *CodeGeneratorRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CodeGeneratorRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CodeGeneratorRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CodeGeneratorRequest) GetFileToGenerate() []string {
|
||||
if m != nil {
|
||||
@ -145,15 +183,34 @@ type CodeGeneratorResponse struct {
|
||||
// problem in protoc itself -- such as the input CodeGeneratorRequest being
|
||||
// unparseable -- should be reported by writing a message to stderr and
|
||||
// exiting with a non-zero status code.
|
||||
Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
|
||||
File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
|
||||
File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CodeGeneratorResponse) Reset() { *m = CodeGeneratorResponse{} }
|
||||
func (m *CodeGeneratorResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*CodeGeneratorResponse) ProtoMessage() {}
|
||||
func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
func (m *CodeGeneratorResponse) Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CodeGeneratorResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CodeGeneratorResponse) Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CodeGeneratorResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CodeGeneratorResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CodeGeneratorResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *CodeGeneratorResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_CodeGeneratorResponse.Size(m)
|
||||
}
|
||||
func (m *CodeGeneratorResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CodeGeneratorResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CodeGeneratorResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *CodeGeneratorResponse) GetError() string {
|
||||
if m != nil && m.Error != nil {
|
||||
@ -222,14 +279,33 @@ type CodeGeneratorResponse_File struct {
|
||||
// If |insertion_point| is present, |name| must also be present.
|
||||
InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"`
|
||||
// The file contents.
|
||||
Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CodeGeneratorResponse_File) Reset() { *m = CodeGeneratorResponse_File{} }
|
||||
func (m *CodeGeneratorResponse_File) String() string { return proto.CompactTextString(m) }
|
||||
func (*CodeGeneratorResponse_File) ProtoMessage() {}
|
||||
func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
|
||||
func (m *CodeGeneratorResponse_File) Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CodeGeneratorResponse_File.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CodeGeneratorResponse_File) Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CodeGeneratorResponse_File.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CodeGeneratorResponse_File) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CodeGeneratorResponse_File.Merge(dst, src)
|
||||
}
|
||||
func (m *CodeGeneratorResponse_File) XXX_Size() int {
|
||||
return xxx_messageInfo_CodeGeneratorResponse_File.Size(m)
|
||||
}
|
||||
func (m *CodeGeneratorResponse_File) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CodeGeneratorResponse_File.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CodeGeneratorResponse_File proto.InternalMessageInfo
|
||||
|
||||
func (m *CodeGeneratorResponse_File) GetName() string {
|
||||
if m != nil && m.Name != nil {
|
||||
|
73
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/Makefile
generated
vendored
73
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/Makefile
generated
vendored
@ -1,73 +0,0 @@
|
||||
# Go support for Protocol Buffers - Google's data interchange format
|
||||
#
|
||||
# Copyright 2010 The Go Authors. All rights reserved.
|
||||
# https://github.com/golang/protobuf
|
||||
#
|
||||
# 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.
|
||||
|
||||
all:
|
||||
@echo run make test
|
||||
|
||||
include ../../Make.protobuf
|
||||
|
||||
test: golden testbuild
|
||||
|
||||
#test: golden testbuild extension_test
|
||||
# ./extension_test
|
||||
# @echo PASS
|
||||
|
||||
my_test/test.pb.go: my_test/test.proto
|
||||
protoc --go_out=Mmulti/multi1.proto=github.com/golang/protobuf/protoc-gen-go/testdata/multi:. $<
|
||||
|
||||
golden:
|
||||
make -B my_test/test.pb.go
|
||||
sed -i -e '/return.*fileDescriptor/d' my_test/test.pb.go
|
||||
sed -i -e '/^var fileDescriptor/,/^}/d' my_test/test.pb.go
|
||||
sed -i -e '/proto.RegisterFile.*fileDescriptor/d' my_test/test.pb.go
|
||||
gofmt -w my_test/test.pb.go
|
||||
diff -w my_test/test.pb.go my_test/test.pb.go.golden
|
||||
|
||||
nuke: clean
|
||||
|
||||
testbuild: regenerate
|
||||
go test
|
||||
|
||||
regenerate:
|
||||
# Invoke protoc once to generate three independent .pb.go files in the same package.
|
||||
protoc --go_out=. multi/multi1.proto multi/multi2.proto multi/multi3.proto
|
||||
|
||||
#extension_test: extension_test.$O
|
||||
# $(LD) -L. -o $@ $<
|
||||
|
||||
#multi.a: multi3.pb.$O multi2.pb.$O multi1.pb.$O
|
||||
# rm -f multi.a
|
||||
# $(QUOTED_GOBIN)/gopack grc $@ $<
|
||||
|
||||
#test.pb.go: imp.pb.go
|
||||
#multi1.pb.go: multi2.pb.go multi3.pb.go
|
||||
#main.$O: imp.pb.$O test.pb.$O multi.a
|
||||
#extension_test.$O: extension_base.pb.$O extension_extra.pb.$O extension_user.pb.$O
|
232
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/deprecated/deprecated.pb.go
generated
vendored
Normal file
232
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/deprecated/deprecated.pb.go
generated
vendored
Normal file
@ -0,0 +1,232 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// deprecated/deprecated.proto is a deprecated file.
|
||||
|
||||
package deprecated // import "github.com/golang/protobuf/protoc-gen-go/testdata/deprecated"
|
||||
|
||||
/*
|
||||
package deprecated contains only deprecated messages and services.
|
||||
*/
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// DeprecatedEnum contains deprecated values.
|
||||
type DeprecatedEnum int32 // Deprecated: Do not use.
|
||||
const (
|
||||
// DEPRECATED is the iota value of this enum.
|
||||
DeprecatedEnum_DEPRECATED DeprecatedEnum = 0 // Deprecated: Do not use.
|
||||
)
|
||||
|
||||
var DeprecatedEnum_name = map[int32]string{
|
||||
0: "DEPRECATED",
|
||||
}
|
||||
var DeprecatedEnum_value = map[string]int32{
|
||||
"DEPRECATED": 0,
|
||||
}
|
||||
|
||||
func (x DeprecatedEnum) String() string {
|
||||
return proto.EnumName(DeprecatedEnum_name, int32(x))
|
||||
}
|
||||
func (DeprecatedEnum) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_deprecated_9e1889ba21817fad, []int{0}
|
||||
}
|
||||
|
||||
// DeprecatedRequest is a request to DeprecatedCall.
|
||||
//
|
||||
// Deprecated: Do not use.
|
||||
type DeprecatedRequest struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeprecatedRequest) Reset() { *m = DeprecatedRequest{} }
|
||||
func (m *DeprecatedRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeprecatedRequest) ProtoMessage() {}
|
||||
func (*DeprecatedRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_deprecated_9e1889ba21817fad, []int{0}
|
||||
}
|
||||
func (m *DeprecatedRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeprecatedRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeprecatedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeprecatedRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *DeprecatedRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeprecatedRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *DeprecatedRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeprecatedRequest.Size(m)
|
||||
}
|
||||
func (m *DeprecatedRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeprecatedRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeprecatedRequest proto.InternalMessageInfo
|
||||
|
||||
// Deprecated: Do not use.
|
||||
type DeprecatedResponse struct {
|
||||
// DeprecatedField contains a DeprecatedEnum.
|
||||
DeprecatedField DeprecatedEnum `protobuf:"varint,1,opt,name=deprecated_field,json=deprecatedField,enum=deprecated.DeprecatedEnum" json:"deprecated_field,omitempty"` // Deprecated: Do not use.
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeprecatedResponse) Reset() { *m = DeprecatedResponse{} }
|
||||
func (m *DeprecatedResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeprecatedResponse) ProtoMessage() {}
|
||||
func (*DeprecatedResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_deprecated_9e1889ba21817fad, []int{1}
|
||||
}
|
||||
func (m *DeprecatedResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeprecatedResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeprecatedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeprecatedResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *DeprecatedResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeprecatedResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *DeprecatedResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_DeprecatedResponse.Size(m)
|
||||
}
|
||||
func (m *DeprecatedResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeprecatedResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeprecatedResponse proto.InternalMessageInfo
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *DeprecatedResponse) GetDeprecatedField() DeprecatedEnum {
|
||||
if m != nil {
|
||||
return m.DeprecatedField
|
||||
}
|
||||
return DeprecatedEnum_DEPRECATED
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*DeprecatedRequest)(nil), "deprecated.DeprecatedRequest")
|
||||
proto.RegisterType((*DeprecatedResponse)(nil), "deprecated.DeprecatedResponse")
|
||||
proto.RegisterEnum("deprecated.DeprecatedEnum", DeprecatedEnum_name, DeprecatedEnum_value)
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// Client API for DeprecatedService service
|
||||
|
||||
// Deprecated: Do not use.
|
||||
type DeprecatedServiceClient interface {
|
||||
// DeprecatedCall takes a DeprecatedRequest and returns a DeprecatedResponse.
|
||||
DeprecatedCall(ctx context.Context, in *DeprecatedRequest, opts ...grpc.CallOption) (*DeprecatedResponse, error)
|
||||
}
|
||||
|
||||
type deprecatedServiceClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func NewDeprecatedServiceClient(cc *grpc.ClientConn) DeprecatedServiceClient {
|
||||
return &deprecatedServiceClient{cc}
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (c *deprecatedServiceClient) DeprecatedCall(ctx context.Context, in *DeprecatedRequest, opts ...grpc.CallOption) (*DeprecatedResponse, error) {
|
||||
out := new(DeprecatedResponse)
|
||||
err := grpc.Invoke(ctx, "/deprecated.DeprecatedService/DeprecatedCall", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Server API for DeprecatedService service
|
||||
|
||||
// Deprecated: Do not use.
|
||||
type DeprecatedServiceServer interface {
|
||||
// DeprecatedCall takes a DeprecatedRequest and returns a DeprecatedResponse.
|
||||
DeprecatedCall(context.Context, *DeprecatedRequest) (*DeprecatedResponse, error)
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func RegisterDeprecatedServiceServer(s *grpc.Server, srv DeprecatedServiceServer) {
|
||||
s.RegisterService(&_DeprecatedService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _DeprecatedService_DeprecatedCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeprecatedRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/deprecated.DeprecatedService/DeprecatedCall",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, req.(*DeprecatedRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _DeprecatedService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "deprecated.DeprecatedService",
|
||||
HandlerType: (*DeprecatedServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "DeprecatedCall",
|
||||
Handler: _DeprecatedService_DeprecatedCall_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "deprecated/deprecated.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("deprecated/deprecated.proto", fileDescriptor_deprecated_9e1889ba21817fad)
|
||||
}
|
||||
|
||||
var fileDescriptor_deprecated_9e1889ba21817fad = []byte{
|
||||
// 248 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0x49, 0x2d, 0x28,
|
||||
0x4a, 0x4d, 0x4e, 0x2c, 0x49, 0x4d, 0xd1, 0x47, 0x30, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85,
|
||||
0xb8, 0x10, 0x22, 0x4a, 0xe2, 0x5c, 0x82, 0x2e, 0x70, 0x5e, 0x50, 0x6a, 0x61, 0x69, 0x6a, 0x71,
|
||||
0x89, 0x15, 0x93, 0x04, 0xa3, 0x52, 0x32, 0x97, 0x10, 0xb2, 0x44, 0x71, 0x41, 0x7e, 0x5e, 0x71,
|
||||
0xaa, 0x90, 0x27, 0x97, 0x00, 0x42, 0x73, 0x7c, 0x5a, 0x66, 0x6a, 0x4e, 0x8a, 0x04, 0xa3, 0x02,
|
||||
0xa3, 0x06, 0x9f, 0x91, 0x94, 0x1e, 0x92, 0x3d, 0x08, 0x9d, 0xae, 0x79, 0xa5, 0xb9, 0x4e, 0x4c,
|
||||
0x12, 0x8c, 0x41, 0xfc, 0x08, 0x69, 0x37, 0x90, 0x36, 0x90, 0x25, 0x5a, 0x1a, 0x5c, 0x7c, 0xa8,
|
||||
0x4a, 0x85, 0x84, 0xb8, 0xb8, 0x5c, 0x5c, 0x03, 0x82, 0x5c, 0x9d, 0x1d, 0x43, 0x5c, 0x5d, 0x04,
|
||||
0x18, 0xa4, 0x98, 0x38, 0x18, 0xa5, 0x98, 0x24, 0x18, 0x8d, 0xf2, 0x90, 0xdd, 0x19, 0x9c, 0x5a,
|
||||
0x54, 0x96, 0x99, 0x9c, 0x2a, 0x14, 0x82, 0xac, 0xdd, 0x39, 0x31, 0x27, 0x47, 0x48, 0x16, 0xbb,
|
||||
0x2b, 0xa0, 0x1e, 0x93, 0x92, 0xc3, 0x25, 0x0d, 0xf1, 0x9e, 0x12, 0x73, 0x07, 0x13, 0xa3, 0x14,
|
||||
0x88, 0x70, 0x72, 0x8c, 0xb2, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5,
|
||||
0x4f, 0xcf, 0xcf, 0x49, 0xcc, 0x4b, 0xd7, 0x07, 0x07, 0x5f, 0x52, 0x69, 0x1a, 0x84, 0x91, 0xac,
|
||||
0x9b, 0x9e, 0x9a, 0xa7, 0x9b, 0x9e, 0xaf, 0x5f, 0x92, 0x5a, 0x5c, 0x92, 0x92, 0x58, 0x92, 0x88,
|
||||
0x14, 0xd2, 0x3b, 0x18, 0x19, 0x93, 0xd8, 0xc0, 0xaa, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff,
|
||||
0x0e, 0xf5, 0x6c, 0x87, 0x8c, 0x01, 0x00, 0x00,
|
||||
}
|
69
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/deprecated/deprecated.proto
generated
vendored
Normal file
69
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/deprecated/deprecated.proto
generated
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
// package deprecated contains only deprecated messages and services.
|
||||
package deprecated;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/deprecated";
|
||||
|
||||
option deprecated = true; // file-level deprecation
|
||||
|
||||
// DeprecatedRequest is a request to DeprecatedCall.
|
||||
message DeprecatedRequest {
|
||||
option deprecated = true;
|
||||
}
|
||||
|
||||
message DeprecatedResponse {
|
||||
// comment for DeprecatedResponse is omitted to guarantee deprecation
|
||||
// message doesn't append unnecessary comments.
|
||||
option deprecated = true;
|
||||
// DeprecatedField contains a DeprecatedEnum.
|
||||
DeprecatedEnum deprecated_field = 1 [deprecated=true];
|
||||
}
|
||||
|
||||
// DeprecatedEnum contains deprecated values.
|
||||
enum DeprecatedEnum {
|
||||
option deprecated = true;
|
||||
// DEPRECATED is the iota value of this enum.
|
||||
DEPRECATED = 0 [deprecated=true];
|
||||
}
|
||||
|
||||
// DeprecatedService is for making DeprecatedCalls
|
||||
service DeprecatedService {
|
||||
option deprecated = true;
|
||||
|
||||
// DeprecatedCall takes a DeprecatedRequest and returns a DeprecatedResponse.
|
||||
rpc DeprecatedCall(DeprecatedRequest) returns (DeprecatedResponse) {
|
||||
option deprecated = true;
|
||||
}
|
||||
}
|
139
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base/extension_base.pb.go
generated
vendored
Normal file
139
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base/extension_base.pb.go
generated
vendored
Normal file
@ -0,0 +1,139 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: extension_base/extension_base.proto
|
||||
|
||||
package extension_base // import "github.com/golang/protobuf/protoc-gen-go/testdata/extension_base"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type BaseMessage struct {
|
||||
Height *int32 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
proto.XXX_InternalExtensions `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *BaseMessage) Reset() { *m = BaseMessage{} }
|
||||
func (m *BaseMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*BaseMessage) ProtoMessage() {}
|
||||
func (*BaseMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_extension_base_41d3c712c9fc37fc, []int{0}
|
||||
}
|
||||
|
||||
var extRange_BaseMessage = []proto.ExtensionRange{
|
||||
{Start: 4, End: 9},
|
||||
{Start: 16, End: 536870911},
|
||||
}
|
||||
|
||||
func (*BaseMessage) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_BaseMessage
|
||||
}
|
||||
func (m *BaseMessage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BaseMessage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BaseMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BaseMessage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *BaseMessage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BaseMessage.Merge(dst, src)
|
||||
}
|
||||
func (m *BaseMessage) XXX_Size() int {
|
||||
return xxx_messageInfo_BaseMessage.Size(m)
|
||||
}
|
||||
func (m *BaseMessage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BaseMessage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BaseMessage proto.InternalMessageInfo
|
||||
|
||||
func (m *BaseMessage) GetHeight() int32 {
|
||||
if m != nil && m.Height != nil {
|
||||
return *m.Height
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Another message that may be extended, using message_set_wire_format.
|
||||
type OldStyleMessage struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
proto.XXX_InternalExtensions `protobuf_messageset:"1" json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OldStyleMessage) Reset() { *m = OldStyleMessage{} }
|
||||
func (m *OldStyleMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*OldStyleMessage) ProtoMessage() {}
|
||||
func (*OldStyleMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_extension_base_41d3c712c9fc37fc, []int{1}
|
||||
}
|
||||
|
||||
func (m *OldStyleMessage) MarshalJSON() ([]byte, error) {
|
||||
return proto.MarshalMessageSetJSON(&m.XXX_InternalExtensions)
|
||||
}
|
||||
func (m *OldStyleMessage) UnmarshalJSON(buf []byte) error {
|
||||
return proto.UnmarshalMessageSetJSON(buf, &m.XXX_InternalExtensions)
|
||||
}
|
||||
|
||||
var extRange_OldStyleMessage = []proto.ExtensionRange{
|
||||
{Start: 100, End: 2147483646},
|
||||
}
|
||||
|
||||
func (*OldStyleMessage) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_OldStyleMessage
|
||||
}
|
||||
func (m *OldStyleMessage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_OldStyleMessage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *OldStyleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_OldStyleMessage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *OldStyleMessage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OldStyleMessage.Merge(dst, src)
|
||||
}
|
||||
func (m *OldStyleMessage) XXX_Size() int {
|
||||
return xxx_messageInfo_OldStyleMessage.Size(m)
|
||||
}
|
||||
func (m *OldStyleMessage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_OldStyleMessage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_OldStyleMessage proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*BaseMessage)(nil), "extension_base.BaseMessage")
|
||||
proto.RegisterType((*OldStyleMessage)(nil), "extension_base.OldStyleMessage")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("extension_base/extension_base.proto", fileDescriptor_extension_base_41d3c712c9fc37fc)
|
||||
}
|
||||
|
||||
var fileDescriptor_extension_base_41d3c712c9fc37fc = []byte{
|
||||
// 179 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xad, 0x28, 0x49,
|
||||
0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x8b, 0x4f, 0x4a, 0x2c, 0x4e, 0xd5, 0x47, 0xe5, 0xea, 0x15, 0x14,
|
||||
0xe5, 0x97, 0xe4, 0x0b, 0xf1, 0xa1, 0x8a, 0x2a, 0x99, 0x72, 0x71, 0x3b, 0x25, 0x16, 0xa7, 0xfa,
|
||||
0xa6, 0x16, 0x17, 0x27, 0xa6, 0xa7, 0x0a, 0x89, 0x71, 0xb1, 0x65, 0xa4, 0x66, 0xa6, 0x67, 0x94,
|
||||
0x48, 0x30, 0x2a, 0x30, 0x6a, 0xb0, 0x06, 0x41, 0x79, 0x5a, 0x2c, 0x1c, 0x2c, 0x02, 0x5c, 0x5a,
|
||||
0x1c, 0x1c, 0x02, 0x02, 0x0d, 0x0d, 0x0d, 0x0d, 0x4c, 0x4a, 0xf2, 0x5c, 0xfc, 0xfe, 0x39, 0x29,
|
||||
0xc1, 0x25, 0x95, 0x39, 0x30, 0xad, 0x5a, 0x1c, 0x1c, 0x29, 0x02, 0xff, 0xff, 0xff, 0xff, 0xcf,
|
||||
0x6e, 0xc5, 0xc4, 0xc1, 0xe8, 0xe4, 0x14, 0xe5, 0x90, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97,
|
||||
0x9c, 0x9f, 0xab, 0x9f, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x0f, 0x76, 0x42, 0x52, 0x69, 0x1a,
|
||||
0x84, 0x91, 0xac, 0x9b, 0x9e, 0x9a, 0xa7, 0x9b, 0x9e, 0xaf, 0x5f, 0x92, 0x5a, 0x5c, 0x92, 0x92,
|
||||
0x58, 0x92, 0x88, 0xe6, 0x62, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x7f, 0xb7, 0x2a, 0xd1,
|
||||
0x00, 0x00, 0x00,
|
||||
}
|
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base/extension_base.proto
generated
vendored
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_base/extension_base.proto
generated
vendored
@ -33,6 +33,8 @@ syntax = "proto2";
|
||||
|
||||
package extension_base;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/extension_base";
|
||||
|
||||
message BaseMessage {
|
||||
optional int32 height = 1;
|
||||
extensions 4 to 9;
|
78
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra/extension_extra.pb.go
generated
vendored
Normal file
78
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra/extension_extra.pb.go
generated
vendored
Normal file
@ -0,0 +1,78 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: extension_extra/extension_extra.proto
|
||||
|
||||
package extension_extra // import "github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type ExtraMessage struct {
|
||||
Width *int32 `protobuf:"varint,1,opt,name=width" json:"width,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ExtraMessage) Reset() { *m = ExtraMessage{} }
|
||||
func (m *ExtraMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*ExtraMessage) ProtoMessage() {}
|
||||
func (*ExtraMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_extension_extra_83adf2410f49f816, []int{0}
|
||||
}
|
||||
func (m *ExtraMessage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ExtraMessage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ExtraMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ExtraMessage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ExtraMessage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExtraMessage.Merge(dst, src)
|
||||
}
|
||||
func (m *ExtraMessage) XXX_Size() int {
|
||||
return xxx_messageInfo_ExtraMessage.Size(m)
|
||||
}
|
||||
func (m *ExtraMessage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ExtraMessage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ExtraMessage proto.InternalMessageInfo
|
||||
|
||||
func (m *ExtraMessage) GetWidth() int32 {
|
||||
if m != nil && m.Width != nil {
|
||||
return *m.Width
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ExtraMessage)(nil), "extension_extra.ExtraMessage")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("extension_extra/extension_extra.proto", fileDescriptor_extension_extra_83adf2410f49f816)
|
||||
}
|
||||
|
||||
var fileDescriptor_extension_extra_83adf2410f49f816 = []byte{
|
||||
// 133 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4d, 0xad, 0x28, 0x49,
|
||||
0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x8b, 0x4f, 0xad, 0x28, 0x29, 0x4a, 0xd4, 0x47, 0xe3, 0xeb, 0x15,
|
||||
0x14, 0xe5, 0x97, 0xe4, 0x0b, 0xf1, 0xa3, 0x09, 0x2b, 0xa9, 0x70, 0xf1, 0xb8, 0x82, 0x18, 0xbe,
|
||||
0xa9, 0xc5, 0xc5, 0x89, 0xe9, 0xa9, 0x42, 0x22, 0x5c, 0xac, 0xe5, 0x99, 0x29, 0x25, 0x19, 0x12,
|
||||
0x8c, 0x0a, 0x8c, 0x1a, 0xac, 0x41, 0x10, 0x8e, 0x93, 0x73, 0x94, 0x63, 0x7a, 0x66, 0x49, 0x46,
|
||||
0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7a, 0x7e, 0x4e, 0x62, 0x5e, 0xba, 0x3e, 0xd8, 0xc4,
|
||||
0xa4, 0xd2, 0x34, 0x08, 0x23, 0x59, 0x37, 0x3d, 0x35, 0x4f, 0x37, 0x3d, 0x5f, 0xbf, 0x24, 0xb5,
|
||||
0xb8, 0x24, 0x25, 0xb1, 0x04, 0xc3, 0x05, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf1, 0xec, 0xe3,
|
||||
0xb7, 0xa3, 0x00, 0x00, 0x00,
|
||||
}
|
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra/extension_extra.proto
generated
vendored
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra/extension_extra.proto
generated
vendored
@ -33,6 +33,8 @@ syntax = "proto2";
|
||||
|
||||
package extension_extra;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra";
|
||||
|
||||
message ExtraMessage {
|
||||
optional int32 width = 1;
|
||||
}
|
8
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_test.go
generated
vendored
8
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_test.go
generated
vendored
@ -33,16 +33,14 @@
|
||||
|
||||
package testdata
|
||||
|
||||
/*
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"regexp"
|
||||
"testing"
|
||||
|
||||
"github.com/golang/protobuf/proto"
|
||||
base "extension_base.pb"
|
||||
user "extension_user.pb"
|
||||
base "github.com/golang/protobuf/protoc-gen-go/testdata/extension_base"
|
||||
user "github.com/golang/protobuf/protoc-gen-go/testdata/extension_user"
|
||||
)
|
||||
|
||||
func TestSingleFieldExtension(t *testing.T) {
|
||||
@ -206,5 +204,3 @@ func main() {
|
||||
[]testing.InternalBenchmark{},
|
||||
[]testing.InternalExample{})
|
||||
}
|
||||
|
||||
*/
|
||||
|
401
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user/extension_user.pb.go
generated
vendored
Normal file
401
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user/extension_user.pb.go
generated
vendored
Normal file
@ -0,0 +1,401 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: extension_user/extension_user.proto
|
||||
|
||||
package extension_user // import "github.com/golang/protobuf/protoc-gen-go/testdata/extension_user"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import extension_base "github.com/golang/protobuf/protoc-gen-go/testdata/extension_base"
|
||||
import extension_extra "github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra"
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type UserMessage struct {
|
||||
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
Rank *string `protobuf:"bytes,2,opt,name=rank" json:"rank,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UserMessage) Reset() { *m = UserMessage{} }
|
||||
func (m *UserMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*UserMessage) ProtoMessage() {}
|
||||
func (*UserMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_extension_user_af41b5e0bdfb7846, []int{0}
|
||||
}
|
||||
func (m *UserMessage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UserMessage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UserMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UserMessage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *UserMessage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UserMessage.Merge(dst, src)
|
||||
}
|
||||
func (m *UserMessage) XXX_Size() int {
|
||||
return xxx_messageInfo_UserMessage.Size(m)
|
||||
}
|
||||
func (m *UserMessage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UserMessage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UserMessage proto.InternalMessageInfo
|
||||
|
||||
func (m *UserMessage) GetName() string {
|
||||
if m != nil && m.Name != nil {
|
||||
return *m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *UserMessage) GetRank() string {
|
||||
if m != nil && m.Rank != nil {
|
||||
return *m.Rank
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Extend inside the scope of another type
|
||||
type LoudMessage struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
proto.XXX_InternalExtensions `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *LoudMessage) Reset() { *m = LoudMessage{} }
|
||||
func (m *LoudMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*LoudMessage) ProtoMessage() {}
|
||||
func (*LoudMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_extension_user_af41b5e0bdfb7846, []int{1}
|
||||
}
|
||||
|
||||
var extRange_LoudMessage = []proto.ExtensionRange{
|
||||
{Start: 100, End: 536870911},
|
||||
}
|
||||
|
||||
func (*LoudMessage) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_LoudMessage
|
||||
}
|
||||
func (m *LoudMessage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_LoudMessage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *LoudMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_LoudMessage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *LoudMessage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_LoudMessage.Merge(dst, src)
|
||||
}
|
||||
func (m *LoudMessage) XXX_Size() int {
|
||||
return xxx_messageInfo_LoudMessage.Size(m)
|
||||
}
|
||||
func (m *LoudMessage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_LoudMessage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_LoudMessage proto.InternalMessageInfo
|
||||
|
||||
var E_LoudMessage_Volume = &proto.ExtensionDesc{
|
||||
ExtendedType: (*extension_base.BaseMessage)(nil),
|
||||
ExtensionType: (*uint32)(nil),
|
||||
Field: 8,
|
||||
Name: "extension_user.LoudMessage.volume",
|
||||
Tag: "varint,8,opt,name=volume",
|
||||
Filename: "extension_user/extension_user.proto",
|
||||
}
|
||||
|
||||
// Extend inside the scope of another type, using a message.
|
||||
type LoginMessage struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *LoginMessage) Reset() { *m = LoginMessage{} }
|
||||
func (m *LoginMessage) String() string { return proto.CompactTextString(m) }
|
||||
func (*LoginMessage) ProtoMessage() {}
|
||||
func (*LoginMessage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_extension_user_af41b5e0bdfb7846, []int{2}
|
||||
}
|
||||
func (m *LoginMessage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_LoginMessage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *LoginMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_LoginMessage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *LoginMessage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_LoginMessage.Merge(dst, src)
|
||||
}
|
||||
func (m *LoginMessage) XXX_Size() int {
|
||||
return xxx_messageInfo_LoginMessage.Size(m)
|
||||
}
|
||||
func (m *LoginMessage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_LoginMessage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_LoginMessage proto.InternalMessageInfo
|
||||
|
||||
var E_LoginMessage_UserMessage = &proto.ExtensionDesc{
|
||||
ExtendedType: (*extension_base.BaseMessage)(nil),
|
||||
ExtensionType: (*UserMessage)(nil),
|
||||
Field: 16,
|
||||
Name: "extension_user.LoginMessage.user_message",
|
||||
Tag: "bytes,16,opt,name=user_message,json=userMessage",
|
||||
Filename: "extension_user/extension_user.proto",
|
||||
}
|
||||
|
||||
type Detail struct {
|
||||
Color *string `protobuf:"bytes,1,opt,name=color" json:"color,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Detail) Reset() { *m = Detail{} }
|
||||
func (m *Detail) String() string { return proto.CompactTextString(m) }
|
||||
func (*Detail) ProtoMessage() {}
|
||||
func (*Detail) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_extension_user_af41b5e0bdfb7846, []int{3}
|
||||
}
|
||||
func (m *Detail) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Detail.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Detail.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Detail) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Detail.Merge(dst, src)
|
||||
}
|
||||
func (m *Detail) XXX_Size() int {
|
||||
return xxx_messageInfo_Detail.Size(m)
|
||||
}
|
||||
func (m *Detail) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Detail.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Detail proto.InternalMessageInfo
|
||||
|
||||
func (m *Detail) GetColor() string {
|
||||
if m != nil && m.Color != nil {
|
||||
return *m.Color
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// An extension of an extension
|
||||
type Announcement struct {
|
||||
Words *string `protobuf:"bytes,1,opt,name=words" json:"words,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Announcement) Reset() { *m = Announcement{} }
|
||||
func (m *Announcement) String() string { return proto.CompactTextString(m) }
|
||||
func (*Announcement) ProtoMessage() {}
|
||||
func (*Announcement) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_extension_user_af41b5e0bdfb7846, []int{4}
|
||||
}
|
||||
func (m *Announcement) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Announcement.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Announcement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Announcement.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Announcement) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Announcement.Merge(dst, src)
|
||||
}
|
||||
func (m *Announcement) XXX_Size() int {
|
||||
return xxx_messageInfo_Announcement.Size(m)
|
||||
}
|
||||
func (m *Announcement) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Announcement.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Announcement proto.InternalMessageInfo
|
||||
|
||||
func (m *Announcement) GetWords() string {
|
||||
if m != nil && m.Words != nil {
|
||||
return *m.Words
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var E_Announcement_LoudExt = &proto.ExtensionDesc{
|
||||
ExtendedType: (*LoudMessage)(nil),
|
||||
ExtensionType: (*Announcement)(nil),
|
||||
Field: 100,
|
||||
Name: "extension_user.Announcement.loud_ext",
|
||||
Tag: "bytes,100,opt,name=loud_ext,json=loudExt",
|
||||
Filename: "extension_user/extension_user.proto",
|
||||
}
|
||||
|
||||
// Something that can be put in a message set.
|
||||
type OldStyleParcel struct {
|
||||
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
|
||||
Height *int32 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OldStyleParcel) Reset() { *m = OldStyleParcel{} }
|
||||
func (m *OldStyleParcel) String() string { return proto.CompactTextString(m) }
|
||||
func (*OldStyleParcel) ProtoMessage() {}
|
||||
func (*OldStyleParcel) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_extension_user_af41b5e0bdfb7846, []int{5}
|
||||
}
|
||||
func (m *OldStyleParcel) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_OldStyleParcel.Unmarshal(m, b)
|
||||
}
|
||||
func (m *OldStyleParcel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_OldStyleParcel.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *OldStyleParcel) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OldStyleParcel.Merge(dst, src)
|
||||
}
|
||||
func (m *OldStyleParcel) XXX_Size() int {
|
||||
return xxx_messageInfo_OldStyleParcel.Size(m)
|
||||
}
|
||||
func (m *OldStyleParcel) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_OldStyleParcel.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_OldStyleParcel proto.InternalMessageInfo
|
||||
|
||||
func (m *OldStyleParcel) GetName() string {
|
||||
if m != nil && m.Name != nil {
|
||||
return *m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OldStyleParcel) GetHeight() int32 {
|
||||
if m != nil && m.Height != nil {
|
||||
return *m.Height
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var E_OldStyleParcel_MessageSetExtension = &proto.ExtensionDesc{
|
||||
ExtendedType: (*extension_base.OldStyleMessage)(nil),
|
||||
ExtensionType: (*OldStyleParcel)(nil),
|
||||
Field: 2001,
|
||||
Name: "extension_user.OldStyleParcel",
|
||||
Tag: "bytes,2001,opt,name=message_set_extension,json=messageSetExtension",
|
||||
Filename: "extension_user/extension_user.proto",
|
||||
}
|
||||
|
||||
var E_UserMessage = &proto.ExtensionDesc{
|
||||
ExtendedType: (*extension_base.BaseMessage)(nil),
|
||||
ExtensionType: (*UserMessage)(nil),
|
||||
Field: 5,
|
||||
Name: "extension_user.user_message",
|
||||
Tag: "bytes,5,opt,name=user_message,json=userMessage",
|
||||
Filename: "extension_user/extension_user.proto",
|
||||
}
|
||||
|
||||
var E_ExtraMessage = &proto.ExtensionDesc{
|
||||
ExtendedType: (*extension_base.BaseMessage)(nil),
|
||||
ExtensionType: (*extension_extra.ExtraMessage)(nil),
|
||||
Field: 9,
|
||||
Name: "extension_user.extra_message",
|
||||
Tag: "bytes,9,opt,name=extra_message,json=extraMessage",
|
||||
Filename: "extension_user/extension_user.proto",
|
||||
}
|
||||
|
||||
var E_Width = &proto.ExtensionDesc{
|
||||
ExtendedType: (*extension_base.BaseMessage)(nil),
|
||||
ExtensionType: (*int32)(nil),
|
||||
Field: 6,
|
||||
Name: "extension_user.width",
|
||||
Tag: "varint,6,opt,name=width",
|
||||
Filename: "extension_user/extension_user.proto",
|
||||
}
|
||||
|
||||
var E_Area = &proto.ExtensionDesc{
|
||||
ExtendedType: (*extension_base.BaseMessage)(nil),
|
||||
ExtensionType: (*int64)(nil),
|
||||
Field: 7,
|
||||
Name: "extension_user.area",
|
||||
Tag: "varint,7,opt,name=area",
|
||||
Filename: "extension_user/extension_user.proto",
|
||||
}
|
||||
|
||||
var E_Detail = &proto.ExtensionDesc{
|
||||
ExtendedType: (*extension_base.BaseMessage)(nil),
|
||||
ExtensionType: ([]*Detail)(nil),
|
||||
Field: 17,
|
||||
Name: "extension_user.detail",
|
||||
Tag: "bytes,17,rep,name=detail",
|
||||
Filename: "extension_user/extension_user.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*UserMessage)(nil), "extension_user.UserMessage")
|
||||
proto.RegisterType((*LoudMessage)(nil), "extension_user.LoudMessage")
|
||||
proto.RegisterType((*LoginMessage)(nil), "extension_user.LoginMessage")
|
||||
proto.RegisterType((*Detail)(nil), "extension_user.Detail")
|
||||
proto.RegisterType((*Announcement)(nil), "extension_user.Announcement")
|
||||
proto.RegisterMessageSetType((*OldStyleParcel)(nil), 2001, "extension_user.OldStyleParcel")
|
||||
proto.RegisterType((*OldStyleParcel)(nil), "extension_user.OldStyleParcel")
|
||||
proto.RegisterExtension(E_LoudMessage_Volume)
|
||||
proto.RegisterExtension(E_LoginMessage_UserMessage)
|
||||
proto.RegisterExtension(E_Announcement_LoudExt)
|
||||
proto.RegisterExtension(E_OldStyleParcel_MessageSetExtension)
|
||||
proto.RegisterExtension(E_UserMessage)
|
||||
proto.RegisterExtension(E_ExtraMessage)
|
||||
proto.RegisterExtension(E_Width)
|
||||
proto.RegisterExtension(E_Area)
|
||||
proto.RegisterExtension(E_Detail)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("extension_user/extension_user.proto", fileDescriptor_extension_user_af41b5e0bdfb7846)
|
||||
}
|
||||
|
||||
var fileDescriptor_extension_user_af41b5e0bdfb7846 = []byte{
|
||||
// 492 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x51, 0x6f, 0x94, 0x40,
|
||||
0x10, 0x0e, 0x6d, 0x8f, 0x5e, 0x87, 0x6b, 0xad, 0xa8, 0xcd, 0xa5, 0x6a, 0x25, 0x18, 0x13, 0x62,
|
||||
0xd2, 0x23, 0x62, 0x7c, 0xe1, 0x49, 0x2f, 0xde, 0x93, 0x67, 0x34, 0x54, 0x5f, 0xf4, 0x81, 0xec,
|
||||
0xc1, 0xc8, 0x91, 0xc2, 0xae, 0xd9, 0x5d, 0xec, 0xe9, 0xd3, 0xfd, 0x26, 0xff, 0x89, 0xff, 0xc8,
|
||||
0xb0, 0x2c, 0x2d, 0x87, 0xc9, 0xc5, 0xbe, 0x90, 0xfd, 0x86, 0x6f, 0xbe, 0x99, 0xfd, 0x66, 0x00,
|
||||
0x9e, 0xe2, 0x4a, 0x22, 0x15, 0x39, 0xa3, 0x71, 0x25, 0x90, 0xfb, 0x9b, 0x70, 0xf2, 0x9d, 0x33,
|
||||
0xc9, 0xec, 0xa3, 0xcd, 0xe8, 0x69, 0x27, 0x69, 0x41, 0x04, 0xfa, 0x9b, 0xb0, 0x49, 0x3a, 0x7d,
|
||||
0x76, 0x13, 0xc5, 0x95, 0xe4, 0xc4, 0xef, 0xe1, 0x86, 0xe6, 0xbe, 0x02, 0xeb, 0xb3, 0x40, 0xfe,
|
||||
0x1e, 0x85, 0x20, 0x19, 0xda, 0x36, 0xec, 0x51, 0x52, 0xe2, 0xd8, 0x70, 0x0c, 0xef, 0x20, 0x52,
|
||||
0xe7, 0x3a, 0xc6, 0x09, 0xbd, 0x1c, 0xef, 0x34, 0xb1, 0xfa, 0xec, 0xce, 0xc1, 0x9a, 0xb3, 0x2a,
|
||||
0xd5, 0x69, 0xcf, 0x87, 0xc3, 0xf4, 0x78, 0xbd, 0x5e, 0xaf, 0x77, 0x82, 0x97, 0x60, 0xfe, 0x60,
|
||||
0x45, 0x55, 0xa2, 0xfd, 0x70, 0xd2, 0xeb, 0x6b, 0x4a, 0x04, 0xea, 0x84, 0xf1, 0xd0, 0x31, 0xbc,
|
||||
0xc3, 0x48, 0x53, 0xdd, 0x4b, 0x18, 0xcd, 0x59, 0x96, 0x53, 0xfd, 0x36, 0xf8, 0x0a, 0xa3, 0xfa,
|
||||
0xa2, 0x71, 0xa9, 0xbb, 0xda, 0x2a, 0x75, 0xec, 0x18, 0x9e, 0x15, 0x74, 0x29, 0xca, 0xba, 0xce,
|
||||
0xad, 0x22, 0xab, 0xba, 0x01, 0xee, 0x19, 0x98, 0x6f, 0x51, 0x92, 0xbc, 0xb0, 0xef, 0xc3, 0x20,
|
||||
0x61, 0x05, 0xe3, 0xfa, 0xb6, 0x0d, 0x70, 0x7f, 0xc1, 0xe8, 0x0d, 0xa5, 0xac, 0xa2, 0x09, 0x96,
|
||||
0x48, 0x65, 0xcd, 0xba, 0x62, 0x3c, 0x15, 0x2d, 0x4b, 0x81, 0xe0, 0x13, 0x0c, 0x0b, 0x56, 0xa5,
|
||||
0xb5, 0x97, 0xf6, 0x3f, 0xb5, 0x3b, 0xd6, 0x8c, 0x53, 0xd5, 0xde, 0xa3, 0x3e, 0xa5, 0x5b, 0x22,
|
||||
0xda, 0xaf, 0xa5, 0x66, 0x2b, 0xe9, 0xfe, 0x36, 0xe0, 0xe8, 0x43, 0x91, 0x5e, 0xc8, 0x9f, 0x05,
|
||||
0x7e, 0x24, 0x3c, 0xc1, 0xa2, 0x33, 0x91, 0x9d, 0xeb, 0x89, 0x9c, 0x80, 0xb9, 0xc4, 0x3c, 0x5b,
|
||||
0x4a, 0x35, 0x93, 0x41, 0xa4, 0x51, 0x20, 0xe1, 0x81, 0xb6, 0x2c, 0x16, 0x28, 0xe3, 0xeb, 0x92,
|
||||
0xf6, 0x93, 0xbe, 0x81, 0x6d, 0x91, 0xb6, 0xcb, 0x3f, 0x77, 0x54, 0x9b, 0x67, 0xfd, 0x36, 0x37,
|
||||
0x9b, 0x89, 0xee, 0x69, 0xf9, 0x0b, 0x94, 0xb3, 0x96, 0x18, 0xde, 0x6a, 0x5a, 0x83, 0xdb, 0x4d,
|
||||
0x2b, 0x8c, 0xe1, 0x50, 0xad, 0xeb, 0xff, 0xa9, 0x1f, 0x28, 0xf5, 0xc7, 0x93, 0xfe, 0xae, 0xcf,
|
||||
0xea, 0x67, 0xab, 0x3f, 0xc2, 0x0e, 0x0a, 0x5f, 0xc0, 0xe0, 0x2a, 0x4f, 0xe5, 0x72, 0xbb, 0xb0,
|
||||
0xa9, 0x7c, 0x6e, 0x98, 0xa1, 0x0f, 0x7b, 0x84, 0x23, 0xd9, 0x9e, 0xb1, 0xef, 0x18, 0xde, 0x6e,
|
||||
0xa4, 0x88, 0xe1, 0x3b, 0x30, 0xd3, 0x66, 0xe5, 0xb6, 0xa6, 0xdc, 0x75, 0x76, 0x3d, 0x2b, 0x38,
|
||||
0xe9, 0x7b, 0xd3, 0x6c, 0x6b, 0xa4, 0x25, 0xa6, 0xd3, 0x2f, 0xaf, 0xb3, 0x5c, 0x2e, 0xab, 0xc5,
|
||||
0x24, 0x61, 0xa5, 0x9f, 0xb1, 0x82, 0xd0, 0xcc, 0x57, 0x1f, 0xf3, 0xa2, 0xfa, 0xd6, 0x1c, 0x92,
|
||||
0xf3, 0x0c, 0xe9, 0x79, 0xc6, 0x7c, 0x89, 0x42, 0xa6, 0x44, 0x92, 0xde, 0x7f, 0xe5, 0x6f, 0x00,
|
||||
0x00, 0x00, 0xff, 0xff, 0xdf, 0x18, 0x64, 0x15, 0x77, 0x04, 0x00, 0x00,
|
||||
}
|
6
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user/extension_user.proto
generated
vendored
6
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/extension_user/extension_user.proto
generated
vendored
@ -31,11 +31,13 @@
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
import "extension_base.proto";
|
||||
import "extension_extra.proto";
|
||||
import "extension_base/extension_base.proto";
|
||||
import "extension_extra/extension_extra.proto";
|
||||
|
||||
package extension_user;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/extension_user";
|
||||
|
||||
message UserMessage {
|
||||
optional string name = 1;
|
||||
optional string rank = 2;
|
444
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/grpc/grpc.pb.go
generated
vendored
Normal file
444
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/grpc/grpc.pb.go
generated
vendored
Normal file
@ -0,0 +1,444 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: grpc/grpc.proto
|
||||
|
||||
package testing // import "github.com/golang/protobuf/protoc-gen-go/testdata/grpc"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type SimpleRequest struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SimpleRequest) Reset() { *m = SimpleRequest{} }
|
||||
func (m *SimpleRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*SimpleRequest) ProtoMessage() {}
|
||||
func (*SimpleRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_grpc_65bf3902e49ee873, []int{0}
|
||||
}
|
||||
func (m *SimpleRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SimpleRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SimpleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SimpleRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *SimpleRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SimpleRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *SimpleRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_SimpleRequest.Size(m)
|
||||
}
|
||||
func (m *SimpleRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SimpleRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SimpleRequest proto.InternalMessageInfo
|
||||
|
||||
type SimpleResponse struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SimpleResponse) Reset() { *m = SimpleResponse{} }
|
||||
func (m *SimpleResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*SimpleResponse) ProtoMessage() {}
|
||||
func (*SimpleResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_grpc_65bf3902e49ee873, []int{1}
|
||||
}
|
||||
func (m *SimpleResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SimpleResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SimpleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SimpleResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *SimpleResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SimpleResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *SimpleResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_SimpleResponse.Size(m)
|
||||
}
|
||||
func (m *SimpleResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SimpleResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SimpleResponse proto.InternalMessageInfo
|
||||
|
||||
type StreamMsg struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *StreamMsg) Reset() { *m = StreamMsg{} }
|
||||
func (m *StreamMsg) String() string { return proto.CompactTextString(m) }
|
||||
func (*StreamMsg) ProtoMessage() {}
|
||||
func (*StreamMsg) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_grpc_65bf3902e49ee873, []int{2}
|
||||
}
|
||||
func (m *StreamMsg) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_StreamMsg.Unmarshal(m, b)
|
||||
}
|
||||
func (m *StreamMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_StreamMsg.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *StreamMsg) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_StreamMsg.Merge(dst, src)
|
||||
}
|
||||
func (m *StreamMsg) XXX_Size() int {
|
||||
return xxx_messageInfo_StreamMsg.Size(m)
|
||||
}
|
||||
func (m *StreamMsg) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_StreamMsg.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_StreamMsg proto.InternalMessageInfo
|
||||
|
||||
type StreamMsg2 struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *StreamMsg2) Reset() { *m = StreamMsg2{} }
|
||||
func (m *StreamMsg2) String() string { return proto.CompactTextString(m) }
|
||||
func (*StreamMsg2) ProtoMessage() {}
|
||||
func (*StreamMsg2) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_grpc_65bf3902e49ee873, []int{3}
|
||||
}
|
||||
func (m *StreamMsg2) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_StreamMsg2.Unmarshal(m, b)
|
||||
}
|
||||
func (m *StreamMsg2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_StreamMsg2.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *StreamMsg2) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_StreamMsg2.Merge(dst, src)
|
||||
}
|
||||
func (m *StreamMsg2) XXX_Size() int {
|
||||
return xxx_messageInfo_StreamMsg2.Size(m)
|
||||
}
|
||||
func (m *StreamMsg2) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_StreamMsg2.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_StreamMsg2 proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*SimpleRequest)(nil), "grpc.testing.SimpleRequest")
|
||||
proto.RegisterType((*SimpleResponse)(nil), "grpc.testing.SimpleResponse")
|
||||
proto.RegisterType((*StreamMsg)(nil), "grpc.testing.StreamMsg")
|
||||
proto.RegisterType((*StreamMsg2)(nil), "grpc.testing.StreamMsg2")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// Client API for Test service
|
||||
|
||||
type TestClient interface {
|
||||
UnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error)
|
||||
// This RPC streams from the server only.
|
||||
Downstream(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (Test_DownstreamClient, error)
|
||||
// This RPC streams from the client.
|
||||
Upstream(ctx context.Context, opts ...grpc.CallOption) (Test_UpstreamClient, error)
|
||||
// This one streams in both directions.
|
||||
Bidi(ctx context.Context, opts ...grpc.CallOption) (Test_BidiClient, error)
|
||||
}
|
||||
|
||||
type testClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewTestClient(cc *grpc.ClientConn) TestClient {
|
||||
return &testClient{cc}
|
||||
}
|
||||
|
||||
func (c *testClient) UnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error) {
|
||||
out := new(SimpleResponse)
|
||||
err := grpc.Invoke(ctx, "/grpc.testing.Test/UnaryCall", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *testClient) Downstream(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (Test_DownstreamClient, error) {
|
||||
stream, err := grpc.NewClientStream(ctx, &_Test_serviceDesc.Streams[0], c.cc, "/grpc.testing.Test/Downstream", opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &testDownstreamClient{stream}
|
||||
if err := x.ClientStream.SendMsg(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := x.ClientStream.CloseSend(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
type Test_DownstreamClient interface {
|
||||
Recv() (*StreamMsg, error)
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
type testDownstreamClient struct {
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
func (x *testDownstreamClient) Recv() (*StreamMsg, error) {
|
||||
m := new(StreamMsg)
|
||||
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
func (c *testClient) Upstream(ctx context.Context, opts ...grpc.CallOption) (Test_UpstreamClient, error) {
|
||||
stream, err := grpc.NewClientStream(ctx, &_Test_serviceDesc.Streams[1], c.cc, "/grpc.testing.Test/Upstream", opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &testUpstreamClient{stream}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
type Test_UpstreamClient interface {
|
||||
Send(*StreamMsg) error
|
||||
CloseAndRecv() (*SimpleResponse, error)
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
type testUpstreamClient struct {
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
func (x *testUpstreamClient) Send(m *StreamMsg) error {
|
||||
return x.ClientStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func (x *testUpstreamClient) CloseAndRecv() (*SimpleResponse, error) {
|
||||
if err := x.ClientStream.CloseSend(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
m := new(SimpleResponse)
|
||||
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
func (c *testClient) Bidi(ctx context.Context, opts ...grpc.CallOption) (Test_BidiClient, error) {
|
||||
stream, err := grpc.NewClientStream(ctx, &_Test_serviceDesc.Streams[2], c.cc, "/grpc.testing.Test/Bidi", opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
x := &testBidiClient{stream}
|
||||
return x, nil
|
||||
}
|
||||
|
||||
type Test_BidiClient interface {
|
||||
Send(*StreamMsg) error
|
||||
Recv() (*StreamMsg2, error)
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
type testBidiClient struct {
|
||||
grpc.ClientStream
|
||||
}
|
||||
|
||||
func (x *testBidiClient) Send(m *StreamMsg) error {
|
||||
return x.ClientStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func (x *testBidiClient) Recv() (*StreamMsg2, error) {
|
||||
m := new(StreamMsg2)
|
||||
if err := x.ClientStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// Server API for Test service
|
||||
|
||||
type TestServer interface {
|
||||
UnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error)
|
||||
// This RPC streams from the server only.
|
||||
Downstream(*SimpleRequest, Test_DownstreamServer) error
|
||||
// This RPC streams from the client.
|
||||
Upstream(Test_UpstreamServer) error
|
||||
// This one streams in both directions.
|
||||
Bidi(Test_BidiServer) error
|
||||
}
|
||||
|
||||
func RegisterTestServer(s *grpc.Server, srv TestServer) {
|
||||
s.RegisterService(&_Test_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _Test_UnaryCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SimpleRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TestServer).UnaryCall(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/grpc.testing.Test/UnaryCall",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TestServer).UnaryCall(ctx, req.(*SimpleRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Test_Downstream_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
m := new(SimpleRequest)
|
||||
if err := stream.RecvMsg(m); err != nil {
|
||||
return err
|
||||
}
|
||||
return srv.(TestServer).Downstream(m, &testDownstreamServer{stream})
|
||||
}
|
||||
|
||||
type Test_DownstreamServer interface {
|
||||
Send(*StreamMsg) error
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
type testDownstreamServer struct {
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
func (x *testDownstreamServer) Send(m *StreamMsg) error {
|
||||
return x.ServerStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func _Test_Upstream_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
return srv.(TestServer).Upstream(&testUpstreamServer{stream})
|
||||
}
|
||||
|
||||
type Test_UpstreamServer interface {
|
||||
SendAndClose(*SimpleResponse) error
|
||||
Recv() (*StreamMsg, error)
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
type testUpstreamServer struct {
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
func (x *testUpstreamServer) SendAndClose(m *SimpleResponse) error {
|
||||
return x.ServerStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func (x *testUpstreamServer) Recv() (*StreamMsg, error) {
|
||||
m := new(StreamMsg)
|
||||
if err := x.ServerStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
func _Test_Bidi_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||
return srv.(TestServer).Bidi(&testBidiServer{stream})
|
||||
}
|
||||
|
||||
type Test_BidiServer interface {
|
||||
Send(*StreamMsg2) error
|
||||
Recv() (*StreamMsg, error)
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
type testBidiServer struct {
|
||||
grpc.ServerStream
|
||||
}
|
||||
|
||||
func (x *testBidiServer) Send(m *StreamMsg2) error {
|
||||
return x.ServerStream.SendMsg(m)
|
||||
}
|
||||
|
||||
func (x *testBidiServer) Recv() (*StreamMsg, error) {
|
||||
m := new(StreamMsg)
|
||||
if err := x.ServerStream.RecvMsg(m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
var _Test_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "grpc.testing.Test",
|
||||
HandlerType: (*TestServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "UnaryCall",
|
||||
Handler: _Test_UnaryCall_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{
|
||||
{
|
||||
StreamName: "Downstream",
|
||||
Handler: _Test_Downstream_Handler,
|
||||
ServerStreams: true,
|
||||
},
|
||||
{
|
||||
StreamName: "Upstream",
|
||||
Handler: _Test_Upstream_Handler,
|
||||
ClientStreams: true,
|
||||
},
|
||||
{
|
||||
StreamName: "Bidi",
|
||||
Handler: _Test_Bidi_Handler,
|
||||
ServerStreams: true,
|
||||
ClientStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: "grpc/grpc.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("grpc/grpc.proto", fileDescriptor_grpc_65bf3902e49ee873) }
|
||||
|
||||
var fileDescriptor_grpc_65bf3902e49ee873 = []byte{
|
||||
// 244 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4f, 0x2f, 0x2a, 0x48,
|
||||
0xd6, 0x07, 0x11, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x3c, 0x60, 0x76, 0x49, 0x6a, 0x71,
|
||||
0x49, 0x66, 0x5e, 0xba, 0x12, 0x3f, 0x17, 0x6f, 0x70, 0x66, 0x6e, 0x41, 0x4e, 0x6a, 0x50, 0x6a,
|
||||
0x61, 0x69, 0x6a, 0x71, 0x89, 0x92, 0x00, 0x17, 0x1f, 0x4c, 0xa0, 0xb8, 0x20, 0x3f, 0xaf, 0x38,
|
||||
0x55, 0x89, 0x9b, 0x8b, 0x33, 0xb8, 0xa4, 0x28, 0x35, 0x31, 0xd7, 0xb7, 0x38, 0x5d, 0x89, 0x87,
|
||||
0x8b, 0x0b, 0xce, 0x31, 0x32, 0x9a, 0xc1, 0xc4, 0xc5, 0x12, 0x92, 0x5a, 0x5c, 0x22, 0xe4, 0xc6,
|
||||
0xc5, 0x19, 0x9a, 0x97, 0x58, 0x54, 0xe9, 0x9c, 0x98, 0x93, 0x23, 0x24, 0xad, 0x87, 0x6c, 0x85,
|
||||
0x1e, 0x8a, 0xf9, 0x52, 0x32, 0xd8, 0x25, 0x21, 0x76, 0x09, 0xb9, 0x70, 0x71, 0xb9, 0xe4, 0x97,
|
||||
0xe7, 0x15, 0x83, 0xad, 0xc0, 0x6f, 0x90, 0x38, 0x9a, 0x24, 0xcc, 0x55, 0x06, 0x8c, 0x42, 0xce,
|
||||
0x5c, 0x1c, 0xa1, 0x05, 0x50, 0x33, 0x70, 0x29, 0xc3, 0xef, 0x10, 0x0d, 0x46, 0x21, 0x5b, 0x2e,
|
||||
0x16, 0xa7, 0xcc, 0x94, 0x4c, 0xdc, 0x06, 0x48, 0xe0, 0x90, 0x30, 0xd2, 0x60, 0x34, 0x60, 0x74,
|
||||
0x72, 0x88, 0xb2, 0x4b, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf,
|
||||
0xcf, 0x49, 0xcc, 0x4b, 0xd7, 0x07, 0xc7, 0x40, 0x52, 0x69, 0x1a, 0x84, 0x91, 0xac, 0x9b, 0x9e,
|
||||
0x9a, 0xa7, 0x9b, 0x9e, 0xaf, 0x0f, 0x32, 0x22, 0x25, 0xb1, 0x24, 0x11, 0x1c, 0x4d, 0xd6, 0x50,
|
||||
0x03, 0x93, 0xd8, 0xc0, 0x8a, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x90, 0xb9, 0x95, 0x42,
|
||||
0xc2, 0x01, 0x00, 0x00,
|
||||
}
|
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/grpc.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/grpc/grpc.proto
generated
vendored
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/grpc.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/grpc/grpc.proto
generated
vendored
@ -33,6 +33,8 @@ syntax = "proto3";
|
||||
|
||||
package grpc.testing;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/grpc;testing";
|
||||
|
||||
message SimpleRequest {
|
||||
}
|
||||
|
113
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp.pb.go.golden
generated
vendored
113
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp.pb.go.golden
generated
vendored
@ -1,113 +0,0 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: imp.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package imp
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import "math"
|
||||
import "os"
|
||||
import imp1 "imp2.pb"
|
||||
|
||||
// Reference proto & math imports to suppress error if they are not otherwise used.
|
||||
var _ = proto.GetString
|
||||
var _ = math.Inf
|
||||
|
||||
// Types from public import imp2.proto
|
||||
type PubliclyImportedMessage imp1.PubliclyImportedMessage
|
||||
|
||||
func (this *PubliclyImportedMessage) Reset() { (*imp1.PubliclyImportedMessage)(this).Reset() }
|
||||
func (this *PubliclyImportedMessage) String() string {
|
||||
return (*imp1.PubliclyImportedMessage)(this).String()
|
||||
}
|
||||
|
||||
// PubliclyImportedMessage from public import imp.proto
|
||||
|
||||
type ImportedMessage_Owner int32
|
||||
|
||||
const (
|
||||
ImportedMessage_DAVE ImportedMessage_Owner = 1
|
||||
ImportedMessage_MIKE ImportedMessage_Owner = 2
|
||||
)
|
||||
|
||||
var ImportedMessage_Owner_name = map[int32]string{
|
||||
1: "DAVE",
|
||||
2: "MIKE",
|
||||
}
|
||||
var ImportedMessage_Owner_value = map[string]int32{
|
||||
"DAVE": 1,
|
||||
"MIKE": 2,
|
||||
}
|
||||
|
||||
// NewImportedMessage_Owner is deprecated. Use x.Enum() instead.
|
||||
func NewImportedMessage_Owner(x ImportedMessage_Owner) *ImportedMessage_Owner {
|
||||
e := ImportedMessage_Owner(x)
|
||||
return &e
|
||||
}
|
||||
func (x ImportedMessage_Owner) Enum() *ImportedMessage_Owner {
|
||||
p := new(ImportedMessage_Owner)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x ImportedMessage_Owner) String() string {
|
||||
return proto.EnumName(ImportedMessage_Owner_name, int32(x))
|
||||
}
|
||||
|
||||
type ImportedMessage struct {
|
||||
Field *int64 `protobuf:"varint,1,req,name=field" json:"field,omitempty"`
|
||||
XXX_extensions map[int32][]byte `json:",omitempty"`
|
||||
XXX_unrecognized []byte `json:",omitempty"`
|
||||
}
|
||||
|
||||
func (this *ImportedMessage) Reset() { *this = ImportedMessage{} }
|
||||
func (this *ImportedMessage) String() string { return proto.CompactTextString(this) }
|
||||
|
||||
var extRange_ImportedMessage = []proto.ExtensionRange{
|
||||
proto.ExtensionRange{90, 100},
|
||||
}
|
||||
|
||||
func (*ImportedMessage) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_ImportedMessage
|
||||
}
|
||||
func (this *ImportedMessage) ExtensionMap() map[int32][]byte {
|
||||
if this.XXX_extensions == nil {
|
||||
this.XXX_extensions = make(map[int32][]byte)
|
||||
}
|
||||
return this.XXX_extensions
|
||||
}
|
||||
|
||||
type ImportedExtendable struct {
|
||||
XXX_extensions map[int32][]byte `json:",omitempty"`
|
||||
XXX_unrecognized []byte `json:",omitempty"`
|
||||
}
|
||||
|
||||
func (this *ImportedExtendable) Reset() { *this = ImportedExtendable{} }
|
||||
func (this *ImportedExtendable) String() string { return proto.CompactTextString(this) }
|
||||
|
||||
func (this *ImportedExtendable) Marshal() ([]byte, error) {
|
||||
return proto.MarshalMessageSet(this.ExtensionMap())
|
||||
}
|
||||
func (this *ImportedExtendable) Unmarshal(buf []byte) error {
|
||||
return proto.UnmarshalMessageSet(buf, this.ExtensionMap())
|
||||
}
|
||||
// ensure ImportedExtendable satisfies proto.Marshaler and proto.Unmarshaler
|
||||
var _ proto.Marshaler = (*ImportedExtendable)(nil)
|
||||
var _ proto.Unmarshaler = (*ImportedExtendable)(nil)
|
||||
|
||||
var extRange_ImportedExtendable = []proto.ExtensionRange{
|
||||
proto.ExtensionRange{100, 536870911},
|
||||
}
|
||||
|
||||
func (*ImportedExtendable) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_ImportedExtendable
|
||||
}
|
||||
func (this *ImportedExtendable) ExtensionMap() map[int32][]byte {
|
||||
if this.XXX_extensions == nil {
|
||||
this.XXX_extensions = make(map[int32][]byte)
|
||||
}
|
||||
return this.XXX_extensions
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("imp.ImportedMessage_Owner", ImportedMessage_Owner_name, ImportedMessage_Owner_value)
|
||||
}
|
110
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/a.pb.go
generated
vendored
Normal file
110
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/a.pb.go
generated
vendored
Normal file
@ -0,0 +1,110 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: import_public/a.proto
|
||||
|
||||
package import_public // import "github.com/golang/protobuf/protoc-gen-go/testdata/import_public"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import sub "github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub"
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// M from public import import_public/sub/a.proto
|
||||
type M = sub.M
|
||||
|
||||
// E from public import import_public/sub/a.proto
|
||||
type E = sub.E
|
||||
|
||||
var E_name = sub.E_name
|
||||
var E_value = sub.E_value
|
||||
|
||||
const E_ZERO = E(sub.E_ZERO)
|
||||
|
||||
// Ignoring public import of Local from import_public/b.proto
|
||||
|
||||
type Public struct {
|
||||
M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
|
||||
E sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.test.import_public.sub.E" json:"e,omitempty"`
|
||||
Local *Local `protobuf:"bytes,3,opt,name=local" json:"local,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Public) Reset() { *m = Public{} }
|
||||
func (m *Public) String() string { return proto.CompactTextString(m) }
|
||||
func (*Public) ProtoMessage() {}
|
||||
func (*Public) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a_c0314c022b7c17d8, []int{0}
|
||||
}
|
||||
func (m *Public) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Public.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Public) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Public.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Public) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Public.Merge(dst, src)
|
||||
}
|
||||
func (m *Public) XXX_Size() int {
|
||||
return xxx_messageInfo_Public.Size(m)
|
||||
}
|
||||
func (m *Public) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Public.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Public proto.InternalMessageInfo
|
||||
|
||||
func (m *Public) GetM() *sub.M {
|
||||
if m != nil {
|
||||
return m.M
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Public) GetE() sub.E {
|
||||
if m != nil {
|
||||
return m.E
|
||||
}
|
||||
return sub.E_ZERO
|
||||
}
|
||||
|
||||
func (m *Public) GetLocal() *Local {
|
||||
if m != nil {
|
||||
return m.Local
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Public)(nil), "goproto.test.import_public.Public")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("import_public/a.proto", fileDescriptor_a_c0314c022b7c17d8) }
|
||||
|
||||
var fileDescriptor_a_c0314c022b7c17d8 = []byte{
|
||||
// 200 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x4f, 0xd4, 0x2b, 0x28, 0xca, 0x2f,
|
||||
0xc9, 0x17, 0x92, 0x4a, 0xcf, 0x07, 0x33, 0xf4, 0x4a, 0x52, 0x8b, 0x4b, 0xf4, 0x50, 0xd4, 0x48,
|
||||
0x49, 0xa2, 0x6a, 0x29, 0x2e, 0x4d, 0x82, 0x69, 0x93, 0x42, 0x33, 0x2d, 0x09, 0x22, 0xac, 0xb4,
|
||||
0x98, 0x91, 0x8b, 0x2d, 0x00, 0x2c, 0x24, 0xa4, 0xcf, 0xc5, 0x98, 0x2b, 0xc1, 0xa8, 0xc0, 0xa8,
|
||||
0xc1, 0x6d, 0xa4, 0xa8, 0x87, 0xdb, 0x12, 0xbd, 0xe2, 0xd2, 0x24, 0x3d, 0xdf, 0x20, 0xc6, 0x5c,
|
||||
0x90, 0x86, 0x54, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x3e, 0xc2, 0x1a, 0x5c, 0x83, 0x18, 0x53, 0x85,
|
||||
0xcc, 0xb9, 0x58, 0x73, 0xf2, 0x93, 0x13, 0x73, 0x24, 0x98, 0x09, 0xdb, 0xe2, 0x03, 0x52, 0x18,
|
||||
0x04, 0x51, 0xef, 0xe4, 0x18, 0x65, 0x9f, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f,
|
||||
0xab, 0x9f, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x0f, 0xd6, 0x9a, 0x54, 0x9a, 0x06, 0x61, 0x24,
|
||||
0xeb, 0xa6, 0xa7, 0xe6, 0xe9, 0xa6, 0xe7, 0xeb, 0x83, 0xcc, 0x4a, 0x49, 0x2c, 0x49, 0xd4, 0x47,
|
||||
0x31, 0x2f, 0x80, 0x21, 0x80, 0x31, 0x89, 0x0d, 0xac, 0xd2, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff,
|
||||
0x70, 0xc5, 0xc3, 0x79, 0x5a, 0x01, 0x00, 0x00,
|
||||
}
|
45
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/a.proto
generated
vendored
Normal file
45
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/a.proto
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package goproto.test.import_public;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/import_public";
|
||||
|
||||
import public "import_public/sub/a.proto"; // Different Go package.
|
||||
import public "import_public/b.proto"; // Same Go package.
|
||||
|
||||
message Public {
|
||||
goproto.test.import_public.sub.M m = 1;
|
||||
goproto.test.import_public.sub.E e = 2;
|
||||
Local local = 3;
|
||||
}
|
87
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/b.pb.go
generated
vendored
Normal file
87
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/b.pb.go
generated
vendored
Normal file
@ -0,0 +1,87 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: import_public/b.proto
|
||||
|
||||
package import_public // import "github.com/golang/protobuf/protoc-gen-go/testdata/import_public"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import sub "github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub"
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Local struct {
|
||||
M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
|
||||
E sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.test.import_public.sub.E" json:"e,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Local) Reset() { *m = Local{} }
|
||||
func (m *Local) String() string { return proto.CompactTextString(m) }
|
||||
func (*Local) ProtoMessage() {}
|
||||
func (*Local) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b_7f20a805fad67bd0, []int{0}
|
||||
}
|
||||
func (m *Local) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Local.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Local.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Local) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Local.Merge(dst, src)
|
||||
}
|
||||
func (m *Local) XXX_Size() int {
|
||||
return xxx_messageInfo_Local.Size(m)
|
||||
}
|
||||
func (m *Local) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Local.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Local proto.InternalMessageInfo
|
||||
|
||||
func (m *Local) GetM() *sub.M {
|
||||
if m != nil {
|
||||
return m.M
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Local) GetE() sub.E {
|
||||
if m != nil {
|
||||
return m.E
|
||||
}
|
||||
return sub.E_ZERO
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Local)(nil), "goproto.test.import_public.Local")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("import_public/b.proto", fileDescriptor_b_7f20a805fad67bd0) }
|
||||
|
||||
var fileDescriptor_b_7f20a805fad67bd0 = []byte{
|
||||
// 174 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x4f, 0xd2, 0x2b, 0x28, 0xca, 0x2f,
|
||||
0xc9, 0x17, 0x92, 0x4a, 0xcf, 0x07, 0x33, 0xf4, 0x4a, 0x52, 0x8b, 0x4b, 0xf4, 0x50, 0xd4, 0x48,
|
||||
0x49, 0xa2, 0x6a, 0x29, 0x2e, 0x4d, 0xd2, 0x4f, 0x84, 0x68, 0x53, 0xca, 0xe4, 0x62, 0xf5, 0xc9,
|
||||
0x4f, 0x4e, 0xcc, 0x11, 0xd2, 0xe7, 0x62, 0xcc, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x52,
|
||||
0xd4, 0xc3, 0x6d, 0x96, 0x5e, 0x71, 0x69, 0x92, 0x9e, 0x6f, 0x10, 0x63, 0x2e, 0x48, 0x43, 0xaa,
|
||||
0x04, 0x93, 0x02, 0xa3, 0x06, 0x1f, 0x61, 0x0d, 0xae, 0x41, 0x8c, 0xa9, 0x4e, 0x8e, 0x51, 0xf6,
|
||||
0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xe9, 0xf9, 0x39, 0x89, 0x79,
|
||||
0xe9, 0xfa, 0x60, 0x6d, 0x49, 0xa5, 0x69, 0x10, 0x46, 0xb2, 0x6e, 0x7a, 0x6a, 0x9e, 0x6e, 0x7a,
|
||||
0xbe, 0x3e, 0xc8, 0x9c, 0x94, 0xc4, 0x92, 0x44, 0x7d, 0x14, 0xb3, 0x92, 0xd8, 0xc0, 0xaa, 0x8c,
|
||||
0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x2b, 0x5f, 0x8e, 0x04, 0x01, 0x00, 0x00,
|
||||
}
|
43
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/b.proto
generated
vendored
Normal file
43
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/b.proto
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package goproto.test.import_public;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/import_public";
|
||||
|
||||
import "import_public/sub/a.proto";
|
||||
|
||||
message Local {
|
||||
goproto.test.import_public.sub.M m = 1;
|
||||
goproto.test.import_public.sub.E e = 2;
|
||||
}
|
100
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/a.pb.go
generated
vendored
Normal file
100
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/a.pb.go
generated
vendored
Normal file
@ -0,0 +1,100 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: import_public/sub/a.proto
|
||||
|
||||
package sub // import "github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type E int32
|
||||
|
||||
const (
|
||||
E_ZERO E = 0
|
||||
)
|
||||
|
||||
var E_name = map[int32]string{
|
||||
0: "ZERO",
|
||||
}
|
||||
var E_value = map[string]int32{
|
||||
"ZERO": 0,
|
||||
}
|
||||
|
||||
func (x E) String() string {
|
||||
return proto.EnumName(E_name, int32(x))
|
||||
}
|
||||
func (E) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a_91ca0264a534463a, []int{0}
|
||||
}
|
||||
|
||||
type M struct {
|
||||
// Field using a type in the same Go package, but a different source file.
|
||||
M2 *M2 `protobuf:"bytes,1,opt,name=m2" json:"m2,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *M) Reset() { *m = M{} }
|
||||
func (m *M) String() string { return proto.CompactTextString(m) }
|
||||
func (*M) ProtoMessage() {}
|
||||
func (*M) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_a_91ca0264a534463a, []int{0}
|
||||
}
|
||||
func (m *M) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_M.Unmarshal(m, b)
|
||||
}
|
||||
func (m *M) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_M.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *M) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_M.Merge(dst, src)
|
||||
}
|
||||
func (m *M) XXX_Size() int {
|
||||
return xxx_messageInfo_M.Size(m)
|
||||
}
|
||||
func (m *M) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_M.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_M proto.InternalMessageInfo
|
||||
|
||||
func (m *M) GetM2() *M2 {
|
||||
if m != nil {
|
||||
return m.M2
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*M)(nil), "goproto.test.import_public.sub.M")
|
||||
proto.RegisterEnum("goproto.test.import_public.sub.E", E_name, E_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("import_public/sub/a.proto", fileDescriptor_a_91ca0264a534463a) }
|
||||
|
||||
var fileDescriptor_a_91ca0264a534463a = []byte{
|
||||
// 172 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x2f, 0x2e, 0x4d, 0xd2, 0x4f, 0xd4,
|
||||
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x4b, 0xcf, 0x07, 0x33, 0xf4, 0x4a, 0x52, 0x8b, 0x4b,
|
||||
0xf4, 0x50, 0xd4, 0xe9, 0x15, 0x97, 0x26, 0x49, 0x61, 0xd1, 0x9a, 0x04, 0xd1, 0xaa, 0x64, 0xce,
|
||||
0xc5, 0xe8, 0x2b, 0x64, 0xc4, 0xc5, 0x94, 0x6b, 0x24, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0xa4,
|
||||
0xa4, 0x87, 0xdf, 0x30, 0x3d, 0x5f, 0xa3, 0x20, 0xa6, 0x5c, 0x23, 0x2d, 0x5e, 0x2e, 0x46, 0x57,
|
||||
0x21, 0x0e, 0x2e, 0x96, 0x28, 0xd7, 0x20, 0x7f, 0x01, 0x06, 0x27, 0xd7, 0x28, 0xe7, 0xf4, 0xcc,
|
||||
0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xf4, 0xfc, 0x9c, 0xc4, 0xbc, 0x74, 0x7d,
|
||||
0xb0, 0x39, 0x49, 0xa5, 0x69, 0x10, 0x46, 0xb2, 0x6e, 0x7a, 0x6a, 0x9e, 0x6e, 0x7a, 0xbe, 0x3e,
|
||||
0xc8, 0xe0, 0x94, 0xc4, 0x92, 0x44, 0x7d, 0x0c, 0x67, 0x25, 0xb1, 0x81, 0x55, 0x1a, 0x03, 0x02,
|
||||
0x00, 0x00, 0xff, 0xff, 0x81, 0xcc, 0x07, 0x7d, 0xed, 0x00, 0x00, 0x00,
|
||||
}
|
47
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/a.proto
generated
vendored
Normal file
47
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/a.proto
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package goproto.test.import_public.sub;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub";
|
||||
|
||||
import "import_public/sub/b.proto";
|
||||
|
||||
message M {
|
||||
// Field using a type in the same Go package, but a different source file.
|
||||
M2 m2 = 1;
|
||||
}
|
||||
|
||||
enum E {
|
||||
ZERO = 0;
|
||||
}
|
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/b.pb.go
generated
vendored
Normal file
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/b.pb.go
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: import_public/sub/b.proto
|
||||
|
||||
package sub // import "github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type M2 struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *M2) Reset() { *m = M2{} }
|
||||
func (m *M2) String() string { return proto.CompactTextString(m) }
|
||||
func (*M2) ProtoMessage() {}
|
||||
func (*M2) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_b_eba25180453d86b4, []int{0}
|
||||
}
|
||||
func (m *M2) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_M2.Unmarshal(m, b)
|
||||
}
|
||||
func (m *M2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_M2.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *M2) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_M2.Merge(dst, src)
|
||||
}
|
||||
func (m *M2) XXX_Size() int {
|
||||
return xxx_messageInfo_M2.Size(m)
|
||||
}
|
||||
func (m *M2) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_M2.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_M2 proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*M2)(nil), "goproto.test.import_public.sub.M2")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("import_public/sub/b.proto", fileDescriptor_b_eba25180453d86b4) }
|
||||
|
||||
var fileDescriptor_b_eba25180453d86b4 = []byte{
|
||||
// 127 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x2f, 0x2e, 0x4d, 0xd2, 0x4f, 0xd2,
|
||||
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x4b, 0xcf, 0x07, 0x33, 0xf4, 0x4a, 0x52, 0x8b, 0x4b,
|
||||
0xf4, 0x50, 0xd4, 0xe9, 0x15, 0x97, 0x26, 0x29, 0xb1, 0x70, 0x31, 0xf9, 0x1a, 0x39, 0xb9, 0x46,
|
||||
0x39, 0xa7, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xe7, 0x24,
|
||||
0xe6, 0xa5, 0xeb, 0x83, 0xf5, 0x25, 0x95, 0xa6, 0x41, 0x18, 0xc9, 0xba, 0xe9, 0xa9, 0x79, 0xba,
|
||||
0xe9, 0xf9, 0xfa, 0x20, 0x83, 0x52, 0x12, 0x4b, 0x12, 0xf5, 0x31, 0x2c, 0x4d, 0x62, 0x03, 0xab,
|
||||
0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x64, 0x42, 0xe4, 0xa8, 0x90, 0x00, 0x00, 0x00,
|
||||
}
|
39
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/b.proto
generated
vendored
Normal file
39
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub/b.proto
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package goproto.test.import_public.sub;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub";
|
||||
|
||||
message M2 {
|
||||
}
|
64
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public_test.go
generated
vendored
64
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/import_public_test.go
generated
vendored
@ -29,42 +29,38 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto2";
|
||||
// +build go1.9
|
||||
|
||||
package imp;
|
||||
package testdata
|
||||
|
||||
import "imp2.proto";
|
||||
import "imp3.proto";
|
||||
import (
|
||||
"testing"
|
||||
|
||||
message ImportedMessage {
|
||||
required int64 field = 1;
|
||||
mainpb "github.com/golang/protobuf/protoc-gen-go/testdata/import_public"
|
||||
subpb "github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub"
|
||||
)
|
||||
|
||||
// The forwarded getters for these fields are fiddly to get right.
|
||||
optional ImportedMessage2 local_msg = 2;
|
||||
optional ForeignImportedMessage foreign_msg = 3; // in imp3.proto
|
||||
optional Owner enum_field = 4;
|
||||
oneof union {
|
||||
int32 state = 9;
|
||||
}
|
||||
|
||||
repeated string name = 5;
|
||||
repeated Owner boss = 6;
|
||||
repeated ImportedMessage2 memo = 7;
|
||||
|
||||
map<string, ImportedMessage2> msg_map = 8;
|
||||
|
||||
enum Owner {
|
||||
DAVE = 1;
|
||||
MIKE = 2;
|
||||
}
|
||||
|
||||
extensions 90 to 100;
|
||||
}
|
||||
|
||||
message ImportedMessage2 {
|
||||
}
|
||||
|
||||
message ImportedExtendable {
|
||||
option message_set_wire_format = true;
|
||||
extensions 100 to max;
|
||||
func TestImportPublicLink(t *testing.T) {
|
||||
// mainpb.[ME] should be interchangable with subpb.[ME].
|
||||
var _ mainpb.M = subpb.M{}
|
||||
var _ mainpb.E = subpb.E(0)
|
||||
_ = &mainpb.Public{
|
||||
M: &mainpb.M{},
|
||||
E: mainpb.E_ZERO,
|
||||
Local: &mainpb.Local{
|
||||
M: &mainpb.M{},
|
||||
E: mainpb.E_ZERO,
|
||||
},
|
||||
}
|
||||
_ = &mainpb.Public{
|
||||
M: &subpb.M{},
|
||||
E: subpb.E_ZERO,
|
||||
Local: &mainpb.Local{
|
||||
M: &subpb.M{},
|
||||
E: subpb.E_ZERO,
|
||||
},
|
||||
}
|
||||
_ = &mainpb.M{
|
||||
M2: &subpb.M2{},
|
||||
}
|
||||
}
|
66
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/fmt/m.pb.go
generated
vendored
Normal file
66
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/fmt/m.pb.go
generated
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: imports/fmt/m.proto
|
||||
|
||||
package fmt // import "github.com/golang/protobuf/protoc-gen-go/testdata/imports/fmt"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type M struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *M) Reset() { *m = M{} }
|
||||
func (m *M) String() string { return proto.CompactTextString(m) }
|
||||
func (*M) ProtoMessage() {}
|
||||
func (*M) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_m_867dd34c461422b8, []int{0}
|
||||
}
|
||||
func (m *M) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_M.Unmarshal(m, b)
|
||||
}
|
||||
func (m *M) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_M.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *M) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_M.Merge(dst, src)
|
||||
}
|
||||
func (m *M) XXX_Size() int {
|
||||
return xxx_messageInfo_M.Size(m)
|
||||
}
|
||||
func (m *M) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_M.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_M proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*M)(nil), "fmt.M")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("imports/fmt/m.proto", fileDescriptor_m_867dd34c461422b8) }
|
||||
|
||||
var fileDescriptor_m_867dd34c461422b8 = []byte{
|
||||
// 109 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xce, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x29, 0xd6, 0x4f, 0xcb, 0x2d, 0xd1, 0xcf, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17,
|
||||
0x62, 0x4e, 0xcb, 0x2d, 0x51, 0x62, 0xe6, 0x62, 0xf4, 0x75, 0xb2, 0x8f, 0xb2, 0x4d, 0xcf, 0x2c,
|
||||
0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0xcf, 0x49, 0xcc, 0x4b, 0xd7, 0x07,
|
||||
0x2b, 0x4a, 0x2a, 0x4d, 0x83, 0x30, 0x92, 0x75, 0xd3, 0x53, 0xf3, 0x74, 0xd3, 0xf3, 0xf5, 0x4b,
|
||||
0x52, 0x8b, 0x4b, 0x52, 0x12, 0x4b, 0x12, 0xf5, 0x91, 0x8c, 0x4c, 0x62, 0x03, 0xab, 0x31, 0x06,
|
||||
0x04, 0x00, 0x00, 0xff, 0xff, 0xc4, 0xc9, 0xee, 0xbe, 0x68, 0x00, 0x00, 0x00,
|
||||
}
|
13
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp3.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/fmt/m.proto
generated
vendored
13
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp3.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/fmt/m.proto
generated
vendored
@ -1,6 +1,6 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2012 The Go Authors. All rights reserved.
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
@ -29,10 +29,7 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package imp;
|
||||
|
||||
message ForeignImportedMessage {
|
||||
optional string tuber = 1;
|
||||
}
|
||||
syntax = "proto3";
|
||||
package fmt;
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/imports/fmt";
|
||||
message M {}
|
130
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go
generated
vendored
Normal file
130
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go
generated
vendored
Normal file
@ -0,0 +1,130 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: imports/test_a_1/m1.proto
|
||||
|
||||
package test_a_1 // import "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type E1 int32
|
||||
|
||||
const (
|
||||
E1_E1_ZERO E1 = 0
|
||||
)
|
||||
|
||||
var E1_name = map[int32]string{
|
||||
0: "E1_ZERO",
|
||||
}
|
||||
var E1_value = map[string]int32{
|
||||
"E1_ZERO": 0,
|
||||
}
|
||||
|
||||
func (x E1) String() string {
|
||||
return proto.EnumName(E1_name, int32(x))
|
||||
}
|
||||
func (E1) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_m1_56a2598431d21e61, []int{0}
|
||||
}
|
||||
|
||||
type M1 struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *M1) Reset() { *m = M1{} }
|
||||
func (m *M1) String() string { return proto.CompactTextString(m) }
|
||||
func (*M1) ProtoMessage() {}
|
||||
func (*M1) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_m1_56a2598431d21e61, []int{0}
|
||||
}
|
||||
func (m *M1) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_M1.Unmarshal(m, b)
|
||||
}
|
||||
func (m *M1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_M1.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *M1) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_M1.Merge(dst, src)
|
||||
}
|
||||
func (m *M1) XXX_Size() int {
|
||||
return xxx_messageInfo_M1.Size(m)
|
||||
}
|
||||
func (m *M1) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_M1.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_M1 proto.InternalMessageInfo
|
||||
|
||||
type M1_1 struct {
|
||||
M1 *M1 `protobuf:"bytes,1,opt,name=m1" json:"m1,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *M1_1) Reset() { *m = M1_1{} }
|
||||
func (m *M1_1) String() string { return proto.CompactTextString(m) }
|
||||
func (*M1_1) ProtoMessage() {}
|
||||
func (*M1_1) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_m1_56a2598431d21e61, []int{1}
|
||||
}
|
||||
func (m *M1_1) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_M1_1.Unmarshal(m, b)
|
||||
}
|
||||
func (m *M1_1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_M1_1.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *M1_1) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_M1_1.Merge(dst, src)
|
||||
}
|
||||
func (m *M1_1) XXX_Size() int {
|
||||
return xxx_messageInfo_M1_1.Size(m)
|
||||
}
|
||||
func (m *M1_1) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_M1_1.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_M1_1 proto.InternalMessageInfo
|
||||
|
||||
func (m *M1_1) GetM1() *M1 {
|
||||
if m != nil {
|
||||
return m.M1
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*M1)(nil), "test.a.M1")
|
||||
proto.RegisterType((*M1_1)(nil), "test.a.M1_1")
|
||||
proto.RegisterEnum("test.a.E1", E1_name, E1_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("imports/test_a_1/m1.proto", fileDescriptor_m1_56a2598431d21e61) }
|
||||
|
||||
var fileDescriptor_m1_56a2598431d21e61 = []byte{
|
||||
// 165 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x29, 0xd6, 0x2f, 0x49, 0x2d, 0x2e, 0x89, 0x4f, 0x8c, 0x37, 0xd4, 0xcf, 0x35, 0xd4,
|
||||
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x03, 0x09, 0xe9, 0x25, 0x2a, 0xb1, 0x70, 0x31, 0xf9,
|
||||
0x1a, 0x2a, 0x29, 0x71, 0xb1, 0xf8, 0x1a, 0xc6, 0x1b, 0x0a, 0x49, 0x71, 0x31, 0xe5, 0x1a, 0x4a,
|
||||
0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x71, 0xe9, 0x41, 0x94, 0xe8, 0xf9, 0x1a, 0x06, 0x31, 0xe5,
|
||||
0x1a, 0x6a, 0x09, 0x72, 0x31, 0xb9, 0x1a, 0x0a, 0x71, 0x73, 0xb1, 0xbb, 0x1a, 0xc6, 0x47, 0xb9,
|
||||
0x06, 0xf9, 0x0b, 0x30, 0x38, 0xb9, 0x44, 0x39, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25,
|
||||
0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, 0xeb, 0x83, 0xcd, 0x4f, 0x2a, 0x4d, 0x83,
|
||||
0x30, 0x92, 0x75, 0xd3, 0x53, 0xf3, 0x74, 0xd3, 0xf3, 0xc1, 0x4e, 0x48, 0x49, 0x2c, 0x49, 0xd4,
|
||||
0x47, 0x77, 0x53, 0x12, 0x1b, 0x58, 0xa1, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xae, 0xc9,
|
||||
0xcd, 0xae, 0x00, 0x00, 0x00,
|
||||
}
|
44
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m1.proto
generated
vendored
Normal file
44
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m1.proto
generated
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
package test.a;
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1";
|
||||
|
||||
message M1 {}
|
||||
|
||||
message M1_1 {
|
||||
M1 m1 = 1;
|
||||
}
|
||||
|
||||
enum E1 {
|
||||
E1_ZERO = 0;
|
||||
}
|
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go
generated
vendored
Normal file
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: imports/test_a_1/m2.proto
|
||||
|
||||
package test_a_1 // import "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type M2 struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *M2) Reset() { *m = M2{} }
|
||||
func (m *M2) String() string { return proto.CompactTextString(m) }
|
||||
func (*M2) ProtoMessage() {}
|
||||
func (*M2) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_m2_ccd6356c045a9ac3, []int{0}
|
||||
}
|
||||
func (m *M2) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_M2.Unmarshal(m, b)
|
||||
}
|
||||
func (m *M2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_M2.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *M2) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_M2.Merge(dst, src)
|
||||
}
|
||||
func (m *M2) XXX_Size() int {
|
||||
return xxx_messageInfo_M2.Size(m)
|
||||
}
|
||||
func (m *M2) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_M2.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_M2 proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*M2)(nil), "test.a.M2")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("imports/test_a_1/m2.proto", fileDescriptor_m2_ccd6356c045a9ac3) }
|
||||
|
||||
var fileDescriptor_m2_ccd6356c045a9ac3 = []byte{
|
||||
// 114 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x29, 0xd6, 0x2f, 0x49, 0x2d, 0x2e, 0x89, 0x4f, 0x8c, 0x37, 0xd4, 0xcf, 0x35, 0xd2,
|
||||
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x03, 0x09, 0xe9, 0x25, 0x2a, 0xb1, 0x70, 0x31, 0xf9,
|
||||
0x1a, 0x39, 0xb9, 0x44, 0x39, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea,
|
||||
0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, 0xeb, 0x83, 0x15, 0x26, 0x95, 0xa6, 0x41, 0x18, 0xc9, 0xba,
|
||||
0xe9, 0xa9, 0x79, 0xba, 0xe9, 0xf9, 0x60, 0xb3, 0x52, 0x12, 0x4b, 0x12, 0xf5, 0xd1, 0x0d, 0x4f,
|
||||
0x62, 0x03, 0x2b, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xe3, 0xe0, 0x7e, 0xc0, 0x77, 0x00,
|
||||
0x00, 0x00,
|
||||
}
|
18
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp2.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m2.proto
generated
vendored
18
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imp2.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1/m2.proto
generated
vendored
@ -1,6 +1,6 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2011 The Go Authors. All rights reserved.
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
@ -29,15 +29,7 @@
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
syntax = "proto2";
|
||||
|
||||
package imp;
|
||||
|
||||
message PubliclyImportedMessage {
|
||||
optional int64 field = 1;
|
||||
}
|
||||
|
||||
enum PubliclyImportedEnum {
|
||||
GLASSES = 1;
|
||||
HAIR = 2;
|
||||
}
|
||||
syntax = "proto3";
|
||||
package test.a;
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1";
|
||||
message M2 {}
|
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go
generated
vendored
Normal file
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: imports/test_a_2/m3.proto
|
||||
|
||||
package test_a_2 // import "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type M3 struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *M3) Reset() { *m = M3{} }
|
||||
func (m *M3) String() string { return proto.CompactTextString(m) }
|
||||
func (*M3) ProtoMessage() {}
|
||||
func (*M3) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_m3_de310e87d08d4216, []int{0}
|
||||
}
|
||||
func (m *M3) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_M3.Unmarshal(m, b)
|
||||
}
|
||||
func (m *M3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_M3.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *M3) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_M3.Merge(dst, src)
|
||||
}
|
||||
func (m *M3) XXX_Size() int {
|
||||
return xxx_messageInfo_M3.Size(m)
|
||||
}
|
||||
func (m *M3) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_M3.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_M3 proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*M3)(nil), "test.a.M3")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("imports/test_a_2/m3.proto", fileDescriptor_m3_de310e87d08d4216) }
|
||||
|
||||
var fileDescriptor_m3_de310e87d08d4216 = []byte{
|
||||
// 114 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x29, 0xd6, 0x2f, 0x49, 0x2d, 0x2e, 0x89, 0x4f, 0x8c, 0x37, 0xd2, 0xcf, 0x35, 0xd6,
|
||||
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x03, 0x09, 0xe9, 0x25, 0x2a, 0xb1, 0x70, 0x31, 0xf9,
|
||||
0x1a, 0x3b, 0xb9, 0x44, 0x39, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea,
|
||||
0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, 0xeb, 0x83, 0x15, 0x26, 0x95, 0xa6, 0x41, 0x18, 0xc9, 0xba,
|
||||
0xe9, 0xa9, 0x79, 0xba, 0xe9, 0xf9, 0x60, 0xb3, 0x52, 0x12, 0x4b, 0x12, 0xf5, 0xd1, 0x0d, 0x4f,
|
||||
0x62, 0x03, 0x2b, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x23, 0x86, 0x27, 0x47, 0x77, 0x00,
|
||||
0x00, 0x00,
|
||||
}
|
35
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m3.proto
generated
vendored
Normal file
35
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m3.proto
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
package test.a;
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2";
|
||||
message M3 {}
|
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go
generated
vendored
Normal file
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: imports/test_a_2/m4.proto
|
||||
|
||||
package test_a_2 // import "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type M4 struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *M4) Reset() { *m = M4{} }
|
||||
func (m *M4) String() string { return proto.CompactTextString(m) }
|
||||
func (*M4) ProtoMessage() {}
|
||||
func (*M4) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_m4_da12b386229f3791, []int{0}
|
||||
}
|
||||
func (m *M4) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_M4.Unmarshal(m, b)
|
||||
}
|
||||
func (m *M4) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_M4.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *M4) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_M4.Merge(dst, src)
|
||||
}
|
||||
func (m *M4) XXX_Size() int {
|
||||
return xxx_messageInfo_M4.Size(m)
|
||||
}
|
||||
func (m *M4) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_M4.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_M4 proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*M4)(nil), "test.a.M4")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("imports/test_a_2/m4.proto", fileDescriptor_m4_da12b386229f3791) }
|
||||
|
||||
var fileDescriptor_m4_da12b386229f3791 = []byte{
|
||||
// 114 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x29, 0xd6, 0x2f, 0x49, 0x2d, 0x2e, 0x89, 0x4f, 0x8c, 0x37, 0xd2, 0xcf, 0x35, 0xd1,
|
||||
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x03, 0x09, 0xe9, 0x25, 0x2a, 0xb1, 0x70, 0x31, 0xf9,
|
||||
0x9a, 0x38, 0xb9, 0x44, 0x39, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea,
|
||||
0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, 0xeb, 0x83, 0x15, 0x26, 0x95, 0xa6, 0x41, 0x18, 0xc9, 0xba,
|
||||
0xe9, 0xa9, 0x79, 0xba, 0xe9, 0xf9, 0x60, 0xb3, 0x52, 0x12, 0x4b, 0x12, 0xf5, 0xd1, 0x0d, 0x4f,
|
||||
0x62, 0x03, 0x2b, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x58, 0xcb, 0x10, 0xc8, 0x77, 0x00,
|
||||
0x00, 0x00,
|
||||
}
|
35
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m4.proto
generated
vendored
Normal file
35
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2/m4.proto
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
package test.a;
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2";
|
||||
message M4 {}
|
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go
generated
vendored
Normal file
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: imports/test_b_1/m1.proto
|
||||
|
||||
package beta // import "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type M1 struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *M1) Reset() { *m = M1{} }
|
||||
func (m *M1) String() string { return proto.CompactTextString(m) }
|
||||
func (*M1) ProtoMessage() {}
|
||||
func (*M1) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_m1_aff127b054aec649, []int{0}
|
||||
}
|
||||
func (m *M1) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_M1.Unmarshal(m, b)
|
||||
}
|
||||
func (m *M1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_M1.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *M1) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_M1.Merge(dst, src)
|
||||
}
|
||||
func (m *M1) XXX_Size() int {
|
||||
return xxx_messageInfo_M1.Size(m)
|
||||
}
|
||||
func (m *M1) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_M1.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_M1 proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*M1)(nil), "test.b.part1.M1")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("imports/test_b_1/m1.proto", fileDescriptor_m1_aff127b054aec649) }
|
||||
|
||||
var fileDescriptor_m1_aff127b054aec649 = []byte{
|
||||
// 125 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x29, 0xd6, 0x2f, 0x49, 0x2d, 0x2e, 0x89, 0x4f, 0x8a, 0x37, 0xd4, 0xcf, 0x35, 0xd4,
|
||||
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0x09, 0xe9, 0x25, 0xe9, 0x15, 0x24, 0x16, 0x95,
|
||||
0x18, 0x2a, 0xb1, 0x70, 0x31, 0xf9, 0x1a, 0x3a, 0x79, 0x46, 0xb9, 0xa7, 0x67, 0x96, 0x64, 0x94,
|
||||
0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, 0xeb, 0x83, 0x95, 0x27,
|
||||
0x95, 0xa6, 0x41, 0x18, 0xc9, 0xba, 0xe9, 0xa9, 0x79, 0xba, 0xe9, 0xf9, 0x60, 0x13, 0x53, 0x12,
|
||||
0x4b, 0x12, 0xf5, 0xd1, 0xad, 0xb0, 0x4e, 0x4a, 0x2d, 0x49, 0x4c, 0x62, 0x03, 0xab, 0x36, 0x06,
|
||||
0x04, 0x00, 0x00, 0xff, 0xff, 0x4a, 0xf1, 0x3b, 0x7f, 0x82, 0x00, 0x00, 0x00,
|
||||
}
|
35
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m1.proto
generated
vendored
Normal file
35
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m1.proto
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
package test.b.part1;
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1;beta";
|
||||
message M1 {}
|
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go
generated
vendored
Normal file
67
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: imports/test_b_1/m2.proto
|
||||
|
||||
package beta // import "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type M2 struct {
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *M2) Reset() { *m = M2{} }
|
||||
func (m *M2) String() string { return proto.CompactTextString(m) }
|
||||
func (*M2) ProtoMessage() {}
|
||||
func (*M2) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_m2_0c59cab35ba1b0d8, []int{0}
|
||||
}
|
||||
func (m *M2) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_M2.Unmarshal(m, b)
|
||||
}
|
||||
func (m *M2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_M2.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *M2) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_M2.Merge(dst, src)
|
||||
}
|
||||
func (m *M2) XXX_Size() int {
|
||||
return xxx_messageInfo_M2.Size(m)
|
||||
}
|
||||
func (m *M2) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_M2.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_M2 proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*M2)(nil), "test.b.part2.M2")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("imports/test_b_1/m2.proto", fileDescriptor_m2_0c59cab35ba1b0d8) }
|
||||
|
||||
var fileDescriptor_m2_0c59cab35ba1b0d8 = []byte{
|
||||
// 125 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x29, 0xd6, 0x2f, 0x49, 0x2d, 0x2e, 0x89, 0x4f, 0x8a, 0x37, 0xd4, 0xcf, 0x35, 0xd2,
|
||||
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x01, 0x09, 0xe9, 0x25, 0xe9, 0x15, 0x24, 0x16, 0x95,
|
||||
0x18, 0x29, 0xb1, 0x70, 0x31, 0xf9, 0x1a, 0x39, 0x79, 0x46, 0xb9, 0xa7, 0x67, 0x96, 0x64, 0x94,
|
||||
0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5, 0xeb, 0x83, 0x95, 0x27,
|
||||
0x95, 0xa6, 0x41, 0x18, 0xc9, 0xba, 0xe9, 0xa9, 0x79, 0xba, 0xe9, 0xf9, 0x60, 0x13, 0x53, 0x12,
|
||||
0x4b, 0x12, 0xf5, 0xd1, 0xad, 0xb0, 0x4e, 0x4a, 0x2d, 0x49, 0x4c, 0x62, 0x03, 0xab, 0x36, 0x06,
|
||||
0x04, 0x00, 0x00, 0xff, 0xff, 0x44, 0x29, 0xbe, 0x6d, 0x82, 0x00, 0x00, 0x00,
|
||||
}
|
35
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m2.proto
generated
vendored
Normal file
35
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1/m2.proto
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
package test.b.part2;
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1;beta";
|
||||
message M2 {}
|
80
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go
generated
vendored
Normal file
80
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go
generated
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: imports/test_import_a1m1.proto
|
||||
|
||||
package imports // import "github.com/golang/protobuf/protoc-gen-go/testdata/imports"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import test_a_1 "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1"
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type A1M1 struct {
|
||||
F *test_a_1.M1 `protobuf:"bytes,1,opt,name=f" json:"f,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *A1M1) Reset() { *m = A1M1{} }
|
||||
func (m *A1M1) String() string { return proto.CompactTextString(m) }
|
||||
func (*A1M1) ProtoMessage() {}
|
||||
func (*A1M1) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_import_a1m1_d7f2b5c638a69f6e, []int{0}
|
||||
}
|
||||
func (m *A1M1) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_A1M1.Unmarshal(m, b)
|
||||
}
|
||||
func (m *A1M1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_A1M1.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *A1M1) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_A1M1.Merge(dst, src)
|
||||
}
|
||||
func (m *A1M1) XXX_Size() int {
|
||||
return xxx_messageInfo_A1M1.Size(m)
|
||||
}
|
||||
func (m *A1M1) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_A1M1.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_A1M1 proto.InternalMessageInfo
|
||||
|
||||
func (m *A1M1) GetF() *test_a_1.M1 {
|
||||
if m != nil {
|
||||
return m.F
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*A1M1)(nil), "test.A1M1")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("imports/test_import_a1m1.proto", fileDescriptor_test_import_a1m1_d7f2b5c638a69f6e)
|
||||
}
|
||||
|
||||
var fileDescriptor_test_import_a1m1_d7f2b5c638a69f6e = []byte{
|
||||
// 149 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x29, 0xd6, 0x2f, 0x49, 0x2d, 0x2e, 0x89, 0x87, 0x70, 0xe2, 0x13, 0x0d, 0x73, 0x0d,
|
||||
0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x58, 0x40, 0xe2, 0x52, 0x92, 0x28, 0xaa, 0x12, 0xe3,
|
||||
0x0d, 0xf5, 0x61, 0x0a, 0x94, 0x14, 0xb8, 0x58, 0x1c, 0x0d, 0x7d, 0x0d, 0x85, 0x24, 0xb8, 0x18,
|
||||
0xd3, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0xb8, 0xf4, 0x40, 0xca, 0xf4, 0x12, 0xf5, 0x7c,
|
||||
0x0d, 0x83, 0x18, 0xd3, 0x9c, 0xac, 0xa3, 0x2c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92,
|
||||
0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0x73, 0x12, 0xf3, 0xd2, 0xf5, 0xc1, 0x9a, 0x93, 0x4a, 0xd3, 0x20,
|
||||
0x8c, 0x64, 0xdd, 0xf4, 0xd4, 0x3c, 0xdd, 0xf4, 0x7c, 0xb0, 0xf9, 0x29, 0x89, 0x25, 0x89, 0xfa,
|
||||
0x50, 0x0b, 0x93, 0xd8, 0xc0, 0xf2, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x84, 0x2f, 0x18,
|
||||
0x23, 0xa8, 0x00, 0x00, 0x00,
|
||||
}
|
42
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m1.proto
generated
vendored
Normal file
42
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m1.proto
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package test;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/imports";
|
||||
|
||||
import "imports/test_a_1/m1.proto";
|
||||
|
||||
message A1M1 {
|
||||
test.a.M1 f = 1;
|
||||
}
|
80
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go
generated
vendored
Normal file
80
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go
generated
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: imports/test_import_a1m2.proto
|
||||
|
||||
package imports // import "github.com/golang/protobuf/protoc-gen-go/testdata/imports"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import test_a_1 "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1"
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type A1M2 struct {
|
||||
F *test_a_1.M2 `protobuf:"bytes,1,opt,name=f" json:"f,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *A1M2) Reset() { *m = A1M2{} }
|
||||
func (m *A1M2) String() string { return proto.CompactTextString(m) }
|
||||
func (*A1M2) ProtoMessage() {}
|
||||
func (*A1M2) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_import_a1m2_9a3281ce9464e116, []int{0}
|
||||
}
|
||||
func (m *A1M2) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_A1M2.Unmarshal(m, b)
|
||||
}
|
||||
func (m *A1M2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_A1M2.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *A1M2) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_A1M2.Merge(dst, src)
|
||||
}
|
||||
func (m *A1M2) XXX_Size() int {
|
||||
return xxx_messageInfo_A1M2.Size(m)
|
||||
}
|
||||
func (m *A1M2) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_A1M2.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_A1M2 proto.InternalMessageInfo
|
||||
|
||||
func (m *A1M2) GetF() *test_a_1.M2 {
|
||||
if m != nil {
|
||||
return m.F
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*A1M2)(nil), "test.A1M2")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("imports/test_import_a1m2.proto", fileDescriptor_test_import_a1m2_9a3281ce9464e116)
|
||||
}
|
||||
|
||||
var fileDescriptor_test_import_a1m2_9a3281ce9464e116 = []byte{
|
||||
// 149 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0xcc, 0x2d, 0xc8,
|
||||
0x2f, 0x2a, 0x29, 0xd6, 0x2f, 0x49, 0x2d, 0x2e, 0x89, 0x87, 0x70, 0xe2, 0x13, 0x0d, 0x73, 0x8d,
|
||||
0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x58, 0x40, 0xe2, 0x52, 0x92, 0x28, 0xaa, 0x12, 0xe3,
|
||||
0x0d, 0xf5, 0x61, 0x0a, 0x94, 0x14, 0xb8, 0x58, 0x1c, 0x0d, 0x7d, 0x8d, 0x84, 0x24, 0xb8, 0x18,
|
||||
0xd3, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0xb8, 0xf4, 0x40, 0xca, 0xf4, 0x12, 0xf5, 0x7c,
|
||||
0x8d, 0x82, 0x18, 0xd3, 0x9c, 0xac, 0xa3, 0x2c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92,
|
||||
0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0x73, 0x12, 0xf3, 0xd2, 0xf5, 0xc1, 0x9a, 0x93, 0x4a, 0xd3, 0x20,
|
||||
0x8c, 0x64, 0xdd, 0xf4, 0xd4, 0x3c, 0xdd, 0xf4, 0x7c, 0xb0, 0xf9, 0x29, 0x89, 0x25, 0x89, 0xfa,
|
||||
0x50, 0x0b, 0x93, 0xd8, 0xc0, 0xf2, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x88, 0xfb,
|
||||
0xea, 0xa8, 0x00, 0x00, 0x00,
|
||||
}
|
42
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m2.proto
generated
vendored
Normal file
42
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_a1m2.proto
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package test;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/imports";
|
||||
|
||||
import "imports/test_a_1/m2.proto";
|
||||
|
||||
message A1M2 {
|
||||
test.a.M2 f = 1;
|
||||
}
|
138
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_all.pb.go
generated
vendored
Normal file
138
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_all.pb.go
generated
vendored
Normal file
@ -0,0 +1,138 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: imports/test_import_all.proto
|
||||
|
||||
package imports // import "github.com/golang/protobuf/protoc-gen-go/testdata/imports"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import fmt1 "github.com/golang/protobuf/protoc-gen-go/testdata/imports/fmt"
|
||||
import test_a_1 "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_1"
|
||||
import test_a_2 "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_a_2"
|
||||
import test_b_1 "github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_b_1"
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type All struct {
|
||||
Am1 *test_a_1.M1 `protobuf:"bytes,1,opt,name=am1" json:"am1,omitempty"`
|
||||
Am2 *test_a_1.M2 `protobuf:"bytes,2,opt,name=am2" json:"am2,omitempty"`
|
||||
Am3 *test_a_2.M3 `protobuf:"bytes,3,opt,name=am3" json:"am3,omitempty"`
|
||||
Am4 *test_a_2.M4 `protobuf:"bytes,4,opt,name=am4" json:"am4,omitempty"`
|
||||
Bm1 *test_b_1.M1 `protobuf:"bytes,5,opt,name=bm1" json:"bm1,omitempty"`
|
||||
Bm2 *test_b_1.M2 `protobuf:"bytes,6,opt,name=bm2" json:"bm2,omitempty"`
|
||||
Fmt *fmt1.M `protobuf:"bytes,7,opt,name=fmt" json:"fmt,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *All) Reset() { *m = All{} }
|
||||
func (m *All) String() string { return proto.CompactTextString(m) }
|
||||
func (*All) ProtoMessage() {}
|
||||
func (*All) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_import_all_b41dc4592e4a4f3b, []int{0}
|
||||
}
|
||||
func (m *All) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_All.Unmarshal(m, b)
|
||||
}
|
||||
func (m *All) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_All.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *All) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_All.Merge(dst, src)
|
||||
}
|
||||
func (m *All) XXX_Size() int {
|
||||
return xxx_messageInfo_All.Size(m)
|
||||
}
|
||||
func (m *All) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_All.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_All proto.InternalMessageInfo
|
||||
|
||||
func (m *All) GetAm1() *test_a_1.M1 {
|
||||
if m != nil {
|
||||
return m.Am1
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *All) GetAm2() *test_a_1.M2 {
|
||||
if m != nil {
|
||||
return m.Am2
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *All) GetAm3() *test_a_2.M3 {
|
||||
if m != nil {
|
||||
return m.Am3
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *All) GetAm4() *test_a_2.M4 {
|
||||
if m != nil {
|
||||
return m.Am4
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *All) GetBm1() *test_b_1.M1 {
|
||||
if m != nil {
|
||||
return m.Bm1
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *All) GetBm2() *test_b_1.M2 {
|
||||
if m != nil {
|
||||
return m.Bm2
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *All) GetFmt() *fmt1.M {
|
||||
if m != nil {
|
||||
return m.Fmt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*All)(nil), "test.All")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("imports/test_import_all.proto", fileDescriptor_test_import_all_b41dc4592e4a4f3b)
|
||||
}
|
||||
|
||||
var fileDescriptor_test_import_all_b41dc4592e4a4f3b = []byte{
|
||||
// 258 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0xd0, 0xb1, 0x4e, 0xc3, 0x30,
|
||||
0x10, 0x06, 0x60, 0x15, 0x97, 0x20, 0x99, 0x05, 0x85, 0xc5, 0x20, 0x90, 0x50, 0x27, 0x96, 0xda,
|
||||
0xb2, 0x9d, 0x05, 0x31, 0xc1, 0xde, 0xa5, 0x23, 0x4b, 0x64, 0x97, 0xc6, 0x54, 0xf2, 0xd5, 0x51,
|
||||
0x7a, 0x7d, 0x5e, 0x5e, 0x05, 0xd9, 0x07, 0x12, 0x84, 0x66, 0x4b, 0xfe, 0xef, 0xb7, 0xce, 0x3e,
|
||||
0x7e, 0xbf, 0x83, 0x3e, 0x0d, 0x78, 0x50, 0xb8, 0x3d, 0x60, 0x4b, 0x3f, 0xad, 0x8b, 0x51, 0xf6,
|
||||
0x43, 0xc2, 0x54, 0xcf, 0x73, 0x7c, 0x7b, 0xf3, 0xa7, 0xe4, 0x5a, 0xad, 0x40, 0x53, 0xe1, 0x14,
|
||||
0x99, 0x09, 0x32, 0x0a, 0xec, 0x34, 0x35, 0x27, 0xc9, 0x4f, 0xcf, 0xf2, 0xbf, 0x67, 0x5d, 0xff,
|
||||
0x50, 0x07, 0xa8, 0x80, 0xc2, 0xc5, 0xe7, 0x8c, 0xb3, 0x97, 0x18, 0xeb, 0x3b, 0xce, 0x1c, 0x68,
|
||||
0x31, 0x7b, 0x98, 0x3d, 0x5e, 0x1a, 0x2e, 0xf3, 0x69, 0xe9, 0xe4, 0x4a, 0xaf, 0x73, 0x4c, 0x6a,
|
||||
0xc4, 0xd9, 0x48, 0x4d, 0x56, 0x43, 0x6a, 0x05, 0x1b, 0xa9, 0xcd, 0x6a, 0x49, 0x1b, 0x31, 0x1f,
|
||||
0x69, 0x93, 0xb5, 0xa9, 0x17, 0x9c, 0x79, 0xd0, 0xe2, 0xbc, 0xe8, 0x15, 0xa9, 0x97, 0xbd, 0x1b,
|
||||
0x50, 0x97, 0xe9, 0x1e, 0x34, 0x75, 0x8c, 0xa8, 0xfe, 0x77, 0x4c, 0xb9, 0x83, 0x07, 0x53, 0x0b,
|
||||
0xce, 0x3a, 0x40, 0x71, 0x51, 0x3a, 0x95, 0xec, 0x00, 0xe5, 0x6a, 0x9d, 0xa3, 0xd7, 0xe7, 0xb7,
|
||||
0xa7, 0xb0, 0xc3, 0x8f, 0xa3, 0x97, 0x9b, 0x04, 0x2a, 0xa4, 0xe8, 0xf6, 0x41, 0x95, 0xc7, 0xfb,
|
||||
0x63, 0x47, 0x1f, 0x9b, 0x65, 0xd8, 0xee, 0x97, 0x21, 0x95, 0xa5, 0xbd, 0x3b, 0x74, 0xea, 0x7b,
|
||||
0x55, 0xbe, 0x2a, 0x6e, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x95, 0x39, 0xa3, 0x82, 0x03, 0x02,
|
||||
0x00, 0x00,
|
||||
}
|
58
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_all.proto
generated
vendored
Normal file
58
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/imports/test_import_all.proto
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
// Go support for Protocol Buffers - Google's data interchange format
|
||||
//
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// https://github.com/golang/protobuf
|
||||
//
|
||||
// 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.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package test;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/imports";
|
||||
|
||||
// test_a_1/m*.proto are in the same Go package and proto package.
|
||||
// test_a_*/*.proto are in different Go packages, but the same proto package.
|
||||
// test_b_1/*.proto are in the same Go package, but different proto packages.
|
||||
// fmt/m.proto has a package name which conflicts with "fmt".
|
||||
import "imports/test_a_1/m1.proto";
|
||||
import "imports/test_a_1/m2.proto";
|
||||
import "imports/test_a_2/m3.proto";
|
||||
import "imports/test_a_2/m4.proto";
|
||||
import "imports/test_b_1/m1.proto";
|
||||
import "imports/test_b_1/m2.proto";
|
||||
import "imports/fmt/m.proto";
|
||||
|
||||
message All {
|
||||
test.a.M1 am1 = 1;
|
||||
test.a.M2 am2 = 2;
|
||||
test.a.M3 am3 = 3;
|
||||
test.a.M4 am4 = 4;
|
||||
test.b.part1.M1 bm1 = 5;
|
||||
test.b.part2.M2 bm2 = 6;
|
||||
fmt.M fmt = 7;
|
||||
}
|
4
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/main_test.go
generated
vendored
4
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/main_test.go
generated
vendored
@ -36,11 +36,13 @@ package testdata
|
||||
import (
|
||||
"testing"
|
||||
|
||||
mytestpb "./my_test"
|
||||
importspb "github.com/golang/protobuf/protoc-gen-go/testdata/imports"
|
||||
multipb "github.com/golang/protobuf/protoc-gen-go/testdata/multi"
|
||||
mytestpb "github.com/golang/protobuf/protoc-gen-go/testdata/my_test"
|
||||
)
|
||||
|
||||
func TestLink(t *testing.T) {
|
||||
_ = &multipb.Multi1{}
|
||||
_ = &mytestpb.Request{}
|
||||
_ = &importspb.All{}
|
||||
}
|
||||
|
96
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi1.pb.go
generated
vendored
Normal file
96
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi1.pb.go
generated
vendored
Normal file
@ -0,0 +1,96 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: multi/multi1.proto
|
||||
|
||||
package multitest // import "github.com/golang/protobuf/protoc-gen-go/testdata/multi"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Multi1 struct {
|
||||
Multi2 *Multi2 `protobuf:"bytes,1,req,name=multi2" json:"multi2,omitempty"`
|
||||
Color *Multi2_Color `protobuf:"varint,2,opt,name=color,enum=multitest.Multi2_Color" json:"color,omitempty"`
|
||||
HatType *Multi3_HatType `protobuf:"varint,3,opt,name=hat_type,json=hatType,enum=multitest.Multi3_HatType" json:"hat_type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Multi1) Reset() { *m = Multi1{} }
|
||||
func (m *Multi1) String() string { return proto.CompactTextString(m) }
|
||||
func (*Multi1) ProtoMessage() {}
|
||||
func (*Multi1) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_multi1_08e50c6822e808b8, []int{0}
|
||||
}
|
||||
func (m *Multi1) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Multi1.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Multi1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Multi1.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Multi1) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Multi1.Merge(dst, src)
|
||||
}
|
||||
func (m *Multi1) XXX_Size() int {
|
||||
return xxx_messageInfo_Multi1.Size(m)
|
||||
}
|
||||
func (m *Multi1) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Multi1.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Multi1 proto.InternalMessageInfo
|
||||
|
||||
func (m *Multi1) GetMulti2() *Multi2 {
|
||||
if m != nil {
|
||||
return m.Multi2
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Multi1) GetColor() Multi2_Color {
|
||||
if m != nil && m.Color != nil {
|
||||
return *m.Color
|
||||
}
|
||||
return Multi2_BLUE
|
||||
}
|
||||
|
||||
func (m *Multi1) GetHatType() Multi3_HatType {
|
||||
if m != nil && m.HatType != nil {
|
||||
return *m.HatType
|
||||
}
|
||||
return Multi3_FEDORA
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Multi1)(nil), "multitest.Multi1")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("multi/multi1.proto", fileDescriptor_multi1_08e50c6822e808b8) }
|
||||
|
||||
var fileDescriptor_multi1_08e50c6822e808b8 = []byte{
|
||||
// 200 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xca, 0x2d, 0xcd, 0x29,
|
||||
0xc9, 0xd4, 0x07, 0x93, 0x86, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x9c, 0x60, 0x5e, 0x49,
|
||||
0x6a, 0x71, 0x89, 0x14, 0xb2, 0xb4, 0x11, 0x44, 0x1a, 0x45, 0xcc, 0x18, 0x22, 0xa6, 0x34, 0x83,
|
||||
0x91, 0x8b, 0xcd, 0x17, 0x6c, 0x86, 0x90, 0x26, 0x17, 0x1b, 0x44, 0xb9, 0x04, 0xa3, 0x02, 0x93,
|
||||
0x06, 0xb7, 0x91, 0xa0, 0x1e, 0xdc, 0x38, 0x3d, 0xb0, 0x12, 0xa3, 0x20, 0xa8, 0x02, 0x21, 0x5d,
|
||||
0x2e, 0xd6, 0xe4, 0xfc, 0x9c, 0xfc, 0x22, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x3e, 0x23, 0x71, 0x0c,
|
||||
0x95, 0x7a, 0xce, 0x20, 0xe9, 0x20, 0x88, 0x2a, 0x21, 0x13, 0x2e, 0x8e, 0x8c, 0xc4, 0x92, 0xf8,
|
||||
0x92, 0xca, 0x82, 0x54, 0x09, 0x66, 0xb0, 0x0e, 0x49, 0x74, 0x1d, 0xc6, 0x7a, 0x1e, 0x89, 0x25,
|
||||
0x21, 0x95, 0x05, 0xa9, 0x41, 0xec, 0x19, 0x10, 0x86, 0x93, 0x73, 0x94, 0x63, 0x7a, 0x66, 0x49,
|
||||
0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7a, 0x7e, 0x4e, 0x62, 0x5e, 0xba, 0x3e, 0xd8,
|
||||
0xd5, 0x49, 0xa5, 0x69, 0x10, 0x46, 0xb2, 0x6e, 0x7a, 0x6a, 0x9e, 0x6e, 0x7a, 0xbe, 0x3e, 0xc8,
|
||||
0xa0, 0x94, 0xc4, 0x92, 0x44, 0x88, 0xe7, 0xac, 0xe1, 0x86, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff,
|
||||
0x60, 0x7d, 0xfc, 0x9f, 0x27, 0x01, 0x00, 0x00,
|
||||
}
|
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi1.proto
generated
vendored
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi1.proto
generated
vendored
@ -36,6 +36,8 @@ import "multi/multi3.proto";
|
||||
|
||||
package multitest;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/multi;multitest";
|
||||
|
||||
message Multi1 {
|
||||
required Multi2 multi2 = 1;
|
||||
optional Multi2.Color color = 2;
|
||||
|
128
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi2.pb.go
generated
vendored
Normal file
128
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi2.pb.go
generated
vendored
Normal file
@ -0,0 +1,128 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: multi/multi2.proto
|
||||
|
||||
package multitest // import "github.com/golang/protobuf/protoc-gen-go/testdata/multi"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Multi2_Color int32
|
||||
|
||||
const (
|
||||
Multi2_BLUE Multi2_Color = 1
|
||||
Multi2_GREEN Multi2_Color = 2
|
||||
Multi2_RED Multi2_Color = 3
|
||||
)
|
||||
|
||||
var Multi2_Color_name = map[int32]string{
|
||||
1: "BLUE",
|
||||
2: "GREEN",
|
||||
3: "RED",
|
||||
}
|
||||
var Multi2_Color_value = map[string]int32{
|
||||
"BLUE": 1,
|
||||
"GREEN": 2,
|
||||
"RED": 3,
|
||||
}
|
||||
|
||||
func (x Multi2_Color) Enum() *Multi2_Color {
|
||||
p := new(Multi2_Color)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x Multi2_Color) String() string {
|
||||
return proto.EnumName(Multi2_Color_name, int32(x))
|
||||
}
|
||||
func (x *Multi2_Color) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Multi2_Color_value, data, "Multi2_Color")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Multi2_Color(value)
|
||||
return nil
|
||||
}
|
||||
func (Multi2_Color) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_multi2_c47490ad66d93e67, []int{0, 0}
|
||||
}
|
||||
|
||||
type Multi2 struct {
|
||||
RequiredValue *int32 `protobuf:"varint,1,req,name=required_value,json=requiredValue" json:"required_value,omitempty"`
|
||||
Color *Multi2_Color `protobuf:"varint,2,opt,name=color,enum=multitest.Multi2_Color" json:"color,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Multi2) Reset() { *m = Multi2{} }
|
||||
func (m *Multi2) String() string { return proto.CompactTextString(m) }
|
||||
func (*Multi2) ProtoMessage() {}
|
||||
func (*Multi2) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_multi2_c47490ad66d93e67, []int{0}
|
||||
}
|
||||
func (m *Multi2) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Multi2.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Multi2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Multi2.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Multi2) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Multi2.Merge(dst, src)
|
||||
}
|
||||
func (m *Multi2) XXX_Size() int {
|
||||
return xxx_messageInfo_Multi2.Size(m)
|
||||
}
|
||||
func (m *Multi2) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Multi2.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Multi2 proto.InternalMessageInfo
|
||||
|
||||
func (m *Multi2) GetRequiredValue() int32 {
|
||||
if m != nil && m.RequiredValue != nil {
|
||||
return *m.RequiredValue
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Multi2) GetColor() Multi2_Color {
|
||||
if m != nil && m.Color != nil {
|
||||
return *m.Color
|
||||
}
|
||||
return Multi2_BLUE
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Multi2)(nil), "multitest.Multi2")
|
||||
proto.RegisterEnum("multitest.Multi2_Color", Multi2_Color_name, Multi2_Color_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("multi/multi2.proto", fileDescriptor_multi2_c47490ad66d93e67) }
|
||||
|
||||
var fileDescriptor_multi2_c47490ad66d93e67 = []byte{
|
||||
// 202 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xca, 0x2d, 0xcd, 0x29,
|
||||
0xc9, 0xd4, 0x07, 0x93, 0x46, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x9c, 0x60, 0x5e, 0x49,
|
||||
0x6a, 0x71, 0x89, 0x52, 0x2b, 0x23, 0x17, 0x9b, 0x2f, 0x58, 0x4e, 0x48, 0x95, 0x8b, 0xaf, 0x28,
|
||||
0xb5, 0xb0, 0x34, 0xb3, 0x28, 0x35, 0x25, 0xbe, 0x2c, 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81,
|
||||
0x49, 0x83, 0x35, 0x88, 0x17, 0x26, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe5, 0x62, 0x4d, 0xce, 0xcf,
|
||||
0xc9, 0x2f, 0x92, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, 0x12, 0xd7, 0x83, 0x1b, 0xa6, 0x07, 0x31,
|
||||
0x48, 0xcf, 0x19, 0x24, 0x1d, 0x04, 0x51, 0xa5, 0xa4, 0xca, 0xc5, 0x0a, 0xe6, 0x0b, 0x71, 0x70,
|
||||
0xb1, 0x38, 0xf9, 0x84, 0xba, 0x0a, 0x30, 0x0a, 0x71, 0x72, 0xb1, 0xba, 0x07, 0xb9, 0xba, 0xfa,
|
||||
0x09, 0x30, 0x09, 0xb1, 0x73, 0x31, 0x07, 0xb9, 0xba, 0x08, 0x30, 0x3b, 0x39, 0x47, 0x39, 0xa6,
|
||||
0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5,
|
||||
0xeb, 0x83, 0x5d, 0x9b, 0x54, 0x9a, 0x06, 0x61, 0x24, 0xeb, 0xa6, 0xa7, 0xe6, 0xe9, 0xa6, 0xe7,
|
||||
0xeb, 0x83, 0xec, 0x4a, 0x49, 0x2c, 0x49, 0x84, 0x78, 0xca, 0x1a, 0x6e, 0x3f, 0x20, 0x00, 0x00,
|
||||
0xff, 0xff, 0x49, 0x3b, 0x52, 0x44, 0xec, 0x00, 0x00, 0x00,
|
||||
}
|
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi2.proto
generated
vendored
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi2.proto
generated
vendored
@ -33,6 +33,8 @@ syntax = "proto2";
|
||||
|
||||
package multitest;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/multi;multitest";
|
||||
|
||||
message Multi2 {
|
||||
required int32 required_value = 1;
|
||||
|
||||
|
115
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi3.pb.go
generated
vendored
Normal file
115
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi3.pb.go
generated
vendored
Normal file
@ -0,0 +1,115 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: multi/multi3.proto
|
||||
|
||||
package multitest // import "github.com/golang/protobuf/protoc-gen-go/testdata/multi"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Multi3_HatType int32
|
||||
|
||||
const (
|
||||
Multi3_FEDORA Multi3_HatType = 1
|
||||
Multi3_FEZ Multi3_HatType = 2
|
||||
)
|
||||
|
||||
var Multi3_HatType_name = map[int32]string{
|
||||
1: "FEDORA",
|
||||
2: "FEZ",
|
||||
}
|
||||
var Multi3_HatType_value = map[string]int32{
|
||||
"FEDORA": 1,
|
||||
"FEZ": 2,
|
||||
}
|
||||
|
||||
func (x Multi3_HatType) Enum() *Multi3_HatType {
|
||||
p := new(Multi3_HatType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x Multi3_HatType) String() string {
|
||||
return proto.EnumName(Multi3_HatType_name, int32(x))
|
||||
}
|
||||
func (x *Multi3_HatType) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Multi3_HatType_value, data, "Multi3_HatType")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Multi3_HatType(value)
|
||||
return nil
|
||||
}
|
||||
func (Multi3_HatType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_multi3_d55a72b4628b7875, []int{0, 0}
|
||||
}
|
||||
|
||||
type Multi3 struct {
|
||||
HatType *Multi3_HatType `protobuf:"varint,1,opt,name=hat_type,json=hatType,enum=multitest.Multi3_HatType" json:"hat_type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Multi3) Reset() { *m = Multi3{} }
|
||||
func (m *Multi3) String() string { return proto.CompactTextString(m) }
|
||||
func (*Multi3) ProtoMessage() {}
|
||||
func (*Multi3) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_multi3_d55a72b4628b7875, []int{0}
|
||||
}
|
||||
func (m *Multi3) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Multi3.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Multi3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Multi3.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Multi3) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Multi3.Merge(dst, src)
|
||||
}
|
||||
func (m *Multi3) XXX_Size() int {
|
||||
return xxx_messageInfo_Multi3.Size(m)
|
||||
}
|
||||
func (m *Multi3) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Multi3.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Multi3 proto.InternalMessageInfo
|
||||
|
||||
func (m *Multi3) GetHatType() Multi3_HatType {
|
||||
if m != nil && m.HatType != nil {
|
||||
return *m.HatType
|
||||
}
|
||||
return Multi3_FEDORA
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Multi3)(nil), "multitest.Multi3")
|
||||
proto.RegisterEnum("multitest.Multi3_HatType", Multi3_HatType_name, Multi3_HatType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("multi/multi3.proto", fileDescriptor_multi3_d55a72b4628b7875) }
|
||||
|
||||
var fileDescriptor_multi3_d55a72b4628b7875 = []byte{
|
||||
// 170 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xca, 0x2d, 0xcd, 0x29,
|
||||
0xc9, 0xd4, 0x07, 0x93, 0xc6, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x9c, 0x60, 0x5e, 0x49,
|
||||
0x6a, 0x71, 0x89, 0x52, 0x1c, 0x17, 0x9b, 0x2f, 0x58, 0x4a, 0xc8, 0x84, 0x8b, 0x23, 0x23, 0xb1,
|
||||
0x24, 0xbe, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0xcf, 0x48, 0x52, 0x0f, 0xae,
|
||||
0x4e, 0x0f, 0xa2, 0x48, 0xcf, 0x23, 0xb1, 0x24, 0xa4, 0xb2, 0x20, 0x35, 0x88, 0x3d, 0x03, 0xc2,
|
||||
0x50, 0x92, 0xe3, 0x62, 0x87, 0x8a, 0x09, 0x71, 0x71, 0xb1, 0xb9, 0xb9, 0xba, 0xf8, 0x07, 0x39,
|
||||
0x0a, 0x30, 0x0a, 0xb1, 0x73, 0x31, 0xbb, 0xb9, 0x46, 0x09, 0x30, 0x39, 0x39, 0x47, 0x39, 0xa6,
|
||||
0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5,
|
||||
0xeb, 0x83, 0x5d, 0x91, 0x54, 0x9a, 0x06, 0x61, 0x24, 0xeb, 0xa6, 0xa7, 0xe6, 0xe9, 0xa6, 0xe7,
|
||||
0xeb, 0x83, 0x2c, 0x4a, 0x49, 0x2c, 0x49, 0x84, 0x38, 0xd6, 0x1a, 0x6e, 0x39, 0x20, 0x00, 0x00,
|
||||
0xff, 0xff, 0xd5, 0xa4, 0x1a, 0x0e, 0xc4, 0x00, 0x00, 0x00,
|
||||
}
|
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi3.proto
generated
vendored
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/multi/multi3.proto
generated
vendored
@ -33,6 +33,8 @@ syntax = "proto2";
|
||||
|
||||
package multitest;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/multi;multitest";
|
||||
|
||||
message Multi3 {
|
||||
enum HatType {
|
||||
FEDORA = 1;
|
||||
|
424
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.pb.go
generated
vendored
424
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.pb.go
generated
vendored
@ -1,24 +1,11 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: my_test/test.proto
|
||||
|
||||
package test // import "github.com/golang/protobuf/protoc-gen-go/testdata/my_test"
|
||||
|
||||
/*
|
||||
Package my_test is a generated protocol buffer package.
|
||||
|
||||
This package holds interesting messages.
|
||||
|
||||
It is generated from these files:
|
||||
my_test/test.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Request
|
||||
Reply
|
||||
OtherBase
|
||||
ReplyExtensions
|
||||
OtherReplyExtensions
|
||||
OldReply
|
||||
Communique
|
||||
*/
|
||||
package my_test
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -69,6 +56,9 @@ func (x *HatType) UnmarshalJSON(data []byte) error {
|
||||
*x = HatType(value)
|
||||
return nil
|
||||
}
|
||||
func (HatType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{0}
|
||||
}
|
||||
|
||||
// This enum represents days of the week.
|
||||
type Days int32
|
||||
@ -106,6 +96,9 @@ func (x *Days) UnmarshalJSON(data []byte) error {
|
||||
*x = Days(value)
|
||||
return nil
|
||||
}
|
||||
func (Days) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{1}
|
||||
}
|
||||
|
||||
type Request_Color int32
|
||||
|
||||
@ -142,6 +135,9 @@ func (x *Request_Color) UnmarshalJSON(data []byte) error {
|
||||
*x = Request_Color(value)
|
||||
return nil
|
||||
}
|
||||
func (Request_Color) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{0, 0}
|
||||
}
|
||||
|
||||
type Reply_Entry_Game int32
|
||||
|
||||
@ -175,6 +171,9 @@ func (x *Reply_Entry_Game) UnmarshalJSON(data []byte) error {
|
||||
*x = Reply_Entry_Game(value)
|
||||
return nil
|
||||
}
|
||||
func (Reply_Entry_Game) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{1, 0, 0}
|
||||
}
|
||||
|
||||
// This is a message that might be sent somewhere.
|
||||
type Request struct {
|
||||
@ -191,13 +190,35 @@ type Request struct {
|
||||
MsgMapping map[int64]*Reply `protobuf:"bytes,15,rep,name=msg_mapping,json=msgMapping" json:"msg_mapping,omitempty" protobuf_key:"zigzag64,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
Reset_ *int32 `protobuf:"varint,12,opt,name=reset" json:"reset,omitempty"`
|
||||
// This field should not conflict with any getters.
|
||||
GetKey_ *string `protobuf:"bytes,16,opt,name=get_key,json=getKey" json:"get_key,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
GetKey_ *string `protobuf:"bytes,16,opt,name=get_key,json=getKey" json:"get_key,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Request) Reset() { *m = Request{} }
|
||||
func (m *Request) String() string { return proto.CompactTextString(m) }
|
||||
func (*Request) ProtoMessage() {}
|
||||
func (*Request) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{0}
|
||||
}
|
||||
func (m *Request) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Request.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Request) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Request.Merge(dst, src)
|
||||
}
|
||||
func (m *Request) XXX_Size() int {
|
||||
return xxx_messageInfo_Request.Size(m)
|
||||
}
|
||||
func (m *Request) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Request.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Request proto.InternalMessageInfo
|
||||
|
||||
const Default_Request_Hat HatType = HatType_FEDORA
|
||||
|
||||
@ -267,13 +288,35 @@ func (m *Request) GetGetKey_() string {
|
||||
}
|
||||
|
||||
type Request_SomeGroup struct {
|
||||
GroupField *int32 `protobuf:"varint,9,opt,name=group_field,json=groupField" json:"group_field,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
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 *Request_SomeGroup) Reset() { *m = Request_SomeGroup{} }
|
||||
func (m *Request_SomeGroup) String() string { return proto.CompactTextString(m) }
|
||||
func (*Request_SomeGroup) ProtoMessage() {}
|
||||
func (*Request_SomeGroup) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{0, 0}
|
||||
}
|
||||
func (m *Request_SomeGroup) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Request_SomeGroup.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Request_SomeGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Request_SomeGroup.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Request_SomeGroup) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Request_SomeGroup.Merge(dst, src)
|
||||
}
|
||||
func (m *Request_SomeGroup) XXX_Size() int {
|
||||
return xxx_messageInfo_Request_SomeGroup.Size(m)
|
||||
}
|
||||
func (m *Request_SomeGroup) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Request_SomeGroup.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Request_SomeGroup proto.InternalMessageInfo
|
||||
|
||||
func (m *Request_SomeGroup) GetGroupField() int32 {
|
||||
if m != nil && m.GroupField != nil {
|
||||
@ -285,21 +328,43 @@ func (m *Request_SomeGroup) GetGroupField() int32 {
|
||||
type Reply struct {
|
||||
Found []*Reply_Entry `protobuf:"bytes,1,rep,name=found" json:"found,omitempty"`
|
||||
CompactKeys []int32 `protobuf:"varint,2,rep,packed,name=compact_keys,json=compactKeys" json:"compact_keys,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
proto.XXX_InternalExtensions `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Reply) Reset() { *m = Reply{} }
|
||||
func (m *Reply) String() string { return proto.CompactTextString(m) }
|
||||
func (*Reply) ProtoMessage() {}
|
||||
func (*Reply) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{1}
|
||||
}
|
||||
|
||||
var extRange_Reply = []proto.ExtensionRange{
|
||||
{100, 536870911},
|
||||
{Start: 100, End: 536870911},
|
||||
}
|
||||
|
||||
func (*Reply) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_Reply
|
||||
}
|
||||
func (m *Reply) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Reply.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Reply.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Reply) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Reply.Merge(dst, src)
|
||||
}
|
||||
func (m *Reply) XXX_Size() int {
|
||||
return xxx_messageInfo_Reply.Size(m)
|
||||
}
|
||||
func (m *Reply) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Reply.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Reply proto.InternalMessageInfo
|
||||
|
||||
func (m *Reply) GetFound() []*Reply_Entry {
|
||||
if m != nil {
|
||||
@ -316,15 +381,37 @@ func (m *Reply) GetCompactKeys() []int32 {
|
||||
}
|
||||
|
||||
type Reply_Entry struct {
|
||||
KeyThatNeeds_1234Camel_CasIng *int64 `protobuf:"varint,1,req,name=key_that_needs_1234camel_CasIng,json=keyThatNeeds1234camelCasIng" json:"key_that_needs_1234camel_CasIng,omitempty"`
|
||||
Value *int64 `protobuf:"varint,2,opt,name=value,def=7" json:"value,omitempty"`
|
||||
XMyFieldName_2 *int64 `protobuf:"varint,3,opt,name=_my_field_name_2,json=MyFieldName2" json:"_my_field_name_2,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
KeyThatNeeds_1234Camel_CasIng *int64 `protobuf:"varint,1,req,name=key_that_needs_1234camel_CasIng,json=keyThatNeeds1234camelCasIng" json:"key_that_needs_1234camel_CasIng,omitempty"`
|
||||
Value *int64 `protobuf:"varint,2,opt,name=value,def=7" json:"value,omitempty"`
|
||||
XMyFieldName_2 *int64 `protobuf:"varint,3,opt,name=_my_field_name_2,json=MyFieldName2" json:"_my_field_name_2,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Reply_Entry) Reset() { *m = Reply_Entry{} }
|
||||
func (m *Reply_Entry) String() string { return proto.CompactTextString(m) }
|
||||
func (*Reply_Entry) ProtoMessage() {}
|
||||
func (*Reply_Entry) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{1, 0}
|
||||
}
|
||||
func (m *Reply_Entry) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Reply_Entry.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Reply_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Reply_Entry.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Reply_Entry) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Reply_Entry.Merge(dst, src)
|
||||
}
|
||||
func (m *Reply_Entry) XXX_Size() int {
|
||||
return xxx_messageInfo_Reply_Entry.Size(m)
|
||||
}
|
||||
func (m *Reply_Entry) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Reply_Entry.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Reply_Entry proto.InternalMessageInfo
|
||||
|
||||
const Default_Reply_Entry_Value int64 = 7
|
||||
|
||||
@ -350,22 +437,44 @@ func (m *Reply_Entry) GetXMyFieldName_2() int64 {
|
||||
}
|
||||
|
||||
type OtherBase struct {
|
||||
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
proto.XXX_InternalExtensions `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OtherBase) Reset() { *m = OtherBase{} }
|
||||
func (m *OtherBase) String() string { return proto.CompactTextString(m) }
|
||||
func (*OtherBase) ProtoMessage() {}
|
||||
func (*OtherBase) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{2}
|
||||
}
|
||||
|
||||
var extRange_OtherBase = []proto.ExtensionRange{
|
||||
{100, 536870911},
|
||||
{Start: 100, End: 536870911},
|
||||
}
|
||||
|
||||
func (*OtherBase) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_OtherBase
|
||||
}
|
||||
func (m *OtherBase) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_OtherBase.Unmarshal(m, b)
|
||||
}
|
||||
func (m *OtherBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_OtherBase.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *OtherBase) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OtherBase.Merge(dst, src)
|
||||
}
|
||||
func (m *OtherBase) XXX_Size() int {
|
||||
return xxx_messageInfo_OtherBase.Size(m)
|
||||
}
|
||||
func (m *OtherBase) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_OtherBase.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_OtherBase proto.InternalMessageInfo
|
||||
|
||||
func (m *OtherBase) GetName() string {
|
||||
if m != nil && m.Name != nil {
|
||||
@ -375,12 +484,34 @@ func (m *OtherBase) GetName() string {
|
||||
}
|
||||
|
||||
type ReplyExtensions struct {
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ReplyExtensions) Reset() { *m = ReplyExtensions{} }
|
||||
func (m *ReplyExtensions) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReplyExtensions) ProtoMessage() {}
|
||||
func (*ReplyExtensions) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{3}
|
||||
}
|
||||
func (m *ReplyExtensions) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ReplyExtensions.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ReplyExtensions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ReplyExtensions.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ReplyExtensions) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ReplyExtensions.Merge(dst, src)
|
||||
}
|
||||
func (m *ReplyExtensions) XXX_Size() int {
|
||||
return xxx_messageInfo_ReplyExtensions.Size(m)
|
||||
}
|
||||
func (m *ReplyExtensions) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ReplyExtensions.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ReplyExtensions proto.InternalMessageInfo
|
||||
|
||||
var E_ReplyExtensions_Time = &proto.ExtensionDesc{
|
||||
ExtendedType: (*Reply)(nil),
|
||||
@ -410,13 +541,35 @@ var E_ReplyExtensions_Donut = &proto.ExtensionDesc{
|
||||
}
|
||||
|
||||
type OtherReplyExtensions struct {
|
||||
Key *int32 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
Key *int32 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OtherReplyExtensions) Reset() { *m = OtherReplyExtensions{} }
|
||||
func (m *OtherReplyExtensions) String() string { return proto.CompactTextString(m) }
|
||||
func (*OtherReplyExtensions) ProtoMessage() {}
|
||||
func (*OtherReplyExtensions) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{4}
|
||||
}
|
||||
func (m *OtherReplyExtensions) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_OtherReplyExtensions.Unmarshal(m, b)
|
||||
}
|
||||
func (m *OtherReplyExtensions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_OtherReplyExtensions.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *OtherReplyExtensions) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OtherReplyExtensions.Merge(dst, src)
|
||||
}
|
||||
func (m *OtherReplyExtensions) XXX_Size() int {
|
||||
return xxx_messageInfo_OtherReplyExtensions.Size(m)
|
||||
}
|
||||
func (m *OtherReplyExtensions) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_OtherReplyExtensions.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_OtherReplyExtensions proto.InternalMessageInfo
|
||||
|
||||
func (m *OtherReplyExtensions) GetKey() int32 {
|
||||
if m != nil && m.Key != nil {
|
||||
@ -426,20 +579,19 @@ func (m *OtherReplyExtensions) GetKey() int32 {
|
||||
}
|
||||
|
||||
type OldReply struct {
|
||||
proto.XXX_InternalExtensions `json:"-"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
proto.XXX_InternalExtensions `protobuf_messageset:"1" json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OldReply) Reset() { *m = OldReply{} }
|
||||
func (m *OldReply) String() string { return proto.CompactTextString(m) }
|
||||
func (*OldReply) ProtoMessage() {}
|
||||
func (*OldReply) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{5}
|
||||
}
|
||||
|
||||
func (m *OldReply) Marshal() ([]byte, error) {
|
||||
return proto.MarshalMessageSet(&m.XXX_InternalExtensions)
|
||||
}
|
||||
func (m *OldReply) Unmarshal(buf []byte) error {
|
||||
return proto.UnmarshalMessageSet(buf, &m.XXX_InternalExtensions)
|
||||
}
|
||||
func (m *OldReply) MarshalJSON() ([]byte, error) {
|
||||
return proto.MarshalMessageSetJSON(&m.XXX_InternalExtensions)
|
||||
}
|
||||
@ -447,17 +599,30 @@ func (m *OldReply) UnmarshalJSON(buf []byte) error {
|
||||
return proto.UnmarshalMessageSetJSON(buf, &m.XXX_InternalExtensions)
|
||||
}
|
||||
|
||||
// ensure OldReply satisfies proto.Marshaler and proto.Unmarshaler
|
||||
var _ proto.Marshaler = (*OldReply)(nil)
|
||||
var _ proto.Unmarshaler = (*OldReply)(nil)
|
||||
|
||||
var extRange_OldReply = []proto.ExtensionRange{
|
||||
{100, 2147483646},
|
||||
{Start: 100, End: 2147483646},
|
||||
}
|
||||
|
||||
func (*OldReply) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_OldReply
|
||||
}
|
||||
func (m *OldReply) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_OldReply.Unmarshal(m, b)
|
||||
}
|
||||
func (m *OldReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_OldReply.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *OldReply) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OldReply.Merge(dst, src)
|
||||
}
|
||||
func (m *OldReply) XXX_Size() int {
|
||||
return xxx_messageInfo_OldReply.Size(m)
|
||||
}
|
||||
func (m *OldReply) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_OldReply.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_OldReply proto.InternalMessageInfo
|
||||
|
||||
type Communique struct {
|
||||
MakeMeCry *bool `protobuf:"varint,1,opt,name=make_me_cry,json=makeMeCry" json:"make_me_cry,omitempty"`
|
||||
@ -474,13 +639,35 @@ type Communique struct {
|
||||
// *Communique_Delta_
|
||||
// *Communique_Msg
|
||||
// *Communique_Somegroup
|
||||
Union isCommunique_Union `protobuf_oneof:"union"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
Union isCommunique_Union `protobuf_oneof:"union"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Communique) Reset() { *m = Communique{} }
|
||||
func (m *Communique) String() string { return proto.CompactTextString(m) }
|
||||
func (*Communique) ProtoMessage() {}
|
||||
func (*Communique) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{6}
|
||||
}
|
||||
func (m *Communique) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Communique.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Communique) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Communique.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Communique) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Communique.Merge(dst, src)
|
||||
}
|
||||
func (m *Communique) XXX_Size() int {
|
||||
return xxx_messageInfo_Communique.Size(m)
|
||||
}
|
||||
func (m *Communique) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Communique.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Communique proto.InternalMessageInfo
|
||||
|
||||
type isCommunique_Union interface {
|
||||
isCommunique_Union()
|
||||
@ -511,7 +698,7 @@ type Communique_Delta_ struct {
|
||||
Delta int32 `protobuf:"zigzag32,12,opt,name=delta,oneof"`
|
||||
}
|
||||
type Communique_Msg struct {
|
||||
Msg *Reply `protobuf:"bytes,13,opt,name=msg,oneof"`
|
||||
Msg *Reply `protobuf:"bytes,16,opt,name=msg,oneof"`
|
||||
}
|
||||
type Communique_Somegroup struct {
|
||||
Somegroup *Communique_SomeGroup `protobuf:"group,14,opt,name=SomeGroup,json=somegroup,oneof"`
|
||||
@ -661,7 +848,7 @@ func _Communique_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
b.EncodeVarint(12<<3 | proto.WireVarint)
|
||||
b.EncodeZigzag32(uint64(x.Delta))
|
||||
case *Communique_Msg:
|
||||
b.EncodeVarint(13<<3 | proto.WireBytes)
|
||||
b.EncodeVarint(16<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.Msg); err != nil {
|
||||
return err
|
||||
}
|
||||
@ -737,7 +924,7 @@ func _Communique_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buf
|
||||
x, err := b.DecodeZigzag32()
|
||||
m.Union = &Communique_Delta_{int32(x)}
|
||||
return true, err
|
||||
case 13: // union.msg
|
||||
case 16: // union.msg
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
@ -763,40 +950,40 @@ func _Communique_OneofSizer(msg proto.Message) (n int) {
|
||||
// union
|
||||
switch x := m.Union.(type) {
|
||||
case *Communique_Number:
|
||||
n += proto.SizeVarint(5<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.Number))
|
||||
case *Communique_Name:
|
||||
n += proto.SizeVarint(6<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Name)))
|
||||
n += len(x.Name)
|
||||
case *Communique_Data:
|
||||
n += proto.SizeVarint(7<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Data)))
|
||||
n += len(x.Data)
|
||||
case *Communique_TempC:
|
||||
n += proto.SizeVarint(8<<3 | proto.WireFixed64)
|
||||
n += 1 // tag and wire
|
||||
n += 8
|
||||
case *Communique_Height:
|
||||
n += proto.SizeVarint(9<<3 | proto.WireFixed32)
|
||||
n += 1 // tag and wire
|
||||
n += 4
|
||||
case *Communique_Today:
|
||||
n += proto.SizeVarint(10<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.Today))
|
||||
case *Communique_Maybe:
|
||||
n += proto.SizeVarint(11<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += 1
|
||||
case *Communique_Delta_:
|
||||
n += proto.SizeVarint(12<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64((uint32(x.Delta) << 1) ^ uint32((int32(x.Delta) >> 31))))
|
||||
case *Communique_Msg:
|
||||
s := proto.Size(x.Msg)
|
||||
n += proto.SizeVarint(13<<3 | proto.WireBytes)
|
||||
n += 2 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Communique_Somegroup:
|
||||
n += proto.SizeVarint(14<<3 | proto.WireStartGroup)
|
||||
n += 1 // tag and wire
|
||||
n += proto.Size(x.Somegroup)
|
||||
n += proto.SizeVarint(14<<3 | proto.WireEndGroup)
|
||||
n += 1 // tag and wire
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
@ -805,13 +992,35 @@ func _Communique_OneofSizer(msg proto.Message) (n int) {
|
||||
}
|
||||
|
||||
type Communique_SomeGroup struct {
|
||||
Member *string `protobuf:"bytes,15,opt,name=member" json:"member,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
Member *string `protobuf:"bytes,15,opt,name=member" json:"member,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Communique_SomeGroup) Reset() { *m = Communique_SomeGroup{} }
|
||||
func (m *Communique_SomeGroup) String() string { return proto.CompactTextString(m) }
|
||||
func (*Communique_SomeGroup) ProtoMessage() {}
|
||||
func (*Communique_SomeGroup) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{6, 0}
|
||||
}
|
||||
func (m *Communique_SomeGroup) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Communique_SomeGroup.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Communique_SomeGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Communique_SomeGroup.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Communique_SomeGroup) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Communique_SomeGroup.Merge(dst, src)
|
||||
}
|
||||
func (m *Communique_SomeGroup) XXX_Size() int {
|
||||
return xxx_messageInfo_Communique_SomeGroup.Size(m)
|
||||
}
|
||||
func (m *Communique_SomeGroup) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Communique_SomeGroup.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Communique_SomeGroup proto.InternalMessageInfo
|
||||
|
||||
func (m *Communique_SomeGroup) GetMember() string {
|
||||
if m != nil && m.Member != nil {
|
||||
@ -821,12 +1030,34 @@ func (m *Communique_SomeGroup) GetMember() string {
|
||||
}
|
||||
|
||||
type Communique_Delta struct {
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Communique_Delta) Reset() { *m = Communique_Delta{} }
|
||||
func (m *Communique_Delta) String() string { return proto.CompactTextString(m) }
|
||||
func (*Communique_Delta) ProtoMessage() {}
|
||||
func (*Communique_Delta) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_test_2309d445eee26af7, []int{6, 1}
|
||||
}
|
||||
func (m *Communique_Delta) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Communique_Delta.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Communique_Delta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Communique_Delta.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Communique_Delta) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Communique_Delta.Merge(dst, src)
|
||||
}
|
||||
func (m *Communique_Delta) XXX_Size() int {
|
||||
return xxx_messageInfo_Communique_Delta.Size(m)
|
||||
}
|
||||
func (m *Communique_Delta) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Communique_Delta.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Communique_Delta proto.InternalMessageInfo
|
||||
|
||||
var E_Tag = &proto.ExtensionDesc{
|
||||
ExtendedType: (*Reply)(nil),
|
||||
@ -848,6 +1079,8 @@ var E_Donut = &proto.ExtensionDesc{
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Request)(nil), "my.test.Request")
|
||||
proto.RegisterMapType((map[int64]*Reply)(nil), "my.test.Request.MsgMappingEntry")
|
||||
proto.RegisterMapType((map[int32]string)(nil), "my.test.Request.NameMappingEntry")
|
||||
proto.RegisterType((*Request_SomeGroup)(nil), "my.test.Request.SomeGroup")
|
||||
proto.RegisterType((*Reply)(nil), "my.test.Reply")
|
||||
proto.RegisterType((*Reply_Entry)(nil), "my.test.Reply.Entry")
|
||||
@ -868,3 +1101,74 @@ func init() {
|
||||
proto.RegisterExtension(E_Tag)
|
||||
proto.RegisterExtension(E_Donut)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("my_test/test.proto", fileDescriptor_test_2309d445eee26af7) }
|
||||
|
||||
var fileDescriptor_test_2309d445eee26af7 = []byte{
|
||||
// 1033 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x55, 0xdd, 0x6e, 0xe3, 0x44,
|
||||
0x14, 0xce, 0xd8, 0x71, 0x7e, 0x4e, 0x42, 0x6b, 0x46, 0x55, 0x6b, 0x05, 0xed, 0xd6, 0x04, 0x8a,
|
||||
0x4c, 0xc5, 0xa6, 0xda, 0x80, 0xc4, 0x2a, 0x88, 0xd5, 0x36, 0x3f, 0x6d, 0xaa, 0x6d, 0x12, 0x69,
|
||||
0xda, 0x5e, 0xb0, 0x37, 0xd6, 0x34, 0x9e, 0x3a, 0xa6, 0x19, 0x3b, 0x6b, 0x8f, 0x11, 0xbe, 0xeb,
|
||||
0x53, 0xc0, 0x6b, 0x70, 0xcf, 0x0b, 0xf1, 0x16, 0x45, 0x33, 0x0e, 0x49, 0xda, 0xa0, 0xbd, 0xb1,
|
||||
0x7c, 0xce, 0xf9, 0xce, 0xe7, 0x39, 0x3f, 0xfe, 0x06, 0x30, 0xcf, 0x5c, 0xc1, 0x12, 0x71, 0x22,
|
||||
0x1f, 0xad, 0x45, 0x1c, 0x89, 0x08, 0x97, 0x79, 0xd6, 0x92, 0x66, 0x03, 0xf3, 0x74, 0x2e, 0x82,
|
||||
0x13, 0xf5, 0x7c, 0x9d, 0x07, 0x9b, 0xff, 0x14, 0xa1, 0x4c, 0xd8, 0xc7, 0x94, 0x25, 0x02, 0x9b,
|
||||
0xa0, 0xdf, 0xb3, 0xcc, 0x42, 0xb6, 0xee, 0xe8, 0x44, 0xbe, 0x62, 0x07, 0xf4, 0x59, 0xca, 0x2c,
|
||||
0xdd, 0x46, 0xce, 0x4e, 0x7b, 0xbf, 0xb5, 0x24, 0x6a, 0x2d, 0x13, 0x5a, 0xbd, 0x68, 0x1e, 0xc5,
|
||||
0x44, 0x42, 0xf0, 0x31, 0xe8, 0x33, 0x2a, 0xac, 0xa2, 0x42, 0x9a, 0x2b, 0xe4, 0x90, 0x8a, 0xeb,
|
||||
0x6c, 0xc1, 0x3a, 0xa5, 0xb3, 0x41, 0x7f, 0x42, 0x4e, 0x89, 0x04, 0xe1, 0x43, 0xa8, 0x78, 0x8c,
|
||||
0x7a, 0xf3, 0x20, 0x64, 0x56, 0xd9, 0x46, 0x8e, 0xd6, 0xd1, 0x83, 0xf0, 0x8e, 0xac, 0x9c, 0xf8,
|
||||
0x0d, 0x54, 0x93, 0x88, 0x33, 0x3f, 0x8e, 0xd2, 0x85, 0x55, 0xb1, 0x91, 0x03, 0xed, 0xc6, 0xd6,
|
||||
0xc7, 0xaf, 0x22, 0xce, 0xce, 0x25, 0x82, 0xac, 0xc1, 0xb8, 0x0f, 0xf5, 0x90, 0x72, 0xe6, 0x72,
|
||||
0xba, 0x58, 0x04, 0xa1, 0x6f, 0xed, 0xd8, 0xba, 0x53, 0x6b, 0x7f, 0xb9, 0x95, 0x3c, 0xa6, 0x9c,
|
||||
0x8d, 0x72, 0xcc, 0x20, 0x14, 0x71, 0x46, 0x6a, 0xe1, 0xda, 0x83, 0x4f, 0xa1, 0xc6, 0x13, 0x7f,
|
||||
0x45, 0xb2, 0xab, 0x48, 0xec, 0x2d, 0x92, 0x51, 0xe2, 0x3f, 0xe1, 0x00, 0xbe, 0x72, 0xe0, 0x3d,
|
||||
0x30, 0x62, 0x96, 0x30, 0x61, 0xd5, 0x6d, 0xe4, 0x18, 0x24, 0x37, 0xf0, 0x01, 0x94, 0x7d, 0x26,
|
||||
0x5c, 0xd9, 0x65, 0xd3, 0x46, 0x4e, 0x95, 0x94, 0x7c, 0x26, 0xde, 0xb3, 0xac, 0xf1, 0x1d, 0x54,
|
||||
0x57, 0xf5, 0xe0, 0x43, 0xa8, 0xa9, 0x6a, 0xdc, 0xbb, 0x80, 0xcd, 0x3d, 0xab, 0xaa, 0x18, 0x40,
|
||||
0xb9, 0xce, 0xa4, 0xa7, 0xf1, 0x16, 0xcc, 0xe7, 0x05, 0xac, 0x87, 0x27, 0xc1, 0x6a, 0x78, 0x7b,
|
||||
0x60, 0xfc, 0x46, 0xe7, 0x29, 0xb3, 0x34, 0xf5, 0xa9, 0xdc, 0xe8, 0x68, 0x6f, 0x50, 0x63, 0x04,
|
||||
0xbb, 0xcf, 0xce, 0xbe, 0x99, 0x8e, 0xf3, 0xf4, 0xaf, 0x37, 0xd3, 0x6b, 0xed, 0x9d, 0x8d, 0xf2,
|
||||
0x17, 0xf3, 0x6c, 0x83, 0xae, 0x79, 0x04, 0x86, 0xda, 0x04, 0x5c, 0x06, 0x9d, 0x0c, 0xfa, 0x66,
|
||||
0x01, 0x57, 0xc1, 0x38, 0x27, 0x83, 0xc1, 0xd8, 0x44, 0xb8, 0x02, 0xc5, 0xee, 0xe5, 0xcd, 0xc0,
|
||||
0xd4, 0x9a, 0x7f, 0x6a, 0x60, 0xa8, 0x5c, 0x7c, 0x0c, 0xc6, 0x5d, 0x94, 0x86, 0x9e, 0x5a, 0xb5,
|
||||
0x5a, 0x7b, 0xef, 0x29, 0x75, 0x2b, 0xef, 0x66, 0x0e, 0xc1, 0x47, 0x50, 0x9f, 0x46, 0x7c, 0x41,
|
||||
0xa7, 0xaa, 0x6d, 0x89, 0xa5, 0xd9, 0xba, 0x63, 0x74, 0x35, 0x13, 0x91, 0xda, 0xd2, 0xff, 0x9e,
|
||||
0x65, 0x49, 0xe3, 0x2f, 0x04, 0x46, 0x5e, 0x49, 0x1f, 0x0e, 0xef, 0x59, 0xe6, 0x8a, 0x19, 0x15,
|
||||
0x6e, 0xc8, 0x98, 0x97, 0xb8, 0xaf, 0xdb, 0xdf, 0xff, 0x30, 0xa5, 0x9c, 0xcd, 0xdd, 0x1e, 0x4d,
|
||||
0x2e, 0x42, 0xdf, 0x42, 0xb6, 0xe6, 0xe8, 0xe4, 0x8b, 0x7b, 0x96, 0x5d, 0xcf, 0xa8, 0x18, 0x4b,
|
||||
0xd0, 0x0a, 0x93, 0x43, 0xf0, 0xc1, 0x66, 0xf5, 0x7a, 0x07, 0xfd, 0xb8, 0x2c, 0x18, 0x7f, 0x03,
|
||||
0xa6, 0xcb, 0xb3, 0x7c, 0x34, 0xae, 0xda, 0xb5, 0xb6, 0xfa, 0x3f, 0x74, 0x52, 0x1f, 0x65, 0x6a,
|
||||
0x3c, 0x72, 0x34, 0xed, 0xa6, 0x0d, 0xc5, 0x73, 0xca, 0x19, 0xae, 0x43, 0xe5, 0x6c, 0x32, 0xb9,
|
||||
0xee, 0x9e, 0x5e, 0x5e, 0x9a, 0x08, 0x03, 0x94, 0xae, 0x07, 0xe3, 0xf1, 0xc5, 0x95, 0xa9, 0x1d,
|
||||
0x57, 0x2a, 0x9e, 0xf9, 0xf0, 0xf0, 0xf0, 0xa0, 0x35, 0xbf, 0x85, 0xea, 0x44, 0xcc, 0x58, 0xdc,
|
||||
0xa5, 0x09, 0xc3, 0x18, 0x8a, 0x92, 0x56, 0x8d, 0xa2, 0x4a, 0xd4, 0xfb, 0x06, 0xf4, 0x6f, 0x04,
|
||||
0xbb, 0xaa, 0x4b, 0x83, 0xdf, 0x05, 0x0b, 0x93, 0x20, 0x0a, 0x93, 0x76, 0x13, 0x8a, 0x22, 0xe0,
|
||||
0x0c, 0x3f, 0x1b, 0x91, 0xc5, 0x6c, 0xe4, 0x20, 0xa2, 0x62, 0xed, 0x77, 0x50, 0x9a, 0xd2, 0x38,
|
||||
0x8e, 0xc4, 0x16, 0x2a, 0x50, 0xe3, 0xb5, 0x9e, 0x7a, 0xd7, 0xec, 0x64, 0x99, 0xd7, 0xee, 0x82,
|
||||
0xe1, 0x45, 0x61, 0x2a, 0x30, 0x5e, 0x41, 0x57, 0x87, 0x56, 0x9f, 0xfa, 0x14, 0x49, 0x9e, 0xda,
|
||||
0x74, 0x60, 0x4f, 0xe5, 0x3c, 0x0b, 0x6f, 0x2f, 0x6f, 0xd3, 0x82, 0xca, 0x64, 0xee, 0x29, 0x9c,
|
||||
0xaa, 0xfe, 0xf1, 0xf1, 0xf1, 0xb1, 0xdc, 0xd1, 0x2a, 0xa8, 0xf9, 0x87, 0x0e, 0xd0, 0x8b, 0x38,
|
||||
0x4f, 0xc3, 0xe0, 0x63, 0xca, 0xf0, 0x4b, 0xa8, 0x71, 0x7a, 0xcf, 0x5c, 0xce, 0xdc, 0x69, 0x9c,
|
||||
0x53, 0x54, 0x48, 0x55, 0xba, 0x46, 0xac, 0x17, 0x67, 0xd8, 0x82, 0x52, 0x98, 0xf2, 0x5b, 0x16,
|
||||
0x5b, 0x86, 0x64, 0x1f, 0x16, 0xc8, 0xd2, 0xc6, 0x7b, 0xcb, 0x46, 0x97, 0x64, 0xa3, 0x87, 0x85,
|
||||
0xbc, 0xd5, 0xd2, 0xeb, 0x51, 0x41, 0x95, 0x30, 0xd5, 0xa5, 0x57, 0x5a, 0xf8, 0x00, 0x4a, 0x82,
|
||||
0xf1, 0x85, 0x3b, 0x55, 0x72, 0x84, 0x86, 0x05, 0x62, 0x48, 0xbb, 0x27, 0xe9, 0x67, 0x2c, 0xf0,
|
||||
0x67, 0x42, 0xfd, 0xa6, 0x9a, 0xa4, 0xcf, 0x6d, 0x7c, 0x04, 0x86, 0x88, 0x3c, 0x9a, 0x59, 0xa0,
|
||||
0x34, 0xf1, 0xb3, 0x55, 0x6f, 0xfa, 0x34, 0x4b, 0x14, 0x81, 0x8c, 0xe2, 0x7d, 0x30, 0x38, 0xcd,
|
||||
0x6e, 0x99, 0x55, 0x93, 0x27, 0x97, 0x7e, 0x65, 0x4a, 0xbf, 0xc7, 0xe6, 0x82, 0x2a, 0x01, 0xf9,
|
||||
0x5c, 0xfa, 0x95, 0x89, 0x9b, 0xa0, 0xf3, 0xc4, 0x57, 0xf2, 0xb1, 0xf5, 0x53, 0x0e, 0x0b, 0x44,
|
||||
0x06, 0xf1, 0xcf, 0x9b, 0xfa, 0xb9, 0xa3, 0xf4, 0xf3, 0xc5, 0x0a, 0xb9, 0xee, 0xdd, 0x5a, 0x42,
|
||||
0x87, 0x85, 0x0d, 0x11, 0x6d, 0x7c, 0xb5, 0x29, 0x46, 0xfb, 0x50, 0xe2, 0x4c, 0xf5, 0x6f, 0x37,
|
||||
0x57, 0xac, 0xdc, 0x6a, 0x94, 0xc1, 0xe8, 0xcb, 0x03, 0x75, 0xcb, 0x60, 0xa4, 0x61, 0x10, 0x85,
|
||||
0xc7, 0x2f, 0xa1, 0xbc, 0x94, 0x7b, 0xb9, 0xe6, 0xb9, 0xe0, 0x9b, 0x48, 0x8a, 0xc2, 0xd9, 0xe0,
|
||||
0x83, 0xa9, 0x1d, 0xb7, 0xa0, 0x28, 0x4b, 0x97, 0xc1, 0xd1, 0x64, 0xdc, 0x3f, 0xfd, 0xc5, 0x44,
|
||||
0xb8, 0x06, 0xe5, 0xeb, 0x9b, 0xc1, 0x95, 0x34, 0x34, 0xa9, 0x1a, 0x97, 0x37, 0xe3, 0xfe, 0x85,
|
||||
0x89, 0x1a, 0x9a, 0x89, 0x3a, 0x36, 0xe8, 0x82, 0xfa, 0x5b, 0xfb, 0xea, 0xab, 0x63, 0xc8, 0x50,
|
||||
0xa7, 0xf7, 0xdf, 0x4a, 0x3e, 0xc7, 0xfc, 0xaa, 0xba, 0xf3, 0xe2, 0xe9, 0xa2, 0xfe, 0xff, 0x4e,
|
||||
0x76, 0xdf, 0x7d, 0x78, 0xeb, 0x07, 0x62, 0x96, 0xde, 0xb6, 0xa6, 0x11, 0x3f, 0xf1, 0xa3, 0x39,
|
||||
0x0d, 0xfd, 0x13, 0x75, 0x39, 0xde, 0xa6, 0x77, 0xf9, 0xcb, 0xf4, 0x95, 0xcf, 0xc2, 0x57, 0x7e,
|
||||
0xa4, 0x6e, 0x55, 0xb9, 0x0f, 0x27, 0xcb, 0x6b, 0xf6, 0x27, 0xf9, 0xf8, 0x37, 0x00, 0x00, 0xff,
|
||||
0xff, 0x12, 0xd5, 0x46, 0x00, 0x75, 0x07, 0x00, 0x00,
|
||||
}
|
||||
|
870
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.pb.go.golden
generated
vendored
870
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.pb.go.golden
generated
vendored
@ -1,870 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: my_test/test.proto
|
||||
|
||||
/*
|
||||
Package my_test is a generated protocol buffer package.
|
||||
|
||||
This package holds interesting messages.
|
||||
|
||||
It is generated from these files:
|
||||
my_test/test.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Request
|
||||
Reply
|
||||
OtherBase
|
||||
ReplyExtensions
|
||||
OtherReplyExtensions
|
||||
OldReply
|
||||
Communique
|
||||
*/
|
||||
package my_test
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/golang/protobuf/protoc-gen-go/testdata/multi"
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type HatType int32
|
||||
|
||||
const (
|
||||
// deliberately skipping 0
|
||||
HatType_FEDORA HatType = 1
|
||||
HatType_FEZ HatType = 2
|
||||
)
|
||||
|
||||
var HatType_name = map[int32]string{
|
||||
1: "FEDORA",
|
||||
2: "FEZ",
|
||||
}
|
||||
var HatType_value = map[string]int32{
|
||||
"FEDORA": 1,
|
||||
"FEZ": 2,
|
||||
}
|
||||
|
||||
func (x HatType) Enum() *HatType {
|
||||
p := new(HatType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x HatType) String() string {
|
||||
return proto.EnumName(HatType_name, int32(x))
|
||||
}
|
||||
func (x *HatType) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(HatType_value, data, "HatType")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = HatType(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
// This enum represents days of the week.
|
||||
type Days int32
|
||||
|
||||
const (
|
||||
Days_MONDAY Days = 1
|
||||
Days_TUESDAY Days = 2
|
||||
Days_LUNDI Days = 1
|
||||
)
|
||||
|
||||
var Days_name = map[int32]string{
|
||||
1: "MONDAY",
|
||||
2: "TUESDAY",
|
||||
// Duplicate value: 1: "LUNDI",
|
||||
}
|
||||
var Days_value = map[string]int32{
|
||||
"MONDAY": 1,
|
||||
"TUESDAY": 2,
|
||||
"LUNDI": 1,
|
||||
}
|
||||
|
||||
func (x Days) Enum() *Days {
|
||||
p := new(Days)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x Days) String() string {
|
||||
return proto.EnumName(Days_name, int32(x))
|
||||
}
|
||||
func (x *Days) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Days_value, data, "Days")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Days(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
type Request_Color int32
|
||||
|
||||
const (
|
||||
Request_RED Request_Color = 0
|
||||
Request_GREEN Request_Color = 1
|
||||
Request_BLUE Request_Color = 2
|
||||
)
|
||||
|
||||
var Request_Color_name = map[int32]string{
|
||||
0: "RED",
|
||||
1: "GREEN",
|
||||
2: "BLUE",
|
||||
}
|
||||
var Request_Color_value = map[string]int32{
|
||||
"RED": 0,
|
||||
"GREEN": 1,
|
||||
"BLUE": 2,
|
||||
}
|
||||
|
||||
func (x Request_Color) Enum() *Request_Color {
|
||||
p := new(Request_Color)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x Request_Color) String() string {
|
||||
return proto.EnumName(Request_Color_name, int32(x))
|
||||
}
|
||||
func (x *Request_Color) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Request_Color_value, data, "Request_Color")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Request_Color(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
type Reply_Entry_Game int32
|
||||
|
||||
const (
|
||||
Reply_Entry_FOOTBALL Reply_Entry_Game = 1
|
||||
Reply_Entry_TENNIS Reply_Entry_Game = 2
|
||||
)
|
||||
|
||||
var Reply_Entry_Game_name = map[int32]string{
|
||||
1: "FOOTBALL",
|
||||
2: "TENNIS",
|
||||
}
|
||||
var Reply_Entry_Game_value = map[string]int32{
|
||||
"FOOTBALL": 1,
|
||||
"TENNIS": 2,
|
||||
}
|
||||
|
||||
func (x Reply_Entry_Game) Enum() *Reply_Entry_Game {
|
||||
p := new(Reply_Entry_Game)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
func (x Reply_Entry_Game) String() string {
|
||||
return proto.EnumName(Reply_Entry_Game_name, int32(x))
|
||||
}
|
||||
func (x *Reply_Entry_Game) UnmarshalJSON(data []byte) error {
|
||||
value, err := proto.UnmarshalJSONEnum(Reply_Entry_Game_value, data, "Reply_Entry_Game")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*x = Reply_Entry_Game(value)
|
||||
return nil
|
||||
}
|
||||
|
||||
// This is a message that might be sent somewhere.
|
||||
type Request struct {
|
||||
Key []int64 `protobuf:"varint,1,rep,name=key" json:"key,omitempty"`
|
||||
// optional imp.ImportedMessage imported_message = 2;
|
||||
Hue *Request_Color `protobuf:"varint,3,opt,name=hue,enum=my.test.Request_Color" json:"hue,omitempty"`
|
||||
Hat *HatType `protobuf:"varint,4,opt,name=hat,enum=my.test.HatType,def=1" json:"hat,omitempty"`
|
||||
// optional imp.ImportedMessage.Owner owner = 6;
|
||||
Deadline *float32 `protobuf:"fixed32,7,opt,name=deadline,def=inf" json:"deadline,omitempty"`
|
||||
Somegroup *Request_SomeGroup `protobuf:"group,8,opt,name=SomeGroup,json=somegroup" json:"somegroup,omitempty"`
|
||||
// This is a map field. It will generate map[int32]string.
|
||||
NameMapping map[int32]string `protobuf:"bytes,14,rep,name=name_mapping,json=nameMapping" json:"name_mapping,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
// This is a map field whose value type is a message.
|
||||
MsgMapping map[int64]*Reply `protobuf:"bytes,15,rep,name=msg_mapping,json=msgMapping" json:"msg_mapping,omitempty" protobuf_key:"zigzag64,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
Reset_ *int32 `protobuf:"varint,12,opt,name=reset" json:"reset,omitempty"`
|
||||
// This field should not conflict with any getters.
|
||||
GetKey_ *string `protobuf:"bytes,16,opt,name=get_key,json=getKey" json:"get_key,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Request) Reset() { *m = Request{} }
|
||||
func (m *Request) String() string { return proto.CompactTextString(m) }
|
||||
func (*Request) ProtoMessage() {}
|
||||
|
||||
const Default_Request_Hat HatType = HatType_FEDORA
|
||||
|
||||
var Default_Request_Deadline float32 = float32(math.Inf(1))
|
||||
|
||||
func (m *Request) GetKey() []int64 {
|
||||
if m != nil {
|
||||
return m.Key
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Request) GetHue() Request_Color {
|
||||
if m != nil && m.Hue != nil {
|
||||
return *m.Hue
|
||||
}
|
||||
return Request_RED
|
||||
}
|
||||
|
||||
func (m *Request) GetHat() HatType {
|
||||
if m != nil && m.Hat != nil {
|
||||
return *m.Hat
|
||||
}
|
||||
return Default_Request_Hat
|
||||
}
|
||||
|
||||
func (m *Request) GetDeadline() float32 {
|
||||
if m != nil && m.Deadline != nil {
|
||||
return *m.Deadline
|
||||
}
|
||||
return Default_Request_Deadline
|
||||
}
|
||||
|
||||
func (m *Request) GetSomegroup() *Request_SomeGroup {
|
||||
if m != nil {
|
||||
return m.Somegroup
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Request) GetNameMapping() map[int32]string {
|
||||
if m != nil {
|
||||
return m.NameMapping
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Request) GetMsgMapping() map[int64]*Reply {
|
||||
if m != nil {
|
||||
return m.MsgMapping
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Request) GetReset_() int32 {
|
||||
if m != nil && m.Reset_ != nil {
|
||||
return *m.Reset_
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Request) GetGetKey_() string {
|
||||
if m != nil && m.GetKey_ != nil {
|
||||
return *m.GetKey_
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type Request_SomeGroup struct {
|
||||
GroupField *int32 `protobuf:"varint,9,opt,name=group_field,json=groupField" json:"group_field,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Request_SomeGroup) Reset() { *m = Request_SomeGroup{} }
|
||||
func (m *Request_SomeGroup) String() string { return proto.CompactTextString(m) }
|
||||
func (*Request_SomeGroup) ProtoMessage() {}
|
||||
|
||||
func (m *Request_SomeGroup) GetGroupField() int32 {
|
||||
if m != nil && m.GroupField != nil {
|
||||
return *m.GroupField
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Reply struct {
|
||||
Found []*Reply_Entry `protobuf:"bytes,1,rep,name=found" json:"found,omitempty"`
|
||||
CompactKeys []int32 `protobuf:"varint,2,rep,packed,name=compact_keys,json=compactKeys" json:"compact_keys,omitempty"`
|
||||
proto.XXX_InternalExtensions `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Reply) Reset() { *m = Reply{} }
|
||||
func (m *Reply) String() string { return proto.CompactTextString(m) }
|
||||
func (*Reply) ProtoMessage() {}
|
||||
|
||||
var extRange_Reply = []proto.ExtensionRange{
|
||||
{100, 536870911},
|
||||
}
|
||||
|
||||
func (*Reply) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_Reply
|
||||
}
|
||||
|
||||
func (m *Reply) GetFound() []*Reply_Entry {
|
||||
if m != nil {
|
||||
return m.Found
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Reply) GetCompactKeys() []int32 {
|
||||
if m != nil {
|
||||
return m.CompactKeys
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Reply_Entry struct {
|
||||
KeyThatNeeds_1234Camel_CasIng *int64 `protobuf:"varint,1,req,name=key_that_needs_1234camel_CasIng,json=keyThatNeeds1234camelCasIng" json:"key_that_needs_1234camel_CasIng,omitempty"`
|
||||
Value *int64 `protobuf:"varint,2,opt,name=value,def=7" json:"value,omitempty"`
|
||||
XMyFieldName_2 *int64 `protobuf:"varint,3,opt,name=_my_field_name_2,json=MyFieldName2" json:"_my_field_name_2,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Reply_Entry) Reset() { *m = Reply_Entry{} }
|
||||
func (m *Reply_Entry) String() string { return proto.CompactTextString(m) }
|
||||
func (*Reply_Entry) ProtoMessage() {}
|
||||
|
||||
const Default_Reply_Entry_Value int64 = 7
|
||||
|
||||
func (m *Reply_Entry) GetKeyThatNeeds_1234Camel_CasIng() int64 {
|
||||
if m != nil && m.KeyThatNeeds_1234Camel_CasIng != nil {
|
||||
return *m.KeyThatNeeds_1234Camel_CasIng
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Reply_Entry) GetValue() int64 {
|
||||
if m != nil && m.Value != nil {
|
||||
return *m.Value
|
||||
}
|
||||
return Default_Reply_Entry_Value
|
||||
}
|
||||
|
||||
func (m *Reply_Entry) GetXMyFieldName_2() int64 {
|
||||
if m != nil && m.XMyFieldName_2 != nil {
|
||||
return *m.XMyFieldName_2
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type OtherBase struct {
|
||||
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
proto.XXX_InternalExtensions `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OtherBase) Reset() { *m = OtherBase{} }
|
||||
func (m *OtherBase) String() string { return proto.CompactTextString(m) }
|
||||
func (*OtherBase) ProtoMessage() {}
|
||||
|
||||
var extRange_OtherBase = []proto.ExtensionRange{
|
||||
{100, 536870911},
|
||||
}
|
||||
|
||||
func (*OtherBase) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_OtherBase
|
||||
}
|
||||
|
||||
func (m *OtherBase) GetName() string {
|
||||
if m != nil && m.Name != nil {
|
||||
return *m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ReplyExtensions struct {
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ReplyExtensions) Reset() { *m = ReplyExtensions{} }
|
||||
func (m *ReplyExtensions) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReplyExtensions) ProtoMessage() {}
|
||||
|
||||
var E_ReplyExtensions_Time = &proto.ExtensionDesc{
|
||||
ExtendedType: (*Reply)(nil),
|
||||
ExtensionType: (*float64)(nil),
|
||||
Field: 101,
|
||||
Name: "my.test.ReplyExtensions.time",
|
||||
Tag: "fixed64,101,opt,name=time",
|
||||
Filename: "my_test/test.proto",
|
||||
}
|
||||
|
||||
var E_ReplyExtensions_Carrot = &proto.ExtensionDesc{
|
||||
ExtendedType: (*Reply)(nil),
|
||||
ExtensionType: (*ReplyExtensions)(nil),
|
||||
Field: 105,
|
||||
Name: "my.test.ReplyExtensions.carrot",
|
||||
Tag: "bytes,105,opt,name=carrot",
|
||||
Filename: "my_test/test.proto",
|
||||
}
|
||||
|
||||
var E_ReplyExtensions_Donut = &proto.ExtensionDesc{
|
||||
ExtendedType: (*OtherBase)(nil),
|
||||
ExtensionType: (*ReplyExtensions)(nil),
|
||||
Field: 101,
|
||||
Name: "my.test.ReplyExtensions.donut",
|
||||
Tag: "bytes,101,opt,name=donut",
|
||||
Filename: "my_test/test.proto",
|
||||
}
|
||||
|
||||
type OtherReplyExtensions struct {
|
||||
Key *int32 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OtherReplyExtensions) Reset() { *m = OtherReplyExtensions{} }
|
||||
func (m *OtherReplyExtensions) String() string { return proto.CompactTextString(m) }
|
||||
func (*OtherReplyExtensions) ProtoMessage() {}
|
||||
|
||||
func (m *OtherReplyExtensions) GetKey() int32 {
|
||||
if m != nil && m.Key != nil {
|
||||
return *m.Key
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type OldReply struct {
|
||||
proto.XXX_InternalExtensions `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OldReply) Reset() { *m = OldReply{} }
|
||||
func (m *OldReply) String() string { return proto.CompactTextString(m) }
|
||||
func (*OldReply) ProtoMessage() {}
|
||||
|
||||
func (m *OldReply) Marshal() ([]byte, error) {
|
||||
return proto.MarshalMessageSet(&m.XXX_InternalExtensions)
|
||||
}
|
||||
func (m *OldReply) Unmarshal(buf []byte) error {
|
||||
return proto.UnmarshalMessageSet(buf, &m.XXX_InternalExtensions)
|
||||
}
|
||||
func (m *OldReply) MarshalJSON() ([]byte, error) {
|
||||
return proto.MarshalMessageSetJSON(&m.XXX_InternalExtensions)
|
||||
}
|
||||
func (m *OldReply) UnmarshalJSON(buf []byte) error {
|
||||
return proto.UnmarshalMessageSetJSON(buf, &m.XXX_InternalExtensions)
|
||||
}
|
||||
|
||||
// ensure OldReply satisfies proto.Marshaler and proto.Unmarshaler
|
||||
var _ proto.Marshaler = (*OldReply)(nil)
|
||||
var _ proto.Unmarshaler = (*OldReply)(nil)
|
||||
|
||||
var extRange_OldReply = []proto.ExtensionRange{
|
||||
{100, 2147483646},
|
||||
}
|
||||
|
||||
func (*OldReply) ExtensionRangeArray() []proto.ExtensionRange {
|
||||
return extRange_OldReply
|
||||
}
|
||||
|
||||
type Communique struct {
|
||||
MakeMeCry *bool `protobuf:"varint,1,opt,name=make_me_cry,json=makeMeCry" json:"make_me_cry,omitempty"`
|
||||
// This is a oneof, called "union".
|
||||
//
|
||||
// Types that are valid to be assigned to Union:
|
||||
// *Communique_Number
|
||||
// *Communique_Name
|
||||
// *Communique_Data
|
||||
// *Communique_TempC
|
||||
// *Communique_Height
|
||||
// *Communique_Today
|
||||
// *Communique_Maybe
|
||||
// *Communique_Delta_
|
||||
// *Communique_Msg
|
||||
// *Communique_Somegroup
|
||||
Union isCommunique_Union `protobuf_oneof:"union"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Communique) Reset() { *m = Communique{} }
|
||||
func (m *Communique) String() string { return proto.CompactTextString(m) }
|
||||
func (*Communique) ProtoMessage() {}
|
||||
|
||||
type isCommunique_Union interface {
|
||||
isCommunique_Union()
|
||||
}
|
||||
|
||||
type Communique_Number struct {
|
||||
Number int32 `protobuf:"varint,5,opt,name=number,oneof"`
|
||||
}
|
||||
type Communique_Name struct {
|
||||
Name string `protobuf:"bytes,6,opt,name=name,oneof"`
|
||||
}
|
||||
type Communique_Data struct {
|
||||
Data []byte `protobuf:"bytes,7,opt,name=data,oneof"`
|
||||
}
|
||||
type Communique_TempC struct {
|
||||
TempC float64 `protobuf:"fixed64,8,opt,name=temp_c,json=tempC,oneof"`
|
||||
}
|
||||
type Communique_Height struct {
|
||||
Height float32 `protobuf:"fixed32,9,opt,name=height,oneof"`
|
||||
}
|
||||
type Communique_Today struct {
|
||||
Today Days `protobuf:"varint,10,opt,name=today,enum=my.test.Days,oneof"`
|
||||
}
|
||||
type Communique_Maybe struct {
|
||||
Maybe bool `protobuf:"varint,11,opt,name=maybe,oneof"`
|
||||
}
|
||||
type Communique_Delta_ struct {
|
||||
Delta int32 `protobuf:"zigzag32,12,opt,name=delta,oneof"`
|
||||
}
|
||||
type Communique_Msg struct {
|
||||
Msg *Reply `protobuf:"bytes,13,opt,name=msg,oneof"`
|
||||
}
|
||||
type Communique_Somegroup struct {
|
||||
Somegroup *Communique_SomeGroup `protobuf:"group,14,opt,name=SomeGroup,json=somegroup,oneof"`
|
||||
}
|
||||
|
||||
func (*Communique_Number) isCommunique_Union() {}
|
||||
func (*Communique_Name) isCommunique_Union() {}
|
||||
func (*Communique_Data) isCommunique_Union() {}
|
||||
func (*Communique_TempC) isCommunique_Union() {}
|
||||
func (*Communique_Height) isCommunique_Union() {}
|
||||
func (*Communique_Today) isCommunique_Union() {}
|
||||
func (*Communique_Maybe) isCommunique_Union() {}
|
||||
func (*Communique_Delta_) isCommunique_Union() {}
|
||||
func (*Communique_Msg) isCommunique_Union() {}
|
||||
func (*Communique_Somegroup) isCommunique_Union() {}
|
||||
|
||||
func (m *Communique) GetUnion() isCommunique_Union {
|
||||
if m != nil {
|
||||
return m.Union
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Communique) GetMakeMeCry() bool {
|
||||
if m != nil && m.MakeMeCry != nil {
|
||||
return *m.MakeMeCry
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *Communique) GetNumber() int32 {
|
||||
if x, ok := m.GetUnion().(*Communique_Number); ok {
|
||||
return x.Number
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Communique) GetName() string {
|
||||
if x, ok := m.GetUnion().(*Communique_Name); ok {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Communique) GetData() []byte {
|
||||
if x, ok := m.GetUnion().(*Communique_Data); ok {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Communique) GetTempC() float64 {
|
||||
if x, ok := m.GetUnion().(*Communique_TempC); ok {
|
||||
return x.TempC
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Communique) GetHeight() float32 {
|
||||
if x, ok := m.GetUnion().(*Communique_Height); ok {
|
||||
return x.Height
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Communique) GetToday() Days {
|
||||
if x, ok := m.GetUnion().(*Communique_Today); ok {
|
||||
return x.Today
|
||||
}
|
||||
return Days_MONDAY
|
||||
}
|
||||
|
||||
func (m *Communique) GetMaybe() bool {
|
||||
if x, ok := m.GetUnion().(*Communique_Maybe); ok {
|
||||
return x.Maybe
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *Communique) GetDelta() int32 {
|
||||
if x, ok := m.GetUnion().(*Communique_Delta_); ok {
|
||||
return x.Delta
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Communique) GetMsg() *Reply {
|
||||
if x, ok := m.GetUnion().(*Communique_Msg); ok {
|
||||
return x.Msg
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Communique) GetSomegroup() *Communique_SomeGroup {
|
||||
if x, ok := m.GetUnion().(*Communique_Somegroup); ok {
|
||||
return x.Somegroup
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Communique) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Communique_OneofMarshaler, _Communique_OneofUnmarshaler, _Communique_OneofSizer, []interface{}{
|
||||
(*Communique_Number)(nil),
|
||||
(*Communique_Name)(nil),
|
||||
(*Communique_Data)(nil),
|
||||
(*Communique_TempC)(nil),
|
||||
(*Communique_Height)(nil),
|
||||
(*Communique_Today)(nil),
|
||||
(*Communique_Maybe)(nil),
|
||||
(*Communique_Delta_)(nil),
|
||||
(*Communique_Msg)(nil),
|
||||
(*Communique_Somegroup)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Communique_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Communique)
|
||||
// union
|
||||
switch x := m.Union.(type) {
|
||||
case *Communique_Number:
|
||||
b.EncodeVarint(5<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(uint64(x.Number))
|
||||
case *Communique_Name:
|
||||
b.EncodeVarint(6<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Name)
|
||||
case *Communique_Data:
|
||||
b.EncodeVarint(7<<3 | proto.WireBytes)
|
||||
b.EncodeRawBytes(x.Data)
|
||||
case *Communique_TempC:
|
||||
b.EncodeVarint(8<<3 | proto.WireFixed64)
|
||||
b.EncodeFixed64(math.Float64bits(x.TempC))
|
||||
case *Communique_Height:
|
||||
b.EncodeVarint(9<<3 | proto.WireFixed32)
|
||||
b.EncodeFixed32(uint64(math.Float32bits(x.Height)))
|
||||
case *Communique_Today:
|
||||
b.EncodeVarint(10<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(uint64(x.Today))
|
||||
case *Communique_Maybe:
|
||||
t := uint64(0)
|
||||
if x.Maybe {
|
||||
t = 1
|
||||
}
|
||||
b.EncodeVarint(11<<3 | proto.WireVarint)
|
||||
b.EncodeVarint(t)
|
||||
case *Communique_Delta_:
|
||||
b.EncodeVarint(12<<3 | proto.WireVarint)
|
||||
b.EncodeZigzag32(uint64(x.Delta))
|
||||
case *Communique_Msg:
|
||||
b.EncodeVarint(13<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.Msg); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Communique_Somegroup:
|
||||
b.EncodeVarint(14<<3 | proto.WireStartGroup)
|
||||
if err := b.Marshal(x.Somegroup); err != nil {
|
||||
return err
|
||||
}
|
||||
b.EncodeVarint(14<<3 | proto.WireEndGroup)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Communique.Union has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Communique_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Communique)
|
||||
switch tag {
|
||||
case 5: // union.number
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.Union = &Communique_Number{int32(x)}
|
||||
return true, err
|
||||
case 6: // union.name
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Union = &Communique_Name{x}
|
||||
return true, err
|
||||
case 7: // union.data
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeRawBytes(true)
|
||||
m.Union = &Communique_Data{x}
|
||||
return true, err
|
||||
case 8: // union.temp_c
|
||||
if wire != proto.WireFixed64 {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeFixed64()
|
||||
m.Union = &Communique_TempC{math.Float64frombits(x)}
|
||||
return true, err
|
||||
case 9: // union.height
|
||||
if wire != proto.WireFixed32 {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeFixed32()
|
||||
m.Union = &Communique_Height{math.Float32frombits(uint32(x))}
|
||||
return true, err
|
||||
case 10: // union.today
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.Union = &Communique_Today{Days(x)}
|
||||
return true, err
|
||||
case 11: // union.maybe
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeVarint()
|
||||
m.Union = &Communique_Maybe{x != 0}
|
||||
return true, err
|
||||
case 12: // union.delta
|
||||
if wire != proto.WireVarint {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeZigzag32()
|
||||
m.Union = &Communique_Delta_{int32(x)}
|
||||
return true, err
|
||||
case 13: // union.msg
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Reply)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Union = &Communique_Msg{msg}
|
||||
return true, err
|
||||
case 14: // union.somegroup
|
||||
if wire != proto.WireStartGroup {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(Communique_SomeGroup)
|
||||
err := b.DecodeGroup(msg)
|
||||
m.Union = &Communique_Somegroup{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Communique_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Communique)
|
||||
// union
|
||||
switch x := m.Union.(type) {
|
||||
case *Communique_Number:
|
||||
n += proto.SizeVarint(5<<3 | proto.WireVarint)
|
||||
n += proto.SizeVarint(uint64(x.Number))
|
||||
case *Communique_Name:
|
||||
n += proto.SizeVarint(6<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.Name)))
|
||||
n += len(x.Name)
|
||||
case *Communique_Data:
|
||||
n += proto.SizeVarint(7<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.Data)))
|
||||
n += len(x.Data)
|
||||
case *Communique_TempC:
|
||||
n += proto.SizeVarint(8<<3 | proto.WireFixed64)
|
||||
n += 8
|
||||
case *Communique_Height:
|
||||
n += proto.SizeVarint(9<<3 | proto.WireFixed32)
|
||||
n += 4
|
||||
case *Communique_Today:
|
||||
n += proto.SizeVarint(10<<3 | proto.WireVarint)
|
||||
n += proto.SizeVarint(uint64(x.Today))
|
||||
case *Communique_Maybe:
|
||||
n += proto.SizeVarint(11<<3 | proto.WireVarint)
|
||||
n += 1
|
||||
case *Communique_Delta_:
|
||||
n += proto.SizeVarint(12<<3 | proto.WireVarint)
|
||||
n += proto.SizeVarint(uint64((uint32(x.Delta) << 1) ^ uint32((int32(x.Delta) >> 31))))
|
||||
case *Communique_Msg:
|
||||
s := proto.Size(x.Msg)
|
||||
n += proto.SizeVarint(13<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Communique_Somegroup:
|
||||
n += proto.SizeVarint(14<<3 | proto.WireStartGroup)
|
||||
n += proto.Size(x.Somegroup)
|
||||
n += proto.SizeVarint(14<<3 | proto.WireEndGroup)
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
type Communique_SomeGroup struct {
|
||||
Member *string `protobuf:"bytes,15,opt,name=member" json:"member,omitempty"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Communique_SomeGroup) Reset() { *m = Communique_SomeGroup{} }
|
||||
func (m *Communique_SomeGroup) String() string { return proto.CompactTextString(m) }
|
||||
func (*Communique_SomeGroup) ProtoMessage() {}
|
||||
|
||||
func (m *Communique_SomeGroup) GetMember() string {
|
||||
if m != nil && m.Member != nil {
|
||||
return *m.Member
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type Communique_Delta struct {
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Communique_Delta) Reset() { *m = Communique_Delta{} }
|
||||
func (m *Communique_Delta) String() string { return proto.CompactTextString(m) }
|
||||
func (*Communique_Delta) ProtoMessage() {}
|
||||
|
||||
var E_Tag = &proto.ExtensionDesc{
|
||||
ExtendedType: (*Reply)(nil),
|
||||
ExtensionType: (*string)(nil),
|
||||
Field: 103,
|
||||
Name: "my.test.tag",
|
||||
Tag: "bytes,103,opt,name=tag",
|
||||
Filename: "my_test/test.proto",
|
||||
}
|
||||
|
||||
var E_Donut = &proto.ExtensionDesc{
|
||||
ExtendedType: (*Reply)(nil),
|
||||
ExtensionType: (*OtherReplyExtensions)(nil),
|
||||
Field: 106,
|
||||
Name: "my.test.donut",
|
||||
Tag: "bytes,106,opt,name=donut",
|
||||
Filename: "my_test/test.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Request)(nil), "my.test.Request")
|
||||
proto.RegisterType((*Request_SomeGroup)(nil), "my.test.Request.SomeGroup")
|
||||
proto.RegisterType((*Reply)(nil), "my.test.Reply")
|
||||
proto.RegisterType((*Reply_Entry)(nil), "my.test.Reply.Entry")
|
||||
proto.RegisterType((*OtherBase)(nil), "my.test.OtherBase")
|
||||
proto.RegisterType((*ReplyExtensions)(nil), "my.test.ReplyExtensions")
|
||||
proto.RegisterType((*OtherReplyExtensions)(nil), "my.test.OtherReplyExtensions")
|
||||
proto.RegisterType((*OldReply)(nil), "my.test.OldReply")
|
||||
proto.RegisterType((*Communique)(nil), "my.test.Communique")
|
||||
proto.RegisterType((*Communique_SomeGroup)(nil), "my.test.Communique.SomeGroup")
|
||||
proto.RegisterType((*Communique_Delta)(nil), "my.test.Communique.Delta")
|
||||
proto.RegisterEnum("my.test.HatType", HatType_name, HatType_value)
|
||||
proto.RegisterEnum("my.test.Days", Days_name, Days_value)
|
||||
proto.RegisterEnum("my.test.Request_Color", Request_Color_name, Request_Color_value)
|
||||
proto.RegisterEnum("my.test.Reply_Entry_Game", Reply_Entry_Game_name, Reply_Entry_Game_value)
|
||||
proto.RegisterExtension(E_ReplyExtensions_Time)
|
||||
proto.RegisterExtension(E_ReplyExtensions_Carrot)
|
||||
proto.RegisterExtension(E_ReplyExtensions_Donut)
|
||||
proto.RegisterExtension(E_Tag)
|
||||
proto.RegisterExtension(E_Donut)
|
||||
}
|
4
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.proto
generated
vendored
4
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/my_test/test.proto
generated
vendored
@ -34,6 +34,8 @@ syntax = "proto2";
|
||||
// This package holds interesting messages.
|
||||
package my.test; // dotted package name
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/my_test;test";
|
||||
|
||||
//import "imp.proto";
|
||||
import "multi/multi1.proto"; // unused import
|
||||
|
||||
@ -145,7 +147,7 @@ message Communique {
|
||||
Days today = 10;
|
||||
bool maybe = 11;
|
||||
sint32 delta = 12; // name will conflict with Delta below
|
||||
Reply msg = 13;
|
||||
Reply msg = 16; // requires two bytes to encode field tag
|
||||
group SomeGroup = 14 {
|
||||
optional string member = 15;
|
||||
}
|
||||
|
196
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/proto3/proto3.pb.go
generated
vendored
Normal file
196
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/proto3/proto3.pb.go
generated
vendored
Normal file
@ -0,0 +1,196 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: proto3/proto3.proto
|
||||
|
||||
package proto3 // import "github.com/golang/protobuf/protoc-gen-go/testdata/proto3"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
type Request_Flavour int32
|
||||
|
||||
const (
|
||||
Request_SWEET Request_Flavour = 0
|
||||
Request_SOUR Request_Flavour = 1
|
||||
Request_UMAMI Request_Flavour = 2
|
||||
Request_GOPHERLICIOUS Request_Flavour = 3
|
||||
)
|
||||
|
||||
var Request_Flavour_name = map[int32]string{
|
||||
0: "SWEET",
|
||||
1: "SOUR",
|
||||
2: "UMAMI",
|
||||
3: "GOPHERLICIOUS",
|
||||
}
|
||||
var Request_Flavour_value = map[string]int32{
|
||||
"SWEET": 0,
|
||||
"SOUR": 1,
|
||||
"UMAMI": 2,
|
||||
"GOPHERLICIOUS": 3,
|
||||
}
|
||||
|
||||
func (x Request_Flavour) String() string {
|
||||
return proto.EnumName(Request_Flavour_name, int32(x))
|
||||
}
|
||||
func (Request_Flavour) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_proto3_a752e09251f17e01, []int{0, 0}
|
||||
}
|
||||
|
||||
type Request struct {
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
Key []int64 `protobuf:"varint,2,rep,packed,name=key" json:"key,omitempty"`
|
||||
Taste Request_Flavour `protobuf:"varint,3,opt,name=taste,enum=proto3.Request_Flavour" json:"taste,omitempty"`
|
||||
Book *Book `protobuf:"bytes,4,opt,name=book" json:"book,omitempty"`
|
||||
Unpacked []int64 `protobuf:"varint,5,rep,name=unpacked" json:"unpacked,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Request) Reset() { *m = Request{} }
|
||||
func (m *Request) String() string { return proto.CompactTextString(m) }
|
||||
func (*Request) ProtoMessage() {}
|
||||
func (*Request) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_proto3_a752e09251f17e01, []int{0}
|
||||
}
|
||||
func (m *Request) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Request.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Request) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Request.Merge(dst, src)
|
||||
}
|
||||
func (m *Request) XXX_Size() int {
|
||||
return xxx_messageInfo_Request.Size(m)
|
||||
}
|
||||
func (m *Request) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Request.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Request proto.InternalMessageInfo
|
||||
|
||||
func (m *Request) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Request) GetKey() []int64 {
|
||||
if m != nil {
|
||||
return m.Key
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Request) GetTaste() Request_Flavour {
|
||||
if m != nil {
|
||||
return m.Taste
|
||||
}
|
||||
return Request_SWEET
|
||||
}
|
||||
|
||||
func (m *Request) GetBook() *Book {
|
||||
if m != nil {
|
||||
return m.Book
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Request) GetUnpacked() []int64 {
|
||||
if m != nil {
|
||||
return m.Unpacked
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Book struct {
|
||||
Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
|
||||
RawData []byte `protobuf:"bytes,2,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Book) Reset() { *m = Book{} }
|
||||
func (m *Book) String() string { return proto.CompactTextString(m) }
|
||||
func (*Book) ProtoMessage() {}
|
||||
func (*Book) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_proto3_a752e09251f17e01, []int{1}
|
||||
}
|
||||
func (m *Book) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Book.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Book) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Book.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Book) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Book.Merge(dst, src)
|
||||
}
|
||||
func (m *Book) XXX_Size() int {
|
||||
return xxx_messageInfo_Book.Size(m)
|
||||
}
|
||||
func (m *Book) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Book.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Book proto.InternalMessageInfo
|
||||
|
||||
func (m *Book) GetTitle() string {
|
||||
if m != nil {
|
||||
return m.Title
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Book) GetRawData() []byte {
|
||||
if m != nil {
|
||||
return m.RawData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Request)(nil), "proto3.Request")
|
||||
proto.RegisterType((*Book)(nil), "proto3.Book")
|
||||
proto.RegisterEnum("proto3.Request_Flavour", Request_Flavour_name, Request_Flavour_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("proto3/proto3.proto", fileDescriptor_proto3_a752e09251f17e01) }
|
||||
|
||||
var fileDescriptor_proto3_a752e09251f17e01 = []byte{
|
||||
// 306 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x90, 0xcf, 0x4e, 0xf2, 0x40,
|
||||
0x14, 0xc5, 0x99, 0xfe, 0xf9, 0x80, 0xfb, 0xa1, 0x19, 0xaf, 0x26, 0x8e, 0x1b, 0x33, 0x61, 0xd5,
|
||||
0x0d, 0x25, 0xc1, 0x85, 0xc6, 0xb8, 0x11, 0x45, 0x25, 0x91, 0x60, 0x06, 0x89, 0x89, 0x1b, 0x33,
|
||||
0x85, 0xb1, 0x92, 0x42, 0x07, 0xcb, 0x54, 0xe2, 0xcb, 0xfa, 0x2c, 0xa6, 0x9d, 0xe2, 0xea, 0x9e,
|
||||
0x7b, 0xe7, 0xe4, 0x77, 0x32, 0x07, 0x0e, 0xd7, 0x99, 0x36, 0xfa, 0xac, 0x6b, 0x47, 0x58, 0x0e,
|
||||
0xfc, 0x67, 0xb7, 0xf6, 0x0f, 0x81, 0xba, 0x50, 0x9f, 0xb9, 0xda, 0x18, 0x44, 0xf0, 0x52, 0xb9,
|
||||
0x52, 0x8c, 0x70, 0x12, 0x34, 0x45, 0xa9, 0x91, 0x82, 0x9b, 0xa8, 0x6f, 0xe6, 0x70, 0x37, 0x70,
|
||||
0x45, 0x21, 0xb1, 0x03, 0xbe, 0x91, 0x1b, 0xa3, 0x98, 0xcb, 0x49, 0xb0, 0xdf, 0x3b, 0x0e, 0x2b,
|
||||
0x6e, 0x45, 0x09, 0xef, 0x96, 0xf2, 0x4b, 0xe7, 0x99, 0xb0, 0x2e, 0xe4, 0xe0, 0x45, 0x5a, 0x27,
|
||||
0xcc, 0xe3, 0x24, 0xf8, 0xdf, 0x6b, 0xed, 0xdc, 0x7d, 0xad, 0x13, 0x51, 0xbe, 0xe0, 0x29, 0x34,
|
||||
0xf2, 0x74, 0x2d, 0x67, 0x89, 0x9a, 0x33, 0xbf, 0xc8, 0xe9, 0x3b, 0xb4, 0x26, 0xfe, 0x6e, 0xed,
|
||||
0x2b, 0xa8, 0x57, 0x4c, 0x6c, 0x82, 0x3f, 0x79, 0x19, 0x0c, 0x9e, 0x69, 0x0d, 0x1b, 0xe0, 0x4d,
|
||||
0xc6, 0x53, 0x41, 0x49, 0x71, 0x9c, 0x8e, 0xae, 0x47, 0x43, 0xea, 0xe0, 0x01, 0xec, 0xdd, 0x8f,
|
||||
0x9f, 0x1e, 0x06, 0xe2, 0x71, 0x78, 0x33, 0x1c, 0x4f, 0x27, 0xd4, 0x6d, 0x9f, 0x83, 0x57, 0x64,
|
||||
0xe1, 0x11, 0xf8, 0x66, 0x61, 0x96, 0xbb, 0xdf, 0xd9, 0x05, 0x4f, 0xa0, 0x91, 0xc9, 0xed, 0xdb,
|
||||
0x5c, 0x1a, 0xc9, 0x1c, 0x4e, 0x82, 0x96, 0xa8, 0x67, 0x72, 0x7b, 0x2b, 0x8d, 0xec, 0x5f, 0xbe,
|
||||
0x5e, 0xc4, 0x0b, 0xf3, 0x91, 0x47, 0xe1, 0x4c, 0xaf, 0xba, 0xb1, 0x5e, 0xca, 0x34, 0xb6, 0x1d,
|
||||
0x46, 0xf9, 0xbb, 0x15, 0xb3, 0x4e, 0xac, 0xd2, 0x4e, 0xac, 0xbb, 0x46, 0x6d, 0x4c, 0xc1, 0xa8,
|
||||
0x3a, 0x8e, 0xaa, 0x76, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xec, 0x71, 0xee, 0xdb, 0x7b, 0x01,
|
||||
0x00, 0x00,
|
||||
}
|
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/proto3.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/proto3/proto3.proto
generated
vendored
2
vendor/github.com/golang/protobuf/protoc-gen-go/testdata/proto3.proto → vendor/github.com/golang/protobuf/protoc-gen-go/testdata/proto3/proto3.proto
generated
vendored
@ -33,6 +33,8 @@ syntax = "proto3";
|
||||
|
||||
package proto3;
|
||||
|
||||
option go_package = "github.com/golang/protobuf/protoc-gen-go/testdata/proto3";
|
||||
|
||||
message Request {
|
||||
enum Flavour {
|
||||
SWEET = 0;
|
Reference in New Issue
Block a user