// pet.proto
syntax = "proto3";
package buf-team-demo.pet.v1;
enum PetType {
PET_TYPE_UNSET = 0;
PET_TYPE_SNAKE = 1;
PET_TYPE_CAMEL = 2;
}
message Pet {
PetType pet_type = 1;
string pet_id = 2;
string name = 3;
}
$ buf mod init --name buf.build/buf-team-demo/petapis
$ buf beta registry repository create buf.build/buf-team-demo/petapis
ID
6a67dbc0-2d03-4ba5-9114-99f8b805ad47
Full name
buf.build/buf-team-demo/petapis
Created
2021-06-16T17:19:35Z
$ buf push
success: module buf-team-demo/demo pushed to the BSR
# buf.yaml
name: buf.build/otherteam/important-project-number-1
version: v1
lint:
use:
- DEFAULT
breaking:
use:
- FILE
deps:
- buf.build/googleapis/googleapis
- buf.build/buf-team-demo/petapis