id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
listlengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
listlengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
18,700
googleapis/gnostic
plugins/gnostic-go-generator/renderer.go
Render
func (renderer *Renderer) Render(response *plugins.Response, files []string) (err error) { for _, filename := range files { file := &plugins.File{Name: filename} switch filename { case "client.go": file.Data, err = renderer.RenderClient() case "types.go": file.Data, err = renderer.RenderTypes() case "p...
go
func (renderer *Renderer) Render(response *plugins.Response, files []string) (err error) { for _, filename := range files { file := &plugins.File{Name: filename} switch filename { case "client.go": file.Data, err = renderer.RenderClient() case "types.go": file.Data, err = renderer.RenderTypes() case "p...
[ "func", "(", "renderer", "*", "Renderer", ")", "Render", "(", "response", "*", "plugins", ".", "Response", ",", "files", "[", "]", "string", ")", "(", "err", "error", ")", "{", "for", "_", ",", "filename", ":=", "range", "files", "{", "file", ":=", ...
// Generate runs the renderer to generate the named files.
[ "Generate", "runs", "the", "renderer", "to", "generate", "the", "named", "files", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/gnostic-go-generator/renderer.go#L41-L68
18,701
googleapis/gnostic
surface/model_openapiv2.go
build
func (b *OpenAPI2Builder) build(document *openapiv2.Document) (err error) { // Collect service type descriptions from Definitions section. if document.Definitions != nil { for _, pair := range document.Definitions.AdditionalProperties { t, err := b.buildTypeFromDefinition(pair.Name, pair.Value) if err != nil ...
go
func (b *OpenAPI2Builder) build(document *openapiv2.Document) (err error) { // Collect service type descriptions from Definitions section. if document.Definitions != nil { for _, pair := range document.Definitions.AdditionalProperties { t, err := b.buildTypeFromDefinition(pair.Name, pair.Value) if err != nil ...
[ "func", "(", "b", "*", "OpenAPI2Builder", ")", "build", "(", "document", "*", "openapiv2", ".", "Document", ")", "(", "err", "error", ")", "{", "// Collect service type descriptions from Definitions section.", "if", "document", ".", "Definitions", "!=", "nil", "{"...
// buildV2 builds an API service description, preprocessing its types and methods for code generation.
[ "buildV2", "builds", "an", "API", "service", "description", "preprocessing", "its", "types", "and", "methods", "for", "code", "generation", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/surface/model_openapiv2.go#L49-L79
18,702
googleapis/gnostic
generate-gnostic/generate-extension.go
generateMainFile
func generateMainFile(packageName string, license string, codeBody string, imports []string) string { code := &printer.Code{} code.Print(license) code.Print("// THIS FILE IS AUTOMATICALLY GENERATED.\n") // generate package declaration code.Print("package %s\n", packageName) code.Print("import (") for _, filena...
go
func generateMainFile(packageName string, license string, codeBody string, imports []string) string { code := &printer.Code{} code.Print(license) code.Print("// THIS FILE IS AUTOMATICALLY GENERATED.\n") // generate package declaration code.Print("package %s\n", packageName) code.Print("import (") for _, filena...
[ "func", "generateMainFile", "(", "packageName", "string", ",", "license", "string", ",", "codeBody", "string", ",", "imports", "[", "]", "string", ")", "string", "{", "code", ":=", "&", "printer", ".", "Code", "{", "}", "\n", "code", ".", "Print", "(", ...
// generateMainFile generates the main program for an extension.
[ "generateMainFile", "generates", "the", "main", "program", "for", "an", "extension", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/generate-gnostic/generate-extension.go#L88-L104
18,703
googleapis/gnostic
plugins/gnostic-analyze/statistics/statsv2.go
NewDocumentStatistics
func NewDocumentStatistics(source string, document *openapi.Document) *DocumentStatistics { s := &DocumentStatistics{} s.Operations = make(map[string]int, 0) s.ParameterTypes = make(map[string]int, 0) s.ResultTypes = make(map[string]int, 0) s.DefinitionFieldTypes = make(map[string]int, 0) s.DefinitionArrayTypes =...
go
func NewDocumentStatistics(source string, document *openapi.Document) *DocumentStatistics { s := &DocumentStatistics{} s.Operations = make(map[string]int, 0) s.ParameterTypes = make(map[string]int, 0) s.ResultTypes = make(map[string]int, 0) s.DefinitionFieldTypes = make(map[string]int, 0) s.DefinitionArrayTypes =...
[ "func", "NewDocumentStatistics", "(", "source", "string", ",", "document", "*", "openapi", ".", "Document", ")", "*", "DocumentStatistics", "{", "s", ":=", "&", "DocumentStatistics", "{", "}", "\n", "s", ".", "Operations", "=", "make", "(", "map", "[", "st...
// NewDocumentStatistics builds a new DocumentStatistics object.
[ "NewDocumentStatistics", "builds", "a", "new", "DocumentStatistics", "object", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/gnostic-analyze/statistics/statsv2.go#L40-L52
18,704
googleapis/gnostic
plugins/gnostic-analyze/statistics/statsv2.go
analyzeDefinition
func (s *DocumentStatistics) analyzeDefinition(path string, definition *openapi.Schema) { s.DefinitionCount++ typeName := typeNameForSchema(definition) switch typeName { case "object": if definition.Properties != nil { for _, pair := range definition.Properties.AdditionalProperties { propertySchema := pair...
go
func (s *DocumentStatistics) analyzeDefinition(path string, definition *openapi.Schema) { s.DefinitionCount++ typeName := typeNameForSchema(definition) switch typeName { case "object": if definition.Properties != nil { for _, pair := range definition.Properties.AdditionalProperties { propertySchema := pair...
[ "func", "(", "s", "*", "DocumentStatistics", ")", "analyzeDefinition", "(", "path", "string", ",", "definition", "*", "openapi", ".", "Schema", ")", "{", "s", ".", "DefinitionCount", "++", "\n", "typeName", ":=", "typeNameForSchema", "(", "definition", ")", ...
// Analyze a definition in an OpenAPI description. // Collect information about the definition type and any subsidiary types, // such as the types of object fields or array elements.
[ "Analyze", "a", "definition", "in", "an", "OpenAPI", "description", ".", "Collect", "information", "about", "the", "definition", "type", "and", "any", "subsidiary", "types", "such", "as", "the", "types", "of", "object", "fields", "or", "array", "elements", "."...
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/gnostic-analyze/statistics/statsv2.go#L186-L203
18,705
googleapis/gnostic
plugins/gnostic-analyze/statistics/statsv2.go
analyzeDocument
func (s *DocumentStatistics) analyzeDocument(source string, document *openapi.Document) { s.Name = source s.Title = document.Info.Title for _, pair := range document.Paths.Path { path := pair.Value if path.Get != nil { s.analyzeOperation("get", "paths"+pair.Name+"/get", path.Get) } if path.Post != nil { ...
go
func (s *DocumentStatistics) analyzeDocument(source string, document *openapi.Document) { s.Name = source s.Title = document.Info.Title for _, pair := range document.Paths.Path { path := pair.Value if path.Get != nil { s.analyzeOperation("get", "paths"+pair.Name+"/get", path.Get) } if path.Post != nil { ...
[ "func", "(", "s", "*", "DocumentStatistics", ")", "analyzeDocument", "(", "source", "string", ",", "document", "*", "openapi", ".", "Document", ")", "{", "s", ".", "Name", "=", "source", "\n\n", "s", ".", "Title", "=", "document", ".", "Info", ".", "Ti...
// Analyze an OpenAPI description. // Collect information about types used in the API. // This should be called exactly once per DocumentStatistics object.
[ "Analyze", "an", "OpenAPI", "description", ".", "Collect", "information", "about", "types", "used", "in", "the", "API", ".", "This", "should", "be", "called", "exactly", "once", "per", "DocumentStatistics", "object", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/gnostic-analyze/statistics/statsv2.go#L208-L233
18,706
googleapis/gnostic
plugins/gnostic-analyze/statistics/statsv2.go
typeForSchema
func typeForSchema(schema *openapi.Schema) string { if schema.XRef != "" { return "reference" } if len(schema.Enum) > 0 { enumType := typeNameForSchema(schema) return "enum-of-" + enumType } typeName := typeNameForSchema(schema) if typeName == "array" { if schema.Items != nil { // items contains an arr...
go
func typeForSchema(schema *openapi.Schema) string { if schema.XRef != "" { return "reference" } if len(schema.Enum) > 0 { enumType := typeNameForSchema(schema) return "enum-of-" + enumType } typeName := typeNameForSchema(schema) if typeName == "array" { if schema.Items != nil { // items contains an arr...
[ "func", "typeForSchema", "(", "schema", "*", "openapi", ".", "Schema", ")", "string", "{", "if", "schema", ".", "XRef", "!=", "\"", "\"", "{", "return", "\"", "\"", "\n", "}", "\n", "if", "len", "(", "schema", ".", "Enum", ")", ">", "0", "{", "en...
// Return a type name to use for a schema.
[ "Return", "a", "type", "name", "to", "use", "for", "a", "schema", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/gnostic-analyze/statistics/statsv2.go#L252-L308
18,707
googleapis/gnostic
jsonschema/display.go
Description
func (s *StringOrStringArray) Description() string { if s.String != nil { return *s.String } if s.StringArray != nil { return strings.Join(*s.StringArray, ", ") } return "" }
go
func (s *StringOrStringArray) Description() string { if s.String != nil { return *s.String } if s.StringArray != nil { return strings.Join(*s.StringArray, ", ") } return "" }
[ "func", "(", "s", "*", "StringOrStringArray", ")", "Description", "(", ")", "string", "{", "if", "s", ".", "String", "!=", "nil", "{", "return", "*", "s", ".", "String", "\n", "}", "\n", "if", "s", ".", "StringArray", "!=", "nil", "{", "return", "s...
// // DISPLAY // The following methods display Schemas. // // Description returns a string representation of a string or string array.
[ "DISPLAY", "The", "following", "methods", "display", "Schemas", ".", "Description", "returns", "a", "string", "representation", "of", "a", "string", "or", "string", "array", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/jsonschema/display.go#L28-L36
18,708
googleapis/gnostic
plugins/gnostic-go-generator/language.go
Prepare
func (language *GoLanguageModel) Prepare(model *surface.Model) { for _, t := range model.Types { // determine the type used for Go language implementation of the type t.TypeName = strings.Title(filteredTypeName(t.Name)) for _, f := range t.Fields { f.FieldName = goFieldName(f.Name) f.ParameterName = goPa...
go
func (language *GoLanguageModel) Prepare(model *surface.Model) { for _, t := range model.Types { // determine the type used for Go language implementation of the type t.TypeName = strings.Title(filteredTypeName(t.Name)) for _, f := range t.Fields { f.FieldName = goFieldName(f.Name) f.ParameterName = goPa...
[ "func", "(", "language", "*", "GoLanguageModel", ")", "Prepare", "(", "model", "*", "surface", ".", "Model", ")", "{", "for", "_", ",", "t", ":=", "range", "model", ".", "Types", "{", "// determine the type used for Go language implementation of the type", "t", ...
// Prepare sets language-specific properties for all types and methods.
[ "Prepare", "sets", "language", "-", "specific", "properties", "for", "all", "types", "and", "methods", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/gnostic-go-generator/language.go#L31-L69
18,709
googleapis/gnostic
generate-gnostic/helpers.go
camelCaseToSnakeCase
func camelCaseToSnakeCase(input string) string { out := "" for index, runeValue := range input { //fmt.Printf("%#U starts at byte position %d\n", runeValue, index) if runeValue >= 'A' && runeValue <= 'Z' { if index > 0 { out += "_" } out += string(runeValue - 'A' + 'a') } else { out += string(ru...
go
func camelCaseToSnakeCase(input string) string { out := "" for index, runeValue := range input { //fmt.Printf("%#U starts at byte position %d\n", runeValue, index) if runeValue >= 'A' && runeValue <= 'Z' { if index > 0 { out += "_" } out += string(runeValue - 'A' + 'a') } else { out += string(ru...
[ "func", "camelCaseToSnakeCase", "(", "input", "string", ")", "string", "{", "out", ":=", "\"", "\"", "\n", "for", "index", ",", "runeValue", ":=", "range", "input", "{", "//fmt.Printf(\"%#U starts at byte position %d\\n\", runeValue, index)", "if", "runeValue", ">=", ...
// Returns a "snake case" form of a camel-cased string.
[ "Returns", "a", "snake", "case", "form", "of", "a", "camel", "-", "cased", "string", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/generate-gnostic/helpers.go#L23-L37
18,710
googleapis/gnostic
compiler/reader.go
FetchFile
func FetchFile(fileurl string) ([]byte, error) { var bytes []byte initializeFileCache() if fileCacheEnable { bytes, ok := fileCache[fileurl] if ok { if verboseReader { log.Printf("Cache hit %s", fileurl) } return bytes, nil } if verboseReader { log.Printf("Fetching %s", fileurl) } } respo...
go
func FetchFile(fileurl string) ([]byte, error) { var bytes []byte initializeFileCache() if fileCacheEnable { bytes, ok := fileCache[fileurl] if ok { if verboseReader { log.Printf("Cache hit %s", fileurl) } return bytes, nil } if verboseReader { log.Printf("Fetching %s", fileurl) } } respo...
[ "func", "FetchFile", "(", "fileurl", "string", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "var", "bytes", "[", "]", "byte", "\n", "initializeFileCache", "(", ")", "\n", "if", "fileCacheEnable", "{", "bytes", ",", "ok", ":=", "fileCache", "[", ...
// FetchFile gets a specified file from the local filesystem or a remote location.
[ "FetchFile", "gets", "a", "specified", "file", "from", "the", "local", "filesystem", "or", "a", "remote", "location", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/compiler/reader.go#L74-L102
18,711
googleapis/gnostic
compiler/reader.go
ReadBytesForFile
func ReadBytesForFile(filename string) ([]byte, error) { // is the filename a url? fileurl, _ := url.Parse(filename) if fileurl.Scheme != "" { // yes, fetch it bytes, err := FetchFile(filename) if err != nil { return nil, err } return bytes, nil } // no, it's a local filename bytes, err := ioutil.Rea...
go
func ReadBytesForFile(filename string) ([]byte, error) { // is the filename a url? fileurl, _ := url.Parse(filename) if fileurl.Scheme != "" { // yes, fetch it bytes, err := FetchFile(filename) if err != nil { return nil, err } return bytes, nil } // no, it's a local filename bytes, err := ioutil.Rea...
[ "func", "ReadBytesForFile", "(", "filename", "string", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "// is the filename a url?", "fileurl", ",", "_", ":=", "url", ".", "Parse", "(", "filename", ")", "\n", "if", "fileurl", ".", "Scheme", "!=", "\""...
// ReadBytesForFile reads the bytes of a file.
[ "ReadBytesForFile", "reads", "the", "bytes", "of", "a", "file", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/compiler/reader.go#L105-L122
18,712
googleapis/gnostic
compiler/reader.go
ReadInfoFromBytes
func ReadInfoFromBytes(filename string, bytes []byte) (interface{}, error) { initializeInfoCache() if infoCacheEnable { cachedInfo, ok := infoCache[filename] if ok { if verboseReader { log.Printf("Cache hit info for file %s", filename) } return cachedInfo, nil } if verboseReader { log.Printf("...
go
func ReadInfoFromBytes(filename string, bytes []byte) (interface{}, error) { initializeInfoCache() if infoCacheEnable { cachedInfo, ok := infoCache[filename] if ok { if verboseReader { log.Printf("Cache hit info for file %s", filename) } return cachedInfo, nil } if verboseReader { log.Printf("...
[ "func", "ReadInfoFromBytes", "(", "filename", "string", ",", "bytes", "[", "]", "byte", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "initializeInfoCache", "(", ")", "\n", "if", "infoCacheEnable", "{", "cachedInfo", ",", "ok", ":=", "infoCache"...
// ReadInfoFromBytes unmarshals a file as a yaml.MapSlice.
[ "ReadInfoFromBytes", "unmarshals", "a", "file", "as", "a", "yaml", ".", "MapSlice", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/compiler/reader.go#L125-L148
18,713
googleapis/gnostic
generate-gnostic/generate-compiler.go
SpecialCaseExpression
func (p *patternNames) SpecialCaseExpression(value, variable string) (code string, ok bool) { fn, ok := p.specialCase[value] if !ok { return "", false } return fn(variable), ok }
go
func (p *patternNames) SpecialCaseExpression(value, variable string) (code string, ok bool) { fn, ok := p.specialCase[value] if !ok { return "", false } return fn(variable), ok }
[ "func", "(", "p", "*", "patternNames", ")", "SpecialCaseExpression", "(", "value", ",", "variable", "string", ")", "(", "code", "string", ",", "ok", "bool", ")", "{", "fn", ",", "ok", ":=", "p", ".", "specialCase", "[", "value", "]", "\n", "if", "!",...
// SpecialCaseExpression returns true if the provided regex can be inlined as a faster // expression.
[ "SpecialCaseExpression", "returns", "true", "if", "the", "provided", "regex", "can", "be", "inlined", "as", "a", "faster", "expression", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/generate-gnostic/generate-compiler.go#L37-L43
18,714
googleapis/gnostic
generate-gnostic/generate-compiler.go
VariableName
func (p *patternNames) VariableName(value string) string { num, ok := p.values[value] if !ok { if p.values == nil { p.values = make(map[string]int) } num = p.last p.last++ p.values[value] = num } return fmt.Sprintf("%s%d", p.prefix, num) }
go
func (p *patternNames) VariableName(value string) string { num, ok := p.values[value] if !ok { if p.values == nil { p.values = make(map[string]int) } num = p.last p.last++ p.values[value] = num } return fmt.Sprintf("%s%d", p.prefix, num) }
[ "func", "(", "p", "*", "patternNames", ")", "VariableName", "(", "value", "string", ")", "string", "{", "num", ",", "ok", ":=", "p", ".", "values", "[", "value", "]", "\n", "if", "!", "ok", "{", "if", "p", ".", "values", "==", "nil", "{", "p", ...
// VariableName returns the variable name for the given value.
[ "VariableName", "returns", "the", "variable", "name", "for", "the", "given", "value", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/generate-gnostic/generate-compiler.go#L46-L57
18,715
googleapis/gnostic
generate-gnostic/generate-compiler.go
GenerateCompiler
func (domain *Domain) GenerateCompiler(packageName string, license string, imports []string) string { code := &printer.Code{} code.Print(license) code.Print("// THIS FILE IS AUTOMATICALLY GENERATED.\n") // generate package declaration code.Print("package %s\n", packageName) code.Print("import (") for _, filena...
go
func (domain *Domain) GenerateCompiler(packageName string, license string, imports []string) string { code := &printer.Code{} code.Print(license) code.Print("// THIS FILE IS AUTOMATICALLY GENERATED.\n") // generate package declaration code.Print("package %s\n", packageName) code.Print("import (") for _, filena...
[ "func", "(", "domain", "*", "Domain", ")", "GenerateCompiler", "(", "packageName", "string", ",", "license", "string", ",", "imports", "[", "]", "string", ")", "string", "{", "code", ":=", "&", "printer", ".", "Code", "{", "}", "\n", "code", ".", "Prin...
// GenerateCompiler generates the compiler code for a domain.
[ "GenerateCompiler", "generates", "the", "compiler", "code", "for", "a", "domain", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/generate-gnostic/generate-compiler.go#L68-L117
18,716
googleapis/gnostic
plugins/environment.go
NewEnvironment
func NewEnvironment() (env *Environment, err error) { env = &Environment{ Invocation: os.Args[0], Response: &Response{}, } input := flag.String("input", "", "API description (in binary protocol buffer form)") output := flag.String("output", "-", "Output file or directory") plugin := flag.Bool("plugin", fals...
go
func NewEnvironment() (env *Environment, err error) { env = &Environment{ Invocation: os.Args[0], Response: &Response{}, } input := flag.String("input", "", "API description (in binary protocol buffer form)") output := flag.String("output", "-", "Output file or directory") plugin := flag.Bool("plugin", fals...
[ "func", "NewEnvironment", "(", ")", "(", "env", "*", "Environment", ",", "err", "error", ")", "{", "env", "=", "&", "Environment", "{", "Invocation", ":", "os", ".", "Args", "[", "0", "]", ",", "Response", ":", "&", "Response", "{", "}", ",", "}", ...
// NewEnvironment creates a plugin context from arguments and standard input.
[ "NewEnvironment", "creates", "a", "plugin", "context", "from", "arguments", "and", "standard", "input", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/environment.go#L31-L137
18,717
googleapis/gnostic
plugins/environment.go
RespondAndExitIfError
func (env *Environment) RespondAndExitIfError(err error) { if err != nil { env.Response.Errors = append(env.Response.Errors, err.Error()) env.RespondAndExit() } }
go
func (env *Environment) RespondAndExitIfError(err error) { if err != nil { env.Response.Errors = append(env.Response.Errors, err.Error()) env.RespondAndExit() } }
[ "func", "(", "env", "*", "Environment", ")", "RespondAndExitIfError", "(", "err", "error", ")", "{", "if", "err", "!=", "nil", "{", "env", ".", "Response", ".", "Errors", "=", "append", "(", "env", ".", "Response", ".", "Errors", ",", "err", ".", "Er...
// RespondAndExitIfError checks an error and if it is non-nil, records it and serializes and returns the response and then exits.
[ "RespondAndExitIfError", "checks", "an", "error", "and", "if", "it", "is", "non", "-", "nil", "records", "it", "and", "serializes", "and", "returns", "the", "response", "and", "then", "exits", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/environment.go#L140-L145
18,718
googleapis/gnostic
plugins/environment.go
RespondAndExit
func (env *Environment) RespondAndExit() { if env.RunningAsPlugin { responseBytes, _ := proto.Marshal(env.Response) os.Stdout.Write(responseBytes) } else { err := HandleResponse(env.Response, env.Request.OutputPath) if err != nil { log.Printf("%s", err.Error()) } } os.Exit(0) }
go
func (env *Environment) RespondAndExit() { if env.RunningAsPlugin { responseBytes, _ := proto.Marshal(env.Response) os.Stdout.Write(responseBytes) } else { err := HandleResponse(env.Response, env.Request.OutputPath) if err != nil { log.Printf("%s", err.Error()) } } os.Exit(0) }
[ "func", "(", "env", "*", "Environment", ")", "RespondAndExit", "(", ")", "{", "if", "env", ".", "RunningAsPlugin", "{", "responseBytes", ",", "_", ":=", "proto", ".", "Marshal", "(", "env", ".", "Response", ")", "\n", "os", ".", "Stdout", ".", "Write",...
// RespondAndExit serializes and returns the plugin response and then exits.
[ "RespondAndExit", "serializes", "and", "returns", "the", "plugin", "response", "and", "then", "exits", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/environment.go#L148-L159
18,719
googleapis/gnostic
plugins/gnostic-go-generator/examples/googleauth/googleauth.go
readConfig
func readConfig(scopes []string) (*oauth2.Config, error) { // Read the secrets file data, err := ioutil.ReadFile(*clientSecretsFile) if err != nil { pwd, _ := os.Getwd() fullPath := filepath.Join(pwd, *clientSecretsFile) return nil, fmt.Errorf(missingClientSecretsMessage, fullPath) } cfg := new(Config) err...
go
func readConfig(scopes []string) (*oauth2.Config, error) { // Read the secrets file data, err := ioutil.ReadFile(*clientSecretsFile) if err != nil { pwd, _ := os.Getwd() fullPath := filepath.Join(pwd, *clientSecretsFile) return nil, fmt.Errorf(missingClientSecretsMessage, fullPath) } cfg := new(Config) err...
[ "func", "readConfig", "(", "scopes", "[", "]", "string", ")", "(", "*", "oauth2", ".", "Config", ",", "error", ")", "{", "// Read the secrets file", "data", ",", "err", ":=", "ioutil", ".", "ReadFile", "(", "*", "clientSecretsFile", ")", "\n", "if", "err...
// readConfig reads the configuration from clientSecretsFile. // It returns an oauth configuration object for use with the Google API client.
[ "readConfig", "reads", "the", "configuration", "from", "clientSecretsFile", ".", "It", "returns", "an", "oauth", "configuration", "object", "for", "use", "with", "the", "Google", "API", "client", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/plugins/gnostic-go-generator/examples/googleauth/googleauth.go#L92-L123
18,720
googleapis/gnostic
apps/disco/openapiv2.go
OpenAPIv2
func OpenAPIv2(api *discovery.Document) (*openapi2.Document, error) { d := &openapi2.Document{} d.Swagger = "2.0" d.Info = &openapi2.Info{ Title: api.Title, Version: api.Version, Description: api.Description, } url, _ := url.Parse(api.RootUrl) d.Host = url.Host d.BasePath = removeTrailingSlash(ap...
go
func OpenAPIv2(api *discovery.Document) (*openapi2.Document, error) { d := &openapi2.Document{} d.Swagger = "2.0" d.Info = &openapi2.Info{ Title: api.Title, Version: api.Version, Description: api.Description, } url, _ := url.Parse(api.RootUrl) d.Host = url.Host d.BasePath = removeTrailingSlash(ap...
[ "func", "OpenAPIv2", "(", "api", "*", "discovery", ".", "Document", ")", "(", "*", "openapi2", ".", "Document", ",", "error", ")", "{", "d", ":=", "&", "openapi2", ".", "Document", "{", "}", "\n", "d", ".", "Swagger", "=", "\"", "\"", "\n", "d", ...
// OpenAPIv2 returns an OpenAPI v2 representation of this Discovery document
[ "OpenAPIv2", "returns", "an", "OpenAPI", "v2", "representation", "of", "this", "Discovery", "document" ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/apps/disco/openapiv2.go#L255-L287
18,721
googleapis/gnostic
compiler/extension-handler.go
HandleExtension
func HandleExtension(context *Context, in interface{}, extensionName string) (bool, *any.Any, error) { handled := false var errFromPlugin error var outFromPlugin *any.Any if context != nil && context.ExtensionHandlers != nil && len(*(context.ExtensionHandlers)) != 0 { for _, customAnyProtoGenerator := range *(co...
go
func HandleExtension(context *Context, in interface{}, extensionName string) (bool, *any.Any, error) { handled := false var errFromPlugin error var outFromPlugin *any.Any if context != nil && context.ExtensionHandlers != nil && len(*(context.ExtensionHandlers)) != 0 { for _, customAnyProtoGenerator := range *(co...
[ "func", "HandleExtension", "(", "context", "*", "Context", ",", "in", "interface", "{", "}", ",", "extensionName", "string", ")", "(", "bool", ",", "*", "any", ".", "Any", ",", "error", ")", "{", "handled", ":=", "false", "\n", "var", "errFromPlugin", ...
// HandleExtension calls a binary extension handler.
[ "HandleExtension", "calls", "a", "binary", "extension", "handler", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/compiler/extension-handler.go#L38-L55
18,722
googleapis/gnostic
apps/disco/openapiv3.go
OpenAPIv3
func OpenAPIv3(api *discovery.Document) (*openapi3.Document, error) { d := &openapi3.Document{} d.Openapi = "3.0" d.Info = &openapi3.Info{ Title: api.Title, Version: api.Version, Description: api.Description, } d.Servers = make([]*openapi3.Server, 0) url, _ := url.Parse(api.RootUrl) host := url....
go
func OpenAPIv3(api *discovery.Document) (*openapi3.Document, error) { d := &openapi3.Document{} d.Openapi = "3.0" d.Info = &openapi3.Info{ Title: api.Title, Version: api.Version, Description: api.Description, } d.Servers = make([]*openapi3.Server, 0) url, _ := url.Parse(api.RootUrl) host := url....
[ "func", "OpenAPIv3", "(", "api", "*", "discovery", ".", "Document", ")", "(", "*", "openapi3", ".", "Document", ",", "error", ")", "{", "d", ":=", "&", "openapi3", ".", "Document", "{", "}", "\n", "d", ".", "Openapi", "=", "\"", "\"", "\n", "d", ...
// OpenAPIv3 returns an OpenAPI v3 representation of a Discovery document
[ "OpenAPIv3", "returns", "an", "OpenAPI", "v3", "representation", "of", "a", "Discovery", "document" ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/apps/disco/openapiv3.go#L261-L303
18,723
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewAdditionalPropertiesItem
func NewAdditionalPropertiesItem(in interface{}, context *compiler.Context) (*AdditionalPropertiesItem, error) { errors := make([]error, 0) x := &AdditionalPropertiesItem{} matched := false // Schema schema = 1; { m, ok := compiler.UnpackMap(in) if ok { // errors might be ok here, they mean we just don't ha...
go
func NewAdditionalPropertiesItem(in interface{}, context *compiler.Context) (*AdditionalPropertiesItem, error) { errors := make([]error, 0) x := &AdditionalPropertiesItem{} matched := false // Schema schema = 1; { m, ok := compiler.UnpackMap(in) if ok { // errors might be ok here, they mean we just don't ha...
[ "func", "NewAdditionalPropertiesItem", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "AdditionalPropertiesItem", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\...
// NewAdditionalPropertiesItem creates an object of type AdditionalPropertiesItem if possible, returning an error if not.
[ "NewAdditionalPropertiesItem", "creates", "an", "object", "of", "type", "AdditionalPropertiesItem", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L33-L61
18,724
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewHeaders
func NewHeaders(in interface{}, context *compiler.Context) (*Headers, error) { errors := make([]error, 0) x := &Headers{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(context, message)) } else { // repeated...
go
func NewHeaders(in interface{}, context *compiler.Context) (*Headers, error) { errors := make([]error, 0) x := &Headers{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(context, message)) } else { // repeated...
[ "func", "NewHeaders", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "Headers", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x", ":=", "&", "Heade...
// NewHeaders creates an object of type Headers if possible, returning an error if not.
[ "NewHeaders", "creates", "an", "object", "of", "type", "Headers", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L1931-L1958
18,725
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewItemsItem
func NewItemsItem(in interface{}, context *compiler.Context) (*ItemsItem, error) { errors := make([]error, 0) x := &ItemsItem{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value for item array: %+v (%T)", in, in) errors = append(errors, compiler.NewError(context, message)) }...
go
func NewItemsItem(in interface{}, context *compiler.Context) (*ItemsItem, error) { errors := make([]error, 0) x := &ItemsItem{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value for item array: %+v (%T)", in, in) errors = append(errors, compiler.NewError(context, message)) }...
[ "func", "NewItemsItem", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "ItemsItem", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x", ":=", "&", "I...
// NewItemsItem creates an object of type ItemsItem if possible, returning an error if not.
[ "NewItemsItem", "creates", "an", "object", "of", "type", "ItemsItem", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L2072-L2088
18,726
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewJsonReference
func NewJsonReference(in interface{}, context *compiler.Context) (*JsonReference, error) { errors := make([]error, 0) x := &JsonReference{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(context, message)) } el...
go
func NewJsonReference(in interface{}, context *compiler.Context) (*JsonReference, error) { errors := make([]error, 0) x := &JsonReference{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(context, message)) } el...
[ "func", "NewJsonReference", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "JsonReference", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x", ":=", "...
// NewJsonReference creates an object of type JsonReference if possible, returning an error if not.
[ "NewJsonReference", "creates", "an", "object", "of", "type", "JsonReference", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L2091-L2132
18,727
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewNonBodyParameter
func NewNonBodyParameter(in interface{}, context *compiler.Context) (*NonBodyParameter, error) { errors := make([]error, 0) x := &NonBodyParameter{} matched := false m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewErr...
go
func NewNonBodyParameter(in interface{}, context *compiler.Context) (*NonBodyParameter, error) { errors := make([]error, 0) x := &NonBodyParameter{} matched := false m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewErr...
[ "func", "NewNonBodyParameter", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "NonBodyParameter", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x", ":=...
// NewNonBodyParameter creates an object of type NonBodyParameter if possible, returning an error if not.
[ "NewNonBodyParameter", "creates", "an", "object", "of", "type", "NonBodyParameter", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L2590-L2655
18,728
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewOauth2Scopes
func NewOauth2Scopes(in interface{}, context *compiler.Context) (*Oauth2Scopes, error) { errors := make([]error, 0) x := &Oauth2Scopes{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(context, message)) } else ...
go
func NewOauth2Scopes(in interface{}, context *compiler.Context) (*Oauth2Scopes, error) { errors := make([]error, 0) x := &Oauth2Scopes{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(context, message)) } else ...
[ "func", "NewOauth2Scopes", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "Oauth2Scopes", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x", ":=", "&"...
// NewOauth2Scopes creates an object of type Oauth2Scopes if possible, returning an error if not.
[ "NewOauth2Scopes", "creates", "an", "object", "of", "type", "Oauth2Scopes", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L3123-L3146
18,729
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewParameterDefinitions
func NewParameterDefinitions(in interface{}, context *compiler.Context) (*ParameterDefinitions, error) { errors := make([]error, 0) x := &ParameterDefinitions{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(con...
go
func NewParameterDefinitions(in interface{}, context *compiler.Context) (*ParameterDefinitions, error) { errors := make([]error, 0) x := &ParameterDefinitions{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(con...
[ "func", "NewParameterDefinitions", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "ParameterDefinitions", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x...
// NewParameterDefinitions creates an object of type ParameterDefinitions if possible, returning an error if not.
[ "NewParameterDefinitions", "creates", "an", "object", "of", "type", "ParameterDefinitions", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L3382-L3409
18,730
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewParametersItem
func NewParametersItem(in interface{}, context *compiler.Context) (*ParametersItem, error) { errors := make([]error, 0) x := &ParametersItem{} matched := false // Parameter parameter = 1; { m, ok := compiler.UnpackMap(in) if ok { // errors might be ok here, they mean we just don't have the right subtype ...
go
func NewParametersItem(in interface{}, context *compiler.Context) (*ParametersItem, error) { errors := make([]error, 0) x := &ParametersItem{} matched := false // Parameter parameter = 1; { m, ok := compiler.UnpackMap(in) if ok { // errors might be ok here, they mean we just don't have the right subtype ...
[ "func", "NewParametersItem", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "ParametersItem", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x", ":=", ...
// NewParametersItem creates an object of type ParametersItem if possible, returning an error if not.
[ "NewParametersItem", "creates", "an", "object", "of", "type", "ParametersItem", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L3412-L3449
18,731
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewResponseDefinitions
func NewResponseDefinitions(in interface{}, context *compiler.Context) (*ResponseDefinitions, error) { errors := make([]error, 0) x := &ResponseDefinitions{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(contex...
go
func NewResponseDefinitions(in interface{}, context *compiler.Context) (*ResponseDefinitions, error) { errors := make([]error, 0) x := &ResponseDefinitions{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(contex...
[ "func", "NewResponseDefinitions", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "ResponseDefinitions", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x",...
// NewResponseDefinitions creates an object of type ResponseDefinitions if possible, returning an error if not.
[ "NewResponseDefinitions", "creates", "an", "object", "of", "type", "ResponseDefinitions", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L4702-L4729
18,732
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewResponseValue
func NewResponseValue(in interface{}, context *compiler.Context) (*ResponseValue, error) { errors := make([]error, 0) x := &ResponseValue{} matched := false // Response response = 1; { m, ok := compiler.UnpackMap(in) if ok { // errors might be ok here, they mean we just don't have the right subtype t, ma...
go
func NewResponseValue(in interface{}, context *compiler.Context) (*ResponseValue, error) { errors := make([]error, 0) x := &ResponseValue{} matched := false // Response response = 1; { m, ok := compiler.UnpackMap(in) if ok { // errors might be ok here, they mean we just don't have the right subtype t, ma...
[ "func", "NewResponseValue", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "ResponseValue", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x", ":=", "...
// NewResponseValue creates an object of type ResponseValue if possible, returning an error if not.
[ "NewResponseValue", "creates", "an", "object", "of", "type", "ResponseValue", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L4732-L4769
18,733
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewSchemaItem
func NewSchemaItem(in interface{}, context *compiler.Context) (*SchemaItem, error) { errors := make([]error, 0) x := &SchemaItem{} matched := false // Schema schema = 1; { m, ok := compiler.UnpackMap(in) if ok { // errors might be ok here, they mean we just don't have the right subtype t, matchingError :...
go
func NewSchemaItem(in interface{}, context *compiler.Context) (*SchemaItem, error) { errors := make([]error, 0) x := &SchemaItem{} matched := false // Schema schema = 1; { m, ok := compiler.UnpackMap(in) if ok { // errors might be ok here, they mean we just don't have the right subtype t, matchingError :...
[ "func", "NewSchemaItem", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "SchemaItem", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x", ":=", "&", ...
// NewSchemaItem creates an object of type SchemaItem if possible, returning an error if not.
[ "NewSchemaItem", "creates", "an", "object", "of", "type", "SchemaItem", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L5233-L5270
18,734
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewSecurityDefinitions
func NewSecurityDefinitions(in interface{}, context *compiler.Context) (*SecurityDefinitions, error) { errors := make([]error, 0) x := &SecurityDefinitions{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(contex...
go
func NewSecurityDefinitions(in interface{}, context *compiler.Context) (*SecurityDefinitions, error) { errors := make([]error, 0) x := &SecurityDefinitions{} m, ok := compiler.UnpackMap(in) if !ok { message := fmt.Sprintf("has unexpected value: %+v (%T)", in, in) errors = append(errors, compiler.NewError(contex...
[ "func", "NewSecurityDefinitions", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "SecurityDefinitions", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x",...
// NewSecurityDefinitions creates an object of type SecurityDefinitions if possible, returning an error if not.
[ "NewSecurityDefinitions", "creates", "an", "object", "of", "type", "SecurityDefinitions", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L5273-L5300
18,735
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewSecurityDefinitionsItem
func NewSecurityDefinitionsItem(in interface{}, context *compiler.Context) (*SecurityDefinitionsItem, error) { errors := make([]error, 0) x := &SecurityDefinitionsItem{} matched := false // BasicAuthenticationSecurity basic_authentication_security = 1; { m, ok := compiler.UnpackMap(in) if ok { // errors mig...
go
func NewSecurityDefinitionsItem(in interface{}, context *compiler.Context) (*SecurityDefinitionsItem, error) { errors := make([]error, 0) x := &SecurityDefinitionsItem{} matched := false // BasicAuthenticationSecurity basic_authentication_security = 1; { m, ok := compiler.UnpackMap(in) if ok { // errors mig...
[ "func", "NewSecurityDefinitionsItem", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "SecurityDefinitionsItem", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n"...
// NewSecurityDefinitionsItem creates an object of type SecurityDefinitionsItem if possible, returning an error if not.
[ "NewSecurityDefinitionsItem", "creates", "an", "object", "of", "type", "SecurityDefinitionsItem", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L5303-L5396
18,736
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
NewTypeItem
func NewTypeItem(in interface{}, context *compiler.Context) (*TypeItem, error) { errors := make([]error, 0) x := &TypeItem{} switch in := in.(type) { case string: x.Value = make([]string, 0) x.Value = append(x.Value, in) case []interface{}: x.Value = make([]string, 0) for _, v := range in { value, ok :=...
go
func NewTypeItem(in interface{}, context *compiler.Context) (*TypeItem, error) { errors := make([]error, 0) x := &TypeItem{} switch in := in.(type) { case string: x.Value = make([]string, 0) x.Value = append(x.Value, in) case []interface{}: x.Value = make([]string, 0) for _, v := range in { value, ok :=...
[ "func", "NewTypeItem", "(", "in", "interface", "{", "}", ",", "context", "*", "compiler", ".", "Context", ")", "(", "*", "TypeItem", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "x", ":=", "&", "Typ...
// NewTypeItem creates an object of type TypeItem if possible, returning an error if not.
[ "NewTypeItem", "creates", "an", "object", "of", "type", "TypeItem", "if", "possible", "returning", "an", "error", "if", "not", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L5530-L5553
18,737
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *BodyParameter) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.Schema != nil { _, err := m.Schema.ResolveReferences(root) if err != nil { errors = append(errors, err) } } for _, item := range m.VendorExtension { if item != nil { _, err := item.ResolveRefe...
go
func (m *BodyParameter) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.Schema != nil { _, err := m.Schema.ResolveReferences(root) if err != nil { errors = append(errors, err) } } for _, item := range m.VendorExtension { if item != nil { _, err := item.ResolveRefe...
[ "func", "(", "m", "*", "BodyParameter", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "if", "m", ".", "Schema", "!=", ...
// ResolveReferences resolves references found inside BodyParameter objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "BodyParameter", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L5743-L5760
18,738
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *FileSchema) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.Default != nil { _, err := m.Default.ResolveReferences(root) if err != nil { errors = append(errors, err) } } if m.ExternalDocs != nil { _, err := m.ExternalDocs.ResolveReferences(root) if err != ...
go
func (m *FileSchema) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.Default != nil { _, err := m.Default.ResolveReferences(root) if err != nil { errors = append(errors, err) } } if m.ExternalDocs != nil { _, err := m.ExternalDocs.ResolveReferences(root) if err != ...
[ "func", "(", "m", "*", "FileSchema", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "if", "m", ".", "Default", "!=", "...
// ResolveReferences resolves references found inside FileSchema objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "FileSchema", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L5905-L5934
18,739
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *Info) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.Contact != nil { _, err := m.Contact.ResolveReferences(root) if err != nil { errors = append(errors, err) } } if m.License != nil { _, err := m.License.ResolveReferences(root) if err != nil { errors ...
go
func (m *Info) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.Contact != nil { _, err := m.Contact.ResolveReferences(root) if err != nil { errors = append(errors, err) } } if m.License != nil { _, err := m.License.ResolveReferences(root) if err != nil { errors ...
[ "func", "(", "m", "*", "Info", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "if", "m", ".", "Contact", "!=", "nil", ...
// ResolveReferences resolves references found inside Info objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "Info", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6053-L6076
18,740
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *ItemsItem) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) for _, item := range m.Schema { if item != nil { _, err := item.ResolveReferences(root) if err != nil { errors = append(errors, err) } } } return nil, compiler.NewErrorGroupOrNil(errors) }
go
func (m *ItemsItem) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) for _, item := range m.Schema { if item != nil { _, err := item.ResolveReferences(root) if err != nil { errors = append(errors, err) } } } return nil, compiler.NewErrorGroupOrNil(errors) }
[ "func", "(", "m", "*", "ItemsItem", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "for", "_", ",", "item", ":=", "ran...
// ResolveReferences resolves references found inside ItemsItem objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "ItemsItem", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6079-L6090
18,741
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *JsonReference) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.XRef != "" { info, err := compiler.ReadInfoForRef(root, m.XRef) if err != nil { return nil, err } if info != nil { replacement, err := NewJsonReference(info, nil) if err == nil { *m = *re...
go
func (m *JsonReference) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.XRef != "" { info, err := compiler.ReadInfoForRef(root, m.XRef) if err != nil { return nil, err } if info != nil { replacement, err := NewJsonReference(info, nil) if err == nil { *m = *re...
[ "func", "(", "m", "*", "JsonReference", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "if", "m", ".", "XRef", "!=", "...
// ResolveReferences resolves references found inside JsonReference objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "JsonReference", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6093-L6110
18,742
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *NonBodyParameter) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) { p, ok := m.Oneof.(*NonBodyParameter_HeaderParameterSubSchema) if ok { _, err := p.HeaderParameterSubSchema.ResolveReferences(root) if err != nil { return nil, err } } } { p, ok := m.One...
go
func (m *NonBodyParameter) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) { p, ok := m.Oneof.(*NonBodyParameter_HeaderParameterSubSchema) if ok { _, err := p.HeaderParameterSubSchema.ResolveReferences(root) if err != nil { return nil, err } } } { p, ok := m.One...
[ "func", "(", "m", "*", "NonBodyParameter", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "{", "p", ",", "ok", ":=", "...
// ResolveReferences resolves references found inside NonBodyParameter objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "NonBodyParameter", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6241-L6280
18,743
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *Oauth2ImplicitSecurity) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.Scopes != nil { _, err := m.Scopes.ResolveReferences(root) if err != nil { errors = append(errors, err) } } for _, item := range m.VendorExtension { if item != nil { _, err := item.Re...
go
func (m *Oauth2ImplicitSecurity) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.Scopes != nil { _, err := m.Scopes.ResolveReferences(root) if err != nil { errors = append(errors, err) } } for _, item := range m.VendorExtension { if item != nil { _, err := item.Re...
[ "func", "(", "m", "*", "Oauth2ImplicitSecurity", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "if", "m", ".", "Scopes", ...
// ResolveReferences resolves references found inside Oauth2ImplicitSecurity objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "Oauth2ImplicitSecurity", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6323-L6340
18,744
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *ParametersItem) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) { p, ok := m.Oneof.(*ParametersItem_Parameter) if ok { _, err := p.Parameter.ResolveReferences(root) if err != nil { return nil, err } } } { p, ok := m.Oneof.(*ParametersItem_JsonReference)...
go
func (m *ParametersItem) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) { p, ok := m.Oneof.(*ParametersItem_Parameter) if ok { _, err := p.Parameter.ResolveReferences(root) if err != nil { return nil, err } } } { p, ok := m.Oneof.(*ParametersItem_JsonReference)...
[ "func", "(", "m", "*", "ParametersItem", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "{", "p", ",", "ok", ":=", "m"...
// ResolveReferences resolves references found inside ParametersItem objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "ParametersItem", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6457-L6486
18,745
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *PathParameterSubSchema) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.Items != nil { _, err := m.Items.ResolveReferences(root) if err != nil { errors = append(errors, err) } } if m.Default != nil { _, err := m.Default.ResolveReferences(root) if err != ni...
go
func (m *PathParameterSubSchema) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) if m.Items != nil { _, err := m.Items.ResolveReferences(root) if err != nil { errors = append(errors, err) } } if m.Default != nil { _, err := m.Default.ResolveReferences(root) if err != ni...
[ "func", "(", "m", "*", "PathParameterSubSchema", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "if", "m", ".", "Items", ...
// ResolveReferences resolves references found inside PathParameterSubSchema objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "PathParameterSubSchema", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6567-L6598
18,746
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *Paths) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) for _, item := range m.VendorExtension { if item != nil { _, err := item.ResolveReferences(root) if err != nil { errors = append(errors, err) } } } for _, item := range m.Path { if item != nil { _,...
go
func (m *Paths) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) for _, item := range m.VendorExtension { if item != nil { _, err := item.ResolveReferences(root) if err != nil { errors = append(errors, err) } } } for _, item := range m.Path { if item != nil { _,...
[ "func", "(", "m", "*", "Paths", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "for", "_", ",", "item", ":=", "range",...
// ResolveReferences resolves references found inside Paths objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "Paths", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6601-L6620
18,747
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *ResponseValue) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) { p, ok := m.Oneof.(*ResponseValue_Response) if ok { _, err := p.Response.ResolveReferences(root) if err != nil { return nil, err } } } { p, ok := m.Oneof.(*ResponseValue_JsonReference) if...
go
func (m *ResponseValue) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) { p, ok := m.Oneof.(*ResponseValue_Response) if ok { _, err := p.Response.ResolveReferences(root) if err != nil { return nil, err } } } { p, ok := m.Oneof.(*ResponseValue_JsonReference) if...
[ "func", "(", "m", "*", "ResponseValue", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "{", "p", ",", "ok", ":=", "m",...
// ResolveReferences resolves references found inside ResponseValue objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "ResponseValue", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6751-L6780
18,748
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *SchemaItem) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) { p, ok := m.Oneof.(*SchemaItem_Schema) if ok { _, err := p.Schema.ResolveReferences(root) if err != nil { return nil, err } } } { p, ok := m.Oneof.(*SchemaItem_FileSchema) if ok { _, err ...
go
func (m *SchemaItem) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) { p, ok := m.Oneof.(*SchemaItem_Schema) if ok { _, err := p.Schema.ResolveReferences(root) if err != nil { return nil, err } } } { p, ok := m.Oneof.(*SchemaItem_FileSchema) if ok { _, err ...
[ "func", "(", "m", "*", "SchemaItem", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "{", "p", ",", "ok", ":=", "m", ...
// ResolveReferences resolves references found inside SchemaItem objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "SchemaItem", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6897-L6918
18,749
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ResolveReferences
func (m *SecurityDefinitionsItem) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) { p, ok := m.Oneof.(*SecurityDefinitionsItem_BasicAuthenticationSecurity) if ok { _, err := p.BasicAuthenticationSecurity.ResolveReferences(root) if err != nil { return nil, err } } }...
go
func (m *SecurityDefinitionsItem) ResolveReferences(root string) (interface{}, error) { errors := make([]error, 0) { p, ok := m.Oneof.(*SecurityDefinitionsItem_BasicAuthenticationSecurity) if ok { _, err := p.BasicAuthenticationSecurity.ResolveReferences(root) if err != nil { return nil, err } } }...
[ "func", "(", "m", "*", "SecurityDefinitionsItem", ")", "ResolveReferences", "(", "root", "string", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "errors", ":=", "make", "(", "[", "]", "error", ",", "0", ")", "\n", "{", "p", ",", "ok", ":...
// ResolveReferences resolves references found inside SecurityDefinitionsItem objects.
[ "ResolveReferences", "resolves", "references", "found", "inside", "SecurityDefinitionsItem", "objects", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L6935-L6992
18,750
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *AdditionalPropertiesItem) ToRawInfo() interface{} { // ONE OF WRAPPER // AdditionalPropertiesItem // {Name:schema Type:Schema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetSchema() if v0 != nil { return v0.ToRawInfo() } // {Name:boolean Type:bool StringEn...
go
func (m *AdditionalPropertiesItem) ToRawInfo() interface{} { // ONE OF WRAPPER // AdditionalPropertiesItem // {Name:schema Type:Schema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetSchema() if v0 != nil { return v0.ToRawInfo() } // {Name:boolean Type:bool StringEn...
[ "func", "(", "m", "*", "AdditionalPropertiesItem", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "// ONE OF WRAPPER", "// AdditionalPropertiesItem", "// {Name:schema Type:Schema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}", "v0", ":="...
// ToRawInfo returns a description of AdditionalPropertiesItem suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "AdditionalPropertiesItem", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L7069-L7082
18,751
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *ApiKeySecurity) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // always include this required field. info = append(info, yaml.MapItem{Key: "type", Value: m.Type}) // always include this required field. info = append(info, yaml.MapItem{Key: "name", Value: m.Name}) // al...
go
func (m *ApiKeySecurity) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // always include this required field. info = append(info, yaml.MapItem{Key: "type", Value: m.Type}) // always include this required field. info = append(info, yaml.MapItem{Key: "name", Value: m.Name}) // al...
[ "func", "(", "m", "*", "ApiKeySecurity", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "info", ":=", "yaml", ".", "MapSlice", "{", "}", "\n", "if", "m", "==", "nil", "{", "return", "info", "\n", "}", "\n", "// always include this required field...
// ToRawInfo returns a description of ApiKeySecurity suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "ApiKeySecurity", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L7106-L7127
18,752
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *BodyParameter) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } if m.Description != "" { info = append(info, yaml.MapItem{Key: "description", Value: m.Description}) } // always include this required field. info = append(info, yaml.MapItem{Key: "name", Value: m.Name}) //...
go
func (m *BodyParameter) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } if m.Description != "" { info = append(info, yaml.MapItem{Key: "description", Value: m.Description}) } // always include this required field. info = append(info, yaml.MapItem{Key: "name", Value: m.Name}) //...
[ "func", "(", "m", "*", "BodyParameter", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "info", ":=", "yaml", ".", "MapSlice", "{", "}", "\n", "if", "m", "==", "nil", "{", "return", "info", "\n", "}", "\n", "if", "m", ".", "Description", ...
// ToRawInfo returns a description of BodyParameter suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "BodyParameter", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L7150-L7175
18,753
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *FileSchema) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } if m.Format != "" { info = append(info, yaml.MapItem{Key: "format", Value: m.Format}) } if m.Title != "" { info = append(info, yaml.MapItem{Key: "title", Value: m.Title}) } if m.Description != "" { info = ...
go
func (m *FileSchema) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } if m.Format != "" { info = append(info, yaml.MapItem{Key: "format", Value: m.Format}) } if m.Title != "" { info = append(info, yaml.MapItem{Key: "title", Value: m.Title}) } if m.Description != "" { info = ...
[ "func", "(", "m", "*", "FileSchema", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "info", ":=", "yaml", ".", "MapSlice", "{", "}", "\n", "if", "m", "==", "nil", "{", "return", "info", "\n", "}", "\n", "if", "m", ".", "Format", "!=", ...
// ToRawInfo returns a description of FileSchema suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "FileSchema", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L7341-L7382
18,754
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *Info) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // always include this required field. info = append(info, yaml.MapItem{Key: "title", Value: m.Title}) // always include this required field. info = append(info, yaml.MapItem{Key: "version", Value: m.Version}) if m.De...
go
func (m *Info) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // always include this required field. info = append(info, yaml.MapItem{Key: "title", Value: m.Title}) // always include this required field. info = append(info, yaml.MapItem{Key: "version", Value: m.Version}) if m.De...
[ "func", "(", "m", "*", "Info", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "info", ":=", "yaml", ".", "MapSlice", "{", "}", "\n", "if", "m", "==", "nil", "{", "return", "info", "\n", "}", "\n", "// always include this required field.", "inf...
// ToRawInfo returns a description of Info suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "Info", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L7648-L7678
18,755
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *ItemsItem) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } if len(m.Schema) != 0 { items := make([]interface{}, 0) for _, item := range m.Schema { items = append(items, item.ToRawInfo()) } info = append(info, yaml.MapItem{Key: "schema", Value: items}) } // &{Nam...
go
func (m *ItemsItem) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } if len(m.Schema) != 0 { items := make([]interface{}, 0) for _, item := range m.Schema { items = append(items, item.ToRawInfo()) } info = append(info, yaml.MapItem{Key: "schema", Value: items}) } // &{Nam...
[ "func", "(", "m", "*", "ItemsItem", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "info", ":=", "yaml", ".", "MapSlice", "{", "}", "\n", "if", "m", "==", "nil", "{", "return", "info", "\n", "}", "\n", "if", "len", "(", "m", ".", "Sche...
// ToRawInfo returns a description of ItemsItem suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "ItemsItem", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L7681-L7695
18,756
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *JsonReference) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // always include this required field. info = append(info, yaml.MapItem{Key: "$ref", Value: m.XRef}) if m.Description != "" { info = append(info, yaml.MapItem{Key: "description", Value: m.Description}) } re...
go
func (m *JsonReference) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // always include this required field. info = append(info, yaml.MapItem{Key: "$ref", Value: m.XRef}) if m.Description != "" { info = append(info, yaml.MapItem{Key: "description", Value: m.Description}) } re...
[ "func", "(", "m", "*", "JsonReference", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "info", ":=", "yaml", ".", "MapSlice", "{", "}", "\n", "if", "m", "==", "nil", "{", "return", "info", "\n", "}", "\n", "// always include this required field....
// ToRawInfo returns a description of JsonReference suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "JsonReference", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L7698-L7709
18,757
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *License) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // always include this required field. info = append(info, yaml.MapItem{Key: "name", Value: m.Name}) if m.Url != "" { info = append(info, yaml.MapItem{Key: "url", Value: m.Url}) } if m.VendorExtension != nil { ...
go
func (m *License) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // always include this required field. info = append(info, yaml.MapItem{Key: "name", Value: m.Name}) if m.Url != "" { info = append(info, yaml.MapItem{Key: "url", Value: m.Url}) } if m.VendorExtension != nil { ...
[ "func", "(", "m", "*", "License", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "info", ":=", "yaml", ".", "MapSlice", "{", "}", "\n", "if", "m", "==", "nil", "{", "return", "info", "\n", "}", "\n", "// always include this required field.", "...
// ToRawInfo returns a description of License suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "License", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L7712-L7729
18,758
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *NonBodyParameter) ToRawInfo() interface{} { // ONE OF WRAPPER // NonBodyParameter // {Name:headerParameterSubSchema Type:HeaderParameterSubSchema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetHeaderParameterSubSchema() if v0 != nil { return v0.ToRawInfo() ...
go
func (m *NonBodyParameter) ToRawInfo() interface{} { // ONE OF WRAPPER // NonBodyParameter // {Name:headerParameterSubSchema Type:HeaderParameterSubSchema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetHeaderParameterSubSchema() if v0 != nil { return v0.ToRawInfo() ...
[ "func", "(", "m", "*", "NonBodyParameter", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "// ONE OF WRAPPER", "// NonBodyParameter", "// {Name:headerParameterSubSchema Type:HeaderParameterSubSchema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Descriptio...
// ToRawInfo returns a description of NonBodyParameter suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "NonBodyParameter", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L7864-L7888
18,759
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *Oauth2AccessCodeSecurity) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // always include this required field. info = append(info, yaml.MapItem{Key: "type", Value: m.Type}) // always include this required field. info = append(info, yaml.MapItem{Key: "flow", Value: m.Flo...
go
func (m *Oauth2AccessCodeSecurity) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // always include this required field. info = append(info, yaml.MapItem{Key: "type", Value: m.Type}) // always include this required field. info = append(info, yaml.MapItem{Key: "flow", Value: m.Flo...
[ "func", "(", "m", "*", "Oauth2AccessCodeSecurity", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "info", ":=", "yaml", ".", "MapSlice", "{", "}", "\n", "if", "m", "==", "nil", "{", "return", "info", "\n", "}", "\n", "// always include this requ...
// ToRawInfo returns a description of Oauth2AccessCodeSecurity suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "Oauth2AccessCodeSecurity", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L7891-L7918
18,760
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *Oauth2Scopes) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // &{Name:additionalProperties Type:NamedString StringEnumValues:[] MapType:string Repeated:true Pattern: Implicit:true Description:} return info }
go
func (m *Oauth2Scopes) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } // &{Name:additionalProperties Type:NamedString StringEnumValues:[] MapType:string Repeated:true Pattern: Implicit:true Description:} return info }
[ "func", "(", "m", "*", "Oauth2Scopes", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "info", ":=", "yaml", ".", "MapSlice", "{", "}", "\n", "if", "m", "==", "nil", "{", "return", "info", "\n", "}", "\n", "// &{Name:additionalProperties Type:Nam...
// ToRawInfo returns a description of Oauth2Scopes suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "Oauth2Scopes", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L8005-L8012
18,761
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *ParametersItem) ToRawInfo() interface{} { // ONE OF WRAPPER // ParametersItem // {Name:parameter Type:Parameter StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetParameter() if v0 != nil { return v0.ToRawInfo() } // {Name:jsonReference Type:JsonReference Stri...
go
func (m *ParametersItem) ToRawInfo() interface{} { // ONE OF WRAPPER // ParametersItem // {Name:parameter Type:Parameter StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetParameter() if v0 != nil { return v0.ToRawInfo() } // {Name:jsonReference Type:JsonReference Stri...
[ "func", "(", "m", "*", "ParametersItem", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "// ONE OF WRAPPER", "// ParametersItem", "// {Name:parameter Type:Parameter StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}", "v0", ":=", "m", "."...
// ToRawInfo returns a description of ParametersItem suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "ParametersItem", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L8109-L8123
18,762
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *ResponseValue) ToRawInfo() interface{} { // ONE OF WRAPPER // ResponseValue // {Name:response Type:Response StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetResponse() if v0 != nil { return v0.ToRawInfo() } // {Name:jsonReference Type:JsonReference StringEnu...
go
func (m *ResponseValue) ToRawInfo() interface{} { // ONE OF WRAPPER // ResponseValue // {Name:response Type:Response StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetResponse() if v0 != nil { return v0.ToRawInfo() } // {Name:jsonReference Type:JsonReference StringEnu...
[ "func", "(", "m", "*", "ResponseValue", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "// ONE OF WRAPPER", "// ResponseValue", "// {Name:response Type:Response StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}", "v0", ":=", "m", ".", ...
// ToRawInfo returns a description of ResponseValue suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "ResponseValue", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L8505-L8519
18,763
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *SchemaItem) ToRawInfo() interface{} { // ONE OF WRAPPER // SchemaItem // {Name:schema Type:Schema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetSchema() if v0 != nil { return v0.ToRawInfo() } // {Name:fileSchema Type:FileSchema StringEnumValues:[] MapType...
go
func (m *SchemaItem) ToRawInfo() interface{} { // ONE OF WRAPPER // SchemaItem // {Name:schema Type:Schema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetSchema() if v0 != nil { return v0.ToRawInfo() } // {Name:fileSchema Type:FileSchema StringEnumValues:[] MapType...
[ "func", "(", "m", "*", "SchemaItem", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "// ONE OF WRAPPER", "// SchemaItem", "// {Name:schema Type:Schema StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:}", "v0", ":=", "m", ".", "GetSchema...
// ToRawInfo returns a description of SchemaItem suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "SchemaItem", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L8674-L8688
18,764
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *SecurityDefinitionsItem) ToRawInfo() interface{} { // ONE OF WRAPPER // SecurityDefinitionsItem // {Name:basicAuthenticationSecurity Type:BasicAuthenticationSecurity StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetBasicAuthenticationSecurity() if v0 != nil { ...
go
func (m *SecurityDefinitionsItem) ToRawInfo() interface{} { // ONE OF WRAPPER // SecurityDefinitionsItem // {Name:basicAuthenticationSecurity Type:BasicAuthenticationSecurity StringEnumValues:[] MapType: Repeated:false Pattern: Implicit:false Description:} v0 := m.GetBasicAuthenticationSecurity() if v0 != nil { ...
[ "func", "(", "m", "*", "SecurityDefinitionsItem", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "// ONE OF WRAPPER", "// SecurityDefinitionsItem", "// {Name:basicAuthenticationSecurity Type:BasicAuthenticationSecurity StringEnumValues:[] MapType: Repeated:false Pattern: Impli...
// ToRawInfo returns a description of SecurityDefinitionsItem suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "SecurityDefinitionsItem", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L8706-L8740
18,765
googleapis/gnostic
OpenAPIv2/OpenAPIv2.go
ToRawInfo
func (m *TypeItem) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } if len(m.Value) != 0 { info = append(info, yaml.MapItem{Key: "value", Value: m.Value}) } return info }
go
func (m *TypeItem) ToRawInfo() interface{} { info := yaml.MapSlice{} if m == nil { return info } if len(m.Value) != 0 { info = append(info, yaml.MapItem{Key: "value", Value: m.Value}) } return info }
[ "func", "(", "m", "*", "TypeItem", ")", "ToRawInfo", "(", ")", "interface", "{", "}", "{", "info", ":=", "yaml", ".", "MapSlice", "{", "}", "\n", "if", "m", "==", "nil", "{", "return", "info", "\n", "}", "\n", "if", "len", "(", "m", ".", "Value...
// ToRawInfo returns a description of TypeItem suitable for JSON or YAML export.
[ "ToRawInfo", "returns", "a", "description", "of", "TypeItem", "suitable", "for", "JSON", "or", "YAML", "export", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/OpenAPIv2/OpenAPIv2.go#L8787-L8796
18,766
googleapis/gnostic
surface/model_openapiv3.go
build
func (b *OpenAPI3Builder) build(document *openapiv3.Document) (err error) { // Collect service type descriptions from Components/Schemas. if document.Components != nil && document.Components.Schemas != nil { for _, pair := range document.Components.Schemas.AdditionalProperties { t, err := b.buildTypeFromSchemaOr...
go
func (b *OpenAPI3Builder) build(document *openapiv3.Document) (err error) { // Collect service type descriptions from Components/Schemas. if document.Components != nil && document.Components.Schemas != nil { for _, pair := range document.Components.Schemas.AdditionalProperties { t, err := b.buildTypeFromSchemaOr...
[ "func", "(", "b", "*", "OpenAPI3Builder", ")", "build", "(", "document", "*", "openapiv3", ".", "Document", ")", "(", "err", "error", ")", "{", "// Collect service type descriptions from Components/Schemas.", "if", "document", ".", "Components", "!=", "nil", "&&",...
// build builds an API service description, preprocessing its types and methods for code generation.
[ "build", "builds", "an", "API", "service", "description", "preprocessing", "its", "types", "and", "methods", "for", "code", "generation", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/surface/model_openapiv3.go#L53-L73
18,767
googleapis/gnostic
surface/model_openapiv3.go
buildTypeFromSchemaOrReference
func (b *OpenAPI3Builder) buildTypeFromSchemaOrReference( name string, schemaOrReference *openapiv3.SchemaOrReference) (t *Type, err error) { if schema := schemaOrReference.GetSchema(); schema != nil { t = &Type{} t.Name = name t.Description = "implements the service definition of " + name t.Fields = make([]...
go
func (b *OpenAPI3Builder) buildTypeFromSchemaOrReference( name string, schemaOrReference *openapiv3.SchemaOrReference) (t *Type, err error) { if schema := schemaOrReference.GetSchema(); schema != nil { t = &Type{} t.Name = name t.Description = "implements the service definition of " + name t.Fields = make([]...
[ "func", "(", "b", "*", "OpenAPI3Builder", ")", "buildTypeFromSchemaOrReference", "(", "name", "string", ",", "schemaOrReference", "*", "openapiv3", ".", "SchemaOrReference", ")", "(", "t", "*", "Type", ",", "err", "error", ")", "{", "if", "schema", ":=", "sc...
// buildTypeFromSchemaOrReference builds a service type description from a schema in the API description.
[ "buildTypeFromSchemaOrReference", "builds", "a", "service", "type", "description", "from", "a", "schema", "in", "the", "API", "description", "." ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/surface/model_openapiv3.go#L76-L111
18,768
googleapis/gnostic
surface/model_openapiv3.go
buildMethodFromPathItem
func (b *OpenAPI3Builder) buildMethodFromPathItem( path string, pathItem *openapiv3.PathItem) (err error) { for _, method := range []string{"GET", "PUT", "POST", "DELETE", "OPTIONS", "HEAD", "PATCH", "TRACE"} { var op *openapiv3.Operation switch method { case "GET": op = pathItem.Get case "PUT": op = p...
go
func (b *OpenAPI3Builder) buildMethodFromPathItem( path string, pathItem *openapiv3.PathItem) (err error) { for _, method := range []string{"GET", "PUT", "POST", "DELETE", "OPTIONS", "HEAD", "PATCH", "TRACE"} { var op *openapiv3.Operation switch method { case "GET": op = pathItem.Get case "PUT": op = p...
[ "func", "(", "b", "*", "OpenAPI3Builder", ")", "buildMethodFromPathItem", "(", "path", "string", ",", "pathItem", "*", "openapiv3", ".", "PathItem", ")", "(", "err", "error", ")", "{", "for", "_", ",", "method", ":=", "range", "[", "]", "string", "{", ...
// buildMethodFromOperation builds a service method description
[ "buildMethodFromOperation", "builds", "a", "service", "method", "description" ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/surface/model_openapiv3.go#L114-L153
18,769
googleapis/gnostic
surface/model_openapiv3.go
buildTypeFromParameters
func (b *OpenAPI3Builder) buildTypeFromParameters( name string, parameters []*openapiv3.ParameterOrReference, requestBody *openapiv3.RequestBodyOrReference) (typeName string, err error) { t := &Type{} t.Name = name + "Parameters" t.Description = t.Name + " holds parameters to " + name t.Kind = TypeKind_STRUCT t...
go
func (b *OpenAPI3Builder) buildTypeFromParameters( name string, parameters []*openapiv3.ParameterOrReference, requestBody *openapiv3.RequestBodyOrReference) (typeName string, err error) { t := &Type{} t.Name = name + "Parameters" t.Description = t.Name + " holds parameters to " + name t.Kind = TypeKind_STRUCT t...
[ "func", "(", "b", "*", "OpenAPI3Builder", ")", "buildTypeFromParameters", "(", "name", "string", ",", "parameters", "[", "]", "*", "openapiv3", ".", "ParameterOrReference", ",", "requestBody", "*", "openapiv3", ".", "RequestBodyOrReference", ")", "(", "typeName", ...
// buildTypeFromParameters builds a service type description from the parameters of an API method
[ "buildTypeFromParameters", "builds", "a", "service", "type", "description", "from", "the", "parameters", "of", "an", "API", "method" ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/surface/model_openapiv3.go#L156-L212
18,770
googleapis/gnostic
surface/model_openapiv3.go
buildTypeFromResponses
func (b *OpenAPI3Builder) buildTypeFromResponses( m *Method, name string, responses *openapiv3.Responses) (typeName string, err error) { t := &Type{} t.Name = name + "Responses" t.Description = t.Name + " holds responses of " + name t.Kind = TypeKind_STRUCT t.Fields = make([]*Field, 0) addResponse := func(nam...
go
func (b *OpenAPI3Builder) buildTypeFromResponses( m *Method, name string, responses *openapiv3.Responses) (typeName string, err error) { t := &Type{} t.Name = name + "Responses" t.Description = t.Name + " holds responses of " + name t.Kind = TypeKind_STRUCT t.Fields = make([]*Field, 0) addResponse := func(nam...
[ "func", "(", "b", "*", "OpenAPI3Builder", ")", "buildTypeFromResponses", "(", "m", "*", "Method", ",", "name", "string", ",", "responses", "*", "openapiv3", ".", "Responses", ")", "(", "typeName", "string", ",", "err", "error", ")", "{", "t", ":=", "&", ...
// buildTypeFromResponses builds a service type description from the responses of an API method
[ "buildTypeFromResponses", "builds", "a", "service", "type", "description", "from", "the", "responses", "of", "an", "API", "method" ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/surface/model_openapiv3.go#L215-L251
18,771
googleapis/gnostic
surface/model_openapiv3.go
typeForSchemaOrReference
func (b *OpenAPI3Builder) typeForSchemaOrReference(value *openapiv3.SchemaOrReference) (kind FieldKind, typeName, format string) { if value.GetSchema() != nil { return b.typeForSchema(value.GetSchema()) } if value.GetReference() != nil { return FieldKind_SCALAR, typeForRef(value.GetReference().XRef), "" } retu...
go
func (b *OpenAPI3Builder) typeForSchemaOrReference(value *openapiv3.SchemaOrReference) (kind FieldKind, typeName, format string) { if value.GetSchema() != nil { return b.typeForSchema(value.GetSchema()) } if value.GetReference() != nil { return FieldKind_SCALAR, typeForRef(value.GetReference().XRef), "" } retu...
[ "func", "(", "b", "*", "OpenAPI3Builder", ")", "typeForSchemaOrReference", "(", "value", "*", "openapiv3", ".", "SchemaOrReference", ")", "(", "kind", "FieldKind", ",", "typeName", ",", "format", "string", ")", "{", "if", "value", ".", "GetSchema", "(", ")",...
// typeForSchemaOrReference determines the language-specific type of a schema or reference
[ "typeForSchemaOrReference", "determines", "the", "language", "-", "specific", "type", "of", "a", "schema", "or", "reference" ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/surface/model_openapiv3.go#L254-L262
18,772
googleapis/gnostic
surface/model_openapiv3.go
typeForSchema
func (b *OpenAPI3Builder) typeForSchema(schema *openapiv3.Schema) (kind FieldKind, typeName, format string) { if schema.Type != "" { format := schema.Format switch schema.Type { case "string": return FieldKind_SCALAR, "string", format case "integer": return FieldKind_SCALAR, "integer", format case "num...
go
func (b *OpenAPI3Builder) typeForSchema(schema *openapiv3.Schema) (kind FieldKind, typeName, format string) { if schema.Type != "" { format := schema.Format switch schema.Type { case "string": return FieldKind_SCALAR, "string", format case "integer": return FieldKind_SCALAR, "integer", format case "num...
[ "func", "(", "b", "*", "OpenAPI3Builder", ")", "typeForSchema", "(", "schema", "*", "openapiv3", ".", "Schema", ")", "(", "kind", "FieldKind", ",", "typeName", ",", "format", "string", ")", "{", "if", "schema", ".", "Type", "!=", "\"", "\"", "{", "form...
// typeForSchema determines the language-specific type of a schema
[ "typeForSchema", "determines", "the", "language", "-", "specific", "type", "of", "a", "schema" ]
909070f02b666e4e9adf7eda93c304a8ba2a8063
https://github.com/googleapis/gnostic/blob/909070f02b666e4e9adf7eda93c304a8ba2a8063/surface/model_openapiv3.go#L265-L311
18,773
mafredri/cdp
protocol/domdebugger/domain.go
GetEventListeners
func (d *domainClient) GetEventListeners(ctx context.Context, args *GetEventListenersArgs) (reply *GetEventListenersReply, err error) { reply = new(GetEventListenersReply) if args != nil { err = rpcc.Invoke(ctx, "DOMDebugger.getEventListeners", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "DOMDebugger.ge...
go
func (d *domainClient) GetEventListeners(ctx context.Context, args *GetEventListenersArgs) (reply *GetEventListenersReply, err error) { reply = new(GetEventListenersReply) if args != nil { err = rpcc.Invoke(ctx, "DOMDebugger.getEventListeners", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "DOMDebugger.ge...
[ "func", "(", "d", "*", "domainClient", ")", "GetEventListeners", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GetEventListenersArgs", ")", "(", "reply", "*", "GetEventListenersReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "G...
// GetEventListeners invokes the DOMDebugger method. Returns event listeners // of the given object.
[ "GetEventListeners", "invokes", "the", "DOMDebugger", "method", ".", "Returns", "event", "listeners", "of", "the", "given", "object", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/domain.go#L29-L40
18,774
mafredri/cdp
protocol/headlessexperimental/domain.go
Disable
func (d *domainClient) Disable(ctx context.Context) (err error) { err = rpcc.Invoke(ctx, "HeadlessExperimental.disable", nil, nil, d.conn) if err != nil { err = &internal.OpError{Domain: "HeadlessExperimental", Op: "Disable", Err: err} } return }
go
func (d *domainClient) Disable(ctx context.Context) (err error) { err = rpcc.Invoke(ctx, "HeadlessExperimental.disable", nil, nil, d.conn) if err != nil { err = &internal.OpError{Domain: "HeadlessExperimental", Op: "Disable", Err: err} } return }
[ "func", "(", "d", "*", "domainClient", ")", "Disable", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "nil", ",", "nil", ",", "d", ".", "conn", ")"...
// Disable invokes the HeadlessExperimental method. Disables headless events // for the target.
[ "Disable", "invokes", "the", "HeadlessExperimental", "method", ".", "Disables", "headless", "events", "for", "the", "target", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/headlessexperimental/domain.go#L44-L50
18,775
mafredri/cdp
protocol/runtime/domain.go
AwaitPromise
func (d *domainClient) AwaitPromise(ctx context.Context, args *AwaitPromiseArgs) (reply *AwaitPromiseReply, err error) { reply = new(AwaitPromiseReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.awaitPromise", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.awaitPromise", nil, reply, d.conn) ...
go
func (d *domainClient) AwaitPromise(ctx context.Context, args *AwaitPromiseArgs) (reply *AwaitPromiseReply, err error) { reply = new(AwaitPromiseReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.awaitPromise", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.awaitPromise", nil, reply, d.conn) ...
[ "func", "(", "d", "*", "domainClient", ")", "AwaitPromise", "(", "ctx", "context", ".", "Context", ",", "args", "*", "AwaitPromiseArgs", ")", "(", "reply", "*", "AwaitPromiseReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "AwaitPromiseRepl...
// AwaitPromise invokes the Runtime method. Add handler to promise with given // promise object id.
[ "AwaitPromise", "invokes", "the", "Runtime", "method", ".", "Add", "handler", "to", "promise", "with", "given", "promise", "object", "id", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/domain.go#L35-L46
18,776
mafredri/cdp
protocol/runtime/domain.go
CallFunctionOn
func (d *domainClient) CallFunctionOn(ctx context.Context, args *CallFunctionOnArgs) (reply *CallFunctionOnReply, err error) { reply = new(CallFunctionOnReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.callFunctionOn", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.callFunctionOn", nil, rep...
go
func (d *domainClient) CallFunctionOn(ctx context.Context, args *CallFunctionOnArgs) (reply *CallFunctionOnReply, err error) { reply = new(CallFunctionOnReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.callFunctionOn", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.callFunctionOn", nil, rep...
[ "func", "(", "d", "*", "domainClient", ")", "CallFunctionOn", "(", "ctx", "context", ".", "Context", ",", "args", "*", "CallFunctionOnArgs", ")", "(", "reply", "*", "CallFunctionOnReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "CallFuncti...
// CallFunctionOn invokes the Runtime method. Calls function with given // declaration on the given object. Object group of the result is inherited // from the target object.
[ "CallFunctionOn", "invokes", "the", "Runtime", "method", ".", "Calls", "function", "with", "given", "declaration", "on", "the", "given", "object", ".", "Object", "group", "of", "the", "result", "is", "inherited", "from", "the", "target", "object", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/domain.go#L51-L62
18,777
mafredri/cdp
protocol/runtime/domain.go
CompileScript
func (d *domainClient) CompileScript(ctx context.Context, args *CompileScriptArgs) (reply *CompileScriptReply, err error) { reply = new(CompileScriptReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.compileScript", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.compileScript", nil, reply, d....
go
func (d *domainClient) CompileScript(ctx context.Context, args *CompileScriptArgs) (reply *CompileScriptReply, err error) { reply = new(CompileScriptReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.compileScript", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.compileScript", nil, reply, d....
[ "func", "(", "d", "*", "domainClient", ")", "CompileScript", "(", "ctx", "context", ".", "Context", ",", "args", "*", "CompileScriptArgs", ")", "(", "reply", "*", "CompileScriptReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "CompileScript...
// CompileScript invokes the Runtime method. Compiles expression.
[ "CompileScript", "invokes", "the", "Runtime", "method", ".", "Compiles", "expression", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/domain.go#L65-L76
18,778
mafredri/cdp
protocol/runtime/domain.go
Evaluate
func (d *domainClient) Evaluate(ctx context.Context, args *EvaluateArgs) (reply *EvaluateReply, err error) { reply = new(EvaluateReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.evaluate", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.evaluate", nil, reply, d.conn) } if err != nil { er...
go
func (d *domainClient) Evaluate(ctx context.Context, args *EvaluateArgs) (reply *EvaluateReply, err error) { reply = new(EvaluateReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.evaluate", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.evaluate", nil, reply, d.conn) } if err != nil { er...
[ "func", "(", "d", "*", "domainClient", ")", "Evaluate", "(", "ctx", "context", ".", "Context", ",", "args", "*", "EvaluateArgs", ")", "(", "reply", "*", "EvaluateReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "EvaluateReply", ")", "\n...
// Evaluate invokes the Runtime method. Evaluates expression on global object.
[ "Evaluate", "invokes", "the", "Runtime", "method", ".", "Evaluates", "expression", "on", "global", "object", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/domain.go#L111-L122
18,779
mafredri/cdp
protocol/runtime/domain.go
GetProperties
func (d *domainClient) GetProperties(ctx context.Context, args *GetPropertiesArgs) (reply *GetPropertiesReply, err error) { reply = new(GetPropertiesReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.getProperties", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.getProperties", nil, reply, d....
go
func (d *domainClient) GetProperties(ctx context.Context, args *GetPropertiesArgs) (reply *GetPropertiesReply, err error) { reply = new(GetPropertiesReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.getProperties", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.getProperties", nil, reply, d....
[ "func", "(", "d", "*", "domainClient", ")", "GetProperties", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GetPropertiesArgs", ")", "(", "reply", "*", "GetPropertiesReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "GetProperties...
// GetProperties invokes the Runtime method. Returns properties of a given // object. Object group of the result is inherited from the target object.
[ "GetProperties", "invokes", "the", "Runtime", "method", ".", "Returns", "properties", "of", "a", "given", "object", ".", "Object", "group", "of", "the", "result", "is", "inherited", "from", "the", "target", "object", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/domain.go#L148-L159
18,780
mafredri/cdp
protocol/runtime/domain.go
GlobalLexicalScopeNames
func (d *domainClient) GlobalLexicalScopeNames(ctx context.Context, args *GlobalLexicalScopeNamesArgs) (reply *GlobalLexicalScopeNamesReply, err error) { reply = new(GlobalLexicalScopeNamesReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.globalLexicalScopeNames", args, reply, d.conn) } else { err = rpcc.I...
go
func (d *domainClient) GlobalLexicalScopeNames(ctx context.Context, args *GlobalLexicalScopeNamesArgs) (reply *GlobalLexicalScopeNamesReply, err error) { reply = new(GlobalLexicalScopeNamesReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.globalLexicalScopeNames", args, reply, d.conn) } else { err = rpcc.I...
[ "func", "(", "d", "*", "domainClient", ")", "GlobalLexicalScopeNames", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GlobalLexicalScopeNamesArgs", ")", "(", "reply", "*", "GlobalLexicalScopeNamesReply", ",", "err", "error", ")", "{", "reply", "=", ...
// GlobalLexicalScopeNames invokes the Runtime method. Returns all let, const // and class variables from global scope.
[ "GlobalLexicalScopeNames", "invokes", "the", "Runtime", "method", ".", "Returns", "all", "let", "const", "and", "class", "variables", "from", "global", "scope", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/domain.go#L163-L174
18,781
mafredri/cdp
protocol/runtime/domain.go
QueryObjects
func (d *domainClient) QueryObjects(ctx context.Context, args *QueryObjectsArgs) (reply *QueryObjectsReply, err error) { reply = new(QueryObjectsReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.queryObjects", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.queryObjects", nil, reply, d.conn) ...
go
func (d *domainClient) QueryObjects(ctx context.Context, args *QueryObjectsArgs) (reply *QueryObjectsReply, err error) { reply = new(QueryObjectsReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.queryObjects", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.queryObjects", nil, reply, d.conn) ...
[ "func", "(", "d", "*", "domainClient", ")", "QueryObjects", "(", "ctx", "context", ".", "Context", ",", "args", "*", "QueryObjectsArgs", ")", "(", "reply", "*", "QueryObjectsReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "QueryObjectsRepl...
// QueryObjects invokes the Runtime method.
[ "QueryObjects", "invokes", "the", "Runtime", "method", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/domain.go#L177-L188
18,782
mafredri/cdp
protocol/runtime/domain.go
RunScript
func (d *domainClient) RunScript(ctx context.Context, args *RunScriptArgs) (reply *RunScriptReply, err error) { reply = new(RunScriptReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.runScript", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.runScript", nil, reply, d.conn) } if err != nil ...
go
func (d *domainClient) RunScript(ctx context.Context, args *RunScriptArgs) (reply *RunScriptReply, err error) { reply = new(RunScriptReply) if args != nil { err = rpcc.Invoke(ctx, "Runtime.runScript", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Runtime.runScript", nil, reply, d.conn) } if err != nil ...
[ "func", "(", "d", "*", "domainClient", ")", "RunScript", "(", "ctx", "context", ".", "Context", ",", "args", "*", "RunScriptArgs", ")", "(", "reply", "*", "RunScriptReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "RunScriptReply", ")", ...
// RunScript invokes the Runtime method. Runs script with given id in a given // context.
[ "RunScript", "invokes", "the", "Runtime", "method", ".", "Runs", "script", "with", "given", "id", "in", "a", "given", "context", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/domain.go#L230-L241
18,783
mafredri/cdp
protocol/animation/command.go
NewGetCurrentTimeArgs
func NewGetCurrentTimeArgs(id string) *GetCurrentTimeArgs { args := new(GetCurrentTimeArgs) args.ID = id return args }
go
func NewGetCurrentTimeArgs(id string) *GetCurrentTimeArgs { args := new(GetCurrentTimeArgs) args.ID = id return args }
[ "func", "NewGetCurrentTimeArgs", "(", "id", "string", ")", "*", "GetCurrentTimeArgs", "{", "args", ":=", "new", "(", "GetCurrentTimeArgs", ")", "\n", "args", ".", "ID", "=", "id", "\n", "return", "args", "\n", "}" ]
// NewGetCurrentTimeArgs initializes GetCurrentTimeArgs with the required arguments.
[ "NewGetCurrentTimeArgs", "initializes", "GetCurrentTimeArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/animation/command.go#L15-L19
18,784
mafredri/cdp
protocol/animation/command.go
NewReleaseAnimationsArgs
func NewReleaseAnimationsArgs(animations []string) *ReleaseAnimationsArgs { args := new(ReleaseAnimationsArgs) args.Animations = animations return args }
go
func NewReleaseAnimationsArgs(animations []string) *ReleaseAnimationsArgs { args := new(ReleaseAnimationsArgs) args.Animations = animations return args }
[ "func", "NewReleaseAnimationsArgs", "(", "animations", "[", "]", "string", ")", "*", "ReleaseAnimationsArgs", "{", "args", ":=", "new", "(", "ReleaseAnimationsArgs", ")", "\n", "args", ".", "Animations", "=", "animations", "\n", "return", "args", "\n", "}" ]
// NewReleaseAnimationsArgs initializes ReleaseAnimationsArgs with the required arguments.
[ "NewReleaseAnimationsArgs", "initializes", "ReleaseAnimationsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/animation/command.go#L37-L41
18,785
mafredri/cdp
protocol/animation/command.go
NewResolveAnimationArgs
func NewResolveAnimationArgs(animationID string) *ResolveAnimationArgs { args := new(ResolveAnimationArgs) args.AnimationID = animationID return args }
go
func NewResolveAnimationArgs(animationID string) *ResolveAnimationArgs { args := new(ResolveAnimationArgs) args.AnimationID = animationID return args }
[ "func", "NewResolveAnimationArgs", "(", "animationID", "string", ")", "*", "ResolveAnimationArgs", "{", "args", ":=", "new", "(", "ResolveAnimationArgs", ")", "\n", "args", ".", "AnimationID", "=", "animationID", "\n", "return", "args", "\n", "}" ]
// NewResolveAnimationArgs initializes ResolveAnimationArgs with the required arguments.
[ "NewResolveAnimationArgs", "initializes", "ResolveAnimationArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/animation/command.go#L49-L53
18,786
mafredri/cdp
protocol/animation/command.go
NewSeekAnimationsArgs
func NewSeekAnimationsArgs(animations []string, currentTime float64) *SeekAnimationsArgs { args := new(SeekAnimationsArgs) args.Animations = animations args.CurrentTime = currentTime return args }
go
func NewSeekAnimationsArgs(animations []string, currentTime float64) *SeekAnimationsArgs { args := new(SeekAnimationsArgs) args.Animations = animations args.CurrentTime = currentTime return args }
[ "func", "NewSeekAnimationsArgs", "(", "animations", "[", "]", "string", ",", "currentTime", "float64", ")", "*", "SeekAnimationsArgs", "{", "args", ":=", "new", "(", "SeekAnimationsArgs", ")", "\n", "args", ".", "Animations", "=", "animations", "\n", "args", "...
// NewSeekAnimationsArgs initializes SeekAnimationsArgs with the required arguments.
[ "NewSeekAnimationsArgs", "initializes", "SeekAnimationsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/animation/command.go#L67-L72
18,787
mafredri/cdp
protocol/animation/command.go
NewSetPausedArgs
func NewSetPausedArgs(animations []string, paused bool) *SetPausedArgs { args := new(SetPausedArgs) args.Animations = animations args.Paused = paused return args }
go
func NewSetPausedArgs(animations []string, paused bool) *SetPausedArgs { args := new(SetPausedArgs) args.Animations = animations args.Paused = paused return args }
[ "func", "NewSetPausedArgs", "(", "animations", "[", "]", "string", ",", "paused", "bool", ")", "*", "SetPausedArgs", "{", "args", ":=", "new", "(", "SetPausedArgs", ")", "\n", "args", ".", "Animations", "=", "animations", "\n", "args", ".", "Paused", "=", ...
// NewSetPausedArgs initializes SetPausedArgs with the required arguments.
[ "NewSetPausedArgs", "initializes", "SetPausedArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/animation/command.go#L81-L86
18,788
mafredri/cdp
protocol/animation/command.go
NewSetPlaybackRateArgs
func NewSetPlaybackRateArgs(playbackRate float64) *SetPlaybackRateArgs { args := new(SetPlaybackRateArgs) args.PlaybackRate = playbackRate return args }
go
func NewSetPlaybackRateArgs(playbackRate float64) *SetPlaybackRateArgs { args := new(SetPlaybackRateArgs) args.PlaybackRate = playbackRate return args }
[ "func", "NewSetPlaybackRateArgs", "(", "playbackRate", "float64", ")", "*", "SetPlaybackRateArgs", "{", "args", ":=", "new", "(", "SetPlaybackRateArgs", ")", "\n", "args", ".", "PlaybackRate", "=", "playbackRate", "\n", "return", "args", "\n", "}" ]
// NewSetPlaybackRateArgs initializes SetPlaybackRateArgs with the required arguments.
[ "NewSetPlaybackRateArgs", "initializes", "SetPlaybackRateArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/animation/command.go#L94-L98
18,789
mafredri/cdp
protocol/animation/command.go
NewSetTimingArgs
func NewSetTimingArgs(animationID string, duration float64, delay float64) *SetTimingArgs { args := new(SetTimingArgs) args.AnimationID = animationID args.Duration = duration args.Delay = delay return args }
go
func NewSetTimingArgs(animationID string, duration float64, delay float64) *SetTimingArgs { args := new(SetTimingArgs) args.AnimationID = animationID args.Duration = duration args.Delay = delay return args }
[ "func", "NewSetTimingArgs", "(", "animationID", "string", ",", "duration", "float64", ",", "delay", "float64", ")", "*", "SetTimingArgs", "{", "args", ":=", "new", "(", "SetTimingArgs", ")", "\n", "args", ".", "AnimationID", "=", "animationID", "\n", "args", ...
// NewSetTimingArgs initializes SetTimingArgs with the required arguments.
[ "NewSetTimingArgs", "initializes", "SetTimingArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/animation/command.go#L108-L114
18,790
mafredri/cdp
protocol/debugger/command.go
NewContinueToLocationArgs
func NewContinueToLocationArgs(location Location) *ContinueToLocationArgs { args := new(ContinueToLocationArgs) args.Location = location return args }
go
func NewContinueToLocationArgs(location Location) *ContinueToLocationArgs { args := new(ContinueToLocationArgs) args.Location = location return args }
[ "func", "NewContinueToLocationArgs", "(", "location", "Location", ")", "*", "ContinueToLocationArgs", "{", "args", ":=", "new", "(", "ContinueToLocationArgs", ")", "\n", "args", ".", "Location", "=", "location", "\n", "return", "args", "\n", "}" ]
// NewContinueToLocationArgs initializes ContinueToLocationArgs with the required arguments.
[ "NewContinueToLocationArgs", "initializes", "ContinueToLocationArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/command.go#L19-L23
18,791
mafredri/cdp
protocol/debugger/command.go
NewEvaluateOnCallFrameArgs
func NewEvaluateOnCallFrameArgs(callFrameID CallFrameID, expression string) *EvaluateOnCallFrameArgs { args := new(EvaluateOnCallFrameArgs) args.CallFrameID = callFrameID args.Expression = expression return args }
go
func NewEvaluateOnCallFrameArgs(callFrameID CallFrameID, expression string) *EvaluateOnCallFrameArgs { args := new(EvaluateOnCallFrameArgs) args.CallFrameID = callFrameID args.Expression = expression return args }
[ "func", "NewEvaluateOnCallFrameArgs", "(", "callFrameID", "CallFrameID", ",", "expression", "string", ")", "*", "EvaluateOnCallFrameArgs", "{", "args", ":=", "new", "(", "EvaluateOnCallFrameArgs", ")", "\n", "args", ".", "CallFrameID", "=", "callFrameID", "\n", "arg...
// NewEvaluateOnCallFrameArgs initializes EvaluateOnCallFrameArgs with the required arguments.
[ "NewEvaluateOnCallFrameArgs", "initializes", "EvaluateOnCallFrameArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/command.go#L90-L95
18,792
mafredri/cdp
protocol/debugger/command.go
SetIncludeCommandLineAPI
func (a *EvaluateOnCallFrameArgs) SetIncludeCommandLineAPI(includeCommandLineAPI bool) *EvaluateOnCallFrameArgs { a.IncludeCommandLineAPI = &includeCommandLineAPI return a }
go
func (a *EvaluateOnCallFrameArgs) SetIncludeCommandLineAPI(includeCommandLineAPI bool) *EvaluateOnCallFrameArgs { a.IncludeCommandLineAPI = &includeCommandLineAPI return a }
[ "func", "(", "a", "*", "EvaluateOnCallFrameArgs", ")", "SetIncludeCommandLineAPI", "(", "includeCommandLineAPI", "bool", ")", "*", "EvaluateOnCallFrameArgs", "{", "a", ".", "IncludeCommandLineAPI", "=", "&", "includeCommandLineAPI", "\n", "return", "a", "\n", "}" ]
// SetIncludeCommandLineAPI sets the IncludeCommandLineAPI optional argument. // Specifies whether command line API should be available to the // evaluated expression, defaults to false.
[ "SetIncludeCommandLineAPI", "sets", "the", "IncludeCommandLineAPI", "optional", "argument", ".", "Specifies", "whether", "command", "line", "API", "should", "be", "available", "to", "the", "evaluated", "expression", "defaults", "to", "false", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/command.go#L108-L111
18,793
mafredri/cdp
protocol/debugger/command.go
SetThrowOnSideEffect
func (a *EvaluateOnCallFrameArgs) SetThrowOnSideEffect(throwOnSideEffect bool) *EvaluateOnCallFrameArgs { a.ThrowOnSideEffect = &throwOnSideEffect return a }
go
func (a *EvaluateOnCallFrameArgs) SetThrowOnSideEffect(throwOnSideEffect bool) *EvaluateOnCallFrameArgs { a.ThrowOnSideEffect = &throwOnSideEffect return a }
[ "func", "(", "a", "*", "EvaluateOnCallFrameArgs", ")", "SetThrowOnSideEffect", "(", "throwOnSideEffect", "bool", ")", "*", "EvaluateOnCallFrameArgs", "{", "a", ".", "ThrowOnSideEffect", "=", "&", "throwOnSideEffect", "\n", "return", "a", "\n", "}" ]
// SetThrowOnSideEffect sets the ThrowOnSideEffect optional argument. // Whether to throw an exception if side effect cannot be ruled out // during evaluation.
[ "SetThrowOnSideEffect", "sets", "the", "ThrowOnSideEffect", "optional", "argument", ".", "Whether", "to", "throw", "an", "exception", "if", "side", "effect", "cannot", "be", "ruled", "out", "during", "evaluation", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/command.go#L141-L144
18,794
mafredri/cdp
protocol/debugger/command.go
NewGetPossibleBreakpointsArgs
func NewGetPossibleBreakpointsArgs(start Location) *GetPossibleBreakpointsArgs { args := new(GetPossibleBreakpointsArgs) args.Start = start return args }
go
func NewGetPossibleBreakpointsArgs(start Location) *GetPossibleBreakpointsArgs { args := new(GetPossibleBreakpointsArgs) args.Start = start return args }
[ "func", "NewGetPossibleBreakpointsArgs", "(", "start", "Location", ")", "*", "GetPossibleBreakpointsArgs", "{", "args", ":=", "new", "(", "GetPossibleBreakpointsArgs", ")", "\n", "args", ".", "Start", "=", "start", "\n", "return", "args", "\n", "}" ]
// NewGetPossibleBreakpointsArgs initializes GetPossibleBreakpointsArgs with the required arguments.
[ "NewGetPossibleBreakpointsArgs", "initializes", "GetPossibleBreakpointsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/command.go#L169-L173
18,795
mafredri/cdp
protocol/debugger/command.go
NewGetScriptSourceArgs
func NewGetScriptSourceArgs(scriptID runtime.ScriptID) *GetScriptSourceArgs { args := new(GetScriptSourceArgs) args.ScriptID = scriptID return args }
go
func NewGetScriptSourceArgs(scriptID runtime.ScriptID) *GetScriptSourceArgs { args := new(GetScriptSourceArgs) args.ScriptID = scriptID return args }
[ "func", "NewGetScriptSourceArgs", "(", "scriptID", "runtime", ".", "ScriptID", ")", "*", "GetScriptSourceArgs", "{", "args", ":=", "new", "(", "GetScriptSourceArgs", ")", "\n", "args", ".", "ScriptID", "=", "scriptID", "\n", "return", "args", "\n", "}" ]
// NewGetScriptSourceArgs initializes GetScriptSourceArgs with the required arguments.
[ "NewGetScriptSourceArgs", "initializes", "GetScriptSourceArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/command.go#L202-L206
18,796
mafredri/cdp
protocol/debugger/command.go
NewGetStackTraceArgs
func NewGetStackTraceArgs(stackTraceID runtime.StackTraceID) *GetStackTraceArgs { args := new(GetStackTraceArgs) args.StackTraceID = stackTraceID return args }
go
func NewGetStackTraceArgs(stackTraceID runtime.StackTraceID) *GetStackTraceArgs { args := new(GetStackTraceArgs) args.StackTraceID = stackTraceID return args }
[ "func", "NewGetStackTraceArgs", "(", "stackTraceID", "runtime", ".", "StackTraceID", ")", "*", "GetStackTraceArgs", "{", "args", ":=", "new", "(", "GetStackTraceArgs", ")", "\n", "args", ".", "StackTraceID", "=", "stackTraceID", "\n", "return", "args", "\n", "}"...
// NewGetStackTraceArgs initializes GetStackTraceArgs with the required arguments.
[ "NewGetStackTraceArgs", "initializes", "GetStackTraceArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/command.go#L219-L223
18,797
mafredri/cdp
protocol/debugger/command.go
NewPauseOnAsyncCallArgs
func NewPauseOnAsyncCallArgs(parentStackTraceID runtime.StackTraceID) *PauseOnAsyncCallArgs { args := new(PauseOnAsyncCallArgs) args.ParentStackTraceID = parentStackTraceID return args }
go
func NewPauseOnAsyncCallArgs(parentStackTraceID runtime.StackTraceID) *PauseOnAsyncCallArgs { args := new(PauseOnAsyncCallArgs) args.ParentStackTraceID = parentStackTraceID return args }
[ "func", "NewPauseOnAsyncCallArgs", "(", "parentStackTraceID", "runtime", ".", "StackTraceID", ")", "*", "PauseOnAsyncCallArgs", "{", "args", ":=", "new", "(", "PauseOnAsyncCallArgs", ")", "\n", "args", ".", "ParentStackTraceID", "=", "parentStackTraceID", "\n", "retur...
// NewPauseOnAsyncCallArgs initializes PauseOnAsyncCallArgs with the required arguments.
[ "NewPauseOnAsyncCallArgs", "initializes", "PauseOnAsyncCallArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/command.go#L236-L240
18,798
mafredri/cdp
protocol/debugger/command.go
NewRemoveBreakpointArgs
func NewRemoveBreakpointArgs(breakpointID BreakpointID) *RemoveBreakpointArgs { args := new(RemoveBreakpointArgs) args.BreakpointID = breakpointID return args }
go
func NewRemoveBreakpointArgs(breakpointID BreakpointID) *RemoveBreakpointArgs { args := new(RemoveBreakpointArgs) args.BreakpointID = breakpointID return args }
[ "func", "NewRemoveBreakpointArgs", "(", "breakpointID", "BreakpointID", ")", "*", "RemoveBreakpointArgs", "{", "args", ":=", "new", "(", "RemoveBreakpointArgs", ")", "\n", "args", ".", "BreakpointID", "=", "breakpointID", "\n", "return", "args", "\n", "}" ]
// NewRemoveBreakpointArgs initializes RemoveBreakpointArgs with the required arguments.
[ "NewRemoveBreakpointArgs", "initializes", "RemoveBreakpointArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/command.go#L248-L252
18,799
mafredri/cdp
protocol/debugger/command.go
NewRestartFrameArgs
func NewRestartFrameArgs(callFrameID CallFrameID) *RestartFrameArgs { args := new(RestartFrameArgs) args.CallFrameID = callFrameID return args }
go
func NewRestartFrameArgs(callFrameID CallFrameID) *RestartFrameArgs { args := new(RestartFrameArgs) args.CallFrameID = callFrameID return args }
[ "func", "NewRestartFrameArgs", "(", "callFrameID", "CallFrameID", ")", "*", "RestartFrameArgs", "{", "args", ":=", "new", "(", "RestartFrameArgs", ")", "\n", "args", ".", "CallFrameID", "=", "callFrameID", "\n", "return", "args", "\n", "}" ]
// NewRestartFrameArgs initializes RestartFrameArgs with the required arguments.
[ "NewRestartFrameArgs", "initializes", "RestartFrameArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/command.go#L260-L264