Skip to content

Commit cf01552

Browse files
Google APIscopybara-github
authored andcommitted
fix!: Roll back the changes that update of LRO metadata type to google.cloud.common.OperationMetadata
PiperOrigin-RevId: 520464508
1 parent 273994f commit cf01552

3 files changed

Lines changed: 32 additions & 15 deletions

File tree

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

Lines changed: 1 addition & 6 deletions
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",
4039
"//google/longrunning:operations_proto",
4140
"@com_google_protobuf//:duration_proto",
4241
"@com_google_protobuf//:empty_proto",
4342
"@com_google_protobuf//:field_mask_proto",
4443
"@com_google_protobuf//:struct_proto",
44+
"@com_google_protobuf//:timestamp_proto",
4545
],
4646
)
4747

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

@@ -133,7 +132,6 @@ go_proto_library(
133132
protos = [":stitcher_proto"],
134133
deps = [
135134
"//google/api:annotations_go_proto",
136-
"//google/cloud/common:common_go_proto",
137135
"//google/longrunning:longrunning_go_proto",
138136
],
139137
)
@@ -150,7 +148,6 @@ go_gapic_library(
150148
transport = "grpc",
151149
deps = [
152150
":stitcher_go_proto",
153-
"//google/cloud/common:common_go_proto",
154151
"//google/longrunning:longrunning_go_proto",
155152
"@com_google_cloud_go_longrunning//:go_default_library",
156153
"@com_google_cloud_go_longrunning//autogen:go_default_library",
@@ -195,7 +192,6 @@ py_gapic_library(
195192
service_yaml = "videostitcher_v1.yaml",
196193
transport = "grpc",
197194
deps = [
198-
"//google/cloud/common:common_py_proto",
199195
],
200196
)
201197

@@ -289,7 +285,6 @@ nodejs_gapic_assembly_pkg(
289285
deps = [
290286
":stitcher_nodejs_gapic",
291287
":stitcher_proto",
292-
"//google/cloud/common:common_proto",
293288
],
294289
)
295290

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

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ 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";
2423
import "google/cloud/video/stitcher/v1/ad_tag_details.proto";
2524
import "google/cloud/video/stitcher/v1/cdn_keys.proto";
2625
import "google/cloud/video/stitcher/v1/live_configs.proto";
@@ -30,6 +29,7 @@ import "google/cloud/video/stitcher/v1/stitch_details.proto";
3029
import "google/longrunning/operations.proto";
3130
import "google/protobuf/empty.proto";
3231
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: "google.cloud.common.OperationMetadata"
58+
metadata_type: "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: "google.cloud.common.OperationMetadata"
86+
metadata_type: "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: "google.cloud.common.OperationMetadata"
100+
metadata_type: "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: "google.cloud.common.OperationMetadata"
184+
metadata_type: "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: "google.cloud.common.OperationMetadata"
213+
metadata_type: "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: "google.cloud.common.OperationMetadata"
225+
metadata_type: "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: "google.cloud.common.OperationMetadata"
257+
metadata_type: "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: "google.cloud.common.OperationMetadata"
289+
metadata_type: "OperationMetadata"
290290
};
291291
}
292292
}
@@ -763,3 +763,18 @@ 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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ 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+
1017
backend:
1118
rules:
1219
- selector: 'google.cloud.video.stitcher.v1.VideoStitcherService.*'

0 commit comments

Comments
 (0)