...

Source file src/github.com/gogo/protobuf/protoc-gen-gogo/plugin/plugin.pb.go

Documentation: github.com/gogo/protobuf/protoc-gen-gogo/plugin

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: plugin.proto
     3  
     4  package plugin_go
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/gogo/protobuf/proto"
     9  	descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
    10  	math "math"
    11  )
    12  
    13  // Reference imports to suppress errors if they are not otherwise used.
    14  var _ = proto.Marshal
    15  var _ = fmt.Errorf
    16  var _ = math.Inf
    17  
    18  // This is a compile-time assertion to ensure that this generated file
    19  // is compatible with the proto package it is being compiled against.
    20  // A compilation error at this line likely means your copy of the
    21  // proto package needs to be updated.
    22  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    23  
    24  // The version number of protocol compiler.
    25  type Version struct {
    26  	Major *int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"`
    27  	Minor *int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"`
    28  	Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"`
    29  	// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
    30  	// be empty for mainline stable releases.
    31  	Suffix               *string  `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
    32  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    33  	XXX_unrecognized     []byte   `json:"-"`
    34  	XXX_sizecache        int32    `json:"-"`
    35  }
    36  
    37  func (m *Version) Reset()         { *m = Version{} }
    38  func (m *Version) String() string { return proto.CompactTextString(m) }
    39  func (*Version) ProtoMessage()    {}
    40  func (*Version) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_22a625af4bc1cc87, []int{0}
    42  }
    43  func (m *Version) XXX_Unmarshal(b []byte) error {
    44  	return xxx_messageInfo_Version.Unmarshal(m, b)
    45  }
    46  func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    47  	return xxx_messageInfo_Version.Marshal(b, m, deterministic)
    48  }
    49  func (m *Version) XXX_Merge(src proto.Message) {
    50  	xxx_messageInfo_Version.Merge(m, src)
    51  }
    52  func (m *Version) XXX_Size() int {
    53  	return xxx_messageInfo_Version.Size(m)
    54  }
    55  func (m *Version) XXX_DiscardUnknown() {
    56  	xxx_messageInfo_Version.DiscardUnknown(m)
    57  }
    58  
    59  var xxx_messageInfo_Version proto.InternalMessageInfo
    60  
    61  func (m *Version) GetMajor() int32 {
    62  	if m != nil && m.Major != nil {
    63  		return *m.Major
    64  	}
    65  	return 0
    66  }
    67  
    68  func (m *Version) GetMinor() int32 {
    69  	if m != nil && m.Minor != nil {
    70  		return *m.Minor
    71  	}
    72  	return 0
    73  }
    74  
    75  func (m *Version) GetPatch() int32 {
    76  	if m != nil && m.Patch != nil {
    77  		return *m.Patch
    78  	}
    79  	return 0
    80  }
    81  
    82  func (m *Version) GetSuffix() string {
    83  	if m != nil && m.Suffix != nil {
    84  		return *m.Suffix
    85  	}
    86  	return ""
    87  }
    88  
    89  // An encoded CodeGeneratorRequest is written to the plugin's stdin.
    90  type CodeGeneratorRequest struct {
    91  	// The .proto files that were explicitly listed on the command-line.  The
    92  	// code generator should generate code only for these files.  Each file's
    93  	// descriptor will be included in proto_file, below.
    94  	FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate" json:"file_to_generate,omitempty"`
    95  	// The generator parameter passed on the command-line.
    96  	Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"`
    97  	// FileDescriptorProtos for all files in files_to_generate and everything
    98  	// they import.  The files will appear in topological order, so each file
    99  	// appears before any file that imports it.
   100  	//
   101  	// protoc guarantees that all proto_files will be written after
   102  	// the fields above, even though this is not technically guaranteed by the
   103  	// protobuf wire format.  This theoretically could allow a plugin to stream
   104  	// in the FileDescriptorProtos and handle them one by one rather than read
   105  	// the entire set into memory at once.  However, as of this writing, this
   106  	// is not similarly optimized on protoc's end -- it will store all fields in
   107  	// memory at once before sending them to the plugin.
   108  	//
   109  	// Type names of fields and extensions in the FileDescriptorProto are always
   110  	// fully qualified.
   111  	ProtoFile []*descriptor.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"`
   112  	// The version number of protocol compiler.
   113  	CompilerVersion      *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"`
   114  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   115  	XXX_unrecognized     []byte   `json:"-"`
   116  	XXX_sizecache        int32    `json:"-"`
   117  }
   118  
   119  func (m *CodeGeneratorRequest) Reset()         { *m = CodeGeneratorRequest{} }
   120  func (m *CodeGeneratorRequest) String() string { return proto.CompactTextString(m) }
   121  func (*CodeGeneratorRequest) ProtoMessage()    {}
   122  func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) {
   123  	return fileDescriptor_22a625af4bc1cc87, []int{1}
   124  }
   125  func (m *CodeGeneratorRequest) XXX_Unmarshal(b []byte) error {
   126  	return xxx_messageInfo_CodeGeneratorRequest.Unmarshal(m, b)
   127  }
   128  func (m *CodeGeneratorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   129  	return xxx_messageInfo_CodeGeneratorRequest.Marshal(b, m, deterministic)
   130  }
   131  func (m *CodeGeneratorRequest) XXX_Merge(src proto.Message) {
   132  	xxx_messageInfo_CodeGeneratorRequest.Merge(m, src)
   133  }
   134  func (m *CodeGeneratorRequest) XXX_Size() int {
   135  	return xxx_messageInfo_CodeGeneratorRequest.Size(m)
   136  }
   137  func (m *CodeGeneratorRequest) XXX_DiscardUnknown() {
   138  	xxx_messageInfo_CodeGeneratorRequest.DiscardUnknown(m)
   139  }
   140  
   141  var xxx_messageInfo_CodeGeneratorRequest proto.InternalMessageInfo
   142  
   143  func (m *CodeGeneratorRequest) GetFileToGenerate() []string {
   144  	if m != nil {
   145  		return m.FileToGenerate
   146  	}
   147  	return nil
   148  }
   149  
   150  func (m *CodeGeneratorRequest) GetParameter() string {
   151  	if m != nil && m.Parameter != nil {
   152  		return *m.Parameter
   153  	}
   154  	return ""
   155  }
   156  
   157  func (m *CodeGeneratorRequest) GetProtoFile() []*descriptor.FileDescriptorProto {
   158  	if m != nil {
   159  		return m.ProtoFile
   160  	}
   161  	return nil
   162  }
   163  
   164  func (m *CodeGeneratorRequest) GetCompilerVersion() *Version {
   165  	if m != nil {
   166  		return m.CompilerVersion
   167  	}
   168  	return nil
   169  }
   170  
   171  // The plugin writes an encoded CodeGeneratorResponse to stdout.
   172  type CodeGeneratorResponse struct {
   173  	// Error message.  If non-empty, code generation failed.  The plugin process
   174  	// should exit with status code zero even if it reports an error in this way.
   175  	//
   176  	// This should be used to indicate errors in .proto files which prevent the
   177  	// code generator from generating correct code.  Errors which indicate a
   178  	// problem in protoc itself -- such as the input CodeGeneratorRequest being
   179  	// unparseable -- should be reported by writing a message to stderr and
   180  	// exiting with a non-zero status code.
   181  	Error                *string                       `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
   182  	File                 []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
   183  	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
   184  	XXX_unrecognized     []byte                        `json:"-"`
   185  	XXX_sizecache        int32                         `json:"-"`
   186  }
   187  
   188  func (m *CodeGeneratorResponse) Reset()         { *m = CodeGeneratorResponse{} }
   189  func (m *CodeGeneratorResponse) String() string { return proto.CompactTextString(m) }
   190  func (*CodeGeneratorResponse) ProtoMessage()    {}
   191  func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) {
   192  	return fileDescriptor_22a625af4bc1cc87, []int{2}
   193  }
   194  func (m *CodeGeneratorResponse) XXX_Unmarshal(b []byte) error {
   195  	return xxx_messageInfo_CodeGeneratorResponse.Unmarshal(m, b)
   196  }
   197  func (m *CodeGeneratorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   198  	return xxx_messageInfo_CodeGeneratorResponse.Marshal(b, m, deterministic)
   199  }
   200  func (m *CodeGeneratorResponse) XXX_Merge(src proto.Message) {
   201  	xxx_messageInfo_CodeGeneratorResponse.Merge(m, src)
   202  }
   203  func (m *CodeGeneratorResponse) XXX_Size() int {
   204  	return xxx_messageInfo_CodeGeneratorResponse.Size(m)
   205  }
   206  func (m *CodeGeneratorResponse) XXX_DiscardUnknown() {
   207  	xxx_messageInfo_CodeGeneratorResponse.DiscardUnknown(m)
   208  }
   209  
   210  var xxx_messageInfo_CodeGeneratorResponse proto.InternalMessageInfo
   211  
   212  func (m *CodeGeneratorResponse) GetError() string {
   213  	if m != nil && m.Error != nil {
   214  		return *m.Error
   215  	}
   216  	return ""
   217  }
   218  
   219  func (m *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File {
   220  	if m != nil {
   221  		return m.File
   222  	}
   223  	return nil
   224  }
   225  
   226  // Represents a single generated file.
   227  type CodeGeneratorResponse_File struct {
   228  	// The file name, relative to the output directory.  The name must not
   229  	// contain "." or ".." components and must be relative, not be absolute (so,
   230  	// the file cannot lie outside the output directory).  "/" must be used as
   231  	// the path separator, not "\".
   232  	//
   233  	// If the name is omitted, the content will be appended to the previous
   234  	// file.  This allows the generator to break large files into small chunks,
   235  	// and allows the generated text to be streamed back to protoc so that large
   236  	// files need not reside completely in memory at one time.  Note that as of
   237  	// this writing protoc does not optimize for this -- it will read the entire
   238  	// CodeGeneratorResponse before writing files to disk.
   239  	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
   240  	// If non-empty, indicates that the named file should already exist, and the
   241  	// content here is to be inserted into that file at a defined insertion
   242  	// point.  This feature allows a code generator to extend the output
   243  	// produced by another code generator.  The original generator may provide
   244  	// insertion points by placing special annotations in the file that look
   245  	// like:
   246  	//   @@protoc_insertion_point(NAME)
   247  	// The annotation can have arbitrary text before and after it on the line,
   248  	// which allows it to be placed in a comment.  NAME should be replaced with
   249  	// an identifier naming the point -- this is what other generators will use
   250  	// as the insertion_point.  Code inserted at this point will be placed
   251  	// immediately above the line containing the insertion point (thus multiple
   252  	// insertions to the same point will come out in the order they were added).
   253  	// The double-@ is intended to make it unlikely that the generated code
   254  	// could contain things that look like insertion points by accident.
   255  	//
   256  	// For example, the C++ code generator places the following line in the
   257  	// .pb.h files that it generates:
   258  	//   // @@protoc_insertion_point(namespace_scope)
   259  	// This line appears within the scope of the file's package namespace, but
   260  	// outside of any particular class.  Another plugin can then specify the
   261  	// insertion_point "namespace_scope" to generate additional classes or
   262  	// other declarations that should be placed in this scope.
   263  	//
   264  	// Note that if the line containing the insertion point begins with
   265  	// whitespace, the same whitespace will be added to every line of the
   266  	// inserted text.  This is useful for languages like Python, where
   267  	// indentation matters.  In these languages, the insertion point comment
   268  	// should be indented the same amount as any inserted code will need to be
   269  	// in order to work correctly in that context.
   270  	//
   271  	// The code generator that generates the initial file and the one which
   272  	// inserts into it must both run as part of a single invocation of protoc.
   273  	// Code generators are executed in the order in which they appear on the
   274  	// command line.
   275  	//
   276  	// If |insertion_point| is present, |name| must also be present.
   277  	InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"`
   278  	// The file contents.
   279  	Content              *string  `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
   280  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   281  	XXX_unrecognized     []byte   `json:"-"`
   282  	XXX_sizecache        int32    `json:"-"`
   283  }
   284  
   285  func (m *CodeGeneratorResponse_File) Reset()         { *m = CodeGeneratorResponse_File{} }
   286  func (m *CodeGeneratorResponse_File) String() string { return proto.CompactTextString(m) }
   287  func (*CodeGeneratorResponse_File) ProtoMessage()    {}
   288  func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) {
   289  	return fileDescriptor_22a625af4bc1cc87, []int{2, 0}
   290  }
   291  func (m *CodeGeneratorResponse_File) XXX_Unmarshal(b []byte) error {
   292  	return xxx_messageInfo_CodeGeneratorResponse_File.Unmarshal(m, b)
   293  }
   294  func (m *CodeGeneratorResponse_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   295  	return xxx_messageInfo_CodeGeneratorResponse_File.Marshal(b, m, deterministic)
   296  }
   297  func (m *CodeGeneratorResponse_File) XXX_Merge(src proto.Message) {
   298  	xxx_messageInfo_CodeGeneratorResponse_File.Merge(m, src)
   299  }
   300  func (m *CodeGeneratorResponse_File) XXX_Size() int {
   301  	return xxx_messageInfo_CodeGeneratorResponse_File.Size(m)
   302  }
   303  func (m *CodeGeneratorResponse_File) XXX_DiscardUnknown() {
   304  	xxx_messageInfo_CodeGeneratorResponse_File.DiscardUnknown(m)
   305  }
   306  
   307  var xxx_messageInfo_CodeGeneratorResponse_File proto.InternalMessageInfo
   308  
   309  func (m *CodeGeneratorResponse_File) GetName() string {
   310  	if m != nil && m.Name != nil {
   311  		return *m.Name
   312  	}
   313  	return ""
   314  }
   315  
   316  func (m *CodeGeneratorResponse_File) GetInsertionPoint() string {
   317  	if m != nil && m.InsertionPoint != nil {
   318  		return *m.InsertionPoint
   319  	}
   320  	return ""
   321  }
   322  
   323  func (m *CodeGeneratorResponse_File) GetContent() string {
   324  	if m != nil && m.Content != nil {
   325  		return *m.Content
   326  	}
   327  	return ""
   328  }
   329  
   330  func init() {
   331  	proto.RegisterType((*Version)(nil), "google.protobuf.compiler.Version")
   332  	proto.RegisterType((*CodeGeneratorRequest)(nil), "google.protobuf.compiler.CodeGeneratorRequest")
   333  	proto.RegisterType((*CodeGeneratorResponse)(nil), "google.protobuf.compiler.CodeGeneratorResponse")
   334  	proto.RegisterType((*CodeGeneratorResponse_File)(nil), "google.protobuf.compiler.CodeGeneratorResponse.File")
   335  }
   336  
   337  func init() { proto.RegisterFile("plugin.proto", fileDescriptor_22a625af4bc1cc87) }
   338  
   339  var fileDescriptor_22a625af4bc1cc87 = []byte{
   340  	// 383 bytes of a gzipped FileDescriptorProto
   341  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcd, 0x6a, 0xd5, 0x40,
   342  	0x14, 0xc7, 0x89, 0x37, 0xb5, 0xe4, 0xb4, 0x34, 0x65, 0xa8, 0x32, 0x94, 0x2e, 0xe2, 0x45, 0x30,
   343  	0xab, 0x14, 0x8a, 0xe0, 0xbe, 0x15, 0x75, 0xe1, 0xe2, 0x32, 0x88, 0x0b, 0x41, 0x42, 0x4c, 0x4f,
   344  	0xe2, 0x48, 0x32, 0x67, 0x9c, 0x99, 0x88, 0x4f, 0xea, 0x7b, 0xf8, 0x06, 0x32, 0x1f, 0xa9, 0x72,
   345  	0xf1, 0xee, 0xe6, 0xff, 0x3b, 0xf3, 0x71, 0xce, 0x8f, 0x81, 0x53, 0x3d, 0x2d, 0xa3, 0x54, 0x8d,
   346  	0x36, 0xe4, 0x88, 0xf1, 0x91, 0x68, 0x9c, 0x30, 0xa6, 0x2f, 0xcb, 0xd0, 0xf4, 0x34, 0x6b, 0x39,
   347  	0xa1, 0xb9, 0xac, 0x62, 0xe5, 0x7a, 0xad, 0x5c, 0xdf, 0xa3, 0xed, 0x8d, 0xd4, 0x8e, 0x4c, 0xdc,
   348  	0xbd, 0xed, 0xe1, 0xf8, 0x23, 0x1a, 0x2b, 0x49, 0xb1, 0x0b, 0x38, 0x9a, 0xbb, 0x6f, 0x64, 0x78,
   349  	0x56, 0x65, 0xf5, 0x91, 0x88, 0x21, 0x50, 0xa9, 0xc8, 0xf0, 0x47, 0x89, 0xfa, 0xe0, 0xa9, 0xee,
   350  	0x5c, 0xff, 0x95, 0x6f, 0x22, 0x0d, 0x81, 0x3d, 0x85, 0xc7, 0x76, 0x19, 0x06, 0xf9, 0x93, 0xe7,
   351  	0x55, 0x56, 0x17, 0x22, 0xa5, 0xed, 0xef, 0x0c, 0x2e, 0xee, 0xe8, 0x1e, 0xdf, 0xa2, 0x42, 0xd3,
   352  	0x39, 0x32, 0x02, 0xbf, 0x2f, 0x68, 0x1d, 0xab, 0xe1, 0x7c, 0x90, 0x13, 0xb6, 0x8e, 0xda, 0x31,
   353  	0xd6, 0x90, 0x67, 0xd5, 0xa6, 0x2e, 0xc4, 0x99, 0xe7, 0x1f, 0x28, 0x9d, 0x40, 0x76, 0x05, 0x85,
   354  	0xee, 0x4c, 0x37, 0xa3, 0xc3, 0xd8, 0x4a, 0x21, 0xfe, 0x02, 0x76, 0x07, 0x10, 0xc6, 0x69, 0xfd,
   355  	0x29, 0x5e, 0x56, 0x9b, 0xfa, 0xe4, 0xe6, 0x79, 0xb3, 0xaf, 0xe5, 0x8d, 0x9c, 0xf0, 0xf5, 0x83,
   356  	0x80, 0x9d, 0xc7, 0xa2, 0x08, 0x55, 0x5f, 0x61, 0xef, 0xe1, 0x7c, 0x15, 0xd7, 0xfe, 0x88, 0x4e,
   357  	0xc2, 0x78, 0x27, 0x37, 0xcf, 0x9a, 0x43, 0x86, 0x9b, 0x24, 0x4f, 0x94, 0x2b, 0x49, 0x60, 0xfb,
   358  	0x2b, 0x83, 0x27, 0x7b, 0x33, 0x5b, 0x4d, 0xca, 0xa2, 0x77, 0x87, 0xc6, 0x24, 0xcf, 0x85, 0x88,
   359  	0x81, 0xbd, 0x83, 0xfc, 0x9f, 0xe6, 0x5f, 0x1e, 0x7e, 0xf1, 0xbf, 0x97, 0x86, 0xd9, 0x44, 0xb8,
   360  	0xe1, 0xf2, 0x33, 0xe4, 0x61, 0x1e, 0x06, 0xb9, 0xea, 0x66, 0x4c, 0xcf, 0x84, 0x35, 0x7b, 0x01,
   361  	0xa5, 0x54, 0x16, 0x8d, 0x93, 0xa4, 0x5a, 0x4d, 0x52, 0xb9, 0x24, 0xf3, 0xec, 0x01, 0xef, 0x3c,
   362  	0x65, 0x1c, 0x8e, 0x7b, 0x52, 0x0e, 0x95, 0xe3, 0x65, 0xd8, 0xb0, 0xc6, 0xdb, 0x57, 0x70, 0xd5,
   363  	0xd3, 0x7c, 0xb0, 0xbf, 0xdb, 0xd3, 0x5d, 0xf8, 0x9b, 0x41, 0xaf, 0xfd, 0x54, 0xc4, 0x9f, 0xda,
   364  	0x8e, 0xf4, 0x27, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x72, 0x3d, 0x18, 0xb5, 0x02, 0x00, 0x00,
   365  }
   366  

View as plain text