From c784af48c5d1eee53d16608c777dbb0a346fff3a Mon Sep 17 00:00:00 2001 From: John Chadwick Date: Tue, 7 Nov 2023 14:05:46 -0500 Subject: [PATCH] Formatting fixes --- buf/registry/module/v1beta1/branch.proto | 10 ++++------ buf/registry/module/v1beta1/module.proto | 20 ++++++++----------- .../module/v1beta1/module_service.proto | 10 ++++------ buf/registry/module/v1beta1/resource.proto | 10 ++++------ buf/registry/module/v1beta1/tag.proto | 10 ++++------ buf/registry/module/v1beta1/vcs_commit.proto | 10 ++++------ 6 files changed, 28 insertions(+), 42 deletions(-) diff --git a/buf/registry/module/v1beta1/branch.proto b/buf/registry/module/v1beta1/branch.proto index 9e2a916..52b2f0b 100644 --- a/buf/registry/module/v1beta1/branch.proto +++ b/buf/registry/module/v1beta1/branch.proto @@ -86,12 +86,10 @@ message BranchRef { (buf.validate.field).string.max_len = 255 ]; // The name of the Module that contains this Branch. - string module = 2 [ - (buf.validate.field).string = { - min_len: 2, - max_len: 100 - } - ]; + string module = 2 [(buf.validate.field).string = { + min_len: 2, + max_len: 100 + }]; // The name of the Branch. string branch = 3 [ (buf.validate.field).required = true, diff --git a/buf/registry/module/v1beta1/module.proto b/buf/registry/module/v1beta1/module.proto index 06d6813..3656658 100644 --- a/buf/registry/module/v1beta1/module.proto +++ b/buf/registry/module/v1beta1/module.proto @@ -38,12 +38,10 @@ message Module { // The name of the Module. // // Unique within a given User or Organization. - string name = 4 [ - (buf.validate.field).string = { - min_len: 2, - max_len: 100 - } - ]; + string name = 4 [(buf.validate.field).string = { + min_len: 2, + max_len: 100 + }]; // The id of the User or Organization that owns the Module. string owner_id = 5 [ (buf.validate.field).required = true, @@ -109,12 +107,10 @@ message ModuleRef { (buf.validate.field).string.max_len = 255 ]; // The name of the Module. - string module = 2 [ - (buf.validate.field).string = { - min_len: 2, - max_len: 100 - } - ]; + string module = 2 [(buf.validate.field).string = { + min_len: 2, + max_len: 100 + }]; } oneof value { diff --git a/buf/registry/module/v1beta1/module_service.proto b/buf/registry/module/v1beta1/module_service.proto index d1094c9..c51ab37 100644 --- a/buf/registry/module/v1beta1/module_service.proto +++ b/buf/registry/module/v1beta1/module_service.proto @@ -93,12 +93,10 @@ message CreateModulesRequest { // The User or Organization to create the Module under. buf.registry.owner.v1beta1.OwnerRef owner_ref = 1 [(buf.validate.field).required = true]; // The name of the Module. - string name = 2 [ - (buf.validate.field).string = { - min_len: 2, - max_len: 100 - } - ]; + string name = 2 [(buf.validate.field).string = { + min_len: 2, + max_len: 100 + }]; // The module's visibility. ModuleVisibility visibility = 3 [ (buf.validate.field).required = true, diff --git a/buf/registry/module/v1beta1/resource.proto b/buf/registry/module/v1beta1/resource.proto index d7573eb..5373174 100644 --- a/buf/registry/module/v1beta1/resource.proto +++ b/buf/registry/module/v1beta1/resource.proto @@ -67,12 +67,10 @@ message ResourceRef { (buf.validate.field).string.max_len = 255 ]; // The name of the Module the contains or is the resource. - string module = 2 [ - (buf.validate.field).string = { - min_len: 2, - max_len: 100 - } - ]; + string module = 2 [(buf.validate.field).string = { + min_len: 2, + max_len: 100 + }]; oneof child { // The name of the Branch. string branch_name = 3 [(buf.validate.field).string.max_len = 250]; diff --git a/buf/registry/module/v1beta1/tag.proto b/buf/registry/module/v1beta1/tag.proto index 5d46c09..6e15045 100644 --- a/buf/registry/module/v1beta1/tag.proto +++ b/buf/registry/module/v1beta1/tag.proto @@ -89,12 +89,10 @@ message TagRef { (buf.validate.field).string.max_len = 255 ]; // The name of the Module that contains the Tag, either a User or Organization. - string module = 2 [ - (buf.validate.field).string = { - min_len: 2, - max_len: 100 - } - ]; + string module = 2 [(buf.validate.field).string = { + min_len: 2, + max_len: 100 + }]; // The Tag name. string tag = 3 [ (buf.validate.field).required = true, diff --git a/buf/registry/module/v1beta1/vcs_commit.proto b/buf/registry/module/v1beta1/vcs_commit.proto index b818fc9..2fb6a5a 100644 --- a/buf/registry/module/v1beta1/vcs_commit.proto +++ b/buf/registry/module/v1beta1/vcs_commit.proto @@ -118,12 +118,10 @@ message VCSCommitRef { (buf.validate.field).string.max_len = 255 ]; // The name of the Module that contains the VCSCommit. - string module = 2 [ - (buf.validate.field).string = { - min_len: 2, - max_len: 100 - } - ]; + string module = 2 [(buf.validate.field).string = { + min_len: 2, + max_len: 100 + }]; // The hash of the VCSCommit. string hash = 3 [ (buf.validate.field).required = true,