mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-11 16:14:05 -08:00
375ad1185c
* *: bump gRPC dependencies This change updates the gRPC dependencies to more recent versions: * github.com/gogo/protobuf => v1.2.0 * github.com/grpc-ecosystem/grpc-gateway => v1.6.3 * google.golang.org/grpc => v1.17.0 In addition scripts/genproto.sh leverages Go modules information instead of hardcoding SHA1 commits. This ensures that the code is generated from the exact same sources. Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Run 'make proto' in CI Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Revert tabs -> spaces change Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Fix 'make proto' step Signed-off-by: Simon Pasquier <spasquie@redhat.com> * 'go get' grpc/protobuf dependencies Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Prepopulate cache with go mod download Signed-off-by: Simon Pasquier <spasquie@redhat.com>
45 lines
1.7 KiB
Protocol Buffer
45 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package grpc.gateway.protoc_gen_swagger.options;
|
|
|
|
option go_package = "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options";
|
|
|
|
import "protoc-gen-swagger/options/openapiv2.proto";
|
|
import "google/protobuf/descriptor.proto";
|
|
|
|
extend google.protobuf.FileOptions {
|
|
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
|
|
//
|
|
// All IDs are the same, as assigned. It is okay that they are the same, as they extend
|
|
// different descriptor messages.
|
|
Swagger openapiv2_swagger = 1042;
|
|
}
|
|
extend google.protobuf.MethodOptions {
|
|
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
|
|
//
|
|
// All IDs are the same, as assigned. It is okay that they are the same, as they extend
|
|
// different descriptor messages.
|
|
Operation openapiv2_operation = 1042;
|
|
}
|
|
extend google.protobuf.MessageOptions {
|
|
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
|
|
//
|
|
// All IDs are the same, as assigned. It is okay that they are the same, as they extend
|
|
// different descriptor messages.
|
|
Schema openapiv2_schema = 1042;
|
|
}
|
|
extend google.protobuf.ServiceOptions {
|
|
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
|
|
//
|
|
// All IDs are the same, as assigned. It is okay that they are the same, as they extend
|
|
// different descriptor messages.
|
|
Tag openapiv2_tag = 1042;
|
|
}
|
|
extend google.protobuf.FieldOptions {
|
|
// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
|
|
//
|
|
// All IDs are the same, as assigned. It is okay that they are the same, as they extend
|
|
// different descriptor messages.
|
|
JSONSchema openapiv2_field = 1042;
|
|
}
|