1// Copyright 2020 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/retention/options_message.proto 7 8package retention 9 10import ( 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 descriptorpb "google.golang.org/protobuf/types/descriptorpb" 14 reflect "reflect" 15 sync "sync" 16) 17 18// Retention attributes set on fields nested within a message 19type OptionsMessage struct { 20 state protoimpl.MessageState 21 sizeCache protoimpl.SizeCache 22 unknownFields protoimpl.UnknownFields 23 24 PlainField *int32 `protobuf:"varint,1,opt,name=plain_field,json=plainField" json:"plain_field,omitempty"` 25 RuntimeRetentionField *int32 `protobuf:"varint,2,opt,name=runtime_retention_field,json=runtimeRetentionField" json:"runtime_retention_field,omitempty"` 26 SourceRetentionField *int32 `protobuf:"varint,3,opt,name=source_retention_field,json=sourceRetentionField" json:"source_retention_field,omitempty"` 27} 28 29func (x *OptionsMessage) Reset() { 30 *x = OptionsMessage{} 31 if protoimpl.UnsafeEnabled { 32 mi := &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes[0] 33 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 34 ms.StoreMessageInfo(mi) 35 } 36} 37 38func (x *OptionsMessage) String() string { 39 return protoimpl.X.MessageStringOf(x) 40} 41 42func (*OptionsMessage) ProtoMessage() {} 43 44func (x *OptionsMessage) ProtoReflect() protoreflect.Message { 45 mi := &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes[0] 46 if protoimpl.UnsafeEnabled && x != nil { 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 if ms.LoadMessageInfo() == nil { 49 ms.StoreMessageInfo(mi) 50 } 51 return ms 52 } 53 return mi.MessageOf(x) 54} 55 56// Deprecated: Use OptionsMessage.ProtoReflect.Descriptor instead. 57func (*OptionsMessage) Descriptor() ([]byte, []int) { 58 return file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDescGZIP(), []int{0} 59} 60 61func (x *OptionsMessage) GetPlainField() int32 { 62 if x != nil && x.PlainField != nil { 63 return *x.PlainField 64 } 65 return 0 66} 67 68func (x *OptionsMessage) GetRuntimeRetentionField() int32 { 69 if x != nil && x.RuntimeRetentionField != nil { 70 return *x.RuntimeRetentionField 71 } 72 return 0 73} 74 75func (x *OptionsMessage) GetSourceRetentionField() int32 { 76 if x != nil && x.SourceRetentionField != nil { 77 return *x.SourceRetentionField 78 } 79 return 0 80} 81 82var file_cmd_protoc_gen_go_testdata_retention_options_message_proto_extTypes = []protoimpl.ExtensionInfo{ 83 { 84 ExtendedType: (*descriptorpb.FileOptions)(nil), 85 ExtensionType: (*int32)(nil), 86 Field: 511807920, 87 Name: "testretention.imported_plain_option", 88 Tag: "varint,511807920,opt,name=imported_plain_option", 89 Filename: "cmd/protoc-gen-go/testdata/retention/options_message.proto", 90 }, 91 { 92 ExtendedType: (*descriptorpb.FileOptions)(nil), 93 ExtensionType: (*int32)(nil), 94 Field: 512484074, 95 Name: "testretention.imported_runtime_retention_option", 96 Tag: "varint,512484074,opt,name=imported_runtime_retention_option", 97 Filename: "cmd/protoc-gen-go/testdata/retention/options_message.proto", 98 }, 99 { 100 ExtendedType: (*descriptorpb.FileOptions)(nil), 101 ExtensionType: (*int32)(nil), 102 Field: 512645287, 103 Name: "testretention.imported_source_retention_option", 104 Tag: "varint,512645287,opt,name=imported_source_retention_option", 105 Filename: "cmd/protoc-gen-go/testdata/retention/options_message.proto", 106 }, 107 { 108 ExtendedType: (*descriptorpb.FileOptions)(nil), 109 ExtensionType: (*OptionsMessage)(nil), 110 Field: 504871168, 111 Name: "testretention.file_option", 112 Tag: "bytes,504871168,opt,name=file_option", 113 Filename: "cmd/protoc-gen-go/testdata/retention/options_message.proto", 114 }, 115} 116 117// Extension fields to descriptorpb.FileOptions. 118var ( 119 // optional int32 imported_plain_option = 511807920; 120 E_ImportedPlainOption = &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_extTypes[0] 121 // optional int32 imported_runtime_retention_option = 512484074; 122 E_ImportedRuntimeRetentionOption = &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_extTypes[1] 123 // optional int32 imported_source_retention_option = 512645287; 124 E_ImportedSourceRetentionOption = &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_extTypes[2] 125 // optional testretention.OptionsMessage file_option = 504871168; 126 E_FileOption = &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_extTypes[3] 127) 128 129var File_cmd_protoc_gen_go_testdata_retention_options_message_proto protoreflect.FileDescriptor 130 131var file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDesc = []byte{ 132 0x0a, 0x3a, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 133 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x74, 134 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x6d, 135 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x74, 0x65, 136 0x73, 0x74, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 137 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 138 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x01, 139 0x0a, 0x0e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 140 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 141 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x46, 0x69, 0x65, 0x6c, 142 0x64, 0x12, 0x3b, 0x0a, 0x17, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x65, 0x74, 143 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 144 0x28, 0x05, 0x42, 0x03, 0x88, 0x01, 0x01, 0x52, 0x15, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 145 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x39, 146 0x0a, 0x16, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 147 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 148 0x88, 0x01, 0x02, 0x52, 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x74, 0x65, 0x6e, 149 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x54, 0x0a, 0x15, 0x69, 0x6d, 0x70, 150 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x5f, 0x6f, 0x70, 0x74, 0x69, 151 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 152 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 153 0x18, 0xb0, 0xa3, 0x86, 0xf4, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x69, 0x6d, 0x70, 0x6f, 154 0x72, 0x74, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 155 0x70, 0x0a, 0x21, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x74, 156 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x70, 157 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 158 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 159 0x6e, 0x73, 0x18, 0xea, 0xc5, 0xaf, 0xf4, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0x88, 0x01, 160 0x01, 0x52, 0x1e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x75, 0x6e, 0x74, 0x69, 161 0x6d, 0x65, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 162 0x6e, 0x3a, 0x6e, 0x0a, 0x20, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x6f, 163 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 164 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 165 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 166 0x6f, 0x6e, 0x73, 0x18, 0xa7, 0xb1, 0xb9, 0xf4, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0x88, 167 0x01, 0x02, 0x52, 0x1d, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x53, 0x6f, 0x75, 0x72, 168 0x63, 0x65, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 169 0x6e, 0x3a, 0x60, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 170 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 171 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x80, 172 0xf2, 0xde, 0xf0, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x72, 173 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 174 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 175 0x69, 0x6f, 0x6e, 0x42, 0x41, 0x5a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 176 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 177 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 178 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x74, 179 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 180} 181 182var ( 183 file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDescOnce sync.Once 184 file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDescData = file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDesc 185) 186 187func file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDescGZIP() []byte { 188 file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDescOnce.Do(func() { 189 file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDescData) 190 }) 191 return file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDescData 192} 193 194var file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 195var file_cmd_protoc_gen_go_testdata_retention_options_message_proto_goTypes = []interface{}{ 196 (*OptionsMessage)(nil), // 0: testretention.OptionsMessage 197 (*descriptorpb.FileOptions)(nil), // 1: google.protobuf.FileOptions 198} 199var file_cmd_protoc_gen_go_testdata_retention_options_message_proto_depIdxs = []int32{ 200 1, // 0: testretention.imported_plain_option:extendee -> google.protobuf.FileOptions 201 1, // 1: testretention.imported_runtime_retention_option:extendee -> google.protobuf.FileOptions 202 1, // 2: testretention.imported_source_retention_option:extendee -> google.protobuf.FileOptions 203 1, // 3: testretention.file_option:extendee -> google.protobuf.FileOptions 204 0, // 4: testretention.file_option:type_name -> testretention.OptionsMessage 205 5, // [5:5] is the sub-list for method output_type 206 5, // [5:5] is the sub-list for method input_type 207 4, // [4:5] is the sub-list for extension type_name 208 0, // [0:4] is the sub-list for extension extendee 209 0, // [0:0] is the sub-list for field type_name 210} 211 212func init() { file_cmd_protoc_gen_go_testdata_retention_options_message_proto_init() } 213func file_cmd_protoc_gen_go_testdata_retention_options_message_proto_init() { 214 if File_cmd_protoc_gen_go_testdata_retention_options_message_proto != nil { 215 return 216 } 217 if !protoimpl.UnsafeEnabled { 218 file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 219 switch v := v.(*OptionsMessage); i { 220 case 0: 221 return &v.state 222 case 1: 223 return &v.sizeCache 224 case 2: 225 return &v.unknownFields 226 default: 227 return nil 228 } 229 } 230 } 231 type x struct{} 232 out := protoimpl.TypeBuilder{ 233 File: protoimpl.DescBuilder{ 234 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 235 RawDescriptor: file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDesc, 236 NumEnums: 0, 237 NumMessages: 1, 238 NumExtensions: 4, 239 NumServices: 0, 240 }, 241 GoTypes: file_cmd_protoc_gen_go_testdata_retention_options_message_proto_goTypes, 242 DependencyIndexes: file_cmd_protoc_gen_go_testdata_retention_options_message_proto_depIdxs, 243 MessageInfos: file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes, 244 ExtensionInfos: file_cmd_protoc_gen_go_testdata_retention_options_message_proto_extTypes, 245 }.Build() 246 File_cmd_protoc_gen_go_testdata_retention_options_message_proto = out.File 247 file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDesc = nil 248 file_cmd_protoc_gen_go_testdata_retention_options_message_proto_goTypes = nil 249 file_cmd_protoc_gen_go_testdata_retention_options_message_proto_depIdxs = nil 250} 251