syntax = "proto3";

package nominal.versioning.v1;

import "buf/validate/validate.proto";
import "nominal/protos/gen/v1/alias.proto";

message BranchOrCommit {
  oneof branch_or_commit {
    option (buf.validate.oneof) = {required: true};
    string branch = 1 [(nominal.gen.v1.alias) = {java_name: "io.nominal.scout.versioning.api.BranchName"}];
    string commit = 2 [(nominal.gen.v1.alias) = {java_name: "io.nominal.scout.versioning.api.CommitId"}];
  }
}
