wkt

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package wkt contains the list of the Google Well-Known Types as well as the Golang package mappings for the generated code for github.com/golang/protobuf and github.com/gogo/protobuf.

https://developers.google.com/protocol-buffers/docs/reference/google.protobuf

Index

Constants

This section is empty.

Variables

View Source
var (
	// Filenames contains the Google Well-Known Types filenames.
	Filenames = map[string]struct{}{
		"google/protobuf/any.proto":             {},
		"google/protobuf/api.proto":             {},
		"google/protobuf/compiler/plugin.proto": {},
		"google/protobuf/descriptor.proto":      {},
		"google/protobuf/duration.proto":        {},
		"google/protobuf/empty.proto":           {},
		"google/protobuf/field_mask.proto":      {},
		"google/protobuf/source_context.proto":  {},
		"google/protobuf/struct.proto":          {},
		"google/protobuf/timestamp.proto":       {},
		"google/protobuf/type.proto":            {},
		"google/protobuf/wrappers.proto":        {},
	}

	// FilenameToGoModifierMap is a map from filename to package for github.com/golang/protobuf.
	FilenameToGoModifierMap = map[string]string{
		"google/protobuf/any.proto":             "github.com/golang/protobuf/ptypes/any",
		"google/protobuf/api.proto":             "google.golang.org/genproto/protobuf/api",
		"google/protobuf/compiler/plugin.proto": "github.com/golang/protobuf/protoc-gen-go/plugin",
		"google/protobuf/descriptor.proto":      "github.com/golang/protobuf/protoc-gen-go/descriptor",
		"google/protobuf/duration.proto":        "github.com/golang/protobuf/ptypes/duration",
		"google/protobuf/empty.proto":           "github.com/golang/protobuf/ptypes/empty",
		"google/protobuf/field_mask.proto":      "google.golang.org/genproto/protobuf/field_mask",
		"google/protobuf/source_context.proto":  "google.golang.org/genproto/protobuf/source_context",
		"google/protobuf/struct.proto":          "github.com/golang/protobuf/ptypes/struct",
		"google/protobuf/timestamp.proto":       "github.com/golang/protobuf/ptypes/timestamp",
		"google/protobuf/type.proto":            "google.golang.org/genproto/protobuf/ptype",
		"google/protobuf/wrappers.proto":        "github.com/golang/protobuf/ptypes/wrappers",
	}

	// FilenameToGogoModifierMap is a map from filename to package for github.com/gogo/protobuf.
	FilenameToGogoModifierMap = map[string]string{
		"google/protobuf/any.proto":             "github.com/gogo/protobuf/types",
		"google/protobuf/api.proto":             "google.golang.org/genproto/protobuf/api",
		"google/protobuf/compiler/plugin.proto": "github.com/gogo/protobuf/protoc-gen-gogo/plugin",
		"google/protobuf/descriptor.proto":      "github.com/gogo/protobuf/protoc-gen-gogo/descriptor",
		"google/protobuf/duration.proto":        "github.com/gogo/protobuf/types",
		"google/protobuf/empty.proto":           "github.com/gogo/protobuf/types",
		"google/protobuf/field_mask.proto":      "github.com/gogo/protobuf/types",
		"google/protobuf/source_context.proto":  "google.golang.org/genproto/protobuf/source_context",
		"google/protobuf/struct.proto":          "github.com/gogo/protobuf/types",
		"google/protobuf/timestamp.proto":       "github.com/gogo/protobuf/types",
		"google/protobuf/type.proto":            "google.golang.org/genproto/protobuf/ptype",
		"google/protobuf/wrappers.proto":        "github.com/gogo/protobuf/types",
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL