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