Documentation ¶
Overview ¶
Package prototweet is a generated protocol buffer package.
It is generated from these files:
prototweet.proto
It has these top-level messages:
Tweet
Index ¶
- Constants
- type Tweet
- func (m *Tweet) GetCoordinates() *Tweet_Coordinate
- func (m *Tweet) GetHashtags() []string
- func (m *Tweet) GetId() int64
- func (m *Tweet) GetMentions() []*Tweet_User
- func (m *Tweet) GetPictures() []*Tweet_Image
- func (m *Tweet) GetText() string
- func (m *Tweet) GetUrls() []*Tweet_Url
- func (m *Tweet) GetUser() *Tweet_User
- func (*Tweet) ProtoMessage()
- func (m *Tweet) Reset()
- func (m *Tweet) String() string
- type Tweet_Coordinate
- type Tweet_Image
- type Tweet_Url
- type Tweet_User
Constants ¶
View Source
const Default_Tweet_Image_Source string = "TWITTER"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tweet ¶
type Tweet struct { Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` User *Tweet_User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` Text *string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"` Coordinates *Tweet_Coordinate `protobuf:"bytes,4,opt,name=coordinates" json:"coordinates,omitempty"` Pictures []*Tweet_Image `protobuf:"bytes,6,rep,name=pictures" json:"pictures,omitempty"` Urls []*Tweet_Url `protobuf:"bytes,7,rep,name=urls" json:"urls,omitempty"` Mentions []*Tweet_User `protobuf:"bytes,8,rep,name=mentions" json:"mentions,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Tweet) GetCoordinates ¶
func (m *Tweet) GetCoordinates() *Tweet_Coordinate
func (*Tweet) GetHashtags ¶
func (*Tweet) GetMentions ¶
func (m *Tweet) GetMentions() []*Tweet_User
func (*Tweet) GetPictures ¶
func (m *Tweet) GetPictures() []*Tweet_Image
func (*Tweet) GetUser ¶
func (m *Tweet) GetUser() *Tweet_User
func (*Tweet) ProtoMessage ¶
func (*Tweet) ProtoMessage()
type Tweet_Coordinate ¶
type Tweet_Coordinate struct { Latitude *float64 `protobuf:"fixed64,1,opt,name=latitude" json:"latitude,omitempty"` Longitude *float64 `protobuf:"fixed64,2,opt,name=longitude" json:"longitude,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Tweet_Coordinate) GetLatitude ¶
func (m *Tweet_Coordinate) GetLatitude() float64
func (*Tweet_Coordinate) GetLongitude ¶
func (m *Tweet_Coordinate) GetLongitude() float64
func (*Tweet_Coordinate) ProtoMessage ¶
func (*Tweet_Coordinate) ProtoMessage()
func (*Tweet_Coordinate) Reset ¶
func (m *Tweet_Coordinate) Reset()
func (*Tweet_Coordinate) String ¶
func (m *Tweet_Coordinate) String() string
type Tweet_Image ¶
type Tweet_Image struct { Source *string `protobuf:"bytes,1,opt,name=source,def=TWITTER" json:"source,omitempty"` Url *string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Tweet_Image) GetSource ¶
func (m *Tweet_Image) GetSource() string
func (*Tweet_Image) GetUrl ¶
func (m *Tweet_Image) GetUrl() string
func (*Tweet_Image) ProtoMessage ¶
func (*Tweet_Image) ProtoMessage()
func (*Tweet_Image) Reset ¶
func (m *Tweet_Image) Reset()
func (*Tweet_Image) String ¶
func (m *Tweet_Image) String() string
type Tweet_Url ¶
type Tweet_Url struct { Display *string `protobuf:"bytes,1,opt,name=display" json:"display,omitempty"` Actual *string `protobuf:"bytes,2,opt,name=actual" json:"actual,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Tweet_Url) GetDisplay ¶
func (*Tweet_Url) ProtoMessage ¶
func (*Tweet_Url) ProtoMessage()
type Tweet_User ¶
type Tweet_User struct { Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Tweet_User) GetId ¶
func (m *Tweet_User) GetId() int64
func (*Tweet_User) GetName ¶
func (m *Tweet_User) GetName() string
func (*Tweet_User) ProtoMessage ¶
func (*Tweet_User) ProtoMessage()
func (*Tweet_User) Reset ¶
func (m *Tweet_User) Reset()
func (*Tweet_User) String ¶
func (m *Tweet_User) String() string
Click to show internal directories.
Click to hide internal directories.