Skip to content

Commit

Permalink
feat: publish DEP proto
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 569129715
  • Loading branch information
Google APIs authored and copybara-github committed Sep 28, 2023
1 parent 0c26996 commit cc0ce17
Show file tree
Hide file tree
Showing 7 changed files with 762 additions and 31 deletions.
9 changes: 6 additions & 3 deletions google/cloud/networkservices/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ proto_library(
"//google/api:resource_proto",
"//google/longrunning:operations_proto",
"@com_google_protobuf//:duration_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:timestamp_proto",
],
Expand Down Expand Up @@ -86,9 +85,9 @@ java_gapic_library(
rest_numeric_enums = True,
service_yaml = "networkservices_v1.yaml",
test_deps = [
":networkservices_java_grpc",
"//google/cloud/location:location_java_grpc",
"//google/iam/v1:iam_java_grpc",
":networkservices_java_grpc",
],
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -182,6 +181,7 @@ load(
"@com_google_googleapis_imports//:imports.bzl",
"py_gapic_assembly_pkg",
"py_gapic_library",
"py_test",
)

py_gapic_library(
Expand Down Expand Up @@ -238,10 +238,13 @@ php_gapic_library(
name = "networkservices_php_gapic",
srcs = [":networkservices_proto_with_info"],
grpc_service_config = "networkservices_grpc_service_config.json",
migration_mode = "PRE_MIGRATION_SURFACE_ONLY",
rest_numeric_enums = True,
service_yaml = "networkservices_v1.yaml",
transport = "grpc+rest",
deps = [":networkservices_php_proto"],
deps = [
":networkservices_php_proto",
],
)

# Open Source Packages
Expand Down
12 changes: 11 additions & 1 deletion google/cloud/networkservices/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ proto_library(
name = "networkservices_proto",
srcs = [
"common.proto",
"dep.proto",
"endpoint_policy.proto",
"network_services.proto",
],
Expand All @@ -31,6 +32,7 @@ proto_library(
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/longrunning:operations_proto",
"@com_google_protobuf//:duration_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:timestamp_proto",
Expand Down Expand Up @@ -88,6 +90,8 @@ java_gapic_library(
java_gapic_test(
name = "networkservices_java_gapic_test_suite",
test_classes = [
"com.google.cloud.networkservices.v1beta1.DepServiceClientHttpJsonTest",
"com.google.cloud.networkservices.v1beta1.DepServiceClientTest",
"com.google.cloud.networkservices.v1beta1.NetworkServicesClientHttpJsonTest",
"com.google.cloud.networkservices.v1beta1.NetworkServicesClientTest",
],
Expand Down Expand Up @@ -143,6 +147,7 @@ go_gapic_library(
"//google/longrunning:longrunning_go_proto",
"@com_google_cloud_go_longrunning//:go_default_library",
"@com_google_cloud_go_longrunning//autogen:go_default_library",
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
],
)

Expand Down Expand Up @@ -175,6 +180,8 @@ py_gapic_library(
rest_numeric_enums = True,
service_yaml = "networkservices_v1beta1.yaml",
transport = "grpc+rest",
deps = [
],
)

py_test(
Expand Down Expand Up @@ -214,10 +221,13 @@ php_gapic_library(
name = "networkservices_php_gapic",
srcs = [":networkservices_proto_with_info"],
grpc_service_config = "networkservices_v1beta1_grpc_service_config.json",
migration_mode = "PRE_MIGRATION_SURFACE_ONLY",
rest_numeric_enums = True,
service_yaml = "networkservices_v1beta1.yaml",
transport = "grpc+rest",
deps = [":networkservices_php_proto"],
deps = [
":networkservices_php_proto",
],
)

# Open Source Packages
Expand Down
13 changes: 8 additions & 5 deletions google/cloud/networkservices/v1beta1/common.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,10 +30,12 @@ option ruby_package = "Google::Cloud::NetworkServices::V1beta1";
// Represents the metadata of the long-running operation.
message OperationMetadata {
// Output only. The time the operation was created.
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
google.protobuf.Timestamp create_time = 1
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The time the operation finished running.
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
google.protobuf.Timestamp end_time = 2
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Server-defined resource path for the target of the operation.
string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand All @@ -46,8 +48,9 @@ message OperationMetadata {

// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
// corresponding to `Code.CANCELLED`.
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. API version used to start the operation.
Expand Down
Loading

0 comments on commit cc0ce17

Please sign in to comment.