267 lines
8.3 KiB
Go
267 lines
8.3 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: daemon/v1/daemon.proto
|
|
|
|
package daemonv1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
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)
|
|
)
|
|
|
|
type CheckRepositoryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
|
|
Repository string `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"`
|
|
IdentityId string `protobuf:"bytes,3,opt,name=identity_id,json=identityId,proto3" json:"identity_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckRepositoryRequest) Reset() {
|
|
*x = CheckRepositoryRequest{}
|
|
mi := &file_daemon_v1_daemon_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckRepositoryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckRepositoryRequest) ProtoMessage() {}
|
|
|
|
func (x *CheckRepositoryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_daemon_v1_daemon_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 CheckRepositoryRequest.ProtoReflect.Descriptor instead.
|
|
func (*CheckRepositoryRequest) Descriptor() ([]byte, []int) {
|
|
return file_daemon_v1_daemon_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CheckRepositoryRequest) GetOwner() string {
|
|
if x != nil {
|
|
return x.Owner
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CheckRepositoryRequest) GetRepository() string {
|
|
if x != nil {
|
|
return x.Repository
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CheckRepositoryRequest) GetIdentityId() string {
|
|
if x != nil {
|
|
return x.IdentityId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CheckRepositoryResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"`
|
|
Connection string `protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"`
|
|
Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"`
|
|
Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"`
|
|
BaseBranch string `protobuf:"bytes,5,opt,name=base_branch,json=baseBranch,proto3" json:"base_branch,omitempty"`
|
|
Code string `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"`
|
|
Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"`
|
|
// Operations the identity can perform: clone was read, push and pr are
|
|
// permitted and the credential can write.
|
|
Operations []string `protobuf:"bytes,8,rep,name=operations,proto3" json:"operations,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckRepositoryResponse) Reset() {
|
|
*x = CheckRepositoryResponse{}
|
|
mi := &file_daemon_v1_daemon_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckRepositoryResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckRepositoryResponse) ProtoMessage() {}
|
|
|
|
func (x *CheckRepositoryResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_daemon_v1_daemon_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 CheckRepositoryResponse.ProtoReflect.Descriptor instead.
|
|
func (*CheckRepositoryResponse) Descriptor() ([]byte, []int) {
|
|
return file_daemon_v1_daemon_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CheckRepositoryResponse) GetVerified() bool {
|
|
if x != nil {
|
|
return x.Verified
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CheckRepositoryResponse) GetConnection() string {
|
|
if x != nil {
|
|
return x.Connection
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CheckRepositoryResponse) GetOperation() string {
|
|
if x != nil {
|
|
return x.Operation
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CheckRepositoryResponse) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CheckRepositoryResponse) GetBaseBranch() string {
|
|
if x != nil {
|
|
return x.BaseBranch
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CheckRepositoryResponse) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CheckRepositoryResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CheckRepositoryResponse) GetOperations() []string {
|
|
if x != nil {
|
|
return x.Operations
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_daemon_v1_daemon_proto protoreflect.FileDescriptor
|
|
|
|
const file_daemon_v1_daemon_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x16daemon/v1/daemon.proto\x12\tdaemon.v1\"o\n" +
|
|
"\x16CheckRepositoryRequest\x12\x14\n" +
|
|
"\x05owner\x18\x01 \x01(\tR\x05owner\x12\x1e\n" +
|
|
"\n" +
|
|
"repository\x18\x02 \x01(\tR\n" +
|
|
"repository\x12\x1f\n" +
|
|
"\videntity_id\x18\x03 \x01(\tR\n" +
|
|
"identityId\"\xfc\x01\n" +
|
|
"\x17CheckRepositoryResponse\x12\x1a\n" +
|
|
"\bverified\x18\x01 \x01(\bR\bverified\x12\x1e\n" +
|
|
"\n" +
|
|
"connection\x18\x02 \x01(\tR\n" +
|
|
"connection\x12\x1c\n" +
|
|
"\toperation\x18\x03 \x01(\tR\toperation\x12\x18\n" +
|
|
"\aaccount\x18\x04 \x01(\tR\aaccount\x12\x1f\n" +
|
|
"\vbase_branch\x18\x05 \x01(\tR\n" +
|
|
"baseBranch\x12\x12\n" +
|
|
"\x04code\x18\x06 \x01(\tR\x04code\x12\x18\n" +
|
|
"\amessage\x18\a \x01(\tR\amessage\x12\x1e\n" +
|
|
"\n" +
|
|
"operations\x18\b \x03(\tR\n" +
|
|
"operations2i\n" +
|
|
"\rDaemonService\x12X\n" +
|
|
"\x0fCheckRepository\x12!.daemon.v1.CheckRepositoryRequest\x1a\".daemon.v1.CheckRepositoryResponseB\xac\x01\n" +
|
|
"\rcom.daemon.v1B\vDaemonProtoP\x01ZIgithub.com/samcharles93/archie-core/internal/contracts/daemon/v1;daemonv1\xa2\x02\x03DXX\xaa\x02\tDaemon.V1\xca\x02\tDaemon\\V1\xe2\x02\x15Daemon\\V1\\GPBMetadata\xea\x02\n" +
|
|
"Daemon::V1b\x06proto3"
|
|
|
|
var (
|
|
file_daemon_v1_daemon_proto_rawDescOnce sync.Once
|
|
file_daemon_v1_daemon_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_daemon_v1_daemon_proto_rawDescGZIP() []byte {
|
|
file_daemon_v1_daemon_proto_rawDescOnce.Do(func() {
|
|
file_daemon_v1_daemon_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_daemon_v1_daemon_proto_rawDesc), len(file_daemon_v1_daemon_proto_rawDesc)))
|
|
})
|
|
return file_daemon_v1_daemon_proto_rawDescData
|
|
}
|
|
|
|
var file_daemon_v1_daemon_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_daemon_v1_daemon_proto_goTypes = []any{
|
|
(*CheckRepositoryRequest)(nil), // 0: daemon.v1.CheckRepositoryRequest
|
|
(*CheckRepositoryResponse)(nil), // 1: daemon.v1.CheckRepositoryResponse
|
|
}
|
|
var file_daemon_v1_daemon_proto_depIdxs = []int32{
|
|
0, // 0: daemon.v1.DaemonService.CheckRepository:input_type -> daemon.v1.CheckRepositoryRequest
|
|
1, // 1: daemon.v1.DaemonService.CheckRepository:output_type -> daemon.v1.CheckRepositoryResponse
|
|
1, // [1:2] is the sub-list for method output_type
|
|
0, // [0:1] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_daemon_v1_daemon_proto_init() }
|
|
func file_daemon_v1_daemon_proto_init() {
|
|
if File_daemon_v1_daemon_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_daemon_v1_daemon_proto_rawDesc), len(file_daemon_v1_daemon_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_daemon_v1_daemon_proto_goTypes,
|
|
DependencyIndexes: file_daemon_v1_daemon_proto_depIdxs,
|
|
MessageInfos: file_daemon_v1_daemon_proto_msgTypes,
|
|
}.Build()
|
|
File_daemon_v1_daemon_proto = out.File
|
|
file_daemon_v1_daemon_proto_goTypes = nil
|
|
file_daemon_v1_daemon_proto_depIdxs = nil
|
|
}
|