tree: 5e2776344231ee2fd8f43f6f24ff1c40a1acb59f [path history] [tgz]
  1. custom_error.pb.go
  2. custom_error.proto
  3. error.pb.go
  4. error.proto
  5. README.md
v2/apierror/internal/proto/README.md

HTTP JSON Error Schema

The error.proto represents the HTTP-JSON schema used by Google APIs to convey error payloads as described by https://cloud.google.com/apis/design/errors#http_mapping. This package is for internal parsing logic only and should not be used in any other context.

Regeneration

To regenerate the protobuf Go code you will need the following:

From this directory run the following command:

protoc -I $GOOGLEAPIS -I. --go_out=. --go_opt=module=github.com/googleapis/gax-go/v2/apierror/internal/proto error.proto
goimports -w .

Note: the module plugin option ensures the generated code is placed in this directory, and not in several nested directories defined by go_package option.