go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/gae/service/datastore/internal/testprotos/example.pb.go (about) 1 // Copyright 2020 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.31.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/gae/service/datastore/internal/testprotos/example.proto 20 21 package testprotos 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 durationpb "google.golang.org/protobuf/types/known/durationpb" 27 reflect "reflect" 28 sync "sync" 29 ) 30 31 const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36 ) 37 38 type Msg struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"` 44 Dur *durationpb.Duration `protobuf:"bytes,2,opt,name=dur,proto3" json:"dur,omitempty"` 45 } 46 47 func (x *Msg) Reset() { 48 *x = Msg{} 49 if protoimpl.UnsafeEnabled { 50 mi := &file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_msgTypes[0] 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 ms.StoreMessageInfo(mi) 53 } 54 } 55 56 func (x *Msg) String() string { 57 return protoimpl.X.MessageStringOf(x) 58 } 59 60 func (*Msg) ProtoMessage() {} 61 62 func (x *Msg) ProtoReflect() protoreflect.Message { 63 mi := &file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_msgTypes[0] 64 if protoimpl.UnsafeEnabled && x != nil { 65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 66 if ms.LoadMessageInfo() == nil { 67 ms.StoreMessageInfo(mi) 68 } 69 return ms 70 } 71 return mi.MessageOf(x) 72 } 73 74 // Deprecated: Use Msg.ProtoReflect.Descriptor instead. 75 func (*Msg) Descriptor() ([]byte, []int) { 76 return file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDescGZIP(), []int{0} 77 } 78 79 func (x *Msg) GetStr() string { 80 if x != nil { 81 return x.Str 82 } 83 return "" 84 } 85 86 func (x *Msg) GetDur() *durationpb.Duration { 87 if x != nil { 88 return x.Dur 89 } 90 return nil 91 } 92 93 var File_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto protoreflect.FileDescriptor 94 95 var file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDesc = []byte{ 96 0x0a, 0x4c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 97 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x61, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 98 0x63, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, 99 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 100 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 101 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 102 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 103 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x44, 0x0a, 0x03, 0x4d, 0x73, 104 0x67, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 105 0x73, 0x74, 0x72, 0x12, 0x2b, 0x0a, 0x03, 0x64, 0x75, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 106 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 107 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x64, 0x75, 0x72, 108 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 109 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x67, 0x61, 0x65, 0x2f, 0x73, 0x65, 0x72, 110 0x76, 0x69, 0x63, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x69, 111 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 112 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 113 } 114 115 var ( 116 file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDescOnce sync.Once 117 file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDescData = file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDesc 118 ) 119 120 func file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDescGZIP() []byte { 121 file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDescOnce.Do(func() { 122 file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDescData) 123 }) 124 return file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDescData 125 } 126 127 var file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 128 var file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_goTypes = []interface{}{ 129 (*Msg)(nil), // 0: testprotos.Msg 130 (*durationpb.Duration)(nil), // 1: google.protobuf.Duration 131 } 132 var file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_depIdxs = []int32{ 133 1, // 0: testprotos.Msg.dur:type_name -> google.protobuf.Duration 134 1, // [1:1] is the sub-list for method output_type 135 1, // [1:1] is the sub-list for method input_type 136 1, // [1:1] is the sub-list for extension type_name 137 1, // [1:1] is the sub-list for extension extendee 138 0, // [0:1] is the sub-list for field type_name 139 } 140 141 func init() { file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_init() } 142 func file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_init() { 143 if File_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto != nil { 144 return 145 } 146 if !protoimpl.UnsafeEnabled { 147 file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 148 switch v := v.(*Msg); i { 149 case 0: 150 return &v.state 151 case 1: 152 return &v.sizeCache 153 case 2: 154 return &v.unknownFields 155 default: 156 return nil 157 } 158 } 159 } 160 type x struct{} 161 out := protoimpl.TypeBuilder{ 162 File: protoimpl.DescBuilder{ 163 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 164 RawDescriptor: file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDesc, 165 NumEnums: 0, 166 NumMessages: 1, 167 NumExtensions: 0, 168 NumServices: 0, 169 }, 170 GoTypes: file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_goTypes, 171 DependencyIndexes: file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_depIdxs, 172 MessageInfos: file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_msgTypes, 173 }.Build() 174 File_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto = out.File 175 file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_rawDesc = nil 176 file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_goTypes = nil 177 file_go_chromium_org_luci_gae_service_datastore_internal_testprotos_example_proto_depIdxs = nil 178 }