| 1 |
// Copyright 2018 The Go Authors. All rights reserved. |
| 2 |
// Use of this source code is governed by a BSD-style |
| 3 |
// license that can be found in the LICENSE file. |
| 4 |
|
| 5 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 6 |
// source: internal/testprotos/test3/test3_hybrid/test_import.hybrid.proto |
| 7 |
|
| 8 |
//go:build protoopaque |
| 9 |
|
| 10 |
package test3_hybrid |
| 11 |
|
| 12 |
import ( |
| 13 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 14 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 15 |
reflect "reflect" |
| 16 |
unsafe "unsafe" |
| 17 |
) |
| 18 |
|
| 19 |
type ImportEnum int32 |
| 20 |
|
| 21 |
const ( |
| 22 |
ImportEnum_IMPORT_ZERO ImportEnum = 0 |
| 23 |
) |
| 24 |
|
| 25 |
// Enum value maps for ImportEnum. |
| 26 |
var ( |
| 27 |
ImportEnum_name = map[int32]string{ |
| 28 |
0: "IMPORT_ZERO", |
| 29 |
} |
| 30 |
ImportEnum_value = map[string]int32{ |
| 31 |
"IMPORT_ZERO": 0, |
| 32 |
} |
| 33 |
) |
| 34 |
|
| 35 |
func (x ImportEnum) Enum() *ImportEnum { |
| 36 |
p := new(ImportEnum) |
| 37 |
*p = x |
| 38 |
return p |
| 39 |
} |
| 40 |
|
| 41 |
func (x ImportEnum) String() string { |
| 42 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 43 |
} |
| 44 |
|
| 45 |
func (ImportEnum) Descriptor() protoreflect.EnumDescriptor { |
| 46 |
return file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_enumTypes[0].Descriptor() |
| 47 |
} |
| 48 |
|
| 49 |
func (ImportEnum) Type() protoreflect.EnumType { |
| 50 |
return &file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_enumTypes[0] |
| 51 |
} |
| 52 |
|
| 53 |
func (x ImportEnum) Number() protoreflect.EnumNumber { |
| 54 |
return protoreflect.EnumNumber(x) |
| 55 |
} |
| 56 |
|
| 57 |
type ImportMessage struct { |
| 58 |
state protoimpl.MessageState `protogen:"opaque.v1"` |
| 59 |
unknownFields protoimpl.UnknownFields |
| 60 |
sizeCache protoimpl.SizeCache |
| 61 |
} |
| 62 |
|
| 63 |
func (x *ImportMessage) Reset() { |
| 64 |
*x = ImportMessage{} |
| 65 |
mi := &file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_msgTypes[0] |
| 66 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 67 |
ms.StoreMessageInfo(mi) |
| 68 |
} |
| 69 |
|
| 70 |
func (x *ImportMessage) String() string { |
| 71 |
return protoimpl.X.MessageStringOf(x) |
| 72 |
} |
| 73 |
|
| 74 |
func (*ImportMessage) ProtoMessage() {} |
| 75 |
|
| 76 |
func (x *ImportMessage) ProtoReflect() protoreflect.Message { |
| 77 |
mi := &file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_msgTypes[0] |
| 78 |
if x != nil { |
| 79 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 80 |
if ms.LoadMessageInfo() == nil { |
| 81 |
ms.StoreMessageInfo(mi) |
| 82 |
} |
| 83 |
return ms |
| 84 |
} |
| 85 |
return mi.MessageOf(x) |
| 86 |
} |
| 87 |
|
| 88 |
type ImportMessage_builder struct { |
| 89 |
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder. |
| 90 |
|
| 91 |
} |
| 92 |
|
| 93 |
func (b0 ImportMessage_builder) Build() *ImportMessage { |
| 94 |
m0 := &ImportMessage{} |
| 95 |
b, x := &b0, m0 |
| 96 |
_, _ = b, x |
| 97 |
return m0 |
| 98 |
} |
| 99 |
|
| 100 |
var File_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto protoreflect.FileDescriptor |
| 101 |
|
| 102 |
const file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_rawDesc = "" + |
| 103 |
"\n" + |
| 104 |
"?internal/testprotos/test3/test3_hybrid/test_import.hybrid.proto\x12\x1ahybrid.goproto.proto.test3\"\x0f\n" + |
| 105 |
"\rImportMessage*\x1d\n" + |
| 106 |
"\n" + |
| 107 |
"ImportEnum\x12\x0f\n" + |
| 108 |
"\vIMPORT_ZERO\x10\x00BCZAgoogle.golang.org/protobuf/internal/testprotos/test3/test3_hybridb\x06proto3" |
| 109 |
|
| 110 |
var file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 111 |
var file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 112 |
var file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_goTypes = []any{ |
| 113 |
(ImportEnum)(0), // 0: hybrid.goproto.proto.test3.ImportEnum |
| 114 |
(*ImportMessage)(nil), // 1: hybrid.goproto.proto.test3.ImportMessage |
| 115 |
} |
| 116 |
var file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_depIdxs = []int32{ |
| 117 |
0, // [0:0] is the sub-list for method output_type |
| 118 |
0, // [0:0] is the sub-list for method input_type |
| 119 |
0, // [0:0] is the sub-list for extension type_name |
| 120 |
0, // [0:0] is the sub-list for extension extendee |
| 121 |
0, // [0:0] is the sub-list for field type_name |
| 122 |
} |
| 123 |
|
| 124 |
func init() { file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_init() } |
| 125 |
func file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_init() { |
| 126 |
if File_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto != nil { |
| 127 |
return |
| 128 |
} |
| 129 |
type x struct{} |
| 130 |
out := protoimpl.TypeBuilder{ |
| 131 |
File: protoimpl.DescBuilder{ |
| 132 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 133 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_rawDesc), len(file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_rawDesc)), |
| 134 |
NumEnums: 1, |
| 135 |
NumMessages: 1, |
| 136 |
NumExtensions: 0, |
| 137 |
NumServices: 0, |
| 138 |
}, |
| 139 |
GoTypes: file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_goTypes, |
| 140 |
DependencyIndexes: file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_depIdxs, |
| 141 |
EnumInfos: file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_enumTypes, |
| 142 |
MessageInfos: file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_msgTypes, |
| 143 |
}.Build() |
| 144 |
File_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto = out.File |
| 145 |
file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_goTypes = nil |
| 146 |
file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_depIdxs = nil |
| 147 |
} |