File
Blob: spec/protocol/rpc.pb.go
| 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // versions: |
| 3 | // protoc-gen-go v1.36.11 |
| 4 | // protoc v7.34.0 |
| 5 | // source: spec/proto/rpc.proto |
| 6 | |
| 7 | package protocol |
| 8 | |
| 9 | import ( |
| 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 | reflect "reflect" |
| 13 | sync "sync" |
| 14 | unsafe "unsafe" |
| 15 | ) |
| 16 | |
| 17 | const ( |
| 18 | // Verify that this generated code is sufficiently up-to-date. |
| 19 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 20 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 21 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 22 | ) |
| 23 | |
| 24 | type Context_TargetType int32 |
| 25 | |
| 26 | const ( |
| 27 | Context_UNKNOWN Context_TargetType = 0 |
| 28 | Context_KV_REPLICATION Context_TargetType = 1 |
| 29 | Context_KV_DIRECT_TARGET Context_TargetType = 2 |
| 30 | ) |
| 31 | |
| 32 | // Enum value maps for Context_TargetType. |
| 33 | var ( |
| 34 | Context_TargetType_name = map[int32]string{ |
| 35 | 0: "UNKNOWN", |
| 36 | 1: "KV_REPLICATION", |
| 37 | 2: "KV_DIRECT_TARGET", |
| 38 | } |
| 39 | Context_TargetType_value = map[string]int32{ |
| 40 | "UNKNOWN": 0, |
| 41 | "KV_REPLICATION": 1, |
| 42 | "KV_DIRECT_TARGET": 2, |
| 43 | } |
| 44 | ) |
| 45 | |
| 46 | func (x Context_TargetType) Enum() *Context_TargetType { |
| 47 | p := new(Context_TargetType) |
| 48 | *p = x |
| 49 | return p |
| 50 | } |
| 51 | |
| 52 | func (x Context_TargetType) String() string { |
| 53 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 54 | } |
| 55 | |
| 56 | func (Context_TargetType) Descriptor() protoreflect.EnumDescriptor { |
| 57 | return file_spec_proto_rpc_proto_enumTypes[0].Descriptor() |
| 58 | } |
| 59 | |
| 60 | func (Context_TargetType) Type() protoreflect.EnumType { |
| 61 | return &file_spec_proto_rpc_proto_enumTypes[0] |
| 62 | } |
| 63 | |
| 64 | func (x Context_TargetType) Number() protoreflect.EnumNumber { |
| 65 | return protoreflect.EnumNumber(x) |
| 66 | } |
| 67 | |
| 68 | // Deprecated: Use Context_TargetType.Descriptor instead. |
| 69 | func (Context_TargetType) EnumDescriptor() ([]byte, []int) { |
| 70 | return file_spec_proto_rpc_proto_rawDescGZIP(), []int{0, 0} |
| 71 | } |
| 72 | |
| 73 | type Context struct { |
| 74 | state protoimpl.MessageState `protogen:"open.v1"` |
| 75 | RequestTarget Context_TargetType `protobuf:"varint,1,opt,name=requestTarget,proto3,enum=protocol.Context_TargetType" json:"requestTarget,omitempty"` |
| 76 | unknownFields protoimpl.UnknownFields |
| 77 | sizeCache protoimpl.SizeCache |
| 78 | } |
| 79 | |
| 80 | func (x *Context) Reset() { |
| 81 | *x = Context{} |
| 82 | mi := &file_spec_proto_rpc_proto_msgTypes[0] |
| 83 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 84 | ms.StoreMessageInfo(mi) |
| 85 | } |
| 86 | |
| 87 | func (x *Context) String() string { |
| 88 | return protoimpl.X.MessageStringOf(x) |
| 89 | } |
| 90 | |
| 91 | func (*Context) ProtoMessage() {} |
| 92 | |
| 93 | func (x *Context) ProtoReflect() protoreflect.Message { |
| 94 | mi := &file_spec_proto_rpc_proto_msgTypes[0] |
| 95 | if x != nil { |
| 96 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 97 | if ms.LoadMessageInfo() == nil { |
| 98 | ms.StoreMessageInfo(mi) |
| 99 | } |
| 100 | return ms |
| 101 | } |
| 102 | return mi.MessageOf(x) |
| 103 | } |
| 104 | |
| 105 | // Deprecated: Use Context.ProtoReflect.Descriptor instead. |
| 106 | func (*Context) Descriptor() ([]byte, []int) { |
| 107 | return file_spec_proto_rpc_proto_rawDescGZIP(), []int{0} |
| 108 | } |
| 109 | |
| 110 | func (x *Context) GetRequestTarget() Context_TargetType { |
| 111 | if x != nil { |
| 112 | return x.RequestTarget |
| 113 | } |
| 114 | return Context_UNKNOWN |
| 115 | } |
| 116 | |
| 117 | var File_spec_proto_rpc_proto protoreflect.FileDescriptor |
| 118 | |
| 119 | const file_spec_proto_rpc_proto_rawDesc = "" + |
| 120 | "\n" + |
| 121 | "\x14spec/proto/rpc.proto\x12\bprotocol\"\x92\x01\n" + |
| 122 | "\aContext\x12B\n" + |
| 123 | "\rrequestTarget\x18\x01 \x01(\x0e2\x1c.protocol.Context.TargetTypeR\rrequestTarget\"C\n" + |
| 124 | "\n" + |
| 125 | "TargetType\x12\v\n" + |
| 126 | "\aUNKNOWN\x10\x00\x12\x12\n" + |
| 127 | "\x0eKV_REPLICATION\x10\x01\x12\x14\n" + |
| 128 | "\x10KV_DIRECT_TARGET\x10\x02B+H\x01Z'go.miragespace.co/specter/spec/protocolb\x06proto3" |
| 129 | |
| 130 | var ( |
| 131 | file_spec_proto_rpc_proto_rawDescOnce sync.Once |
| 132 | file_spec_proto_rpc_proto_rawDescData []byte |
| 133 | ) |
| 134 | |
| 135 | func file_spec_proto_rpc_proto_rawDescGZIP() []byte { |
| 136 | file_spec_proto_rpc_proto_rawDescOnce.Do(func() { |
| 137 | file_spec_proto_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_spec_proto_rpc_proto_rawDesc), len(file_spec_proto_rpc_proto_rawDesc))) |
| 138 | }) |
| 139 | return file_spec_proto_rpc_proto_rawDescData |
| 140 | } |
| 141 | |
| 142 | var file_spec_proto_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 143 | var file_spec_proto_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 144 | var file_spec_proto_rpc_proto_goTypes = []any{ |
| 145 | (Context_TargetType)(0), // 0: protocol.Context.TargetType |
| 146 | (*Context)(nil), // 1: protocol.Context |
| 147 | } |
| 148 | var file_spec_proto_rpc_proto_depIdxs = []int32{ |
| 149 | 0, // 0: protocol.Context.requestTarget:type_name -> protocol.Context.TargetType |
| 150 | 1, // [1:1] is the sub-list for method output_type |
| 151 | 1, // [1:1] is the sub-list for method input_type |
| 152 | 1, // [1:1] is the sub-list for extension type_name |
| 153 | 1, // [1:1] is the sub-list for extension extendee |
| 154 | 0, // [0:1] is the sub-list for field type_name |
| 155 | } |
| 156 | |
| 157 | func init() { file_spec_proto_rpc_proto_init() } |
| 158 | func file_spec_proto_rpc_proto_init() { |
| 159 | if File_spec_proto_rpc_proto != nil { |
| 160 | return |
| 161 | } |
| 162 | type x struct{} |
| 163 | out := protoimpl.TypeBuilder{ |
| 164 | File: protoimpl.DescBuilder{ |
| 165 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 166 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_spec_proto_rpc_proto_rawDesc), len(file_spec_proto_rpc_proto_rawDesc)), |
| 167 | NumEnums: 1, |
| 168 | NumMessages: 1, |
| 169 | NumExtensions: 0, |
| 170 | NumServices: 0, |
| 171 | }, |
| 172 | GoTypes: file_spec_proto_rpc_proto_goTypes, |
| 173 | DependencyIndexes: file_spec_proto_rpc_proto_depIdxs, |
| 174 | EnumInfos: file_spec_proto_rpc_proto_enumTypes, |
| 175 | MessageInfos: file_spec_proto_rpc_proto_msgTypes, |
| 176 | }.Build() |
| 177 | File_spec_proto_rpc_proto = out.File |
| 178 | file_spec_proto_rpc_proto_goTypes = nil |
| 179 | file_spec_proto_rpc_proto_depIdxs = nil |
| 180 | } |