Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/googleapis/gax-go/v2

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/googleapis/gax-go/v2

  • v2.14.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

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:

  • A local copy of googleapis, the absolute path to which should be exported to the environment variable GOOGLEAPIS
  • The protobuf compiler protoc
  • The Go protobuf plugin
  • The goimports tool

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.

FAQs

Package last updated on 13 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc