...

Source file src/google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go

Documentation: google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/base

     1  // Copyright 2018 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/extensions/base/base.proto
     7  
     8  package base
     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  type BaseMessage struct {
    18  	state           protoimpl.MessageState
    19  	sizeCache       protoimpl.SizeCache
    20  	unknownFields   protoimpl.UnknownFields
    21  	extensionFields protoimpl.ExtensionFields
    22  
    23  	Field *string `protobuf:"bytes,1,opt,name=field" json:"field,omitempty"`
    24  }
    25  
    26  func (x *BaseMessage) Reset() {
    27  	*x = BaseMessage{}
    28  	if protoimpl.UnsafeEnabled {
    29  		mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0]
    30  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    31  		ms.StoreMessageInfo(mi)
    32  	}
    33  }
    34  
    35  func (x *BaseMessage) String() string {
    36  	return protoimpl.X.MessageStringOf(x)
    37  }
    38  
    39  func (*BaseMessage) ProtoMessage() {}
    40  
    41  func (x *BaseMessage) ProtoReflect() protoreflect.Message {
    42  	mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0]
    43  	if protoimpl.UnsafeEnabled && x != nil {
    44  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    45  		if ms.LoadMessageInfo() == nil {
    46  			ms.StoreMessageInfo(mi)
    47  		}
    48  		return ms
    49  	}
    50  	return mi.MessageOf(x)
    51  }
    52  
    53  // Deprecated: Use BaseMessage.ProtoReflect.Descriptor instead.
    54  func (*BaseMessage) Descriptor() ([]byte, []int) {
    55  	return file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescGZIP(), []int{0}
    56  }
    57  
    58  func (x *BaseMessage) GetField() string {
    59  	if x != nil && x.Field != nil {
    60  		return *x.Field
    61  	}
    62  	return ""
    63  }
    64  
    65  type MessageSetWireFormatMessage struct {
    66  	state           protoimpl.MessageState
    67  	sizeCache       protoimpl.SizeCache
    68  	unknownFields   protoimpl.UnknownFields
    69  	extensionFields protoimpl.ExtensionFields
    70  }
    71  
    72  func (x *MessageSetWireFormatMessage) Reset() {
    73  	*x = MessageSetWireFormatMessage{}
    74  	if protoimpl.UnsafeEnabled {
    75  		mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1]
    76  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    77  		ms.StoreMessageInfo(mi)
    78  	}
    79  }
    80  
    81  func (x *MessageSetWireFormatMessage) String() string {
    82  	return protoimpl.X.MessageStringOf(x)
    83  }
    84  
    85  func (*MessageSetWireFormatMessage) ProtoMessage() {}
    86  
    87  func (x *MessageSetWireFormatMessage) ProtoReflect() protoreflect.Message {
    88  	mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1]
    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  // Deprecated: Use MessageSetWireFormatMessage.ProtoReflect.Descriptor instead.
   100  func (*MessageSetWireFormatMessage) Descriptor() ([]byte, []int) {
   101  	return file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescGZIP(), []int{1}
   102  }
   103  
   104  var File_cmd_protoc_gen_go_testdata_extensions_base_base_proto protoreflect.FileDescriptor
   105  
   106  var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc = []byte{
   107  	0x0a, 0x35, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
   108  	0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x65, 0x78, 0x74,
   109  	0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x62, 0x61, 0x73,
   110  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   111  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
   112  	0x6e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x22, 0x33, 0x0a, 0x0b, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65,
   113  	0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01,
   114  	0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x04, 0x08, 0x04, 0x10,
   115  	0x0a, 0x2a, 0x08, 0x08, 0x10, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x2b, 0x0a, 0x1b, 0x4d,
   116  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72,
   117  	0x6d, 0x61, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x08, 0x08, 0x64, 0x10, 0xff,
   118  	0xff, 0xff, 0xff, 0x07, 0x3a, 0x02, 0x08, 0x01, 0x42, 0x47, 0x5a, 0x45, 0x67, 0x6f, 0x6f, 0x67,
   119  	0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72,
   120  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   121  	0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74,
   122  	0x61, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x62, 0x61, 0x73,
   123  	0x65,
   124  }
   125  
   126  var (
   127  	file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescOnce sync.Once
   128  	file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescData = file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc
   129  )
   130  
   131  func file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescGZIP() []byte {
   132  	file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescOnce.Do(func() {
   133  		file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescData)
   134  	})
   135  	return file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescData
   136  }
   137  
   138  var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   139  var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_goTypes = []interface{}{
   140  	(*BaseMessage)(nil),                 // 0: goproto.protoc.extension.base.BaseMessage
   141  	(*MessageSetWireFormatMessage)(nil), // 1: goproto.protoc.extension.base.MessageSetWireFormatMessage
   142  }
   143  var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_depIdxs = []int32{
   144  	0, // [0:0] is the sub-list for method output_type
   145  	0, // [0:0] is the sub-list for method input_type
   146  	0, // [0:0] is the sub-list for extension type_name
   147  	0, // [0:0] is the sub-list for extension extendee
   148  	0, // [0:0] is the sub-list for field type_name
   149  }
   150  
   151  func init() { file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_init() }
   152  func file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_init() {
   153  	if File_cmd_protoc_gen_go_testdata_extensions_base_base_proto != nil {
   154  		return
   155  	}
   156  	if !protoimpl.UnsafeEnabled {
   157  		file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   158  			switch v := v.(*BaseMessage); i {
   159  			case 0:
   160  				return &v.state
   161  			case 1:
   162  				return &v.sizeCache
   163  			case 2:
   164  				return &v.unknownFields
   165  			case 3:
   166  				return &v.extensionFields
   167  			default:
   168  				return nil
   169  			}
   170  		}
   171  		file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   172  			switch v := v.(*MessageSetWireFormatMessage); i {
   173  			case 0:
   174  				return &v.state
   175  			case 1:
   176  				return &v.sizeCache
   177  			case 2:
   178  				return &v.unknownFields
   179  			case 3:
   180  				return &v.extensionFields
   181  			default:
   182  				return nil
   183  			}
   184  		}
   185  	}
   186  	type x struct{}
   187  	out := protoimpl.TypeBuilder{
   188  		File: protoimpl.DescBuilder{
   189  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   190  			RawDescriptor: file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc,
   191  			NumEnums:      0,
   192  			NumMessages:   2,
   193  			NumExtensions: 0,
   194  			NumServices:   0,
   195  		},
   196  		GoTypes:           file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_goTypes,
   197  		DependencyIndexes: file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_depIdxs,
   198  		MessageInfos:      file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes,
   199  	}.Build()
   200  	File_cmd_protoc_gen_go_testdata_extensions_base_base_proto = out.File
   201  	file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc = nil
   202  	file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_goTypes = nil
   203  	file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_depIdxs = nil
   204  }
   205  

View as plain text