xref: /aosp_15_r20/external/golang-protobuf/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go (revision 1c12ee1efe575feb122dbf939ff15148a3b3e8f2)
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// cmd/protoc-gen-go/testdata/comments/deprecated.proto is a deprecated file.
7
8package comments
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
17// Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated.
18type DeprecatedEnum int32
19
20const (
21	// Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated.
22	DeprecatedEnum_DEPRECATED DeprecatedEnum = 0
23)
24
25// Enum value maps for DeprecatedEnum.
26var (
27	DeprecatedEnum_name = map[int32]string{
28		0: "DEPRECATED",
29	}
30	DeprecatedEnum_value = map[string]int32{
31		"DEPRECATED": 0,
32	}
33)
34
35func (x DeprecatedEnum) Enum() *DeprecatedEnum {
36	p := new(DeprecatedEnum)
37	*p = x
38	return p
39}
40
41func (x DeprecatedEnum) String() string {
42	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
43}
44
45func (DeprecatedEnum) Descriptor() protoreflect.EnumDescriptor {
46	return file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_enumTypes[0].Descriptor()
47}
48
49func (DeprecatedEnum) Type() protoreflect.EnumType {
50	return &file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_enumTypes[0]
51}
52
53func (x DeprecatedEnum) Number() protoreflect.EnumNumber {
54	return protoreflect.EnumNumber(x)
55}
56
57// Deprecated: Use DeprecatedEnum.Descriptor instead.
58func (DeprecatedEnum) EnumDescriptor() ([]byte, []int) {
59	return file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescGZIP(), []int{0}
60}
61
62// Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated.
63type DeprecatedMessage struct {
64	state         protoimpl.MessageState
65	sizeCache     protoimpl.SizeCache
66	unknownFields protoimpl.UnknownFields
67
68	// Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated.
69	DeprecatedField string `protobuf:"bytes,1,opt,name=deprecated_field,json=deprecatedField,proto3" json:"deprecated_field,omitempty"`
70}
71
72func (x *DeprecatedMessage) Reset() {
73	*x = DeprecatedMessage{}
74	if protoimpl.UnsafeEnabled {
75		mi := &file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes[0]
76		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77		ms.StoreMessageInfo(mi)
78	}
79}
80
81func (x *DeprecatedMessage) String() string {
82	return protoimpl.X.MessageStringOf(x)
83}
84
85func (*DeprecatedMessage) ProtoMessage() {}
86
87func (x *DeprecatedMessage) ProtoReflect() protoreflect.Message {
88	mi := &file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes[0]
89	if protoimpl.UnsafeEnabled && x != nil {
90		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
91		if ms.LoadMessageInfo() == nil {
92			ms.StoreMessageInfo(mi)
93		}
94		return ms
95	}
96	return mi.MessageOf(x)
97}
98
99// Deprecated: Use DeprecatedMessage.ProtoReflect.Descriptor instead.
100func (*DeprecatedMessage) Descriptor() ([]byte, []int) {
101	return file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescGZIP(), []int{0}
102}
103
104// Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated.
105func (x *DeprecatedMessage) GetDeprecatedField() string {
106	if x != nil {
107		return x.DeprecatedField
108	}
109	return ""
110}
111
112var File_cmd_protoc_gen_go_testdata_comments_deprecated_proto protoreflect.FileDescriptor
113
114var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDesc = []byte{
115	0x0a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
116	0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d,
117	0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64,
118	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
119	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22,
120	0x46, 0x0a, 0x11, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73,
121	0x73, 0x61, 0x67, 0x65, 0x12, 0x2d, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74,
122	0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02,
123	0x18, 0x01, 0x52, 0x0f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69,
124	0x65, 0x6c, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x2a, 0x28, 0x0a, 0x0e, 0x44, 0x65, 0x70, 0x72, 0x65,
125	0x63, 0x61, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x0a, 0x44, 0x45, 0x50,
126	0x52, 0x45, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x02, 0x08, 0x01, 0x1a, 0x02, 0x18,
127	0x01, 0x42, 0x43, 0x5a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
128	0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
129	0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67,
130	0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
131	0x6e, 0x74, 0x73, 0xb8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
132}
133
134var (
135	file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescOnce sync.Once
136	file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescData = file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDesc
137)
138
139func file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescGZIP() []byte {
140	file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescOnce.Do(func() {
141		file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescData)
142	})
143	return file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescData
144}
145
146var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
147var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
148var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_goTypes = []interface{}{
149	(DeprecatedEnum)(0),       // 0: goproto.protoc.comments.DeprecatedEnum
150	(*DeprecatedMessage)(nil), // 1: goproto.protoc.comments.DeprecatedMessage
151}
152var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_depIdxs = []int32{
153	0, // [0:0] is the sub-list for method output_type
154	0, // [0:0] is the sub-list for method input_type
155	0, // [0:0] is the sub-list for extension type_name
156	0, // [0:0] is the sub-list for extension extendee
157	0, // [0:0] is the sub-list for field type_name
158}
159
160func init() { file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_init() }
161func file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_init() {
162	if File_cmd_protoc_gen_go_testdata_comments_deprecated_proto != nil {
163		return
164	}
165	if !protoimpl.UnsafeEnabled {
166		file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
167			switch v := v.(*DeprecatedMessage); i {
168			case 0:
169				return &v.state
170			case 1:
171				return &v.sizeCache
172			case 2:
173				return &v.unknownFields
174			default:
175				return nil
176			}
177		}
178	}
179	type x struct{}
180	out := protoimpl.TypeBuilder{
181		File: protoimpl.DescBuilder{
182			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
183			RawDescriptor: file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDesc,
184			NumEnums:      1,
185			NumMessages:   1,
186			NumExtensions: 0,
187			NumServices:   0,
188		},
189		GoTypes:           file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_goTypes,
190		DependencyIndexes: file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_depIdxs,
191		EnumInfos:         file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_enumTypes,
192		MessageInfos:      file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes,
193	}.Build()
194	File_cmd_protoc_gen_go_testdata_comments_deprecated_proto = out.File
195	file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDesc = nil
196	file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_goTypes = nil
197	file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_depIdxs = nil
198}
199