// SPDX-License-Identifier: MIT // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.12 // protoc (unknown) // source: ermite/types.proto package ermite import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // MergeMode is how a merge request is merged. Fast-forward needs the target // to be an ancestor of the head. Squash and merge commit need the head to // merge cleanly into the target, which holds when the branch is behind its // target without conflict. The server never rebases: a branch that conflicts // is rebased by its author and pushed again. type MergeMode int32 const ( // Not set. In MergeMergeRequestRequest.mode it means fast-forward. Rejected // in RepoSettings.allowed_merge_modes. Returned on a merge request that was // not merged. MergeMode_MERGE_MODE_UNSPECIFIED MergeMode = 0 // The target branch moves to the head. No commit is created and the // signatures of the branch's commits are kept. MergeMode_MERGE_MODE_FAST_FORWARD MergeMode = 1 // One new commit is created with the tree of the merge of the head into the // target (the tree of the head when the target is its ancestor) and the // target tip as only parent, signed by the server's key (see ServerService.GetSigningKey). // Its author is the author of the first commit of the branch, the other // authors are added as "Co-authored-by:" trailers, and its message is the // title, " (!)", a blank line and the list of the squashed commits' // summaries. MergeMode_MERGE_MODE_SQUASH MergeMode = 2 // One new commit is created with two parents, the target tip then the head, // and the tree of the merge. It is signed by the server's key (see // ServerService.GetSigningKey); its author and committer are the server // identity. Its message is "Merge branch '' into (!)", // a blank line and the title. The signatures of the branch's commits are // kept. Needs the "merge_requests.mergeability" feature. MergeMode_MERGE_MODE_MERGE_COMMIT MergeMode = 3 ) // Enum value maps for MergeMode. var ( MergeMode_name = map[int32]string{ 0: "MERGE_MODE_UNSPECIFIED", 1: "MERGE_MODE_FAST_FORWARD", 2: "MERGE_MODE_SQUASH", 3: "MERGE_MODE_MERGE_COMMIT", } MergeMode_value = map[string]int32{ "MERGE_MODE_UNSPECIFIED": 0, "MERGE_MODE_FAST_FORWARD": 1, "MERGE_MODE_SQUASH": 2, "MERGE_MODE_MERGE_COMMIT": 3, } ) func (x MergeMode) Enum() *MergeMode { p := new(MergeMode) *p = x return p } func (x MergeMode) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MergeMode) Descriptor() protoreflect.EnumDescriptor { return file_ermite_types_proto_enumTypes[0].Descriptor() } func (MergeMode) Type() protoreflect.EnumType { return &file_ermite_types_proto_enumTypes[0] } func (x MergeMode) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use MergeMode.Descriptor instead. func (MergeMode) EnumDescriptor() ([]byte, []int) { return file_ermite_types_proto_rawDescGZIP(), []int{0} } // Signature identifies who did something in Git and when: the author or the // committer of a commit. type Signature struct { state protoimpl.MessageState `protogen:"open.v1"` // Name is the person's name as recorded in the commit. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Email is the person's email address as recorded in the commit. Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // Time is when the action happened. The time zone offset of the commit is // not kept. Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Signature) Reset() { *x = Signature{} mi := &file_ermite_types_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Signature) String() string { return protoimpl.X.MessageStringOf(x) } func (*Signature) ProtoMessage() {} func (x *Signature) ProtoReflect() protoreflect.Message { mi := &file_ermite_types_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Signature.ProtoReflect.Descriptor instead. func (*Signature) Descriptor() ([]byte, []int) { return file_ermite_types_proto_rawDescGZIP(), []int{0} } func (x *Signature) GetName() string { if x != nil { return x.Name } return "" } func (x *Signature) GetEmail() string { if x != nil { return x.Email } return "" } func (x *Signature) GetTime() *timestamppb.Timestamp { if x != nil { return x.Time } return nil } // Commit is the metadata of one Git commit. type Commit struct { state protoimpl.MessageState `protogen:"open.v1"` // Id is the full object id (40 lowercase hexadecimal characters for SHA-1). Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ParentIds are the ids of the parent commits, first parent first. Empty for // a root commit. ParentIds []string `protobuf:"bytes,2,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` // Author is who wrote the change. Author *Signature `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"` // Committer is who recorded the commit. Committer *Signature `protobuf:"bytes,4,opt,name=committer,proto3" json:"committer,omitempty"` // Summary is the first line of the message, without the line break. Summary string `protobuf:"bytes,5,opt,name=summary,proto3" json:"summary,omitempty"` // Message is the full commit message, including the summary. Text that is // not valid UTF-8 is converted with the replacement character. Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` // Verification tells whether and how the commit is signed. Unset on // servers without the "commit_signatures" feature. Verification *CommitVerification `protobuf:"bytes,7,opt,name=verification,proto3" json:"verification,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Commit) Reset() { *x = Commit{} mi := &file_ermite_types_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Commit) String() string { return protoimpl.X.MessageStringOf(x) } func (*Commit) ProtoMessage() {} func (x *Commit) ProtoReflect() protoreflect.Message { mi := &file_ermite_types_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Commit.ProtoReflect.Descriptor instead. func (*Commit) Descriptor() ([]byte, []int) { return file_ermite_types_proto_rawDescGZIP(), []int{1} } func (x *Commit) GetId() string { if x != nil { return x.Id } return "" } func (x *Commit) GetParentIds() []string { if x != nil { return x.ParentIds } return nil } func (x *Commit) GetAuthor() *Signature { if x != nil { return x.Author } return nil } func (x *Commit) GetCommitter() *Signature { if x != nil { return x.Committer } return nil } func (x *Commit) GetSummary() string { if x != nil { return x.Summary } return "" } func (x *Commit) GetMessage() string { if x != nil { return x.Message } return "" } func (x *Commit) GetVerification() *CommitVerification { if x != nil { return x.Verification } return nil } var File_ermite_types_proto protoreflect.FileDescriptor const file_ermite_types_proto_rawDesc = "" + "\n" + "\x12ermite/types.proto\x12\x06ermite\x1a\x16ermite/signature.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"e\n" + "\tSignature\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" + "\x05email\x18\x02 \x01(\tR\x05email\x12.\n" + "\x04time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\"\x87\x02\n" + "\x06Commit\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" + "\n" + "parent_ids\x18\x02 \x03(\tR\tparentIds\x12)\n" + "\x06author\x18\x03 \x01(\v2\x11.ermite.SignatureR\x06author\x12/\n" + "\tcommitter\x18\x04 \x01(\v2\x11.ermite.SignatureR\tcommitter\x12\x18\n" + "\asummary\x18\x05 \x01(\tR\asummary\x12\x18\n" + "\amessage\x18\x06 \x01(\tR\amessage\x12>\n" + "\fverification\x18\a \x01(\v2\x1a.ermite.CommitVerificationR\fverification*x\n" + "\tMergeMode\x12\x1a\n" + "\x16MERGE_MODE_UNSPECIFIED\x10\x00\x12\x1b\n" + "\x17MERGE_MODE_FAST_FORWARD\x10\x01\x12\x15\n" + "\x11MERGE_MODE_SQUASH\x10\x02\x12\x1b\n" + "\x17MERGE_MODE_MERGE_COMMIT\x10\x03Bq\n" + "\n" + "com.ermiteB\n" + "TypesProtoP\x01Z\x1fbnema.dev/ermite-api/gen/ermite\xa2\x02\x03EXX\xaa\x02\x06Ermite\xca\x02\x06Ermite\xe2\x02\x12Ermite\\GPBMetadata\xea\x02\x06Ermiteb\x06proto3" var ( file_ermite_types_proto_rawDescOnce sync.Once file_ermite_types_proto_rawDescData []byte ) func file_ermite_types_proto_rawDescGZIP() []byte { file_ermite_types_proto_rawDescOnce.Do(func() { file_ermite_types_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_types_proto_rawDesc), len(file_ermite_types_proto_rawDesc))) }) return file_ermite_types_proto_rawDescData } var file_ermite_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_ermite_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_ermite_types_proto_goTypes = []any{ (MergeMode)(0), // 0: ermite.MergeMode (*Signature)(nil), // 1: ermite.Signature (*Commit)(nil), // 2: ermite.Commit (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp (*CommitVerification)(nil), // 4: ermite.CommitVerification } var file_ermite_types_proto_depIdxs = []int32{ 3, // 0: ermite.Signature.time:type_name -> google.protobuf.Timestamp 1, // 1: ermite.Commit.author:type_name -> ermite.Signature 1, // 2: ermite.Commit.committer:type_name -> ermite.Signature 4, // 3: ermite.Commit.verification:type_name -> ermite.CommitVerification 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_ermite_types_proto_init() } func file_ermite_types_proto_init() { if File_ermite_types_proto != nil { return } file_ermite_signature_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_types_proto_rawDesc), len(file_ermite_types_proto_rawDesc)), NumEnums: 1, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_ermite_types_proto_goTypes, DependencyIndexes: file_ermite_types_proto_depIdxs, EnumInfos: file_ermite_types_proto_enumTypes, MessageInfos: file_ermite_types_proto_msgTypes, }.Build() File_ermite_types_proto = out.File file_ermite_types_proto_goTypes = nil file_ermite_types_proto_depIdxs = nil }