Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add go_package #6

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/branch.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import "buf/registry/storage/v1beta1/storage.proto";
import "buf/validate/validate.proto";
import "google/protobuf/timestamp.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// A branch on a specific Module.
message Branch {
option (buf.registry.priv.extension.v1beta1.message).response_only = true;
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/branch_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import "buf/registry/module/v1beta1/module.proto";
import "buf/registry/module/v1beta1/resource.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// Operate on Branches.
service BranchService {
// Get Branches by ID or name.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/commit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import "buf/registry/storage/v1beta1/storage.proto";
import "buf/validate/validate.proto";
import "google/protobuf/timestamp.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// A commit on a specific module.
//
// Commits can be associated with multiple Branches.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/commit_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import "buf/registry/module/v1beta1/vcs_commit.proto";
import "buf/registry/storage/v1beta1/storage.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// Operate on Commits.
service CommitService {
// Resolve commits by Commit ID, Module, Branch, Tag, or VCSCommit.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/module.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import "buf/registry/priv/extension/v1beta1/extension.proto";
import "buf/validate/validate.proto";
import "google/protobuf/timestamp.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// A module within the BSR.
message Module {
option (buf.registry.priv.extension.v1beta1.message).response_only = true;
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/module_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import "buf/registry/module/v1beta1/module.proto";
import "buf/registry/owner/v1beta1/owner.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// Operate on Modules.
service ModuleService {
// Get Modules by id or name.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/resource.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ package buf.registry.module.v1beta1;
import "buf/registry/priv/extension/v1beta1/extension.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// A reference to any of these resources:
// - Module
// - Commit
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/tag.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import "buf/registry/storage/v1beta1/storage.proto";
import "buf/validate/validate.proto";
import "google/protobuf/timestamp.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// A tag on a specific Module.
//
// Many Tags can be associated with a single Commit.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/tag_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import "buf/registry/module/v1beta1/resource.proto";
import "buf/registry/module/v1beta1/tag.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// Operate on Tags.
service TagService {
// Get Tags by id or name.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/vcs_commit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import "buf/registry/storage/v1beta1/storage.proto";
import "buf/validate/validate.proto";
import "google/protobuf/timestamp.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// VCSCommit is a commit from a specific VCS associated with a specific Module.
//
// Many VCSCommits can be associated with a single Commit.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/module/v1beta1/vcs_commit_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import "buf/registry/module/v1beta1/resource.proto";
import "buf/registry/module/v1beta1/vcs_commit.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/module/v1beta1";

// Operate on VCSCommits.
service VCSCommitService {
// Get VCSCommits by id or name.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/owner/v1beta1/organization.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import "buf/registry/priv/extension/v1beta1/extension.proto";
import "buf/validate/validate.proto";
import "google/protobuf/timestamp.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/owner/v1beta1";

// Organization is an organization on the BSR.
//
// A name uniquely identifies an Organization, however name is mutable.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/owner/v1beta1/organization_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import "buf/registry/owner/v1beta1/organization.proto";
import "buf/registry/owner/v1beta1/user.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/owner/v1beta1";

// Operate on Organizations
service OrganizationService {
// Get Organizations by id or name.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/owner/v1beta1/owner.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import "buf/registry/owner/v1beta1/user.proto";
import "buf/registry/priv/extension/v1beta1/extension.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/owner/v1beta1";

// A User or Organization.
message Owner {
option (buf.registry.priv.extension.v1beta1.message).response_only = true;
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/owner/v1beta1/owner_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ package buf.registry.owner.v1beta1;
import "buf/registry/owner/v1beta1/owner.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/owner/v1beta1";

// Operate on Users and Organizations in situations where you only
// know a reference to an owner, without knowing whether or not that
// owner is a User or Organization.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/owner/v1beta1/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import "buf/registry/priv/extension/v1beta1/extension.proto";
import "buf/validate/validate.proto";
import "google/protobuf/timestamp.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/owner/v1beta1";

// A user on the BSR.
//
// A name uniquely identifies a User, however name is mutable.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/owner/v1beta1/user_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import "buf/registry/owner/v1beta1/organization.proto";
import "buf/registry/owner/v1beta1/user.proto";
import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/owner/v1beta1";

// Operate on Users.
service UserService {
// Get Users by id or name.
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/priv/extension/v1beta1/extension.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ package buf.registry.priv.extension.v1beta1;

import "google/protobuf/descriptor.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/priv/extension/v1beta1";

extend google.protobuf.MessageOptions {
// Constraints on a message.
MessageConstraints message = 1160;
Expand Down
2 changes: 2 additions & 0 deletions buf/registry/storage/v1beta1/storage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ package buf.registry.storage.v1beta1;

import "buf/validate/validate.proto";

option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/storage/v1beta1";

// A digest.
message Digest {
// The type of Digest.
Expand Down
Loading