Skip to content

Commit 7999eb5

Browse files
authored
feat: update gRPC schemas for Stackdriver (#208)
1 parent e1ab20f commit 7999eb5

File tree

18 files changed

+67
-20
lines changed

18 files changed

+67
-20
lines changed

opentelemetry-stackdriver/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## vNext
44

5+
- Update gRPC schemas
6+
57
### Changed
68

79
## v0.25.0

opentelemetry-stackdriver/proto/google/api/annotations.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

opentelemetry-stackdriver/proto/google/api/client.proto

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -281,6 +281,12 @@ message PythonSettings {
281281
// enabled by default 1 month after launching the feature in preview
282282
// packages.
283283
bool protobuf_pythonic_types_enabled = 2;
284+
285+
// Disables generation of an unversioned Python package for this client
286+
// library. This means that the module names will need to be versioned in
287+
// import statements. For example `import google.cloud.library_v2` instead
288+
// of `import google.cloud.library`.
289+
bool unversioned_package_disabled = 3;
284290
}
285291

286292
// Some settings.
@@ -342,6 +348,16 @@ message RubySettings {
342348
message GoSettings {
343349
// Some settings.
344350
CommonLanguageSettings common = 1;
351+
352+
// Map of service names to renamed services. Keys are the package relative
353+
// service names and values are the name to be used for the service client
354+
// and call options.
355+
//
356+
// publishing:
357+
// go_settings:
358+
// renamed_services:
359+
// Publisher: TopicAdmin
360+
map<string, string> renamed_services = 2;
345361
}
346362

347363
// Describes the generator configuration for a method.
@@ -459,4 +475,12 @@ message SelectiveGapicGeneration {
459475
// An allowlist of the fully qualified names of RPCs that should be included
460476
// on public client surfaces.
461477
repeated string methods = 1;
478+
479+
// Setting this to true indicates to the client generators that methods
480+
// that would be excluded from the generation should instead be generated
481+
// in a way that indicates these methods should not be consumed by
482+
// end users. How this is expressed is up to individual language
483+
// implementations to decide. Some examples may be: added annotations,
484+
// obfuscated identifiers, or other language idiomatic patterns.
485+
bool generate_omitted_as_internal = 2;
462486
}

opentelemetry-stackdriver/proto/google/api/field_behavior.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

opentelemetry-stackdriver/proto/google/api/http.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@ syntax = "proto3";
1616

1717
package google.api;
1818

19-
option cc_enable_arenas = true;
2019
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
2120
option java_multiple_files = true;
2221
option java_outer_classname = "HttpProto";

opentelemetry-stackdriver/proto/google/api/label.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@ syntax = "proto3";
1616

1717
package google.api;
1818

19-
option cc_enable_arenas = true;
2019
option go_package = "google.golang.org/genproto/googleapis/api/label;label";
2120
option java_multiple_files = true;
2221
option java_outer_classname = "LabelProto";

opentelemetry-stackdriver/proto/google/api/launch_stage.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

opentelemetry-stackdriver/proto/google/api/monitored_resource.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -20,7 +20,6 @@ import "google/api/label.proto";
2020
import "google/api/launch_stage.proto";
2121
import "google/protobuf/struct.proto";
2222

23-
option cc_enable_arenas = true;
2423
option go_package = "google.golang.org/genproto/googleapis/api/monitoredres;monitoredres";
2524
option java_multiple_files = true;
2625
option java_outer_classname = "MonitoredResourceProto";

opentelemetry-stackdriver/proto/google/api/resource.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@ package google.api;
1818

1919
import "google/protobuf/descriptor.proto";
2020

21-
option cc_enable_arenas = true;
2221
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
2322
option java_multiple_files = true;
2423
option java_outer_classname = "ResourceProto";

opentelemetry-stackdriver/proto/google/devtools/cloudtrace/v2/trace.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)