Documentation
¶
Index ¶
- Variables
- type BusinessType
- func (BusinessType) Descriptor() protoreflect.EnumDescriptor
- func (x BusinessType) Enum() *BusinessType
- func (BusinessType) EnumDescriptor() ([]byte, []int)deprecated
- func (x BusinessType) Number() protoreflect.EnumNumber
- func (x BusinessType) String() string
- func (BusinessType) Type() protoreflect.EnumType
- type ContentType
- func (ContentType) Descriptor() protoreflect.EnumDescriptor
- func (x ContentType) Enum() *ContentType
- func (ContentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ContentType) Number() protoreflect.EnumNumber
- func (x ContentType) String() string
- func (ContentType) Type() protoreflect.EnumType
- type Locality
- type Pagination
- type PoliticalOrientation
- func (PoliticalOrientation) Descriptor() protoreflect.EnumDescriptor
- func (x PoliticalOrientation) Enum() *PoliticalOrientation
- func (PoliticalOrientation) EnumDescriptor() ([]byte, []int)deprecated
- func (x PoliticalOrientation) Number() protoreflect.EnumNumber
- func (x PoliticalOrientation) String() string
- func (PoliticalOrientation) Type() protoreflect.EnumType
- type RangeBy
- func (*RangeBy) Descriptor() ([]byte, []int)deprecated
- func (x *RangeBy) GetBy() string
- func (x *RangeBy) GetFrom() string
- func (x *RangeBy) GetTo() string
- func (*RangeBy) ProtoMessage()
- func (x *RangeBy) ProtoReflect() protoreflect.Message
- func (x *RangeBy) Reset()
- func (x *RangeBy) String() string
- type ResponseWithMessage
- func (*ResponseWithMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseWithMessage) GetMessage() string
- func (x *ResponseWithMessage) GetStatus() string
- func (*ResponseWithMessage) ProtoMessage()
- func (x *ResponseWithMessage) ProtoReflect() protoreflect.Message
- func (x *ResponseWithMessage) Reset()
- func (x *ResponseWithMessage) String() string
- type SortBy
- type State
- type Status
- type StreamType
- type Tier
Constants ¶
This section is empty.
Variables ¶
var ( Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "STATUS_PENDING", 2: "STATUS_ACTIVE", 3: "STATUS_SUSPENDED", 4: "STATUS_CLOSED", 5: "STATUS_DELETED", 6: "STATUS_OFFLINE", } Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "STATUS_PENDING": 1, "STATUS_ACTIVE": 2, "STATUS_SUSPENDED": 3, "STATUS_CLOSED": 4, "STATUS_DELETED": 5, "STATUS_OFFLINE": 6, } )
Enum value maps for Status.
var ( State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "STATE_OK", 2: "STATE_NOT_OK", } State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "STATE_OK": 1, "STATE_NOT_OK": 2, } )
Enum value maps for State.
var ( StreamType_name = map[int32]string{ 0: "STREAM_TYPE_UNSPECIFIED", 1: "STREAM_TYPE_OTHER", 2: "STREAM_TYPE_TWITTER", 3: "STREAM_TYPE_RSS", } StreamType_value = map[string]int32{ "STREAM_TYPE_UNSPECIFIED": 0, "STREAM_TYPE_OTHER": 1, "STREAM_TYPE_TWITTER": 2, "STREAM_TYPE_RSS": 3, } )
Enum value maps for StreamType.
var ( Locality_name = map[int32]string{ 0: "LOCALITY_UNSPECIFIED", 1: "LOCALITY_OTHER", 2: "LOCALITY_LOCAL", 3: "LOCALITY_NATIONAL", 4: "LOCALITY_INTERNATIONAL", } Locality_value = map[string]int32{ "LOCALITY_UNSPECIFIED": 0, "LOCALITY_OTHER": 1, "LOCALITY_LOCAL": 2, "LOCALITY_NATIONAL": 3, "LOCALITY_INTERNATIONAL": 4, } )
Enum value maps for Locality.
var ( BusinessType_name = map[int32]string{ 0: "BUSINESS_TYPE_UNSPECIFIED", 1: "BUSINESS_TYPE_OTHER", 2: "BUSINESS_TYPE_STATE", 3: "BUSINESS_TYPE_ORGANIZATION", 4: "BUSINESS_TYPE_BLOG", 5: "BUSINESS_TYPE_PORTAL", 6: "BUSINESS_TYPE_NON_PROFIT", 7: "BUSINESS_TYPE_ACADEMIA", } BusinessType_value = map[string]int32{ "BUSINESS_TYPE_UNSPECIFIED": 0, "BUSINESS_TYPE_OTHER": 1, "BUSINESS_TYPE_STATE": 2, "BUSINESS_TYPE_ORGANIZATION": 3, "BUSINESS_TYPE_BLOG": 4, "BUSINESS_TYPE_PORTAL": 5, "BUSINESS_TYPE_NON_PROFIT": 6, "BUSINESS_TYPE_ACADEMIA": 7, } )
Enum value maps for BusinessType.
var ( ContentType_name = map[int32]string{ 0: "CONTENT_TYPE_UNSPECIFIED", 1: "CONTENT_TYPE_OTHER", 2: "CONTENT_TYPE_NEWS", 3: "CONTENT_TYPE_MARKET_BUSINESS", 4: "CONTENT_TYPE_DEFENCE_ARMY_POLICE", 5: "CONTENT_TYPE_ENTERTAINMENT", 6: "CONTENT_TYPE_HEALTH_BEAUTY", 7: "CONTENT_TYPE_SPORTS", 8: "CONTENT_TYPE_RELIGION", 9: "CONTENT_TYPE_OPINION", 10: "CONTENT_TYPE_AGRICULTURE", 11: "CONTENT_TYPE_SCIENCE", 12: "CONTENT_TYPE_EDUCATION", 13: "CONTENT_TYPE_JUSTICE", 14: "CONTENT_TYPE_MEDIA", 15: "CONTENT_TYPE_LIFESTYLE", 16: "CONTENT_TYPE_AUTO", 17: "CONTENT_TYPE_MUSIC", 18: "CONTENT_TYPE_TECH", 19: "CONTENT_TYPE_TRAVEL", 20: "CONTENT_TYPE_ENERGY", 21: "CONTENT_TYPE_ENVIRONMENT", } ContentType_value = map[string]int32{ "CONTENT_TYPE_UNSPECIFIED": 0, "CONTENT_TYPE_OTHER": 1, "CONTENT_TYPE_NEWS": 2, "CONTENT_TYPE_MARKET_BUSINESS": 3, "CONTENT_TYPE_DEFENCE_ARMY_POLICE": 4, "CONTENT_TYPE_ENTERTAINMENT": 5, "CONTENT_TYPE_HEALTH_BEAUTY": 6, "CONTENT_TYPE_SPORTS": 7, "CONTENT_TYPE_RELIGION": 8, "CONTENT_TYPE_OPINION": 9, "CONTENT_TYPE_AGRICULTURE": 10, "CONTENT_TYPE_SCIENCE": 11, "CONTENT_TYPE_EDUCATION": 12, "CONTENT_TYPE_JUSTICE": 13, "CONTENT_TYPE_MEDIA": 14, "CONTENT_TYPE_LIFESTYLE": 15, "CONTENT_TYPE_AUTO": 16, "CONTENT_TYPE_MUSIC": 17, "CONTENT_TYPE_TECH": 18, "CONTENT_TYPE_TRAVEL": 19, "CONTENT_TYPE_ENERGY": 20, "CONTENT_TYPE_ENVIRONMENT": 21, } )
Enum value maps for ContentType.
var ( PoliticalOrientation_name = map[int32]string{ 0: "POLITICAL_ORIENTATION_UNSPECIFIED", 1: "POLITICAL_ORIENTATION_OTHER", 2: "POLITICAL_ORIENTATION_LEFT", 3: "POLITICAL_ORIENTATION_CENTER_LEFT", 4: "POLITICAL_ORIENTATION_CENTER", 5: "POLITICAL_ORIENTATION_CENTER_RIGHT", 6: "POLITICAL_ORIENTATION_RIGHT", 7: "POLITICAL_ORIENTATION_FAR_RIGHT", } PoliticalOrientation_value = map[string]int32{ "POLITICAL_ORIENTATION_UNSPECIFIED": 0, "POLITICAL_ORIENTATION_OTHER": 1, "POLITICAL_ORIENTATION_LEFT": 2, "POLITICAL_ORIENTATION_CENTER_LEFT": 3, "POLITICAL_ORIENTATION_CENTER": 4, "POLITICAL_ORIENTATION_CENTER_RIGHT": 5, "POLITICAL_ORIENTATION_RIGHT": 6, "POLITICAL_ORIENTATION_FAR_RIGHT": 7, } )
Enum value maps for PoliticalOrientation.
var ( Tier_name = map[int32]string{ 0: "TIER_UNSPECIFIED", 1: "TIER_OTHER", 2: "TIER_TRADITIONAL", 3: "TIER_DIGITAL", 4: "TIER_AGENCY", 5: "TIER_BROADCASTING", } Tier_value = map[string]int32{ "TIER_UNSPECIFIED": 0, "TIER_OTHER": 1, "TIER_TRADITIONAL": 2, "TIER_DIGITAL": 3, "TIER_AGENCY": 4, "TIER_BROADCASTING": 5, } )
Enum value maps for Tier.
var File_mediawatch_common_v2_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BusinessType ¶
type BusinessType int32
BusinessType Enumeration
Business type of the media outlet can be STATE for state controlled media outlets, ORGANIZATION for news organizations that employ journalists, BLOG for personal blogs, PORTAL for news aggregators and portals, NON_PROFIT for non-profits or NGOs, ACADEMIC for universities and academic research, OTHER for any other value that does not fit in any of the previous categories, and UNSPECIFIED as a default.
const ( BusinessType_BUSINESS_TYPE_UNSPECIFIED BusinessType = 0 BusinessType_BUSINESS_TYPE_OTHER BusinessType = 1 BusinessType_BUSINESS_TYPE_STATE BusinessType = 2 BusinessType_BUSINESS_TYPE_ORGANIZATION BusinessType = 3 BusinessType_BUSINESS_TYPE_BLOG BusinessType = 4 BusinessType_BUSINESS_TYPE_PORTAL BusinessType = 5 BusinessType_BUSINESS_TYPE_NON_PROFIT BusinessType = 6 BusinessType_BUSINESS_TYPE_ACADEMIA BusinessType = 7 )
func (BusinessType) Descriptor ¶
func (BusinessType) Descriptor() protoreflect.EnumDescriptor
func (BusinessType) Enum ¶
func (x BusinessType) Enum() *BusinessType
func (BusinessType) EnumDescriptor
deprecated
func (BusinessType) EnumDescriptor() ([]byte, []int)
Deprecated: Use BusinessType.Descriptor instead.
func (BusinessType) Number ¶
func (x BusinessType) Number() protoreflect.EnumNumber
func (BusinessType) String ¶
func (x BusinessType) String() string
func (BusinessType) Type ¶
func (BusinessType) Type() protoreflect.EnumType
type ContentType ¶
type ContentType int32
ContentType Enumeration
Content type of the media outlet describes the type of content the media outlet publishes in majority. Currently supported content types are NEWS for news media, MARKET_BUSINESS for business and market news, DEFENCE_ARMY_POLICE for defense, army and police news, ENTERTAINMENT for entertainment news, HEALTH_BEAUTY for health and beauty news, SPORTS for sports news, RELIGION for religion news, OPINION for opinion news, AGRICULTURE for agriculture news, SCIENCE for science news, EDUCATION for education news, JUSTICE for justice news, MEDIA for media news, LIFESTYLE for lifestyle news, AUTO for automotive news, MUSIC for music news, TECH for technology news, TRAVEL for travel news, ENERGY for energy news, ENVIRONMENT for environment news, and OTHER for any other value that does not fit in any of the previous categories. For a default value use UNSPECIFIED.
In the future we should consider adding more content types, and possibly a way to add custom content types, or additionally we should refactor this enumeration to be a string based enumeration, and allow for any value to be added.
const ( ContentType_CONTENT_TYPE_UNSPECIFIED ContentType = 0 ContentType_CONTENT_TYPE_OTHER ContentType = 1 ContentType_CONTENT_TYPE_NEWS ContentType = 2 ContentType_CONTENT_TYPE_MARKET_BUSINESS ContentType = 3 ContentType_CONTENT_TYPE_DEFENCE_ARMY_POLICE ContentType = 4 ContentType_CONTENT_TYPE_ENTERTAINMENT ContentType = 5 ContentType_CONTENT_TYPE_HEALTH_BEAUTY ContentType = 6 ContentType_CONTENT_TYPE_SPORTS ContentType = 7 ContentType_CONTENT_TYPE_RELIGION ContentType = 8 ContentType_CONTENT_TYPE_OPINION ContentType = 9 ContentType_CONTENT_TYPE_AGRICULTURE ContentType = 10 ContentType_CONTENT_TYPE_SCIENCE ContentType = 11 ContentType_CONTENT_TYPE_EDUCATION ContentType = 12 ContentType_CONTENT_TYPE_JUSTICE ContentType = 13 ContentType_CONTENT_TYPE_MEDIA ContentType = 14 ContentType_CONTENT_TYPE_LIFESTYLE ContentType = 15 ContentType_CONTENT_TYPE_AUTO ContentType = 16 ContentType_CONTENT_TYPE_MUSIC ContentType = 17 ContentType_CONTENT_TYPE_TECH ContentType = 18 ContentType_CONTENT_TYPE_TRAVEL ContentType = 19 ContentType_CONTENT_TYPE_ENERGY ContentType = 20 ContentType_CONTENT_TYPE_ENVIRONMENT ContentType = 21 )
func (ContentType) Descriptor ¶
func (ContentType) Descriptor() protoreflect.EnumDescriptor
func (ContentType) Enum ¶
func (x ContentType) Enum() *ContentType
func (ContentType) EnumDescriptor
deprecated
func (ContentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ContentType.Descriptor instead.
func (ContentType) Number ¶
func (x ContentType) Number() protoreflect.EnumNumber
func (ContentType) String ¶
func (x ContentType) String() string
func (ContentType) Type ¶
func (ContentType) Type() protoreflect.EnumType
type Locality ¶
type Locality int32
Locality Enumeration
Locality of the media outlet can be LOCAL for a local media outlet, NATIONAL for a media outlet covering national news, INTERNATIONAL for a media outlet covering international news, MIXED for a media outlet covering both national and international news, UNSPECIFIED for a default value, OTHER for any other value that does not fit in any of the previous categories.
func (Locality) Descriptor ¶
func (Locality) Descriptor() protoreflect.EnumDescriptor
func (Locality) EnumDescriptor
deprecated
func (Locality) Number ¶
func (x Locality) Number() protoreflect.EnumNumber
func (Locality) Type ¶
func (Locality) Type() protoreflect.EnumType
type Pagination ¶
type Pagination struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Pages int64 `protobuf:"varint,2,opt,name=pages,proto3" json:"pages,omitempty"` // contains filtered or unexported fields }
Pagination
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetPages ¶
func (x *Pagination) GetPages() int64
func (*Pagination) GetTotal ¶
func (x *Pagination) GetTotal() int64
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type PoliticalOrientation ¶
type PoliticalOrientation int32
PoliticalOrientation Enumeration
IMPORTANT: Political orientation of the media outlet should be examined carefully, and peer reviewed before assigning a value to it. Use this enumeration with caution.
Political orientation of the media outlet can be LEFT for left wing media, CENTER_LEFT for center left media, CENTER for center media, CENTER_RIGHT for center right media, RIGHT for right wing media, and FAR_RIGHT for far right media. For any other value that does not fit in any of the previous categories use OTHER, and for a default value use UNSPECIFIED.
const ( PoliticalOrientation_POLITICAL_ORIENTATION_UNSPECIFIED PoliticalOrientation = 0 PoliticalOrientation_POLITICAL_ORIENTATION_OTHER PoliticalOrientation = 1 PoliticalOrientation_POLITICAL_ORIENTATION_LEFT PoliticalOrientation = 2 PoliticalOrientation_POLITICAL_ORIENTATION_CENTER_LEFT PoliticalOrientation = 3 PoliticalOrientation_POLITICAL_ORIENTATION_CENTER PoliticalOrientation = 4 PoliticalOrientation_POLITICAL_ORIENTATION_CENTER_RIGHT PoliticalOrientation = 5 PoliticalOrientation_POLITICAL_ORIENTATION_RIGHT PoliticalOrientation = 6 PoliticalOrientation_POLITICAL_ORIENTATION_FAR_RIGHT PoliticalOrientation = 7 )
func (PoliticalOrientation) Descriptor ¶
func (PoliticalOrientation) Descriptor() protoreflect.EnumDescriptor
func (PoliticalOrientation) Enum ¶
func (x PoliticalOrientation) Enum() *PoliticalOrientation
func (PoliticalOrientation) EnumDescriptor
deprecated
func (PoliticalOrientation) EnumDescriptor() ([]byte, []int)
Deprecated: Use PoliticalOrientation.Descriptor instead.
func (PoliticalOrientation) Number ¶
func (x PoliticalOrientation) Number() protoreflect.EnumNumber
func (PoliticalOrientation) String ¶
func (x PoliticalOrientation) String() string
func (PoliticalOrientation) Type ¶
func (PoliticalOrientation) Type() protoreflect.EnumType
type RangeBy ¶
type RangeBy struct { By string `protobuf:"bytes,1,opt,name=by,proto3" json:"by,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` // contains filtered or unexported fields }
func (*RangeBy) Descriptor
deprecated
func (*RangeBy) ProtoMessage ¶
func (*RangeBy) ProtoMessage()
func (*RangeBy) ProtoReflect ¶
func (x *RangeBy) ProtoReflect() protoreflect.Message
type ResponseWithMessage ¶
type ResponseWithMessage struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
ResponseWithMessage
func (*ResponseWithMessage) Descriptor
deprecated
func (*ResponseWithMessage) Descriptor() ([]byte, []int)
Deprecated: Use ResponseWithMessage.ProtoReflect.Descriptor instead.
func (*ResponseWithMessage) GetMessage ¶
func (x *ResponseWithMessage) GetMessage() string
func (*ResponseWithMessage) GetStatus ¶
func (x *ResponseWithMessage) GetStatus() string
func (*ResponseWithMessage) ProtoMessage ¶
func (*ResponseWithMessage) ProtoMessage()
func (*ResponseWithMessage) ProtoReflect ¶
func (x *ResponseWithMessage) ProtoReflect() protoreflect.Message
func (*ResponseWithMessage) Reset ¶
func (x *ResponseWithMessage) Reset()
func (*ResponseWithMessage) String ¶
func (x *ResponseWithMessage) String() string
type SortBy ¶
type SortBy struct { By string `protobuf:"bytes,1,opt,name=by,proto3" json:"by,omitempty"` Asc bool `protobuf:"varint,2,opt,name=asc,proto3" json:"asc,omitempty"` // contains filtered or unexported fields }
func (*SortBy) Descriptor
deprecated
func (*SortBy) ProtoMessage ¶
func (*SortBy) ProtoMessage()
func (*SortBy) ProtoReflect ¶
func (x *SortBy) ProtoReflect() protoreflect.Message
type State ¶
type State int32
State Enumeration
State of the media outlet can be OK for a feed that is operational (reachable online), and NOT_OK for feeds that are not operational (unreachable online).
func (State) Descriptor ¶
func (State) Descriptor() protoreflect.EnumDescriptor
func (State) EnumDescriptor
deprecated
func (State) Number ¶
func (x State) Number() protoreflect.EnumNumber
func (State) Type ¶
func (State) Type() protoreflect.EnumType
type Status ¶
type Status int32
Status Enumeration
Status enumeration is shared accross multiple messages.
Status of an object can be PENDING for an object that is not yet operational, ACTIVE for operational objects, SUSPENDED for objects that are temporarily not operational, CLOSED for objects that are no longer operational, DELETED for objects that are removed from the system, and OFFLINE for objects that are unreachable online.
An object can be a feed, an organization, an account, or any other object in the system.
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type StreamType ¶
type StreamType int32
StreamType Enumeration
Stream type of the feed can be TWITTER for a Twitter feed, RSS for an RSS feed, OTHER for a custom feed (parsed by the system using a custom parser), and UNSPECIFIED as a default.
As of June 2023, Twitter has stopped providing the public API access to the Twitter feeds, and as such is no longer supported.
const ( StreamType_STREAM_TYPE_UNSPECIFIED StreamType = 0 StreamType_STREAM_TYPE_OTHER StreamType = 1 StreamType_STREAM_TYPE_TWITTER StreamType = 2 StreamType_STREAM_TYPE_RSS StreamType = 3 )
func (StreamType) Descriptor ¶
func (StreamType) Descriptor() protoreflect.EnumDescriptor
func (StreamType) Enum ¶
func (x StreamType) Enum() *StreamType
func (StreamType) EnumDescriptor
deprecated
func (StreamType) EnumDescriptor() ([]byte, []int)
Deprecated: Use StreamType.Descriptor instead.
func (StreamType) Number ¶
func (x StreamType) Number() protoreflect.EnumNumber
func (StreamType) String ¶
func (x StreamType) String() string
func (StreamType) Type ¶
func (StreamType) Type() protoreflect.EnumType
type Tier ¶
type Tier int32
Tier Enumeration
Tier of the media outlet can be TRADITIONAL for a printed media outlet, DIGITAL for outlets that only have online presence, AGENCY for news agencies, BROADCASTING for broadcasting media (tv, radio), OTHER for any other format that does not fit in any of the previous categories, and UNSPECIFIED as a default.
func (Tier) Descriptor ¶
func (Tier) Descriptor() protoreflect.EnumDescriptor
func (Tier) EnumDescriptor
deprecated
func (Tier) Number ¶
func (x Tier) Number() protoreflect.EnumNumber
func (Tier) Type ¶
func (Tier) Type() protoreflect.EnumType