// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.15.6 // source: proto/twitter.proto package twitter import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type Tweet struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // id of the tweet Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // text of the tweet Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` // username of the person who tweeted Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // time of tweet CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // number of times retweeted RetweetedCount int64 `protobuf:"varint,7,opt,name=retweeted_count,json=retweetedCount,proto3" json:"retweeted_count,omitempty"` // number of times favourited FavouritedCount int64 `protobuf:"varint,8,opt,name=favourited_count,json=favouritedCount,proto3" json:"favourited_count,omitempty"` } func (x *Tweet) Reset() { *x = Tweet{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Tweet) String() string { return protoimpl.X.MessageStringOf(x) } func (*Tweet) ProtoMessage() {} func (x *Tweet) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Tweet.ProtoReflect.Descriptor instead. func (*Tweet) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{0} } func (x *Tweet) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *Tweet) GetText() string { if x != nil { return x.Text } return "" } func (x *Tweet) GetUsername() string { if x != nil { return x.Username } return "" } func (x *Tweet) GetCreatedAt() string { if x != nil { return x.CreatedAt } return "" } func (x *Tweet) GetRetweetedCount() int64 { if x != nil { return x.RetweetedCount } return 0 } func (x *Tweet) GetFavouritedCount() int64 { if x != nil { return x.FavouritedCount } return 0 } type Profile struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // the user id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // display name of the user Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // the username Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // the user description Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // the account creation date CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // the user's location Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"` // the follower count Followers int64 `protobuf:"varint,7,opt,name=followers,proto3" json:"followers,omitempty"` // if the account is private Private bool `protobuf:"varint,8,opt,name=private,proto3" json:"private,omitempty"` // if the account is verified Verified bool `protobuf:"varint,9,opt,name=verified,proto3" json:"verified,omitempty"` // The user's profile picture ImageUrl string `protobuf:"bytes,10,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` } func (x *Profile) Reset() { *x = Profile{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Profile) String() string { return protoimpl.X.MessageStringOf(x) } func (*Profile) ProtoMessage() {} func (x *Profile) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Profile.ProtoReflect.Descriptor instead. func (*Profile) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{1} } func (x *Profile) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *Profile) GetName() string { if x != nil { return x.Name } return "" } func (x *Profile) GetUsername() string { if x != nil { return x.Username } return "" } func (x *Profile) GetDescription() string { if x != nil { return x.Description } return "" } func (x *Profile) GetCreatedAt() string { if x != nil { return x.CreatedAt } return "" } func (x *Profile) GetLocation() string { if x != nil { return x.Location } return "" } func (x *Profile) GetFollowers() int64 { if x != nil { return x.Followers } return 0 } func (x *Profile) GetPrivate() bool { if x != nil { return x.Private } return false } func (x *Profile) GetVerified() bool { if x != nil { return x.Verified } return false } func (x *Profile) GetImageUrl() string { if x != nil { return x.ImageUrl } return "" } type Trend struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // name of the trend Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // the twitter url Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // the volume of tweets in last 24 hours TweetVolume int64 `protobuf:"varint,3,opt,name=tweet_volume,json=tweetVolume,proto3" json:"tweet_volume,omitempty"` } func (x *Trend) Reset() { *x = Trend{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Trend) String() string { return protoimpl.X.MessageStringOf(x) } func (*Trend) ProtoMessage() {} func (x *Trend) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Trend.ProtoReflect.Descriptor instead. func (*Trend) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{2} } func (x *Trend) GetName() string { if x != nil { return x.Name } return "" } func (x *Trend) GetUrl() string { if x != nil { return x.Url } return "" } func (x *Trend) GetTweetVolume() int64 { if x != nil { return x.TweetVolume } return 0 } // Get the timeline for a given user type TimelineRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // the username to request the timeline for Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // number of tweets to return. default: 20 Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` } func (x *TimelineRequest) Reset() { *x = TimelineRequest{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TimelineRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*TimelineRequest) ProtoMessage() {} func (x *TimelineRequest) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TimelineRequest.ProtoReflect.Descriptor instead. func (*TimelineRequest) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{3} } func (x *TimelineRequest) GetUsername() string { if x != nil { return x.Username } return "" } func (x *TimelineRequest) GetLimit() int32 { if x != nil { return x.Limit } return 0 } type TimelineResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The recent tweets for the user Tweets []*Tweet `protobuf:"bytes,1,rep,name=tweets,proto3" json:"tweets,omitempty"` } func (x *TimelineResponse) Reset() { *x = TimelineResponse{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TimelineResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*TimelineResponse) ProtoMessage() {} func (x *TimelineResponse) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TimelineResponse.ProtoReflect.Descriptor instead. func (*TimelineResponse) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{4} } func (x *TimelineResponse) GetTweets() []*Tweet { if x != nil { return x.Tweets } return nil } // Search for tweets with a simple query type SearchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // the query to search for Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // number of tweets to return. default: 20 Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` } func (x *SearchRequest) Reset() { *x = SearchRequest{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SearchRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SearchRequest) ProtoMessage() {} func (x *SearchRequest) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead. func (*SearchRequest) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{5} } func (x *SearchRequest) GetQuery() string { if x != nil { return x.Query } return "" } func (x *SearchRequest) GetLimit() int32 { if x != nil { return x.Limit } return 0 } type SearchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // the related tweets for the search Tweets []*Tweet `protobuf:"bytes,2,rep,name=tweets,proto3" json:"tweets,omitempty"` } func (x *SearchResponse) Reset() { *x = SearchResponse{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SearchResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SearchResponse) ProtoMessage() {} func (x *SearchResponse) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead. func (*SearchResponse) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{6} } func (x *SearchResponse) GetTweets() []*Tweet { if x != nil { return x.Tweets } return nil } // Get a user's twitter profile type UserRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // the username to lookup Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` } func (x *UserRequest) Reset() { *x = UserRequest{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UserRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UserRequest) ProtoMessage() {} func (x *UserRequest) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UserRequest.ProtoReflect.Descriptor instead. func (*UserRequest) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{7} } func (x *UserRequest) GetUsername() string { if x != nil { return x.Username } return "" } type UserResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // the current user status Status *Tweet `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // The requested user profile Profile *Profile `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` } func (x *UserResponse) Reset() { *x = UserResponse{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UserResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*UserResponse) ProtoMessage() {} func (x *UserResponse) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UserResponse.ProtoReflect.Descriptor instead. func (*UserResponse) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{8} } func (x *UserResponse) GetStatus() *Tweet { if x != nil { return x.Status } return nil } func (x *UserResponse) GetProfile() *Profile { if x != nil { return x.Profile } return nil } // Get the current global trending topics type TrendsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *TrendsRequest) Reset() { *x = TrendsRequest{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TrendsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*TrendsRequest) ProtoMessage() {} func (x *TrendsRequest) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TrendsRequest.ProtoReflect.Descriptor instead. func (*TrendsRequest) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{9} } type TrendsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // a list of trending topics Trends []*Trend `protobuf:"bytes,1,rep,name=trends,proto3" json:"trends,omitempty"` } func (x *TrendsResponse) Reset() { *x = TrendsResponse{} if protoimpl.UnsafeEnabled { mi := &file_proto_twitter_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *TrendsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*TrendsResponse) ProtoMessage() {} func (x *TrendsResponse) ProtoReflect() protoreflect.Message { mi := &file_proto_twitter_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TrendsResponse.ProtoReflect.Descriptor instead. func (*TrendsResponse) Descriptor() ([]byte, []int) { return file_proto_twitter_proto_rawDescGZIP(), []int{10} } func (x *TrendsResponse) GetTrends() []*Trend { if x != nil { return x.Trends } return nil } var File_proto_twitter_proto protoreflect.FileDescriptor var file_proto_twitter_proto_rawDesc = []byte{ 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x22, 0xba, 0x01, 0x0a, 0x05, 0x54, 0x77, 0x65, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x74, 0x77, 0x65, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x72, 0x65, 0x74, 0x77, 0x65, 0x65, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x66, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x69, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x66, 0x61, 0x76, 0x6f, 0x75, 0x72, 0x69, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x97, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x50, 0x0a, 0x05, 0x54, 0x72, 0x65, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x77, 0x65, 0x65, 0x74, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x77, 0x65, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x43, 0x0a, 0x0f, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x3a, 0x0a, 0x10, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x74, 0x77, 0x65, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x77, 0x65, 0x65, 0x74, 0x52, 0x06, 0x74, 0x77, 0x65, 0x65, 0x74, 0x73, 0x22, 0x3b, 0x0a, 0x0d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x38, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x74, 0x77, 0x65, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x77, 0x65, 0x65, 0x74, 0x52, 0x06, 0x74, 0x77, 0x65, 0x65, 0x74, 0x73, 0x22, 0x29, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x62, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x77, 0x65, 0x65, 0x74, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x54, 0x72, 0x65, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x38, 0x0a, 0x0e, 0x54, 0x72, 0x65, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x74, 0x72, 0x65, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x72, 0x65, 0x6e, 0x64, 0x52, 0x06, 0x74, 0x72, 0x65, 0x6e, 0x64, 0x73, 0x32, 0xfd, 0x01, 0x0a, 0x07, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x08, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x06, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x16, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x14, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x06, 0x54, 0x72, 0x65, 0x6e, 0x64, 0x73, 0x12, 0x16, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x72, 0x65, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x72, 0x65, 0x6e, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x11, 0x5a, 0x0f, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x74, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_proto_twitter_proto_rawDescOnce sync.Once file_proto_twitter_proto_rawDescData = file_proto_twitter_proto_rawDesc ) func file_proto_twitter_proto_rawDescGZIP() []byte { file_proto_twitter_proto_rawDescOnce.Do(func() { file_proto_twitter_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_twitter_proto_rawDescData) }) return file_proto_twitter_proto_rawDescData } var file_proto_twitter_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_proto_twitter_proto_goTypes = []interface{}{ (*Tweet)(nil), // 0: twitter.Tweet (*Profile)(nil), // 1: twitter.Profile (*Trend)(nil), // 2: twitter.Trend (*TimelineRequest)(nil), // 3: twitter.TimelineRequest (*TimelineResponse)(nil), // 4: twitter.TimelineResponse (*SearchRequest)(nil), // 5: twitter.SearchRequest (*SearchResponse)(nil), // 6: twitter.SearchResponse (*UserRequest)(nil), // 7: twitter.UserRequest (*UserResponse)(nil), // 8: twitter.UserResponse (*TrendsRequest)(nil), // 9: twitter.TrendsRequest (*TrendsResponse)(nil), // 10: twitter.TrendsResponse } var file_proto_twitter_proto_depIdxs = []int32{ 0, // 0: twitter.TimelineResponse.tweets:type_name -> twitter.Tweet 0, // 1: twitter.SearchResponse.tweets:type_name -> twitter.Tweet 0, // 2: twitter.UserResponse.status:type_name -> twitter.Tweet 1, // 3: twitter.UserResponse.profile:type_name -> twitter.Profile 2, // 4: twitter.TrendsResponse.trends:type_name -> twitter.Trend 3, // 5: twitter.Twitter.Timeline:input_type -> twitter.TimelineRequest 5, // 6: twitter.Twitter.Search:input_type -> twitter.SearchRequest 7, // 7: twitter.Twitter.User:input_type -> twitter.UserRequest 9, // 8: twitter.Twitter.Trends:input_type -> twitter.TrendsRequest 4, // 9: twitter.Twitter.Timeline:output_type -> twitter.TimelineResponse 6, // 10: twitter.Twitter.Search:output_type -> twitter.SearchResponse 8, // 11: twitter.Twitter.User:output_type -> twitter.UserResponse 10, // 12: twitter.Twitter.Trends:output_type -> twitter.TrendsResponse 9, // [9:13] is the sub-list for method output_type 5, // [5:9] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension extendee 0, // [0:5] is the sub-list for field type_name } func init() { file_proto_twitter_proto_init() } func file_proto_twitter_proto_init() { if File_proto_twitter_proto != nil { return } if !protoimpl.UnsafeEnabled { file_proto_twitter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Tweet); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_twitter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Profile); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_twitter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Trend); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_twitter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TimelineRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_twitter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TimelineResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_twitter_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SearchRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_twitter_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SearchResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_twitter_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_twitter_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_twitter_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TrendsRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_twitter_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TrendsResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_proto_twitter_proto_rawDesc, NumEnums: 0, NumMessages: 11, NumExtensions: 0, NumServices: 1, }, GoTypes: file_proto_twitter_proto_goTypes, DependencyIndexes: file_proto_twitter_proto_depIdxs, MessageInfos: file_proto_twitter_proto_msgTypes, }.Build() File_proto_twitter_proto = out.File file_proto_twitter_proto_rawDesc = nil file_proto_twitter_proto_goTypes = nil file_proto_twitter_proto_depIdxs = nil }