Skip to content

Commit dcd99fd

Browse files
Google APIscopybara-github
authored andcommitted
chore: update Go import paths to match open source
chore: update gapic-generator-go version to 0.35.2 PiperOrigin-RevId: 516528222
1 parent 0f334db commit dcd99fd

7 files changed

Lines changed: 16 additions & 18 deletions

File tree

WORKSPACE

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,7 @@ local_repository(
163163
# types e.g. longrunningpb, we must define our own version of longrunning here.
164164
load("@bazel_gazelle//:deps.bzl", "go_repository")
165165

166-
go_repository(
167-
name = "com_google_cloud_go_longrunning",
168-
importpath = "cloud.google.com/go/longrunning",
169-
sum = "h1:y50CXG4j0+qvEukslYFBCrzaXX0qpFbBzc3PchSu/LE=",
170-
version = "v0.1.1",
171-
)
172-
173-
_gapic_generator_go_version = "0.34.0"
166+
_gapic_generator_go_version = "0.35.2"
174167

175168
http_archive(
176169
name = "com_googleapis_gapic_generator_go",

google/iam/v1/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ java_gapic_assembly_gradle_pkg(
9898
go_proto_library(
9999
name = "iam_go_proto",
100100
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
101-
importpath = "google.golang.org/genproto/googleapis/iam/v1",
101+
importpath = "cloud.google.com/go/iam/apiv1/iampb",
102102
protos = [
103103
":iam_policy_proto",
104104
":options_proto",

google/iam/v1/iam_policy.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto";
2626

2727
option cc_enable_arenas = true;
2828
option csharp_namespace = "Google.Cloud.Iam.V1";
29-
option go_package = "google.golang.org/genproto/googleapis/iam/v1;iam";
29+
option go_package = "cloud.google.com/go/iam/apiv1/iampb;iampb";
3030
option java_multiple_files = true;
3131
option java_outer_classname = "IamPolicyProto";
3232
option java_package = "com.google.iam.v1";

google/iam/v1/options.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package google.iam.v1;
1818

1919
option cc_enable_arenas = true;
2020
option csharp_namespace = "Google.Cloud.Iam.V1";
21-
option go_package = "google.golang.org/genproto/googleapis/iam/v1;iam";
21+
option go_package = "cloud.google.com/go/iam/apiv1/iampb;iampb";
2222
option java_multiple_files = true;
2323
option java_outer_classname = "OptionsProto";
2424
option java_package = "com.google.iam.v1";

google/iam/v1/policy.proto

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import "google/type/expr.proto";
2020

2121
option cc_enable_arenas = true;
2222
option csharp_namespace = "Google.Cloud.Iam.V1";
23-
option go_package = "google.golang.org/genproto/googleapis/iam/v1;iam";
23+
option go_package = "cloud.google.com/go/iam/apiv1/iampb;iampb";
2424
option java_multiple_files = true;
2525
option java_outer_classname = "PolicyProto";
2626
option java_package = "com.google.iam.v1";
@@ -41,7 +41,8 @@ option php_namespace = "Google\\Cloud\\Iam\\V1";
4141
// only if the expression evaluates to `true`. A condition can add constraints
4242
// based on attributes of the request, the resource, or both. To learn which
4343
// resources support conditions in their IAM policies, see the
44-
// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
44+
// [IAM
45+
// documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
4546
//
4647
// **JSON example:**
4748
//
@@ -64,7 +65,8 @@ option php_namespace = "Google\\Cloud\\Iam\\V1";
6465
// "condition": {
6566
// "title": "expirable access",
6667
// "description": "Does not grant access after Sep 2020",
67-
// "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
68+
// "expression": "request.time <
69+
// timestamp('2020-10-01T00:00:00.000Z')",
6870
// }
6971
// }
7072
// ],
@@ -117,7 +119,8 @@ message Policy {
117119
// specify any valid version or leave the field unset.
118120
//
119121
// To learn which resources support conditions in their IAM policies, see the
120-
// [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
122+
// [IAM
123+
// documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
121124
int32 version = 1;
122125

123126
// Associates a list of `members`, or principals, with a `role`. Optionally,
@@ -319,7 +322,8 @@ message AuditLogConfig {
319322

320323
// Specifies the identities that do not cause logging for this type of
321324
// permission.
322-
// Follows the same format of [Binding.members][google.iam.v1.Binding.members].
325+
// Follows the same format of
326+
// [Binding.members][google.iam.v1.Binding.members].
323327
repeated string exempted_members = 2;
324328
}
325329

google/longrunning/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ load(
7474
go_proto_library(
7575
name = "longrunning_go_proto",
7676
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
77-
importpath = "google.golang.org/genproto/googleapis/longrunning",
77+
importpath = "cloud.google.com/go/longrunning/autogen/longrunningpb",
7878
protos = [":operations_proto"],
7979
visibility = ["//visibility:public"],
8080
deps = [
@@ -88,6 +88,7 @@ go_gapic_library(
8888
srcs = [":longrunning_proto_with_info"],
8989
grpc_service_config = "longrunning_grpc_service_config.json",
9090
importpath = "cloud.google.com/go/longrunning/autogen;longrunning",
91+
release_level = "ga",
9192
rest_numeric_enums = False,
9293
service_yaml = "longrunning.yaml",
9394
transport = "grpc+rest",

google/longrunning/operations.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import "google/protobuf/descriptor.proto";
2626

2727
option cc_enable_arenas = true;
2828
option csharp_namespace = "Google.LongRunning";
29-
option go_package = "google.golang.org/genproto/googleapis/longrunning;longrunning";
29+
option go_package = "cloud.google.com/go/longrunning/autogen/longrunningpb;longrunningpb";
3030
option java_multiple_files = true;
3131
option java_outer_classname = "OperationsProto";
3232
option java_package = "com.google.longrunning";

0 commit comments

Comments
 (0)