Debian Codegraph @

v2/internallog/internal/bookpb/book.pb.go

raw
1 // Copyright 2024, Google Inc.
2 // All rights reserved.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are
6 // met:
7 //
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above
11 // copyright notice, this list of conditions and the following disclaimer
12 // in the documentation and/or other materials provided with the
13 // distribution.
14 // * Neither the name of Google Inc. nor the names of its
15 // contributors may be used to endorse or promote products derived from
16 // this software without specific prior written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 // Code generated by protoc-gen-go. DO NOT EDIT.
31 // versions:
32 // protoc-gen-go v1.33.0
33 // protoc v5.28.2
34 // source: book.proto
35
36 package bookpb
37
38 import (
39 reflect "reflect"
40 sync "sync"
41
42 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
43 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
44 )
45
46 const (
47 // Verify that this generated code is sufficiently up-to-date.
48 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
49 // Verify that runtime/protoimpl is sufficiently up-to-date.
50 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
51 )
52
53 // A single book in the library.
54 type Book struct {
55 state protoimpl.MessageState
56 sizeCache protoimpl.SizeCache
57 unknownFields protoimpl.UnknownFields
58
59 // The title of the book.
60 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
61 // The name of the book author.
62 Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
63 }
64
65 func (x *Book) Reset() {
66 *x = Book{}
67 if protoimpl.UnsafeEnabled {
68 mi := &file_book_proto_msgTypes[0]
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 ms.StoreMessageInfo(mi)
71 }
72 }
73
74 func (x *Book) String() string {
75 return protoimpl.X.MessageStringOf(x)
76 }
77
78 func (*Book) ProtoMessage() {}
79
80 func (x *Book) ProtoReflect() protoreflect.Message {
81 mi := &file_book_proto_msgTypes[0]
82 if protoimpl.UnsafeEnabled && x != nil {
83 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
84 if ms.LoadMessageInfo() == nil {
85 ms.StoreMessageInfo(mi)
86 }
87 return ms
88 }
89 return mi.MessageOf(x)
90 }
91
92 // Deprecated: Use Book.ProtoReflect.Descriptor instead.
93 func (*Book) Descriptor() ([]byte, []int) {
94 return file_book_proto_rawDescGZIP(), []int{0}
95 }
96
97 func (x *Book) GetTitle() string {
98 if x != nil {
99 return x.Title
100 }
101 return ""
102 }
103
104 func (x *Book) GetAuthor() string {
105 if x != nil {
106 return x.Author
107 }
108 return ""
109 }
110
111 var File_book_proto protoreflect.FileDescriptor
112
113 var file_book_proto_rawDesc = []byte{
114 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x62, 0x6f,
115 0x6f, 0x6b, 0x22, 0x34, 0x0a, 0x04, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,
116 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
117 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
118 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68,
119 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
120 0x73, 0x2f, 0x67, 0x61, 0x78, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6c, 0x6f, 0x67,
121 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x70, 0x62,
122 0x3b, 0x62, 0x6f, 0x6f, 0x6b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
123 }
124
125 var (
126 file_book_proto_rawDescOnce sync.Once
127 file_book_proto_rawDescData = file_book_proto_rawDesc
128 )
129
130 func file_book_proto_rawDescGZIP() []byte {
131 file_book_proto_rawDescOnce.Do(func() {
132 file_book_proto_rawDescData = protoimpl.X.CompressGZIP(file_book_proto_rawDescData)
133 })
134 return file_book_proto_rawDescData
135 }
136
137 var file_book_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
138 var file_book_proto_goTypes = []interface{}{
139 (*Book)(nil), // 0: book.Book
140 }
141 var file_book_proto_depIdxs = []int32{
142 0, // [0:0] is the sub-list for method output_type
143 0, // [0:0] is the sub-list for method input_type
144 0, // [0:0] is the sub-list for extension type_name
145 0, // [0:0] is the sub-list for extension extendee
146 0, // [0:0] is the sub-list for field type_name
147 }
148
149 func init() { file_book_proto_init() }
150 func file_book_proto_init() {
151 if File_book_proto != nil {
152 return
153 }
154 if !protoimpl.UnsafeEnabled {
155 file_book_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
156 switch v := v.(*Book); i {
157 case 0:
158 return &v.state
159 case 1:
160 return &v.sizeCache
161 case 2:
162 return &v.unknownFields
163 default:
164 return nil
165 }
166 }
167 }
168 type x struct{}
169 out := protoimpl.TypeBuilder{
170 File: protoimpl.DescBuilder{
171 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
172 RawDescriptor: file_book_proto_rawDesc,
173 NumEnums: 0,
174 NumMessages: 1,
175 NumExtensions: 0,
176 NumServices: 0,
177 },
178 GoTypes: file_book_proto_goTypes,
179 DependencyIndexes: file_book_proto_depIdxs,
180 MessageInfos: file_book_proto_msgTypes,
181 }.Build()
182 File_book_proto = out.File
183 file_book_proto_rawDesc = nil
184 file_book_proto_goTypes = nil
185 file_book_proto_depIdxs = nil
186 }