syntax = "proto3";

import "google/protobuf/descriptor.proto";

package Klang.Seed.Services.EventLogs.Extensions;

enum BigQueryFieldTypeValue {
  Float64 = 0;
  Int64 = 1;
  String = 2;
  Bytes = 3;
  Bool = 4;
}

extend google.protobuf.FieldOptions {
  // When specified on a field in a event, this will control what type the bigquery column for this field will use
  // This allows you to override the default protobuff to bigquery type mapping
  BigQueryFieldTypeValue BigQueryFieldType = 50002;

  // When specified, this option will control the name of the column in the bigquery table for this field
  string BigQueryFieldName = 50003;
}

extend google.protobuf.MessageOptions {
  string BigQueryTableName = 50004;
  int32 EventVersionDefaultValue = 50005;
}
