- Init project

- Add first version grabber collection event and relations
This commit is contained in:
Aleksandr Garin 2023-08-16 23:49:32 +03:00
commit b1324a3dbe
14 changed files with 1047 additions and 0 deletions

40
.gitignore vendored Normal file
View File

@ -0,0 +1,40 @@
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
.idea/**/aws.xml
.idea/**/contentModel.xml
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
.idea/**/gradle.xml
.idea/**/libraries
cmake-build-*/
.idea/**/mongoSettings.xml
*.iws
out/
tmp/
bin/
.idea_modules/
atlassian-ide-plugin.xml
.idea/replstate.xml
.idea/sonarlint/
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
.idea/httpRequests
.idea/caches/build_file_checksums.ser
*.exe
*.exe~
*.dll
*.so
*.dylib
*.test
*.out
go.work

17
.protolint.yaml Normal file
View File

@ -0,0 +1,17 @@
lint:
rules:
all_default: true
remove:
- FIELD_NAMES_EXCLUDE_PREPOSITIONS
- MESSAGE_NAMES_EXCLUDE_PREPOSITIONS
- MESSAGES_HAVE_COMMENT
- SERVICES_HAVE_COMMENT
- RPCS_HAVE_COMMENT
- FIELDS_HAVE_COMMENT
- ENUMS_HAVE_COMMENT
- ENUM_FIELDS_HAVE_COMMENT
- FILE_HAS_COMMENT
rules_option:
max_line_length:
max_chars: 160
tab_chars: 2

92
Makefile Normal file
View File

@ -0,0 +1,92 @@
BIN_DIR := $(CURDIR)/bin
TMP_DIR := $(CURDIR)/tmp
OUT_DIR := $(CURDIR)/pkg
PROTO_DIR := $(CURDIR)/api/proto
# https://github.com/protocolbuffers/protobuf/releases
PROTO_VERSION := 24.0
# https://pkg.go.dev/google.golang.org/grpc?tab=versions
GO_GRPC_VERSION := 1.57.0
# https://pkg.go.dev/google.golang.org/protobuf?tab=versions
PROTO_GEN_GO_VERSION := 1.31.0
# https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc?tab=versions
PROTO_GEN_GO_GRPC_VERSION := 1.3.0
# https://github.com/pseudomuto/protoc-gen-doc/releases
PROTO_GEN_DOC_VERSION := 1.5.1
# https://github.com/yoheimuta/protolint/releases
PROTOLINT_VERSION = 0.45.1
# Workaround for https://github.com/golang/protobuf/issues/52
# https://github.com/favadi/protoc-go-inject-tag/releases
PROTO_GO_INJECT_TAG_VERSION = 1.4.0
# Workaround for https://github.com/golang/protobuf/issues/513
# https://github.com/kluevandrew/protoc-go-remove-enum-prefix/releases
PROTOC_GO_REMOVE_ENUM_PREFIX_VERSION = 1.1.0
PATH := $(BIN_DIR):$(PATH)
ifeq ($(OS),Windows_NT)
IS_DARWIN := 0
OSNAME := "win"
OSARCH := $(if ($(PROCESSOR_ARCHITEW6432),AMD64),"64","32")
else
IS_DARWIN := $(filter Darwin,$(shell uname -s))
OSNAME := $(if $(filter Darwin,$(shell uname -s)),"osx","linux")
OSARCH := "-x86_64"
endif
.ONESHELL: protoc-install
.PHONY: protoc-install
protoc-install:
@type $(BIN_DIR)/protoc > /dev/null 2>&1 && exit 0 || (\
(mkdir -p $(BIN_DIR) || true) && \
(mkdir -p $(TMP_DIR) || true) && \
curl -sSL "https://github.com/protocolbuffers/protobuf/releases/download/v$(PROTO_VERSION)/protoc-$(PROTO_VERSION)-$(OSNAME)$(OSARCH).zip" \
-o $(TMP_DIR)/protoc.zip && \
unzip -q -o $(TMP_DIR)/protoc.zip -d $(TMP_DIR)/protoc && \
cp -f $(TMP_DIR)/protoc/bin/protoc $(BIN_DIR)/protoc && \
cp -rf $(TMP_DIR)/protoc/include $(BIN_DIR)/include && \
chmod +x $(BIN_DIR)/protoc && \
export GOBIN=$(BIN_DIR) && \
go install -ldflags '-w -s' google.golang.org/protobuf/cmd/protoc-gen-go@v${PROTO_GEN_GO_VERSION} && \
go install -ldflags '-w -s' google.golang.org/grpc/cmd/protoc-gen-go-grpc@v${PROTO_GEN_GO_GRPC_VERSION} && \
go install -ldflags '-w -s' github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@v${PROTO_GEN_DOC_VERSION} && \
go install -ldflags '-w -s' github.com/favadi/protoc-go-inject-tag@v${PROTO_GO_INJECT_TAG_VERSION} && \
go install -ldflags '-w -s' github.com/kluevandrew/protoc-go-remove-enum-prefix@v${PROTOC_GO_REMOVE_ENUM_PREFIX_VERSION} && \
go install github.com/yoheimuta/protolint/cmd/protolint@v${PROTOLINT_VERSION} && \
rm -rf $(TMP_DIR)/* && echo "Installed")
.ONESHELL: generate
.PHONY: generate
.DEFAULT_GOAL := generate
generate: protoc-install
export GOBIN=$(BIN_DIR) && \
export PATH=$$GOBIN:$$PATH && \
protoc \
-I $(BIN_DIR)/include \
--proto_path $(PROTO_DIR) \
--go_out=$(OUT_DIR) \
--go-grpc_out=$(OUT_DIR) \
--go_opt=paths=source_relative \
--go-grpc_opt=paths=source_relative \
$(PROTO_DIR)/*/*.proto \
&& \
protoc-go-inject-tag -input=$(OUT_DIR)/*/*.pb.go -remove_tag_comment && \
protoc-go-remove-enum-prefix -input=$(OUT_DIR)/*/*.pb.go
.ONESHELL: clean
.PHONY: clean
clean:
rm -rf $(BIN_DIR) $(TMP_DIR)
.ONESHELL: lint
.PHONY: lint
lint: protoc-install
export GOBIN=$(BIN_DIR) && \
export PATH=$$GOBIN:$$PATH && \
protolint lint api/proto
.ONESHELL: lint-auto-fix
.PHONY: lint-auto-fix
lint-auto-fix: protoc-install
export GOBIN=$(BIN_DIR) && \
export PATH=$$GOBIN:$$PATH && \
protolint lint -fix api/proto

0
README.md Normal file
View File

View File

@ -0,0 +1,19 @@
syntax = "proto3";
package grabber;
import "google/protobuf/timestamp.proto";
import "grabber/content.proto";
option go_package = "githouse.ru/macrox/kids-ugc-contracts/pkg/grabber";
// Событие сбора данные
message CollectionEvent {
// Название платформы (к примеру youtube)
string platform_slug = 1;
// Данные - массив контента
repeated Content payload = 2;
// Время создания события на стороне сборщика данных
google.protobuf.Timestamp created_at = 3;
}

View File

@ -0,0 +1,34 @@
syntax = "proto3";
package grabber;
import "google/protobuf/timestamp.proto";
import "grabber/content_type.proto";
import "grabber/content_format.proto";
option go_package = "githouse.ru/macrox/kids-ugc-contracts/pkg/grabber";
message Content {
// Тип контента
ContentType type = 1;
// Формат контента
ContentFormat format = 2;
// Внешний идентификатор
string external_id = 3;
// Заголовок
string title = 4;
// Описание
optional string description = 5;
// Длительность в секундах
optional int32 duration = 6;
// Ссылка
string url = 7;
// Ссылка до картинки-превью
optional string thumbnail_url = 8;
// Массив хештегов
repeated string hashtags = 9;
repeated string mentions = 10;
// Время публикации
google.protobuf.Timestamp published_at = 11;
}

View File

@ -0,0 +1,14 @@
syntax = "proto3";
package grabber;
option go_package = "githouse.ru/macrox/kids-ugc-contracts/pkg/grabber";
// @go-enum-no-prefix
enum ContentFormat {
CONTENT_FORMAT_UNSPECIFIED = 0;
CONTENT_FORMAT_VIDEO = 1;
CONTENT_FORMAT_AUDIO = 2;
CONTENT_FORMAT_IMAGE = 3;
CONTENT_FORMAT_TEXT = 4;
}

View File

@ -0,0 +1,24 @@
syntax = "proto3";
package grabber;
option go_package = "githouse.ru/macrox/kids-ugc-contracts/pkg/grabber";
// @go-enum-no-prefix
enum ContentType {
CONTENT_TYPE_UNSPECIFIED = 0;
CONTENT_TYPE_VIDEO = 1;
CONTENT_TYPE_POST = 2;
CONTENT_TYPE_STORY = 3;
CONTENT_TYPE_TWEET = 4;
CONTENT_TYPE_BLOG = 5;
CONTENT_TYPE_IMAGE = 6;
CONTENT_TYPE_THREAD = 7;
CONTENT_TYPE_PODCAST = 8;
CONTENT_TYPE_TRACK = 9;
CONTENT_TYPE_REELS = 10;
CONTENT_TYPE_STREAM = 11;
CONTENT_TYPE_FEED = 12;
CONTENT_TYPE_IGTV = 13;
CONTENT_TYPE_OTHER = 14;
}

5
go.mod Normal file
View File

@ -0,0 +1,5 @@
module githouse.ru/macrox/kids-ugc-contracts
go 1.20
require google.golang.org/protobuf v1.31.0

8
go.sum Normal file
View File

@ -0,0 +1,8 @@
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=

View File

@ -0,0 +1,182 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.24.0
// source: grabber/collection_event.proto
package grabber
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
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 CollectionEvent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Название платформы (к примеру youtube)
PlatformSlug string `protobuf:"bytes,1,opt,name=platform_slug,json=platformSlug,proto3" json:"platform_slug,omitempty"`
// Данные - массив контента
Payload []*Content `protobuf:"bytes,2,rep,name=payload,proto3" json:"payload,omitempty"`
// Время создания события на стороне сборщика данных
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}
func (x *CollectionEvent) Reset() {
*x = CollectionEvent{}
if protoimpl.UnsafeEnabled {
mi := &file_grabber_collection_event_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CollectionEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CollectionEvent) ProtoMessage() {}
func (x *CollectionEvent) ProtoReflect() protoreflect.Message {
mi := &file_grabber_collection_event_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 CollectionEvent.ProtoReflect.Descriptor instead.
func (*CollectionEvent) Descriptor() ([]byte, []int) {
return file_grabber_collection_event_proto_rawDescGZIP(), []int{0}
}
func (x *CollectionEvent) GetPlatformSlug() string {
if x != nil {
return x.PlatformSlug
}
return ""
}
func (x *CollectionEvent) GetPayload() []*Content {
if x != nil {
return x.Payload
}
return nil
}
func (x *CollectionEvent) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
var File_grabber_collection_event_proto protoreflect.FileDescriptor
var file_grabber_collection_event_proto_rawDesc = []byte{
0x0a, 0x1e, 0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x07, 0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x67, 0x72, 0x61, 0x62,
0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
0x6d, 0x5f, 0x73, 0x6c, 0x75, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x6c,
0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x53, 0x6c, 0x75, 0x67, 0x12, 0x2a, 0x0a, 0x07, 0x70, 0x61,
0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x72,
0x61, 0x62, 0x62, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x70,
0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
0x74, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x72, 0x75,
0x2f, 0x6d, 0x61, 0x63, 0x72, 0x6f, 0x78, 0x2f, 0x6b, 0x69, 0x64, 0x73, 0x2d, 0x75, 0x67, 0x63,
0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67,
0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_grabber_collection_event_proto_rawDescOnce sync.Once
file_grabber_collection_event_proto_rawDescData = file_grabber_collection_event_proto_rawDesc
)
func file_grabber_collection_event_proto_rawDescGZIP() []byte {
file_grabber_collection_event_proto_rawDescOnce.Do(func() {
file_grabber_collection_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_grabber_collection_event_proto_rawDescData)
})
return file_grabber_collection_event_proto_rawDescData
}
var file_grabber_collection_event_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_grabber_collection_event_proto_goTypes = []interface{}{
(*CollectionEvent)(nil), // 0: grabber.CollectionEvent
(*Content)(nil), // 1: grabber.Content
(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var file_grabber_collection_event_proto_depIdxs = []int32{
1, // 0: grabber.CollectionEvent.payload:type_name -> grabber.Content
2, // 1: grabber.CollectionEvent.created_at:type_name -> google.protobuf.Timestamp
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_grabber_collection_event_proto_init() }
func file_grabber_collection_event_proto_init() {
if File_grabber_collection_event_proto != nil {
return
}
file_grabber_content_proto_init()
if !protoimpl.UnsafeEnabled {
file_grabber_collection_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CollectionEvent); 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_grabber_collection_event_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_grabber_collection_event_proto_goTypes,
DependencyIndexes: file_grabber_collection_event_proto_depIdxs,
MessageInfos: file_grabber_collection_event_proto_msgTypes,
}.Build()
File_grabber_collection_event_proto = out.File
file_grabber_collection_event_proto_rawDesc = nil
file_grabber_collection_event_proto_goTypes = nil
file_grabber_collection_event_proto_depIdxs = nil
}

276
pkg/grabber/content.pb.go Normal file
View File

@ -0,0 +1,276 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.24.0
// source: grabber/content.proto
package grabber
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
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 Content struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Тип контента
Type ContentType `protobuf:"varint,1,opt,name=type,proto3,enum=grabber.ContentType" json:"type,omitempty"`
// Формат контента
Format ContentFormat `protobuf:"varint,2,opt,name=format,proto3,enum=grabber.ContentFormat" json:"format,omitempty"`
// Внешний идентификатор
ExternalId string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
// Заголовок
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
// Описание
Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
// Длительность в секундах
Duration *int32 `protobuf:"varint,6,opt,name=duration,proto3,oneof" json:"duration,omitempty"`
// Ссылка
Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"`
// Ссылка до картинки-превью
ThumbnailUrl *string `protobuf:"bytes,8,opt,name=thumbnail_url,json=thumbnailUrl,proto3,oneof" json:"thumbnail_url,omitempty"`
// Массив хештегов
Hashtags []string `protobuf:"bytes,9,rep,name=hashtags,proto3" json:"hashtags,omitempty"`
Mentions []string `protobuf:"bytes,10,rep,name=mentions,proto3" json:"mentions,omitempty"`
// Время публикации
PublishedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"`
}
func (x *Content) Reset() {
*x = Content{}
if protoimpl.UnsafeEnabled {
mi := &file_grabber_content_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Content) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Content) ProtoMessage() {}
func (x *Content) ProtoReflect() protoreflect.Message {
mi := &file_grabber_content_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 Content.ProtoReflect.Descriptor instead.
func (*Content) Descriptor() ([]byte, []int) {
return file_grabber_content_proto_rawDescGZIP(), []int{0}
}
func (x *Content) GetType() ContentType {
if x != nil {
return x.Type
}
return CONTENT_TYPE_UNSPECIFIED
}
func (x *Content) GetFormat() ContentFormat {
if x != nil {
return x.Format
}
return CONTENT_FORMAT_UNSPECIFIED
}
func (x *Content) GetExternalId() string {
if x != nil {
return x.ExternalId
}
return ""
}
func (x *Content) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Content) GetDescription() string {
if x != nil && x.Description != nil {
return *x.Description
}
return ""
}
func (x *Content) GetDuration() int32 {
if x != nil && x.Duration != nil {
return *x.Duration
}
return 0
}
func (x *Content) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *Content) GetThumbnailUrl() string {
if x != nil && x.ThumbnailUrl != nil {
return *x.ThumbnailUrl
}
return ""
}
func (x *Content) GetHashtags() []string {
if x != nil {
return x.Hashtags
}
return nil
}
func (x *Content) GetMentions() []string {
if x != nil {
return x.Mentions
}
return nil
}
func (x *Content) GetPublishedAt() *timestamppb.Timestamp {
if x != nil {
return x.PublishedAt
}
return nil
}
var File_grabber_content_proto protoreflect.FileDescriptor
var file_grabber_content_proto_rawDesc = []byte{
0x0a, 0x15, 0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72,
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1a, 0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65,
0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67,
0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x66,
0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x03, 0x0a, 0x07,
0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x2e,
0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,
0x65, 0x12, 0x2e, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x74,
0x65, 0x6e, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61,
0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12,
0x1f, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28,
0x05, 0x48, 0x01, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01,
0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
0x72, 0x6c, 0x12, 0x28, 0x0a, 0x0d, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x5f,
0x75, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0c, 0x74, 0x68, 0x75,
0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x55, 0x72, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x08,
0x68, 0x61, 0x73, 0x68, 0x74, 0x61, 0x67, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08,
0x68, 0x61, 0x73, 0x68, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x6e, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x6e, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65,
0x64, 0x5f, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65,
0x64, 0x41, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x5f, 0x75,
0x72, 0x6c, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x72,
0x75, 0x2f, 0x6d, 0x61, 0x63, 0x72, 0x6f, 0x78, 0x2f, 0x6b, 0x69, 0x64, 0x73, 0x2d, 0x75, 0x67,
0x63, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f,
0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_grabber_content_proto_rawDescOnce sync.Once
file_grabber_content_proto_rawDescData = file_grabber_content_proto_rawDesc
)
func file_grabber_content_proto_rawDescGZIP() []byte {
file_grabber_content_proto_rawDescOnce.Do(func() {
file_grabber_content_proto_rawDescData = protoimpl.X.CompressGZIP(file_grabber_content_proto_rawDescData)
})
return file_grabber_content_proto_rawDescData
}
var file_grabber_content_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_grabber_content_proto_goTypes = []interface{}{
(*Content)(nil), // 0: grabber.Content
(ContentType)(0), // 1: grabber.ContentType
(ContentFormat)(0), // 2: grabber.ContentFormat
(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
var file_grabber_content_proto_depIdxs = []int32{
1, // 0: grabber.Content.type:type_name -> grabber.ContentType
2, // 1: grabber.Content.format:type_name -> grabber.ContentFormat
3, // 2: grabber.Content.published_at:type_name -> google.protobuf.Timestamp
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_grabber_content_proto_init() }
func file_grabber_content_proto_init() {
if File_grabber_content_proto != nil {
return
}
file_grabber_content_type_proto_init()
file_grabber_content_format_proto_init()
if !protoimpl.UnsafeEnabled {
file_grabber_content_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Content); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_grabber_content_proto_msgTypes[0].OneofWrappers = []interface{}{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_grabber_content_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_grabber_content_proto_goTypes,
DependencyIndexes: file_grabber_content_proto_depIdxs,
MessageInfos: file_grabber_content_proto_msgTypes,
}.Build()
File_grabber_content_proto = out.File
file_grabber_content_proto_rawDesc = nil
file_grabber_content_proto_goTypes = nil
file_grabber_content_proto_depIdxs = nil
}

View File

@ -0,0 +1,146 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.24.0
// source: grabber/content_format.proto
package grabber
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 ContentFormat int32
const (
CONTENT_FORMAT_UNSPECIFIED ContentFormat = 0
CONTENT_FORMAT_VIDEO ContentFormat = 1
CONTENT_FORMAT_AUDIO ContentFormat = 2
CONTENT_FORMAT_IMAGE ContentFormat = 3
CONTENT_FORMAT_TEXT ContentFormat = 4
)
// Enum value maps for ContentFormat.
var (
ContentFormat_name = map[int32]string{
0: "CONTENT_FORMAT_UNSPECIFIED",
1: "CONTENT_FORMAT_VIDEO",
2: "CONTENT_FORMAT_AUDIO",
3: "CONTENT_FORMAT_IMAGE",
4: "CONTENT_FORMAT_TEXT",
}
ContentFormat_value = map[string]int32{
"CONTENT_FORMAT_UNSPECIFIED": 0,
"CONTENT_FORMAT_VIDEO": 1,
"CONTENT_FORMAT_AUDIO": 2,
"CONTENT_FORMAT_IMAGE": 3,
"CONTENT_FORMAT_TEXT": 4,
}
)
func (x ContentFormat) Enum() *ContentFormat {
p := new(ContentFormat)
*p = x
return p
}
func (x ContentFormat) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ContentFormat) Descriptor() protoreflect.EnumDescriptor {
return file_grabber_content_format_proto_enumTypes[0].Descriptor()
}
func (ContentFormat) Type() protoreflect.EnumType {
return &file_grabber_content_format_proto_enumTypes[0]
}
func (x ContentFormat) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ContentFormat.Descriptor instead.
func (ContentFormat) EnumDescriptor() ([]byte, []int) {
return file_grabber_content_format_proto_rawDescGZIP(), []int{0}
}
var File_grabber_content_format_proto protoreflect.FileDescriptor
var file_grabber_content_format_proto_rawDesc = []byte{
0x0a, 0x1c, 0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07,
0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x2a, 0x96, 0x01, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74,
0x65, 0x6e, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4f, 0x4e,
0x54, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50,
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4e,
0x54, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x56, 0x49, 0x44, 0x45,
0x4f, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x46,
0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x02, 0x12, 0x18, 0x0a,
0x14, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f,
0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4e, 0x54, 0x45,
0x4e, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x10, 0x04,
0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x72, 0x75, 0x2f,
0x6d, 0x61, 0x63, 0x72, 0x6f, 0x78, 0x2f, 0x6b, 0x69, 0x64, 0x73, 0x2d, 0x75, 0x67, 0x63, 0x2d,
0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72,
0x61, 0x62, 0x62, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_grabber_content_format_proto_rawDescOnce sync.Once
file_grabber_content_format_proto_rawDescData = file_grabber_content_format_proto_rawDesc
)
func file_grabber_content_format_proto_rawDescGZIP() []byte {
file_grabber_content_format_proto_rawDescOnce.Do(func() {
file_grabber_content_format_proto_rawDescData = protoimpl.X.CompressGZIP(file_grabber_content_format_proto_rawDescData)
})
return file_grabber_content_format_proto_rawDescData
}
var file_grabber_content_format_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_grabber_content_format_proto_goTypes = []interface{}{
(ContentFormat)(0), // 0: grabber.ContentFormat
}
var file_grabber_content_format_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_grabber_content_format_proto_init() }
func file_grabber_content_format_proto_init() {
if File_grabber_content_format_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_grabber_content_format_proto_rawDesc,
NumEnums: 1,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_grabber_content_format_proto_goTypes,
DependencyIndexes: file_grabber_content_format_proto_depIdxs,
EnumInfos: file_grabber_content_format_proto_enumTypes,
}.Build()
File_grabber_content_format_proto = out.File
file_grabber_content_format_proto_rawDesc = nil
file_grabber_content_format_proto_goTypes = nil
file_grabber_content_format_proto_depIdxs = nil
}

View File

@ -0,0 +1,190 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.24.0
// source: grabber/content_type.proto
package grabber
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 ContentType int32
const (
CONTENT_TYPE_UNSPECIFIED ContentType = 0
CONTENT_TYPE_VIDEO ContentType = 1
CONTENT_TYPE_POST ContentType = 2
CONTENT_TYPE_STORY ContentType = 3
CONTENT_TYPE_TWEET ContentType = 4
CONTENT_TYPE_BLOG ContentType = 5
CONTENT_TYPE_IMAGE ContentType = 6
CONTENT_TYPE_THREAD ContentType = 7
CONTENT_TYPE_PODCAST ContentType = 8
CONTENT_TYPE_TRACK ContentType = 9
CONTENT_TYPE_REELS ContentType = 10
CONTENT_TYPE_STREAM ContentType = 11
CONTENT_TYPE_FEED ContentType = 12
CONTENT_TYPE_IGTV ContentType = 13
CONTENT_TYPE_OTHER ContentType = 14
)
// Enum value maps for ContentType.
var (
ContentType_name = map[int32]string{
0: "CONTENT_TYPE_UNSPECIFIED",
1: "CONTENT_TYPE_VIDEO",
2: "CONTENT_TYPE_POST",
3: "CONTENT_TYPE_STORY",
4: "CONTENT_TYPE_TWEET",
5: "CONTENT_TYPE_BLOG",
6: "CONTENT_TYPE_IMAGE",
7: "CONTENT_TYPE_THREAD",
8: "CONTENT_TYPE_PODCAST",
9: "CONTENT_TYPE_TRACK",
10: "CONTENT_TYPE_REELS",
11: "CONTENT_TYPE_STREAM",
12: "CONTENT_TYPE_FEED",
13: "CONTENT_TYPE_IGTV",
14: "CONTENT_TYPE_OTHER",
}
ContentType_value = map[string]int32{
"CONTENT_TYPE_UNSPECIFIED": 0,
"CONTENT_TYPE_VIDEO": 1,
"CONTENT_TYPE_POST": 2,
"CONTENT_TYPE_STORY": 3,
"CONTENT_TYPE_TWEET": 4,
"CONTENT_TYPE_BLOG": 5,
"CONTENT_TYPE_IMAGE": 6,
"CONTENT_TYPE_THREAD": 7,
"CONTENT_TYPE_PODCAST": 8,
"CONTENT_TYPE_TRACK": 9,
"CONTENT_TYPE_REELS": 10,
"CONTENT_TYPE_STREAM": 11,
"CONTENT_TYPE_FEED": 12,
"CONTENT_TYPE_IGTV": 13,
"CONTENT_TYPE_OTHER": 14,
}
)
func (x ContentType) Enum() *ContentType {
p := new(ContentType)
*p = x
return p
}
func (x ContentType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ContentType) Descriptor() protoreflect.EnumDescriptor {
return file_grabber_content_type_proto_enumTypes[0].Descriptor()
}
func (ContentType) Type() protoreflect.EnumType {
return &file_grabber_content_type_proto_enumTypes[0]
}
func (x ContentType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ContentType.Descriptor instead.
func (ContentType) EnumDescriptor() ([]byte, []int) {
return file_grabber_content_type_proto_rawDescGZIP(), []int{0}
}
var File_grabber_content_type_proto protoreflect.FileDescriptor
var file_grabber_content_type_proto_rawDesc = []byte{
0x0a, 0x1a, 0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x72,
0x61, 0x62, 0x62, 0x65, 0x72, 0x2a, 0xfb, 0x02, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54,
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54,
0x59, 0x50, 0x45, 0x5f, 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x43,
0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x54,
0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59,
0x50, 0x45, 0x5f, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f,
0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x57, 0x45, 0x45, 0x54,
0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59,
0x50, 0x45, 0x5f, 0x42, 0x4c, 0x4f, 0x47, 0x10, 0x05, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x4e,
0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10,
0x06, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50,
0x45, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x41, 0x44, 0x10, 0x07, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f,
0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4f, 0x44, 0x43, 0x41,
0x53, 0x54, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f,
0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x43, 0x4b, 0x10, 0x09, 0x12, 0x16, 0x0a, 0x12,
0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x45,
0x4c, 0x53, 0x10, 0x0a, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f,
0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, 0x45, 0x41, 0x4d, 0x10, 0x0b, 0x12, 0x15, 0x0a,
0x11, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45,
0x45, 0x44, 0x10, 0x0c, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f,
0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x47, 0x54, 0x56, 0x10, 0x0d, 0x12, 0x16, 0x0a, 0x12, 0x43,
0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x54, 0x48, 0x45,
0x52, 0x10, 0x0e, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e,
0x72, 0x75, 0x2f, 0x6d, 0x61, 0x63, 0x72, 0x6f, 0x78, 0x2f, 0x6b, 0x69, 0x64, 0x73, 0x2d, 0x75,
0x67, 0x63, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x2f, 0x70, 0x6b, 0x67,
0x2f, 0x67, 0x72, 0x61, 0x62, 0x62, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_grabber_content_type_proto_rawDescOnce sync.Once
file_grabber_content_type_proto_rawDescData = file_grabber_content_type_proto_rawDesc
)
func file_grabber_content_type_proto_rawDescGZIP() []byte {
file_grabber_content_type_proto_rawDescOnce.Do(func() {
file_grabber_content_type_proto_rawDescData = protoimpl.X.CompressGZIP(file_grabber_content_type_proto_rawDescData)
})
return file_grabber_content_type_proto_rawDescData
}
var file_grabber_content_type_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_grabber_content_type_proto_goTypes = []interface{}{
(ContentType)(0), // 0: grabber.ContentType
}
var file_grabber_content_type_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_grabber_content_type_proto_init() }
func file_grabber_content_type_proto_init() {
if File_grabber_content_type_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_grabber_content_type_proto_rawDesc,
NumEnums: 1,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_grabber_content_type_proto_goTypes,
DependencyIndexes: file_grabber_content_type_proto_depIdxs,
EnumInfos: file_grabber_content_type_proto_enumTypes,
}.Build()
File_grabber_content_type_proto = out.File
file_grabber_content_type_proto_rawDesc = nil
file_grabber_content_type_proto_goTypes = nil
file_grabber_content_type_proto_depIdxs = nil
}