mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
83b5273113
* Protobuf all the things * oops * Protobufize events to protect from malformed JSON * format the generated files (will need to remember this for future) * format * clean up kafka produce serializer * fixes
257 lines
8.1 KiB
Python
257 lines
8.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: events.proto
|
|
"""Generated protocol buffer code."""
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import message as _message
|
|
from google.protobuf import reflection as _reflection
|
|
from google.protobuf import symbol_database as _symbol_database
|
|
|
|
# @@protoc_insertion_point(imports)
|
|
|
|
_sym_db = _symbol_database.Default()
|
|
|
|
|
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
|
|
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
name="events.proto",
|
|
package="",
|
|
syntax="proto3",
|
|
serialized_options=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
serialized_pb=b'\n\x0c\x65vents.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x88\x02\n\x05\x45vent\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\r\n\x05\x65vent\x18\x02 \x01(\t\x12\x12\n\nproperties\x18\x03 \x01(\t\x12\x11\n\ttimestamp\x18\x04 \x01(\t\x12\x0f\n\x07team_id\x18\x05 \x01(\x04\x12\x13\n\x0b\x64istinct_id\x18\x06 \x01(\t\x12\x12\n\ncreated_at\x18\x07 \x01(\t\x12\x16\n\x0e\x65lements_chain\x18\x08 \x01(\t\x12\x34\n\x10proto_created_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0fproto_timestamp\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestampb\x06proto3',
|
|
dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,],
|
|
)
|
|
|
|
|
|
_EVENT = _descriptor.Descriptor(
|
|
name="Event",
|
|
full_name="Event",
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name="uuid",
|
|
full_name="Event.uuid",
|
|
index=0,
|
|
number=1,
|
|
type=9,
|
|
cpp_type=9,
|
|
label=1,
|
|
has_default_value=False,
|
|
default_value=b"".decode("utf-8"),
|
|
message_type=None,
|
|
enum_type=None,
|
|
containing_type=None,
|
|
is_extension=False,
|
|
extension_scope=None,
|
|
serialized_options=None,
|
|
file=DESCRIPTOR,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
_descriptor.FieldDescriptor(
|
|
name="event",
|
|
full_name="Event.event",
|
|
index=1,
|
|
number=2,
|
|
type=9,
|
|
cpp_type=9,
|
|
label=1,
|
|
has_default_value=False,
|
|
default_value=b"".decode("utf-8"),
|
|
message_type=None,
|
|
enum_type=None,
|
|
containing_type=None,
|
|
is_extension=False,
|
|
extension_scope=None,
|
|
serialized_options=None,
|
|
file=DESCRIPTOR,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
_descriptor.FieldDescriptor(
|
|
name="properties",
|
|
full_name="Event.properties",
|
|
index=2,
|
|
number=3,
|
|
type=9,
|
|
cpp_type=9,
|
|
label=1,
|
|
has_default_value=False,
|
|
default_value=b"".decode("utf-8"),
|
|
message_type=None,
|
|
enum_type=None,
|
|
containing_type=None,
|
|
is_extension=False,
|
|
extension_scope=None,
|
|
serialized_options=None,
|
|
file=DESCRIPTOR,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
_descriptor.FieldDescriptor(
|
|
name="timestamp",
|
|
full_name="Event.timestamp",
|
|
index=3,
|
|
number=4,
|
|
type=9,
|
|
cpp_type=9,
|
|
label=1,
|
|
has_default_value=False,
|
|
default_value=b"".decode("utf-8"),
|
|
message_type=None,
|
|
enum_type=None,
|
|
containing_type=None,
|
|
is_extension=False,
|
|
extension_scope=None,
|
|
serialized_options=None,
|
|
file=DESCRIPTOR,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
_descriptor.FieldDescriptor(
|
|
name="team_id",
|
|
full_name="Event.team_id",
|
|
index=4,
|
|
number=5,
|
|
type=4,
|
|
cpp_type=4,
|
|
label=1,
|
|
has_default_value=False,
|
|
default_value=0,
|
|
message_type=None,
|
|
enum_type=None,
|
|
containing_type=None,
|
|
is_extension=False,
|
|
extension_scope=None,
|
|
serialized_options=None,
|
|
file=DESCRIPTOR,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
_descriptor.FieldDescriptor(
|
|
name="distinct_id",
|
|
full_name="Event.distinct_id",
|
|
index=5,
|
|
number=6,
|
|
type=9,
|
|
cpp_type=9,
|
|
label=1,
|
|
has_default_value=False,
|
|
default_value=b"".decode("utf-8"),
|
|
message_type=None,
|
|
enum_type=None,
|
|
containing_type=None,
|
|
is_extension=False,
|
|
extension_scope=None,
|
|
serialized_options=None,
|
|
file=DESCRIPTOR,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
_descriptor.FieldDescriptor(
|
|
name="created_at",
|
|
full_name="Event.created_at",
|
|
index=6,
|
|
number=7,
|
|
type=9,
|
|
cpp_type=9,
|
|
label=1,
|
|
has_default_value=False,
|
|
default_value=b"".decode("utf-8"),
|
|
message_type=None,
|
|
enum_type=None,
|
|
containing_type=None,
|
|
is_extension=False,
|
|
extension_scope=None,
|
|
serialized_options=None,
|
|
file=DESCRIPTOR,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
_descriptor.FieldDescriptor(
|
|
name="elements_chain",
|
|
full_name="Event.elements_chain",
|
|
index=7,
|
|
number=8,
|
|
type=9,
|
|
cpp_type=9,
|
|
label=1,
|
|
has_default_value=False,
|
|
default_value=b"".decode("utf-8"),
|
|
message_type=None,
|
|
enum_type=None,
|
|
containing_type=None,
|
|
is_extension=False,
|
|
extension_scope=None,
|
|
serialized_options=None,
|
|
file=DESCRIPTOR,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
_descriptor.FieldDescriptor(
|
|
name="proto_created_at",
|
|
full_name="Event.proto_created_at",
|
|
index=8,
|
|
number=9,
|
|
type=11,
|
|
cpp_type=10,
|
|
label=1,
|
|
has_default_value=False,
|
|
default_value=None,
|
|
message_type=None,
|
|
enum_type=None,
|
|
containing_type=None,
|
|
is_extension=False,
|
|
extension_scope=None,
|
|
serialized_options=None,
|
|
file=DESCRIPTOR,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
_descriptor.FieldDescriptor(
|
|
name="proto_timestamp",
|
|
full_name="Event.proto_timestamp",
|
|
index=9,
|
|
number=10,
|
|
type=11,
|
|
cpp_type=10,
|
|
label=1,
|
|
has_default_value=False,
|
|
default_value=None,
|
|
message_type=None,
|
|
enum_type=None,
|
|
containing_type=None,
|
|
is_extension=False,
|
|
extension_scope=None,
|
|
serialized_options=None,
|
|
file=DESCRIPTOR,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
],
|
|
extensions=[],
|
|
nested_types=[],
|
|
enum_types=[],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax="proto3",
|
|
extension_ranges=[],
|
|
oneofs=[],
|
|
serialized_start=50,
|
|
serialized_end=314,
|
|
)
|
|
|
|
_EVENT.fields_by_name["proto_created_at"].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
|
|
_EVENT.fields_by_name["proto_timestamp"].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
|
|
DESCRIPTOR.message_types_by_name["Event"] = _EVENT
|
|
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
|
|
Event = _reflection.GeneratedProtocolMessageType(
|
|
"Event",
|
|
(_message.Message,),
|
|
{
|
|
"DESCRIPTOR": _EVENT,
|
|
"__module__": "events_pb2"
|
|
# @@protoc_insertion_point(class_scope:Event)
|
|
},
|
|
)
|
|
_sym_db.RegisterMessage(Event)
|
|
|
|
|
|
# @@protoc_insertion_point(module_scope)
|