...

Source file src/github.com/onsi/gomega/ghttp/protobuf/simple_message.pb.go

Documentation: github.com/onsi/gomega/ghttp/protobuf

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.33.0
     4  // 	protoc        v5.26.0
     5  // source: ghttp/protobuf/simple_message.proto
     6  
     7  package protobuf
     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 SimpleMessage struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Description *string `protobuf:"bytes,1,req,name=description" json:"description,omitempty"`
    29  	Id          *int32  `protobuf:"varint,2,req,name=id" json:"id,omitempty"`
    30  	Metadata    *string `protobuf:"bytes,3,opt,name=metadata" json:"metadata,omitempty"`
    31  }
    32  
    33  func (x *SimpleMessage) Reset() {
    34  	*x = SimpleMessage{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_ghttp_protobuf_simple_message_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *SimpleMessage) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*SimpleMessage) ProtoMessage() {}
    47  
    48  func (x *SimpleMessage) ProtoReflect() protoreflect.Message {
    49  	mi := &file_ghttp_protobuf_simple_message_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 SimpleMessage.ProtoReflect.Descriptor instead.
    61  func (*SimpleMessage) Descriptor() ([]byte, []int) {
    62  	return file_ghttp_protobuf_simple_message_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  func (x *SimpleMessage) GetDescription() string {
    66  	if x != nil && x.Description != nil {
    67  		return *x.Description
    68  	}
    69  	return ""
    70  }
    71  
    72  func (x *SimpleMessage) GetId() int32 {
    73  	if x != nil && x.Id != nil {
    74  		return *x.Id
    75  	}
    76  	return 0
    77  }
    78  
    79  func (x *SimpleMessage) GetMetadata() string {
    80  	if x != nil && x.Metadata != nil {
    81  		return *x.Metadata
    82  	}
    83  	return ""
    84  }
    85  
    86  var File_ghttp_protobuf_simple_message_proto protoreflect.FileDescriptor
    87  
    88  var file_ghttp_protobuf_simple_message_proto_rawDesc = []byte{
    89  	0x0a, 0x23, 0x67, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
    90  	0x2f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
    91  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22,
    92  	0x5d, 0x0a, 0x0d, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
    93  	0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
    94  	0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
    95  	0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x02, 0x28, 0x05, 0x52, 0x02,
    96  	0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
    97  	0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x0d,
    98  	0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
    99  }
   100  
   101  var (
   102  	file_ghttp_protobuf_simple_message_proto_rawDescOnce sync.Once
   103  	file_ghttp_protobuf_simple_message_proto_rawDescData = file_ghttp_protobuf_simple_message_proto_rawDesc
   104  )
   105  
   106  func file_ghttp_protobuf_simple_message_proto_rawDescGZIP() []byte {
   107  	file_ghttp_protobuf_simple_message_proto_rawDescOnce.Do(func() {
   108  		file_ghttp_protobuf_simple_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_ghttp_protobuf_simple_message_proto_rawDescData)
   109  	})
   110  	return file_ghttp_protobuf_simple_message_proto_rawDescData
   111  }
   112  
   113  var file_ghttp_protobuf_simple_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   114  var file_ghttp_protobuf_simple_message_proto_goTypes = []interface{}{
   115  	(*SimpleMessage)(nil), // 0: protobuf.SimpleMessage
   116  }
   117  var file_ghttp_protobuf_simple_message_proto_depIdxs = []int32{
   118  	0, // [0:0] is the sub-list for method output_type
   119  	0, // [0:0] is the sub-list for method input_type
   120  	0, // [0:0] is the sub-list for extension type_name
   121  	0, // [0:0] is the sub-list for extension extendee
   122  	0, // [0:0] is the sub-list for field type_name
   123  }
   124  
   125  func init() { file_ghttp_protobuf_simple_message_proto_init() }
   126  func file_ghttp_protobuf_simple_message_proto_init() {
   127  	if File_ghttp_protobuf_simple_message_proto != nil {
   128  		return
   129  	}
   130  	if !protoimpl.UnsafeEnabled {
   131  		file_ghttp_protobuf_simple_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   132  			switch v := v.(*SimpleMessage); i {
   133  			case 0:
   134  				return &v.state
   135  			case 1:
   136  				return &v.sizeCache
   137  			case 2:
   138  				return &v.unknownFields
   139  			default:
   140  				return nil
   141  			}
   142  		}
   143  	}
   144  	type x struct{}
   145  	out := protoimpl.TypeBuilder{
   146  		File: protoimpl.DescBuilder{
   147  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   148  			RawDescriptor: file_ghttp_protobuf_simple_message_proto_rawDesc,
   149  			NumEnums:      0,
   150  			NumMessages:   1,
   151  			NumExtensions: 0,
   152  			NumServices:   0,
   153  		},
   154  		GoTypes:           file_ghttp_protobuf_simple_message_proto_goTypes,
   155  		DependencyIndexes: file_ghttp_protobuf_simple_message_proto_depIdxs,
   156  		MessageInfos:      file_ghttp_protobuf_simple_message_proto_msgTypes,
   157  	}.Build()
   158  	File_ghttp_protobuf_simple_message_proto = out.File
   159  	file_ghttp_protobuf_simple_message_proto_rawDesc = nil
   160  	file_ghttp_protobuf_simple_message_proto_goTypes = nil
   161  	file_ghttp_protobuf_simple_message_proto_depIdxs = nil
   162  }
   163  

View as plain text