commonv2

package
v0.0.0-...-3bd2bae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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) Enum

func (x BusinessType) Enum() *BusinessType

func (BusinessType) EnumDescriptor deprecated

func (BusinessType) EnumDescriptor() ([]byte, []int)

Deprecated: Use BusinessType.Descriptor instead.

func (BusinessType) Number

func (BusinessType) String

func (x BusinessType) String() string

func (BusinessType) Type

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) 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

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.

const (
	Locality_LOCALITY_UNSPECIFIED   Locality = 0
	Locality_LOCALITY_OTHER         Locality = 1
	Locality_LOCALITY_LOCAL         Locality = 2
	Locality_LOCALITY_NATIONAL      Locality = 3
	Locality_LOCALITY_INTERNATIONAL Locality = 4
)

func (Locality) Descriptor

func (Locality) Descriptor() protoreflect.EnumDescriptor

func (Locality) Enum

func (x Locality) Enum() *Locality

func (Locality) EnumDescriptor deprecated

func (Locality) EnumDescriptor() ([]byte, []int)

Deprecated: Use Locality.Descriptor instead.

func (Locality) Number

func (x Locality) Number() protoreflect.EnumNumber

func (Locality) String

func (x Locality) String() string

func (Locality) Type

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) Enum

func (PoliticalOrientation) EnumDescriptor deprecated

func (PoliticalOrientation) EnumDescriptor() ([]byte, []int)

Deprecated: Use PoliticalOrientation.Descriptor instead.

func (PoliticalOrientation) Number

func (PoliticalOrientation) String

func (x PoliticalOrientation) String() string

func (PoliticalOrientation) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use RangeBy.ProtoReflect.Descriptor instead.

func (*RangeBy) GetBy

func (x *RangeBy) GetBy() string

func (*RangeBy) GetFrom

func (x *RangeBy) GetFrom() string

func (*RangeBy) GetTo

func (x *RangeBy) GetTo() string

func (*RangeBy) ProtoMessage

func (*RangeBy) ProtoMessage()

func (*RangeBy) ProtoReflect

func (x *RangeBy) ProtoReflect() protoreflect.Message

func (*RangeBy) Reset

func (x *RangeBy) Reset()

func (*RangeBy) String

func (x *RangeBy) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SortBy.ProtoReflect.Descriptor instead.

func (*SortBy) GetAsc

func (x *SortBy) GetAsc() bool

func (*SortBy) GetBy

func (x *SortBy) GetBy() string

func (*SortBy) ProtoMessage

func (*SortBy) ProtoMessage()

func (*SortBy) ProtoReflect

func (x *SortBy) ProtoReflect() protoreflect.Message

func (*SortBy) Reset

func (x *SortBy) Reset()

func (*SortBy) String

func (x *SortBy) String() string

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).

const (
	State_STATE_UNSPECIFIED State = 0
	State_STATE_OK          State = 1
	State_STATE_NOT_OK      State = 2
)

func (State) Descriptor

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum

func (x State) Enum() *State

func (State) EnumDescriptor deprecated

func (State) EnumDescriptor() ([]byte, []int)

Deprecated: Use State.Descriptor instead.

func (State) Number

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

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.

const (
	Status_STATUS_UNSPECIFIED Status = 0
	Status_STATUS_PENDING     Status = 1
	Status_STATUS_ACTIVE      Status = 2
	Status_STATUS_SUSPENDED   Status = 3
	Status_STATUS_CLOSED      Status = 4
	Status_STATUS_DELETED     Status = 5
	Status_STATUS_OFFLINE     Status = 6
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

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

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.

const (
	Tier_TIER_UNSPECIFIED  Tier = 0
	Tier_TIER_OTHER        Tier = 1
	Tier_TIER_TRADITIONAL  Tier = 2
	Tier_TIER_DIGITAL      Tier = 3
	Tier_TIER_AGENCY       Tier = 4
	Tier_TIER_BROADCASTING Tier = 5
)

func (Tier) Descriptor

func (Tier) Descriptor() protoreflect.EnumDescriptor

func (Tier) Enum

func (x Tier) Enum() *Tier

func (Tier) EnumDescriptor deprecated

func (Tier) EnumDescriptor() ([]byte, []int)

Deprecated: Use Tier.Descriptor instead.

func (Tier) Number

func (x Tier) Number() protoreflect.EnumNumber

func (Tier) String

func (x Tier) String() string

func (Tier) Type

func (Tier) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL