...

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  	// The minimum edition this plugin supports.  This will be treated as an
   294  	// Edition enum, but we want to allow unknown values.  It should be specified
   295  	// according the edition enum value, *not* the edition number.  Only takes
   296  	// effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
   297  	MinimumEdition *int32 `protobuf:"varint,3,opt,name=minimum_edition,json=minimumEdition" json:"minimum_edition,omitempty"`
   298  	// The maximum edition this plugin supports.  This will be treated as an
   299  	// Edition enum, but we want to allow unknown values.  It should be specified
   300  	// according the edition enum value, *not* the edition number.  Only takes
   301  	// effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
   302  	MaximumEdition *int32                        `protobuf:"varint,4,opt,name=maximum_edition,json=maximumEdition" json:"maximum_edition,omitempty"`
   303  	File           []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
   304  }
   305  
   306  func (x *CodeGeneratorResponse) Reset() {
   307  	*x = CodeGeneratorResponse{}
   308  	if protoimpl.UnsafeEnabled {
   309  		mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2]
   310  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   311  		ms.StoreMessageInfo(mi)
   312  	}
   313  }
   314  
   315  func (x *CodeGeneratorResponse) String() string {
   316  	return protoimpl.X.MessageStringOf(x)
   317  }
   318  
   319  func (*CodeGeneratorResponse) ProtoMessage() {}
   320  
   321  func (x *CodeGeneratorResponse) ProtoReflect() protoreflect.Message {
   322  	mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2]
   323  	if protoimpl.UnsafeEnabled && x != nil {
   324  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   325  		if ms.LoadMessageInfo() == nil {
   326  			ms.StoreMessageInfo(mi)
   327  		}
   328  		return ms
   329  	}
   330  	return mi.MessageOf(x)
   331  }
   332  
   333  // Deprecated: Use CodeGeneratorResponse.ProtoReflect.Descriptor instead.
   334  func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) {
   335  	return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2}
   336  }
   337  
   338  func (x *CodeGeneratorResponse) GetError() string {
   339  	if x != nil && x.Error != nil {
   340  		return *x.Error
   341  	}
   342  	return ""
   343  }
   344  
   345  func (x *CodeGeneratorResponse) GetSupportedFeatures() uint64 {
   346  	if x != nil && x.SupportedFeatures != nil {
   347  		return *x.SupportedFeatures
   348  	}
   349  	return 0
   350  }
   351  
   352  func (x *CodeGeneratorResponse) GetMinimumEdition() int32 {
   353  	if x != nil && x.MinimumEdition != nil {
   354  		return *x.MinimumEdition
   355  	}
   356  	return 0
   357  }
   358  
   359  func (x *CodeGeneratorResponse) GetMaximumEdition() int32 {
   360  	if x != nil && x.MaximumEdition != nil {
   361  		return *x.MaximumEdition
   362  	}
   363  	return 0
   364  }
   365  
   366  func (x *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File {
   367  	if x != nil {
   368  		return x.File
   369  	}
   370  	return nil
   371  }
   372  
   373  // Represents a single generated file.
   374  type CodeGeneratorResponse_File struct {
   375  	state         protoimpl.MessageState
   376  	sizeCache     protoimpl.SizeCache
   377  	unknownFields protoimpl.UnknownFields
   378  
   379  	// The file name, relative to the output directory.  The name must not
   380  	// contain "." or ".." components and must be relative, not be absolute (so,
   381  	// the file cannot lie outside the output directory).  "/" must be used as
   382  	// the path separator, not "\".
   383  	//
   384  	// If the name is omitted, the content will be appended to the previous
   385  	// file.  This allows the generator to break large files into small chunks,
   386  	// and allows the generated text to be streamed back to protoc so that large
   387  	// files need not reside completely in memory at one time.  Note that as of
   388  	// this writing protoc does not optimize for this -- it will read the entire
   389  	// CodeGeneratorResponse before writing files to disk.
   390  	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
   391  	// If non-empty, indicates that the named file should already exist, and the
   392  	// content here is to be inserted into that file at a defined insertion
   393  	// point.  This feature allows a code generator to extend the output
   394  	// produced by another code generator.  The original generator may provide
   395  	// insertion points by placing special annotations in the file that look
   396  	// like:
   397  	//
   398  	//	@@protoc_insertion_point(NAME)
   399  	//
   400  	// The annotation can have arbitrary text before and after it on the line,
   401  	// which allows it to be placed in a comment.  NAME should be replaced with
   402  	// an identifier naming the point -- this is what other generators will use
   403  	// as the insertion_point.  Code inserted at this point will be placed
   404  	// immediately above the line containing the insertion point (thus multiple
   405  	// insertions to the same point will come out in the order they were added).
   406  	// The double-@ is intended to make it unlikely that the generated code
   407  	// could contain things that look like insertion points by accident.
   408  	//
   409  	// For example, the C++ code generator places the following line in the
   410  	// .pb.h files that it generates:
   411  	//
   412  	//	// @@protoc_insertion_point(namespace_scope)
   413  	//
   414  	// This line appears within the scope of the file's package namespace, but
   415  	// outside of any particular class.  Another plugin can then specify the
   416  	// insertion_point "namespace_scope" to generate additional classes or
   417  	// other declarations that should be placed in this scope.
   418  	//
   419  	// Note that if the line containing the insertion point begins with
   420  	// whitespace, the same whitespace will be added to every line of the
   421  	// inserted text.  This is useful for languages like Python, where
   422  	// indentation matters.  In these languages, the insertion point comment
   423  	// should be indented the same amount as any inserted code will need to be
   424  	// in order to work correctly in that context.
   425  	//
   426  	// The code generator that generates the initial file and the one which
   427  	// inserts into it must both run as part of a single invocation of protoc.
   428  	// Code generators are executed in the order in which they appear on the
   429  	// command line.
   430  	//
   431  	// If |insertion_point| is present, |name| must also be present.
   432  	InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"`
   433  	// The file contents.
   434  	Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
   435  	// Information describing the file content being inserted. If an insertion
   436  	// point is used, this information will be appropriately offset and inserted
   437  	// into the code generation metadata for the generated files.
   438  	GeneratedCodeInfo *descriptorpb.GeneratedCodeInfo `protobuf:"bytes,16,opt,name=generated_code_info,json=generatedCodeInfo" json:"generated_code_info,omitempty"`
   439  }
   440  
   441  func (x *CodeGeneratorResponse_File) Reset() {
   442  	*x = CodeGeneratorResponse_File{}
   443  	if protoimpl.UnsafeEnabled {
   444  		mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3]
   445  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   446  		ms.StoreMessageInfo(mi)
   447  	}
   448  }
   449  
   450  func (x *CodeGeneratorResponse_File) String() string {
   451  	return protoimpl.X.MessageStringOf(x)
   452  }
   453  
   454  func (*CodeGeneratorResponse_File) ProtoMessage() {}
   455  
   456  func (x *CodeGeneratorResponse_File) ProtoReflect() protoreflect.Message {
   457  	mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3]
   458  	if protoimpl.UnsafeEnabled && x != nil {
   459  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   460  		if ms.LoadMessageInfo() == nil {
   461  			ms.StoreMessageInfo(mi)
   462  		}
   463  		return ms
   464  	}
   465  	return mi.MessageOf(x)
   466  }
   467  
   468  // Deprecated: Use CodeGeneratorResponse_File.ProtoReflect.Descriptor instead.
   469  func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) {
   470  	return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2, 0}
   471  }
   472  
   473  func (x *CodeGeneratorResponse_File) GetName() string {
   474  	if x != nil && x.Name != nil {
   475  		return *x.Name
   476  	}
   477  	return ""
   478  }
   479  
   480  func (x *CodeGeneratorResponse_File) GetInsertionPoint() string {
   481  	if x != nil && x.InsertionPoint != nil {
   482  		return *x.InsertionPoint
   483  	}
   484  	return ""
   485  }
   486  
   487  func (x *CodeGeneratorResponse_File) GetContent() string {
   488  	if x != nil && x.Content != nil {
   489  		return *x.Content
   490  	}
   491  	return ""
   492  }
   493  
   494  func (x *CodeGeneratorResponse_File) GetGeneratedCodeInfo() *descriptorpb.GeneratedCodeInfo {
   495  	if x != nil {
   496  		return x.GeneratedCodeInfo
   497  	}
   498  	return nil
   499  }
   500  
   501  var File_google_protobuf_compiler_plugin_proto protoreflect.FileDescriptor
   502  
   503  var file_google_protobuf_compiler_plugin_proto_rawDesc = []byte{
   504  	0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   505  	0x66, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69,
   506  	0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   507  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
   508  	0x72, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   509  	0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
   510  	0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14,
   511  	0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d,
   512  	0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20,
   513  	0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61,
   514  	0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68,
   515  	0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
   516  	0x52, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x22, 0xcf, 0x02, 0x0a, 0x14, 0x43, 0x6f, 0x64,
   517  	0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   518  	0x74, 0x12, 0x28, 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x67, 0x65, 0x6e,
   519  	0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x66, 0x69, 0x6c,
   520  	0x65, 0x54, 0x6f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70,
   521  	0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
   522  	0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x72, 0x6f,
   523  	0x74, 0x6f, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e,
   524  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   525  	0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72,
   526  	0x6f, 0x74, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x5c,
   527  	0x0a, 0x17, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x64, 0x65,
   528  	0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32,
   529  	0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   530  	0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
   531  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x15, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c,
   532  	0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x4c, 0x0a, 0x10,
   533  	0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
   534  	0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   535  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65,
   536  	0x72, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x69,
   537  	0x6c, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x85, 0x04, 0x0a, 0x15, 0x43,
   538  	0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70,
   539  	0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20,
   540  	0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x75,
   541  	0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73,
   542  	0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65,
   543  	0x64, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x69, 0x6e,
   544  	0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
   545  	0x28, 0x05, 0x52, 0x0e, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x45, 0x64, 0x69, 0x74, 0x69,
   546  	0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x65, 0x64,
   547  	0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78,
   548  	0x69, 0x6d, 0x75, 0x6d, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x04, 0x66,
   549  	0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   550  	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70,
   551  	0x69, 0x6c, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
   552  	0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52,
   553  	0x04, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0xb1, 0x01, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12,
   554  	0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
   555  	0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
   556  	0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73,
   557  	0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63,
   558  	0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,
   559  	0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
   560  	0x65, 0x64, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x10, 0x20, 0x01,
   561  	0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   562  	0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f,
   563  	0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,
   564  	0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x57, 0x0a, 0x07, 0x46, 0x65, 0x61,
   565  	0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x45, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f,
   566  	0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x45, 0x41, 0x54, 0x55, 0x52,
   567  	0x45, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x33, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41,
   568  	0x4c, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x46, 0x45, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x53,
   569  	0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x53, 0x5f, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x53,
   570  	0x10, 0x02, 0x42, 0x72, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   571  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c,
   572  	0x65, 0x72, 0x42, 0x0c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73,
   573  	0x5a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
   574  	0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70,
   575  	0x65, 0x73, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x70, 0x62, 0xaa, 0x02, 0x18, 0x47, 0x6f,
   576  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, 0x6f,
   577  	0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72,
   578  }
   579  
   580  var (
   581  	file_google_protobuf_compiler_plugin_proto_rawDescOnce sync.Once
   582  	file_google_protobuf_compiler_plugin_proto_rawDescData = file_google_protobuf_compiler_plugin_proto_rawDesc
   583  )
   584  
   585  func file_google_protobuf_compiler_plugin_proto_rawDescGZIP() []byte {
   586  	file_google_protobuf_compiler_plugin_proto_rawDescOnce.Do(func() {
   587  		file_google_protobuf_compiler_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_compiler_plugin_proto_rawDescData)
   588  	})
   589  	return file_google_protobuf_compiler_plugin_proto_rawDescData
   590  }
   591  
   592  var file_google_protobuf_compiler_plugin_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   593  var file_google_protobuf_compiler_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   594  var file_google_protobuf_compiler_plugin_proto_goTypes = []interface{}{
   595  	(CodeGeneratorResponse_Feature)(0),       // 0: google.protobuf.compiler.CodeGeneratorResponse.Feature
   596  	(*Version)(nil),                          // 1: google.protobuf.compiler.Version
   597  	(*CodeGeneratorRequest)(nil),             // 2: google.protobuf.compiler.CodeGeneratorRequest
   598  	(*CodeGeneratorResponse)(nil),            // 3: google.protobuf.compiler.CodeGeneratorResponse
   599  	(*CodeGeneratorResponse_File)(nil),       // 4: google.protobuf.compiler.CodeGeneratorResponse.File
   600  	(*descriptorpb.FileDescriptorProto)(nil), // 5: google.protobuf.FileDescriptorProto
   601  	(*descriptorpb.GeneratedCodeInfo)(nil),   // 6: google.protobuf.GeneratedCodeInfo
   602  }
   603  var file_google_protobuf_compiler_plugin_proto_depIdxs = []int32{
   604  	5, // 0: google.protobuf.compiler.CodeGeneratorRequest.proto_file:type_name -> google.protobuf.FileDescriptorProto
   605  	5, // 1: google.protobuf.compiler.CodeGeneratorRequest.source_file_descriptors:type_name -> google.protobuf.FileDescriptorProto
   606  	1, // 2: google.protobuf.compiler.CodeGeneratorRequest.compiler_version:type_name -> google.protobuf.compiler.Version
   607  	4, // 3: google.protobuf.compiler.CodeGeneratorResponse.file:type_name -> google.protobuf.compiler.CodeGeneratorResponse.File
   608  	6, // 4: google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info:type_name -> google.protobuf.GeneratedCodeInfo
   609  	5, // [5:5] is the sub-list for method output_type
   610  	5, // [5:5] is the sub-list for method input_type
   611  	5, // [5:5] is the sub-list for extension type_name
   612  	5, // [5:5] is the sub-list for extension extendee
   613  	0, // [0:5] is the sub-list for field type_name
   614  }
   615  
   616  func init() { file_google_protobuf_compiler_plugin_proto_init() }
   617  func file_google_protobuf_compiler_plugin_proto_init() {
   618  	if File_google_protobuf_compiler_plugin_proto != nil {
   619  		return
   620  	}
   621  	if !protoimpl.UnsafeEnabled {
   622  		file_google_protobuf_compiler_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   623  			switch v := v.(*Version); i {
   624  			case 0:
   625  				return &v.state
   626  			case 1:
   627  				return &v.sizeCache
   628  			case 2:
   629  				return &v.unknownFields
   630  			default:
   631  				return nil
   632  			}
   633  		}
   634  		file_google_protobuf_compiler_plugin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   635  			switch v := v.(*CodeGeneratorRequest); i {
   636  			case 0:
   637  				return &v.state
   638  			case 1:
   639  				return &v.sizeCache
   640  			case 2:
   641  				return &v.unknownFields
   642  			default:
   643  				return nil
   644  			}
   645  		}
   646  		file_google_protobuf_compiler_plugin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   647  			switch v := v.(*CodeGeneratorResponse); i {
   648  			case 0:
   649  				return &v.state
   650  			case 1:
   651  				return &v.sizeCache
   652  			case 2:
   653  				return &v.unknownFields
   654  			default:
   655  				return nil
   656  			}
   657  		}
   658  		file_google_protobuf_compiler_plugin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   659  			switch v := v.(*CodeGeneratorResponse_File); i {
   660  			case 0:
   661  				return &v.state
   662  			case 1:
   663  				return &v.sizeCache
   664  			case 2:
   665  				return &v.unknownFields
   666  			default:
   667  				return nil
   668  			}
   669  		}
   670  	}
   671  	type x struct{}
   672  	out := protoimpl.TypeBuilder{
   673  		File: protoimpl.DescBuilder{
   674  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   675  			RawDescriptor: file_google_protobuf_compiler_plugin_proto_rawDesc,
   676  			NumEnums:      1,
   677  			NumMessages:   4,
   678  			NumExtensions: 0,
   679  			NumServices:   0,
   680  		},
   681  		GoTypes:           file_google_protobuf_compiler_plugin_proto_goTypes,
   682  		DependencyIndexes: file_google_protobuf_compiler_plugin_proto_depIdxs,
   683  		EnumInfos:         file_google_protobuf_compiler_plugin_proto_enumTypes,
   684  		MessageInfos:      file_google_protobuf_compiler_plugin_proto_msgTypes,
   685  	}.Build()
   686  	File_google_protobuf_compiler_plugin_proto = out.File
   687  	file_google_protobuf_compiler_plugin_proto_rawDesc = nil
   688  	file_google_protobuf_compiler_plugin_proto_goTypes = nil
   689  	file_google_protobuf_compiler_plugin_proto_depIdxs = nil
   690  }
   691  

View as plain text