Skip to content

Commit ed78055

Browse files
Google APIscopybara-github
authored andcommitted
feat: .NET library settings (for generator behavior tweaks)
docs: separate paragraphs in linear/exponential distributions PiperOrigin-RevId: 520041337
1 parent 0fac9e8 commit ed78055

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

google/api/client.proto

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,36 @@ message NodeSettings {
257257
message DotnetSettings {
258258
// Some settings.
259259
CommonLanguageSettings common = 1;
260+
261+
// Map from original service names to renamed versions.
262+
// This is used when the default generated types
263+
// would cause a naming conflict. (Neither name is
264+
// fully-qualified.)
265+
// Example: Subscriber to SubscriberServiceApi.
266+
map<string, string> renamed_services = 2;
267+
268+
// Map from full resource types to the effective short name
269+
// for the resource. This is used when otherwise resource
270+
// named from different services would cause naming collisions.
271+
// Example entry:
272+
// "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
273+
map<string, string> renamed_resources = 3;
274+
275+
// List of full resource types to ignore during generation.
276+
// This is typically used for API-specific Location resources,
277+
// which should be handled by the generator as if they were actually
278+
// the common Location resources.
279+
// Example entry: "documentai.googleapis.com/Location"
280+
repeated string ignored_resources = 4;
281+
282+
// Namespaces which must be aliased in snippets due to
283+
// a known (but non-generator-predictable) naming collision
284+
repeated string forced_namespace_aliases = 5;
285+
286+
// Method signatures (in the form "service.method(signature)")
287+
// which are provided separately, so shouldn't be generated.
288+
// Snippets *calling* these methods are still generated, however.
289+
repeated string handwritten_signatures = 6;
260290
}
261291

262292
// Settings for Ruby client libraries.

google/api/distribution.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ message Distribution {
7373
// following boundaries:
7474
//
7575
// Upper bound (0 <= i < N-1): offset + (width * i).
76+
//
7677
// Lower bound (1 <= i < N): offset + (width * (i - 1)).
7778
message Linear {
7879
// Must be greater than 0.
@@ -93,6 +94,7 @@ message Distribution {
9394
// following boundaries:
9495
//
9596
// Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
97+
//
9698
// Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
9799
message Exponential {
98100
// Must be greater than 0.

0 commit comments

Comments
 (0)