Files
tunnel-please-grpc/gen/identifier.pb.go
2025-12-30 23:48:52 +07:00

189 lines
5.7 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v6.33.2
// source: identifier.proto
package gen
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
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 IdentifierRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IdentifierRequest) Reset() {
*x = IdentifierRequest{}
mi := &file_identifier_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IdentifierRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IdentifierRequest) ProtoMessage() {}
func (x *IdentifierRequest) ProtoReflect() protoreflect.Message {
mi := &file_identifier_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 IdentifierRequest.ProtoReflect.Descriptor instead.
func (*IdentifierRequest) Descriptor() ([]byte, []int) {
return file_identifier_proto_rawDescGZIP(), []int{0}
}
func (x *IdentifierRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type IdentifierResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IdentifierResponse) Reset() {
*x = IdentifierResponse{}
mi := &file_identifier_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IdentifierResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IdentifierResponse) ProtoMessage() {}
func (x *IdentifierResponse) ProtoReflect() protoreflect.Message {
mi := &file_identifier_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 IdentifierResponse.ProtoReflect.Descriptor instead.
func (*IdentifierResponse) Descriptor() ([]byte, []int) {
return file_identifier_proto_rawDescGZIP(), []int{1}
}
func (x *IdentifierResponse) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *IdentifierResponse) GetSlug() string {
if x != nil {
return x.Slug
}
return ""
}
var File_identifier_proto protoreflect.FileDescriptor
const file_identifier_proto_rawDesc = "" +
"\n" +
"\x10identifier.proto\x12\n" +
"identifier\x1a\x1bgoogle/protobuf/empty.proto\"#\n" +
"\x11IdentifierRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"8\n" +
"\x12IdentifierResponse\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04slug\x18\x02 \x01(\tR\x04slug2\x92\x01\n" +
"\bIdentity\x12D\n" +
"\x03Get\x12\x1d.identifier.IdentifierRequest\x1a\x1e.identifier.IdentifierResponse\x12@\n" +
"\x06Create\x12\x16.google.protobuf.Empty\x1a\x1e.identifier.IdentifierResponseB\aZ\x05./genb\x06proto3"
var (
file_identifier_proto_rawDescOnce sync.Once
file_identifier_proto_rawDescData []byte
)
func file_identifier_proto_rawDescGZIP() []byte {
file_identifier_proto_rawDescOnce.Do(func() {
file_identifier_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_identifier_proto_rawDesc), len(file_identifier_proto_rawDesc)))
})
return file_identifier_proto_rawDescData
}
var file_identifier_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_identifier_proto_goTypes = []any{
(*IdentifierRequest)(nil), // 0: identifier.IdentifierRequest
(*IdentifierResponse)(nil), // 1: identifier.IdentifierResponse
(*emptypb.Empty)(nil), // 2: google.protobuf.Empty
}
var file_identifier_proto_depIdxs = []int32{
0, // 0: identifier.Identity.Get:input_type -> identifier.IdentifierRequest
2, // 1: identifier.Identity.Create:input_type -> google.protobuf.Empty
1, // 2: identifier.Identity.Get:output_type -> identifier.IdentifierResponse
1, // 3: identifier.Identity.Create:output_type -> identifier.IdentifierResponse
2, // [2:4] is the sub-list for method output_type
0, // [0:2] 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_identifier_proto_init() }
func file_identifier_proto_init() {
if File_identifier_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_identifier_proto_rawDesc), len(file_identifier_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_identifier_proto_goTypes,
DependencyIndexes: file_identifier_proto_depIdxs,
MessageInfos: file_identifier_proto_msgTypes,
}.Build()
File_identifier_proto = out.File
file_identifier_proto_goTypes = nil
file_identifier_proto_depIdxs = nil
}