Documentation ¶
Index ¶
- Variables
- type GraphqlEnumOptions
- func (*GraphqlEnumOptions) Descriptor() ([]byte, []int)deprecated
- func (x *GraphqlEnumOptions) GetIgnore() bool
- func (x *GraphqlEnumOptions) GetName() string
- func (*GraphqlEnumOptions) ProtoMessage()
- func (x *GraphqlEnumOptions) ProtoReflect() protoreflect.Message
- func (x *GraphqlEnumOptions) Reset()
- func (x *GraphqlEnumOptions) String() string
- type GraphqlEnumValueOptions
- func (*GraphqlEnumValueOptions) Descriptor() ([]byte, []int)deprecated
- func (x *GraphqlEnumValueOptions) GetIgnore() bool
- func (*GraphqlEnumValueOptions) ProtoMessage()
- func (x *GraphqlEnumValueOptions) ProtoReflect() protoreflect.Message
- func (x *GraphqlEnumValueOptions) Reset()
- func (x *GraphqlEnumValueOptions) String() string
- type GraphqlFieldOptions
- func (*GraphqlFieldOptions) Descriptor() ([]byte, []int)deprecated
- func (x *GraphqlFieldOptions) GetId() bool
- func (x *GraphqlFieldOptions) GetIgnore() bool
- func (x *GraphqlFieldOptions) GetInputNullability() Nullability
- func (x *GraphqlFieldOptions) GetName() string
- func (x *GraphqlFieldOptions) GetOutputNullability() Nullability
- func (x *GraphqlFieldOptions) GetPartialInputNullability() Nullability
- func (x *GraphqlFieldOptions) GetSkipResolver() bool
- func (*GraphqlFieldOptions) ProtoMessage()
- func (x *GraphqlFieldOptions) ProtoReflect() protoreflect.Message
- func (x *GraphqlFieldOptions) Reset()
- func (x *GraphqlFieldOptions) String() string
- type GraphqlInputTypeOptions
- func (*GraphqlInputTypeOptions) Descriptor() ([]byte, []int)deprecated
- func (x *GraphqlInputTypeOptions) GetIgnore() bool
- func (x *GraphqlInputTypeOptions) GetNoPartial() bool
- func (*GraphqlInputTypeOptions) ProtoMessage()
- func (x *GraphqlInputTypeOptions) ProtoReflect() protoreflect.Message
- func (x *GraphqlInputTypeOptions) Reset()
- func (x *GraphqlInputTypeOptions) String() string
- type GraphqlObjectTypeOptions
- func (*GraphqlObjectTypeOptions) Descriptor() ([]byte, []int)deprecated
- func (x *GraphqlObjectTypeOptions) GetIgnore() bool
- func (x *GraphqlObjectTypeOptions) GetInterface() bool
- func (x *GraphqlObjectTypeOptions) GetName() string
- func (x *GraphqlObjectTypeOptions) GetSquashUnion() bool
- func (*GraphqlObjectTypeOptions) ProtoMessage()
- func (x *GraphqlObjectTypeOptions) ProtoReflect() protoreflect.Message
- func (x *GraphqlObjectTypeOptions) Reset()
- func (x *GraphqlObjectTypeOptions) String() string
- type GraphqlOneofOptions
- func (*GraphqlOneofOptions) Descriptor() ([]byte, []int)deprecated
- func (x *GraphqlOneofOptions) GetIgnore() bool
- func (*GraphqlOneofOptions) ProtoMessage()
- func (x *GraphqlOneofOptions) ProtoReflect() protoreflect.Message
- func (x *GraphqlOneofOptions) Reset()
- func (x *GraphqlOneofOptions) String() string
- type GraphqlSchemaOptions
- func (*GraphqlSchemaOptions) Descriptor() ([]byte, []int)deprecated
- func (x *GraphqlSchemaOptions) GetIgnore() bool
- func (x *GraphqlSchemaOptions) GetIgnoreRequests() bool
- func (x *GraphqlSchemaOptions) GetIgnoreResponses() bool
- func (x *GraphqlSchemaOptions) GetTypePrefix() string
- func (*GraphqlSchemaOptions) ProtoMessage()
- func (x *GraphqlSchemaOptions) ProtoReflect() protoreflect.Message
- func (x *GraphqlSchemaOptions) Reset()
- func (x *GraphqlSchemaOptions) String() string
- type Nullability
- func (Nullability) Descriptor() protoreflect.EnumDescriptor
- func (x Nullability) Enum() *Nullability
- func (Nullability) EnumDescriptor() ([]byte, []int)deprecated
- func (x Nullability) Number() protoreflect.EnumNumber
- func (x Nullability) String() string
- func (Nullability) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( Nullability_name = map[int32]string{ 0: "NULLABILITY_UNSPECIFIED", 1: "NULLABLE", 2: "NON_NULL", } Nullability_value = map[string]int32{ "NULLABILITY_UNSPECIFIED": 0, "NULLABLE": 1, "NON_NULL": 2, } )
Enum value maps for Nullability.
var ( // optional graphql.GraphqlObjectTypeOptions object_type = 2056; E_ObjectType = &file_graphql_schema_proto_extTypes[1] // optional graphql.GraphqlInputTypeOptions input_type = 2057; E_InputType = &file_graphql_schema_proto_extTypes[2] )
Extension fields to descriptorpb.MessageOptions.
var (
// optional graphql.GraphqlEnumOptions enum_type = 2056;
E_EnumType = &file_graphql_schema_proto_extTypes[5]
)
Extension fields to descriptorpb.EnumOptions.
var (
// optional graphql.GraphqlEnumValueOptions enum_value = 2056;
E_EnumValue = &file_graphql_schema_proto_extTypes[6]
)
Extension fields to descriptorpb.EnumValueOptions.
var (
// optional graphql.GraphqlFieldOptions field = 2056;
E_Field = &file_graphql_schema_proto_extTypes[3]
)
Extension fields to descriptorpb.FieldOptions.
var (
// optional graphql.GraphqlOneofOptions oneof = 2056;
E_Oneof = &file_graphql_schema_proto_extTypes[4]
)
Extension fields to descriptorpb.OneofOptions.
var (
// optional graphql.GraphqlSchemaOptions schema = 2056;
E_Schema = &file_graphql_schema_proto_extTypes[0]
)
Extension fields to descriptorpb.FileOptions.
var File_graphql_schema_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GraphqlEnumOptions ¶
type GraphqlEnumOptions struct { Ignore bool `protobuf:"varint,1,opt,name=ignore,proto3" json:"ignore,omitempty"` // Specify an enum name in GraphQL. If do not specified, use the same as a Protobuf message field name. // // “`proto // // enum Foo { // option (graphql.enum_type).name = "Bar" // // ... // } // // ““ // // “`grahpql // // enum Bar { // # ... // } // // “` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GraphqlEnumOptions) Descriptor
deprecated
func (*GraphqlEnumOptions) Descriptor() ([]byte, []int)
Deprecated: Use GraphqlEnumOptions.ProtoReflect.Descriptor instead.
func (*GraphqlEnumOptions) GetIgnore ¶
func (x *GraphqlEnumOptions) GetIgnore() bool
func (*GraphqlEnumOptions) GetName ¶
func (x *GraphqlEnumOptions) GetName() string
func (*GraphqlEnumOptions) ProtoMessage ¶
func (*GraphqlEnumOptions) ProtoMessage()
func (*GraphqlEnumOptions) ProtoReflect ¶
func (x *GraphqlEnumOptions) ProtoReflect() protoreflect.Message
func (*GraphqlEnumOptions) Reset ¶
func (x *GraphqlEnumOptions) Reset()
func (*GraphqlEnumOptions) String ¶
func (x *GraphqlEnumOptions) String() string
type GraphqlEnumValueOptions ¶
type GraphqlEnumValueOptions struct { Ignore bool `protobuf:"varint,1,opt,name=ignore,proto3" json:"ignore,omitempty"` // contains filtered or unexported fields }
func (*GraphqlEnumValueOptions) Descriptor
deprecated
func (*GraphqlEnumValueOptions) Descriptor() ([]byte, []int)
Deprecated: Use GraphqlEnumValueOptions.ProtoReflect.Descriptor instead.
func (*GraphqlEnumValueOptions) GetIgnore ¶
func (x *GraphqlEnumValueOptions) GetIgnore() bool
func (*GraphqlEnumValueOptions) ProtoMessage ¶
func (*GraphqlEnumValueOptions) ProtoMessage()
func (*GraphqlEnumValueOptions) ProtoReflect ¶
func (x *GraphqlEnumValueOptions) ProtoReflect() protoreflect.Message
func (*GraphqlEnumValueOptions) Reset ¶
func (x *GraphqlEnumValueOptions) Reset()
func (*GraphqlEnumValueOptions) String ¶
func (x *GraphqlEnumValueOptions) String() string
type GraphqlFieldOptions ¶
type GraphqlFieldOptions struct { Ignore bool `protobuf:"varint,1,opt,name=ignore,proto3" json:"ignore,omitempty"` // Specify a field name in GraphQL. If do not specified, use the same as a Protobuf message field name. // // “`proto // // message User { // // Required. Output only. // uint64 id = 1 [(graphql.field).name = "databaseId"]; // } // // ““ // // “`grahpql // // object User { // databaseId: String! // } // // “` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Omit resolver implementation in code generation. SkipResolver bool `protobuf:"varint,3,opt,name=skip_resolver,json=skipResolver,proto3" json:"skip_resolver,omitempty"` // Use ID type. // // “`proto // // message User { // // Required. Output only. // uint64 id = 1 [(graphql.field).id = true]; // } // // ““ // // “`grahpql // // object User { // id: ID! // } // // “` Id bool `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` // Indicates the nullability of the output for a given field. OutputNullability Nullability `` /* 139-byte string literal not displayed */ // Indicates the nullability of the input for a given field. InputNullability Nullability `` /* 136-byte string literal not displayed */ // Indicates the nullability of the partial input for a given field. PartialInputNullability Nullability `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GraphqlFieldOptions) Descriptor
deprecated
func (*GraphqlFieldOptions) Descriptor() ([]byte, []int)
Deprecated: Use GraphqlFieldOptions.ProtoReflect.Descriptor instead.
func (*GraphqlFieldOptions) GetId ¶
func (x *GraphqlFieldOptions) GetId() bool
func (*GraphqlFieldOptions) GetIgnore ¶
func (x *GraphqlFieldOptions) GetIgnore() bool
func (*GraphqlFieldOptions) GetInputNullability ¶
func (x *GraphqlFieldOptions) GetInputNullability() Nullability
func (*GraphqlFieldOptions) GetName ¶
func (x *GraphqlFieldOptions) GetName() string
func (*GraphqlFieldOptions) GetOutputNullability ¶
func (x *GraphqlFieldOptions) GetOutputNullability() Nullability
func (*GraphqlFieldOptions) GetPartialInputNullability ¶
func (x *GraphqlFieldOptions) GetPartialInputNullability() Nullability
func (*GraphqlFieldOptions) GetSkipResolver ¶
func (x *GraphqlFieldOptions) GetSkipResolver() bool
func (*GraphqlFieldOptions) ProtoMessage ¶
func (*GraphqlFieldOptions) ProtoMessage()
func (*GraphqlFieldOptions) ProtoReflect ¶
func (x *GraphqlFieldOptions) ProtoReflect() protoreflect.Message
func (*GraphqlFieldOptions) Reset ¶
func (x *GraphqlFieldOptions) Reset()
func (*GraphqlFieldOptions) String ¶
func (x *GraphqlFieldOptions) String() string
type GraphqlInputTypeOptions ¶
type GraphqlInputTypeOptions struct { // Do not always generate partial input types. NoPartial bool `protobuf:"varint,1,opt,name=no_partial,json=noPartial,proto3" json:"no_partial,omitempty"` // Do not generate GraphQL Input. Nested types will not be ignored. Ignore bool `protobuf:"varint,2,opt,name=ignore,proto3" json:"ignore,omitempty"` // contains filtered or unexported fields }
func (*GraphqlInputTypeOptions) Descriptor
deprecated
func (*GraphqlInputTypeOptions) Descriptor() ([]byte, []int)
Deprecated: Use GraphqlInputTypeOptions.ProtoReflect.Descriptor instead.
func (*GraphqlInputTypeOptions) GetIgnore ¶
func (x *GraphqlInputTypeOptions) GetIgnore() bool
func (*GraphqlInputTypeOptions) GetNoPartial ¶
func (x *GraphqlInputTypeOptions) GetNoPartial() bool
func (*GraphqlInputTypeOptions) ProtoMessage ¶
func (*GraphqlInputTypeOptions) ProtoMessage()
func (*GraphqlInputTypeOptions) ProtoReflect ¶
func (x *GraphqlInputTypeOptions) ProtoReflect() protoreflect.Message
func (*GraphqlInputTypeOptions) Reset ¶
func (x *GraphqlInputTypeOptions) Reset()
func (*GraphqlInputTypeOptions) String ¶
func (x *GraphqlInputTypeOptions) String() string
type GraphqlObjectTypeOptions ¶
type GraphqlObjectTypeOptions struct { // Do not generate GraphQL Object and Input. Nested types will not be ignored. Ignore bool `protobuf:"varint,1,opt,name=ignore,proto3" json:"ignore,omitempty"` // If `squash_union` is true, the message is converted to `union` instead of object type. // // “`proto // // message Content { // option (graphql.object_type).squash_union = true; // oneof content { // Blog blog = 2; // Video video = 2; // } // } // // “` // // “`grahpql // union Content = Blog | Video // “` SquashUnion bool `protobuf:"varint,2,opt,name=squash_union,json=squashUnion,proto3" json:"squash_union,omitempty"` // If `interface` is true, the message is converted to `interface` instead of object type. Interface bool `protobuf:"varint,3,opt,name=interface,proto3" json:"interface,omitempty"` // Specify a object name in GraphQL. If do not specified, use the same as a Protobuf message field name. // // “`proto // // message Foo { // option (graphql.object_type).name = "Bar" // // ... // } // // ““ // // “`grahpql // // object Bar { // # ... // } // // “` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GraphqlObjectTypeOptions) Descriptor
deprecated
func (*GraphqlObjectTypeOptions) Descriptor() ([]byte, []int)
Deprecated: Use GraphqlObjectTypeOptions.ProtoReflect.Descriptor instead.
func (*GraphqlObjectTypeOptions) GetIgnore ¶
func (x *GraphqlObjectTypeOptions) GetIgnore() bool
func (*GraphqlObjectTypeOptions) GetInterface ¶
func (x *GraphqlObjectTypeOptions) GetInterface() bool
func (*GraphqlObjectTypeOptions) GetName ¶
func (x *GraphqlObjectTypeOptions) GetName() string
func (*GraphqlObjectTypeOptions) GetSquashUnion ¶
func (x *GraphqlObjectTypeOptions) GetSquashUnion() bool
func (*GraphqlObjectTypeOptions) ProtoMessage ¶
func (*GraphqlObjectTypeOptions) ProtoMessage()
func (*GraphqlObjectTypeOptions) ProtoReflect ¶
func (x *GraphqlObjectTypeOptions) ProtoReflect() protoreflect.Message
func (*GraphqlObjectTypeOptions) Reset ¶
func (x *GraphqlObjectTypeOptions) Reset()
func (*GraphqlObjectTypeOptions) String ¶
func (x *GraphqlObjectTypeOptions) String() string
type GraphqlOneofOptions ¶
type GraphqlOneofOptions struct { Ignore bool `protobuf:"varint,1,opt,name=ignore,proto3" json:"ignore,omitempty"` // contains filtered or unexported fields }
func (*GraphqlOneofOptions) Descriptor
deprecated
func (*GraphqlOneofOptions) Descriptor() ([]byte, []int)
Deprecated: Use GraphqlOneofOptions.ProtoReflect.Descriptor instead.
func (*GraphqlOneofOptions) GetIgnore ¶
func (x *GraphqlOneofOptions) GetIgnore() bool
func (*GraphqlOneofOptions) ProtoMessage ¶
func (*GraphqlOneofOptions) ProtoMessage()
func (*GraphqlOneofOptions) ProtoReflect ¶
func (x *GraphqlOneofOptions) ProtoReflect() protoreflect.Message
func (*GraphqlOneofOptions) Reset ¶
func (x *GraphqlOneofOptions) Reset()
func (*GraphqlOneofOptions) String ¶
func (x *GraphqlOneofOptions) String() string
type GraphqlSchemaOptions ¶
type GraphqlSchemaOptions struct { TypePrefix string `protobuf:"bytes,1,opt,name=type_prefix,json=typePrefix,proto3" json:"type_prefix,omitempty"` IgnoreRequests bool `protobuf:"varint,2,opt,name=ignore_requests,json=ignoreRequests,proto3" json:"ignore_requests,omitempty"` IgnoreResponses bool `protobuf:"varint,3,opt,name=ignore_responses,json=ignoreResponses,proto3" json:"ignore_responses,omitempty"` Ignore bool `protobuf:"varint,4,opt,name=ignore,proto3" json:"ignore,omitempty"` // contains filtered or unexported fields }
func (*GraphqlSchemaOptions) Descriptor
deprecated
func (*GraphqlSchemaOptions) Descriptor() ([]byte, []int)
Deprecated: Use GraphqlSchemaOptions.ProtoReflect.Descriptor instead.
func (*GraphqlSchemaOptions) GetIgnore ¶
func (x *GraphqlSchemaOptions) GetIgnore() bool
func (*GraphqlSchemaOptions) GetIgnoreRequests ¶
func (x *GraphqlSchemaOptions) GetIgnoreRequests() bool
func (*GraphqlSchemaOptions) GetIgnoreResponses ¶
func (x *GraphqlSchemaOptions) GetIgnoreResponses() bool
func (*GraphqlSchemaOptions) GetTypePrefix ¶
func (x *GraphqlSchemaOptions) GetTypePrefix() string
func (*GraphqlSchemaOptions) ProtoMessage ¶
func (*GraphqlSchemaOptions) ProtoMessage()
func (*GraphqlSchemaOptions) ProtoReflect ¶
func (x *GraphqlSchemaOptions) ProtoReflect() protoreflect.Message
func (*GraphqlSchemaOptions) Reset ¶
func (x *GraphqlSchemaOptions) Reset()
func (*GraphqlSchemaOptions) String ¶
func (x *GraphqlSchemaOptions) String() string
type Nullability ¶
type Nullability int32
const ( Nullability_NULLABILITY_UNSPECIFIED Nullability = 0 Nullability_NULLABLE Nullability = 1 Nullability_NON_NULL Nullability = 2 )
func (Nullability) Descriptor ¶
func (Nullability) Descriptor() protoreflect.EnumDescriptor
func (Nullability) Enum ¶
func (x Nullability) Enum() *Nullability
func (Nullability) EnumDescriptor
deprecated
func (Nullability) EnumDescriptor() ([]byte, []int)
Deprecated: Use Nullability.Descriptor instead.
func (Nullability) Number ¶
func (x Nullability) Number() protoreflect.EnumNumber
func (Nullability) String ¶
func (x Nullability) String() string
func (Nullability) Type ¶
func (Nullability) Type() protoreflect.EnumType