github.com/confluentinc/confluent-kafka-go@v1.9.2/schemaregistry/test/example.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.0
     4  // 	protoc        v3.19.1
     5  // source: schemaregistry/test/proto/example.proto
     6  
     7  package test
     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 Author struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Name  string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    29  	Id    int32    `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
    30  	Works []string `protobuf:"bytes,4,rep,name=works,proto3" json:"works,omitempty"`
    31  }
    32  
    33  func (x *Author) Reset() {
    34  	*x = Author{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_schemaregistry_test_proto_example_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *Author) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*Author) ProtoMessage() {}
    47  
    48  func (x *Author) ProtoReflect() protoreflect.Message {
    49  	mi := &file_schemaregistry_test_proto_example_proto_msgTypes[0]
    50  	if protoimpl.UnsafeEnabled && x != nil {
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		if ms.LoadMessageInfo() == nil {
    53  			ms.StoreMessageInfo(mi)
    54  		}
    55  		return ms
    56  	}
    57  	return mi.MessageOf(x)
    58  }
    59  
    60  // Deprecated: Use Author.ProtoReflect.Descriptor instead.
    61  func (*Author) Descriptor() ([]byte, []int) {
    62  	return file_schemaregistry_test_proto_example_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  func (x *Author) GetName() string {
    66  	if x != nil {
    67  		return x.Name
    68  	}
    69  	return ""
    70  }
    71  
    72  func (x *Author) GetId() int32 {
    73  	if x != nil {
    74  		return x.Id
    75  	}
    76  	return 0
    77  }
    78  
    79  func (x *Author) GetWorks() []string {
    80  	if x != nil {
    81  		return x.Works
    82  	}
    83  	return nil
    84  }
    85  
    86  type Pizza struct {
    87  	state         protoimpl.MessageState
    88  	sizeCache     protoimpl.SizeCache
    89  	unknownFields protoimpl.UnknownFields
    90  
    91  	Size     string   `protobuf:"bytes,1,opt,name=size,proto3" json:"size,omitempty"`
    92  	Toppings []string `protobuf:"bytes,2,rep,name=toppings,proto3" json:"toppings,omitempty"`
    93  }
    94  
    95  func (x *Pizza) Reset() {
    96  	*x = Pizza{}
    97  	if protoimpl.UnsafeEnabled {
    98  		mi := &file_schemaregistry_test_proto_example_proto_msgTypes[1]
    99  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   100  		ms.StoreMessageInfo(mi)
   101  	}
   102  }
   103  
   104  func (x *Pizza) String() string {
   105  	return protoimpl.X.MessageStringOf(x)
   106  }
   107  
   108  func (*Pizza) ProtoMessage() {}
   109  
   110  func (x *Pizza) ProtoReflect() protoreflect.Message {
   111  	mi := &file_schemaregistry_test_proto_example_proto_msgTypes[1]
   112  	if protoimpl.UnsafeEnabled && x != nil {
   113  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   114  		if ms.LoadMessageInfo() == nil {
   115  			ms.StoreMessageInfo(mi)
   116  		}
   117  		return ms
   118  	}
   119  	return mi.MessageOf(x)
   120  }
   121  
   122  // Deprecated: Use Pizza.ProtoReflect.Descriptor instead.
   123  func (*Pizza) Descriptor() ([]byte, []int) {
   124  	return file_schemaregistry_test_proto_example_proto_rawDescGZIP(), []int{1}
   125  }
   126  
   127  func (x *Pizza) GetSize() string {
   128  	if x != nil {
   129  		return x.Size
   130  	}
   131  	return ""
   132  }
   133  
   134  func (x *Pizza) GetToppings() []string {
   135  	if x != nil {
   136  		return x.Toppings
   137  	}
   138  	return nil
   139  }
   140  
   141  var File_schemaregistry_test_proto_example_proto protoreflect.FileDescriptor
   142  
   143  var file_schemaregistry_test_proto_example_proto_rawDesc = []byte{
   144  	0x0a, 0x27, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
   145  	0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d,
   146  	0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x74, 0x65, 0x73, 0x74, 0x22,
   147  	0x42, 0x0a, 0x06, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
   148  	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a,
   149  	0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a,
   150  	0x05, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x77, 0x6f,
   151  	0x72, 0x6b, 0x73, 0x22, 0x37, 0x0a, 0x05, 0x50, 0x69, 0x7a, 0x7a, 0x61, 0x12, 0x12, 0x0a, 0x04,
   152  	0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65,
   153  	0x12, 0x1a, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03,
   154  	0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x09, 0x5a, 0x07,
   155  	0x2e, 0x2e, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   156  }
   157  
   158  var (
   159  	file_schemaregistry_test_proto_example_proto_rawDescOnce sync.Once
   160  	file_schemaregistry_test_proto_example_proto_rawDescData = file_schemaregistry_test_proto_example_proto_rawDesc
   161  )
   162  
   163  func file_schemaregistry_test_proto_example_proto_rawDescGZIP() []byte {
   164  	file_schemaregistry_test_proto_example_proto_rawDescOnce.Do(func() {
   165  		file_schemaregistry_test_proto_example_proto_rawDescData = protoimpl.X.CompressGZIP(file_schemaregistry_test_proto_example_proto_rawDescData)
   166  	})
   167  	return file_schemaregistry_test_proto_example_proto_rawDescData
   168  }
   169  
   170  var file_schemaregistry_test_proto_example_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   171  var file_schemaregistry_test_proto_example_proto_goTypes = []interface{}{
   172  	(*Author)(nil), // 0: test.Author
   173  	(*Pizza)(nil),  // 1: test.Pizza
   174  }
   175  var file_schemaregistry_test_proto_example_proto_depIdxs = []int32{
   176  	0, // [0:0] is the sub-list for method output_type
   177  	0, // [0:0] is the sub-list for method input_type
   178  	0, // [0:0] is the sub-list for extension type_name
   179  	0, // [0:0] is the sub-list for extension extendee
   180  	0, // [0:0] is the sub-list for field type_name
   181  }
   182  
   183  func init() { file_schemaregistry_test_proto_example_proto_init() }
   184  func file_schemaregistry_test_proto_example_proto_init() {
   185  	if File_schemaregistry_test_proto_example_proto != nil {
   186  		return
   187  	}
   188  	if !protoimpl.UnsafeEnabled {
   189  		file_schemaregistry_test_proto_example_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   190  			switch v := v.(*Author); i {
   191  			case 0:
   192  				return &v.state
   193  			case 1:
   194  				return &v.sizeCache
   195  			case 2:
   196  				return &v.unknownFields
   197  			default:
   198  				return nil
   199  			}
   200  		}
   201  		file_schemaregistry_test_proto_example_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   202  			switch v := v.(*Pizza); i {
   203  			case 0:
   204  				return &v.state
   205  			case 1:
   206  				return &v.sizeCache
   207  			case 2:
   208  				return &v.unknownFields
   209  			default:
   210  				return nil
   211  			}
   212  		}
   213  	}
   214  	type x struct{}
   215  	out := protoimpl.TypeBuilder{
   216  		File: protoimpl.DescBuilder{
   217  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   218  			RawDescriptor: file_schemaregistry_test_proto_example_proto_rawDesc,
   219  			NumEnums:      0,
   220  			NumMessages:   2,
   221  			NumExtensions: 0,
   222  			NumServices:   0,
   223  		},
   224  		GoTypes:           file_schemaregistry_test_proto_example_proto_goTypes,
   225  		DependencyIndexes: file_schemaregistry_test_proto_example_proto_depIdxs,
   226  		MessageInfos:      file_schemaregistry_test_proto_example_proto_msgTypes,
   227  	}.Build()
   228  	File_schemaregistry_test_proto_example_proto = out.File
   229  	file_schemaregistry_test_proto_example_proto_rawDesc = nil
   230  	file_schemaregistry_test_proto_example_proto_goTypes = nil
   231  	file_schemaregistry_test_proto_example_proto_depIdxs = nil
   232  }