Documentation
¶
Overview ¶
Package bazel parses BUILD.bazel files to extract GAPIC configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// DIREGAPIC indicates whether DIREGAPIC (Discovery REST GAPICs) is used.
DIREGAPIC bool
// GAPICImportPath is the import path for the GAPIC library.
GAPICImportPath string
// GRPCServiceConfig is the gRPC service config JSON file.
GRPCServiceConfig string
// HasGAPIC indicates whether the GAPIC generator should be run.
HasGAPIC bool
// HasGoGRPC indicates whether go_grpc_library is used.
//
// TODO(https://github.com/googleapis/librarian/issues/1021): Remove this field once
// the googleapis migration from go_proto_library to go_grpc_library is complete.
HasGoGRPC bool
// HasLegacyGRPC indicates whether go_proto_library uses the legacy gRPC compiler.
HasLegacyGRPC bool
// Metadata indicates whether gapic_metadata.json should be generated.
Metadata bool
// ReleaseLevel is the API maturity level (e.g., "beta", "ga").
ReleaseLevel string
// RESTNumericEnums indicates whether numeric enums are supported in REST clients.
RESTNumericEnums bool
// ServiceYAML is the service configuration file.
ServiceYAML string
// Transport specifies the transport protocol (e.g., "grpc", "rest", "grpc+rest").
Transport string
}
Config holds configuration extracted from googleapis BUILD.bazel files.
Click to show internal directories.
Click to hide internal directories.