...

Source file src/google.golang.org/protobuf/internal/testprotos/order/order.pb.go

Documentation: google.golang.org/protobuf/internal/testprotos/order

     1  // Copyright 2019 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  // Messages in this file are used to test wire encoding order.
     6  
     7  // Code generated by protoc-gen-go. DO NOT EDIT.
     8  // source: internal/testprotos/order/order.proto
     9  
    10  package order
    11  
    12  import (
    13  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    14  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    15  	reflect "reflect"
    16  	sync "sync"
    17  )
    18  
    19  type Message struct {
    20  	state           protoimpl.MessageState
    21  	sizeCache       protoimpl.SizeCache
    22  	unknownFields   protoimpl.UnknownFields
    23  	extensionFields protoimpl.ExtensionFields
    24  
    25  	Field_2 *string `protobuf:"bytes,2,opt,name=field_2,json=field2" json:"field_2,omitempty"`
    26  	Field_1 *string `protobuf:"bytes,1,opt,name=field_1,json=field1" json:"field_1,omitempty"`
    27  	// Types that are assignable to Oneof_1:
    28  	//
    29  	//	*Message_Field_10
    30  	Oneof_1  isMessage_Oneof_1 `protobuf_oneof:"oneof_1"`
    31  	Field_20 *string           `protobuf:"bytes,20,opt,name=field_20,json=field20" json:"field_20,omitempty"`
    32  }
    33  
    34  func (x *Message) Reset() {
    35  	*x = Message{}
    36  	if protoimpl.UnsafeEnabled {
    37  		mi := &file_internal_testprotos_order_order_proto_msgTypes[0]
    38  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    39  		ms.StoreMessageInfo(mi)
    40  	}
    41  }
    42  
    43  func (x *Message) String() string {
    44  	return protoimpl.X.MessageStringOf(x)
    45  }
    46  
    47  func (*Message) ProtoMessage() {}
    48  
    49  func (x *Message) ProtoReflect() protoreflect.Message {
    50  	mi := &file_internal_testprotos_order_order_proto_msgTypes[0]
    51  	if protoimpl.UnsafeEnabled && x != nil {
    52  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53  		if ms.LoadMessageInfo() == nil {
    54  			ms.StoreMessageInfo(mi)
    55  		}
    56  		return ms
    57  	}
    58  	return mi.MessageOf(x)
    59  }
    60  
    61  // Deprecated: Use Message.ProtoReflect.Descriptor instead.
    62  func (*Message) Descriptor() ([]byte, []int) {
    63  	return file_internal_testprotos_order_order_proto_rawDescGZIP(), []int{0}
    64  }
    65  
    66  func (x *Message) GetField_2() string {
    67  	if x != nil && x.Field_2 != nil {
    68  		return *x.Field_2
    69  	}
    70  	return ""
    71  }
    72  
    73  func (x *Message) GetField_1() string {
    74  	if x != nil && x.Field_1 != nil {
    75  		return *x.Field_1
    76  	}
    77  	return ""
    78  }
    79  
    80  func (m *Message) GetOneof_1() isMessage_Oneof_1 {
    81  	if m != nil {
    82  		return m.Oneof_1
    83  	}
    84  	return nil
    85  }
    86  
    87  func (x *Message) GetField_10() string {
    88  	if x, ok := x.GetOneof_1().(*Message_Field_10); ok {
    89  		return x.Field_10
    90  	}
    91  	return ""
    92  }
    93  
    94  func (x *Message) GetField_20() string {
    95  	if x != nil && x.Field_20 != nil {
    96  		return *x.Field_20
    97  	}
    98  	return ""
    99  }
   100  
   101  type isMessage_Oneof_1 interface {
   102  	isMessage_Oneof_1()
   103  }
   104  
   105  type Message_Field_10 struct {
   106  	Field_10 string `protobuf:"bytes,10,opt,name=field_10,json=field10,oneof"`
   107  }
   108  
   109  func (*Message_Field_10) isMessage_Oneof_1() {}
   110  
   111  var file_internal_testprotos_order_order_proto_extTypes = []protoimpl.ExtensionInfo{
   112  	{
   113  		ExtendedType:  (*Message)(nil),
   114  		ExtensionType: (*string)(nil),
   115  		Field:         30,
   116  		Name:          "goproto.proto.order.field_30",
   117  		Tag:           "bytes,30,opt,name=field_30",
   118  		Filename:      "internal/testprotos/order/order.proto",
   119  	},
   120  	{
   121  		ExtendedType:  (*Message)(nil),
   122  		ExtensionType: (*string)(nil),
   123  		Field:         31,
   124  		Name:          "goproto.proto.order.field_31",
   125  		Tag:           "bytes,31,opt,name=field_31",
   126  		Filename:      "internal/testprotos/order/order.proto",
   127  	},
   128  	{
   129  		ExtendedType:  (*Message)(nil),
   130  		ExtensionType: (*string)(nil),
   131  		Field:         32,
   132  		Name:          "goproto.proto.order.field_32",
   133  		Tag:           "bytes,32,opt,name=field_32",
   134  		Filename:      "internal/testprotos/order/order.proto",
   135  	},
   136  }
   137  
   138  // Extension fields to Message.
   139  var (
   140  	// optional string field_30 = 30;
   141  	E_Field_30 = &file_internal_testprotos_order_order_proto_extTypes[0]
   142  	// optional string field_31 = 31;
   143  	E_Field_31 = &file_internal_testprotos_order_order_proto_extTypes[1]
   144  	// optional string field_32 = 32;
   145  	E_Field_32 = &file_internal_testprotos_order_order_proto_extTypes[2]
   146  )
   147  
   148  var File_internal_testprotos_order_order_proto protoreflect.FileDescriptor
   149  
   150  var file_internal_testprotos_order_order_proto_rawDesc = []byte{
   151  	0x0a, 0x25, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
   152  	0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x64, 0x65,
   153  	0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   154  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x84, 0x01, 0x0a,
   155  	0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c,
   156  	0x64, 0x5f, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64,
   157  	0x32, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x31, 0x18, 0x01, 0x20, 0x01,
   158  	0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x12, 0x1b, 0x0a, 0x08, 0x66, 0x69,
   159  	0x65, 0x6c, 0x64, 0x5f, 0x31, 0x30, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07,
   160  	0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x30, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64,
   161  	0x5f, 0x32, 0x30, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64,
   162  	0x32, 0x30, 0x2a, 0x04, 0x08, 0x1e, 0x10, 0x29, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x6e, 0x65, 0x6f,
   163  	0x66, 0x5f, 0x31, 0x3a, 0x37, 0x0a, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x33, 0x30, 0x12,
   164  	0x1c, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
   165  	0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x1e, 0x20,
   166  	0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x33, 0x30, 0x3a, 0x37, 0x0a, 0x08,
   167  	0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x33, 0x31, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f,
   168  	0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x4d,
   169  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69,
   170  	0x65, 0x6c, 0x64, 0x33, 0x31, 0x3a, 0x37, 0x0a, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x33,
   171  	0x32, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   172  	0x6f, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
   173  	0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x33, 0x32, 0x42, 0x36,
   174  	0x5a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
   175  	0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74,
   176  	0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
   177  	0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72,
   178  }
   179  
   180  var (
   181  	file_internal_testprotos_order_order_proto_rawDescOnce sync.Once
   182  	file_internal_testprotos_order_order_proto_rawDescData = file_internal_testprotos_order_order_proto_rawDesc
   183  )
   184  
   185  func file_internal_testprotos_order_order_proto_rawDescGZIP() []byte {
   186  	file_internal_testprotos_order_order_proto_rawDescOnce.Do(func() {
   187  		file_internal_testprotos_order_order_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_order_order_proto_rawDescData)
   188  	})
   189  	return file_internal_testprotos_order_order_proto_rawDescData
   190  }
   191  
   192  var file_internal_testprotos_order_order_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   193  var file_internal_testprotos_order_order_proto_goTypes = []interface{}{
   194  	(*Message)(nil), // 0: goproto.proto.order.Message
   195  }
   196  var file_internal_testprotos_order_order_proto_depIdxs = []int32{
   197  	0, // 0: goproto.proto.order.field_30:extendee -> goproto.proto.order.Message
   198  	0, // 1: goproto.proto.order.field_31:extendee -> goproto.proto.order.Message
   199  	0, // 2: goproto.proto.order.field_32:extendee -> goproto.proto.order.Message
   200  	3, // [3:3] is the sub-list for method output_type
   201  	3, // [3:3] is the sub-list for method input_type
   202  	3, // [3:3] is the sub-list for extension type_name
   203  	0, // [0:3] is the sub-list for extension extendee
   204  	0, // [0:0] is the sub-list for field type_name
   205  }
   206  
   207  func init() { file_internal_testprotos_order_order_proto_init() }
   208  func file_internal_testprotos_order_order_proto_init() {
   209  	if File_internal_testprotos_order_order_proto != nil {
   210  		return
   211  	}
   212  	if !protoimpl.UnsafeEnabled {
   213  		file_internal_testprotos_order_order_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   214  			switch v := v.(*Message); i {
   215  			case 0:
   216  				return &v.state
   217  			case 1:
   218  				return &v.sizeCache
   219  			case 2:
   220  				return &v.unknownFields
   221  			case 3:
   222  				return &v.extensionFields
   223  			default:
   224  				return nil
   225  			}
   226  		}
   227  	}
   228  	file_internal_testprotos_order_order_proto_msgTypes[0].OneofWrappers = []interface{}{
   229  		(*Message_Field_10)(nil),
   230  	}
   231  	type x struct{}
   232  	out := protoimpl.TypeBuilder{
   233  		File: protoimpl.DescBuilder{
   234  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   235  			RawDescriptor: file_internal_testprotos_order_order_proto_rawDesc,
   236  			NumEnums:      0,
   237  			NumMessages:   1,
   238  			NumExtensions: 3,
   239  			NumServices:   0,
   240  		},
   241  		GoTypes:           file_internal_testprotos_order_order_proto_goTypes,
   242  		DependencyIndexes: file_internal_testprotos_order_order_proto_depIdxs,
   243  		MessageInfos:      file_internal_testprotos_order_order_proto_msgTypes,
   244  		ExtensionInfos:    file_internal_testprotos_order_order_proto_extTypes,
   245  	}.Build()
   246  	File_internal_testprotos_order_order_proto = out.File
   247  	file_internal_testprotos_order_order_proto_rawDesc = nil
   248  	file_internal_testprotos_order_order_proto_goTypes = nil
   249  	file_internal_testprotos_order_order_proto_depIdxs = nil
   250  }
   251  

View as plain text