graphqlc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExecutableDirectiveLocation_name = map[int32]string{
		0: "QUERY",
		1: "MUTATION",
		2: "SUBSCRIPTION",
		3: "FIELD",
		4: "FRAGMENT_DEFINITION",
		5: "FRAGMENT_SPREAD",
		6: "INLINE_FRAGMENT",
	}
	ExecutableDirectiveLocation_value = map[string]int32{
		"QUERY":               0,
		"MUTATION":            1,
		"SUBSCRIPTION":        2,
		"FIELD":               3,
		"FRAGMENT_DEFINITION": 4,
		"FRAGMENT_SPREAD":     5,
		"INLINE_FRAGMENT":     6,
	}
)

Enum value maps for ExecutableDirectiveLocation.

View Source
var (
	TypeSystemDirectiveLocation_name = map[int32]string{
		0:  "SCHEMA",
		1:  "SCALAR",
		2:  "OBJECT",
		3:  "FIELD_DEFINITION",
		4:  "ARGUMENT_DEFINITION",
		5:  "INTERFACE",
		6:  "UNION",
		7:  "ENUM",
		8:  "ENUM_VALUE",
		9:  "INPUT_OBJECT",
		10: "INPUT_FIELD_DEFINITION",
	}
	TypeSystemDirectiveLocation_value = map[string]int32{
		"SCHEMA":                 0,
		"SCALAR":                 1,
		"OBJECT":                 2,
		"FIELD_DEFINITION":       3,
		"ARGUMENT_DEFINITION":    4,
		"INTERFACE":              5,
		"UNION":                  6,
		"ENUM":                   7,
		"ENUM_VALUE":             8,
		"INPUT_OBJECT":           9,
		"INPUT_FIELD_DEFINITION": 10,
	}
)

Enum value maps for TypeSystemDirectiveLocation.

View Source
var File_descriptor_proto protoreflect.FileDescriptor
View Source
var File_plugin_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ArgumentDescriptorProto

type ArgumentDescriptorProto struct {
	Name  string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value *ValueDescriptorProto `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ArgumentDescriptorProto) Descriptor deprecated

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

Deprecated: Use ArgumentDescriptorProto.ProtoReflect.Descriptor instead.

func (*ArgumentDescriptorProto) GetName

func (x *ArgumentDescriptorProto) GetName() string

func (*ArgumentDescriptorProto) GetValue

func (*ArgumentDescriptorProto) ProtoMessage

func (*ArgumentDescriptorProto) ProtoMessage()

func (*ArgumentDescriptorProto) ProtoReflect

func (x *ArgumentDescriptorProto) ProtoReflect() protoreflect.Message

func (*ArgumentDescriptorProto) Reset

func (x *ArgumentDescriptorProto) Reset()

func (*ArgumentDescriptorProto) String

func (x *ArgumentDescriptorProto) String() string

type CodeGeneratorRequest

type CodeGeneratorRequest struct {

	// The .graphql files that were explicitly listed on the command-line.
	// The code generator should generate code only for these files.
	// Each files descriptor will be included in graphql_file, defined below.
	FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate,proto3" json:"file_to_generate,omitempty"`
	Parameter      string   `protobuf:"bytes,2,opt,name=parameter,proto3" json:"parameter,omitempty"`
	// FileDescriptorGraphql for all files in files_to_generate.
	GraphqlFile []*FileDescriptorGraphql `protobuf:"bytes,15,rep,name=graphql_file,json=graphqlFile,proto3" json:"graphql_file,omitempty"`
	// The version number of graphql compiler
	CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion,proto3" json:"compiler_version,omitempty"`
	// contains filtered or unexported fields
}

An encoded CodeGeneratorRequest is written to the plugins stdin.

func (*CodeGeneratorRequest) Descriptor deprecated

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

Deprecated: Use CodeGeneratorRequest.ProtoReflect.Descriptor instead.

func (*CodeGeneratorRequest) GetCompilerVersion

func (x *CodeGeneratorRequest) GetCompilerVersion() *Version

func (*CodeGeneratorRequest) GetFileToGenerate

func (x *CodeGeneratorRequest) GetFileToGenerate() []string

func (*CodeGeneratorRequest) GetGraphqlFile

func (x *CodeGeneratorRequest) GetGraphqlFile() []*FileDescriptorGraphql

func (*CodeGeneratorRequest) GetParameter

func (x *CodeGeneratorRequest) GetParameter() string

func (*CodeGeneratorRequest) ProtoMessage

func (*CodeGeneratorRequest) ProtoMessage()

func (*CodeGeneratorRequest) ProtoReflect

func (x *CodeGeneratorRequest) ProtoReflect() protoreflect.Message

func (*CodeGeneratorRequest) Reset

func (x *CodeGeneratorRequest) Reset()

func (*CodeGeneratorRequest) String

func (x *CodeGeneratorRequest) String() string

type CodeGeneratorResponse

type CodeGeneratorResponse struct {

	// Error message. If non-empty, code generation failed. The plugin
	// process should exist with status code zero even if it reports an
	// error in this way.
	//
	// This should be used to indicate errors in .graphql files which
	// prevent the code generator from generating correct code. Errors
	// which indicate a problem in graphqlc itself -- such as the input
	// CodeGeneratorRequest being unparseable -- should be reported by
	// writing a message to stderr and exiting with a non-zero status code.
	Error string                        `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	File  []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

The plugin writes an encoded CodeGeneratorResponse to stdout.

func (*CodeGeneratorResponse) Descriptor deprecated

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

Deprecated: Use CodeGeneratorResponse.ProtoReflect.Descriptor instead.

func (*CodeGeneratorResponse) GetError

func (x *CodeGeneratorResponse) GetError() string

func (*CodeGeneratorResponse) GetFile

func (*CodeGeneratorResponse) ProtoMessage

func (*CodeGeneratorResponse) ProtoMessage()

func (*CodeGeneratorResponse) ProtoReflect

func (x *CodeGeneratorResponse) ProtoReflect() protoreflect.Message

func (*CodeGeneratorResponse) Reset

func (x *CodeGeneratorResponse) Reset()

func (*CodeGeneratorResponse) String

func (x *CodeGeneratorResponse) String() string

type CodeGeneratorResponse_File

type CodeGeneratorResponse_File struct {

	// The file name relative to the output directory. The name must
	// not contain "." or ".." components and must be relative. The
	// file cannot lie outside the output directory. "/" must used as
	// a path separtor, not "\".
	//
	// If the name is ommited the content will be appended to the
	// previous file. This allows the generator to break large files
	// into small chunks, and allows the generated text to be streamed
	// back to graphqlc so that large files need not reside completely
	// in memory at one time.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If non-empty, indicates that the named file should already exist,
	// and the content here is to be inserted into that file at a
	// defined insertion point. This feature allows a code generator to
	// extend the output produced by another code generator. The original
	// generator may provide insertion points by placing special
	// annotations in the file that look like:
	//  @@graphqlc_insertion_point(NAME)
	// The annotation can have arbitrary text before and after it on
	// the line which allows it to be placed in a comment. NAME should
	// be replaced with an identifier naming the point -- that is what
	// other generators will use as the insertion_point. Code inserted
	// at this point will be placed immediately above the line
	// containing the insertion point. This allows multiple insertions
	// to the same point to be added in order. The double-@ is intended
	// to make it unlikely that the generated code could contain things
	// that look like insertion points by accident.
	//
	// Note that if the line containing the insertion point begins with
	// whitespace the same whitespace will be added to every line of the
	// inserted text. This is useful for langauges like Python where
	// indentation matters. In these languages the insertion point
	// comment should be indented the same amount as any inserted code
	// will need to be in order to work correctly in that context.
	//
	// The code generator that generates the initial file and the one
	// which inserts into it must both run as part of a single invocation
	// of graphqlc. Code generators are executed in the order in which
	// they appear on the command line.
	//
	// If |insertion_point| is present |name| must also be present.
	InsertionPoint string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint,proto3" json:"insertion_point,omitempty"`
	// The file contents.
	Content string `protobuf:"bytes,15,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

Represents a single generated file.

func (*CodeGeneratorResponse_File) Descriptor deprecated

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

Deprecated: Use CodeGeneratorResponse_File.ProtoReflect.Descriptor instead.

func (*CodeGeneratorResponse_File) GetContent

func (x *CodeGeneratorResponse_File) GetContent() string

func (*CodeGeneratorResponse_File) GetInsertionPoint

func (x *CodeGeneratorResponse_File) GetInsertionPoint() string

func (*CodeGeneratorResponse_File) GetName

func (x *CodeGeneratorResponse_File) GetName() string

func (*CodeGeneratorResponse_File) ProtoMessage

func (*CodeGeneratorResponse_File) ProtoMessage()

func (*CodeGeneratorResponse_File) ProtoReflect

func (*CodeGeneratorResponse_File) Reset

func (x *CodeGeneratorResponse_File) Reset()

func (*CodeGeneratorResponse_File) String

func (x *CodeGeneratorResponse_File) String() string

type DirectiveDefinitionDescriptorProto

type DirectiveDefinitionDescriptorProto struct {
	Description string                                 `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Name        string                                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Arguments   []*InputValueDefinitionDescriptorProto `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty"`
	Locations   []*DirectiveLocationDescriptorProto    `protobuf:"bytes,4,rep,name=locations,proto3" json:"locations,omitempty"`
	// contains filtered or unexported fields
}

func (*DirectiveDefinitionDescriptorProto) Descriptor deprecated

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

Deprecated: Use DirectiveDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*DirectiveDefinitionDescriptorProto) GetArguments

func (*DirectiveDefinitionDescriptorProto) GetDescription

func (x *DirectiveDefinitionDescriptorProto) GetDescription() string

func (*DirectiveDefinitionDescriptorProto) GetLocations

func (*DirectiveDefinitionDescriptorProto) GetName

func (*DirectiveDefinitionDescriptorProto) ProtoMessage

func (*DirectiveDefinitionDescriptorProto) ProtoMessage()

func (*DirectiveDefinitionDescriptorProto) ProtoReflect

func (*DirectiveDefinitionDescriptorProto) Reset

func (*DirectiveDefinitionDescriptorProto) String

type DirectiveDescriptorProto

type DirectiveDescriptorProto struct {
	Name      string                     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Arguments []*ArgumentDescriptorProto `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

func (*DirectiveDescriptorProto) Descriptor deprecated

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

Deprecated: Use DirectiveDescriptorProto.ProtoReflect.Descriptor instead.

func (*DirectiveDescriptorProto) GetArguments

func (*DirectiveDescriptorProto) GetName

func (x *DirectiveDescriptorProto) GetName() string

func (*DirectiveDescriptorProto) ProtoMessage

func (*DirectiveDescriptorProto) ProtoMessage()

func (*DirectiveDescriptorProto) ProtoReflect

func (x *DirectiveDescriptorProto) ProtoReflect() protoreflect.Message

func (*DirectiveDescriptorProto) Reset

func (x *DirectiveDescriptorProto) Reset()

func (*DirectiveDescriptorProto) String

func (x *DirectiveDescriptorProto) String() string

type DirectiveLocationDescriptorProto

type DirectiveLocationDescriptorProto struct {

	// Types that are assignable to Location:
	//	*DirectiveLocationDescriptorProto_ExecutableLocation
	//	*DirectiveLocationDescriptorProto_TypeSystemLocation
	Location isDirectiveLocationDescriptorProto_Location `protobuf_oneof:"location"`
	// contains filtered or unexported fields
}

func (*DirectiveLocationDescriptorProto) Descriptor deprecated

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

Deprecated: Use DirectiveLocationDescriptorProto.ProtoReflect.Descriptor instead.

func (*DirectiveLocationDescriptorProto) GetExecutableLocation

func (*DirectiveLocationDescriptorProto) GetLocation

func (m *DirectiveLocationDescriptorProto) GetLocation() isDirectiveLocationDescriptorProto_Location

func (*DirectiveLocationDescriptorProto) GetTypeSystemLocation

func (*DirectiveLocationDescriptorProto) ProtoMessage

func (*DirectiveLocationDescriptorProto) ProtoMessage()

func (*DirectiveLocationDescriptorProto) ProtoReflect

func (*DirectiveLocationDescriptorProto) Reset

func (*DirectiveLocationDescriptorProto) String

type DirectiveLocationDescriptorProto_ExecutableLocation

type DirectiveLocationDescriptorProto_ExecutableLocation struct {
	ExecutableLocation ExecutableDirectiveLocation `` /* 127-byte string literal not displayed */
}

type DirectiveLocationDescriptorProto_Location

type DirectiveLocationDescriptorProto_Location = isDirectiveLocationDescriptorProto_Location

type DirectiveLocationDescriptorProto_TypeSystemLocation

type DirectiveLocationDescriptorProto_TypeSystemLocation struct {
	TypeSystemLocation TypeSystemDirectiveLocation `` /* 128-byte string literal not displayed */
}

type EnumTypeDefinitionDescriptorProto

type EnumTypeDefinitionDescriptorProto struct {
	Description string                            `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Name        string                            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Directives  []*DirectiveDescriptorProto       `protobuf:"bytes,3,rep,name=directives,proto3" json:"directives,omitempty"`
	Values      []*EnumValueDefinitionDescription `protobuf:"bytes,4,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumTypeDefinitionDescriptorProto) Descriptor deprecated

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

Deprecated: Use EnumTypeDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*EnumTypeDefinitionDescriptorProto) GetDescription

func (x *EnumTypeDefinitionDescriptorProto) GetDescription() string

func (*EnumTypeDefinitionDescriptorProto) GetDirectives

func (*EnumTypeDefinitionDescriptorProto) GetName

func (*EnumTypeDefinitionDescriptorProto) GetValues

func (*EnumTypeDefinitionDescriptorProto) ProtoMessage

func (*EnumTypeDefinitionDescriptorProto) ProtoMessage()

func (*EnumTypeDefinitionDescriptorProto) ProtoReflect

func (*EnumTypeDefinitionDescriptorProto) Reset

func (*EnumTypeDefinitionDescriptorProto) String

type EnumTypeExtensionDefinitionDescriptorProto

type EnumTypeExtensionDefinitionDescriptorProto struct {
	Name       string                            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Directives []*DirectiveDescriptorProto       `protobuf:"bytes,2,rep,name=directives,proto3" json:"directives,omitempty"`
	Values     []*EnumValueDefinitionDescription `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumTypeExtensionDefinitionDescriptorProto) Descriptor deprecated

Deprecated: Use EnumTypeExtensionDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*EnumTypeExtensionDefinitionDescriptorProto) GetDirectives

func (*EnumTypeExtensionDefinitionDescriptorProto) GetName

func (*EnumTypeExtensionDefinitionDescriptorProto) GetValues

func (*EnumTypeExtensionDefinitionDescriptorProto) ProtoMessage

func (*EnumTypeExtensionDefinitionDescriptorProto) ProtoReflect

func (*EnumTypeExtensionDefinitionDescriptorProto) Reset

func (*EnumTypeExtensionDefinitionDescriptorProto) String

type EnumValueDefinitionDescription

type EnumValueDefinitionDescription struct {
	Description string                      `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Value       string                      `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Directives  []*DirectiveDescriptorProto `protobuf:"bytes,3,rep,name=directives,proto3" json:"directives,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumValueDefinitionDescription) Descriptor deprecated

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

Deprecated: Use EnumValueDefinitionDescription.ProtoReflect.Descriptor instead.

func (*EnumValueDefinitionDescription) GetDescription

func (x *EnumValueDefinitionDescription) GetDescription() string

func (*EnumValueDefinitionDescription) GetDirectives

func (*EnumValueDefinitionDescription) GetValue

func (x *EnumValueDefinitionDescription) GetValue() string

func (*EnumValueDefinitionDescription) ProtoMessage

func (*EnumValueDefinitionDescription) ProtoMessage()

func (*EnumValueDefinitionDescription) ProtoReflect

func (*EnumValueDefinitionDescription) Reset

func (x *EnumValueDefinitionDescription) Reset()

func (*EnumValueDefinitionDescription) String

type EnumValueDescriptorProto

type EnumValueDescriptorProto struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*EnumValueDescriptorProto) Descriptor deprecated

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

Deprecated: Use EnumValueDescriptorProto.ProtoReflect.Descriptor instead.

func (*EnumValueDescriptorProto) GetValue

func (x *EnumValueDescriptorProto) GetValue() string

func (*EnumValueDescriptorProto) ProtoMessage

func (*EnumValueDescriptorProto) ProtoMessage()

func (*EnumValueDescriptorProto) ProtoReflect

func (x *EnumValueDescriptorProto) ProtoReflect() protoreflect.Message

func (*EnumValueDescriptorProto) Reset

func (x *EnumValueDescriptorProto) Reset()

func (*EnumValueDescriptorProto) String

func (x *EnumValueDescriptorProto) String() string

type ExecutableDirectiveLocation

type ExecutableDirectiveLocation int32
const (
	ExecutableDirectiveLocation_QUERY               ExecutableDirectiveLocation = 0
	ExecutableDirectiveLocation_MUTATION            ExecutableDirectiveLocation = 1
	ExecutableDirectiveLocation_SUBSCRIPTION        ExecutableDirectiveLocation = 2
	ExecutableDirectiveLocation_FIELD               ExecutableDirectiveLocation = 3
	ExecutableDirectiveLocation_FRAGMENT_DEFINITION ExecutableDirectiveLocation = 4
	ExecutableDirectiveLocation_FRAGMENT_SPREAD     ExecutableDirectiveLocation = 5
	ExecutableDirectiveLocation_INLINE_FRAGMENT     ExecutableDirectiveLocation = 6
)

func (ExecutableDirectiveLocation) Descriptor

func (ExecutableDirectiveLocation) Enum

func (ExecutableDirectiveLocation) EnumDescriptor deprecated

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

Deprecated: Use ExecutableDirectiveLocation.Descriptor instead.

func (ExecutableDirectiveLocation) Number

func (ExecutableDirectiveLocation) String

func (ExecutableDirectiveLocation) Type

type FieldDefinitionDescriptorProto

type FieldDefinitionDescriptorProto struct {
	Description string                                 `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Name        string                                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Arguments   []*InputValueDefinitionDescriptorProto `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty"`
	Type        *TypeDescriptorProto                   `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Directives  []*DirectiveDescriptorProto            `protobuf:"bytes,5,rep,name=directives,proto3" json:"directives,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldDefinitionDescriptorProto) Descriptor deprecated

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

Deprecated: Use FieldDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*FieldDefinitionDescriptorProto) GetArguments

func (*FieldDefinitionDescriptorProto) GetDescription

func (x *FieldDefinitionDescriptorProto) GetDescription() string

func (*FieldDefinitionDescriptorProto) GetDirectives

func (*FieldDefinitionDescriptorProto) GetName

func (*FieldDefinitionDescriptorProto) GetType

func (*FieldDefinitionDescriptorProto) ProtoMessage

func (*FieldDefinitionDescriptorProto) ProtoMessage()

func (*FieldDefinitionDescriptorProto) ProtoReflect

func (*FieldDefinitionDescriptorProto) Reset

func (x *FieldDefinitionDescriptorProto) Reset()

func (*FieldDefinitionDescriptorProto) String

type FileDescriptorGraphql

type FileDescriptorGraphql struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // file name, relative to root of source tree
	// All top-level definitions in this file.
	Schema         *SchemaDescriptorProto                      `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
	TypeExtensions []*TypeSystemExtensionDescriptorProto       `protobuf:"bytes,10,rep,name=type_extensions,json=typeExtensions,proto3" json:"type_extensions,omitempty"`
	Directives     []*DirectiveDefinitionDescriptorProto       `protobuf:"bytes,9,rep,name=directives,proto3" json:"directives,omitempty"`
	Scalars        []*ScalarTypeDefinitionDescriptorProto      `protobuf:"bytes,3,rep,name=scalars,proto3" json:"scalars,omitempty"`
	Objects        []*ObjectTypeDefinitionDescriptorProto      `protobuf:"bytes,4,rep,name=objects,proto3" json:"objects,omitempty"`
	Interfaces     []*InterfaceTypeDefinitionDescriptorProto   `protobuf:"bytes,5,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
	Unions         []*UnionTypeDefinitionDescriptorProto       `protobuf:"bytes,6,rep,name=unions,proto3" json:"unions,omitempty"`
	Enums          []*EnumTypeDefinitionDescriptorProto        `protobuf:"bytes,7,rep,name=enums,proto3" json:"enums,omitempty"`
	InputObjects   []*InputObjectTypeDefinitionDescriptorProto `protobuf:"bytes,8,rep,name=input_objects,json=inputObjects,proto3" json:"input_objects,omitempty"`
	// contains filtered or unexported fields
}

Describe a complete .graphql file

func (*FileDescriptorGraphql) Descriptor deprecated

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

Deprecated: Use FileDescriptorGraphql.ProtoReflect.Descriptor instead.

func (*FileDescriptorGraphql) GetDirectives

func (*FileDescriptorGraphql) GetEnums

func (*FileDescriptorGraphql) GetInputObjects

func (*FileDescriptorGraphql) GetInterfaces

func (*FileDescriptorGraphql) GetName

func (x *FileDescriptorGraphql) GetName() string

func (*FileDescriptorGraphql) GetObjects

func (*FileDescriptorGraphql) GetScalars

func (*FileDescriptorGraphql) GetSchema

func (*FileDescriptorGraphql) GetTypeExtensions

func (*FileDescriptorGraphql) GetUnions

func (*FileDescriptorGraphql) ProtoMessage

func (*FileDescriptorGraphql) ProtoMessage()

func (*FileDescriptorGraphql) ProtoReflect

func (x *FileDescriptorGraphql) ProtoReflect() protoreflect.Message

func (*FileDescriptorGraphql) Reset

func (x *FileDescriptorGraphql) Reset()

func (*FileDescriptorGraphql) String

func (x *FileDescriptorGraphql) String() string

type FileDescriptorSet

type FileDescriptorSet struct {
	File []*FileDescriptorGraphql `protobuf:"bytes,1,rep,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

The protocol compiler can output a FileDescriptorSet containing the .graphql file it parses.

func (*FileDescriptorSet) Descriptor deprecated

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

Deprecated: Use FileDescriptorSet.ProtoReflect.Descriptor instead.

func (*FileDescriptorSet) GetFile

func (x *FileDescriptorSet) GetFile() []*FileDescriptorGraphql

func (*FileDescriptorSet) ProtoMessage

func (*FileDescriptorSet) ProtoMessage()

func (*FileDescriptorSet) ProtoReflect

func (x *FileDescriptorSet) ProtoReflect() protoreflect.Message

func (*FileDescriptorSet) Reset

func (x *FileDescriptorSet) Reset()

func (*FileDescriptorSet) String

func (x *FileDescriptorSet) String() string

type Generator

type Generator struct {
	Request  *CodeGeneratorRequest
	Response *CodeGeneratorResponse

	LogPrefix string
}

func New

func New() *Generator

func (*Generator) Error

func (g *Generator) Error(err error, msgs ...string)

Error reports a problem, including an error, and exits the program.

func (*Generator) Fail

func (g *Generator) Fail(msgs ...string)

Fail reports a problem and exits the program.

type InputObjectTypeDefinitionDescriptorProto

type InputObjectTypeDefinitionDescriptorProto struct {
	Description string                                 `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Name        string                                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Directives  []*DirectiveDescriptorProto            `protobuf:"bytes,3,rep,name=directives,proto3" json:"directives,omitempty"`
	Fields      []*InputValueDefinitionDescriptorProto `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*InputObjectTypeDefinitionDescriptorProto) Descriptor deprecated

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

Deprecated: Use InputObjectTypeDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*InputObjectTypeDefinitionDescriptorProto) GetDescription

func (*InputObjectTypeDefinitionDescriptorProto) GetDirectives

func (*InputObjectTypeDefinitionDescriptorProto) GetFields

func (*InputObjectTypeDefinitionDescriptorProto) GetName

func (*InputObjectTypeDefinitionDescriptorProto) ProtoMessage

func (*InputObjectTypeDefinitionDescriptorProto) ProtoReflect

func (*InputObjectTypeDefinitionDescriptorProto) Reset

func (*InputObjectTypeDefinitionDescriptorProto) String

type InputObjectTypeExtensionDefinitionDescriptorProto

type InputObjectTypeExtensionDefinitionDescriptorProto struct {
	Name       string                                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Directives []*DirectiveDescriptorProto            `protobuf:"bytes,2,rep,name=directives,proto3" json:"directives,omitempty"`
	Fields     []*InputValueDefinitionDescriptorProto `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*InputObjectTypeExtensionDefinitionDescriptorProto) Descriptor deprecated

Deprecated: Use InputObjectTypeExtensionDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*InputObjectTypeExtensionDefinitionDescriptorProto) GetDirectives

func (*InputObjectTypeExtensionDefinitionDescriptorProto) GetFields

func (*InputObjectTypeExtensionDefinitionDescriptorProto) GetName

func (*InputObjectTypeExtensionDefinitionDescriptorProto) ProtoMessage

func (*InputObjectTypeExtensionDefinitionDescriptorProto) ProtoReflect

func (*InputObjectTypeExtensionDefinitionDescriptorProto) Reset

func (*InputObjectTypeExtensionDefinitionDescriptorProto) String

type InputValueDefinitionDescriptorProto

type InputValueDefinitionDescriptorProto struct {
	Description  string                      `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Name         string                      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type         *TypeDescriptorProto        `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	DefaultValue *ValueDescriptorProto       `protobuf:"bytes,4,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	Directives   []*DirectiveDescriptorProto `protobuf:"bytes,5,rep,name=directives,proto3" json:"directives,omitempty"`
	// contains filtered or unexported fields
}

func (*InputValueDefinitionDescriptorProto) Descriptor deprecated

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

Deprecated: Use InputValueDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*InputValueDefinitionDescriptorProto) GetDefaultValue

func (*InputValueDefinitionDescriptorProto) GetDescription

func (x *InputValueDefinitionDescriptorProto) GetDescription() string

func (*InputValueDefinitionDescriptorProto) GetDirectives

func (*InputValueDefinitionDescriptorProto) GetName

func (*InputValueDefinitionDescriptorProto) GetType

func (*InputValueDefinitionDescriptorProto) ProtoMessage

func (*InputValueDefinitionDescriptorProto) ProtoMessage()

func (*InputValueDefinitionDescriptorProto) ProtoReflect

func (*InputValueDefinitionDescriptorProto) Reset

func (*InputValueDefinitionDescriptorProto) String

type InterfaceTypeDefinitionDescriptorProto

type InterfaceTypeDefinitionDescriptorProto struct {
	Description string                            `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Name        string                            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Directives  []*DirectiveDescriptorProto       `protobuf:"bytes,3,rep,name=directives,proto3" json:"directives,omitempty"`
	Fields      []*FieldDefinitionDescriptorProto `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*InterfaceTypeDefinitionDescriptorProto) Descriptor deprecated

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

Deprecated: Use InterfaceTypeDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*InterfaceTypeDefinitionDescriptorProto) GetDescription

func (x *InterfaceTypeDefinitionDescriptorProto) GetDescription() string

func (*InterfaceTypeDefinitionDescriptorProto) GetDirectives

func (*InterfaceTypeDefinitionDescriptorProto) GetFields

func (*InterfaceTypeDefinitionDescriptorProto) GetName

func (*InterfaceTypeDefinitionDescriptorProto) ProtoMessage

func (*InterfaceTypeDefinitionDescriptorProto) ProtoReflect

func (*InterfaceTypeDefinitionDescriptorProto) Reset

func (*InterfaceTypeDefinitionDescriptorProto) String

type InterfaceTypeExtensionDescriptorProto

type InterfaceTypeExtensionDescriptorProto struct {
	Name       string                            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Directives []*DirectiveDescriptorProto       `protobuf:"bytes,2,rep,name=directives,proto3" json:"directives,omitempty"`
	Fields     []*FieldDefinitionDescriptorProto `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*InterfaceTypeExtensionDescriptorProto) Descriptor deprecated

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

Deprecated: Use InterfaceTypeExtensionDescriptorProto.ProtoReflect.Descriptor instead.

func (*InterfaceTypeExtensionDescriptorProto) GetDirectives

func (*InterfaceTypeExtensionDescriptorProto) GetFields

func (*InterfaceTypeExtensionDescriptorProto) GetName

func (*InterfaceTypeExtensionDescriptorProto) ProtoMessage

func (*InterfaceTypeExtensionDescriptorProto) ProtoMessage()

func (*InterfaceTypeExtensionDescriptorProto) ProtoReflect

func (*InterfaceTypeExtensionDescriptorProto) Reset

func (*InterfaceTypeExtensionDescriptorProto) String

type ListTypeDescriptorProto

type ListTypeDescriptorProto struct {
	Type *TypeDescriptorProto `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTypeDescriptorProto) Descriptor deprecated

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

Deprecated: Use ListTypeDescriptorProto.ProtoReflect.Descriptor instead.

func (*ListTypeDescriptorProto) GetType

func (*ListTypeDescriptorProto) ProtoMessage

func (*ListTypeDescriptorProto) ProtoMessage()

func (*ListTypeDescriptorProto) ProtoReflect

func (x *ListTypeDescriptorProto) ProtoReflect() protoreflect.Message

func (*ListTypeDescriptorProto) Reset

func (x *ListTypeDescriptorProto) Reset()

func (*ListTypeDescriptorProto) String

func (x *ListTypeDescriptorProto) String() string

type ListValueDescriptorProto

type ListValueDescriptorProto struct {
	Values []*ValueDescriptorProto `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*ListValueDescriptorProto) Descriptor deprecated

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

Deprecated: Use ListValueDescriptorProto.ProtoReflect.Descriptor instead.

func (*ListValueDescriptorProto) GetValues

func (*ListValueDescriptorProto) ProtoMessage

func (*ListValueDescriptorProto) ProtoMessage()

func (*ListValueDescriptorProto) ProtoReflect

func (x *ListValueDescriptorProto) ProtoReflect() protoreflect.Message

func (*ListValueDescriptorProto) Reset

func (x *ListValueDescriptorProto) Reset()

func (*ListValueDescriptorProto) String

func (x *ListValueDescriptorProto) String() string

type NamedTypeDescriptorProto

type NamedTypeDescriptorProto struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*NamedTypeDescriptorProto) Descriptor deprecated

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

Deprecated: Use NamedTypeDescriptorProto.ProtoReflect.Descriptor instead.

func (*NamedTypeDescriptorProto) GetName

func (x *NamedTypeDescriptorProto) GetName() string

func (*NamedTypeDescriptorProto) ProtoMessage

func (*NamedTypeDescriptorProto) ProtoMessage()

func (*NamedTypeDescriptorProto) ProtoReflect

func (x *NamedTypeDescriptorProto) ProtoReflect() protoreflect.Message

func (*NamedTypeDescriptorProto) Reset

func (x *NamedTypeDescriptorProto) Reset()

func (*NamedTypeDescriptorProto) String

func (x *NamedTypeDescriptorProto) String() string

type NonNullTypeDescriptorProto

type NonNullTypeDescriptorProto struct {

	// Types that are assignable to Type:
	//	*NonNullTypeDescriptorProto_NamedType
	//	*NonNullTypeDescriptorProto_ListType
	Type isNonNullTypeDescriptorProto_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*NonNullTypeDescriptorProto) Descriptor deprecated

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

Deprecated: Use NonNullTypeDescriptorProto.ProtoReflect.Descriptor instead.

func (*NonNullTypeDescriptorProto) GetListType

func (*NonNullTypeDescriptorProto) GetNamedType

func (*NonNullTypeDescriptorProto) GetType

func (m *NonNullTypeDescriptorProto) GetType() isNonNullTypeDescriptorProto_Type

func (*NonNullTypeDescriptorProto) ProtoMessage

func (*NonNullTypeDescriptorProto) ProtoMessage()

func (*NonNullTypeDescriptorProto) ProtoReflect

func (*NonNullTypeDescriptorProto) Reset

func (x *NonNullTypeDescriptorProto) Reset()

func (*NonNullTypeDescriptorProto) String

func (x *NonNullTypeDescriptorProto) String() string

type NonNullTypeDescriptorProto_ListType

type NonNullTypeDescriptorProto_ListType struct {
	ListType *ListTypeDescriptorProto `protobuf:"bytes,2,opt,name=list_type,json=listType,proto3,oneof"`
}

type NonNullTypeDescriptorProto_NamedType

type NonNullTypeDescriptorProto_NamedType struct {
	NamedType *NamedTypeDescriptorProto `protobuf:"bytes,1,opt,name=named_type,json=namedType,proto3,oneof"`
}

type NonNullTypeDescriptorProto_Type

type NonNullTypeDescriptorProto_Type = isNonNullTypeDescriptorProto_Type

type NullValueDescriptorProto

type NullValueDescriptorProto struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*NullValueDescriptorProto) Descriptor deprecated

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

Deprecated: Use NullValueDescriptorProto.ProtoReflect.Descriptor instead.

func (*NullValueDescriptorProto) GetValue

func (x *NullValueDescriptorProto) GetValue() string

func (*NullValueDescriptorProto) ProtoMessage

func (*NullValueDescriptorProto) ProtoMessage()

func (*NullValueDescriptorProto) ProtoReflect

func (x *NullValueDescriptorProto) ProtoReflect() protoreflect.Message

func (*NullValueDescriptorProto) Reset

func (x *NullValueDescriptorProto) Reset()

func (*NullValueDescriptorProto) String

func (x *NullValueDescriptorProto) String() string

type ObjectFieldDescriptorProto

type ObjectFieldDescriptorProto struct {
	Name  string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value *ValueDescriptorProto `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectFieldDescriptorProto) Descriptor deprecated

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

Deprecated: Use ObjectFieldDescriptorProto.ProtoReflect.Descriptor instead.

func (*ObjectFieldDescriptorProto) GetName

func (x *ObjectFieldDescriptorProto) GetName() string

func (*ObjectFieldDescriptorProto) GetValue

func (*ObjectFieldDescriptorProto) ProtoMessage

func (*ObjectFieldDescriptorProto) ProtoMessage()

func (*ObjectFieldDescriptorProto) ProtoReflect

func (*ObjectFieldDescriptorProto) Reset

func (x *ObjectFieldDescriptorProto) Reset()

func (*ObjectFieldDescriptorProto) String

func (x *ObjectFieldDescriptorProto) String() string

type ObjectTypeDefinitionDescriptorProto

type ObjectTypeDefinitionDescriptorProto struct {
	Description string                                    `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Name        string                                    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Implements  []*InterfaceTypeDefinitionDescriptorProto `protobuf:"bytes,3,rep,name=implements,proto3" json:"implements,omitempty"`
	Directives  []*DirectiveDescriptorProto               `protobuf:"bytes,4,rep,name=directives,proto3" json:"directives,omitempty"`
	Fields      []*FieldDefinitionDescriptorProto         `protobuf:"bytes,5,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectTypeDefinitionDescriptorProto) Descriptor deprecated

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

Deprecated: Use ObjectTypeDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*ObjectTypeDefinitionDescriptorProto) GetDescription

func (x *ObjectTypeDefinitionDescriptorProto) GetDescription() string

func (*ObjectTypeDefinitionDescriptorProto) GetDirectives

func (*ObjectTypeDefinitionDescriptorProto) GetFields

func (*ObjectTypeDefinitionDescriptorProto) GetImplements

func (*ObjectTypeDefinitionDescriptorProto) GetName

func (*ObjectTypeDefinitionDescriptorProto) ProtoMessage

func (*ObjectTypeDefinitionDescriptorProto) ProtoMessage()

func (*ObjectTypeDefinitionDescriptorProto) ProtoReflect

func (*ObjectTypeDefinitionDescriptorProto) Reset

func (*ObjectTypeDefinitionDescriptorProto) String

type ObjectTypeExtensionDescriptorProto

type ObjectTypeExtensionDescriptorProto struct {
	Name       string                                    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Implements []*InterfaceTypeDefinitionDescriptorProto `protobuf:"bytes,3,rep,name=implements,proto3" json:"implements,omitempty"`
	Directives []*DirectiveDescriptorProto               `protobuf:"bytes,4,rep,name=directives,proto3" json:"directives,omitempty"`
	Fields     []*FieldDefinitionDescriptorProto         `protobuf:"bytes,5,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectTypeExtensionDescriptorProto) Descriptor deprecated

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

Deprecated: Use ObjectTypeExtensionDescriptorProto.ProtoReflect.Descriptor instead.

func (*ObjectTypeExtensionDescriptorProto) GetDirectives

func (*ObjectTypeExtensionDescriptorProto) GetFields

func (*ObjectTypeExtensionDescriptorProto) GetImplements

func (*ObjectTypeExtensionDescriptorProto) GetName

func (*ObjectTypeExtensionDescriptorProto) ProtoMessage

func (*ObjectTypeExtensionDescriptorProto) ProtoMessage()

func (*ObjectTypeExtensionDescriptorProto) ProtoReflect

func (*ObjectTypeExtensionDescriptorProto) Reset

func (*ObjectTypeExtensionDescriptorProto) String

type ObjectValueDescriptorProto

type ObjectValueDescriptorProto struct {
	Fields []*ObjectFieldDescriptorProto `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectValueDescriptorProto) Descriptor deprecated

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

Deprecated: Use ObjectValueDescriptorProto.ProtoReflect.Descriptor instead.

func (*ObjectValueDescriptorProto) GetFields

func (*ObjectValueDescriptorProto) ProtoMessage

func (*ObjectValueDescriptorProto) ProtoMessage()

func (*ObjectValueDescriptorProto) ProtoReflect

func (*ObjectValueDescriptorProto) Reset

func (x *ObjectValueDescriptorProto) Reset()

func (*ObjectValueDescriptorProto) String

func (x *ObjectValueDescriptorProto) String() string

type ScalarTypeDefinitionDescriptorProto

type ScalarTypeDefinitionDescriptorProto struct {
	Description string                      `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Name        string                      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Directives  []*DirectiveDescriptorProto `protobuf:"bytes,3,rep,name=directives,proto3" json:"directives,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalarTypeDefinitionDescriptorProto) Descriptor deprecated

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

Deprecated: Use ScalarTypeDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*ScalarTypeDefinitionDescriptorProto) GetDescription

func (x *ScalarTypeDefinitionDescriptorProto) GetDescription() string

func (*ScalarTypeDefinitionDescriptorProto) GetDirectives

func (*ScalarTypeDefinitionDescriptorProto) GetName

func (*ScalarTypeDefinitionDescriptorProto) ProtoMessage

func (*ScalarTypeDefinitionDescriptorProto) ProtoMessage()

func (*ScalarTypeDefinitionDescriptorProto) ProtoReflect

func (*ScalarTypeDefinitionDescriptorProto) Reset

func (*ScalarTypeDefinitionDescriptorProto) String

type ScalarTypeExtensionDescriptorProto

type ScalarTypeExtensionDescriptorProto struct {
	Name       string                      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Directives []*DirectiveDescriptorProto `protobuf:"bytes,2,rep,name=directives,proto3" json:"directives,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalarTypeExtensionDescriptorProto) Descriptor deprecated

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

Deprecated: Use ScalarTypeExtensionDescriptorProto.ProtoReflect.Descriptor instead.

func (*ScalarTypeExtensionDescriptorProto) GetDirectives

func (*ScalarTypeExtensionDescriptorProto) GetName

func (*ScalarTypeExtensionDescriptorProto) ProtoMessage

func (*ScalarTypeExtensionDescriptorProto) ProtoMessage()

func (*ScalarTypeExtensionDescriptorProto) ProtoReflect

func (*ScalarTypeExtensionDescriptorProto) Reset

func (*ScalarTypeExtensionDescriptorProto) String

type SchemaDescriptorProto

type SchemaDescriptorProto struct {
	Directives   []*DirectiveDescriptorProto          `protobuf:"bytes,1,rep,name=directives,proto3" json:"directives,omitempty"`
	Query        *ObjectTypeDefinitionDescriptorProto `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	Mutation     *ObjectTypeDefinitionDescriptorProto `protobuf:"bytes,3,opt,name=mutation,proto3" json:"mutation,omitempty"`
	Subscription *ObjectTypeDefinitionDescriptorProto `protobuf:"bytes,4,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// contains filtered or unexported fields
}

func (*SchemaDescriptorProto) Descriptor deprecated

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

Deprecated: Use SchemaDescriptorProto.ProtoReflect.Descriptor instead.

func (*SchemaDescriptorProto) GetDirectives

func (x *SchemaDescriptorProto) GetDirectives() []*DirectiveDescriptorProto

func (*SchemaDescriptorProto) GetMutation

func (*SchemaDescriptorProto) GetQuery

func (*SchemaDescriptorProto) GetSubscription

func (*SchemaDescriptorProto) ProtoMessage

func (*SchemaDescriptorProto) ProtoMessage()

func (*SchemaDescriptorProto) ProtoReflect

func (x *SchemaDescriptorProto) ProtoReflect() protoreflect.Message

func (*SchemaDescriptorProto) Reset

func (x *SchemaDescriptorProto) Reset()

func (*SchemaDescriptorProto) String

func (x *SchemaDescriptorProto) String() string

type SchemaExtensionDescriptorProto

type SchemaExtensionDescriptorProto struct {
	Directives               []*DirectiveDescriptorProto `protobuf:"bytes,1,rep,name=directives,proto3" json:"directives,omitempty"`
	OperationTypeDefinitions []*NamedTypeDescriptorProto `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SchemaExtensionDescriptorProto) Descriptor deprecated

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

Deprecated: Use SchemaExtensionDescriptorProto.ProtoReflect.Descriptor instead.

func (*SchemaExtensionDescriptorProto) GetDirectives

func (*SchemaExtensionDescriptorProto) GetOperationTypeDefinitions

func (x *SchemaExtensionDescriptorProto) GetOperationTypeDefinitions() []*NamedTypeDescriptorProto

func (*SchemaExtensionDescriptorProto) ProtoMessage

func (*SchemaExtensionDescriptorProto) ProtoMessage()

func (*SchemaExtensionDescriptorProto) ProtoReflect

func (*SchemaExtensionDescriptorProto) Reset

func (x *SchemaExtensionDescriptorProto) Reset()

func (*SchemaExtensionDescriptorProto) String

type TypeDescriptorProto

type TypeDescriptorProto struct {

	// Types that are assignable to Type:
	//	*TypeDescriptorProto_NamedType
	//	*TypeDescriptorProto_ListType
	//	*TypeDescriptorProto_NonNullType
	Type isTypeDescriptorProto_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*TypeDescriptorProto) Descriptor deprecated

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

Deprecated: Use TypeDescriptorProto.ProtoReflect.Descriptor instead.

func (*TypeDescriptorProto) GetListType

func (x *TypeDescriptorProto) GetListType() *ListTypeDescriptorProto

func (*TypeDescriptorProto) GetNamedType

func (x *TypeDescriptorProto) GetNamedType() *NamedTypeDescriptorProto

func (*TypeDescriptorProto) GetNonNullType

func (x *TypeDescriptorProto) GetNonNullType() *NonNullTypeDescriptorProto

func (*TypeDescriptorProto) GetType

func (m *TypeDescriptorProto) GetType() isTypeDescriptorProto_Type

func (*TypeDescriptorProto) ProtoMessage

func (*TypeDescriptorProto) ProtoMessage()

func (*TypeDescriptorProto) ProtoReflect

func (x *TypeDescriptorProto) ProtoReflect() protoreflect.Message

func (*TypeDescriptorProto) Reset

func (x *TypeDescriptorProto) Reset()

func (*TypeDescriptorProto) String

func (x *TypeDescriptorProto) String() string

type TypeDescriptorProto_ListType

type TypeDescriptorProto_ListType struct {
	ListType *ListTypeDescriptorProto `protobuf:"bytes,2,opt,name=list_type,json=listType,proto3,oneof"`
}

type TypeDescriptorProto_NamedType

type TypeDescriptorProto_NamedType struct {
	NamedType *NamedTypeDescriptorProto `protobuf:"bytes,1,opt,name=named_type,json=namedType,proto3,oneof"`
}

type TypeDescriptorProto_NonNullType

type TypeDescriptorProto_NonNullType struct {
	NonNullType *NonNullTypeDescriptorProto `protobuf:"bytes,3,opt,name=non_null_type,json=nonNullType,proto3,oneof"`
}

type TypeDescriptorProto_Type

type TypeDescriptorProto_Type = isTypeDescriptorProto_Type

type TypeExtensionDescriptorProto

type TypeExtensionDescriptorProto struct {

	// Types that are assignable to TypeExtension:
	//	*TypeExtensionDescriptorProto_ScalarTypeExtension
	//	*TypeExtensionDescriptorProto_ObjectTypeExtension
	//	*TypeExtensionDescriptorProto_InterfaceTypeExtension
	//	*TypeExtensionDescriptorProto_UnionTypeExtension
	//	*TypeExtensionDescriptorProto_EnumTypeExtions
	//	*TypeExtensionDescriptorProto_InputObjectTypeExtension
	TypeExtension isTypeExtensionDescriptorProto_TypeExtension `protobuf_oneof:"type_extension"`
	// contains filtered or unexported fields
}

func (*TypeExtensionDescriptorProto) Descriptor deprecated

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

Deprecated: Use TypeExtensionDescriptorProto.ProtoReflect.Descriptor instead.

func (*TypeExtensionDescriptorProto) GetEnumTypeExtions

func (*TypeExtensionDescriptorProto) GetInputObjectTypeExtension

func (*TypeExtensionDescriptorProto) GetInterfaceTypeExtension

func (*TypeExtensionDescriptorProto) GetObjectTypeExtension

func (*TypeExtensionDescriptorProto) GetScalarTypeExtension

func (*TypeExtensionDescriptorProto) GetTypeExtension

func (m *TypeExtensionDescriptorProto) GetTypeExtension() isTypeExtensionDescriptorProto_TypeExtension

func (*TypeExtensionDescriptorProto) GetUnionTypeExtension

func (*TypeExtensionDescriptorProto) ProtoMessage

func (*TypeExtensionDescriptorProto) ProtoMessage()

func (*TypeExtensionDescriptorProto) ProtoReflect

func (*TypeExtensionDescriptorProto) Reset

func (x *TypeExtensionDescriptorProto) Reset()

func (*TypeExtensionDescriptorProto) String

type TypeExtensionDescriptorProto_EnumTypeExtions

type TypeExtensionDescriptorProto_EnumTypeExtions struct {
	EnumTypeExtions *EnumTypeExtensionDefinitionDescriptorProto `protobuf:"bytes,5,opt,name=enum_type_extions,json=enumTypeExtions,proto3,oneof"`
}

type TypeExtensionDescriptorProto_InputObjectTypeExtension

type TypeExtensionDescriptorProto_InputObjectTypeExtension struct {
	InputObjectTypeExtension *InputObjectTypeExtensionDefinitionDescriptorProto `protobuf:"bytes,6,opt,name=input_object_type_extension,json=inputObjectTypeExtension,proto3,oneof"`
}

type TypeExtensionDescriptorProto_InterfaceTypeExtension

type TypeExtensionDescriptorProto_InterfaceTypeExtension struct {
	InterfaceTypeExtension *InterfaceTypeExtensionDescriptorProto `protobuf:"bytes,3,opt,name=interface_type_extension,json=interfaceTypeExtension,proto3,oneof"`
}

type TypeExtensionDescriptorProto_ObjectTypeExtension

type TypeExtensionDescriptorProto_ObjectTypeExtension struct {
	ObjectTypeExtension *ObjectTypeExtensionDescriptorProto `protobuf:"bytes,2,opt,name=object_type_extension,json=objectTypeExtension,proto3,oneof"`
}

type TypeExtensionDescriptorProto_ScalarTypeExtension

type TypeExtensionDescriptorProto_ScalarTypeExtension struct {
	ScalarTypeExtension *ScalarTypeExtensionDescriptorProto `protobuf:"bytes,1,opt,name=scalar_type_extension,json=scalarTypeExtension,proto3,oneof"`
}

type TypeExtensionDescriptorProto_UnionTypeExtension

type TypeExtensionDescriptorProto_UnionTypeExtension struct {
	UnionTypeExtension *UnionTypeExtensionDefinitionDescriptorProto `protobuf:"bytes,4,opt,name=union_type_extension,json=unionTypeExtension,proto3,oneof"`
}

type TypeSystemDirectiveLocation

type TypeSystemDirectiveLocation int32
const (
	TypeSystemDirectiveLocation_SCHEMA                 TypeSystemDirectiveLocation = 0
	TypeSystemDirectiveLocation_SCALAR                 TypeSystemDirectiveLocation = 1
	TypeSystemDirectiveLocation_OBJECT                 TypeSystemDirectiveLocation = 2
	TypeSystemDirectiveLocation_FIELD_DEFINITION       TypeSystemDirectiveLocation = 3
	TypeSystemDirectiveLocation_ARGUMENT_DEFINITION    TypeSystemDirectiveLocation = 4
	TypeSystemDirectiveLocation_INTERFACE              TypeSystemDirectiveLocation = 5
	TypeSystemDirectiveLocation_UNION                  TypeSystemDirectiveLocation = 6
	TypeSystemDirectiveLocation_ENUM                   TypeSystemDirectiveLocation = 7
	TypeSystemDirectiveLocation_ENUM_VALUE             TypeSystemDirectiveLocation = 8
	TypeSystemDirectiveLocation_INPUT_OBJECT           TypeSystemDirectiveLocation = 9
	TypeSystemDirectiveLocation_INPUT_FIELD_DEFINITION TypeSystemDirectiveLocation = 10
)

func (TypeSystemDirectiveLocation) Descriptor

func (TypeSystemDirectiveLocation) Enum

func (TypeSystemDirectiveLocation) EnumDescriptor deprecated

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

Deprecated: Use TypeSystemDirectiveLocation.Descriptor instead.

func (TypeSystemDirectiveLocation) Number

func (TypeSystemDirectiveLocation) String

func (TypeSystemDirectiveLocation) Type

type TypeSystemExtensionDescriptorProto

type TypeSystemExtensionDescriptorProto struct {

	// Types that are assignable to Extension:
	//	*TypeSystemExtensionDescriptorProto_SchemaExtension
	//	*TypeSystemExtensionDescriptorProto_TypeExtension
	Extension isTypeSystemExtensionDescriptorProto_Extension `protobuf_oneof:"extension"`
	// contains filtered or unexported fields
}

func (*TypeSystemExtensionDescriptorProto) Descriptor deprecated

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

Deprecated: Use TypeSystemExtensionDescriptorProto.ProtoReflect.Descriptor instead.

func (*TypeSystemExtensionDescriptorProto) GetExtension

func (m *TypeSystemExtensionDescriptorProto) GetExtension() isTypeSystemExtensionDescriptorProto_Extension

func (*TypeSystemExtensionDescriptorProto) GetSchemaExtension

func (*TypeSystemExtensionDescriptorProto) GetTypeExtension

func (*TypeSystemExtensionDescriptorProto) ProtoMessage

func (*TypeSystemExtensionDescriptorProto) ProtoMessage()

func (*TypeSystemExtensionDescriptorProto) ProtoReflect

func (*TypeSystemExtensionDescriptorProto) Reset

func (*TypeSystemExtensionDescriptorProto) String

type TypeSystemExtensionDescriptorProto_Extension

type TypeSystemExtensionDescriptorProto_Extension = isTypeSystemExtensionDescriptorProto_Extension

type TypeSystemExtensionDescriptorProto_SchemaExtension

type TypeSystemExtensionDescriptorProto_SchemaExtension struct {
	SchemaExtension *SchemaExtensionDescriptorProto `protobuf:"bytes,1,opt,name=schema_extension,json=schemaExtension,proto3,oneof"`
}

type TypeSystemExtensionDescriptorProto_TypeExtension

type TypeSystemExtensionDescriptorProto_TypeExtension struct {
	TypeExtension *TypeExtensionDescriptorProto `protobuf:"bytes,2,opt,name=type_extension,json=typeExtension,proto3,oneof"`
}

type UnionTypeDefinitionDescriptorProto

type UnionTypeDefinitionDescriptorProto struct {
	Description string                      `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Name        string                      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Directives  []*DirectiveDescriptorProto `protobuf:"bytes,3,rep,name=directives,proto3" json:"directives,omitempty"`
	MemberTypes []*NamedTypeDescriptorProto `protobuf:"bytes,4,rep,name=member_types,json=memberTypes,proto3" json:"member_types,omitempty"`
	// contains filtered or unexported fields
}

func (*UnionTypeDefinitionDescriptorProto) Descriptor deprecated

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

Deprecated: Use UnionTypeDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*UnionTypeDefinitionDescriptorProto) GetDescription

func (x *UnionTypeDefinitionDescriptorProto) GetDescription() string

func (*UnionTypeDefinitionDescriptorProto) GetDirectives

func (*UnionTypeDefinitionDescriptorProto) GetMemberTypes

func (*UnionTypeDefinitionDescriptorProto) GetName

func (*UnionTypeDefinitionDescriptorProto) ProtoMessage

func (*UnionTypeDefinitionDescriptorProto) ProtoMessage()

func (*UnionTypeDefinitionDescriptorProto) ProtoReflect

func (*UnionTypeDefinitionDescriptorProto) Reset

func (*UnionTypeDefinitionDescriptorProto) String

type UnionTypeExtensionDefinitionDescriptorProto

type UnionTypeExtensionDefinitionDescriptorProto struct {
	Name        string                      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Directives  []*DirectiveDescriptorProto `protobuf:"bytes,2,rep,name=directives,proto3" json:"directives,omitempty"`
	MemberTypes []*NamedTypeDescriptorProto `protobuf:"bytes,3,rep,name=member_types,json=memberTypes,proto3" json:"member_types,omitempty"`
	// contains filtered or unexported fields
}

func (*UnionTypeExtensionDefinitionDescriptorProto) Descriptor deprecated

Deprecated: Use UnionTypeExtensionDefinitionDescriptorProto.ProtoReflect.Descriptor instead.

func (*UnionTypeExtensionDefinitionDescriptorProto) GetDirectives

func (*UnionTypeExtensionDefinitionDescriptorProto) GetMemberTypes

func (*UnionTypeExtensionDefinitionDescriptorProto) GetName

func (*UnionTypeExtensionDefinitionDescriptorProto) ProtoMessage

func (*UnionTypeExtensionDefinitionDescriptorProto) ProtoReflect

func (*UnionTypeExtensionDefinitionDescriptorProto) Reset

func (*UnionTypeExtensionDefinitionDescriptorProto) String

type ValueDescriptorProto

type ValueDescriptorProto struct {

	// Types that are assignable to Value:
	//	*ValueDescriptorProto_VariableValue
	//	*ValueDescriptorProto_IntValue
	//	*ValueDescriptorProto_FloatValue
	//	*ValueDescriptorProto_BooleanValue
	//	*ValueDescriptorProto_StringValue
	//	*ValueDescriptorProto_NullValue
	//	*ValueDescriptorProto_EnumValue
	//	*ValueDescriptorProto_ListValue
	//	*ValueDescriptorProto_ObjectValue
	Value isValueDescriptorProto_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*ValueDescriptorProto) Descriptor deprecated

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

Deprecated: Use ValueDescriptorProto.ProtoReflect.Descriptor instead.

func (*ValueDescriptorProto) GetBooleanValue

func (x *ValueDescriptorProto) GetBooleanValue() bool

func (*ValueDescriptorProto) GetEnumValue

func (*ValueDescriptorProto) GetFloatValue

func (x *ValueDescriptorProto) GetFloatValue() float32

func (*ValueDescriptorProto) GetIntValue

func (x *ValueDescriptorProto) GetIntValue() int32

func (*ValueDescriptorProto) GetListValue

func (*ValueDescriptorProto) GetNullValue

func (*ValueDescriptorProto) GetObjectValue

func (x *ValueDescriptorProto) GetObjectValue() *ObjectValueDescriptorProto

func (*ValueDescriptorProto) GetStringValue

func (x *ValueDescriptorProto) GetStringValue() string

func (*ValueDescriptorProto) GetValue

func (m *ValueDescriptorProto) GetValue() isValueDescriptorProto_Value

func (*ValueDescriptorProto) GetVariableValue

func (x *ValueDescriptorProto) GetVariableValue() *VariableDescriptorProto

func (*ValueDescriptorProto) ProtoMessage

func (*ValueDescriptorProto) ProtoMessage()

func (*ValueDescriptorProto) ProtoReflect

func (x *ValueDescriptorProto) ProtoReflect() protoreflect.Message

func (*ValueDescriptorProto) Reset

func (x *ValueDescriptorProto) Reset()

func (*ValueDescriptorProto) String

func (x *ValueDescriptorProto) String() string

type ValueDescriptorProto_BooleanValue

type ValueDescriptorProto_BooleanValue struct {
	BooleanValue bool `protobuf:"varint,5,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
}

type ValueDescriptorProto_EnumValue

type ValueDescriptorProto_EnumValue struct {
	EnumValue *EnumValueDescriptorProto `protobuf:"bytes,8,opt,name=enum_value,json=enumValue,proto3,oneof"`
}

type ValueDescriptorProto_FloatValue

type ValueDescriptorProto_FloatValue struct {
	FloatValue float32 `protobuf:"fixed32,4,opt,name=float_value,json=floatValue,proto3,oneof"`
}

type ValueDescriptorProto_IntValue

type ValueDescriptorProto_IntValue struct {
	IntValue int32 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
}

type ValueDescriptorProto_ListValue

type ValueDescriptorProto_ListValue struct {
	ListValue *ListValueDescriptorProto `protobuf:"bytes,9,opt,name=list_value,json=listValue,proto3,oneof"`
}

type ValueDescriptorProto_NullValue

type ValueDescriptorProto_NullValue struct {
	NullValue *NullValueDescriptorProto `protobuf:"bytes,7,opt,name=null_value,json=nullValue,proto3,oneof"`
}

type ValueDescriptorProto_ObjectValue

type ValueDescriptorProto_ObjectValue struct {
	ObjectValue *ObjectValueDescriptorProto `protobuf:"bytes,10,opt,name=object_value,json=objectValue,proto3,oneof"`
}

type ValueDescriptorProto_StringValue

type ValueDescriptorProto_StringValue struct {
	StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type ValueDescriptorProto_Value

type ValueDescriptorProto_Value = isValueDescriptorProto_Value

type ValueDescriptorProto_VariableValue

type ValueDescriptorProto_VariableValue struct {
	VariableValue *VariableDescriptorProto `protobuf:"bytes,2,opt,name=variable_value,json=variableValue,proto3,oneof"`
}

type VariableDescriptorProto

type VariableDescriptorProto struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*VariableDescriptorProto) Descriptor deprecated

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

Deprecated: Use VariableDescriptorProto.ProtoReflect.Descriptor instead.

func (*VariableDescriptorProto) GetName

func (x *VariableDescriptorProto) GetName() string

func (*VariableDescriptorProto) ProtoMessage

func (*VariableDescriptorProto) ProtoMessage()

func (*VariableDescriptorProto) ProtoReflect

func (x *VariableDescriptorProto) ProtoReflect() protoreflect.Message

func (*VariableDescriptorProto) Reset

func (x *VariableDescriptorProto) Reset()

func (*VariableDescriptorProto) String

func (x *VariableDescriptorProto) String() string

type Version

type Version struct {
	Major int32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
	Minor int32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
	Patch int32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
	// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
	// be empty for mainline stable releases.
	Suffix string `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
	// contains filtered or unexported fields
}

The version number of protocol compiler

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetMajor

func (x *Version) GetMajor() int32

func (*Version) GetMinor

func (x *Version) GetMinor() int32

func (*Version) GetPatch

func (x *Version) GetPatch() int32

func (*Version) GetSuffix

func (x *Version) GetSuffix() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

func (x *Version) ProtoReflect() protoreflect.Message

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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