Documentation ¶
Overview ¶
Package discovery_v1 is a generated protocol buffer package.
It is generated from these files:
discovery/discovery.proto
It has these top-level messages:
Annotations Any Auth Document Icons MediaUpload Method Methods NamedMethod NamedParameter NamedResource NamedSchema NamedScope Oauth2 Parameter Parameters Protocols Request Resource Resources Response Resumable Schema Schemas Scope Scopes Simple StringArray
Index ¶
- func Version() string
- type Annotations
- func (*Annotations) Descriptor() ([]byte, []int)
- func (m *Annotations) GetRequired() []string
- func (*Annotations) ProtoMessage()
- func (m *Annotations) Reset()
- func (m *Annotations) ResolveReferences(root string) (interface{}, error)
- func (m *Annotations) String() string
- func (m *Annotations) ToRawInfo() interface{}
- type Any
- func (*Any) Descriptor() ([]byte, []int)
- func (m *Any) GetValue() *google_protobuf.Any
- func (m *Any) GetYaml() string
- func (*Any) ProtoMessage()
- func (m *Any) Reset()
- func (m *Any) ResolveReferences(root string) (interface{}, error)
- func (m *Any) String() string
- func (m *Any) ToRawInfo() interface{}
- type Auth
- type Document
- func (*Document) Descriptor() ([]byte, []int)
- func (m *Document) GetAuth() *Auth
- func (m *Document) GetBasePath() string
- func (m *Document) GetBaseUrl() string
- func (m *Document) GetBatchPath() string
- func (m *Document) GetCanonicalName() string
- func (m *Document) GetDescription() string
- func (m *Document) GetDiscoveryVersion() string
- func (m *Document) GetDocumentationLink() string
- func (m *Document) GetEtag() string
- func (m *Document) GetFeatures() []string
- func (m *Document) GetFullyEncodeReservedExpansion() bool
- func (m *Document) GetIcons() *Icons
- func (m *Document) GetId() string
- func (m *Document) GetKind() string
- func (m *Document) GetLabels() []string
- func (m *Document) GetMethods() *Methods
- func (m *Document) GetName() string
- func (m *Document) GetOwnerDomain() string
- func (m *Document) GetOwnerName() string
- func (m *Document) GetPackagePath() string
- func (m *Document) GetParameters() *Parameters
- func (m *Document) GetProtocol() string
- func (m *Document) GetResources() *Resources
- func (m *Document) GetRevision() string
- func (m *Document) GetRootUrl() string
- func (m *Document) GetSchemas() *Schemas
- func (m *Document) GetServicePath() string
- func (m *Document) GetTitle() string
- func (m *Document) GetVersion() string
- func (m *Document) GetVersionModule() bool
- func (*Document) ProtoMessage()
- func (m *Document) Reset()
- func (m *Document) ResolveReferences(root string) (interface{}, error)
- func (m *Document) String() string
- func (m *Document) ToRawInfo() interface{}
- type Icons
- type MediaUpload
- func (*MediaUpload) Descriptor() ([]byte, []int)
- func (m *MediaUpload) GetAccept() []string
- func (m *MediaUpload) GetMaxSize() string
- func (m *MediaUpload) GetProtocols() *Protocols
- func (m *MediaUpload) GetSupportsSubscription() bool
- func (*MediaUpload) ProtoMessage()
- func (m *MediaUpload) Reset()
- func (m *MediaUpload) ResolveReferences(root string) (interface{}, error)
- func (m *MediaUpload) String() string
- func (m *MediaUpload) ToRawInfo() interface{}
- type Method
- func (*Method) Descriptor() ([]byte, []int)
- func (m *Method) GetDescription() string
- func (m *Method) GetEtagRequired() bool
- func (m *Method) GetFlatPath() string
- func (m *Method) GetHttpMethod() string
- func (m *Method) GetId() string
- func (m *Method) GetMediaUpload() *MediaUpload
- func (m *Method) GetParameterOrder() []string
- func (m *Method) GetParameters() *Parameters
- func (m *Method) GetPath() string
- func (m *Method) GetRequest() *Request
- func (m *Method) GetResponse() *Response
- func (m *Method) GetScopes() []string
- func (m *Method) GetSupportsMediaDownload() bool
- func (m *Method) GetSupportsMediaUpload() bool
- func (m *Method) GetSupportsSubscription() bool
- func (m *Method) GetUseMediaDownloadService() bool
- func (*Method) ProtoMessage()
- func (m *Method) Reset()
- func (m *Method) ResolveReferences(root string) (interface{}, error)
- func (m *Method) String() string
- func (m *Method) ToRawInfo() interface{}
- type Methods
- func (*Methods) Descriptor() ([]byte, []int)
- func (m *Methods) GetAdditionalProperties() []*NamedMethod
- func (*Methods) ProtoMessage()
- func (m *Methods) Reset()
- func (m *Methods) ResolveReferences(root string) (interface{}, error)
- func (m *Methods) String() string
- func (m *Methods) ToRawInfo() interface{}
- type NamedMethod
- func (*NamedMethod) Descriptor() ([]byte, []int)
- func (m *NamedMethod) GetName() string
- func (m *NamedMethod) GetValue() *Method
- func (*NamedMethod) ProtoMessage()
- func (m *NamedMethod) Reset()
- func (m *NamedMethod) ResolveReferences(root string) (interface{}, error)
- func (m *NamedMethod) String() string
- func (m *NamedMethod) ToRawInfo() interface{}
- type NamedParameter
- func (*NamedParameter) Descriptor() ([]byte, []int)
- func (m *NamedParameter) GetName() string
- func (m *NamedParameter) GetValue() *Parameter
- func (*NamedParameter) ProtoMessage()
- func (m *NamedParameter) Reset()
- func (m *NamedParameter) ResolveReferences(root string) (interface{}, error)
- func (m *NamedParameter) String() string
- func (m *NamedParameter) ToRawInfo() interface{}
- type NamedResource
- func (*NamedResource) Descriptor() ([]byte, []int)
- func (m *NamedResource) GetName() string
- func (m *NamedResource) GetValue() *Resource
- func (*NamedResource) ProtoMessage()
- func (m *NamedResource) Reset()
- func (m *NamedResource) ResolveReferences(root string) (interface{}, error)
- func (m *NamedResource) String() string
- func (m *NamedResource) ToRawInfo() interface{}
- type NamedSchema
- func (*NamedSchema) Descriptor() ([]byte, []int)
- func (m *NamedSchema) GetName() string
- func (m *NamedSchema) GetValue() *Schema
- func (*NamedSchema) ProtoMessage()
- func (m *NamedSchema) Reset()
- func (m *NamedSchema) ResolveReferences(root string) (interface{}, error)
- func (m *NamedSchema) String() string
- func (m *NamedSchema) ToRawInfo() interface{}
- type NamedScope
- func (*NamedScope) Descriptor() ([]byte, []int)
- func (m *NamedScope) GetName() string
- func (m *NamedScope) GetValue() *Scope
- func (*NamedScope) ProtoMessage()
- func (m *NamedScope) Reset()
- func (m *NamedScope) ResolveReferences(root string) (interface{}, error)
- func (m *NamedScope) String() string
- func (m *NamedScope) ToRawInfo() interface{}
- type Oauth2
- type Parameter
- func (*Parameter) Descriptor() ([]byte, []int)
- func (m *Parameter) GetAdditionalProperties() *Schema
- func (m *Parameter) GetAnnotations() *Annotations
- func (m *Parameter) GetDefault() string
- func (m *Parameter) GetDescription() string
- func (m *Parameter) GetEnum() []string
- func (m *Parameter) GetEnumDescriptions() []string
- func (m *Parameter) GetFormat() string
- func (m *Parameter) GetId() string
- func (m *Parameter) GetItems() *Schema
- func (m *Parameter) GetLocation() string
- func (m *Parameter) GetMaximum() string
- func (m *Parameter) GetMinimum() string
- func (m *Parameter) GetPattern() string
- func (m *Parameter) GetProperties() *Schemas
- func (m *Parameter) GetRepeated() bool
- func (m *Parameter) GetRequired() bool
- func (m *Parameter) GetType() string
- func (m *Parameter) GetXRef() string
- func (*Parameter) ProtoMessage()
- func (m *Parameter) Reset()
- func (m *Parameter) ResolveReferences(root string) (interface{}, error)
- func (m *Parameter) String() string
- func (m *Parameter) ToRawInfo() interface{}
- type Parameters
- func (*Parameters) Descriptor() ([]byte, []int)
- func (m *Parameters) GetAdditionalProperties() []*NamedParameter
- func (*Parameters) ProtoMessage()
- func (m *Parameters) Reset()
- func (m *Parameters) ResolveReferences(root string) (interface{}, error)
- func (m *Parameters) String() string
- func (m *Parameters) ToRawInfo() interface{}
- type Protocols
- func (*Protocols) Descriptor() ([]byte, []int)
- func (m *Protocols) GetResumable() *Resumable
- func (m *Protocols) GetSimple() *Simple
- func (*Protocols) ProtoMessage()
- func (m *Protocols) Reset()
- func (m *Protocols) ResolveReferences(root string) (interface{}, error)
- func (m *Protocols) String() string
- func (m *Protocols) ToRawInfo() interface{}
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetParameterName() string
- func (m *Request) GetXRef() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) ResolveReferences(root string) (interface{}, error)
- func (m *Request) String() string
- func (m *Request) ToRawInfo() interface{}
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)
- func (m *Resource) GetMethods() *Methods
- func (m *Resource) GetResources() *Resources
- func (*Resource) ProtoMessage()
- func (m *Resource) Reset()
- func (m *Resource) ResolveReferences(root string) (interface{}, error)
- func (m *Resource) String() string
- func (m *Resource) ToRawInfo() interface{}
- type Resources
- func (*Resources) Descriptor() ([]byte, []int)
- func (m *Resources) GetAdditionalProperties() []*NamedResource
- func (*Resources) ProtoMessage()
- func (m *Resources) Reset()
- func (m *Resources) ResolveReferences(root string) (interface{}, error)
- func (m *Resources) String() string
- func (m *Resources) ToRawInfo() interface{}
- type Response
- type Resumable
- func (*Resumable) Descriptor() ([]byte, []int)
- func (m *Resumable) GetMultipart() bool
- func (m *Resumable) GetPath() string
- func (*Resumable) ProtoMessage()
- func (m *Resumable) Reset()
- func (m *Resumable) ResolveReferences(root string) (interface{}, error)
- func (m *Resumable) String() string
- func (m *Resumable) ToRawInfo() interface{}
- type Schema
- func (*Schema) Descriptor() ([]byte, []int)
- func (m *Schema) GetAdditionalProperties() *Schema
- func (m *Schema) GetAnnotations() *Annotations
- func (m *Schema) GetDefault() string
- func (m *Schema) GetDescription() string
- func (m *Schema) GetEnum() []string
- func (m *Schema) GetEnumDescriptions() []string
- func (m *Schema) GetFormat() string
- func (m *Schema) GetId() string
- func (m *Schema) GetItems() *Schema
- func (m *Schema) GetLocation() string
- func (m *Schema) GetMaximum() string
- func (m *Schema) GetMinimum() string
- func (m *Schema) GetPattern() string
- func (m *Schema) GetProperties() *Schemas
- func (m *Schema) GetReadOnly() bool
- func (m *Schema) GetRepeated() bool
- func (m *Schema) GetRequired() bool
- func (m *Schema) GetType() string
- func (m *Schema) GetXRef() string
- func (*Schema) ProtoMessage()
- func (m *Schema) Reset()
- func (m *Schema) ResolveReferences(root string) (interface{}, error)
- func (m *Schema) String() string
- func (m *Schema) ToRawInfo() interface{}
- type Schemas
- func (*Schemas) Descriptor() ([]byte, []int)
- func (m *Schemas) GetAdditionalProperties() []*NamedSchema
- func (*Schemas) ProtoMessage()
- func (m *Schemas) Reset()
- func (m *Schemas) ResolveReferences(root string) (interface{}, error)
- func (m *Schemas) String() string
- func (m *Schemas) ToRawInfo() interface{}
- type Scope
- type Scopes
- type Simple
- func (*Simple) Descriptor() ([]byte, []int)
- func (m *Simple) GetMultipart() bool
- func (m *Simple) GetPath() string
- func (*Simple) ProtoMessage()
- func (m *Simple) Reset()
- func (m *Simple) ResolveReferences(root string) (interface{}, error)
- func (m *Simple) String() string
- func (m *Simple) ToRawInfo() interface{}
- type StringArray
- func (*StringArray) Descriptor() ([]byte, []int)
- func (m *StringArray) GetValue() []string
- func (*StringArray) ProtoMessage()
- func (m *StringArray) Reset()
- func (m *StringArray) ResolveReferences(root string) (interface{}, error)
- func (m *StringArray) String() string
- func (m *StringArray) ToRawInfo() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Annotations ¶
type Annotations struct {
Required []string `protobuf:"bytes,1,rep,name=required" json:"required,omitempty"`
}
func NewAnnotations ¶
func NewAnnotations(in interface{}, 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)
func (*Annotations) GetRequired ¶
func (m *Annotations) GetRequired() []string
func (*Annotations) ProtoMessage ¶
func (*Annotations) ProtoMessage()
func (*Annotations) Reset ¶
func (m *Annotations) Reset()
func (*Annotations) ResolveReferences ¶
func (m *Annotations) ResolveReferences(root string) (interface{}, error)
ResolveReferences resolves references found inside Annotations objects.
func (*Annotations) String ¶
func (m *Annotations) String() string
func (*Annotations) ToRawInfo ¶
func (m *Annotations) ToRawInfo() interface{}
ToRawInfo returns a description of Annotations suitable for JSON or YAML export.
type Any ¶
type Any struct { Value *google_protobuf.Any `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` Yaml string `protobuf:"bytes,2,opt,name=yaml" json:"yaml,omitempty"` }
func (*Any) Descriptor ¶
func (*Any) GetValue ¶
func (m *Any) GetValue() *google_protobuf.Any
func (*Any) ProtoMessage ¶
func (*Any) ProtoMessage()
func (*Any) ResolveReferences ¶
ResolveReferences resolves references found inside Any objects.
type Auth ¶
type Auth struct {
Oauth2 *Oauth2 `protobuf:"bytes,1,opt,name=oauth2" json:"oauth2,omitempty"`
}
func (*Auth) Descriptor ¶
func (*Auth) ProtoMessage ¶
func (*Auth) ProtoMessage()
func (*Auth) ResolveReferences ¶
ResolveReferences resolves references found inside Auth objects.
type Document ¶
type Document struct { Kind string `protobuf:"bytes,1,opt,name=kind" json:"kind,omitempty"` DiscoveryVersion string `protobuf:"bytes,2,opt,name=discovery_version,json=discoveryVersion" json:"discovery_version,omitempty"` Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` Version string `protobuf:"bytes,5,opt,name=version" json:"version,omitempty"` Revision string `protobuf:"bytes,6,opt,name=revision" json:"revision,omitempty"` Title string `protobuf:"bytes,7,opt,name=title" json:"title,omitempty"` Description string `protobuf:"bytes,8,opt,name=description" json:"description,omitempty"` Icons *Icons `protobuf:"bytes,9,opt,name=icons" json:"icons,omitempty"` DocumentationLink string `protobuf:"bytes,10,opt,name=documentation_link,json=documentationLink" json:"documentation_link,omitempty"` Labels []string `protobuf:"bytes,11,rep,name=labels" json:"labels,omitempty"` Protocol string `protobuf:"bytes,12,opt,name=protocol" json:"protocol,omitempty"` BaseUrl string `protobuf:"bytes,13,opt,name=base_url,json=baseUrl" json:"base_url,omitempty"` BasePath string `protobuf:"bytes,14,opt,name=base_path,json=basePath" json:"base_path,omitempty"` RootUrl string `protobuf:"bytes,15,opt,name=root_url,json=rootUrl" json:"root_url,omitempty"` ServicePath string `protobuf:"bytes,16,opt,name=service_path,json=servicePath" json:"service_path,omitempty"` BatchPath string `protobuf:"bytes,17,opt,name=batch_path,json=batchPath" json:"batch_path,omitempty"` Parameters *Parameters `protobuf:"bytes,18,opt,name=parameters" json:"parameters,omitempty"` Auth *Auth `protobuf:"bytes,19,opt,name=auth" json:"auth,omitempty"` Features []string `protobuf:"bytes,20,rep,name=features" json:"features,omitempty"` Schemas *Schemas `protobuf:"bytes,21,opt,name=schemas" json:"schemas,omitempty"` Methods *Methods `protobuf:"bytes,22,opt,name=methods" json:"methods,omitempty"` Resources *Resources `protobuf:"bytes,23,opt,name=resources" json:"resources,omitempty"` Etag string `protobuf:"bytes,24,opt,name=etag" json:"etag,omitempty"` OwnerDomain string `protobuf:"bytes,25,opt,name=owner_domain,json=ownerDomain" json:"owner_domain,omitempty"` OwnerName string `protobuf:"bytes,26,opt,name=owner_name,json=ownerName" json:"owner_name,omitempty"` VersionModule bool `protobuf:"varint,27,opt,name=version_module,json=versionModule" json:"version_module,omitempty"` CanonicalName string `protobuf:"bytes,28,opt,name=canonical_name,json=canonicalName" json:"canonical_name,omitempty"` FullyEncodeReservedExpansion bool `` /* 144-byte string literal not displayed */ PackagePath string `protobuf:"bytes,30,opt,name=package_path,json=packagePath" json:"package_path,omitempty"` }
func NewDocument ¶
NewDocument creates an object of type Document if possible, returning an error if not.
func (*Document) Descriptor ¶
func (*Document) GetBasePath ¶
func (*Document) GetBaseUrl ¶
func (*Document) GetBatchPath ¶
func (*Document) GetCanonicalName ¶
func (*Document) GetDescription ¶
func (*Document) GetDiscoveryVersion ¶
func (*Document) GetDocumentationLink ¶
func (*Document) GetFeatures ¶
func (*Document) GetFullyEncodeReservedExpansion ¶
func (*Document) GetMethods ¶
func (*Document) GetOwnerDomain ¶
func (*Document) GetOwnerName ¶
func (*Document) GetPackagePath ¶
func (*Document) GetParameters ¶
func (m *Document) GetParameters() *Parameters
func (*Document) GetProtocol ¶
func (*Document) GetResources ¶
func (*Document) GetRevision ¶
func (*Document) GetRootUrl ¶
func (*Document) GetSchemas ¶
func (*Document) GetServicePath ¶
func (*Document) GetVersion ¶
func (*Document) GetVersionModule ¶
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) ResolveReferences ¶
ResolveReferences resolves references found inside Document objects.
type Icons ¶
type Icons struct { X16 string `protobuf:"bytes,1,opt,name=x16" json:"x16,omitempty"` X32 string `protobuf:"bytes,2,opt,name=x32" json:"x32,omitempty"` }
Icons that represent the API.
func (*Icons) Descriptor ¶
func (*Icons) ProtoMessage ¶
func (*Icons) ProtoMessage()
func (*Icons) ResolveReferences ¶
ResolveReferences resolves references found inside Icons objects.
type MediaUpload ¶
type MediaUpload struct { Accept []string `protobuf:"bytes,1,rep,name=accept" json:"accept,omitempty"` MaxSize string `protobuf:"bytes,2,opt,name=max_size,json=maxSize" json:"max_size,omitempty"` Protocols *Protocols `protobuf:"bytes,3,opt,name=protocols" json:"protocols,omitempty"` SupportsSubscription bool `protobuf:"varint,4,opt,name=supports_subscription,json=supportsSubscription" json:"supports_subscription,omitempty"` }
func NewMediaUpload ¶
func NewMediaUpload(in interface{}, 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)
func (*MediaUpload) GetAccept ¶
func (m *MediaUpload) GetAccept() []string
func (*MediaUpload) GetMaxSize ¶
func (m *MediaUpload) GetMaxSize() string
func (*MediaUpload) GetProtocols ¶
func (m *MediaUpload) GetProtocols() *Protocols
func (*MediaUpload) GetSupportsSubscription ¶
func (m *MediaUpload) GetSupportsSubscription() bool
func (*MediaUpload) ProtoMessage ¶
func (*MediaUpload) ProtoMessage()
func (*MediaUpload) Reset ¶
func (m *MediaUpload) Reset()
func (*MediaUpload) ResolveReferences ¶
func (m *MediaUpload) ResolveReferences(root string) (interface{}, error)
ResolveReferences resolves references found inside MediaUpload objects.
func (*MediaUpload) String ¶
func (m *MediaUpload) String() string
func (*MediaUpload) ToRawInfo ¶
func (m *MediaUpload) ToRawInfo() interface{}
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" json:"id,omitempty"` Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` HttpMethod string `protobuf:"bytes,3,opt,name=http_method,json=httpMethod" json:"http_method,omitempty"` Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` Parameters *Parameters `protobuf:"bytes,5,opt,name=parameters" json:"parameters,omitempty"` ParameterOrder []string `protobuf:"bytes,6,rep,name=parameter_order,json=parameterOrder" json:"parameter_order,omitempty"` Request *Request `protobuf:"bytes,7,opt,name=request" json:"request,omitempty"` Response *Response `protobuf:"bytes,8,opt,name=response" json:"response,omitempty"` Scopes []string `protobuf:"bytes,9,rep,name=scopes" json:"scopes,omitempty"` SupportsMediaDownload bool `protobuf:"varint,10,opt,name=supports_media_download,json=supportsMediaDownload" json:"supports_media_download,omitempty"` SupportsMediaUpload bool `protobuf:"varint,11,opt,name=supports_media_upload,json=supportsMediaUpload" json:"supports_media_upload,omitempty"` UseMediaDownloadService bool `` /* 129-byte string literal not displayed */ MediaUpload *MediaUpload `protobuf:"bytes,13,opt,name=media_upload,json=mediaUpload" json:"media_upload,omitempty"` SupportsSubscription bool `protobuf:"varint,14,opt,name=supports_subscription,json=supportsSubscription" json:"supports_subscription,omitempty"` FlatPath string `protobuf:"bytes,15,opt,name=flat_path,json=flatPath" json:"flat_path,omitempty"` EtagRequired bool `protobuf:"varint,16,opt,name=etag_required,json=etagRequired" json:"etag_required,omitempty"` }
func (*Method) Descriptor ¶
func (*Method) GetDescription ¶
func (*Method) GetEtagRequired ¶
func (*Method) GetFlatPath ¶
func (*Method) GetHttpMethod ¶
func (*Method) GetMediaUpload ¶
func (m *Method) GetMediaUpload() *MediaUpload
func (*Method) GetParameterOrder ¶
func (*Method) GetParameters ¶
func (m *Method) GetParameters() *Parameters
func (*Method) GetRequest ¶
func (*Method) GetResponse ¶
func (*Method) GetSupportsMediaDownload ¶
func (*Method) GetSupportsMediaUpload ¶
func (*Method) GetSupportsSubscription ¶
func (*Method) GetUseMediaDownloadService ¶
func (*Method) ProtoMessage ¶
func (*Method) ProtoMessage()
func (*Method) ResolveReferences ¶
ResolveReferences resolves references found inside Method objects.
type Methods ¶
type Methods struct {
AdditionalProperties []*NamedMethod `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}
func NewMethods ¶
NewMethods creates an object of type Methods if possible, returning an error if not.
func (*Methods) Descriptor ¶
func (*Methods) GetAdditionalProperties ¶
func (m *Methods) GetAdditionalProperties() []*NamedMethod
func (*Methods) ProtoMessage ¶
func (*Methods) ProtoMessage()
func (*Methods) ResolveReferences ¶
ResolveReferences resolves references found inside Methods objects.
type NamedMethod ¶
type NamedMethod struct { // Map key Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Mapped value Value *Method `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
Automatically-generated message used to represent maps of Method as ordered (name,value) pairs.
func NewNamedMethod ¶
func NewNamedMethod(in interface{}, 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)
func (*NamedMethod) GetName ¶
func (m *NamedMethod) GetName() string
func (*NamedMethod) GetValue ¶
func (m *NamedMethod) GetValue() *Method
func (*NamedMethod) ProtoMessage ¶
func (*NamedMethod) ProtoMessage()
func (*NamedMethod) Reset ¶
func (m *NamedMethod) Reset()
func (*NamedMethod) ResolveReferences ¶
func (m *NamedMethod) ResolveReferences(root string) (interface{}, error)
ResolveReferences resolves references found inside NamedMethod objects.
func (*NamedMethod) String ¶
func (m *NamedMethod) String() string
func (*NamedMethod) ToRawInfo ¶
func (m *NamedMethod) ToRawInfo() interface{}
ToRawInfo returns a description of NamedMethod suitable for JSON or YAML export.
type NamedParameter ¶
type NamedParameter struct { // Map key Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Mapped value Value *Parameter `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
Automatically-generated message used to represent maps of Parameter as ordered (name,value) pairs.
func NewNamedParameter ¶
func NewNamedParameter(in interface{}, 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)
func (*NamedParameter) GetName ¶
func (m *NamedParameter) GetName() string
func (*NamedParameter) GetValue ¶
func (m *NamedParameter) GetValue() *Parameter
func (*NamedParameter) ProtoMessage ¶
func (*NamedParameter) ProtoMessage()
func (*NamedParameter) Reset ¶
func (m *NamedParameter) Reset()
func (*NamedParameter) ResolveReferences ¶
func (m *NamedParameter) ResolveReferences(root string) (interface{}, error)
ResolveReferences resolves references found inside NamedParameter objects.
func (*NamedParameter) String ¶
func (m *NamedParameter) String() string
func (*NamedParameter) ToRawInfo ¶
func (m *NamedParameter) ToRawInfo() interface{}
ToRawInfo returns a description of NamedParameter suitable for JSON or YAML export.
type NamedResource ¶
type NamedResource struct { // Map key Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Mapped value Value *Resource `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
Automatically-generated message used to represent maps of Resource as ordered (name,value) pairs.
func NewNamedResource ¶
func NewNamedResource(in interface{}, 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)
func (*NamedResource) GetName ¶
func (m *NamedResource) GetName() string
func (*NamedResource) GetValue ¶
func (m *NamedResource) GetValue() *Resource
func (*NamedResource) ProtoMessage ¶
func (*NamedResource) ProtoMessage()
func (*NamedResource) Reset ¶
func (m *NamedResource) Reset()
func (*NamedResource) ResolveReferences ¶
func (m *NamedResource) ResolveReferences(root string) (interface{}, error)
ResolveReferences resolves references found inside NamedResource objects.
func (*NamedResource) String ¶
func (m *NamedResource) String() string
func (*NamedResource) ToRawInfo ¶
func (m *NamedResource) ToRawInfo() interface{}
ToRawInfo returns a description of NamedResource suitable for JSON or YAML export.
type NamedSchema ¶
type NamedSchema struct { // Map key Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Mapped value Value *Schema `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
Automatically-generated message used to represent maps of Schema as ordered (name,value) pairs.
func NewNamedSchema ¶
func NewNamedSchema(in interface{}, 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)
func (*NamedSchema) GetName ¶
func (m *NamedSchema) GetName() string
func (*NamedSchema) GetValue ¶
func (m *NamedSchema) GetValue() *Schema
func (*NamedSchema) ProtoMessage ¶
func (*NamedSchema) ProtoMessage()
func (*NamedSchema) Reset ¶
func (m *NamedSchema) Reset()
func (*NamedSchema) ResolveReferences ¶
func (m *NamedSchema) ResolveReferences(root string) (interface{}, error)
ResolveReferences resolves references found inside NamedSchema objects.
func (*NamedSchema) String ¶
func (m *NamedSchema) String() string
func (*NamedSchema) ToRawInfo ¶
func (m *NamedSchema) ToRawInfo() interface{}
ToRawInfo returns a description of NamedSchema suitable for JSON or YAML export.
type NamedScope ¶
type NamedScope struct { // Map key Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Mapped value Value *Scope `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
Automatically-generated message used to represent maps of Scope as ordered (name,value) pairs.
func NewNamedScope ¶
func NewNamedScope(in interface{}, 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)
func (*NamedScope) GetName ¶
func (m *NamedScope) GetName() string
func (*NamedScope) GetValue ¶
func (m *NamedScope) GetValue() *Scope
func (*NamedScope) ProtoMessage ¶
func (*NamedScope) ProtoMessage()
func (*NamedScope) Reset ¶
func (m *NamedScope) Reset()
func (*NamedScope) ResolveReferences ¶
func (m *NamedScope) ResolveReferences(root string) (interface{}, error)
ResolveReferences resolves references found inside NamedScope objects.
func (*NamedScope) String ¶
func (m *NamedScope) String() string
func (*NamedScope) ToRawInfo ¶
func (m *NamedScope) ToRawInfo() interface{}
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" json:"scopes,omitempty"`
}
func (*Oauth2) Descriptor ¶
func (*Oauth2) ProtoMessage ¶
func (*Oauth2) ProtoMessage()
func (*Oauth2) ResolveReferences ¶
ResolveReferences resolves references found inside Oauth2 objects.
type Parameter ¶
type Parameter struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` XRef string `protobuf:"bytes,3,opt,name=_ref,json=Ref" json:"_ref,omitempty"` Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` Default string `protobuf:"bytes,5,opt,name=default" json:"default,omitempty"` Required bool `protobuf:"varint,6,opt,name=required" json:"required,omitempty"` Format string `protobuf:"bytes,7,opt,name=format" json:"format,omitempty"` Pattern string `protobuf:"bytes,8,opt,name=pattern" json:"pattern,omitempty"` Minimum string `protobuf:"bytes,9,opt,name=minimum" json:"minimum,omitempty"` Maximum string `protobuf:"bytes,10,opt,name=maximum" json:"maximum,omitempty"` Enum []string `protobuf:"bytes,11,rep,name=enum" json:"enum,omitempty"` EnumDescriptions []string `protobuf:"bytes,12,rep,name=enum_descriptions,json=enumDescriptions" json:"enum_descriptions,omitempty"` Repeated bool `protobuf:"varint,13,opt,name=repeated" json:"repeated,omitempty"` Location string `protobuf:"bytes,14,opt,name=location" json:"location,omitempty"` Properties *Schemas `protobuf:"bytes,15,opt,name=properties" json:"properties,omitempty"` AdditionalProperties *Schema `protobuf:"bytes,16,opt,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"` Items *Schema `protobuf:"bytes,17,opt,name=items" json:"items,omitempty"` Annotations *Annotations `protobuf:"bytes,18,opt,name=annotations" json:"annotations,omitempty"` }
func NewParameter ¶
NewParameter creates an object of type Parameter if possible, returning an error if not.
func (*Parameter) Descriptor ¶
func (*Parameter) GetAdditionalProperties ¶
func (*Parameter) GetAnnotations ¶
func (m *Parameter) GetAnnotations() *Annotations
func (*Parameter) GetDefault ¶
func (*Parameter) GetDescription ¶
func (*Parameter) GetEnumDescriptions ¶
func (*Parameter) GetLocation ¶
func (*Parameter) GetMaximum ¶
func (*Parameter) GetMinimum ¶
func (*Parameter) GetPattern ¶
func (*Parameter) GetProperties ¶
func (*Parameter) GetRepeated ¶
func (*Parameter) GetRequired ¶
func (*Parameter) ProtoMessage ¶
func (*Parameter) ProtoMessage()
func (*Parameter) ResolveReferences ¶
ResolveReferences resolves references found inside Parameter objects.
type Parameters ¶
type Parameters struct {
AdditionalProperties []*NamedParameter `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}
func NewParameters ¶
func NewParameters(in interface{}, 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)
func (*Parameters) GetAdditionalProperties ¶
func (m *Parameters) GetAdditionalProperties() []*NamedParameter
func (*Parameters) ProtoMessage ¶
func (*Parameters) ProtoMessage()
func (*Parameters) Reset ¶
func (m *Parameters) Reset()
func (*Parameters) ResolveReferences ¶
func (m *Parameters) ResolveReferences(root string) (interface{}, error)
ResolveReferences resolves references found inside Parameters objects.
func (*Parameters) String ¶
func (m *Parameters) String() string
func (*Parameters) ToRawInfo ¶
func (m *Parameters) ToRawInfo() interface{}
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" json:"simple,omitempty"` Resumable *Resumable `protobuf:"bytes,2,opt,name=resumable" json:"resumable,omitempty"` }
func NewProtocols ¶
NewProtocols creates an object of type Protocols if possible, returning an error if not.
func (*Protocols) Descriptor ¶
func (*Protocols) GetResumable ¶
func (*Protocols) ProtoMessage ¶
func (*Protocols) ProtoMessage()
func (*Protocols) ResolveReferences ¶
ResolveReferences resolves references found inside Protocols objects.
type Request ¶
type Request struct { XRef string `protobuf:"bytes,1,opt,name=_ref,json=Ref" json:"_ref,omitempty"` ParameterName string `protobuf:"bytes,2,opt,name=parameter_name,json=parameterName" json:"parameter_name,omitempty"` }
func NewRequest ¶
NewRequest creates an object of type Request if possible, returning an error if not.
func (*Request) Descriptor ¶
func (*Request) GetParameterName ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ResolveReferences ¶
ResolveReferences resolves references found inside Request objects.
type Resource ¶
type Resource struct { Methods *Methods `protobuf:"bytes,1,opt,name=methods" json:"methods,omitempty"` Resources *Resources `protobuf:"bytes,2,opt,name=resources" json:"resources,omitempty"` }
func NewResource ¶
NewResource creates an object of type Resource if possible, returning an error if not.
func (*Resource) Descriptor ¶
func (*Resource) GetMethods ¶
func (*Resource) GetResources ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ResolveReferences ¶
ResolveReferences resolves references found inside Resource objects.
type Resources ¶
type Resources struct {
AdditionalProperties []*NamedResource `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}
func NewResources ¶
NewResources creates an object of type Resources if possible, returning an error if not.
func (*Resources) Descriptor ¶
func (*Resources) GetAdditionalProperties ¶
func (m *Resources) GetAdditionalProperties() []*NamedResource
func (*Resources) ProtoMessage ¶
func (*Resources) ProtoMessage()
func (*Resources) ResolveReferences ¶
ResolveReferences resolves references found inside Resources objects.
type Response ¶
type Response struct {
XRef string `protobuf:"bytes,1,opt,name=_ref,json=Ref" json:"_ref,omitempty"`
}
func NewResponse ¶
NewResponse creates an object of type Response if possible, returning an error if not.
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ResolveReferences ¶
ResolveReferences resolves references found inside Response objects.
type Resumable ¶
type Resumable struct { Multipart bool `protobuf:"varint,1,opt,name=multipart" json:"multipart,omitempty"` Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` }
func NewResumable ¶
NewResumable creates an object of type Resumable if possible, returning an error if not.
func (*Resumable) Descriptor ¶
func (*Resumable) GetMultipart ¶
func (*Resumable) ProtoMessage ¶
func (*Resumable) ProtoMessage()
func (*Resumable) ResolveReferences ¶
ResolveReferences resolves references found inside Resumable objects.
type Schema ¶
type Schema struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` Default string `protobuf:"bytes,4,opt,name=default" json:"default,omitempty"` Required bool `protobuf:"varint,5,opt,name=required" json:"required,omitempty"` Format string `protobuf:"bytes,6,opt,name=format" json:"format,omitempty"` Pattern string `protobuf:"bytes,7,opt,name=pattern" json:"pattern,omitempty"` Minimum string `protobuf:"bytes,8,opt,name=minimum" json:"minimum,omitempty"` Maximum string `protobuf:"bytes,9,opt,name=maximum" json:"maximum,omitempty"` Enum []string `protobuf:"bytes,10,rep,name=enum" json:"enum,omitempty"` EnumDescriptions []string `protobuf:"bytes,11,rep,name=enum_descriptions,json=enumDescriptions" json:"enum_descriptions,omitempty"` Repeated bool `protobuf:"varint,12,opt,name=repeated" json:"repeated,omitempty"` Location string `protobuf:"bytes,13,opt,name=location" json:"location,omitempty"` Properties *Schemas `protobuf:"bytes,14,opt,name=properties" json:"properties,omitempty"` AdditionalProperties *Schema `protobuf:"bytes,15,opt,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"` Items *Schema `protobuf:"bytes,16,opt,name=items" json:"items,omitempty"` XRef string `protobuf:"bytes,17,opt,name=_ref,json=Ref" json:"_ref,omitempty"` Annotations *Annotations `protobuf:"bytes,18,opt,name=annotations" json:"annotations,omitempty"` ReadOnly bool `protobuf:"varint,19,opt,name=read_only,json=readOnly" json:"read_only,omitempty"` }
func (*Schema) Descriptor ¶
func (*Schema) GetAdditionalProperties ¶
func (*Schema) GetAnnotations ¶
func (m *Schema) GetAnnotations() *Annotations
func (*Schema) GetDefault ¶
func (*Schema) GetDescription ¶
func (*Schema) GetEnumDescriptions ¶
func (*Schema) GetLocation ¶
func (*Schema) GetMaximum ¶
func (*Schema) GetMinimum ¶
func (*Schema) GetPattern ¶
func (*Schema) GetProperties ¶
func (*Schema) GetReadOnly ¶
func (*Schema) GetRepeated ¶
func (*Schema) GetRequired ¶
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ResolveReferences ¶
ResolveReferences resolves references found inside Schema objects.
type Schemas ¶
type Schemas struct {
AdditionalProperties []*NamedSchema `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}
func NewSchemas ¶
NewSchemas creates an object of type Schemas if possible, returning an error if not.
func (*Schemas) Descriptor ¶
func (*Schemas) GetAdditionalProperties ¶
func (m *Schemas) GetAdditionalProperties() []*NamedSchema
func (*Schemas) ProtoMessage ¶
func (*Schemas) ProtoMessage()
func (*Schemas) ResolveReferences ¶
ResolveReferences resolves references found inside Schemas objects.
type Scope ¶
type Scope struct {
Description string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
}
func (*Scope) Descriptor ¶
func (*Scope) GetDescription ¶
func (*Scope) ProtoMessage ¶
func (*Scope) ProtoMessage()
func (*Scope) ResolveReferences ¶
ResolveReferences resolves references found inside Scope objects.
type Scopes ¶
type Scopes struct {
AdditionalProperties []*NamedScope `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}
func (*Scopes) Descriptor ¶
func (*Scopes) GetAdditionalProperties ¶
func (m *Scopes) GetAdditionalProperties() []*NamedScope
func (*Scopes) ProtoMessage ¶
func (*Scopes) ProtoMessage()
func (*Scopes) ResolveReferences ¶
ResolveReferences resolves references found inside Scopes objects.
type Simple ¶
type Simple struct { Multipart bool `protobuf:"varint,1,opt,name=multipart" json:"multipart,omitempty"` Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` }
func (*Simple) Descriptor ¶
func (*Simple) GetMultipart ¶
func (*Simple) ProtoMessage ¶
func (*Simple) ProtoMessage()
func (*Simple) ResolveReferences ¶
ResolveReferences resolves references found inside Simple objects.
type StringArray ¶
type StringArray struct {
Value []string `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"`
}
func NewStringArray ¶
func NewStringArray(in interface{}, 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)
func (*StringArray) GetValue ¶
func (m *StringArray) GetValue() []string
func (*StringArray) ProtoMessage ¶
func (*StringArray) ProtoMessage()
func (*StringArray) Reset ¶
func (m *StringArray) Reset()
func (*StringArray) ResolveReferences ¶
func (m *StringArray) ResolveReferences(root string) (interface{}, error)
ResolveReferences resolves references found inside StringArray objects.
func (*StringArray) String ¶
func (m *StringArray) String() string
func (*StringArray) ToRawInfo ¶
func (m *StringArray) ToRawInfo() interface{}
ToRawInfo returns a description of StringArray suitable for JSON or YAML export.