meta

package
v0.1.4-0...-0a7b149 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package meta is a generated protocol buffer package.

Metadata for protoc-gen-template

This provides a set of options for annotating protobuf source code which are parse by `protoc-gen-template` and exposed in the data available to templates.

It is generated from these files:

meta/extensions.proto

It has these top-level messages:

FileMetadata
MessageMetadata
FieldMetadata
EnumMetadata
EnumValueMetadata
ServiceMetadata
MethodMetadata

Index

Constants

This section is empty.

Variables

View Source
var E_EnumMeta = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.EnumOptions)(nil),
	ExtensionType: (*EnumMetadata)(nil),
	Field:         50001,
	Name:          "meta.enum_meta",
	Tag:           "bytes,50001,opt,name=enum_meta,json=enumMeta",
	Filename:      "meta/extensions.proto",
}
View Source
var E_EnumValueMeta = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.EnumValueOptions)(nil),
	ExtensionType: (*EnumValueMetadata)(nil),
	Field:         50001,
	Name:          "meta.enum_value_meta",
	Tag:           "bytes,50001,opt,name=enum_value_meta,json=enumValueMeta",
	Filename:      "meta/extensions.proto",
}
View Source
var E_FieldMeta = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.FieldOptions)(nil),
	ExtensionType: (*FieldMetadata)(nil),
	Field:         50001,
	Name:          "meta.field_meta",
	Tag:           "bytes,50001,opt,name=field_meta,json=fieldMeta",
	Filename:      "meta/extensions.proto",
}
View Source
var E_FileMeta = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.FileOptions)(nil),
	ExtensionType: (*FileMetadata)(nil),
	Field:         50001,
	Name:          "meta.file_meta",
	Tag:           "bytes,50001,opt,name=file_meta,json=fileMeta",
	Filename:      "meta/extensions.proto",
}
View Source
var E_MessageMeta = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.MessageOptions)(nil),
	ExtensionType: (*MessageMetadata)(nil),
	Field:         50001,
	Name:          "meta.message_meta",
	Tag:           "bytes,50001,opt,name=message_meta,json=messageMeta",
	Filename:      "meta/extensions.proto",
}
View Source
var E_MethodMeta = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.MethodOptions)(nil),
	ExtensionType: (*MethodMetadata)(nil),
	Field:         50001,
	Name:          "meta.method_meta",
	Tag:           "bytes,50001,opt,name=method_meta,json=methodMeta",
	Filename:      "meta/extensions.proto",
}
View Source
var E_ServiceMeta = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.ServiceOptions)(nil),
	ExtensionType: (*ServiceMetadata)(nil),
	Field:         50001,
	Name:          "meta.service_meta",
	Tag:           "bytes,50001,opt,name=service_meta,json=serviceMeta",
	Filename:      "meta/extensions.proto",
}
View Source
var Visibility_name = map[int32]string{
	0: "PUBLIC",
	1: "PRIVATE",
}
View Source
var Visibility_value = map[string]int32{
	"PUBLIC":  0,
	"PRIVATE": 1,
}

Functions

This section is empty.

Types

type EnumMetadata

type EnumMetadata struct {
	Visibility Visibility `protobuf:"varint,1,opt,name=visibility,enum=meta.Visibility" json:"visibility,omitempty"`
	// Arbitrary string tags
	Tags []string `protobuf:"bytes,2048,rep,name=tags" json:"tags,omitempty"`
	// Arbitrary key/value metadata
	Extra map[string]string `` /* 133-byte string literal not displayed */
}

func (*EnumMetadata) Descriptor

func (*EnumMetadata) Descriptor() ([]byte, []int)

func (*EnumMetadata) GetExtra

func (m *EnumMetadata) GetExtra() map[string]string

func (*EnumMetadata) GetTags

func (m *EnumMetadata) GetTags() []string

func (*EnumMetadata) GetVisibility

func (m *EnumMetadata) GetVisibility() Visibility

func (*EnumMetadata) ProtoMessage

func (*EnumMetadata) ProtoMessage()

func (*EnumMetadata) Reset

func (m *EnumMetadata) Reset()

func (*EnumMetadata) String

func (m *EnumMetadata) String() string

type EnumValueMetadata

type EnumValueMetadata struct {
	Visibility Visibility `protobuf:"varint,1,opt,name=visibility,enum=meta.Visibility" json:"visibility,omitempty"`
	// Arbitrary string tags
	Tags []string `protobuf:"bytes,2048,rep,name=tags" json:"tags,omitempty"`
	// Arbitrary key/value metadata
	Extra map[string]string `` /* 133-byte string literal not displayed */
}

func (*EnumValueMetadata) Descriptor

func (*EnumValueMetadata) Descriptor() ([]byte, []int)

func (*EnumValueMetadata) GetExtra

func (m *EnumValueMetadata) GetExtra() map[string]string

func (*EnumValueMetadata) GetTags

func (m *EnumValueMetadata) GetTags() []string

func (*EnumValueMetadata) GetVisibility

func (m *EnumValueMetadata) GetVisibility() Visibility

func (*EnumValueMetadata) ProtoMessage

func (*EnumValueMetadata) ProtoMessage()

func (*EnumValueMetadata) Reset

func (m *EnumValueMetadata) Reset()

func (*EnumValueMetadata) String

func (m *EnumValueMetadata) String() string

type FieldMetadata

type FieldMetadata struct {
	Visibility Visibility `protobuf:"varint,1,opt,name=visibility,enum=meta.Visibility" json:"visibility,omitempty"`
	// A string identifying a random-value generator for "example" code
	Generator       string  `protobuf:"bytes,2,opt,name=generator" json:"generator,omitempty"`
	ExampleDouble   float64 `protobuf:"fixed64,3,opt,name=example_double,json=exampleDouble" json:"example_double,omitempty"`
	ExampleFloat    float32 `protobuf:"fixed32,4,opt,name=example_float,json=exampleFloat" json:"example_float,omitempty"`
	ExampleInt32    int32   `protobuf:"varint,5,opt,name=example_int32,json=exampleInt32" json:"example_int32,omitempty"`
	ExampleInt64    int64   `protobuf:"varint,6,opt,name=example_int64,json=exampleInt64" json:"example_int64,omitempty"`
	ExampleUint32   uint32  `protobuf:"varint,7,opt,name=example_uint32,json=exampleUint32" json:"example_uint32,omitempty"`
	ExampleUint64   uint64  `protobuf:"varint,8,opt,name=example_uint64,json=exampleUint64" json:"example_uint64,omitempty"`
	ExampleSint32   int32   `protobuf:"zigzag32,9,opt,name=example_sint32,json=exampleSint32" json:"example_sint32,omitempty"`
	ExampleSint64   int64   `protobuf:"zigzag64,10,opt,name=example_sint64,json=exampleSint64" json:"example_sint64,omitempty"`
	ExampleFixed32  uint32  `protobuf:"fixed32,11,opt,name=example_fixed32,json=exampleFixed32" json:"example_fixed32,omitempty"`
	ExampleFixed64  uint64  `protobuf:"fixed64,12,opt,name=example_fixed64,json=exampleFixed64" json:"example_fixed64,omitempty"`
	ExampleSfixed32 int32   `protobuf:"fixed32,13,opt,name=example_sfixed32,json=exampleSfixed32" json:"example_sfixed32,omitempty"`
	ExampleSfixed64 int64   `protobuf:"fixed64,14,opt,name=example_sfixed64,json=exampleSfixed64" json:"example_sfixed64,omitempty"`
	ExampleBool     bool    `protobuf:"varint,15,opt,name=example_bool,json=exampleBool" json:"example_bool,omitempty"`
	ExampleString   string  `protobuf:"bytes,16,opt,name=example_string,json=exampleString" json:"example_string,omitempty"`
	ExampleBytes    []byte  `protobuf:"bytes,17,opt,name=example_bytes,json=exampleBytes,proto3" json:"example_bytes,omitempty"`
	// Arbitrary string tags
	Tags []string `protobuf:"bytes,2048,rep,name=tags" json:"tags,omitempty"`
	// Arbitrary key/value metadata
	Extra map[string]string `` /* 133-byte string literal not displayed */
}

func (*FieldMetadata) Descriptor

func (*FieldMetadata) Descriptor() ([]byte, []int)

func (*FieldMetadata) GetExampleBool

func (m *FieldMetadata) GetExampleBool() bool

func (*FieldMetadata) GetExampleBytes

func (m *FieldMetadata) GetExampleBytes() []byte

func (*FieldMetadata) GetExampleDouble

func (m *FieldMetadata) GetExampleDouble() float64

func (*FieldMetadata) GetExampleFixed32

func (m *FieldMetadata) GetExampleFixed32() uint32

func (*FieldMetadata) GetExampleFixed64

func (m *FieldMetadata) GetExampleFixed64() uint64

func (*FieldMetadata) GetExampleFloat

func (m *FieldMetadata) GetExampleFloat() float32

func (*FieldMetadata) GetExampleInt32

func (m *FieldMetadata) GetExampleInt32() int32

func (*FieldMetadata) GetExampleInt64

func (m *FieldMetadata) GetExampleInt64() int64

func (*FieldMetadata) GetExampleSfixed32

func (m *FieldMetadata) GetExampleSfixed32() int32

func (*FieldMetadata) GetExampleSfixed64

func (m *FieldMetadata) GetExampleSfixed64() int64

func (*FieldMetadata) GetExampleSint32

func (m *FieldMetadata) GetExampleSint32() int32

func (*FieldMetadata) GetExampleSint64

func (m *FieldMetadata) GetExampleSint64() int64

func (*FieldMetadata) GetExampleString

func (m *FieldMetadata) GetExampleString() string

func (*FieldMetadata) GetExampleUint32

func (m *FieldMetadata) GetExampleUint32() uint32

func (*FieldMetadata) GetExampleUint64

func (m *FieldMetadata) GetExampleUint64() uint64

func (*FieldMetadata) GetExtra

func (m *FieldMetadata) GetExtra() map[string]string

func (*FieldMetadata) GetGenerator

func (m *FieldMetadata) GetGenerator() string

func (*FieldMetadata) GetTags

func (m *FieldMetadata) GetTags() []string

func (*FieldMetadata) GetVisibility

func (m *FieldMetadata) GetVisibility() Visibility

func (*FieldMetadata) ProtoMessage

func (*FieldMetadata) ProtoMessage()

func (*FieldMetadata) Reset

func (m *FieldMetadata) Reset()

func (*FieldMetadata) String

func (m *FieldMetadata) String() string

type FileMetadata

type FileMetadata struct {
	Visibility Visibility `protobuf:"varint,1,opt,name=visibility,enum=meta.Visibility" json:"visibility,omitempty"`
	// Arbitrary string tags
	Tags []string `protobuf:"bytes,2048,rep,name=tags" json:"tags,omitempty"`
	// Arbitrary key/value metadata
	Extra map[string]string `` /* 133-byte string literal not displayed */
}

func (*FileMetadata) Descriptor

func (*FileMetadata) Descriptor() ([]byte, []int)

func (*FileMetadata) GetExtra

func (m *FileMetadata) GetExtra() map[string]string

func (*FileMetadata) GetTags

func (m *FileMetadata) GetTags() []string

func (*FileMetadata) GetVisibility

func (m *FileMetadata) GetVisibility() Visibility

func (*FileMetadata) ProtoMessage

func (*FileMetadata) ProtoMessage()

func (*FileMetadata) Reset

func (m *FileMetadata) Reset()

func (*FileMetadata) String

func (m *FileMetadata) String() string

type MessageMetadata

type MessageMetadata struct {
	Visibility Visibility `protobuf:"varint,1,opt,name=visibility,enum=meta.Visibility" json:"visibility,omitempty"`
	// Arbitrary string tags
	Tags []string `protobuf:"bytes,2048,rep,name=tags" json:"tags,omitempty"`
	// Arbitrary key/value metadata
	Extra map[string]string `` /* 133-byte string literal not displayed */
}

func (*MessageMetadata) Descriptor

func (*MessageMetadata) Descriptor() ([]byte, []int)

func (*MessageMetadata) GetExtra

func (m *MessageMetadata) GetExtra() map[string]string

func (*MessageMetadata) GetTags

func (m *MessageMetadata) GetTags() []string

func (*MessageMetadata) GetVisibility

func (m *MessageMetadata) GetVisibility() Visibility

func (*MessageMetadata) ProtoMessage

func (*MessageMetadata) ProtoMessage()

func (*MessageMetadata) Reset

func (m *MessageMetadata) Reset()

func (*MessageMetadata) String

func (m *MessageMetadata) String() string

type MethodMetadata

type MethodMetadata struct {
	Visibility Visibility `protobuf:"varint,1,opt,name=visibility,enum=meta.Visibility" json:"visibility,omitempty"`
	// Arbitrary string tags
	Tags []string `protobuf:"bytes,2048,rep,name=tags" json:"tags,omitempty"`
	// Arbitrary key/value metadata
	Extra map[string]string `` /* 133-byte string literal not displayed */
}

func (*MethodMetadata) Descriptor

func (*MethodMetadata) Descriptor() ([]byte, []int)

func (*MethodMetadata) GetExtra

func (m *MethodMetadata) GetExtra() map[string]string

func (*MethodMetadata) GetTags

func (m *MethodMetadata) GetTags() []string

func (*MethodMetadata) GetVisibility

func (m *MethodMetadata) GetVisibility() Visibility

func (*MethodMetadata) ProtoMessage

func (*MethodMetadata) ProtoMessage()

func (*MethodMetadata) Reset

func (m *MethodMetadata) Reset()

func (*MethodMetadata) String

func (m *MethodMetadata) String() string

type ServiceMetadata

type ServiceMetadata struct {
	Visibility Visibility `protobuf:"varint,1,opt,name=visibility,enum=meta.Visibility" json:"visibility,omitempty"`
	// The service address, ie "grpc.example.com"
	Addr string `protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
	// Arbitrary string tags
	Tags []string `protobuf:"bytes,2048,rep,name=tags" json:"tags,omitempty"`
	// Arbitrary key/value metadata
	Extra map[string]string `` /* 133-byte string literal not displayed */
}

func (*ServiceMetadata) Descriptor

func (*ServiceMetadata) Descriptor() ([]byte, []int)

func (*ServiceMetadata) GetAddr

func (m *ServiceMetadata) GetAddr() string

func (*ServiceMetadata) GetExtra

func (m *ServiceMetadata) GetExtra() map[string]string

func (*ServiceMetadata) GetTags

func (m *ServiceMetadata) GetTags() []string

func (*ServiceMetadata) GetVisibility

func (m *ServiceMetadata) GetVisibility() Visibility

func (*ServiceMetadata) ProtoMessage

func (*ServiceMetadata) ProtoMessage()

func (*ServiceMetadata) Reset

func (m *ServiceMetadata) Reset()

func (*ServiceMetadata) String

func (m *ServiceMetadata) String() string

type Visibility

type Visibility int32
const (
	Visibility_PUBLIC  Visibility = 0
	Visibility_PRIVATE Visibility = 1
)

func (Visibility) EnumDescriptor

func (Visibility) EnumDescriptor() ([]byte, []int)

func (Visibility) String

func (x Visibility) String() string

Jump to

Keyboard shortcuts

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