common.proto 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.networkconnectivity.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/protobuf/timestamp.proto";
  18. import "google/api/annotations.proto";
  19. option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1;networkconnectivity";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "CommonProto";
  23. option java_package = "com.google.cloud.networkconnectivity.v1";
  24. option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1";
  25. option ruby_package = "Google::Cloud::NetworkConnectivity::V1";
  26. // Represents the metadata of the long-running operation.
  27. message OperationMetadata {
  28. // Output only. The time the operation was created.
  29. google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  30. // Output only. The time the operation finished running.
  31. google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  32. // Output only. Server-defined resource path for the target of the operation.
  33. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  34. // Output only. Name of the verb executed by the operation.
  35. string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  36. // Output only. Human-readable status of the operation, if any.
  37. string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  38. // Output only. Identifies whether the user has requested cancellation
  39. // of the operation. Operations that have successfully been cancelled
  40. // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
  41. // corresponding to `Code.CANCELLED`.
  42. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  43. // Output only. API version used to start the operation.
  44. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  45. }