Skip to content

Commit 4931d1b

Browse files
Google APIscopybara-github
authored andcommitted
feat!: Update LRO metadata type to google.cloud.common.OperationMetadata
BREAKING CHANGE PiperOrigin-RevId: 520405218
1 parent 6b56636 commit 4931d1b

3 files changed

Lines changed: 15 additions & 32 deletions

File tree

google/cloud/video/stitcher/v1/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ proto_library(
3636
"//google/api:client_proto",
3737
"//google/api:field_behavior_proto",
3838
"//google/api:resource_proto",
39+
"//google/cloud/common:common_proto",
3940
"//google/longrunning:operations_proto",
4041
"@com_google_protobuf//:duration_proto",
4142
"@com_google_protobuf//:empty_proto",
4243
"@com_google_protobuf//:field_mask_proto",
4344
"@com_google_protobuf//:struct_proto",
44-
"@com_google_protobuf//:timestamp_proto",
4545
],
4646
)
4747

@@ -90,6 +90,7 @@ java_gapic_library(
9090
deps = [
9191
":stitcher_java_proto",
9292
"//google/api:api_java_proto",
93+
"//google/cloud/common:common_java_proto",
9394
],
9495
)
9596

@@ -132,6 +133,7 @@ go_proto_library(
132133
protos = [":stitcher_proto"],
133134
deps = [
134135
"//google/api:annotations_go_proto",
136+
"//google/cloud/common:common_go_proto",
135137
"//google/longrunning:longrunning_go_proto",
136138
],
137139
)
@@ -148,6 +150,7 @@ go_gapic_library(
148150
transport = "grpc",
149151
deps = [
150152
":stitcher_go_proto",
153+
"//google/cloud/common:common_go_proto",
151154
"//google/longrunning:longrunning_go_proto",
152155
"@com_google_cloud_go_longrunning//:go_default_library",
153156
"@com_google_cloud_go_longrunning//autogen:go_default_library",
@@ -192,6 +195,7 @@ py_gapic_library(
192195
service_yaml = "videostitcher_v1.yaml",
193196
transport = "grpc",
194197
deps = [
198+
"//google/cloud/common:common_py_proto",
195199
],
196200
)
197201

@@ -285,6 +289,7 @@ nodejs_gapic_assembly_pkg(
285289
deps = [
286290
":stitcher_nodejs_gapic",
287291
":stitcher_proto",
292+
"//google/cloud/common:common_proto",
288293
],
289294
)
290295

google/cloud/video/stitcher/v1/video_stitcher_service.proto

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import "google/api/annotations.proto";
2020
import "google/api/client.proto";
2121
import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
23+
import "google/cloud/common/operation_metadata.proto";
2324
import "google/cloud/video/stitcher/v1/ad_tag_details.proto";
2425
import "google/cloud/video/stitcher/v1/cdn_keys.proto";
2526
import "google/cloud/video/stitcher/v1/live_configs.proto";
@@ -29,7 +30,6 @@ import "google/cloud/video/stitcher/v1/stitch_details.proto";
2930
import "google/longrunning/operations.proto";
3031
import "google/protobuf/empty.proto";
3132
import "google/protobuf/field_mask.proto";
32-
import "google/protobuf/timestamp.proto";
3333

3434
option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb";
3535
option java_multiple_files = true;
@@ -55,7 +55,7 @@ service VideoStitcherService {
5555
option (google.api.method_signature) = "parent,cdn_key,cdn_key_id";
5656
option (google.longrunning.operation_info) = {
5757
response_type: "CdnKey"
58-
metadata_type: "OperationMetadata"
58+
metadata_type: "google.cloud.common.OperationMetadata"
5959
};
6060
}
6161

@@ -83,7 +83,7 @@ service VideoStitcherService {
8383
option (google.api.method_signature) = "name";
8484
option (google.longrunning.operation_info) = {
8585
response_type: "google.protobuf.Empty"
86-
metadata_type: "OperationMetadata"
86+
metadata_type: "google.cloud.common.OperationMetadata"
8787
};
8888
}
8989

@@ -97,7 +97,7 @@ service VideoStitcherService {
9797
option (google.api.method_signature) = "cdn_key,update_mask";
9898
option (google.longrunning.operation_info) = {
9999
response_type: "CdnKey"
100-
metadata_type: "OperationMetadata"
100+
metadata_type: "google.cloud.common.OperationMetadata"
101101
};
102102
}
103103

@@ -181,7 +181,7 @@ service VideoStitcherService {
181181
option (google.api.method_signature) = "parent,slate,slate_id";
182182
option (google.longrunning.operation_info) = {
183183
response_type: "Slate"
184-
metadata_type: "OperationMetadata"
184+
metadata_type: "google.cloud.common.OperationMetadata"
185185
};
186186
}
187187

@@ -210,7 +210,7 @@ service VideoStitcherService {
210210
option (google.api.method_signature) = "slate,update_mask";
211211
option (google.longrunning.operation_info) = {
212212
response_type: "Slate"
213-
metadata_type: "OperationMetadata"
213+
metadata_type: "google.cloud.common.OperationMetadata"
214214
};
215215
}
216216

@@ -222,7 +222,7 @@ service VideoStitcherService {
222222
option (google.api.method_signature) = "name";
223223
option (google.longrunning.operation_info) = {
224224
response_type: "google.protobuf.Empty"
225-
metadata_type: "OperationMetadata"
225+
metadata_type: "google.cloud.common.OperationMetadata"
226226
};
227227
}
228228

@@ -254,7 +254,7 @@ service VideoStitcherService {
254254
option (google.api.method_signature) = "parent,live_config,live_config_id";
255255
option (google.longrunning.operation_info) = {
256256
response_type: "LiveConfig"
257-
metadata_type: "OperationMetadata"
257+
metadata_type: "google.cloud.common.OperationMetadata"
258258
};
259259
}
260260

@@ -286,7 +286,7 @@ service VideoStitcherService {
286286
option (google.api.method_signature) = "name";
287287
option (google.longrunning.operation_info) = {
288288
response_type: "google.protobuf.Empty"
289-
metadata_type: "OperationMetadata"
289+
metadata_type: "google.cloud.common.OperationMetadata"
290290
};
291291
}
292292
}
@@ -763,18 +763,3 @@ message DeleteLiveConfigRequest {
763763
}
764764
];
765765
}
766-
767-
// Represents the metadata of the long-running operation.
768-
message OperationMetadata {
769-
// The time the operation was created.
770-
google.protobuf.Timestamp create_time = 1;
771-
772-
// The time the operation finished running.
773-
google.protobuf.Timestamp end_time = 2;
774-
775-
// Server-defined resource path for the target of the operation.
776-
string target = 3;
777-
778-
// Name of the verb executed by the operation.
779-
string verb = 4;
780-
}

google/cloud/video/stitcher/v1/videostitcher_v1.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ apis:
77
- name: google.cloud.video.stitcher.v1.VideoStitcherService
88
- name: google.longrunning.Operations
99

10-
documentation:
11-
rules:
12-
- selector: google.longrunning.Operations.ListOperations
13-
description: |-
14-
Lists operations that match the specified filter in the request. If
15-
the server doesn't support this method, it returns `UNIMPLEMENTED`.
16-
1710
backend:
1811
rules:
1912
- selector: 'google.cloud.video.stitcher.v1.VideoStitcherService.*'

0 commit comments

Comments
 (0)