| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
package api |
| 11 |
|
| 12 |
import ( |
| 13 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 14 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 15 |
reflect "reflect" |
| 16 |
sync "sync" |
| 17 |
unsafe "unsafe" |
| 18 |
) |
| 19 |
|
| 20 |
const ( |
| 21 |
|
| 22 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 23 |
|
| 24 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 25 |
) |
| 26 |
|
| 27 |
type HelloRequest struct { |
| 28 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 29 |
Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` |
| 30 |
unknownFields protoimpl.UnknownFields |
| 31 |
sizeCache protoimpl.SizeCache |
| 32 |
} |
| 33 |
|
| 34 |
func (x *HelloRequest) Reset() { |
| 35 |
*x = HelloRequest{} |
| 36 |
mi := &file_hello_service_proto_msgTypes[0] |
| 37 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 38 |
ms.StoreMessageInfo(mi) |
| 39 |
} |
| 40 |
|
| 41 |
func (x *HelloRequest) String() string { |
| 42 |
return protoimpl.X.MessageStringOf(x) |
| 43 |
} |
| 44 |
|
| 45 |
func (*HelloRequest) ProtoMessage() {} |
| 46 |
|
| 47 |
func (x *HelloRequest) ProtoReflect() protoreflect.Message { |
| 48 |
mi := &file_hello_service_proto_msgTypes[0] |
| 49 |
if x != nil { |
| 50 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 51 |
if ms.LoadMessageInfo() == nil { |
| 52 |
ms.StoreMessageInfo(mi) |
| 53 |
} |
| 54 |
return ms |
| 55 |
} |
| 56 |
return mi.MessageOf(x) |
| 57 |
} |
| 58 |
|
| 59 |
|
| 60 |
func (*HelloRequest) Descriptor() ([]byte, []int) { |
| 61 |
return file_hello_service_proto_rawDescGZIP(), []int{0} |
| 62 |
} |
| 63 |
|
| 64 |
func (x *HelloRequest) GetGreeting() string { |
| 65 |
if x != nil { |
| 66 |
return x.Greeting |
| 67 |
} |
| 68 |
return "" |
| 69 |
} |
| 70 |
|
| 71 |
type HelloResponse struct { |
| 72 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 73 |
Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"` |
| 74 |
unknownFields protoimpl.UnknownFields |
| 75 |
sizeCache protoimpl.SizeCache |
| 76 |
} |
| 77 |
|
| 78 |
func (x *HelloResponse) Reset() { |
| 79 |
*x = HelloResponse{} |
| 80 |
mi := &file_hello_service_proto_msgTypes[1] |
| 81 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 82 |
ms.StoreMessageInfo(mi) |
| 83 |
} |
| 84 |
|
| 85 |
func (x *HelloResponse) String() string { |
| 86 |
return protoimpl.X.MessageStringOf(x) |
| 87 |
} |
| 88 |
|
| 89 |
func (*HelloResponse) ProtoMessage() {} |
| 90 |
|
| 91 |
func (x *HelloResponse) ProtoReflect() protoreflect.Message { |
| 92 |
mi := &file_hello_service_proto_msgTypes[1] |
| 93 |
if x != nil { |
| 94 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 95 |
if ms.LoadMessageInfo() == nil { |
| 96 |
ms.StoreMessageInfo(mi) |
| 97 |
} |
| 98 |
return ms |
| 99 |
} |
| 100 |
return mi.MessageOf(x) |
| 101 |
} |
| 102 |
|
| 103 |
|
| 104 |
func (*HelloResponse) Descriptor() ([]byte, []int) { |
| 105 |
return file_hello_service_proto_rawDescGZIP(), []int{1} |
| 106 |
} |
| 107 |
|
| 108 |
func (x *HelloResponse) GetReply() string { |
| 109 |
if x != nil { |
| 110 |
return x.Reply |
| 111 |
} |
| 112 |
return "" |
| 113 |
} |
| 114 |
|
| 115 |
var File_hello_service_proto protoreflect.FileDescriptor |
| 116 |
|
| 117 |
const file_hello_service_proto_rawDesc = "" + |
| 118 |
"\n" + |
| 119 |
"\x13hello-service.proto\x12\x03api\"*\n" + |
| 120 |
"\fHelloRequest\x12\x1a\n" + |
| 121 |
"\bgreeting\x18\x01 \x01(\tR\bgreeting\"%\n" + |
| 122 |
"\rHelloResponse\x12\x14\n" + |
| 123 |
"\x05reply\x18\x01 \x01(\tR\x05reply2\x84\x02\n" + |
| 124 |
"\fHelloService\x121\n" + |
| 125 |
"\bSayHello\x12\x11.api.HelloRequest\x1a\x12.api.HelloResponse\x12?\n" + |
| 126 |
"\x14SayHelloServerStream\x12\x11.api.HelloRequest\x1a\x12.api.HelloResponse0\x01\x12?\n" + |
| 127 |
"\x14SayHelloClientStream\x12\x11.api.HelloRequest\x1a\x12.api.HelloResponse(\x01\x12?\n" + |
| 128 |
"\x12SayHelloBidiStream\x12\x11.api.HelloRequest\x1a\x12.api.HelloResponse(\x010\x01BYZWgo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/example/apib\x06proto3" |
| 129 |
|
| 130 |
var ( |
| 131 |
file_hello_service_proto_rawDescOnce sync.Once |
| 132 |
file_hello_service_proto_rawDescData []byte |
| 133 |
) |
| 134 |
|
| 135 |
func file_hello_service_proto_rawDescGZIP() []byte { |
| 136 |
file_hello_service_proto_rawDescOnce.Do(func() { |
| 137 |
file_hello_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_hello_service_proto_rawDesc), len(file_hello_service_proto_rawDesc))) |
| 138 |
}) |
| 139 |
return file_hello_service_proto_rawDescData |
| 140 |
} |
| 141 |
|
| 142 |
var file_hello_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 143 |
var file_hello_service_proto_goTypes = []any{ |
| 144 |
(*HelloRequest)(nil), |
| 145 |
(*HelloResponse)(nil), |
| 146 |
} |
| 147 |
var file_hello_service_proto_depIdxs = []int32{ |
| 148 |
0, |
| 149 |
0, |
| 150 |
0, |
| 151 |
0, |
| 152 |
1, |
| 153 |
1, |
| 154 |
1, |
| 155 |
1, |
| 156 |
4, |
| 157 |
0, |
| 158 |
0, |
| 159 |
0, |
| 160 |
0, |
| 161 |
} |
| 162 |
|
| 163 |
func init() { file_hello_service_proto_init() } |
| 164 |
func file_hello_service_proto_init() { |
| 165 |
if File_hello_service_proto != nil { |
| 166 |
return |
| 167 |
} |
| 168 |
type x struct{} |
| 169 |
out := protoimpl.TypeBuilder{ |
| 170 |
File: protoimpl.DescBuilder{ |
| 171 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 172 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_hello_service_proto_rawDesc), len(file_hello_service_proto_rawDesc)), |
| 173 |
NumEnums: 0, |
| 174 |
NumMessages: 2, |
| 175 |
NumExtensions: 0, |
| 176 |
NumServices: 1, |
| 177 |
}, |
| 178 |
GoTypes: file_hello_service_proto_goTypes, |
| 179 |
DependencyIndexes: file_hello_service_proto_depIdxs, |
| 180 |
MessageInfos: file_hello_service_proto_msgTypes, |
| 181 |
}.Build() |
| 182 |
File_hello_service_proto = out.File |
| 183 |
file_hello_service_proto_goTypes = nil |
| 184 |
file_hello_service_proto_depIdxs = nil |
| 185 |
} |