github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/pubsub/srv/proto/pubsub.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: github.com/micro/go-micro/examples/pubsub/srv/proto/pubsub.proto
     3  
     4  /*
     5  Package pubsub is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	github.com/micro/go-micro/examples/pubsub/srv/proto/pubsub.proto
     9  
    10  It has these top-level messages:
    11  	Event
    12  */
    13  package pubsub
    14  
    15  import proto "github.com/golang/protobuf/proto"
    16  import fmt "fmt"
    17  import math "math"
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var _ = proto.Marshal
    21  var _ = fmt.Errorf
    22  var _ = math.Inf
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    29  
    30  // Example message
    31  type Event struct {
    32  	// unique id
    33  	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
    34  	// unix timestamp
    35  	Timestamp int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"`
    36  	// message
    37  	Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
    38  }
    39  
    40  func (m *Event) Reset()                    { *m = Event{} }
    41  func (m *Event) String() string            { return proto.CompactTextString(m) }
    42  func (*Event) ProtoMessage()               {}
    43  func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    44  
    45  func (m *Event) GetId() string {
    46  	if m != nil {
    47  		return m.Id
    48  	}
    49  	return ""
    50  }
    51  
    52  func (m *Event) GetTimestamp() int64 {
    53  	if m != nil {
    54  		return m.Timestamp
    55  	}
    56  	return 0
    57  }
    58  
    59  func (m *Event) GetMessage() string {
    60  	if m != nil {
    61  		return m.Message
    62  	}
    63  	return ""
    64  }
    65  
    66  func init() {
    67  	proto.RegisterType((*Event)(nil), "Event")
    68  }
    69  
    70  func init() {
    71  	proto.RegisterFile("github.com/micro/go-micro/examples/pubsub/srv/proto/pubsub.proto", fileDescriptor0)
    72  }
    73  
    74  var fileDescriptor0 = []byte{
    75  	// 141 bytes of a gzipped FileDescriptorProto
    76  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x4f, 0xcf, 0x2c, 0xc9,
    77  	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0xcf, 0xcd, 0x4c, 0x2e, 0xca, 0xd7, 0x4f, 0xad, 0x48,
    78  	0xcc, 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0x2f, 0x28, 0x4d, 0x2a, 0x2e, 0x4d, 0xd2, 0x2f, 0x2e, 0x2a,
    79  	0xd3, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x87, 0x0a, 0xe8, 0x81, 0x39, 0x4a, 0xfe, 0x5c, 0xac, 0xae,
    80  	0x65, 0xa9, 0x79, 0x25, 0x42, 0x7c, 0x5c, 0x4c, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c,
    81  	0x41, 0x4c, 0x99, 0x29, 0x42, 0x32, 0x5c, 0x9c, 0x25, 0x99, 0xb9, 0xa9, 0xc5, 0x25, 0x89, 0xb9,
    82  	0x05, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xcc, 0x41, 0x08, 0x01, 0x21, 0x09, 0x2e, 0xf6, 0xdc, 0xd4,
    83  	0xe2, 0xe2, 0xc4, 0xf4, 0x54, 0x09, 0x66, 0xb0, 0x16, 0x18, 0x37, 0x89, 0x0d, 0x6c, 0xae, 0x31,
    84  	0x20, 0x00, 0x00, 0xff, 0xff, 0x9d, 0x55, 0x67, 0x13, 0x92, 0x00, 0x00, 0x00,
    85  }