Debian Codegraph @

instrumentation/google.golang.org/grpc/otelgrpc/example/api/hello-service.pb.go

raw symbols SCIP
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 // Code generated by protoc-gen-go. DO NOT EDIT.
5 // versions:
6 // protoc-gen-go v1.36.11
7 // protoc v7.34.0
8 // source: hello-service.proto
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 // Verify that this generated code is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23 // Verify that runtime/protoimpl is sufficiently up-to-date.
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 // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
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 // Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
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), // 0: api.HelloRequest
145 (*HelloResponse)(nil), // 1: api.HelloResponse
146 }
147 var file_hello_service_proto_depIdxs = []int32{
148 0, // 0: api.HelloService.SayHello:input_type -> api.HelloRequest
149 0, // 1: api.HelloService.SayHelloServerStream:input_type -> api.HelloRequest
150 0, // 2: api.HelloService.SayHelloClientStream:input_type -> api.HelloRequest
151 0, // 3: api.HelloService.SayHelloBidiStream:input_type -> api.HelloRequest
152 1, // 4: api.HelloService.SayHello:output_type -> api.HelloResponse
153 1, // 5: api.HelloService.SayHelloServerStream:output_type -> api.HelloResponse
154 1, // 6: api.HelloService.SayHelloClientStream:output_type -> api.HelloResponse
155 1, // 7: api.HelloService.SayHelloBidiStream:output_type -> api.HelloResponse
156 4, // [4:8] is the sub-list for method output_type
157 0, // [0:4] is the sub-list for method input_type
158 0, // [0:0] is the sub-list for extension type_name
159 0, // [0:0] is the sub-list for extension extendee
160 0, // [0:0] is the sub-list for field type_name
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 }