1  
     2  
     3  
     4  
     5  
     6  
     7  
     8  package comments
     9  
    10  import (
    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  
    18  type DeprecatedEnum int32
    19  
    20  const (
    21  	
    22  	DeprecatedEnum_DEPRECATED DeprecatedEnum = 0
    23  )
    24  
    25  
    26  var (
    27  	DeprecatedEnum_name = map[int32]string{
    28  		0: "DEPRECATED",
    29  	}
    30  	DeprecatedEnum_value = map[string]int32{
    31  		"DEPRECATED": 0,
    32  	}
    33  )
    34  
    35  func (x DeprecatedEnum) Enum() *DeprecatedEnum {
    36  	p := new(DeprecatedEnum)
    37  	*p = x
    38  	return p
    39  }
    40  
    41  func (x DeprecatedEnum) String() string {
    42  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    43  }
    44  
    45  func (DeprecatedEnum) Descriptor() protoreflect.EnumDescriptor {
    46  	return file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_enumTypes[0].Descriptor()
    47  }
    48  
    49  func (DeprecatedEnum) Type() protoreflect.EnumType {
    50  	return &file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_enumTypes[0]
    51  }
    52  
    53  func (x DeprecatedEnum) Number() protoreflect.EnumNumber {
    54  	return protoreflect.EnumNumber(x)
    55  }
    56  
    57  
    58  func (DeprecatedEnum) EnumDescriptor() ([]byte, []int) {
    59  	return file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescGZIP(), []int{0}
    60  }
    61  
    62  
    63  type DeprecatedMessage struct {
    64  	state         protoimpl.MessageState
    65  	sizeCache     protoimpl.SizeCache
    66  	unknownFields protoimpl.UnknownFields
    67  
    68  	
    69  	DeprecatedField string `protobuf:"bytes,1,opt,name=deprecated_field,json=deprecatedField,proto3" json:"deprecated_field,omitempty"`
    70  }
    71  
    72  func (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  
    81  func (x *DeprecatedMessage) String() string {
    82  	return protoimpl.X.MessageStringOf(x)
    83  }
    84  
    85  func (*DeprecatedMessage) ProtoMessage() {}
    86  
    87  func (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  
   100  func (*DeprecatedMessage) Descriptor() ([]byte, []int) {
   101  	return file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescGZIP(), []int{0}
   102  }
   103  
   104  
   105  func (x *DeprecatedMessage) GetDeprecatedField() string {
   106  	if x != nil {
   107  		return x.DeprecatedField
   108  	}
   109  	return ""
   110  }
   111  
   112  var File_cmd_protoc_gen_go_testdata_comments_deprecated_proto protoreflect.FileDescriptor
   113  
   114  var 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  
   134  var (
   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  
   139  func 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  
   146  var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   147  var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   148  var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_goTypes = []interface{}{
   149  	(DeprecatedEnum)(0),       
   150  	(*DeprecatedMessage)(nil), 
   151  }
   152  var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_depIdxs = []int32{
   153  	0, 
   154  	0, 
   155  	0, 
   156  	0, 
   157  	0, 
   158  }
   159  
   160  func init() { file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_init() }
   161  func 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  
View as plain text