source_j5pb

package
v0.0.0-...-f797e76 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_j5_source_v1_image_proto protoreflect.FileDescriptor
View Source
var File_j5_source_v1_package_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type API

type API struct {
	Packages []*Package `protobuf:"bytes,1,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

func (*API) Descriptor deprecated

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

Deprecated: Use API.ProtoReflect.Descriptor instead.

func (*API) GetPackages

func (x *API) GetPackages() []*Package

func (*API) ProtoMessage

func (*API) ProtoMessage()

func (*API) ProtoReflect

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

func (*API) Reset

func (x *API) Reset()

func (*API) String

func (x *API) String() string

type CommitInfo

type CommitInfo struct {
	Owner   string                 `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Repo    string                 `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
	Hash    string                 `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	Time    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
	Aliases []string               `protobuf:"bytes,5,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitInfo) Descriptor deprecated

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

Deprecated: Use CommitInfo.ProtoReflect.Descriptor instead.

func (*CommitInfo) GetAliases

func (x *CommitInfo) GetAliases() []string

func (*CommitInfo) GetHash

func (x *CommitInfo) GetHash() string

func (*CommitInfo) GetOwner

func (x *CommitInfo) GetOwner() string

func (*CommitInfo) GetRepo

func (x *CommitInfo) GetRepo() string

func (*CommitInfo) GetTime

func (x *CommitInfo) GetTime() *timestamppb.Timestamp

func (*CommitInfo) ProtoMessage

func (*CommitInfo) ProtoMessage()

func (*CommitInfo) ProtoReflect

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

func (*CommitInfo) Reset

func (x *CommitInfo) Reset()

func (*CommitInfo) String

func (x *CommitInfo) String() string

type FakeOptions

type FakeOptions struct {
	SubPackages []*FakeOptions_SubPackageType `protobuf:"bytes,1,rep,name=sub_packages,json=subPackages,proto3" json:"sub_packages,omitempty"`
	Go          *FakeOptions_GoPackageOptions `protobuf:"bytes,2,opt,name=go,proto3,oneof" json:"go,omitempty"`
	// contains filtered or unexported fields
}

DEPRECATED: This isn't required.

func (*FakeOptions) Descriptor deprecated

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

Deprecated: Use FakeOptions.ProtoReflect.Descriptor instead.

func (*FakeOptions) GetGo

func (*FakeOptions) GetSubPackages

func (x *FakeOptions) GetSubPackages() []*FakeOptions_SubPackageType

func (*FakeOptions) ProtoMessage

func (*FakeOptions) ProtoMessage()

func (*FakeOptions) ProtoReflect

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

func (*FakeOptions) Reset

func (x *FakeOptions) Reset()

func (*FakeOptions) String

func (x *FakeOptions) String() string

type FakeOptions_GoPackageOptions

type FakeOptions_GoPackageOptions struct {
	Prefix       string   `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	TrimPrefixes []string `protobuf:"bytes,2,rep,name=trim_prefixes,json=trimPrefixes,proto3" json:"trim_prefixes,omitempty"`
	Suffix       *string  `protobuf:"bytes,3,opt,name=suffix,proto3,oneof" json:"suffix,omitempty"`
	// contains filtered or unexported fields
}

func (*FakeOptions_GoPackageOptions) Descriptor deprecated

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

Deprecated: Use FakeOptions_GoPackageOptions.ProtoReflect.Descriptor instead.

func (*FakeOptions_GoPackageOptions) GetPrefix

func (x *FakeOptions_GoPackageOptions) GetPrefix() string

func (*FakeOptions_GoPackageOptions) GetSuffix

func (x *FakeOptions_GoPackageOptions) GetSuffix() string

func (*FakeOptions_GoPackageOptions) GetTrimPrefixes

func (x *FakeOptions_GoPackageOptions) GetTrimPrefixes() []string

func (*FakeOptions_GoPackageOptions) ProtoMessage

func (*FakeOptions_GoPackageOptions) ProtoMessage()

func (*FakeOptions_GoPackageOptions) ProtoReflect

func (*FakeOptions_GoPackageOptions) Reset

func (x *FakeOptions_GoPackageOptions) Reset()

func (*FakeOptions_GoPackageOptions) String

type FakeOptions_SubPackageType

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

func (*FakeOptions_SubPackageType) Descriptor deprecated

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

Deprecated: Use FakeOptions_SubPackageType.ProtoReflect.Descriptor instead.

func (*FakeOptions_SubPackageType) GetName

func (x *FakeOptions_SubPackageType) GetName() string

func (*FakeOptions_SubPackageType) ProtoMessage

func (*FakeOptions_SubPackageType) ProtoMessage()

func (*FakeOptions_SubPackageType) ProtoReflect

func (*FakeOptions_SubPackageType) Reset

func (x *FakeOptions_SubPackageType) Reset()

func (*FakeOptions_SubPackageType) String

func (x *FakeOptions_SubPackageType) String() string

type IsServiceTypeWrappedType

type IsServiceTypeWrappedType interface {
	TypeKey() ServiceTypeKey
}

type IsServiceType_Type

type IsServiceType_Type = isServiceType_Type

type Method

type Method struct {
	Name           string                    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	FullGrpcName   string                    `protobuf:"bytes,3,opt,name=full_grpc_name,json=fullGrpcName,proto3" json:"full_grpc_name,omitempty"`
	HttpMethod     client_j5pb.HTTPMethod    `protobuf:"varint,4,opt,name=http_method,json=httpMethod,proto3,enum=j5.client.v1.HTTPMethod" json:"http_method,omitempty"`
	HttpPath       string                    `protobuf:"bytes,5,opt,name=http_path,json=httpPath,proto3" json:"http_path,omitempty"`
	RequestSchema  string                    `protobuf:"bytes,6,opt,name=request_schema,json=requestSchema,proto3" json:"request_schema,omitempty"`
	ResponseSchema string                    `protobuf:"bytes,7,opt,name=response_schema,json=responseSchema,proto3" json:"response_schema,omitempty"`
	Auth           *auth_j5pb.MethodAuthType `protobuf:"bytes,8,opt,name=auth,proto3" json:"auth,omitempty"`
	MethodType     *client_j5pb.MethodType   `protobuf:"bytes,9,opt,name=method_type,json=methodType,proto3" json:"method_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Method) Descriptor deprecated

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

Deprecated: Use Method.ProtoReflect.Descriptor instead.

func (*Method) GetAuth

func (x *Method) GetAuth() *auth_j5pb.MethodAuthType

func (*Method) GetFullGrpcName

func (x *Method) GetFullGrpcName() string

func (*Method) GetHttpMethod

func (x *Method) GetHttpMethod() client_j5pb.HTTPMethod

func (*Method) GetHttpPath

func (x *Method) GetHttpPath() string

func (*Method) GetMethodType

func (x *Method) GetMethodType() *client_j5pb.MethodType

func (*Method) GetName

func (x *Method) GetName() string

func (*Method) GetRequestSchema

func (x *Method) GetRequestSchema() string

func (*Method) GetResponseSchema

func (x *Method) GetResponseSchema() string

func (*Method) ProtoMessage

func (*Method) ProtoMessage()

func (*Method) ProtoReflect

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

func (*Method) Reset

func (x *Method) Reset()

func (*Method) String

func (x *Method) String() string

type Package

type Package struct {
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// name of the versioned parent package, e.g. "j5.source.v1"
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// markdown formatted prose
	Prose string `protobuf:"bytes,3,opt,name=prose,proto3" json:"prose,omitempty"`
	// indicates the package is not a part of the API or bundle, but other
	// packages in the bundle refer to schemas in this package.
	// The package will be a partial representation, only including referenced
	// schemas.
	Indirect    bool                               `protobuf:"varint,9,opt,name=indirect,proto3" json:"indirect,omitempty"`
	SubPackages []*SubPackage                      `protobuf:"bytes,4,rep,name=sub_packages,json=subPackages,proto3" json:"sub_packages,omitempty"`
	Schemas     map[string]*schema_j5pb.RootSchema `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Package) Descriptor deprecated

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

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetIndirect

func (x *Package) GetIndirect() bool

func (*Package) GetLabel

func (x *Package) GetLabel() string

func (*Package) GetName

func (x *Package) GetName() string

func (*Package) GetProse

func (x *Package) GetProse() string

func (*Package) GetSchemas

func (x *Package) GetSchemas() map[string]*schema_j5pb.RootSchema

func (*Package) GetSubPackages

func (x *Package) GetSubPackages() []*SubPackage

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

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

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

type PackageInfo

type PackageInfo struct {
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Prose string `protobuf:"bytes,3,opt,name=prose,proto3" json:"prose,omitempty"`
	// contains filtered or unexported fields
}

func (*PackageInfo) Descriptor deprecated

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

Deprecated: Use PackageInfo.ProtoReflect.Descriptor instead.

func (*PackageInfo) GetLabel

func (x *PackageInfo) GetLabel() string

func (*PackageInfo) GetName

func (x *PackageInfo) GetName() string

func (*PackageInfo) GetProse

func (x *PackageInfo) GetProse() string

func (*PackageInfo) ProtoMessage

func (*PackageInfo) ProtoMessage()

func (*PackageInfo) ProtoReflect

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

func (*PackageInfo) Reset

func (x *PackageInfo) Reset()

func (*PackageInfo) String

func (x *PackageInfo) String() string

type ProseFile

type ProseFile struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*ProseFile) Descriptor deprecated

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

Deprecated: Use ProseFile.ProtoReflect.Descriptor instead.

func (*ProseFile) GetContent

func (x *ProseFile) GetContent() []byte

func (*ProseFile) GetPath

func (x *ProseFile) GetPath() string

func (*ProseFile) ProtoMessage

func (*ProseFile) ProtoMessage()

func (*ProseFile) ProtoReflect

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

func (*ProseFile) Reset

func (x *ProseFile) Reset()

func (*ProseFile) String

func (x *ProseFile) String() string

type Service

type Service struct {
	Name        string                    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Methods     []*Method                 `protobuf:"bytes,3,rep,name=methods,proto3" json:"methods,omitempty"`
	Type        *ServiceType              `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	DefaultAuth *auth_j5pb.MethodAuthType `protobuf:"bytes,5,opt,name=default_auth,json=defaultAuth,proto3" json:"default_auth,omitempty"`
	Audience    []string                  `protobuf:"bytes,6,rep,name=audience,proto3" json:"audience,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetAudience

func (x *Service) GetAudience() []string

func (*Service) GetDefaultAuth

func (x *Service) GetDefaultAuth() *auth_j5pb.MethodAuthType

func (*Service) GetMethods

func (x *Service) GetMethods() []*Method

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetType

func (x *Service) GetType() *ServiceType

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type ServiceType

type ServiceType struct {

	// Types that are assignable to Type:
	//
	//	*ServiceType_StateEntityQuery_
	//	*ServiceType_StateEntityCommand_
	Type isServiceType_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*ServiceType) Descriptor deprecated

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

Deprecated: Use ServiceType.ProtoReflect.Descriptor instead.

func (*ServiceType) Get

func (*ServiceType) GetStateEntityCommand

func (x *ServiceType) GetStateEntityCommand() *ServiceType_StateEntityCommand

func (*ServiceType) GetStateEntityQuery

func (x *ServiceType) GetStateEntityQuery() *ServiceType_StateEntityQuery

func (*ServiceType) GetType

func (m *ServiceType) GetType() isServiceType_Type

func (*ServiceType) ProtoMessage

func (*ServiceType) ProtoMessage()

func (*ServiceType) ProtoReflect

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

func (*ServiceType) Reset

func (x *ServiceType) Reset()

func (*ServiceType) Set

func (*ServiceType) String

func (x *ServiceType) String() string

func (*ServiceType) TypeKey

func (x *ServiceType) TypeKey() (ServiceTypeKey, bool)

type ServiceTypeKey

type ServiceTypeKey string

ServiceType is a oneof wrapper

const (
	Service_StateEntityQuery   ServiceTypeKey = "stateEntityQuery"
	Service_StateEntityCommand ServiceTypeKey = "stateEntityCommand"
)

type ServiceType_StateEntityCommand

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

func (*ServiceType_StateEntityCommand) Descriptor deprecated

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

Deprecated: Use ServiceType_StateEntityCommand.ProtoReflect.Descriptor instead.

func (*ServiceType_StateEntityCommand) GetEntity

func (x *ServiceType_StateEntityCommand) GetEntity() string

func (*ServiceType_StateEntityCommand) ProtoMessage

func (*ServiceType_StateEntityCommand) ProtoMessage()

func (*ServiceType_StateEntityCommand) ProtoReflect

func (*ServiceType_StateEntityCommand) Reset

func (x *ServiceType_StateEntityCommand) Reset()

func (*ServiceType_StateEntityCommand) String

func (*ServiceType_StateEntityCommand) TypeKey

type ServiceType_StateEntityCommand_

type ServiceType_StateEntityCommand_ struct {
	StateEntityCommand *ServiceType_StateEntityCommand `protobuf:"bytes,2,opt,name=state_entity_command,json=stateEntityCommand,proto3,oneof"`
}

type ServiceType_StateEntityQuery

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

func (*ServiceType_StateEntityQuery) Descriptor deprecated

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

Deprecated: Use ServiceType_StateEntityQuery.ProtoReflect.Descriptor instead.

func (*ServiceType_StateEntityQuery) GetEntity

func (x *ServiceType_StateEntityQuery) GetEntity() string

func (*ServiceType_StateEntityQuery) ProtoMessage

func (*ServiceType_StateEntityQuery) ProtoMessage()

func (*ServiceType_StateEntityQuery) ProtoReflect

func (*ServiceType_StateEntityQuery) Reset

func (x *ServiceType_StateEntityQuery) Reset()

func (*ServiceType_StateEntityQuery) String

func (*ServiceType_StateEntityQuery) TypeKey

type ServiceType_StateEntityQuery_

type ServiceType_StateEntityQuery_ struct {
	StateEntityQuery *ServiceType_StateEntityQuery `protobuf:"bytes,1,opt,name=state_entity_query,json=stateEntityQuery,proto3,oneof"`
}

type SourceImage

type SourceImage struct {
	File            []*descriptorpb.FileDescriptorProto `protobuf:"bytes,1,rep,name=file,proto3" json:"file,omitempty"`
	Packages        []*PackageInfo                      `protobuf:"bytes,2,rep,name=packages,proto3" json:"packages,omitempty"`
	Prose           []*ProseFile                        `protobuf:"bytes,3,rep,name=prose,proto3" json:"prose,omitempty"`
	Options         *FakeOptions                        `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
	SourceFilenames []string                            `protobuf:"bytes,6,rep,name=source_filenames,json=sourceFilenames,proto3" json:"source_filenames,omitempty"`
	SourceName      string                              `protobuf:"bytes,8,opt,name=source_name,json=sourceName,proto3" json:"source_name,omitempty"`
	Version         *string                             `protobuf:"bytes,7,opt,name=version,proto3,oneof" json:"version,omitempty"`
	// contains filtered or unexported fields
}

Image is a parsed source image, similar to google.protobuf.Descriptor but with the J5 config, and some non-proto files

func (*SourceImage) Descriptor deprecated

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

Deprecated: Use SourceImage.ProtoReflect.Descriptor instead.

func (*SourceImage) GetFile

func (*SourceImage) GetOptions

func (x *SourceImage) GetOptions() *FakeOptions

func (*SourceImage) GetPackages

func (x *SourceImage) GetPackages() []*PackageInfo

func (*SourceImage) GetProse

func (x *SourceImage) GetProse() []*ProseFile

func (*SourceImage) GetSourceFilenames

func (x *SourceImage) GetSourceFilenames() []string

func (*SourceImage) GetSourceName

func (x *SourceImage) GetSourceName() string

func (*SourceImage) GetVersion

func (x *SourceImage) GetVersion() string

func (*SourceImage) ProtoMessage

func (*SourceImage) ProtoMessage()

func (*SourceImage) ProtoReflect

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

func (*SourceImage) Reset

func (x *SourceImage) Reset()

func (*SourceImage) String

func (x *SourceImage) String() string

type SubPackage

type SubPackage struct {
	Name     string                             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Services []*Service                         `protobuf:"bytes,2,rep,name=services,proto3" json:"services,omitempty"`
	Topics   []*Topic                           `protobuf:"bytes,3,rep,name=topics,proto3" json:"topics,omitempty"`
	Schemas  map[string]*schema_j5pb.RootSchema `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SubPackage) Descriptor deprecated

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

Deprecated: Use SubPackage.ProtoReflect.Descriptor instead.

func (*SubPackage) GetName

func (x *SubPackage) GetName() string

func (*SubPackage) GetSchemas

func (x *SubPackage) GetSchemas() map[string]*schema_j5pb.RootSchema

func (*SubPackage) GetServices

func (x *SubPackage) GetServices() []*Service

func (*SubPackage) GetTopics

func (x *SubPackage) GetTopics() []*Topic

func (*SubPackage) ProtoMessage

func (*SubPackage) ProtoMessage()

func (*SubPackage) ProtoReflect

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

func (*SubPackage) Reset

func (x *SubPackage) Reset()

func (*SubPackage) String

func (x *SubPackage) String() string

type Topic

type Topic struct {

	// name as specified in proto, e.g. "FooTopic"
	Name     string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Messages []*TopicMessage `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*Topic) Descriptor deprecated

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

Deprecated: Use Topic.ProtoReflect.Descriptor instead.

func (*Topic) GetMessages

func (x *Topic) GetMessages() []*TopicMessage

func (*Topic) GetName

func (x *Topic) GetName() string

func (*Topic) ProtoMessage

func (*Topic) ProtoMessage()

func (*Topic) ProtoReflect

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

func (*Topic) Reset

func (x *Topic) Reset()

func (*Topic) String

func (x *Topic) String() string

type TopicMessage

type TopicMessage struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	FullGrpcName string `protobuf:"bytes,2,opt,name=full_grpc_name,json=fullGrpcName,proto3" json:"full_grpc_name,omitempty"`
	Schema       string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`
	// contains filtered or unexported fields
}

func (*TopicMessage) Descriptor deprecated

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

Deprecated: Use TopicMessage.ProtoReflect.Descriptor instead.

func (*TopicMessage) GetFullGrpcName

func (x *TopicMessage) GetFullGrpcName() string

func (*TopicMessage) GetName

func (x *TopicMessage) GetName() string

func (*TopicMessage) GetSchema

func (x *TopicMessage) GetSchema() string

func (*TopicMessage) ProtoMessage

func (*TopicMessage) ProtoMessage()

func (*TopicMessage) ProtoReflect

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

func (*TopicMessage) Reset

func (x *TopicMessage) Reset()

func (*TopicMessage) String

func (x *TopicMessage) String() string

Jump to

Keyboard shortcuts

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