syntax = "proto3";

import "google/protobuf/wrappers.proto";
import "google/api/annotations.proto";

package com.wixpress.iptf.webhooks;

service Debug {
  rpc queryMessageId(QueryMessageIdRequest) returns (QueryResponse){
    option (google.api.http) = {
      post: "/queryMessageId"
    };
  };

  rpc queryOffset(QueryOffsetRequest) returns (QueryResponse){
    option (google.api.http) = {
      post: "/queryOffset"
    };
  };
}

message QueryOffsetRequest {
  string topic = 1;
  int32 partition = 2;
  int64 offset = 3;
}

message QueryMessageIdRequest {
  string message_id = 1;
}

message QueryResponse {
  repeated string json = 1;
}