# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: protos/perfetto/perfetto_sql/structured_query.proto
# Protobuf Python Version: 5.29.0
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder

_runtime_version.ValidateProtobufRuntimeVersion(
    _runtime_version.Domain.PUBLIC, 5, 29, 0, '',
    'protos/perfetto/perfetto_sql/structured_query.proto')
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()

DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
    b'\n3protos/perfetto/perfetto_sql/structured_query.proto\x12\x0fperfetto.protos\"\xaa\x0e\n\x1aPerfettoSqlStructuredQuery\x12\n\n\x02id\x18\x01 \x01(\t\x12\x42\n\x05table\x18\x02 \x01(\x0b\x32\x31.perfetto.protos.PerfettoSqlStructuredQuery.TableH\x00\x12>\n\x03sql\x18\x03 \x01(\x0b\x32/.perfetto.protos.PerfettoSqlStructuredQuery.SqlH\x00\x12Q\n\rsimple_slices\x18\x04 \x01(\x0b\x32\x38.perfetto.protos.PerfettoSqlStructuredQuery.SimpleSlicesH\x00\x12\x42\n\x0binner_query\x18\x05 \x01(\x0b\x32+.perfetto.protos.PerfettoSqlStructuredQueryH\x00\x12\x18\n\x0einner_query_id\x18\x06 \x01(\tH\x00\x12[\n\x12interval_intersect\x18\x07 \x01(\x0b\x32=.perfetto.protos.PerfettoSqlStructuredQuery.IntervalIntersectH\x00\x12\x43\n\x07\x66ilters\x18\x08 \x03(\x0b\x32\x32.perfetto.protos.PerfettoSqlStructuredQuery.Filter\x12\x45\n\x08group_by\x18\t \x01(\x0b\x32\x33.perfetto.protos.PerfettoSqlStructuredQuery.GroupBy\x12P\n\x0eselect_columns\x18\n \x03(\x0b\x32\x38.perfetto.protos.PerfettoSqlStructuredQuery.SelectColumn\x1a\x46\n\x05Table\x12\x12\n\ntable_name\x18\x01 \x01(\t\x12\x13\n\x0bmodule_name\x18\x02 \x01(\t\x12\x14\n\x0c\x63olumn_names\x18\x03 \x03(\t\x1au\n\x0cSimpleSlices\x12\x17\n\x0fslice_name_glob\x18\x01 \x01(\t\x12\x18\n\x10thread_name_glob\x18\x02 \x01(\t\x12\x19\n\x11process_name_glob\x18\x03 \x01(\t\x12\x17\n\x0ftrack_name_glob\x18\x04 \x01(\t\x1a:\n\x03Sql\x12\x0b\n\x03sql\x18\x01 \x01(\t\x12\x14\n\x0c\x63olumn_names\x18\x02 \x03(\t\x12\x10\n\x08preamble\x18\x03 \x01(\t\x1a\x97\x01\n\x11IntervalIntersect\x12\x39\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32+.perfetto.protos.PerfettoSqlStructuredQuery\x12G\n\x12interval_intersect\x18\x02 \x03(\x0b\x32+.perfetto.protos.PerfettoSqlStructuredQuery\x1a\xcb\x02\n\x06\x46ilter\x12\x13\n\x0b\x63olumn_name\x18\x01 \x01(\t\x12G\n\x02op\x18\x02 \x01(\x0e\x32;.perfetto.protos.PerfettoSqlStructuredQuery.Filter.Operator\x12\x12\n\nstring_rhs\x18\x03 \x03(\t\x12\x12\n\ndouble_rhs\x18\x04 \x03(\x01\x12\x11\n\tint64_rhs\x18\x05 \x03(\x03\"\xa7\x01\n\x08Operator\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x45QUAL\x10\x01\x12\r\n\tNOT_EQUAL\x10\x02\x12\r\n\tLESS_THAN\x10\x03\x12\x13\n\x0fLESS_THAN_EQUAL\x10\x04\x12\x10\n\x0cGREATER_THAN\x10\x05\x12\x16\n\x12GREATER_THAN_EQUAL\x10\x06\x12\x0b\n\x07IS_NULL\x10\x08\x12\x0f\n\x0bIS_NOT_NULL\x10\t\x12\x08\n\x04GLOB\x10\x07\x1a\xee\x02\n\x07GroupBy\x12\x14\n\x0c\x63olumn_names\x18\x01 \x03(\t\x12Q\n\naggregates\x18\x02 \x03(\x0b\x32=.perfetto.protos.PerfettoSqlStructuredQuery.GroupBy.Aggregate\x1a\xf9\x01\n\tAggregate\x12\x13\n\x0b\x63olumn_name\x18\x01 \x01(\t\x12L\n\x02op\x18\x02 \x01(\x0e\x32@.perfetto.protos.PerfettoSqlStructuredQuery.GroupBy.Aggregate.Op\x12\x1a\n\x12result_column_name\x18\x03 \x01(\t\"m\n\x02Op\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\t\n\x05\x43OUNT\x10\x01\x12\x07\n\x03SUM\x10\x02\x12\x07\n\x03MIN\x10\x03\x12\x07\n\x03MAX\x10\x04\x12\x08\n\x04MEAN\x10\x05\x12\n\n\x06MEDIAN\x10\x06\x12\x1a\n\x16\x44URATION_WEIGHTED_MEAN\x10\x07\x1a\x32\n\x0cSelectColumn\x12\x13\n\x0b\x63olumn_name\x18\x01 \x01(\t\x12\r\n\x05\x61lias\x18\x02 \x01(\tB\x08\n\x06source'
)

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(
    DESCRIPTOR,
    'perfetto.bigtrace.protos.perfetto.perfetto_sql.structured_query_pb2',
    _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  DESCRIPTOR._loaded_options = None
  _globals['_PERFETTOSQLSTRUCTUREDQUERY']._serialized_start = 73
  _globals['_PERFETTOSQLSTRUCTUREDQUERY']._serialized_end = 1907
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_TABLE']._serialized_start = 739
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_TABLE']._serialized_end = 809
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_SIMPLESLICES']._serialized_start = 811
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_SIMPLESLICES']._serialized_end = 928
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_SQL']._serialized_start = 930
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_SQL']._serialized_end = 988
  _globals[
      '_PERFETTOSQLSTRUCTUREDQUERY_INTERVALINTERSECT']._serialized_start = 991
  _globals[
      '_PERFETTOSQLSTRUCTUREDQUERY_INTERVALINTERSECT']._serialized_end = 1142
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_FILTER']._serialized_start = 1145
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_FILTER']._serialized_end = 1476
  _globals[
      '_PERFETTOSQLSTRUCTUREDQUERY_FILTER_OPERATOR']._serialized_start = 1309
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_FILTER_OPERATOR']._serialized_end = 1476
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_GROUPBY']._serialized_start = 1479
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_GROUPBY']._serialized_end = 1845
  _globals[
      '_PERFETTOSQLSTRUCTUREDQUERY_GROUPBY_AGGREGATE']._serialized_start = 1596
  _globals[
      '_PERFETTOSQLSTRUCTUREDQUERY_GROUPBY_AGGREGATE']._serialized_end = 1845
  _globals[
      '_PERFETTOSQLSTRUCTUREDQUERY_GROUPBY_AGGREGATE_OP']._serialized_start = 1736
  _globals[
      '_PERFETTOSQLSTRUCTUREDQUERY_GROUPBY_AGGREGATE_OP']._serialized_end = 1845
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_SELECTCOLUMN']._serialized_start = 1847
  _globals['_PERFETTOSQLSTRUCTUREDQUERY_SELECTCOLUMN']._serialized_end = 1897
# @@protoc_insertion_point(module_scope)
