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.

opentelemetry-stackdriver/proto/google/devtools/cloudtrace/v2/tracing.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/logging/type/http_request.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/logging/type/log_severity.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/logging/v2/log_entry.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/logging/v2/logging.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/logging/v2/logging_config.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/rpc/status.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/src/proto/api.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,12 @@ pub mod python_settings {
618618
/// packages.
619619
#[prost(bool, tag = "2")]
620620
pub protobuf_pythonic_types_enabled: bool,
621+
/// Disables generation of an unversioned Python package for this client
622+
/// library. This means that the module names will need to be versioned in
623+
/// import statements. For example `import google.cloud.library_v2` instead
624+
/// of `import google.cloud.library`.
625+
#[prost(bool, tag = "3")]
626+
pub unversioned_package_disabled: bool,
621627
}
622628
}
623629
/// Settings for Node client libraries.
@@ -679,6 +685,17 @@ pub struct GoSettings {
679685
/// Some settings.
680686
#[prost(message, optional, tag = "1")]
681687
pub common: ::core::option::Option<CommonLanguageSettings>,
688+
/// Map of service names to renamed services. Keys are the package relative
689+
/// service names and values are the name to be used for the service client
690+
/// and call options.
691+
///
692+
/// publishing:
693+
/// go_settings:
694+
/// renamed_services:
695+
/// Publisher: TopicAdmin
696+
#[prost(map = "string, string", tag = "2")]
697+
pub renamed_services:
698+
::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
682699
}
683700
/// Describes the generator configuration for a method.
684701
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -760,6 +777,14 @@ pub struct SelectiveGapicGeneration {
760777
/// on public client surfaces.
761778
#[prost(string, repeated, tag = "1")]
762779
pub methods: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
780+
/// Setting this to true indicates to the client generators that methods
781+
/// that would be excluded from the generation should instead be generated
782+
/// in a way that indicates these methods should not be consumed by
783+
/// end users. How this is expressed is up to individual language
784+
/// implementations to decide. Some examples may be: added annotations,
785+
/// obfuscated identifiers, or other language idiomatic patterns.
786+
#[prost(bool, tag = "2")]
787+
pub generate_omitted_as_internal: bool,
763788
}
764789
/// The organization for which the client libraries are being published.
765790
/// Affects the url where generated docs are published, etc.

0 commit comments

Comments
 (0)