Skip to content

Commit 2c21d71

Browse files
Google APIscopybara-github
authored andcommitted
chore: remove unused import and reformat service.proto
docs: Reformat comments for several messages, including ListFeaturesRequest, CreateFeatureRequest, and OperationMetadata PiperOrigin-RevId: 794274090
1 parent 2282643 commit 2c21d71

File tree

1 file changed

+20
-28
lines changed

1 file changed

+20
-28
lines changed

google/cloud/gkehub/v1/service.proto

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import "google/api/resource.proto";
2323
import "google/cloud/gkehub/v1/feature.proto";
2424
import "google/cloud/gkehub/v1/membership.proto";
2525
import "google/longrunning/operations.proto";
26-
import "google/protobuf/empty.proto";
2726
import "google/protobuf/field_mask.proto";
2827
import "google/protobuf/timestamp.proto";
2928

@@ -455,13 +454,11 @@ message TypeMeta {
455454

456455
// Request message for `GkeHub.ListFeatures` method.
457456
message ListFeaturesRequest {
458-
// Required. The parent (project and location) where the Features will be listed.
459-
// Specified in the format `projects/*/locations/*`.
460-
string parent = 1 [
461-
(google.api.resource_reference) = {
462-
child_type: "gkehub.googleapis.com/Feature"
463-
}
464-
];
457+
// Required. The parent (project and location) where the Features will be
458+
// listed. Specified in the format `projects/*/locations/*`.
459+
string parent = 1 [(google.api.resource_reference) = {
460+
child_type: "gkehub.googleapis.com/Feature"
461+
}];
465462

466463
// When requesting a 'page' of resources, `page_size` specifies number of
467464
// resources to return. If unspecified or set to 0, all resources will
@@ -512,21 +509,17 @@ message GetFeatureRequest {
512509
// Required. The Feature resource name in the format
513510
// `projects/*/locations/*/features/*`
514511
string name = 1 [
515-
(google.api.resource_reference) = {
516-
type: "gkehub.googleapis.com/Feature"
517-
}
512+
(google.api.resource_reference) = { type: "gkehub.googleapis.com/Feature" }
518513
];
519514
}
520515

521516
// Request message for the `GkeHub.CreateFeature` method.
522517
message CreateFeatureRequest {
523-
// Required. The parent (project and location) where the Feature will be created.
524-
// Specified in the format `projects/*/locations/*`.
525-
string parent = 1 [
526-
(google.api.resource_reference) = {
527-
child_type: "gkehub.googleapis.com/Feature"
528-
}
529-
];
518+
// Required. The parent (project and location) where the Feature will be
519+
// created. Specified in the format `projects/*/locations/*`.
520+
string parent = 1 [(google.api.resource_reference) = {
521+
child_type: "gkehub.googleapis.com/Feature"
522+
}];
530523

531524
// The ID of the feature to create.
532525
string feature_id = 2;
@@ -555,9 +548,7 @@ message DeleteFeatureRequest {
555548
// Required. The Feature resource name in the format
556549
// `projects/*/locations/*/features/*`.
557550
string name = 1 [
558-
(google.api.resource_reference) = {
559-
type: "gkehub.googleapis.com/Feature"
560-
}
551+
(google.api.resource_reference) = { type: "gkehub.googleapis.com/Feature" }
561552
];
562553

563554
// If set to true, the delete will ignore any outstanding resources for
@@ -586,9 +577,7 @@ message UpdateFeatureRequest {
586577
// Required. The Feature resource name in the format
587578
// `projects/*/locations/*/features/*`.
588579
string name = 1 [
589-
(google.api.resource_reference) = {
590-
type: "gkehub.googleapis.com/Feature"
591-
}
580+
(google.api.resource_reference) = { type: "gkehub.googleapis.com/Feature" }
592581
];
593582

594583
// Mask of fields to update.
@@ -623,10 +612,12 @@ message UpdateFeatureRequest {
623612
// Represents the metadata of the long-running operation.
624613
message OperationMetadata {
625614
// Output only. The time the operation was created.
626-
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
615+
google.protobuf.Timestamp create_time = 1
616+
[(google.api.field_behavior) = OUTPUT_ONLY];
627617

628618
// Output only. The time the operation finished running.
629-
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
619+
google.protobuf.Timestamp end_time = 2
620+
[(google.api.field_behavior) = OUTPUT_ONLY];
630621

631622
// Output only. Server-defined resource path for the target of the operation.
632623
string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -639,8 +630,9 @@ message OperationMetadata {
639630

640631
// Output only. Identifies whether the user has requested cancellation
641632
// of the operation. Operations that have successfully been cancelled
642-
// have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
643-
// corresponding to `Code.CANCELLED`.
633+
// have [Operation.error][] value with a
634+
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
635+
// `Code.CANCELLED`.
644636
bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
645637

646638
// Output only. API version used to start the operation.

0 commit comments

Comments
 (0)