syntax = "proto3";

package example.v1;


message Product {
    string name = 1;
       uint32 price = 2;
  repeated string tags = 3;
}

enum Status {
  STATUS_UNSPECIFIED = 0;
    STATUS_ACTIVE = 1;
      STATUS_INACTIVE = 2;
}

service ProductService {
    rpc GetProduct(GetProductRequest) returns (GetProductResponse);
  rpc ListProducts(ListProductsRequest) returns   (ListProductsResponse);
}

message GetProductRequest {
      string id = 1;
}

message GetProductResponse{
  Product product = 1;
}

message ListProductsRequest {
    uint32 page_size = 1;
  string page_token = 2;
}

message ListProductsResponse {
repeated Product products = 1;
    string next_page_token = 2;
}
