MCPcopy Create free account
hub / github.com/bufbuild/buf / WithNoReparse

Function WithNoReparse

private/bufpkg/bufimage/bufimage.go:453–457  ·  view source on GitHub ↗

WithNoReparse instructs NewImageForProto to skip the reparse step. The reparse step is usually needed when unmarshalling the image from bytes. It reconstitutes custom options, from unrecognized bytes to known extension fields.

()

Source from the content-addressed store, hash-verified

451// step is usually needed when unmarshalling the image from bytes. It reconstitutes
452// custom options, from unrecognized bytes to known extension fields.
453func WithNoReparse() NewImageForProtoOption {
454 return func(options *newImageForProtoOptions) {
455 options.noReparse = true
456 }
457}
458
459// WithUnusedImportsComputation instructs NewImageForProto to compute unused imports
460// for the files. These are usually computed by the compiler and stored in the image.

Callers 1

getImageForMessageRefMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…