github.com/bakjos/protoreflect@v1.9.2/internal/testprotos/nopkg/desc_test_nopkg_new.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0-devel
     4  // 	protoc        v3.12.0
     5  // source: nopkg/desc_test_nopkg_new.proto
     6  
     7  package nopkg
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoiface "google.golang.org/protobuf/runtime/protoiface"
    13  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    14  	reflect "reflect"
    15  	sync "sync"
    16  )
    17  
    18  const (
    19  	// Verify that this generated code is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    23  )
    24  
    25  // This is a compile-time assertion that a sufficiently up-to-date version
    26  // of the legacy proto package is being used.
    27  const _ = proto.ProtoPackageIsVersion4
    28  
    29  type TopLevel struct {
    30  	state           protoimpl.MessageState
    31  	sizeCache       protoimpl.SizeCache
    32  	unknownFields   protoimpl.UnknownFields
    33  	extensionFields protoimpl.ExtensionFields
    34  
    35  	I *int32   `protobuf:"varint,1,opt,name=i" json:"i,omitempty"`
    36  	J *int64   `protobuf:"varint,2,opt,name=j" json:"j,omitempty"`
    37  	K *int32   `protobuf:"zigzag32,3,opt,name=k" json:"k,omitempty"`
    38  	L *int64   `protobuf:"zigzag64,4,opt,name=l" json:"l,omitempty"`
    39  	M *uint32  `protobuf:"varint,5,opt,name=m" json:"m,omitempty"`
    40  	N *uint64  `protobuf:"varint,6,opt,name=n" json:"n,omitempty"`
    41  	O *uint32  `protobuf:"fixed32,7,opt,name=o" json:"o,omitempty"`
    42  	P *uint64  `protobuf:"fixed64,8,opt,name=p" json:"p,omitempty"`
    43  	Q *int32   `protobuf:"fixed32,9,opt,name=q" json:"q,omitempty"`
    44  	R *int64   `protobuf:"fixed64,10,opt,name=r" json:"r,omitempty"`
    45  	S *float32 `protobuf:"fixed32,11,opt,name=s" json:"s,omitempty"`
    46  	T *float64 `protobuf:"fixed64,12,opt,name=t" json:"t,omitempty"`
    47  	U []byte   `protobuf:"bytes,13,opt,name=u" json:"u,omitempty"`
    48  	V *string  `protobuf:"bytes,14,opt,name=v" json:"v,omitempty"`
    49  	W *bool    `protobuf:"varint,15,opt,name=w" json:"w,omitempty"`
    50  }
    51  
    52  func (x *TopLevel) Reset() {
    53  	*x = TopLevel{}
    54  	if protoimpl.UnsafeEnabled {
    55  		mi := &file_nopkg_desc_test_nopkg_new_proto_msgTypes[0]
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		ms.StoreMessageInfo(mi)
    58  	}
    59  }
    60  
    61  func (x *TopLevel) String() string {
    62  	return protoimpl.X.MessageStringOf(x)
    63  }
    64  
    65  func (*TopLevel) ProtoMessage() {}
    66  
    67  func (x *TopLevel) ProtoReflect() protoreflect.Message {
    68  	mi := &file_nopkg_desc_test_nopkg_new_proto_msgTypes[0]
    69  	if protoimpl.UnsafeEnabled && x != nil {
    70  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    71  		if ms.LoadMessageInfo() == nil {
    72  			ms.StoreMessageInfo(mi)
    73  		}
    74  		return ms
    75  	}
    76  	return mi.MessageOf(x)
    77  }
    78  
    79  // Deprecated: Use TopLevel.ProtoReflect.Descriptor instead.
    80  func (*TopLevel) Descriptor() ([]byte, []int) {
    81  	return file_nopkg_desc_test_nopkg_new_proto_rawDescGZIP(), []int{0}
    82  }
    83  
    84  var extRange_TopLevel = []protoiface.ExtensionRangeV1{
    85  	{Start: 100, End: 1000},
    86  }
    87  
    88  // Deprecated: Use TopLevel.ProtoReflect.Descriptor.ExtensionRanges instead.
    89  func (*TopLevel) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
    90  	return extRange_TopLevel
    91  }
    92  
    93  func (x *TopLevel) GetI() int32 {
    94  	if x != nil && x.I != nil {
    95  		return *x.I
    96  	}
    97  	return 0
    98  }
    99  
   100  func (x *TopLevel) GetJ() int64 {
   101  	if x != nil && x.J != nil {
   102  		return *x.J
   103  	}
   104  	return 0
   105  }
   106  
   107  func (x *TopLevel) GetK() int32 {
   108  	if x != nil && x.K != nil {
   109  		return *x.K
   110  	}
   111  	return 0
   112  }
   113  
   114  func (x *TopLevel) GetL() int64 {
   115  	if x != nil && x.L != nil {
   116  		return *x.L
   117  	}
   118  	return 0
   119  }
   120  
   121  func (x *TopLevel) GetM() uint32 {
   122  	if x != nil && x.M != nil {
   123  		return *x.M
   124  	}
   125  	return 0
   126  }
   127  
   128  func (x *TopLevel) GetN() uint64 {
   129  	if x != nil && x.N != nil {
   130  		return *x.N
   131  	}
   132  	return 0
   133  }
   134  
   135  func (x *TopLevel) GetO() uint32 {
   136  	if x != nil && x.O != nil {
   137  		return *x.O
   138  	}
   139  	return 0
   140  }
   141  
   142  func (x *TopLevel) GetP() uint64 {
   143  	if x != nil && x.P != nil {
   144  		return *x.P
   145  	}
   146  	return 0
   147  }
   148  
   149  func (x *TopLevel) GetQ() int32 {
   150  	if x != nil && x.Q != nil {
   151  		return *x.Q
   152  	}
   153  	return 0
   154  }
   155  
   156  func (x *TopLevel) GetR() int64 {
   157  	if x != nil && x.R != nil {
   158  		return *x.R
   159  	}
   160  	return 0
   161  }
   162  
   163  func (x *TopLevel) GetS() float32 {
   164  	if x != nil && x.S != nil {
   165  		return *x.S
   166  	}
   167  	return 0
   168  }
   169  
   170  func (x *TopLevel) GetT() float64 {
   171  	if x != nil && x.T != nil {
   172  		return *x.T
   173  	}
   174  	return 0
   175  }
   176  
   177  func (x *TopLevel) GetU() []byte {
   178  	if x != nil {
   179  		return x.U
   180  	}
   181  	return nil
   182  }
   183  
   184  func (x *TopLevel) GetV() string {
   185  	if x != nil && x.V != nil {
   186  		return *x.V
   187  	}
   188  	return ""
   189  }
   190  
   191  func (x *TopLevel) GetW() bool {
   192  	if x != nil && x.W != nil {
   193  		return *x.W
   194  	}
   195  	return false
   196  }
   197  
   198  var File_nopkg_desc_test_nopkg_new_proto protoreflect.FileDescriptor
   199  
   200  var file_nopkg_desc_test_nopkg_new_proto_rawDesc = []byte{
   201  	0x0a, 0x1f, 0x6e, 0x6f, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73,
   202  	0x74, 0x5f, 0x6e, 0x6f, 0x70, 0x6b, 0x67, 0x5f, 0x6e, 0x65, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   203  	0x6f, 0x22, 0xe3, 0x01, 0x0a, 0x08, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x0c,
   204  	0x0a, 0x01, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x69, 0x12, 0x0c, 0x0a, 0x01,
   205  	0x6a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x6a, 0x12, 0x0c, 0x0a, 0x01, 0x6b, 0x18,
   206  	0x03, 0x20, 0x01, 0x28, 0x11, 0x52, 0x01, 0x6b, 0x12, 0x0c, 0x0a, 0x01, 0x6c, 0x18, 0x04, 0x20,
   207  	0x01, 0x28, 0x12, 0x52, 0x01, 0x6c, 0x12, 0x0c, 0x0a, 0x01, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28,
   208  	0x0d, 0x52, 0x01, 0x6d, 0x12, 0x0c, 0x0a, 0x01, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52,
   209  	0x01, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x52, 0x01, 0x6f,
   210  	0x12, 0x0c, 0x0a, 0x01, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x06, 0x52, 0x01, 0x70, 0x12, 0x0c,
   211  	0x0a, 0x01, 0x71, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x01, 0x71, 0x12, 0x0c, 0x0a, 0x01,
   212  	0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x10, 0x52, 0x01, 0x72, 0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18,
   213  	0x0b, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x73, 0x12, 0x0c, 0x0a, 0x01, 0x74, 0x18, 0x0c, 0x20,
   214  	0x01, 0x28, 0x01, 0x52, 0x01, 0x74, 0x12, 0x0c, 0x0a, 0x01, 0x75, 0x18, 0x0d, 0x20, 0x01, 0x28,
   215  	0x0c, 0x52, 0x01, 0x75, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52,
   216  	0x01, 0x76, 0x12, 0x0c, 0x0a, 0x01, 0x77, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x01, 0x77,
   217  	0x2a, 0x05, 0x08, 0x64, 0x10, 0xe9, 0x07, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75,
   218  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x68, 0x75, 0x6d, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   219  	0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
   220  	0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6e, 0x6f, 0x70,
   221  	0x6b, 0x67, 0x3b, 0x6e, 0x6f, 0x70, 0x6b, 0x67,
   222  }
   223  
   224  var (
   225  	file_nopkg_desc_test_nopkg_new_proto_rawDescOnce sync.Once
   226  	file_nopkg_desc_test_nopkg_new_proto_rawDescData = file_nopkg_desc_test_nopkg_new_proto_rawDesc
   227  )
   228  
   229  func file_nopkg_desc_test_nopkg_new_proto_rawDescGZIP() []byte {
   230  	file_nopkg_desc_test_nopkg_new_proto_rawDescOnce.Do(func() {
   231  		file_nopkg_desc_test_nopkg_new_proto_rawDescData = protoimpl.X.CompressGZIP(file_nopkg_desc_test_nopkg_new_proto_rawDescData)
   232  	})
   233  	return file_nopkg_desc_test_nopkg_new_proto_rawDescData
   234  }
   235  
   236  var file_nopkg_desc_test_nopkg_new_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   237  var file_nopkg_desc_test_nopkg_new_proto_goTypes = []interface{}{
   238  	(*TopLevel)(nil), // 0: TopLevel
   239  }
   240  var file_nopkg_desc_test_nopkg_new_proto_depIdxs = []int32{
   241  	0, // [0:0] is the sub-list for method output_type
   242  	0, // [0:0] is the sub-list for method input_type
   243  	0, // [0:0] is the sub-list for extension type_name
   244  	0, // [0:0] is the sub-list for extension extendee
   245  	0, // [0:0] is the sub-list for field type_name
   246  }
   247  
   248  func init() { file_nopkg_desc_test_nopkg_new_proto_init() }
   249  func file_nopkg_desc_test_nopkg_new_proto_init() {
   250  	if File_nopkg_desc_test_nopkg_new_proto != nil {
   251  		return
   252  	}
   253  	if !protoimpl.UnsafeEnabled {
   254  		file_nopkg_desc_test_nopkg_new_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   255  			switch v := v.(*TopLevel); i {
   256  			case 0:
   257  				return &v.state
   258  			case 1:
   259  				return &v.sizeCache
   260  			case 2:
   261  				return &v.unknownFields
   262  			case 3:
   263  				return &v.extensionFields
   264  			default:
   265  				return nil
   266  			}
   267  		}
   268  	}
   269  	type x struct{}
   270  	out := protoimpl.TypeBuilder{
   271  		File: protoimpl.DescBuilder{
   272  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   273  			RawDescriptor: file_nopkg_desc_test_nopkg_new_proto_rawDesc,
   274  			NumEnums:      0,
   275  			NumMessages:   1,
   276  			NumExtensions: 0,
   277  			NumServices:   0,
   278  		},
   279  		GoTypes:           file_nopkg_desc_test_nopkg_new_proto_goTypes,
   280  		DependencyIndexes: file_nopkg_desc_test_nopkg_new_proto_depIdxs,
   281  		MessageInfos:      file_nopkg_desc_test_nopkg_new_proto_msgTypes,
   282  	}.Build()
   283  	File_nopkg_desc_test_nopkg_new_proto = out.File
   284  	file_nopkg_desc_test_nopkg_new_proto_rawDesc = nil
   285  	file_nopkg_desc_test_nopkg_new_proto_goTypes = nil
   286  	file_nopkg_desc_test_nopkg_new_proto_depIdxs = nil
   287  }