...

Source file src/google.golang.org/protobuf/types/pluginpb/plugin.pb.go

Documentation: google.golang.org/protobuf/types/pluginpb

     1  // Protocol Buffers - Google's data interchange format
     2  // Copyright 2008 Google Inc.  All rights reserved.
     3  //
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file or at
     6  // https://developers.google.com/open-source/licenses/bsd
     7  
     8  // Author: kenton@google.com (Kenton Varda)
     9  //
    10  // protoc (aka the Protocol Compiler) can be extended via plugins.  A plugin is
    11  // just a program that reads a CodeGeneratorRequest from stdin and writes a
    12  // CodeGeneratorResponse to stdout.
    13  //
    14  // Plugins written using C++ can use google/protobuf/compiler/plugin.h instead
    15  // of dealing with the raw protocol defined here.
    16  //
    17  // A plugin executable needs only to be placed somewhere in the path.  The
    18  // plugin should be named "protoc-gen-$NAME", and will then be used when the
    19  // flag "--${NAME}_out" is passed to protoc.
    20  
    21  // Code generated by protoc-gen-go. DO NOT EDIT.
    22  // source: google/protobuf/compiler/plugin.proto
    23  
    24  package pluginpb
    25  
    26  import (
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	descriptorpb "google.golang.org/protobuf/types/descriptorpb"
    30  	reflect "reflect"
    31  	sync "sync"
    32  )
    33  
    34  // Sync with code_generator.h.
    35  type CodeGeneratorResponse_Feature int32
    36  
    37  const (
    38  	CodeGeneratorResponse_FEATURE_NONE              CodeGeneratorResponse_Feature = 0
    39  	CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL   CodeGeneratorResponse_Feature = 1
    40  	CodeGeneratorResponse_FEATURE_SUPPORTS_EDITIONS CodeGeneratorResponse_Feature = 2
    41  )
    42  
    43  // Enum value maps for CodeGeneratorResponse_Feature.
    44  var (
    45  	CodeGeneratorResponse_Feature_name = map[int32]string{
    46  		0: "FEATURE_NONE",
    47  		1: "FEATURE_PROTO3_OPTIONAL",
    48  		2: "FEATURE_SUPPORTS_EDITIONS",
    49  	}
    50  	CodeGeneratorResponse_Feature_value = map[string]int32{
    51  		"FEATURE_NONE":              0,
    52  		"FEATURE_PROTO3_OPTIONAL":   1,
    53  		"FEATURE_SUPPORTS_EDITIONS": 2,
    54  	}
    55  )
    56  
    57  func (x CodeGeneratorResponse_Feature) Enum() *CodeGeneratorResponse_Feature {
    58  	p := new(CodeGeneratorResponse_Feature)
    59  	*p = x
    60  	return p
    61  }
    62  
    63  func (x CodeGeneratorResponse_Feature) String() string {
    64  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    65  }
    66  
    67  func (CodeGeneratorResponse_Feature) Descriptor() protoreflect.EnumDescriptor {
    68  	return file_google_protobuf_compiler_plugin_proto_enumTypes[0].Descriptor()
    69  }
    70  
    71  func (CodeGeneratorResponse_Feature) Type() protoreflect.EnumType {
    72  	return &file_google_protobuf_compiler_plugin_proto_enumTypes[0]
    73  }
    74  
    75  func (x CodeGeneratorResponse_Feature) Number() protoreflect.EnumNumber {
    76  	return protoreflect.EnumNumber(x)
    77  }
    78  
    79  // Deprecated: Do not use.
    80  func (x *CodeGeneratorResponse_Feature) UnmarshalJSON(b []byte) error {
    81  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
    82  	if err != nil {
    83  		return err
    84  	}
    85  	*x = CodeGeneratorResponse_Feature(num)
    86  	return nil
    87  }
    88  
    89  // Deprecated: Use CodeGeneratorResponse_Feature.Descriptor instead.
    90  func (CodeGeneratorResponse_Feature) EnumDescriptor() ([]byte, []int) {
    91  	return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2, 0}
    92  }
    93  
    94  // The version number of protocol compiler.
    95  type Version struct {
    96  	state         protoimpl.MessageState
    97  	sizeCache     protoimpl.SizeCache
    98  	unknownFields protoimpl.UnknownFields
    99  
   100  	Major *int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"`
   101  	Minor *int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"`
   102  	Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"`
   103  	// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
   104  	// be empty for mainline stable releases.
   105  	Suffix *string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
   106  }
   107  
   108  func (x *Version) Reset() {
   109  	*x = Version{}
   110  	if protoimpl.UnsafeEnabled {
   111  		mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[0]
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		ms.StoreMessageInfo(mi)
   114  	}
   115  }
   116  
   117  func (x *Version) String() string {
   118  	return protoimpl.X.MessageStringOf(x)
   119  }
   120  
   121  func (*Version) ProtoMessage() {}
   122  
   123  func (x *Version) ProtoReflect() protoreflect.Message {
   124  	mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[0]
   125  	if protoimpl.UnsafeEnabled && x != nil {
   126  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   127  		if ms.LoadMessageInfo() == nil {
   128  			ms.StoreMessageInfo(mi)
   129  		}
   130  		return ms
   131  	}
   132  	return mi.MessageOf(x)
   133  }
   134  
   135  // Deprecated: Use Version.ProtoReflect.Descriptor instead.
   136  func (*Version) Descriptor() ([]byte, []int) {
   137  	return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{0}
   138  }
   139  
   140  func (x *Version) GetMajor() int32 {
   141  	if x != nil && x.Major != nil {
   142  		return *x.Major
   143  	}
   144  	return 0
   145  }
   146  
   147  func (x *Version) GetMinor() int32 {
   148  	if x != nil && x.Minor != nil {
   149  		return *x.Minor
   150  	}
   151  	return 0
   152  }
   153  
   154  func (x *Version) GetPatch() int32 {
   155  	if x != nil && x.Patch != nil {
   156  		return *x.Patch
   157  	}
   158  	return 0
   159  }
   160  
   161  func (x *Version) GetSuffix() string {
   162  	if x != nil && x.Suffix != nil {
   163  		return *x.Suffix
   164  	}
   165  	return ""
   166  }
   167  
   168  // An encoded CodeGeneratorRequest is written to the plugin's stdin.
   169  type CodeGeneratorRequest struct {
   170  	state         protoimpl.MessageState
   171  	sizeCache     protoimpl.SizeCache
   172  	unknownFields protoimpl.UnknownFields
   173  
   174  	// The .proto files that were explicitly listed on the command-line.  The
   175  	// code generator should generate code only for these files.  Each file's
   176  	// descriptor will be included in proto_file, below.
   177  	FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate" json:"file_to_generate,omitempty"`
   178  	// The generator parameter passed on the command-line.
   179  	Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"`
   180  	// FileDescriptorProtos for all files in files_to_generate and everything
   181  	// they import.  The files will appear in topological order, so each file
   182  	// appears before any file that imports it.
   183  	//
   184  	// Note: the files listed in files_to_generate will include runtime-retention
   185  	// options only, but all other files will include source-retention options.
   186  	// The source_file_descriptors field below is available in case you need
   187  	// source-retention options for files_to_generate.
   188  	//
   189  	// protoc guarantees that all proto_files will be written after
   190  	// the fields above, even though this is not technically guaranteed by the
   191  	// protobuf wire format.  This theoretically could allow a plugin to stream
   192  	// in the FileDescriptorProtos and handle them one by one rather than read
   193  	// the entire set into memory at once.  However, as of this writing, this
   194  	// is not similarly optimized on protoc's end -- it will store all fields in
   195  	// memory at once before sending them to the plugin.
   196  	//
   197  	// Type names of fields and extensions in the FileDescriptorProto are always
   198  	// fully qualified.
   199  	ProtoFile []*descriptorpb.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"`
   200  	// File descriptors with all options, including source-retention options.
   201  	// These descriptors are only provided for the files listed in
   202  	// files_to_generate.
   203  	SourceFileDescriptors []*descriptorpb.FileDescriptorProto `protobuf:"bytes,17,rep,name=source_file_descriptors,json=sourceFileDescriptors" json:"source_file_descriptors,omitempty"`
   204  	// The version number of protocol compiler.
   205  	CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"`
   206  }
   207  
   208  func (x *CodeGeneratorRequest) Reset() {
   209  	*x = CodeGeneratorRequest{}
   210  	if protoimpl.UnsafeEnabled {
   211  		mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[1]
   212  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   213  		ms.StoreMessageInfo(mi)
   214  	}
   215  }
   216  
   217  func (x *CodeGeneratorRequest) String() string {
   218  	return protoimpl.X.MessageStringOf(x)
   219  }
   220  
   221  func (*CodeGeneratorRequest) ProtoMessage() {}
   222  
   223  func (x *CodeGeneratorRequest) ProtoReflect() protoreflect.Message {
   224  	mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[1]
   225  	if protoimpl.UnsafeEnabled && x != nil {
   226  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   227  		if ms.LoadMessageInfo() == nil {
   228  			ms.StoreMessageInfo(mi)
   229  		}
   230  		return ms
   231  	}
   232  	return mi.MessageOf(x)
   233  }
   234  
   235  // Deprecated: Use CodeGeneratorRequest.ProtoReflect.Descriptor instead.
   236  func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) {
   237  	return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{1}
   238  }
   239  
   240  func (x *CodeGeneratorRequest) GetFileToGenerate() []string {
   241  	if x != nil {
   242  		return x.FileToGenerate
   243  	}
   244  	return nil
   245  }
   246  
   247  func (x *CodeGeneratorRequest) GetParameter() string {
   248  	if x != nil && x.Parameter != nil {
   249  		return *x.Parameter
   250  	}
   251  	return ""
   252  }
   253  
   254  func (x *CodeGeneratorRequest) GetProtoFile() []*descriptorpb.FileDescriptorProto {
   255  	if x != nil {
   256  		return x.ProtoFile
   257  	}
   258  	return nil
   259  }
   260  
   261  func (x *CodeGeneratorRequest) GetSourceFileDescriptors() []*descriptorpb.FileDescriptorProto {
   262  	if x != nil {
   263  		return x.SourceFileDescriptors
   264  	}
   265  	return nil
   266  }
   267  
   268  func (x *CodeGeneratorRequest) GetCompilerVersion() *Version {
   269  	if x != nil {
   270  		return x.CompilerVersion
   271  	}
   272  	return nil
   273  }
   274  
   275  // The plugin writes an encoded CodeGeneratorResponse to stdout.
   276  type CodeGeneratorResponse struct {
   277  	state         protoimpl.MessageState
   278  	sizeCache     protoimpl.SizeCache
   279  	unknownFields protoimpl.UnknownFields
   280  
   281  	// Error message.  If non-empty, code generation failed.  The plugin process
   282  	// should exit with status code zero even if it reports an error in this way.
   283  	//
   284  	// This should be used to indicate errors in .proto files which prevent the
   285  	// code generator from generating correct code.  Errors which indicate a
   286  	// problem in protoc itself -- such as the input CodeGeneratorRequest being
   287  	// unparseable -- should be reported by writing a message to stderr and
   288  	// exiting with a non-zero status code.
   289  	Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
   290  	// A bitmask of supported features that the code generator supports.
   291  	// This is a bitwise "or" of values from the Feature enum.
   292  	SupportedFeatures *uint64                       `protobuf:"varint,2,opt,name=supported_features,json=supportedFeatures" json:"supported_features,omitempty"`
   293  	File              []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
   294  }
   295  
   296  func (x *CodeGeneratorResponse) Reset() {
   297  	*x = CodeGeneratorResponse{}
   298  	if protoimpl.UnsafeEnabled {
   299  		mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2]
   300  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   301  		ms.StoreMessageInfo(mi)
   302  	}
   303  }
   304  
   305  func (x *CodeGeneratorResponse) String() string {
   306  	return protoimpl.X.MessageStringOf(x)
   307  }
   308  
   309  func (*CodeGeneratorResponse) ProtoMessage() {}
   310  
   311  func (x *CodeGeneratorResponse) ProtoReflect() protoreflect.Message {
   312  	mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2]
   313  	if protoimpl.UnsafeEnabled && x != nil {
   314  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   315  		if ms.LoadMessageInfo() == nil {
   316  			ms.StoreMessageInfo(mi)
   317  		}
   318  		return ms
   319  	}
   320  	return mi.MessageOf(x)
   321  }
   322  
   323  // Deprecated: Use CodeGeneratorResponse.ProtoReflect.Descriptor instead.
   324  func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) {
   325  	return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2}
   326  }
   327  
   328  func (x *CodeGeneratorResponse) GetError() string {
   329  	if x != nil && x.Error != nil {
   330  		return *x.Error
   331  	}
   332  	return ""
   333  }
   334  
   335  func (x *CodeGeneratorResponse) GetSupportedFeatures() uint64 {
   336  	if x != nil && x.SupportedFeatures != nil {
   337  		return *x.SupportedFeatures
   338  	}
   339  	return 0
   340  }
   341  
   342  func (x *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File {
   343  	if x != nil {
   344  		return x.File
   345  	}
   346  	return nil
   347  }
   348  
   349  // Represents a single generated file.
   350  type CodeGeneratorResponse_File struct {
   351  	state         protoimpl.MessageState
   352  	sizeCache     protoimpl.SizeCache
   353  	unknownFields protoimpl.UnknownFields
   354  
   355  	// The file name, relative to the output directory.  The name must not
   356  	// contain "." or ".." components and must be relative, not be absolute (so,
   357  	// the file cannot lie outside the output directory).  "/" must be used as
   358  	// the path separator, not "\".
   359  	//
   360  	// If the name is omitted, the content will be appended to the previous
   361  	// file.  This allows the generator to break large files into small chunks,
   362  	// and allows the generated text to be streamed back to protoc so that large
   363  	// files need not reside completely in memory at one time.  Note that as of
   364  	// this writing protoc does not optimize for this -- it will read the entire
   365  	// CodeGeneratorResponse before writing files to disk.
   366  	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
   367  	// If non-empty, indicates that the named file should already exist, and the
   368  	// content here is to be inserted into that file at a defined insertion
   369  	// point.  This feature allows a code generator to extend the output
   370  	// produced by another code generator.  The original generator may provide
   371  	// insertion points by placing special annotations in the file that look
   372  	// like:
   373  	//
   374  	//	@@protoc_insertion_point(NAME)
   375  	//
   376  	// The annotation can have arbitrary text before and after it on the line,
   377  	// which allows it to be placed in a comment.  NAME should be replaced with
   378  	// an identifier naming the point -- this is what other generators will use
   379  	// as the insertion_point.  Code inserted at this point will be placed
   380  	// immediately above the line containing the insertion point (thus multiple
   381  	// insertions to the same point will come out in the order they were added).
   382  	// The double-@ is intended to make it unlikely that the generated code
   383  	// could contain things that look like insertion points by accident.
   384  	//
   385  	// For example, the C++ code generator places the following line in the
   386  	// .pb.h files that it generates:
   387  	//
   388  	//	// @@protoc_insertion_point(namespace_scope)
   389  	//
   390  	// This line appears within the scope of the file's package namespace, but
   391  	// outside of any particular class.  Another plugin can then specify the
   392  	// insertion_point "namespace_scope" to generate additional classes or
   393  	// other declarations that should be placed in this scope.
   394  	//
   395  	// Note that if the line containing the insertion point begins with
   396  	// whitespace, the same whitespace will be added to every line of the
   397  	// inserted text.  This is useful for languages like Python, where
   398  	// indentation matters.  In these languages, the insertion point comment
   399  	// should be indented the same amount as any inserted code will need to be
   400  	// in order to work correctly in that context.
   401  	//
   402  	// The code generator that generates the initial file and the one which
   403  	// inserts into it must both run as part of a single invocation of protoc.
   404  	// Code generators are executed in the order in which they appear on the
   405  	// command line.
   406  	//
   407  	// If |insertion_point| is present, |name| must also be present.
   408  	InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"`
   409  	// The file contents.
   410  	Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
   411  	// Information describing the file content being inserted. If an insertion
   412  	// point is used, this information will be appropriately offset and inserted
   413  	// into the code generation metadata for the generated files.
   414  	GeneratedCodeInfo *descriptorpb.GeneratedCodeInfo `protobuf:"bytes,16,opt,name=generated_code_info,json=generatedCodeInfo" json:"generated_code_info,omitempty"`
   415  }
   416  
   417  func (x *CodeGeneratorResponse_File) Reset() {
   418  	*x = CodeGeneratorResponse_File{}
   419  	if protoimpl.UnsafeEnabled {
   420  		mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3]
   421  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   422  		ms.StoreMessageInfo(mi)
   423  	}
   424  }
   425  
   426  func (x *CodeGeneratorResponse_File) String() string {
   427  	return protoimpl.X.MessageStringOf(x)
   428  }
   429  
   430  func (*CodeGeneratorResponse_File) ProtoMessage() {}
   431  
   432  func (x *CodeGeneratorResponse_File) ProtoReflect() protoreflect.Message {
   433  	mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3]
   434  	if protoimpl.UnsafeEnabled && x != nil {
   435  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   436  		if ms.LoadMessageInfo() == nil {
   437  			ms.StoreMessageInfo(mi)
   438  		}
   439  		return ms
   440  	}
   441  	return mi.MessageOf(x)
   442  }
   443  
   444  // Deprecated: Use CodeGeneratorResponse_File.ProtoReflect.Descriptor instead.
   445  func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) {
   446  	return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2, 0}
   447  }
   448  
   449  func (x *CodeGeneratorResponse_File) GetName() string {
   450  	if x != nil && x.Name != nil {
   451  		return *x.Name
   452  	}
   453  	return ""
   454  }
   455  
   456  func (x *CodeGeneratorResponse_File) GetInsertionPoint() string {
   457  	if x != nil && x.InsertionPoint != nil {
   458  		return *x.InsertionPoint
   459  	}
   460  	return ""
   461  }
   462  
   463  func (x *CodeGeneratorResponse_File) GetContent() string {
   464  	if x != nil && x.Content != nil {
   465  		return *x.Content
   466  	}
   467  	return ""
   468  }
   469  
   470  func (x *CodeGeneratorResponse_File) GetGeneratedCodeInfo() *descriptorpb.GeneratedCodeInfo {
   471  	if x != nil {
   472  		return x.GeneratedCodeInfo
   473  	}
   474  	return nil
   475  }
   476  
   477  var File_google_protobuf_compiler_plugin_proto protoreflect.FileDescriptor
   478  
   479  var file_google_protobuf_compiler_plugin_proto_rawDesc = []byte{
   480  	0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   481  	0x66, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69,
   482  	0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   483  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
   484  	0x72, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   485  	0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
   486  	0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14,
   487  	0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d,
   488  	0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20,
   489  	0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61,
   490  	0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68,
   491  	0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
   492  	0x52, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x22, 0xcf, 0x02, 0x0a, 0x14, 0x43, 0x6f, 0x64,
   493  	0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   494  	0x74, 0x12, 0x28, 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x67, 0x65, 0x6e,
   495  	0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x66, 0x69, 0x6c,
   496  	0x65, 0x54, 0x6f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70,
   497  	0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
   498  	0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x72, 0x6f,
   499  	0x74, 0x6f, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e,
   500  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   501  	0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72,
   502  	0x6f, 0x74, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x5c,
   503  	0x0a, 0x17, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x64, 0x65,
   504  	0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32,
   505  	0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   506  	0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
   507  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x15, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c,
   508  	0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x4c, 0x0a, 0x10,
   509  	0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
   510  	0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   511  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
   512  	0x72, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x69,
   513  	0x6c, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb3, 0x03, 0x0a, 0x15, 0x43,
   514  	0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70,
   515  	0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20,
   516  	0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x75,
   517  	0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73,
   518  	0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65,
   519  	0x64, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x04, 0x66, 0x69, 0x6c,
   520  	0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   521  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c,
   522  	0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72,
   523  	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x04, 0x66,
   524  	0x69, 0x6c, 0x65, 0x1a, 0xb1, 0x01, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04,
   525  	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
   526  	0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f,
   527  	0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x65, 0x72,
   528  	0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e,
   529  	0x74, 0x65, 0x6e, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74,
   530  	0x65, 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,
   531  	0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b,
   532  	0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   533  	0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65,
   534  	0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43,
   535  	0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x57, 0x0a, 0x07, 0x46, 0x65, 0x61, 0x74, 0x75,
   536  	0x72, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x45, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4e, 0x4f,
   537  	0x4e, 0x45, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x45, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f,
   538  	0x50, 0x52, 0x4f, 0x54, 0x4f, 0x33, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x10,
   539  	0x01, 0x12, 0x1d, 0x0a, 0x19, 0x46, 0x45, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x53, 0x55, 0x50,
   540  	0x50, 0x4f, 0x52, 0x54, 0x53, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x02,
   541  	0x42, 0x72, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
   542  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72,
   543  	0x42, 0x0c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x5a, 0x29,
   544  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
   545  	0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73,
   546  	0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x70, 0x62, 0xaa, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67,
   547  	0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x70,
   548  	0x69, 0x6c, 0x65, 0x72,
   549  }
   550  
   551  var (
   552  	file_google_protobuf_compiler_plugin_proto_rawDescOnce sync.Once
   553  	file_google_protobuf_compiler_plugin_proto_rawDescData = file_google_protobuf_compiler_plugin_proto_rawDesc
   554  )
   555  
   556  func file_google_protobuf_compiler_plugin_proto_rawDescGZIP() []byte {
   557  	file_google_protobuf_compiler_plugin_proto_rawDescOnce.Do(func() {
   558  		file_google_protobuf_compiler_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_compiler_plugin_proto_rawDescData)
   559  	})
   560  	return file_google_protobuf_compiler_plugin_proto_rawDescData
   561  }
   562  
   563  var file_google_protobuf_compiler_plugin_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   564  var file_google_protobuf_compiler_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   565  var file_google_protobuf_compiler_plugin_proto_goTypes = []interface{}{
   566  	(CodeGeneratorResponse_Feature)(0),       // 0: google.protobuf.compiler.CodeGeneratorResponse.Feature
   567  	(*Version)(nil),                          // 1: google.protobuf.compiler.Version
   568  	(*CodeGeneratorRequest)(nil),             // 2: google.protobuf.compiler.CodeGeneratorRequest
   569  	(*CodeGeneratorResponse)(nil),            // 3: google.protobuf.compiler.CodeGeneratorResponse
   570  	(*CodeGeneratorResponse_File)(nil),       // 4: google.protobuf.compiler.CodeGeneratorResponse.File
   571  	(*descriptorpb.FileDescriptorProto)(nil), // 5: google.protobuf.FileDescriptorProto
   572  	(*descriptorpb.GeneratedCodeInfo)(nil),   // 6: google.protobuf.GeneratedCodeInfo
   573  }
   574  var file_google_protobuf_compiler_plugin_proto_depIdxs = []int32{
   575  	5, // 0: google.protobuf.compiler.CodeGeneratorRequest.proto_file:type_name -> google.protobuf.FileDescriptorProto
   576  	5, // 1: google.protobuf.compiler.CodeGeneratorRequest.source_file_descriptors:type_name -> google.protobuf.FileDescriptorProto
   577  	1, // 2: google.protobuf.compiler.CodeGeneratorRequest.compiler_version:type_name -> google.protobuf.compiler.Version
   578  	4, // 3: google.protobuf.compiler.CodeGeneratorResponse.file:type_name -> google.protobuf.compiler.CodeGeneratorResponse.File
   579  	6, // 4: google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info:type_name -> google.protobuf.GeneratedCodeInfo
   580  	5, // [5:5] is the sub-list for method output_type
   581  	5, // [5:5] is the sub-list for method input_type
   582  	5, // [5:5] is the sub-list for extension type_name
   583  	5, // [5:5] is the sub-list for extension extendee
   584  	0, // [0:5] is the sub-list for field type_name
   585  }
   586  
   587  func init() { file_google_protobuf_compiler_plugin_proto_init() }
   588  func file_google_protobuf_compiler_plugin_proto_init() {
   589  	if File_google_protobuf_compiler_plugin_proto != nil {
   590  		return
   591  	}
   592  	if !protoimpl.UnsafeEnabled {
   593  		file_google_protobuf_compiler_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   594  			switch v := v.(*Version); i {
   595  			case 0:
   596  				return &v.state
   597  			case 1:
   598  				return &v.sizeCache
   599  			case 2:
   600  				return &v.unknownFields
   601  			default:
   602  				return nil
   603  			}
   604  		}
   605  		file_google_protobuf_compiler_plugin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   606  			switch v := v.(*CodeGeneratorRequest); i {
   607  			case 0:
   608  				return &v.state
   609  			case 1:
   610  				return &v.sizeCache
   611  			case 2:
   612  				return &v.unknownFields
   613  			default:
   614  				return nil
   615  			}
   616  		}
   617  		file_google_protobuf_compiler_plugin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   618  			switch v := v.(*CodeGeneratorResponse); i {
   619  			case 0:
   620  				return &v.state
   621  			case 1:
   622  				return &v.sizeCache
   623  			case 2:
   624  				return &v.unknownFields
   625  			default:
   626  				return nil
   627  			}
   628  		}
   629  		file_google_protobuf_compiler_plugin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   630  			switch v := v.(*CodeGeneratorResponse_File); i {
   631  			case 0:
   632  				return &v.state
   633  			case 1:
   634  				return &v.sizeCache
   635  			case 2:
   636  				return &v.unknownFields
   637  			default:
   638  				return nil
   639  			}
   640  		}
   641  	}
   642  	type x struct{}
   643  	out := protoimpl.TypeBuilder{
   644  		File: protoimpl.DescBuilder{
   645  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   646  			RawDescriptor: file_google_protobuf_compiler_plugin_proto_rawDesc,
   647  			NumEnums:      1,
   648  			NumMessages:   4,
   649  			NumExtensions: 0,
   650  			NumServices:   0,
   651  		},
   652  		GoTypes:           file_google_protobuf_compiler_plugin_proto_goTypes,
   653  		DependencyIndexes: file_google_protobuf_compiler_plugin_proto_depIdxs,
   654  		EnumInfos:         file_google_protobuf_compiler_plugin_proto_enumTypes,
   655  		MessageInfos:      file_google_protobuf_compiler_plugin_proto_msgTypes,
   656  	}.Build()
   657  	File_google_protobuf_compiler_plugin_proto = out.File
   658  	file_google_protobuf_compiler_plugin_proto_rawDesc = nil
   659  	file_google_protobuf_compiler_plugin_proto_goTypes = nil
   660  	file_google_protobuf_compiler_plugin_proto_depIdxs = nil
   661  }
   662  

View as plain text