...

Package discovery_v1

import "github.com/google/gnostic-models/discovery"
Overview
Index

Overview ▾

Index ▾

Constants
Variables
func FetchDocumentBytes(documentURL string) ([]byte, error)
func FetchListBytes() ([]byte, error)
func Version() string
type API
type Annotations
    func NewAnnotations(in *yaml.Node, context *compiler.Context) (*Annotations, error)
    func (*Annotations) Descriptor() ([]byte, []int)
    func (x *Annotations) GetRequired() []string
    func (*Annotations) ProtoMessage()
    func (x *Annotations) ProtoReflect() protoreflect.Message
    func (x *Annotations) Reset()
    func (m *Annotations) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Annotations) String() string
    func (m *Annotations) ToRawInfo() *yaml.Node
type Any
    func NewAny(in *yaml.Node, context *compiler.Context) (*Any, error)
    func (*Any) Descriptor() ([]byte, []int)
    func (x *Any) GetValue() *anypb.Any
    func (x *Any) GetYaml() string
    func (*Any) ProtoMessage()
    func (x *Any) ProtoReflect() protoreflect.Message
    func (x *Any) Reset()
    func (m *Any) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Any) String() string
    func (m *Any) ToRawInfo() *yaml.Node
type Auth
    func NewAuth(in *yaml.Node, context *compiler.Context) (*Auth, error)
    func (*Auth) Descriptor() ([]byte, []int)
    func (x *Auth) GetOauth2() *Oauth2
    func (*Auth) ProtoMessage()
    func (x *Auth) ProtoReflect() protoreflect.Message
    func (x *Auth) Reset()
    func (m *Auth) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Auth) String() string
    func (m *Auth) ToRawInfo() *yaml.Node
type Document
    func NewDocument(in *yaml.Node, context *compiler.Context) (*Document, error)
    func ParseDocument(b []byte) (*Document, error)
    func (*Document) Descriptor() ([]byte, []int)
    func (x *Document) GetAuth() *Auth
    func (x *Document) GetBasePath() string
    func (x *Document) GetBaseUrl() string
    func (x *Document) GetBatchPath() string
    func (x *Document) GetCanonicalName() string
    func (x *Document) GetDescription() string
    func (x *Document) GetDiscoveryVersion() string
    func (x *Document) GetDocumentationLink() string
    func (x *Document) GetEtag() string
    func (x *Document) GetFeatures() []string
    func (x *Document) GetFullyEncodeReservedExpansion() bool
    func (x *Document) GetIcons() *Icons
    func (x *Document) GetId() string
    func (x *Document) GetKind() string
    func (x *Document) GetLabels() []string
    func (x *Document) GetMethods() *Methods
    func (x *Document) GetMtlsRootUrl() string
    func (x *Document) GetName() string
    func (x *Document) GetOwnerDomain() string
    func (x *Document) GetOwnerName() string
    func (x *Document) GetPackagePath() string
    func (x *Document) GetParameters() *Parameters
    func (x *Document) GetProtocol() string
    func (x *Document) GetResources() *Resources
    func (x *Document) GetRevision() string
    func (x *Document) GetRootUrl() string
    func (x *Document) GetSchemas() *Schemas
    func (x *Document) GetServicePath() string
    func (x *Document) GetTitle() string
    func (x *Document) GetVersion() string
    func (x *Document) GetVersionModule() bool
    func (*Document) ProtoMessage()
    func (x *Document) ProtoReflect() protoreflect.Message
    func (x *Document) Reset()
    func (m *Document) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Document) String() string
    func (m *Document) ToRawInfo() *yaml.Node
type Icons
    func NewIcons(in *yaml.Node, context *compiler.Context) (*Icons, error)
    func (*Icons) Descriptor() ([]byte, []int)
    func (x *Icons) GetX16() string
    func (x *Icons) GetX32() string
    func (*Icons) ProtoMessage()
    func (x *Icons) ProtoReflect() protoreflect.Message
    func (x *Icons) Reset()
    func (m *Icons) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Icons) String() string
    func (m *Icons) ToRawInfo() *yaml.Node
type List
    func FetchList() (*List, error)
    func ParseList(bytes []byte) (*List, error)
    func (a *List) APIWithNameAndVersion(name string, version string) (*API, error)
type MediaUpload
    func NewMediaUpload(in *yaml.Node, context *compiler.Context) (*MediaUpload, error)
    func (*MediaUpload) Descriptor() ([]byte, []int)
    func (x *MediaUpload) GetAccept() []string
    func (x *MediaUpload) GetMaxSize() string
    func (x *MediaUpload) GetProtocols() *Protocols
    func (x *MediaUpload) GetSupportsSubscription() bool
    func (*MediaUpload) ProtoMessage()
    func (x *MediaUpload) ProtoReflect() protoreflect.Message
    func (x *MediaUpload) Reset()
    func (m *MediaUpload) ResolveReferences(root string) (*yaml.Node, error)
    func (x *MediaUpload) String() string
    func (m *MediaUpload) ToRawInfo() *yaml.Node
type Method
    func NewMethod(in *yaml.Node, context *compiler.Context) (*Method, error)
    func (*Method) Descriptor() ([]byte, []int)
    func (x *Method) GetDescription() string
    func (x *Method) GetEtagRequired() bool
    func (x *Method) GetFlatPath() string
    func (x *Method) GetHttpMethod() string
    func (x *Method) GetId() string
    func (x *Method) GetMediaUpload() *MediaUpload
    func (x *Method) GetParameterOrder() []string
    func (x *Method) GetParameters() *Parameters
    func (x *Method) GetPath() string
    func (x *Method) GetRequest() *Request
    func (x *Method) GetResponse() *Response
    func (x *Method) GetScopes() []string
    func (x *Method) GetStreamingType() string
    func (x *Method) GetSupportsMediaDownload() bool
    func (x *Method) GetSupportsMediaUpload() bool
    func (x *Method) GetSupportsSubscription() bool
    func (x *Method) GetUseMediaDownloadService() bool
    func (*Method) ProtoMessage()
    func (x *Method) ProtoReflect() protoreflect.Message
    func (x *Method) Reset()
    func (m *Method) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Method) String() string
    func (m *Method) ToRawInfo() *yaml.Node
type Methods
    func NewMethods(in *yaml.Node, context *compiler.Context) (*Methods, error)
    func (*Methods) Descriptor() ([]byte, []int)
    func (x *Methods) GetAdditionalProperties() []*NamedMethod
    func (*Methods) ProtoMessage()
    func (x *Methods) ProtoReflect() protoreflect.Message
    func (x *Methods) Reset()
    func (m *Methods) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Methods) String() string
    func (m *Methods) ToRawInfo() *yaml.Node
type NamedMethod
    func NewNamedMethod(in *yaml.Node, context *compiler.Context) (*NamedMethod, error)
    func (*NamedMethod) Descriptor() ([]byte, []int)
    func (x *NamedMethod) GetName() string
    func (x *NamedMethod) GetValue() *Method
    func (*NamedMethod) ProtoMessage()
    func (x *NamedMethod) ProtoReflect() protoreflect.Message
    func (x *NamedMethod) Reset()
    func (m *NamedMethod) ResolveReferences(root string) (*yaml.Node, error)
    func (x *NamedMethod) String() string
    func (m *NamedMethod) ToRawInfo() *yaml.Node
type NamedParameter
    func NewNamedParameter(in *yaml.Node, context *compiler.Context) (*NamedParameter, error)
    func (*NamedParameter) Descriptor() ([]byte, []int)
    func (x *NamedParameter) GetName() string
    func (x *NamedParameter) GetValue() *Parameter
    func (*NamedParameter) ProtoMessage()
    func (x *NamedParameter) ProtoReflect() protoreflect.Message
    func (x *NamedParameter) Reset()
    func (m *NamedParameter) ResolveReferences(root string) (*yaml.Node, error)
    func (x *NamedParameter) String() string
    func (m *NamedParameter) ToRawInfo() *yaml.Node
type NamedResource
    func NewNamedResource(in *yaml.Node, context *compiler.Context) (*NamedResource, error)
    func (*NamedResource) Descriptor() ([]byte, []int)
    func (x *NamedResource) GetName() string
    func (x *NamedResource) GetValue() *Resource
    func (*NamedResource) ProtoMessage()
    func (x *NamedResource) ProtoReflect() protoreflect.Message
    func (x *NamedResource) Reset()
    func (m *NamedResource) ResolveReferences(root string) (*yaml.Node, error)
    func (x *NamedResource) String() string
    func (m *NamedResource) ToRawInfo() *yaml.Node
type NamedSchema
    func NewNamedSchema(in *yaml.Node, context *compiler.Context) (*NamedSchema, error)
    func (*NamedSchema) Descriptor() ([]byte, []int)
    func (x *NamedSchema) GetName() string
    func (x *NamedSchema) GetValue() *Schema
    func (*NamedSchema) ProtoMessage()
    func (x *NamedSchema) ProtoReflect() protoreflect.Message
    func (x *NamedSchema) Reset()
    func (m *NamedSchema) ResolveReferences(root string) (*yaml.Node, error)
    func (x *NamedSchema) String() string
    func (m *NamedSchema) ToRawInfo() *yaml.Node
type NamedScope
    func NewNamedScope(in *yaml.Node, context *compiler.Context) (*NamedScope, error)
    func (*NamedScope) Descriptor() ([]byte, []int)
    func (x *NamedScope) GetName() string
    func (x *NamedScope) GetValue() *Scope
    func (*NamedScope) ProtoMessage()
    func (x *NamedScope) ProtoReflect() protoreflect.Message
    func (x *NamedScope) Reset()
    func (m *NamedScope) ResolveReferences(root string) (*yaml.Node, error)
    func (x *NamedScope) String() string
    func (m *NamedScope) ToRawInfo() *yaml.Node
type Oauth2
    func NewOauth2(in *yaml.Node, context *compiler.Context) (*Oauth2, error)
    func (*Oauth2) Descriptor() ([]byte, []int)
    func (x *Oauth2) GetScopes() *Scopes
    func (*Oauth2) ProtoMessage()
    func (x *Oauth2) ProtoReflect() protoreflect.Message
    func (x *Oauth2) Reset()
    func (m *Oauth2) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Oauth2) String() string
    func (m *Oauth2) ToRawInfo() *yaml.Node
type Parameter
    func NewParameter(in *yaml.Node, context *compiler.Context) (*Parameter, error)
    func (*Parameter) Descriptor() ([]byte, []int)
    func (x *Parameter) GetAdditionalProperties() *Schema
    func (x *Parameter) GetAnnotations() *Annotations
    func (x *Parameter) GetDefault() string
    func (x *Parameter) GetDescription() string
    func (x *Parameter) GetEnum() []string
    func (x *Parameter) GetEnumDescriptions() []string
    func (x *Parameter) GetFormat() string
    func (x *Parameter) GetId() string
    func (x *Parameter) GetItems() *Schema
    func (x *Parameter) GetLocation() string
    func (x *Parameter) GetMaximum() string
    func (x *Parameter) GetMinimum() string
    func (x *Parameter) GetPattern() string
    func (x *Parameter) GetProperties() *Schemas
    func (x *Parameter) GetRepeated() bool
    func (x *Parameter) GetRequired() bool
    func (x *Parameter) GetType() string
    func (x *Parameter) GetXRef() string
    func (*Parameter) ProtoMessage()
    func (x *Parameter) ProtoReflect() protoreflect.Message
    func (x *Parameter) Reset()
    func (m *Parameter) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Parameter) String() string
    func (m *Parameter) ToRawInfo() *yaml.Node
type Parameters
    func NewParameters(in *yaml.Node, context *compiler.Context) (*Parameters, error)
    func (*Parameters) Descriptor() ([]byte, []int)
    func (x *Parameters) GetAdditionalProperties() []*NamedParameter
    func (*Parameters) ProtoMessage()
    func (x *Parameters) ProtoReflect() protoreflect.Message
    func (x *Parameters) Reset()
    func (m *Parameters) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Parameters) String() string
    func (m *Parameters) ToRawInfo() *yaml.Node
type Protocols
    func NewProtocols(in *yaml.Node, context *compiler.Context) (*Protocols, error)
    func (*Protocols) Descriptor() ([]byte, []int)
    func (x *Protocols) GetResumable() *Resumable
    func (x *Protocols) GetSimple() *Simple
    func (*Protocols) ProtoMessage()
    func (x *Protocols) ProtoReflect() protoreflect.Message
    func (x *Protocols) Reset()
    func (m *Protocols) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Protocols) String() string
    func (m *Protocols) ToRawInfo() *yaml.Node
type Request
    func NewRequest(in *yaml.Node, context *compiler.Context) (*Request, error)
    func (*Request) Descriptor() ([]byte, []int)
    func (x *Request) GetParameterName() string
    func (x *Request) GetXRef() string
    func (*Request) ProtoMessage()
    func (x *Request) ProtoReflect() protoreflect.Message
    func (x *Request) Reset()
    func (m *Request) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Request) String() string
    func (m *Request) ToRawInfo() *yaml.Node
type Resource
    func NewResource(in *yaml.Node, context *compiler.Context) (*Resource, error)
    func (*Resource) Descriptor() ([]byte, []int)
    func (x *Resource) GetMethods() *Methods
    func (x *Resource) GetResources() *Resources
    func (*Resource) ProtoMessage()
    func (x *Resource) ProtoReflect() protoreflect.Message
    func (x *Resource) Reset()
    func (m *Resource) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Resource) String() string
    func (m *Resource) ToRawInfo() *yaml.Node
type Resources
    func NewResources(in *yaml.Node, context *compiler.Context) (*Resources, error)
    func (*Resources) Descriptor() ([]byte, []int)
    func (x *Resources) GetAdditionalProperties() []*NamedResource
    func (*Resources) ProtoMessage()
    func (x *Resources) ProtoReflect() protoreflect.Message
    func (x *Resources) Reset()
    func (m *Resources) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Resources) String() string
    func (m *Resources) ToRawInfo() *yaml.Node
type Response
    func NewResponse(in *yaml.Node, context *compiler.Context) (*Response, error)
    func (*Response) Descriptor() ([]byte, []int)
    func (x *Response) GetXRef() string
    func (*Response) ProtoMessage()
    func (x *Response) ProtoReflect() protoreflect.Message
    func (x *Response) Reset()
    func (m *Response) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Response) String() string
    func (m *Response) ToRawInfo() *yaml.Node
type Resumable
    func NewResumable(in *yaml.Node, context *compiler.Context) (*Resumable, error)
    func (*Resumable) Descriptor() ([]byte, []int)
    func (x *Resumable) GetMultipart() bool
    func (x *Resumable) GetPath() string
    func (*Resumable) ProtoMessage()
    func (x *Resumable) ProtoReflect() protoreflect.Message
    func (x *Resumable) Reset()
    func (m *Resumable) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Resumable) String() string
    func (m *Resumable) ToRawInfo() *yaml.Node
type Schema
    func NewSchema(in *yaml.Node, context *compiler.Context) (*Schema, error)
    func (*Schema) Descriptor() ([]byte, []int)
    func (x *Schema) GetAdditionalProperties() *Schema
    func (x *Schema) GetAnnotations() *Annotations
    func (x *Schema) GetDefault() string
    func (x *Schema) GetDescription() string
    func (x *Schema) GetEnum() []string
    func (x *Schema) GetEnumDescriptions() []string
    func (x *Schema) GetFormat() string
    func (x *Schema) GetId() string
    func (x *Schema) GetItems() *Schema
    func (x *Schema) GetLocation() string
    func (x *Schema) GetMaximum() string
    func (x *Schema) GetMinimum() string
    func (x *Schema) GetPattern() string
    func (x *Schema) GetProperties() *Schemas
    func (x *Schema) GetReadOnly() bool
    func (x *Schema) GetRepeated() bool
    func (x *Schema) GetRequired() bool
    func (x *Schema) GetType() string
    func (x *Schema) GetXRef() string
    func (*Schema) ProtoMessage()
    func (x *Schema) ProtoReflect() protoreflect.Message
    func (x *Schema) Reset()
    func (m *Schema) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Schema) String() string
    func (m *Schema) ToRawInfo() *yaml.Node
type Schemas
    func NewSchemas(in *yaml.Node, context *compiler.Context) (*Schemas, error)
    func (*Schemas) Descriptor() ([]byte, []int)
    func (x *Schemas) GetAdditionalProperties() []*NamedSchema
    func (*Schemas) ProtoMessage()
    func (x *Schemas) ProtoReflect() protoreflect.Message
    func (x *Schemas) Reset()
    func (m *Schemas) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Schemas) String() string
    func (m *Schemas) ToRawInfo() *yaml.Node
type Scope
    func NewScope(in *yaml.Node, context *compiler.Context) (*Scope, error)
    func (*Scope) Descriptor() ([]byte, []int)
    func (x *Scope) GetDescription() string
    func (*Scope) ProtoMessage()
    func (x *Scope) ProtoReflect() protoreflect.Message
    func (x *Scope) Reset()
    func (m *Scope) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Scope) String() string
    func (m *Scope) ToRawInfo() *yaml.Node
type Scopes
    func NewScopes(in *yaml.Node, context *compiler.Context) (*Scopes, error)
    func (*Scopes) Descriptor() ([]byte, []int)
    func (x *Scopes) GetAdditionalProperties() []*NamedScope
    func (*Scopes) ProtoMessage()
    func (x *Scopes) ProtoReflect() protoreflect.Message
    func (x *Scopes) Reset()
    func (m *Scopes) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Scopes) String() string
    func (m *Scopes) ToRawInfo() *yaml.Node
type Simple
    func NewSimple(in *yaml.Node, context *compiler.Context) (*Simple, error)
    func (*Simple) Descriptor() ([]byte, []int)
    func (x *Simple) GetMultipart() bool
    func (x *Simple) GetPath() string
    func (*Simple) ProtoMessage()
    func (x *Simple) ProtoReflect() protoreflect.Message
    func (x *Simple) Reset()
    func (m *Simple) ResolveReferences(root string) (*yaml.Node, error)
    func (x *Simple) String() string
    func (m *Simple) ToRawInfo() *yaml.Node
type StringArray
    func NewStringArray(in *yaml.Node, context *compiler.Context) (*StringArray, error)
    func (*StringArray) Descriptor() ([]byte, []int)
    func (x *StringArray) GetValue() []string
    func (*StringArray) ProtoMessage()
    func (x *StringArray) ProtoReflect() protoreflect.Message
    func (x *StringArray) Reset()
    func (m *StringArray) ResolveReferences(root string) (*yaml.Node, error)
    func (x *StringArray) String() string
    func (m *StringArray) ToRawInfo() *yaml.Node

Package files

discovery.go discovery.pb.go document.go list.go

Constants

APIsListServiceURL is the URL for the Google APIs Discovery Service

const APIsListServiceURL = "https://www.googleapis.com/discovery/v1/apis"

Variables

var File_discovery_discovery_proto protoreflect.FileDescriptor

func FetchDocumentBytes

func FetchDocumentBytes(documentURL string) ([]byte, error)

FetchDocumentBytes downloads the bytes of a discovery document from a URL.

func FetchListBytes

func FetchListBytes() ([]byte, error)

func Version

func Version() string

Version returns the package name (and OpenAPI version).

type API

An API represents an API description returned by the apis/list API.

type API struct {
    Kind              string            `json:"kind"`
    ID                string            `json:"id"`
    Name              string            `json:"name"`
    Version           string            `json:"version"`
    Title             string            `json:"title"`
    Description       string            `json:"description"`
    DiscoveryRestURL  string            `json:"discoveryRestUrl"`
    DiscoveryLink     string            `json:"discoveryLink"`
    Icons             map[string]string `json:"icons"`
    DocumentationLink string            `json:"documentationLink"`
    Labels            []string          `json:"labels"`
    Preferred         bool              `json:"preferred"`
}

type Annotations

type Annotations struct {
    Required []string `protobuf:"bytes,1,rep,name=required,proto3" json:"required,omitempty"`
    // contains filtered or unexported fields
}

func NewAnnotations

func NewAnnotations(in *yaml.Node, context *compiler.Context) (*Annotations, error)

NewAnnotations creates an object of type Annotations if possible, returning an error if not.

func (*Annotations) Descriptor

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

Deprecated: Use Annotations.ProtoReflect.Descriptor instead.

func (*Annotations) GetRequired

func (x *Annotations) GetRequired() []string

func (*Annotations) ProtoMessage

func (*Annotations) ProtoMessage()

func (*Annotations) ProtoReflect

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

func (*Annotations) Reset

func (x *Annotations) Reset()

func (*Annotations) ResolveReferences

func (m *Annotations) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Annotations objects.

func (*Annotations) String

func (x *Annotations) String() string

func (*Annotations) ToRawInfo

func (m *Annotations) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Annotations suitable for JSON or YAML export.

type Any

type Any struct {
    Value *anypb.Any `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
    Yaml  string     `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
    // contains filtered or unexported fields
}

func NewAny

func NewAny(in *yaml.Node, context *compiler.Context) (*Any, error)

NewAny creates an object of type Any if possible, returning an error if not.

func (*Any) Descriptor

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

Deprecated: Use Any.ProtoReflect.Descriptor instead.

func (*Any) GetValue

func (x *Any) GetValue() *anypb.Any

func (*Any) GetYaml

func (x *Any) GetYaml() string

func (*Any) ProtoMessage

func (*Any) ProtoMessage()

func (*Any) ProtoReflect

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

func (*Any) Reset

func (x *Any) Reset()

func (*Any) ResolveReferences

func (m *Any) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Any objects.

func (*Any) String

func (x *Any) String() string

func (*Any) ToRawInfo

func (m *Any) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Any suitable for JSON or YAML export.

type Auth

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

func NewAuth

func NewAuth(in *yaml.Node, context *compiler.Context) (*Auth, error)

NewAuth creates an object of type Auth if possible, returning an error if not.

func (*Auth) Descriptor

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

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetOauth2

func (x *Auth) GetOauth2() *Oauth2

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect

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

func (*Auth) Reset

func (x *Auth) Reset()

func (*Auth) ResolveReferences

func (m *Auth) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Auth objects.

func (*Auth) String

func (x *Auth) String() string

func (*Auth) ToRawInfo

func (m *Auth) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Auth suitable for JSON or YAML export.

type Document

type Document struct {
    Kind                         string      `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
    DiscoveryVersion             string      `protobuf:"bytes,2,opt,name=discovery_version,json=discoveryVersion,proto3" json:"discovery_version,omitempty"`
    Id                           string      `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
    Name                         string      `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
    Version                      string      `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
    Revision                     string      `protobuf:"bytes,6,opt,name=revision,proto3" json:"revision,omitempty"`
    Title                        string      `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
    Description                  string      `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
    Icons                        *Icons      `protobuf:"bytes,9,opt,name=icons,proto3" json:"icons,omitempty"`
    DocumentationLink            string      `protobuf:"bytes,10,opt,name=documentation_link,json=documentationLink,proto3" json:"documentation_link,omitempty"`
    Labels                       []string    `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty"`
    Protocol                     string      `protobuf:"bytes,12,opt,name=protocol,proto3" json:"protocol,omitempty"`
    BaseUrl                      string      `protobuf:"bytes,13,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
    BasePath                     string      `protobuf:"bytes,14,opt,name=base_path,json=basePath,proto3" json:"base_path,omitempty"`
    RootUrl                      string      `protobuf:"bytes,15,opt,name=root_url,json=rootUrl,proto3" json:"root_url,omitempty"`
    ServicePath                  string      `protobuf:"bytes,16,opt,name=service_path,json=servicePath,proto3" json:"service_path,omitempty"`
    BatchPath                    string      `protobuf:"bytes,17,opt,name=batch_path,json=batchPath,proto3" json:"batch_path,omitempty"`
    Parameters                   *Parameters `protobuf:"bytes,18,opt,name=parameters,proto3" json:"parameters,omitempty"`
    Auth                         *Auth       `protobuf:"bytes,19,opt,name=auth,proto3" json:"auth,omitempty"`
    Features                     []string    `protobuf:"bytes,20,rep,name=features,proto3" json:"features,omitempty"`
    Schemas                      *Schemas    `protobuf:"bytes,21,opt,name=schemas,proto3" json:"schemas,omitempty"`
    Methods                      *Methods    `protobuf:"bytes,22,opt,name=methods,proto3" json:"methods,omitempty"`
    Resources                    *Resources  `protobuf:"bytes,23,opt,name=resources,proto3" json:"resources,omitempty"`
    Etag                         string      `protobuf:"bytes,24,opt,name=etag,proto3" json:"etag,omitempty"`
    OwnerDomain                  string      `protobuf:"bytes,25,opt,name=owner_domain,json=ownerDomain,proto3" json:"owner_domain,omitempty"`
    OwnerName                    string      `protobuf:"bytes,26,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"`
    VersionModule                bool        `protobuf:"varint,27,opt,name=version_module,json=versionModule,proto3" json:"version_module,omitempty"`
    CanonicalName                string      `protobuf:"bytes,28,opt,name=canonical_name,json=canonicalName,proto3" json:"canonical_name,omitempty"`
    FullyEncodeReservedExpansion bool        `protobuf:"varint,29,opt,name=fully_encode_reserved_expansion,json=fullyEncodeReservedExpansion,proto3" json:"fully_encode_reserved_expansion,omitempty"`
    PackagePath                  string      `protobuf:"bytes,30,opt,name=package_path,json=packagePath,proto3" json:"package_path,omitempty"`
    MtlsRootUrl                  string      `protobuf:"bytes,31,opt,name=mtls_root_url,json=mtlsRootUrl,proto3" json:"mtls_root_url,omitempty"`
    // contains filtered or unexported fields
}

func NewDocument

func NewDocument(in *yaml.Node, context *compiler.Context) (*Document, error)

NewDocument creates an object of type Document if possible, returning an error if not.

func ParseDocument

func ParseDocument(b []byte) (*Document, error)

ParseDocument reads a Discovery description from a YAML/JSON representation.

func (*Document) Descriptor

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

Deprecated: Use Document.ProtoReflect.Descriptor instead.

func (*Document) GetAuth

func (x *Document) GetAuth() *Auth

func (*Document) GetBasePath

func (x *Document) GetBasePath() string

func (*Document) GetBaseUrl

func (x *Document) GetBaseUrl() string

func (*Document) GetBatchPath

func (x *Document) GetBatchPath() string

func (*Document) GetCanonicalName

func (x *Document) GetCanonicalName() string

func (*Document) GetDescription

func (x *Document) GetDescription() string

func (*Document) GetDiscoveryVersion

func (x *Document) GetDiscoveryVersion() string
func (x *Document) GetDocumentationLink() string

func (*Document) GetEtag

func (x *Document) GetEtag() string

func (*Document) GetFeatures

func (x *Document) GetFeatures() []string

func (*Document) GetFullyEncodeReservedExpansion

func (x *Document) GetFullyEncodeReservedExpansion() bool

func (*Document) GetIcons

func (x *Document) GetIcons() *Icons

func (*Document) GetId

func (x *Document) GetId() string

func (*Document) GetKind

func (x *Document) GetKind() string

func (*Document) GetLabels

func (x *Document) GetLabels() []string

func (*Document) GetMethods

func (x *Document) GetMethods() *Methods

func (*Document) GetMtlsRootUrl

func (x *Document) GetMtlsRootUrl() string

func (*Document) GetName

func (x *Document) GetName() string

func (*Document) GetOwnerDomain

func (x *Document) GetOwnerDomain() string

func (*Document) GetOwnerName

func (x *Document) GetOwnerName() string

func (*Document) GetPackagePath

func (x *Document) GetPackagePath() string

func (*Document) GetParameters

func (x *Document) GetParameters() *Parameters

func (*Document) GetProtocol

func (x *Document) GetProtocol() string

func (*Document) GetResources

func (x *Document) GetResources() *Resources

func (*Document) GetRevision

func (x *Document) GetRevision() string

func (*Document) GetRootUrl

func (x *Document) GetRootUrl() string

func (*Document) GetSchemas

func (x *Document) GetSchemas() *Schemas

func (*Document) GetServicePath

func (x *Document) GetServicePath() string

func (*Document) GetTitle

func (x *Document) GetTitle() string

func (*Document) GetVersion

func (x *Document) GetVersion() string

func (*Document) GetVersionModule

func (x *Document) GetVersionModule() bool

func (*Document) ProtoMessage

func (*Document) ProtoMessage()

func (*Document) ProtoReflect

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

func (*Document) Reset

func (x *Document) Reset()

func (*Document) ResolveReferences

func (m *Document) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Document objects.

func (*Document) String

func (x *Document) String() string

func (*Document) ToRawInfo

func (m *Document) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Document suitable for JSON or YAML export.

type Icons

Icons that represent the API.

type Icons struct {
    X16 string `protobuf:"bytes,1,opt,name=x16,proto3" json:"x16,omitempty"`
    X32 string `protobuf:"bytes,2,opt,name=x32,proto3" json:"x32,omitempty"`
    // contains filtered or unexported fields
}

func NewIcons

func NewIcons(in *yaml.Node, context *compiler.Context) (*Icons, error)

NewIcons creates an object of type Icons if possible, returning an error if not.

func (*Icons) Descriptor

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

Deprecated: Use Icons.ProtoReflect.Descriptor instead.

func (*Icons) GetX16

func (x *Icons) GetX16() string

func (*Icons) GetX32

func (x *Icons) GetX32() string

func (*Icons) ProtoMessage

func (*Icons) ProtoMessage()

func (*Icons) ProtoReflect

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

func (*Icons) Reset

func (x *Icons) Reset()

func (*Icons) ResolveReferences

func (m *Icons) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Icons objects.

func (*Icons) String

func (x *Icons) String() string

func (*Icons) ToRawInfo

func (m *Icons) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Icons suitable for JSON or YAML export.

type List

A List represents the results of a call to the apis/list API. https://developers.google.com/discovery/v1/reference/apis/list

type List struct {
    Kind             string `json:"kind"`
    DiscoveryVersion string `json:"discoveryVersion"`
    APIs             []*API `json:"items"`
}

func FetchList

func FetchList() (*List, error)

Read the list of APIs from the apis/list service.

func ParseList

func ParseList(bytes []byte) (*List, error)

ParseList unmarshals the bytes into a Document.

func (*List) APIWithNameAndVersion

func (a *List) APIWithNameAndVersion(name string, version string) (*API, error)

APIWithNameAndVersion returns the API with a specified name and version. If version is the empty string, the API name must be unique.

type MediaUpload

type MediaUpload struct {
    Accept               []string   `protobuf:"bytes,1,rep,name=accept,proto3" json:"accept,omitempty"`
    MaxSize              string     `protobuf:"bytes,2,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
    Protocols            *Protocols `protobuf:"bytes,3,opt,name=protocols,proto3" json:"protocols,omitempty"`
    SupportsSubscription bool       `protobuf:"varint,4,opt,name=supports_subscription,json=supportsSubscription,proto3" json:"supports_subscription,omitempty"`
    // contains filtered or unexported fields
}

func NewMediaUpload

func NewMediaUpload(in *yaml.Node, context *compiler.Context) (*MediaUpload, error)

NewMediaUpload creates an object of type MediaUpload if possible, returning an error if not.

func (*MediaUpload) Descriptor

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

Deprecated: Use MediaUpload.ProtoReflect.Descriptor instead.

func (*MediaUpload) GetAccept

func (x *MediaUpload) GetAccept() []string

func (*MediaUpload) GetMaxSize

func (x *MediaUpload) GetMaxSize() string

func (*MediaUpload) GetProtocols

func (x *MediaUpload) GetProtocols() *Protocols

func (*MediaUpload) GetSupportsSubscription

func (x *MediaUpload) GetSupportsSubscription() bool

func (*MediaUpload) ProtoMessage

func (*MediaUpload) ProtoMessage()

func (*MediaUpload) ProtoReflect

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

func (*MediaUpload) Reset

func (x *MediaUpload) Reset()

func (*MediaUpload) ResolveReferences

func (m *MediaUpload) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside MediaUpload objects.

func (*MediaUpload) String

func (x *MediaUpload) String() string

func (*MediaUpload) ToRawInfo

func (m *MediaUpload) ToRawInfo() *yaml.Node

ToRawInfo returns a description of MediaUpload suitable for JSON or YAML export.

type Method

type Method struct {
    Id                      string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Path                    string       `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    HttpMethod              string       `protobuf:"bytes,3,opt,name=http_method,json=httpMethod,proto3" json:"http_method,omitempty"`
    Description             string       `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
    Parameters              *Parameters  `protobuf:"bytes,5,opt,name=parameters,proto3" json:"parameters,omitempty"`
    ParameterOrder          []string     `protobuf:"bytes,6,rep,name=parameter_order,json=parameterOrder,proto3" json:"parameter_order,omitempty"`
    Request                 *Request     `protobuf:"bytes,7,opt,name=request,proto3" json:"request,omitempty"`
    Response                *Response    `protobuf:"bytes,8,opt,name=response,proto3" json:"response,omitempty"`
    Scopes                  []string     `protobuf:"bytes,9,rep,name=scopes,proto3" json:"scopes,omitempty"`
    SupportsMediaDownload   bool         `protobuf:"varint,10,opt,name=supports_media_download,json=supportsMediaDownload,proto3" json:"supports_media_download,omitempty"`
    SupportsMediaUpload     bool         `protobuf:"varint,11,opt,name=supports_media_upload,json=supportsMediaUpload,proto3" json:"supports_media_upload,omitempty"`
    UseMediaDownloadService bool         `protobuf:"varint,12,opt,name=use_media_download_service,json=useMediaDownloadService,proto3" json:"use_media_download_service,omitempty"`
    MediaUpload             *MediaUpload `protobuf:"bytes,13,opt,name=media_upload,json=mediaUpload,proto3" json:"media_upload,omitempty"`
    SupportsSubscription    bool         `protobuf:"varint,14,opt,name=supports_subscription,json=supportsSubscription,proto3" json:"supports_subscription,omitempty"`
    FlatPath                string       `protobuf:"bytes,15,opt,name=flat_path,json=flatPath,proto3" json:"flat_path,omitempty"`
    EtagRequired            bool         `protobuf:"varint,16,opt,name=etag_required,json=etagRequired,proto3" json:"etag_required,omitempty"`
    StreamingType           string       `protobuf:"bytes,17,opt,name=streaming_type,json=streamingType,proto3" json:"streaming_type,omitempty"`
    // contains filtered or unexported fields
}

func NewMethod

func NewMethod(in *yaml.Node, context *compiler.Context) (*Method, error)

NewMethod creates an object of type Method if possible, returning an error if not.

func (*Method) Descriptor

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

Deprecated: Use Method.ProtoReflect.Descriptor instead.

func (*Method) GetDescription

func (x *Method) GetDescription() string

func (*Method) GetEtagRequired

func (x *Method) GetEtagRequired() bool

func (*Method) GetFlatPath

func (x *Method) GetFlatPath() string

func (*Method) GetHttpMethod

func (x *Method) GetHttpMethod() string

func (*Method) GetId

func (x *Method) GetId() string

func (*Method) GetMediaUpload

func (x *Method) GetMediaUpload() *MediaUpload

func (*Method) GetParameterOrder

func (x *Method) GetParameterOrder() []string

func (*Method) GetParameters

func (x *Method) GetParameters() *Parameters

func (*Method) GetPath

func (x *Method) GetPath() string

func (*Method) GetRequest

func (x *Method) GetRequest() *Request

func (*Method) GetResponse

func (x *Method) GetResponse() *Response

func (*Method) GetScopes

func (x *Method) GetScopes() []string

func (*Method) GetStreamingType

func (x *Method) GetStreamingType() string

func (*Method) GetSupportsMediaDownload

func (x *Method) GetSupportsMediaDownload() bool

func (*Method) GetSupportsMediaUpload

func (x *Method) GetSupportsMediaUpload() bool

func (*Method) GetSupportsSubscription

func (x *Method) GetSupportsSubscription() bool

func (*Method) GetUseMediaDownloadService

func (x *Method) GetUseMediaDownloadService() bool

func (*Method) ProtoMessage

func (*Method) ProtoMessage()

func (*Method) ProtoReflect

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

func (*Method) Reset

func (x *Method) Reset()

func (*Method) ResolveReferences

func (m *Method) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Method objects.

func (*Method) String

func (x *Method) String() string

func (*Method) ToRawInfo

func (m *Method) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Method suitable for JSON or YAML export.

type Methods

type Methods struct {
    AdditionalProperties []*NamedMethod `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
    // contains filtered or unexported fields
}

func NewMethods

func NewMethods(in *yaml.Node, context *compiler.Context) (*Methods, error)

NewMethods creates an object of type Methods if possible, returning an error if not.

func (*Methods) Descriptor

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

Deprecated: Use Methods.ProtoReflect.Descriptor instead.

func (*Methods) GetAdditionalProperties

func (x *Methods) GetAdditionalProperties() []*NamedMethod

func (*Methods) ProtoMessage

func (*Methods) ProtoMessage()

func (*Methods) ProtoReflect

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

func (*Methods) Reset

func (x *Methods) Reset()

func (*Methods) ResolveReferences

func (m *Methods) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Methods objects.

func (*Methods) String

func (x *Methods) String() string

func (*Methods) ToRawInfo

func (m *Methods) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Methods suitable for JSON or YAML export.

type NamedMethod

Automatically-generated message used to represent maps of Method as ordered (name,value) pairs.

type NamedMethod struct {

    // Map key
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Mapped value
    Value *Method `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    // contains filtered or unexported fields
}

func NewNamedMethod

func NewNamedMethod(in *yaml.Node, context *compiler.Context) (*NamedMethod, error)

NewNamedMethod creates an object of type NamedMethod if possible, returning an error if not.

func (*NamedMethod) Descriptor

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

Deprecated: Use NamedMethod.ProtoReflect.Descriptor instead.

func (*NamedMethod) GetName

func (x *NamedMethod) GetName() string

func (*NamedMethod) GetValue

func (x *NamedMethod) GetValue() *Method

func (*NamedMethod) ProtoMessage

func (*NamedMethod) ProtoMessage()

func (*NamedMethod) ProtoReflect

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

func (*NamedMethod) Reset

func (x *NamedMethod) Reset()

func (*NamedMethod) ResolveReferences

func (m *NamedMethod) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside NamedMethod objects.

func (*NamedMethod) String

func (x *NamedMethod) String() string

func (*NamedMethod) ToRawInfo

func (m *NamedMethod) ToRawInfo() *yaml.Node

ToRawInfo returns a description of NamedMethod suitable for JSON or YAML export.

type NamedParameter

Automatically-generated message used to represent maps of Parameter as ordered (name,value) pairs.

type NamedParameter struct {

    // Map key
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Mapped value
    Value *Parameter `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    // contains filtered or unexported fields
}

func NewNamedParameter

func NewNamedParameter(in *yaml.Node, context *compiler.Context) (*NamedParameter, error)

NewNamedParameter creates an object of type NamedParameter if possible, returning an error if not.

func (*NamedParameter) Descriptor

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

Deprecated: Use NamedParameter.ProtoReflect.Descriptor instead.

func (*NamedParameter) GetName

func (x *NamedParameter) GetName() string

func (*NamedParameter) GetValue

func (x *NamedParameter) GetValue() *Parameter

func (*NamedParameter) ProtoMessage

func (*NamedParameter) ProtoMessage()

func (*NamedParameter) ProtoReflect

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

func (*NamedParameter) Reset

func (x *NamedParameter) Reset()

func (*NamedParameter) ResolveReferences

func (m *NamedParameter) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside NamedParameter objects.

func (*NamedParameter) String

func (x *NamedParameter) String() string

func (*NamedParameter) ToRawInfo

func (m *NamedParameter) ToRawInfo() *yaml.Node

ToRawInfo returns a description of NamedParameter suitable for JSON or YAML export.

type NamedResource

Automatically-generated message used to represent maps of Resource as ordered (name,value) pairs.

type NamedResource struct {

    // Map key
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Mapped value
    Value *Resource `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    // contains filtered or unexported fields
}

func NewNamedResource

func NewNamedResource(in *yaml.Node, context *compiler.Context) (*NamedResource, error)

NewNamedResource creates an object of type NamedResource if possible, returning an error if not.

func (*NamedResource) Descriptor

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

Deprecated: Use NamedResource.ProtoReflect.Descriptor instead.

func (*NamedResource) GetName

func (x *NamedResource) GetName() string

func (*NamedResource) GetValue

func (x *NamedResource) GetValue() *Resource

func (*NamedResource) ProtoMessage

func (*NamedResource) ProtoMessage()

func (*NamedResource) ProtoReflect

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

func (*NamedResource) Reset

func (x *NamedResource) Reset()

func (*NamedResource) ResolveReferences

func (m *NamedResource) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside NamedResource objects.

func (*NamedResource) String

func (x *NamedResource) String() string

func (*NamedResource) ToRawInfo

func (m *NamedResource) ToRawInfo() *yaml.Node

ToRawInfo returns a description of NamedResource suitable for JSON or YAML export.

type NamedSchema

Automatically-generated message used to represent maps of Schema as ordered (name,value) pairs.

type NamedSchema struct {

    // Map key
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Mapped value
    Value *Schema `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    // contains filtered or unexported fields
}

func NewNamedSchema

func NewNamedSchema(in *yaml.Node, context *compiler.Context) (*NamedSchema, error)

NewNamedSchema creates an object of type NamedSchema if possible, returning an error if not.

func (*NamedSchema) Descriptor

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

Deprecated: Use NamedSchema.ProtoReflect.Descriptor instead.

func (*NamedSchema) GetName

func (x *NamedSchema) GetName() string

func (*NamedSchema) GetValue

func (x *NamedSchema) GetValue() *Schema

func (*NamedSchema) ProtoMessage

func (*NamedSchema) ProtoMessage()

func (*NamedSchema) ProtoReflect

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

func (*NamedSchema) Reset

func (x *NamedSchema) Reset()

func (*NamedSchema) ResolveReferences

func (m *NamedSchema) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside NamedSchema objects.

func (*NamedSchema) String

func (x *NamedSchema) String() string

func (*NamedSchema) ToRawInfo

func (m *NamedSchema) ToRawInfo() *yaml.Node

ToRawInfo returns a description of NamedSchema suitable for JSON or YAML export.

type NamedScope

Automatically-generated message used to represent maps of Scope as ordered (name,value) pairs.

type NamedScope struct {

    // Map key
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Mapped value
    Value *Scope `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    // contains filtered or unexported fields
}

func NewNamedScope

func NewNamedScope(in *yaml.Node, context *compiler.Context) (*NamedScope, error)

NewNamedScope creates an object of type NamedScope if possible, returning an error if not.

func (*NamedScope) Descriptor

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

Deprecated: Use NamedScope.ProtoReflect.Descriptor instead.

func (*NamedScope) GetName

func (x *NamedScope) GetName() string

func (*NamedScope) GetValue

func (x *NamedScope) GetValue() *Scope

func (*NamedScope) ProtoMessage

func (*NamedScope) ProtoMessage()

func (*NamedScope) ProtoReflect

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

func (*NamedScope) Reset

func (x *NamedScope) Reset()

func (*NamedScope) ResolveReferences

func (m *NamedScope) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside NamedScope objects.

func (*NamedScope) String

func (x *NamedScope) String() string

func (*NamedScope) ToRawInfo

func (m *NamedScope) ToRawInfo() *yaml.Node

ToRawInfo returns a description of NamedScope suitable for JSON or YAML export.

type Oauth2

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

func NewOauth2

func NewOauth2(in *yaml.Node, context *compiler.Context) (*Oauth2, error)

NewOauth2 creates an object of type Oauth2 if possible, returning an error if not.

func (*Oauth2) Descriptor

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

Deprecated: Use Oauth2.ProtoReflect.Descriptor instead.

func (*Oauth2) GetScopes

func (x *Oauth2) GetScopes() *Scopes

func (*Oauth2) ProtoMessage

func (*Oauth2) ProtoMessage()

func (*Oauth2) ProtoReflect

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

func (*Oauth2) Reset

func (x *Oauth2) Reset()

func (*Oauth2) ResolveReferences

func (m *Oauth2) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Oauth2 objects.

func (*Oauth2) String

func (x *Oauth2) String() string

func (*Oauth2) ToRawInfo

func (m *Oauth2) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Oauth2 suitable for JSON or YAML export.

type Parameter

type Parameter struct {
    Id                   string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Type                 string       `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
    XRef                 string       `protobuf:"bytes,3,opt,name=_ref,json=Ref,proto3" json:"_ref,omitempty"`
    Description          string       `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
    Default              string       `protobuf:"bytes,5,opt,name=default,proto3" json:"default,omitempty"`
    Required             bool         `protobuf:"varint,6,opt,name=required,proto3" json:"required,omitempty"`
    Format               string       `protobuf:"bytes,7,opt,name=format,proto3" json:"format,omitempty"`
    Pattern              string       `protobuf:"bytes,8,opt,name=pattern,proto3" json:"pattern,omitempty"`
    Minimum              string       `protobuf:"bytes,9,opt,name=minimum,proto3" json:"minimum,omitempty"`
    Maximum              string       `protobuf:"bytes,10,opt,name=maximum,proto3" json:"maximum,omitempty"`
    Enum                 []string     `protobuf:"bytes,11,rep,name=enum,proto3" json:"enum,omitempty"`
    EnumDescriptions     []string     `protobuf:"bytes,12,rep,name=enum_descriptions,json=enumDescriptions,proto3" json:"enum_descriptions,omitempty"`
    Repeated             bool         `protobuf:"varint,13,opt,name=repeated,proto3" json:"repeated,omitempty"`
    Location             string       `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty"`
    Properties           *Schemas     `protobuf:"bytes,15,opt,name=properties,proto3" json:"properties,omitempty"`
    AdditionalProperties *Schema      `protobuf:"bytes,16,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
    Items                *Schema      `protobuf:"bytes,17,opt,name=items,proto3" json:"items,omitempty"`
    Annotations          *Annotations `protobuf:"bytes,18,opt,name=annotations,proto3" json:"annotations,omitempty"`
    // contains filtered or unexported fields
}

func NewParameter

func NewParameter(in *yaml.Node, context *compiler.Context) (*Parameter, error)

NewParameter creates an object of type Parameter if possible, returning an error if not.

func (*Parameter) Descriptor

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

Deprecated: Use Parameter.ProtoReflect.Descriptor instead.

func (*Parameter) GetAdditionalProperties

func (x *Parameter) GetAdditionalProperties() *Schema

func (*Parameter) GetAnnotations

func (x *Parameter) GetAnnotations() *Annotations

func (*Parameter) GetDefault

func (x *Parameter) GetDefault() string

func (*Parameter) GetDescription

func (x *Parameter) GetDescription() string

func (*Parameter) GetEnum

func (x *Parameter) GetEnum() []string

func (*Parameter) GetEnumDescriptions

func (x *Parameter) GetEnumDescriptions() []string

func (*Parameter) GetFormat

func (x *Parameter) GetFormat() string

func (*Parameter) GetId

func (x *Parameter) GetId() string

func (*Parameter) GetItems

func (x *Parameter) GetItems() *Schema

func (*Parameter) GetLocation

func (x *Parameter) GetLocation() string

func (*Parameter) GetMaximum

func (x *Parameter) GetMaximum() string

func (*Parameter) GetMinimum

func (x *Parameter) GetMinimum() string

func (*Parameter) GetPattern

func (x *Parameter) GetPattern() string

func (*Parameter) GetProperties

func (x *Parameter) GetProperties() *Schemas

func (*Parameter) GetRepeated

func (x *Parameter) GetRepeated() bool

func (*Parameter) GetRequired

func (x *Parameter) GetRequired() bool

func (*Parameter) GetType

func (x *Parameter) GetType() string

func (*Parameter) GetXRef

func (x *Parameter) GetXRef() string

func (*Parameter) ProtoMessage

func (*Parameter) ProtoMessage()

func (*Parameter) ProtoReflect

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

func (*Parameter) Reset

func (x *Parameter) Reset()

func (*Parameter) ResolveReferences

func (m *Parameter) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Parameter objects.

func (*Parameter) String

func (x *Parameter) String() string

func (*Parameter) ToRawInfo

func (m *Parameter) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Parameter suitable for JSON or YAML export.

type Parameters

type Parameters struct {
    AdditionalProperties []*NamedParameter `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
    // contains filtered or unexported fields
}

func NewParameters

func NewParameters(in *yaml.Node, context *compiler.Context) (*Parameters, error)

NewParameters creates an object of type Parameters if possible, returning an error if not.

func (*Parameters) Descriptor

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

Deprecated: Use Parameters.ProtoReflect.Descriptor instead.

func (*Parameters) GetAdditionalProperties

func (x *Parameters) GetAdditionalProperties() []*NamedParameter

func (*Parameters) ProtoMessage

func (*Parameters) ProtoMessage()

func (*Parameters) ProtoReflect

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

func (*Parameters) Reset

func (x *Parameters) Reset()

func (*Parameters) ResolveReferences

func (m *Parameters) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Parameters objects.

func (*Parameters) String

func (x *Parameters) String() string

func (*Parameters) ToRawInfo

func (m *Parameters) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Parameters suitable for JSON or YAML export.

type Protocols

type Protocols struct {
    Simple    *Simple    `protobuf:"bytes,1,opt,name=simple,proto3" json:"simple,omitempty"`
    Resumable *Resumable `protobuf:"bytes,2,opt,name=resumable,proto3" json:"resumable,omitempty"`
    // contains filtered or unexported fields
}

func NewProtocols

func NewProtocols(in *yaml.Node, context *compiler.Context) (*Protocols, error)

NewProtocols creates an object of type Protocols if possible, returning an error if not.

func (*Protocols) Descriptor

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

Deprecated: Use Protocols.ProtoReflect.Descriptor instead.

func (*Protocols) GetResumable

func (x *Protocols) GetResumable() *Resumable

func (*Protocols) GetSimple

func (x *Protocols) GetSimple() *Simple

func (*Protocols) ProtoMessage

func (*Protocols) ProtoMessage()

func (*Protocols) ProtoReflect

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

func (*Protocols) Reset

func (x *Protocols) Reset()

func (*Protocols) ResolveReferences

func (m *Protocols) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Protocols objects.

func (*Protocols) String

func (x *Protocols) String() string

func (*Protocols) ToRawInfo

func (m *Protocols) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Protocols suitable for JSON or YAML export.

type Request

type Request struct {
    XRef          string `protobuf:"bytes,1,opt,name=_ref,json=Ref,proto3" json:"_ref,omitempty"`
    ParameterName string `protobuf:"bytes,2,opt,name=parameter_name,json=parameterName,proto3" json:"parameter_name,omitempty"`
    // contains filtered or unexported fields
}

func NewRequest

func NewRequest(in *yaml.Node, context *compiler.Context) (*Request, error)

NewRequest creates an object of type Request if possible, returning an error if not.

func (*Request) Descriptor

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetParameterName

func (x *Request) GetParameterName() string

func (*Request) GetXRef

func (x *Request) GetXRef() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) ResolveReferences

func (m *Request) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Request objects.

func (*Request) String

func (x *Request) String() string

func (*Request) ToRawInfo

func (m *Request) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Request suitable for JSON or YAML export.

type Resource

type Resource struct {
    Methods   *Methods   `protobuf:"bytes,1,opt,name=methods,proto3" json:"methods,omitempty"`
    Resources *Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"`
    // contains filtered or unexported fields
}

func NewResource

func NewResource(in *yaml.Node, context *compiler.Context) (*Resource, error)

NewResource creates an object of type Resource if possible, returning an error if not.

func (*Resource) Descriptor

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetMethods

func (x *Resource) GetMethods() *Methods

func (*Resource) GetResources

func (x *Resource) GetResources() *Resources

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) ResolveReferences

func (m *Resource) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Resource objects.

func (*Resource) String

func (x *Resource) String() string

func (*Resource) ToRawInfo

func (m *Resource) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Resource suitable for JSON or YAML export.

type Resources

type Resources struct {
    AdditionalProperties []*NamedResource `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
    // contains filtered or unexported fields
}

func NewResources

func NewResources(in *yaml.Node, context *compiler.Context) (*Resources, error)

NewResources creates an object of type Resources if possible, returning an error if not.

func (*Resources) Descriptor

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

Deprecated: Use Resources.ProtoReflect.Descriptor instead.

func (*Resources) GetAdditionalProperties

func (x *Resources) GetAdditionalProperties() []*NamedResource

func (*Resources) ProtoMessage

func (*Resources) ProtoMessage()

func (*Resources) ProtoReflect

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

func (*Resources) Reset

func (x *Resources) Reset()

func (*Resources) ResolveReferences

func (m *Resources) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Resources objects.

func (*Resources) String

func (x *Resources) String() string

func (*Resources) ToRawInfo

func (m *Resources) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Resources suitable for JSON or YAML export.

type Response

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

func NewResponse

func NewResponse(in *yaml.Node, context *compiler.Context) (*Response, error)

NewResponse creates an object of type Response if possible, returning an error if not.

func (*Response) Descriptor

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetXRef

func (x *Response) GetXRef() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) ResolveReferences

func (m *Response) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Response objects.

func (*Response) String

func (x *Response) String() string

func (*Response) ToRawInfo

func (m *Response) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Response suitable for JSON or YAML export.

type Resumable

type Resumable struct {
    Multipart bool   `protobuf:"varint,1,opt,name=multipart,proto3" json:"multipart,omitempty"`
    Path      string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    // contains filtered or unexported fields
}

func NewResumable

func NewResumable(in *yaml.Node, context *compiler.Context) (*Resumable, error)

NewResumable creates an object of type Resumable if possible, returning an error if not.

func (*Resumable) Descriptor

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

Deprecated: Use Resumable.ProtoReflect.Descriptor instead.

func (*Resumable) GetMultipart

func (x *Resumable) GetMultipart() bool

func (*Resumable) GetPath

func (x *Resumable) GetPath() string

func (*Resumable) ProtoMessage

func (*Resumable) ProtoMessage()

func (*Resumable) ProtoReflect

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

func (*Resumable) Reset

func (x *Resumable) Reset()

func (*Resumable) ResolveReferences

func (m *Resumable) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Resumable objects.

func (*Resumable) String

func (x *Resumable) String() string

func (*Resumable) ToRawInfo

func (m *Resumable) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Resumable suitable for JSON or YAML export.

type Schema

type Schema struct {
    Id                   string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Type                 string       `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
    Description          string       `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
    Default              string       `protobuf:"bytes,4,opt,name=default,proto3" json:"default,omitempty"`
    Required             bool         `protobuf:"varint,5,opt,name=required,proto3" json:"required,omitempty"`
    Format               string       `protobuf:"bytes,6,opt,name=format,proto3" json:"format,omitempty"`
    Pattern              string       `protobuf:"bytes,7,opt,name=pattern,proto3" json:"pattern,omitempty"`
    Minimum              string       `protobuf:"bytes,8,opt,name=minimum,proto3" json:"minimum,omitempty"`
    Maximum              string       `protobuf:"bytes,9,opt,name=maximum,proto3" json:"maximum,omitempty"`
    Enum                 []string     `protobuf:"bytes,10,rep,name=enum,proto3" json:"enum,omitempty"`
    EnumDescriptions     []string     `protobuf:"bytes,11,rep,name=enum_descriptions,json=enumDescriptions,proto3" json:"enum_descriptions,omitempty"`
    Repeated             bool         `protobuf:"varint,12,opt,name=repeated,proto3" json:"repeated,omitempty"`
    Location             string       `protobuf:"bytes,13,opt,name=location,proto3" json:"location,omitempty"`
    Properties           *Schemas     `protobuf:"bytes,14,opt,name=properties,proto3" json:"properties,omitempty"`
    AdditionalProperties *Schema      `protobuf:"bytes,15,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
    Items                *Schema      `protobuf:"bytes,16,opt,name=items,proto3" json:"items,omitempty"`
    XRef                 string       `protobuf:"bytes,17,opt,name=_ref,json=Ref,proto3" json:"_ref,omitempty"`
    Annotations          *Annotations `protobuf:"bytes,18,opt,name=annotations,proto3" json:"annotations,omitempty"`
    ReadOnly             bool         `protobuf:"varint,19,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
    // contains filtered or unexported fields
}

func NewSchema

func NewSchema(in *yaml.Node, context *compiler.Context) (*Schema, error)

NewSchema creates an object of type Schema if possible, returning an error if not.

func (*Schema) Descriptor

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

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetAdditionalProperties

func (x *Schema) GetAdditionalProperties() *Schema

func (*Schema) GetAnnotations

func (x *Schema) GetAnnotations() *Annotations

func (*Schema) GetDefault

func (x *Schema) GetDefault() string

func (*Schema) GetDescription

func (x *Schema) GetDescription() string

func (*Schema) GetEnum

func (x *Schema) GetEnum() []string

func (*Schema) GetEnumDescriptions

func (x *Schema) GetEnumDescriptions() []string

func (*Schema) GetFormat

func (x *Schema) GetFormat() string

func (*Schema) GetId

func (x *Schema) GetId() string

func (*Schema) GetItems

func (x *Schema) GetItems() *Schema

func (*Schema) GetLocation

func (x *Schema) GetLocation() string

func (*Schema) GetMaximum

func (x *Schema) GetMaximum() string

func (*Schema) GetMinimum

func (x *Schema) GetMinimum() string

func (*Schema) GetPattern

func (x *Schema) GetPattern() string

func (*Schema) GetProperties

func (x *Schema) GetProperties() *Schemas

func (*Schema) GetReadOnly

func (x *Schema) GetReadOnly() bool

func (*Schema) GetRepeated

func (x *Schema) GetRepeated() bool

func (*Schema) GetRequired

func (x *Schema) GetRequired() bool

func (*Schema) GetType

func (x *Schema) GetType() string

func (*Schema) GetXRef

func (x *Schema) GetXRef() string

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect

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

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) ResolveReferences

func (m *Schema) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Schema objects.

func (*Schema) String

func (x *Schema) String() string

func (*Schema) ToRawInfo

func (m *Schema) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Schema suitable for JSON or YAML export.

type Schemas

type Schemas struct {
    AdditionalProperties []*NamedSchema `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
    // contains filtered or unexported fields
}

func NewSchemas

func NewSchemas(in *yaml.Node, context *compiler.Context) (*Schemas, error)

NewSchemas creates an object of type Schemas if possible, returning an error if not.

func (*Schemas) Descriptor

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

Deprecated: Use Schemas.ProtoReflect.Descriptor instead.

func (*Schemas) GetAdditionalProperties

func (x *Schemas) GetAdditionalProperties() []*NamedSchema

func (*Schemas) ProtoMessage

func (*Schemas) ProtoMessage()

func (*Schemas) ProtoReflect

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

func (*Schemas) Reset

func (x *Schemas) Reset()

func (*Schemas) ResolveReferences

func (m *Schemas) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Schemas objects.

func (*Schemas) String

func (x *Schemas) String() string

func (*Schemas) ToRawInfo

func (m *Schemas) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Schemas suitable for JSON or YAML export.

type Scope

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

func NewScope

func NewScope(in *yaml.Node, context *compiler.Context) (*Scope, error)

NewScope creates an object of type Scope if possible, returning an error if not.

func (*Scope) Descriptor

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

Deprecated: Use Scope.ProtoReflect.Descriptor instead.

func (*Scope) GetDescription

func (x *Scope) GetDescription() string

func (*Scope) ProtoMessage

func (*Scope) ProtoMessage()

func (*Scope) ProtoReflect

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

func (*Scope) Reset

func (x *Scope) Reset()

func (*Scope) ResolveReferences

func (m *Scope) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Scope objects.

func (*Scope) String

func (x *Scope) String() string

func (*Scope) ToRawInfo

func (m *Scope) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Scope suitable for JSON or YAML export.

type Scopes

type Scopes struct {
    AdditionalProperties []*NamedScope `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
    // contains filtered or unexported fields
}

func NewScopes

func NewScopes(in *yaml.Node, context *compiler.Context) (*Scopes, error)

NewScopes creates an object of type Scopes if possible, returning an error if not.

func (*Scopes) Descriptor

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

Deprecated: Use Scopes.ProtoReflect.Descriptor instead.

func (*Scopes) GetAdditionalProperties

func (x *Scopes) GetAdditionalProperties() []*NamedScope

func (*Scopes) ProtoMessage

func (*Scopes) ProtoMessage()

func (*Scopes) ProtoReflect

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

func (*Scopes) Reset

func (x *Scopes) Reset()

func (*Scopes) ResolveReferences

func (m *Scopes) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Scopes objects.

func (*Scopes) String

func (x *Scopes) String() string

func (*Scopes) ToRawInfo

func (m *Scopes) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Scopes suitable for JSON or YAML export.

type Simple

type Simple struct {
    Multipart bool   `protobuf:"varint,1,opt,name=multipart,proto3" json:"multipart,omitempty"`
    Path      string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    // contains filtered or unexported fields
}

func NewSimple

func NewSimple(in *yaml.Node, context *compiler.Context) (*Simple, error)

NewSimple creates an object of type Simple if possible, returning an error if not.

func (*Simple) Descriptor

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

Deprecated: Use Simple.ProtoReflect.Descriptor instead.

func (*Simple) GetMultipart

func (x *Simple) GetMultipart() bool

func (*Simple) GetPath

func (x *Simple) GetPath() string

func (*Simple) ProtoMessage

func (*Simple) ProtoMessage()

func (*Simple) ProtoReflect

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

func (*Simple) Reset

func (x *Simple) Reset()

func (*Simple) ResolveReferences

func (m *Simple) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside Simple objects.

func (*Simple) String

func (x *Simple) String() string

func (*Simple) ToRawInfo

func (m *Simple) ToRawInfo() *yaml.Node

ToRawInfo returns a description of Simple suitable for JSON or YAML export.

type StringArray

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

func NewStringArray

func NewStringArray(in *yaml.Node, context *compiler.Context) (*StringArray, error)

NewStringArray creates an object of type StringArray if possible, returning an error if not.

func (*StringArray) Descriptor

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

Deprecated: Use StringArray.ProtoReflect.Descriptor instead.

func (*StringArray) GetValue

func (x *StringArray) GetValue() []string

func (*StringArray) ProtoMessage

func (*StringArray) ProtoMessage()

func (*StringArray) ProtoReflect

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

func (*StringArray) Reset

func (x *StringArray) Reset()

func (*StringArray) ResolveReferences

func (m *StringArray) ResolveReferences(root string) (*yaml.Node, error)

ResolveReferences resolves references found inside StringArray objects.

func (*StringArray) String

func (x *StringArray) String() string

func (*StringArray) ToRawInfo

func (m *StringArray) ToRawInfo() *yaml.Node

ToRawInfo returns a description of StringArray suitable for JSON or YAML export.