• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ory / herodot / 13921307943

18 Mar 2025 10:46AM UTC coverage: 58.298% (-6.8%) from 65.13%
13921307943

push

github

web-flow
chore: copy helloworld proto service definitions to avoid import problems (#131)

0 of 122 new or added lines in 2 files covered. (0.0%)

678 of 1163 relevant lines covered (58.3%)

0.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/internal/helloworld.pb.go
1
// Copyright © 2025 Ory Corp
2
// SPDX-License-Identifier: Apache-2.0
3

4
package internal
5

6
// Copy from https://github.com/grpc/grpc-go/blob/1703656ba59e9ceeaa79d03b06ec171ae0e2f33f/examples/helloworld/helloworld/helloworld.pb.go to fix import issues
7

8
// Copyright 2015 gRPC authors.
9
//
10
// Licensed under the Apache License, Version 2.0 (the "License");
11
// you may not use this file except in compliance with the License.
12
// You may obtain a copy of the License at
13
//
14
//     http://www.apache.org/licenses/LICENSE-2.0
15
//
16
// Unless required by applicable law or agreed to in writing, software
17
// distributed under the License is distributed on an "AS IS" BASIS,
18
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
// See the License for the specific language governing permissions and
20
// limitations under the License.
21

22
// Code generated by protoc-gen-go. DO NOT EDIT.
23
// versions:
24
//         protoc-gen-go v1.36.5
25
//         protoc        v5.27.1
26
// source: examples/helloworld/helloworld/helloworld.proto
27

28
import (
29
        reflect "reflect"
30
        sync "sync"
31
        unsafe "unsafe"
32

33
        protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34
        protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35
)
36

37
const (
38
        // Verify that this generated code is sufficiently up-to-date.
39
        _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40
        // Verify that runtime/protoimpl is sufficiently up-to-date.
41
        _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42
)
43

44
// The request message containing the user's name.
45
type HelloRequest struct {
46
        state         protoimpl.MessageState `protogen:"open.v1"`
47
        Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
48
        unknownFields protoimpl.UnknownFields
49
        sizeCache     protoimpl.SizeCache
50
}
51

NEW
52
func (x *HelloRequest) Reset() {
×
NEW
53
        *x = HelloRequest{}
×
NEW
54
        mi := &file_examples_helloworld_helloworld_helloworld_proto_msgTypes[0]
×
NEW
55
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
NEW
56
        ms.StoreMessageInfo(mi)
×
NEW
57
}
×
58

NEW
59
func (x *HelloRequest) String() string {
×
NEW
60
        return protoimpl.X.MessageStringOf(x)
×
NEW
61
}
×
62

NEW
63
func (*HelloRequest) ProtoMessage() {}
×
64

NEW
65
func (x *HelloRequest) ProtoReflect() protoreflect.Message {
×
NEW
66
        mi := &file_examples_helloworld_helloworld_helloworld_proto_msgTypes[0]
×
NEW
67
        if x != nil {
×
NEW
68
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
NEW
69
                if ms.LoadMessageInfo() == nil {
×
NEW
70
                        ms.StoreMessageInfo(mi)
×
NEW
71
                }
×
NEW
72
                return ms
×
73
        }
NEW
74
        return mi.MessageOf(x)
×
75
}
76

77
// Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
NEW
78
func (*HelloRequest) Descriptor() ([]byte, []int) {
×
NEW
79
        return file_examples_helloworld_helloworld_helloworld_proto_rawDescGZIP(), []int{0}
×
NEW
80
}
×
81

NEW
82
func (x *HelloRequest) GetName() string {
×
NEW
83
        if x != nil {
×
NEW
84
                return x.Name
×
NEW
85
        }
×
NEW
86
        return ""
×
87
}
88

89
// The response message containing the greetings
90
type HelloReply struct {
91
        state         protoimpl.MessageState `protogen:"open.v1"`
92
        Message       string                 `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
93
        unknownFields protoimpl.UnknownFields
94
        sizeCache     protoimpl.SizeCache
95
}
96

NEW
97
func (x *HelloReply) Reset() {
×
NEW
98
        *x = HelloReply{}
×
NEW
99
        mi := &file_examples_helloworld_helloworld_helloworld_proto_msgTypes[1]
×
NEW
100
        ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
NEW
101
        ms.StoreMessageInfo(mi)
×
NEW
102
}
×
103

NEW
104
func (x *HelloReply) String() string {
×
NEW
105
        return protoimpl.X.MessageStringOf(x)
×
NEW
106
}
×
107

NEW
108
func (*HelloReply) ProtoMessage() {}
×
109

NEW
110
func (x *HelloReply) ProtoReflect() protoreflect.Message {
×
NEW
111
        mi := &file_examples_helloworld_helloworld_helloworld_proto_msgTypes[1]
×
NEW
112
        if x != nil {
×
NEW
113
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
NEW
114
                if ms.LoadMessageInfo() == nil {
×
NEW
115
                        ms.StoreMessageInfo(mi)
×
NEW
116
                }
×
NEW
117
                return ms
×
118
        }
NEW
119
        return mi.MessageOf(x)
×
120
}
121

122
// Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
NEW
123
func (*HelloReply) Descriptor() ([]byte, []int) {
×
NEW
124
        return file_examples_helloworld_helloworld_helloworld_proto_rawDescGZIP(), []int{1}
×
NEW
125
}
×
126

NEW
127
func (x *HelloReply) GetMessage() string {
×
NEW
128
        if x != nil {
×
NEW
129
                return x.Message
×
NEW
130
        }
×
NEW
131
        return ""
×
132
}
133

134
var File_examples_helloworld_helloworld_helloworld_proto protoreflect.FileDescriptor
135

136
var file_examples_helloworld_helloworld_helloworld_proto_rawDesc = string([]byte{
137
        0x0a, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f,
138
        0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64,
139
        0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74,
140
        0x6f, 0x12, 0x0a, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x22, 0x22, 0x0a,
141
        0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a,
142
        0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
143
        0x65, 0x22, 0x26, 0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12,
144
        0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
145
        0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x49, 0x0a, 0x07, 0x47, 0x72, 0x65,
146
        0x65, 0x74, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f,
147
        0x12, 0x18, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65,
148
        0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x68, 0x65, 0x6c,
149
        0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70,
150
        0x6c, 0x79, 0x22, 0x00, 0x42, 0x67, 0x0a, 0x1b, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e,
151
        0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f,
152
        0x72, 0x6c, 0x64, 0x42, 0x0f, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x50,
153
        0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
154
        0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x65,
155
        0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72,
156
        0x6c, 0x64, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x62, 0x06, 0x70,
157
        0x72, 0x6f, 0x74, 0x6f, 0x33,
158
})
159

160
var (
161
        file_examples_helloworld_helloworld_helloworld_proto_rawDescOnce sync.Once
162
        file_examples_helloworld_helloworld_helloworld_proto_rawDescData []byte
163
)
164

NEW
165
func file_examples_helloworld_helloworld_helloworld_proto_rawDescGZIP() []byte {
×
NEW
166
        file_examples_helloworld_helloworld_helloworld_proto_rawDescOnce.Do(func() {
×
NEW
167
                file_examples_helloworld_helloworld_helloworld_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_examples_helloworld_helloworld_helloworld_proto_rawDesc), len(file_examples_helloworld_helloworld_helloworld_proto_rawDesc)))
×
NEW
168
        })
×
NEW
169
        return file_examples_helloworld_helloworld_helloworld_proto_rawDescData
×
170
}
171

172
var file_examples_helloworld_helloworld_helloworld_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
173
var file_examples_helloworld_helloworld_helloworld_proto_goTypes = []any{
174
        (*HelloRequest)(nil), // 0: helloworld.HelloRequest
175
        (*HelloReply)(nil),   // 1: helloworld.HelloReply
176
}
177
var file_examples_helloworld_helloworld_helloworld_proto_depIdxs = []int32{
178
        0, // 0: helloworld.Greeter.SayHello:input_type -> helloworld.HelloRequest
179
        1, // 1: helloworld.Greeter.SayHello:output_type -> helloworld.HelloReply
180
        1, // [1:2] is the sub-list for method output_type
181
        0, // [0:1] is the sub-list for method input_type
182
        0, // [0:0] is the sub-list for extension type_name
183
        0, // [0:0] is the sub-list for extension extendee
184
        0, // [0:0] is the sub-list for field type_name
185
}
186

NEW
187
func init() { file_examples_helloworld_helloworld_helloworld_proto_init() }
×
NEW
188
func file_examples_helloworld_helloworld_helloworld_proto_init() {
×
NEW
189
        if File_examples_helloworld_helloworld_helloworld_proto != nil {
×
NEW
190
                return
×
NEW
191
        }
×
NEW
192
        type x struct{}
×
NEW
193
        out := protoimpl.TypeBuilder{
×
NEW
194
                File: protoimpl.DescBuilder{
×
NEW
195
                        GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
×
NEW
196
                        RawDescriptor: unsafe.Slice(unsafe.StringData(file_examples_helloworld_helloworld_helloworld_proto_rawDesc), len(file_examples_helloworld_helloworld_helloworld_proto_rawDesc)),
×
NEW
197
                        NumEnums:      0,
×
NEW
198
                        NumMessages:   2,
×
NEW
199
                        NumExtensions: 0,
×
NEW
200
                        NumServices:   1,
×
NEW
201
                },
×
NEW
202
                GoTypes:           file_examples_helloworld_helloworld_helloworld_proto_goTypes,
×
NEW
203
                DependencyIndexes: file_examples_helloworld_helloworld_helloworld_proto_depIdxs,
×
NEW
204
                MessageInfos:      file_examples_helloworld_helloworld_helloworld_proto_msgTypes,
×
NEW
205
        }.Build()
×
NEW
206
        File_examples_helloworld_helloworld_helloworld_proto = out.File
×
NEW
207
        file_examples_helloworld_helloworld_helloworld_proto_goTypes = nil
×
NEW
208
        file_examples_helloworld_helloworld_helloworld_proto_depIdxs = nil
×
209
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc