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: cmd/protoc-gen-go/testdata/extensions/extra/extra.proto
7
8package extra
9
10import (
11	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13	reflect "reflect"
14	sync "sync"
15)
16
17type ExtraMessage struct {
18	state         protoimpl.MessageState
19	sizeCache     protoimpl.SizeCache
20	unknownFields protoimpl.UnknownFields
21
22	Data []byte `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
23}
24
25func (x *ExtraMessage) Reset() {
26	*x = ExtraMessage{}
27	if protoimpl.UnsafeEnabled {
28		mi := &file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes[0]
29		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
30		ms.StoreMessageInfo(mi)
31	}
32}
33
34func (x *ExtraMessage) String() string {
35	return protoimpl.X.MessageStringOf(x)
36}
37
38func (*ExtraMessage) ProtoMessage() {}
39
40func (x *ExtraMessage) ProtoReflect() protoreflect.Message {
41	mi := &file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes[0]
42	if protoimpl.UnsafeEnabled && x != nil {
43		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
44		if ms.LoadMessageInfo() == nil {
45			ms.StoreMessageInfo(mi)
46		}
47		return ms
48	}
49	return mi.MessageOf(x)
50}
51
52// Deprecated: Use ExtraMessage.ProtoReflect.Descriptor instead.
53func (*ExtraMessage) Descriptor() ([]byte, []int) {
54	return file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDescGZIP(), []int{0}
55}
56
57func (x *ExtraMessage) GetData() []byte {
58	if x != nil {
59		return x.Data
60	}
61	return nil
62}
63
64var File_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto protoreflect.FileDescriptor
65
66var file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDesc = []byte{
67	0x0a, 0x37, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
68	0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x65, 0x78, 0x74,
69	0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x2f, 0x65, 0x78,
70	0x74, 0x72, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x70, 0x72, 0x6f,
71	0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
72	0x69, 0x6f, 0x6e, 0x2e, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x22, 0x0a, 0x0c, 0x45, 0x78, 0x74,
73	0x72, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74,
74	0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x48, 0x5a,
75	0x46, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
76	0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f,
77	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65,
78	0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
79	0x73, 0x2f, 0x65, 0x78, 0x74, 0x72, 0x61,
80}
81
82var (
83	file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDescOnce sync.Once
84	file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDescData = file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDesc
85)
86
87func file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDescGZIP() []byte {
88	file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDescOnce.Do(func() {
89		file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDescData)
90	})
91	return file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDescData
92}
93
94var file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
95var file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_goTypes = []interface{}{
96	(*ExtraMessage)(nil), // 0: goproto.protoc.extension.extra.ExtraMessage
97}
98var file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_depIdxs = []int32{
99	0, // [0:0] is the sub-list for method output_type
100	0, // [0:0] is the sub-list for method input_type
101	0, // [0:0] is the sub-list for extension type_name
102	0, // [0:0] is the sub-list for extension extendee
103	0, // [0:0] is the sub-list for field type_name
104}
105
106func init() { file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_init() }
107func file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_init() {
108	if File_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto != nil {
109		return
110	}
111	if !protoimpl.UnsafeEnabled {
112		file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
113			switch v := v.(*ExtraMessage); i {
114			case 0:
115				return &v.state
116			case 1:
117				return &v.sizeCache
118			case 2:
119				return &v.unknownFields
120			default:
121				return nil
122			}
123		}
124	}
125	type x struct{}
126	out := protoimpl.TypeBuilder{
127		File: protoimpl.DescBuilder{
128			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
129			RawDescriptor: file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDesc,
130			NumEnums:      0,
131			NumMessages:   1,
132			NumExtensions: 0,
133			NumServices:   0,
134		},
135		GoTypes:           file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_goTypes,
136		DependencyIndexes: file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_depIdxs,
137		MessageInfos:      file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes,
138	}.Build()
139	File_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto = out.File
140	file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDesc = nil
141	file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_goTypes = nil
142	file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_depIdxs = nil
143}
144