package apiconfig

import "github.com/grpc-ecosystem/grpc-gateway/v2/internal/descriptor/apiconfig"

Index

Variables

var File_internal_descriptor_apiconfig_apiconfig_proto protoreflect.FileDescriptor

Types

type GrpcAPIService

type GrpcAPIService struct {

	// Http Rule.
	Http *annotations.Http `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
	// contains filtered or unexported fields
}

GrpcAPIService represents a stripped down version of google.api.Service . Compare to https://github.com/googleapis/googleapis/blob/master/google/api/service.proto The original imports 23 other protobuf files we are not interested in. If a significant subset (>50%) of these start being reproduced in this file we should swap to using the full generated version instead.

For the purposes of the gateway generator we only consider a small subset of all available features google supports in their service descriptions. Thanks to backwards compatibility guarantees by protobuf it is safe for us to remove the other fields.

func (*GrpcAPIService) Descriptor

func (*GrpcAPIService) Descriptor() ([]byte, []int)

Deprecated: Use GrpcAPIService.ProtoReflect.Descriptor instead.

func (*GrpcAPIService) GetHttp

func (x *GrpcAPIService) GetHttp() *annotations.Http

func (*GrpcAPIService) ProtoMessage

func (*GrpcAPIService) ProtoMessage()

func (*GrpcAPIService) ProtoReflect

func (x *GrpcAPIService) ProtoReflect() protoreflect.Message

func (*GrpcAPIService) Reset

func (x *GrpcAPIService) Reset()

func (*GrpcAPIService) String

func (x *GrpcAPIService) String() string

Source Files

apiconfig.pb.go

Version
v2.26.1 (latest)
Published
Feb 7, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
6 days ago

Tools for package owners.