diff --git a/.gitignore b/.gitignore
index a1c2a23..6ad6086 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,6 +18,7 @@
*.zip
*.tar.gz
*.rar
+target
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..5c98b42
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,2 @@
+# Default ignored files
+/workspace.xml
\ No newline at end of file
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..6c3720d
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+schemas
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..a55e7a1
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..cbfc97f
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..89fa671
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__classworlds_classworlds_1_1_alpha_2.xml b/.idea/libraries/Maven__classworlds_classworlds_1_1_alpha_2.xml
new file mode 100644
index 0000000..c99448d
--- /dev/null
+++ b/.idea/libraries/Maven__classworlds_classworlds_1_1_alpha_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
new file mode 100644
index 0000000..06441f4
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_9.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_9.xml
new file mode 100644
index 0000000..55b3f7b
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_9.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_9_3.xml b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_9_3.xml
new file mode 100644
index 0000000..4970251
--- /dev/null
+++ b/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_9_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_github_fge_btf_1_2.xml b/.idea/libraries/Maven__com_github_fge_btf_1_2.xml
new file mode 100644
index 0000000..be485ed
--- /dev/null
+++ b/.idea/libraries/Maven__com_github_fge_btf_1_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_github_fge_jackson_coreutils_1_6.xml b/.idea/libraries/Maven__com_github_fge_jackson_coreutils_1_6.xml
new file mode 100644
index 0000000..ab50b57
--- /dev/null
+++ b/.idea/libraries/Maven__com_github_fge_jackson_coreutils_1_6.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_github_fge_json_schema_avro_0_1_4.xml b/.idea/libraries/Maven__com_github_fge_json_schema_avro_0_1_4.xml
new file mode 100644
index 0000000..dbc61bc
--- /dev/null
+++ b/.idea/libraries/Maven__com_github_fge_json_schema_avro_0_1_4.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_github_fge_json_schema_core_1_2_0.xml b/.idea/libraries/Maven__com_github_fge_json_schema_core_1_2_0.xml
new file mode 100644
index 0000000..930a862
--- /dev/null
+++ b/.idea/libraries/Maven__com_github_fge_json_schema_core_1_2_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_github_fge_json_schema_validator_2_2_0.xml b/.idea/libraries/Maven__com_github_fge_json_schema_validator_2_2_0.xml
new file mode 100644
index 0000000..6e50e75
--- /dev/null
+++ b/.idea/libraries/Maven__com_github_fge_json_schema_validator_2_2_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_github_fge_msg_simple_1_1.xml b/.idea/libraries/Maven__com_github_fge_msg_simple_1_1.xml
new file mode 100644
index 0000000..0fefc8c
--- /dev/null
+++ b/.idea/libraries/Maven__com_github_fge_msg_simple_1_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_github_fge_uri_template_0_9.xml b/.idea/libraries/Maven__com_github_fge_uri_template_0_9.xml
new file mode 100644
index 0000000..de219cb
--- /dev/null
+++ b/.idea/libraries/Maven__com_github_fge_uri_template_0_9.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_code_findbugs_jsr305_2_0_1.xml b/.idea/libraries/Maven__com_google_code_findbugs_jsr305_2_0_1.xml
new file mode 100644
index 0000000..dd1dc9f
--- /dev/null
+++ b/.idea/libraries/Maven__com_google_code_findbugs_jsr305_2_0_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_google_guava_guava_16_0_1.xml b/.idea/libraries/Maven__com_google_guava_guava_16_0_1.xml
new file mode 100644
index 0000000..b7c7684
--- /dev/null
+++ b/.idea/libraries/Maven__com_google_guava_guava_16_0_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__com_googlecode_libphonenumber_libphonenumber_6_0.xml b/.idea/libraries/Maven__com_googlecode_libphonenumber_libphonenumber_6_0.xml
new file mode 100644
index 0000000..e5ce35c
--- /dev/null
+++ b/.idea/libraries/Maven__com_googlecode_libphonenumber_libphonenumber_6_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__javax_activation_activation_1_1.xml b/.idea/libraries/Maven__javax_activation_activation_1_1.xml
new file mode 100644
index 0000000..180d587
--- /dev/null
+++ b/.idea/libraries/Maven__javax_activation_activation_1_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__javax_mail_mailapi_1_4_3.xml b/.idea/libraries/Maven__javax_mail_mailapi_1_4_3.xml
new file mode 100644
index 0000000..7461705
--- /dev/null
+++ b/.idea/libraries/Maven__javax_mail_mailapi_1_4_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__joda_time_joda_time_2_10_1.xml b/.idea/libraries/Maven__joda_time_joda_time_2_10_1.xml
new file mode 100644
index 0000000..9f7554a
--- /dev/null
+++ b/.idea/libraries/Maven__joda_time_joda_time_2_10_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__junit_junit_3_8_1.xml b/.idea/libraries/Maven__junit_junit_3_8_1.xml
new file mode 100644
index 0000000..71b2993
--- /dev/null
+++ b/.idea/libraries/Maven__junit_junit_3_8_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__net_sf_jopt_simple_jopt_simple_4_6.xml b/.idea/libraries/Maven__net_sf_jopt_simple_jopt_simple_4_6.xml
new file mode 100644
index 0000000..18ea23b
--- /dev/null
+++ b/.idea/libraries/Maven__net_sf_jopt_simple_jopt_simple_4_6.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_avro_avro_1_9_1.xml b/.idea/libraries/Maven__org_apache_avro_avro_1_9_1.xml
new file mode 100644
index 0000000..e30319c
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_avro_avro_1_9_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_avro_avro_compiler_1_9_1.xml b/.idea/libraries/Maven__org_apache_avro_avro_compiler_1_9_1.xml
new file mode 100644
index 0000000..71a1d85
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_avro_avro_compiler_1_9_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_avro_avro_maven_plugin_1_9_1.xml b/.idea/libraries/Maven__org_apache_avro_avro_maven_plugin_1_9_1.xml
new file mode 100644
index 0000000..63cd3b5
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_avro_avro_maven_plugin_1_9_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_commons_commons_compress_1_19.xml b/.idea/libraries/Maven__org_apache_commons_commons_compress_1_19.xml
new file mode 100644
index 0000000..7c25fef
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_commons_commons_compress_1_19.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_8_1.xml b/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_8_1.xml
new file mode 100644
index 0000000..33b78e9
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_8_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_maven_artifact_2_0_11.xml b/.idea/libraries/Maven__org_apache_maven_maven_artifact_2_0_11.xml
new file mode 100644
index 0000000..8abc0db
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_maven_artifact_2_0_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_maven_artifact_manager_2_0_11.xml b/.idea/libraries/Maven__org_apache_maven_maven_artifact_manager_2_0_11.xml
new file mode 100644
index 0000000..0016e8c
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_maven_artifact_manager_2_0_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_maven_model_2_0_11.xml b/.idea/libraries/Maven__org_apache_maven_maven_model_2_0_11.xml
new file mode 100644
index 0000000..55043f4
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_maven_model_2_0_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_maven_plugin_api_2_0_11.xml b/.idea/libraries/Maven__org_apache_maven_maven_plugin_api_2_0_11.xml
new file mode 100644
index 0000000..aebfa49
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_maven_plugin_api_2_0_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_maven_plugin_registry_2_0_11.xml b/.idea/libraries/Maven__org_apache_maven_maven_plugin_registry_2_0_11.xml
new file mode 100644
index 0000000..25b4578
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_maven_plugin_registry_2_0_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_maven_profile_2_0_11.xml b/.idea/libraries/Maven__org_apache_maven_maven_profile_2_0_11.xml
new file mode 100644
index 0000000..2e5d5bb
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_maven_profile_2_0_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_maven_project_2_0_11.xml b/.idea/libraries/Maven__org_apache_maven_maven_project_2_0_11.xml
new file mode 100644
index 0000000..f379325
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_maven_project_2_0_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_maven_repository_metadata_2_0_11.xml b/.idea/libraries/Maven__org_apache_maven_maven_repository_metadata_2_0_11.xml
new file mode 100644
index 0000000..0e5f94a
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_maven_repository_metadata_2_0_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_maven_settings_2_0_11.xml b/.idea/libraries/Maven__org_apache_maven_maven_settings_2_0_11.xml
new file mode 100644
index 0000000..0f6a497
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_maven_settings_2_0_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_shared_file_management_1_2_1.xml b/.idea/libraries/Maven__org_apache_maven_shared_file_management_1_2_1.xml
new file mode 100644
index 0000000..4be9957
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_shared_file_management_1_2_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_shared_maven_shared_io_1_1.xml b/.idea/libraries/Maven__org_apache_maven_shared_maven_shared_io_1_1.xml
new file mode 100644
index 0000000..e64e656
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_shared_maven_shared_io_1_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_maven_wagon_wagon_provider_api_1_0_beta_2.xml b/.idea/libraries/Maven__org_apache_maven_wagon_wagon_provider_api_1_0_beta_2.xml
new file mode 100644
index 0000000..0ce749a
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_maven_wagon_wagon_provider_api_1_0_beta_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_apache_velocity_velocity_engine_core_2_0.xml b/.idea/libraries/Maven__org_apache_velocity_velocity_engine_core_2_0.xml
new file mode 100644
index 0000000..b16563b
--- /dev/null
+++ b/.idea/libraries/Maven__org_apache_velocity_velocity_engine_core_2_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_codehaus_plexus_plexus_container_default_1_0_alpha_9_stable_1.xml b/.idea/libraries/Maven__org_codehaus_plexus_plexus_container_default_1_0_alpha_9_stable_1.xml
new file mode 100644
index 0000000..a121f49
--- /dev/null
+++ b/.idea/libraries/Maven__org_codehaus_plexus_plexus_container_default_1_0_alpha_9_stable_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_codehaus_plexus_plexus_interpolation_1_1.xml b/.idea/libraries/Maven__org_codehaus_plexus_plexus_interpolation_1_1.xml
new file mode 100644
index 0000000..ae8e18d
--- /dev/null
+++ b/.idea/libraries/Maven__org_codehaus_plexus_plexus_interpolation_1_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_codehaus_plexus_plexus_utils_1_5_6.xml b/.idea/libraries/Maven__org_codehaus_plexus_plexus_utils_1_5_6.xml
new file mode 100644
index 0000000..ffd9245
--- /dev/null
+++ b/.idea/libraries/Maven__org_codehaus_plexus_plexus_utils_1_5_6.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_mozilla_rhino_1_7R4.xml b/.idea/libraries/Maven__org_mozilla_rhino_1_7R4.xml
new file mode 100644
index 0000000..82eb241
--- /dev/null
+++ b/.idea/libraries/Maven__org_mozilla_rhino_1_7R4.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml
new file mode 100644
index 0000000..20e8163
--- /dev/null
+++ b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..409ecde
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..9d4058b
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/schemas.iml b/schemas.iml
new file mode 100644
index 0000000..4543416
--- /dev/null
+++ b/schemas.iml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/avro/AlertEvent.avsc b/src/main/resources/avro/AlertEvent.avsc
new file mode 100644
index 0000000..3a9b92e
--- /dev/null
+++ b/src/main/resources/avro/AlertEvent.avsc
@@ -0,0 +1,38 @@
+{
+ "namespace": "io.keyko.monitoring.schemas",
+ "type": "record",
+ "name": "AlertEvent",
+ "fields": [
+ {
+ "name": "name",
+ "type": "string"
+ },
+ {
+ "name": "reference",
+ "type": "string"
+ },
+ {
+ "name": "status",
+ "type": {
+ "name": "AlertEventStatus",
+ "type": "enum",
+ "symbols": [
+ "FATAL",
+ "ERROR",
+ "WARNING",
+ "INFO",
+ "DEBUG"
+ ]
+ }
+ },
+ {
+ "name": "timestamp",
+ "type": "string",
+ "java-class": "java.math.BigInteger"
+ },
+ {
+ "name": "description",
+ "type": "string"
+ }
+ ]
+}
diff --git a/target/classes/avro/BlockEvent.avsc b/target/classes/avro/BlockEvent.avsc
deleted file mode 100644
index 4048622..0000000
--- a/target/classes/avro/BlockEvent.avsc
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "namespace": "io.keyko.monitoring.schemas",
- "type": "record",
- "name": "BlockEvent",
- "fields": [
- {
- "name": "id",
- "type": "string"
- },
- {
- "name": "type",
- "type": "string"
- },
- {
- "name": "details",
- "type": {
- "type": "record",
- "name": "BlockDetails",
- "fields": [
- {
- "name": "number",
- "type": "string",
- "java-class": "java.math.BigInteger"
- },
- {
- "name": "hash",
- "type": "string"
- },
- {
- "name": "timestamp",
- "type": "string",
- "java-class": "java.math.BigInteger"
- },
- {
- "name": "nodeName",
- "type": "string"
- }
- ]
- }
- },
- {
- "name": "retries",
- "type": "int"
- }
- ]
-}
diff --git a/target/classes/avro/ContractEvent.avsc b/target/classes/avro/ContractEvent.avsc
deleted file mode 100644
index d73faf7..0000000
--- a/target/classes/avro/ContractEvent.avsc
+++ /dev/null
@@ -1,144 +0,0 @@
-{
- "namespace": "io.keyko.monitoring.schemas",
- "type": "record",
- "name": "ContractEvent",
- "fields": [
- {
- "name": "id",
- "type": "string"
- },
- {
- "name": "type",
- "type": "string"
- },
- {
- "name": "details",
- "type": {
- "type": "record",
- "name": "ContractEventDetails",
- "fields": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "filterId",
- "type": "string"
- },
- {
- "name": "nodeName",
- "type": "string"
- },
- {
- "name": "indexedParameters",
- "type": {
- "type": "array",
- "items": [
- {
- "namespace": "io.keyko.monitoring.schemas",
- "name": "StringParameter",
- "type": "record",
- "fields": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "type",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- },
- {
- "namespace": "io.keyko.monitoring.schemas",
- "name": "NumberParameter",
- "type": "record",
- "fields": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "type",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string",
- "java-class": "java.math.BigInteger"
- }
- ]
- }
- ]
- }
- },
-
- {
- "name": "nonIndexedParameters",
- "type": {
- "type": "array",
- "items": [
- "StringParameter",
- "NumberParameter"
- ]
- }
- },
- {
- "name": "transactionHash",
- "type": "string"
- },
- {
- "name": "logIndex",
- "type": "string",
- "java-class": "java.math.BigInteger"
- },
- {
- "name": "blockNumber",
- "type": "string",
- "java-class": "java.math.BigInteger"
- },
- {
- "name": "blockHash",
- "type": "string"
- },
- {
- "name": "address",
- "type": "string"
- },
- {
- "name": "status",
- "type": {
- "name": "ContractEventStatus",
- "type": "enum",
- "symbols": [
- "UNCONFIRMED",
- "CONFIRMED",
- "INVALIDATED"
- ]
- }
- },
- {
- "name": "eventSpecificationSignature",
- "type": "string"
- },
- {
- "name": "networkName",
- "type": "string"
- },
- {
- "name": "id",
- "type": "string"
- }
- ]
- }
- },
- {
- "name": "retries",
- "type": "int"
- }
- ]
-}
diff --git a/target/classes/avro/EventBlock.avsc b/target/classes/avro/EventBlock.avsc
deleted file mode 100644
index 1187dd6..0000000
--- a/target/classes/avro/EventBlock.avsc
+++ /dev/null
@@ -1,171 +0,0 @@
-{
- "namespace": "io.keyko.monitoring.schemas",
- "type": "record",
- "name": "EventBlock",
- "fields": [
- {
- "name": "id",
- "type": "string"
- },
- {
- "name": "type",
- "type": "string"
- },
- {
- "name": "details",
- "type": {
- "type": "record",
- "name": "ContractEventDetails",
- "fields": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "filterId",
- "type": "string"
- },
- {
- "name": "nodeName",
- "type": "string"
- },
- {
- "name": "indexedParameters",
- "type": {
- "type": "array",
- "items": [
- {
- "namespace": "io.keyko.monitoring.schemas",
- "name": "StringParameter",
- "type": "record",
- "fields": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "type",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- },
- {
- "namespace": "io.keyko.monitoring.schemas",
- "name": "NumberParameter",
- "type": "record",
- "fields": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "type",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string",
- "java-class": "java.math.BigInteger"
- }
- ]
- }
- ]
- }
- },
-
- {
- "name": "nonIndexedParameters",
- "type": {
- "type": "array",
- "items": [
- "StringParameter",
- "NumberParameter"
- ]
- }
- },
- {
- "name": "transactionHash",
- "type": "string"
- },
- {
- "name": "logIndex",
- "type": "string",
- "java-class": "java.math.BigInteger"
- },
- {
- "name": "blockNumber",
- "type": "string",
- "java-class": "java.math.BigInteger"
- },
- {
- "name": "blockHash",
- "type": "string"
- },
- {
- "name": "address",
- "type": "string"
- },
- {
- "name": "status",
- "type": {
- "name": "ContractEventStatus",
- "type": "enum",
- "symbols": [
- "UNCONFIRMED",
- "CONFIRMED",
- "INVALIDATED"
- ]
- }
- },
- {
- "name": "eventSpecificationSignature",
- "type": "string"
- },
- {
- "name": "networkName",
- "type": "string"
- },
- {
- "name": "id",
- "type": "string"
- }
- ]
- }
- },
- {
- "name": "detailsBlock",
- "type": {
- "type": "record",
- "name": "BlockDetails",
- "fields": [
- {
- "name": "number",
- "type": "string",
- "java-class": "java.math.BigInteger"
- },
- {
- "name": "hash",
- "type": "string"
- },
- {
- "name": "timestamp",
- "type": "string",
- "java-class": "java.math.BigInteger"
- },
- {
- "name": "nodeName",
- "type": "string"
- }
- ]
- }
- },
- {
- "name": "retries",
- "type": "int"
- }
- ]
-}
diff --git a/target/classes/avro/TransactionEvent.avsc b/target/classes/avro/TransactionEvent.avsc
deleted file mode 100644
index 508285b..0000000
--- a/target/classes/avro/TransactionEvent.avsc
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "namespace": "io.keyko.monitoring.schemas",
- "type": "record",
- "name": "TransactionEvent",
- "fields": [
- {
- "name": "id",
- "type": "string"
- },
- {
- "name": "type",
- "type": "string"
- },
- {
- "name": "details",
- "type": {
- "type": "record",
- "name": "TransactionDetails",
- "fields": [
- {
- "name": "hash",
- "type": "string"
- },
- {
- "name": "nonce",
- "type": "string"
- },
- {
- "name": "blockNumber",
- "type": "string"
- },
- {
- "name": "blockHash",
- "type": "string"
- },
- {
- "name": "transactionIndex",
- "type": "string"
- },
- {
- "name": "from",
- "type": "string"
- },
- {
- "name": "to",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- },
- {
- "name": "nodeName",
- "type": "string"
- },
- {
- "name": "contractAddress",
- "type": "string"
- },
- {
- "name": "input",
- "type": "string"
- },
- {
- "name": "revertReason",
- "type": "string"
- },
- {
- "name": "status",
- "type": {
- "name": "TransactionStatus",
- "type": "enum",
- "symbols" : [
- "UNCONFIRMED", "CONFIRMED", "INVALIDATED", "FAILED"
- ]
- }
- }
- ]
- }
- },
- {
- "name": "retries",
- "type": "int"
- }
- ]
-}
diff --git a/target/classes/json/Actor.json b/target/classes/json/Actor.json
deleted file mode 100644
index f35f3a9..0000000
--- a/target/classes/json/Actor.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "record:com.oceanprotocol.core.keeper.models.Actor" : {
- "type" : "object",
- "required" : [ "actorId", "name", "publicKey", "creationDatetime", "updateDatetime", "actorType", "attributes" ],
- "additionalProperties" : false,
- "properties" : {
- "actorId" : {
- "type" : "string"
- },
- "name" : {
- "type" : "string"
- },
- "publicKey" : {
- "type" : "string"
- },
- "creationDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "updateDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "actorType" : {
- "$ref" : "#/definitions/enum:com.oceanprotocol.core.keeper.models.ActorType"
- },
- "attributes" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.ActorAttribute"
- }
- }
- }
- },
- "enum:com.oceanprotocol.core.keeper.models.ActorType" : {
- "enum" : [ "PUBLISHER", "CONSUMER", "MARKETPLACE", "CURATOR", "KEEPER" ]
- },
- "record:com.oceanprotocol.core.keeper.models.ActorAttribute" : {
- "type" : "object",
- "required" : [ "name", "description" ],
- "additionalProperties" : false,
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "description" : {
- "type" : "string"
- }
- }
- }
-}
diff --git a/target/classes/json/Bid.json b/target/classes/json/Bid.json
deleted file mode 100644
index d9a040b..0000000
--- a/target/classes/json/Bid.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "record:com.oceanprotocol.core.keeper.models.Bid" : {
- "type" : "object",
- "required" : [ "clientId", "metadataId", "creationDatetime", "additionalVerificationProofs", "bid" ],
- "additionalProperties" : false,
- "properties" : {
- "clientId" : {
- "type" : "string"
- },
- "metadataId" : {
- "type" : "string"
- },
- "creationDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "additionalVerificationProofs" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.BidVerificationProof"
- }
- },
- "bid" : {
- "type" : "number"
- }
- }
- },
- "record:com.oceanprotocol.core.keeper.models.BidVerificationProof" : {
- "type" : "object",
- "required" : [ "verificationId", "name", "agreement", "description", "expectedResult" ],
- "additionalProperties" : false,
- "properties" : {
- "verificationId" : {
- "type" : "string"
- },
- "name" : {
- "type" : "string"
- },
- "agreement" : {
- "type" : "string"
- },
- "description" : {
- "oneOf" : [ {
- "type" : "null"
- }, {
- "type" : "string"
- } ]
- },
- "expectedResult" : {
- "type" : "string"
- }
- }
- }
-}
diff --git a/target/classes/json/Consumption.json b/target/classes/json/Consumption.json
deleted file mode 100644
index 2050693..0000000
--- a/target/classes/json/Consumption.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "record:com.oceanprotocol.core.keeper.models.Consumption" : {
- "type" : "object",
- "required" : [ "contractId", "creationDatetime", "accessToken" ],
- "additionalProperties" : false,
- "properties" : {
- "contractId" : {
- "type" : "string"
- },
- "creationDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "accessToken" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.AccessToken"
- }
- }
- },
- "record:com.oceanprotocol.core.keeper.models.AccessToken" : {
- "type" : "object",
- "required" : [ "token", "expireDatetime", "requests" ],
- "additionalProperties" : false,
- "properties" : {
- "token" : {
- "type" : "string"
- },
- "expireDatetime" : {
- "oneOf" : [ {
- "type" : "null"
- }, {
- "type" : "integer",
- "minimum" : -2147483648,
- "maximum" : 2147483647
- } ]
- },
- "requests" : {
- "oneOf" : [ {
- "type" : "null"
- }, {
- "type" : "integer",
- "minimum" : -2147483648,
- "maximum" : 2147483647
- } ]
- }
- }
- }
-}
diff --git a/target/classes/json/Contract.json b/target/classes/json/Contract.json
deleted file mode 100644
index 314c856..0000000
--- a/target/classes/json/Contract.json
+++ /dev/null
@@ -1,105 +0,0 @@
-{
- "record:com.oceanprotocol.core.keeper.models.Contract" : {
- "type" : "object",
- "required" : [ "contractId", "matchId", "providerId", "clientId", "metadataId", "contractState", "creationDatetime", "verificationProofs", "contractSettlement", "contractResolution" ],
- "additionalProperties" : false,
- "properties" : {
- "contractId" : {
- "type" : "string"
- },
- "matchId" : {
- "type" : "string"
- },
- "providerId" : {
- "type" : "string"
- },
- "clientId" : {
- "type" : "string"
- },
- "metadataId" : {
- "type" : "string"
- },
- "contractState" : {
- "$ref" : "#/definitions/enum:com.oceanprotocol.core.keeper.models.ContractState"
- },
- "creationDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "verificationProofs" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.ContractVerificationProof"
- }
- },
- "contractSettlement" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.ContractSettlement"
- },
- "contractResolution" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.ContractResolution"
- }
- }
- },
- "enum:com.oceanprotocol.core.keeper.models.ContractState" : {
- "enum" : [ "DRAFT", "SIGNED", "SETTLED", "CANCELED" ]
- },
- "record:com.oceanprotocol.core.keeper.models.ContractVerificationProof" : {
- "type" : "object",
- "required" : [ "verificationId", "name", "agreement", "description", "expectedResult", "proofStatus" ],
- "additionalProperties" : false,
- "properties" : {
- "verificationId" : {
- "type" : "string"
- },
- "name" : {
- "type" : "string"
- },
- "agreement" : {
- "type" : "string"
- },
- "description" : {
- "oneOf" : [ {
- "type" : "null"
- }, {
- "type" : "string"
- } ]
- },
- "expectedResult" : {
- "type" : "string"
- },
- "proofStatus" : {
- "$ref" : "#/definitions/enum:com.oceanprotocol.core.keeper.models.ProofStatus"
- }
- }
- },
- "enum:com.oceanprotocol.core.keeper.models.ProofStatus" : {
- "enum" : [ "DEFINED", "VERIFIED", "FAILS" ]
- },
- "record:com.oceanprotocol.core.keeper.models.ContractSettlement" : {
- "type" : "object",
- "required" : [ "warrantiesDescription", "fee" ],
- "additionalProperties" : false,
- "properties" : {
- "warrantiesDescription" : {
- "type" : "string"
- },
- "fee" : {
- "type" : "number"
- }
- }
- },
- "record:com.oceanprotocol.core.keeper.models.ContractResolution" : {
- "type" : "object",
- "required" : [ "executeCondition", "abortCondition" ],
- "additionalProperties" : false,
- "properties" : {
- "executeCondition" : {
- "type" : "string"
- },
- "abortCondition" : {
- "type" : "string"
- }
- }
- }
-}
diff --git a/target/classes/json/Curation.json b/target/classes/json/Curation.json
deleted file mode 100644
index 6d04339..0000000
--- a/target/classes/json/Curation.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "record:com.oceanprotocol.core.keeper.models.Curation" : {
- "type" : "object",
- "required" : [ "curationId", "curatorId", "metadataId", "creationDatetime", "rating", "review", "stake" ],
- "additionalProperties" : false,
- "properties" : {
- "curationId" : {
- "type" : "string"
- },
- "curatorId" : {
- "type" : "string"
- },
- "metadataId" : {
- "type" : "string"
- },
- "creationDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "rating" : {
- "type" : "integer",
- "minimum" : -2147483648,
- "maximum" : 2147483647
- },
- "review" : {
- "type" : "string"
- },
- "stake" : {
- "type" : "number"
- }
- }
- }
-}
diff --git a/target/classes/json/Match.json b/target/classes/json/Match.json
deleted file mode 100644
index b418e20..0000000
--- a/target/classes/json/Match.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "record:com.oceanprotocol.core.keeper.models.Match" : {
- "type" : "object",
- "required" : [ "providerId", "clientId", "metadataId", "bidId", "creationDatetime", "ask", "bid" ],
- "additionalProperties" : false,
- "properties" : {
- "providerId" : {
- "type" : "string"
- },
- "clientId" : {
- "type" : "string"
- },
- "metadataId" : {
- "type" : "string"
- },
- "bidId" : {
- "type" : "string"
- },
- "creationDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "ask" : {
- "type" : "number"
- },
- "bid" : {
- "type" : "number"
- }
- }
- }
-}
diff --git a/target/classes/json/Metadata.json b/target/classes/json/Metadata.json
deleted file mode 100644
index 72b0159..0000000
--- a/target/classes/json/Metadata.json
+++ /dev/null
@@ -1,180 +0,0 @@
-{
- "record:com.oceanprotocol.core.keeper.models.Metadata" : {
- "type" : "object",
- "required" : [ "metadataId", "publisherId", "name", "marketplaceId", "creationDatetime", "updateDatetime", "contentType", "proofType", "mimeType", "parameters", "marketplaceAttributes", "attributes", "verificationProofs", "prices" ],
- "additionalProperties" : false,
- "properties" : {
- "metadataId" : {
- "type" : "string"
- },
- "publisherId" : {
- "type" : "string"
- },
- "name" : {
- "type" : "string"
- },
- "marketplaceId" : {
- "oneOf" : [ {
- "type" : "null"
- }, {
- "type" : "string"
- } ]
- },
- "creationDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "updateDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "contentType" : {
- "$ref" : "#/definitions/enum:com.oceanprotocol.core.keeper.models.ContentType"
- },
- "proofType" : {
- "$ref" : "#/definitions/enum:com.oceanprotocol.core.keeper.models.ProofType"
- },
- "mimeType" : {
- "oneOf" : [ {
- "type" : "null"
- }, {
- "type" : "string"
- } ]
- },
- "parameters" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.MetadataParameters"
- }
- },
- "marketplaceAttributes" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.MetadataMarketplaceAttributes"
- }
- },
- "attributes" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.MetadataAttribute"
- }
- },
- "verificationProofs" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.AssetVerificationProof"
- }
- },
- "prices" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.AssetPrice"
- }
- }
- }
- },
- "enum:com.oceanprotocol.core.keeper.models.ContentType" : {
- "enum" : [ "ASSET", "SERVICE" ]
- },
- "enum:com.oceanprotocol.core.keeper.models.ProofType" : {
- "enum" : [ "POC", "POW", "POS", "POR", "POST" ]
- },
- "record:com.oceanprotocol.core.keeper.models.MetadataParameters" : {
- "type" : "object",
- "required" : [ "name", "value" ],
- "additionalProperties" : false,
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "value" : {
- "type" : "string"
- }
- }
- },
- "record:com.oceanprotocol.core.keeper.models.MetadataMarketplaceAttributes" : {
- "type" : "object",
- "required" : [ "name", "value" ],
- "additionalProperties" : false,
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "value" : {
- "type" : "string"
- }
- }
- },
- "record:com.oceanprotocol.core.keeper.models.MetadataAttribute" : {
- "type" : "object",
- "required" : [ "name", "description" ],
- "additionalProperties" : false,
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "description" : {
- "type" : "string"
- }
- }
- },
- "record:com.oceanprotocol.core.keeper.models.AssetVerificationProof" : {
- "type" : "object",
- "required" : [ "verificationId", "name", "agreement", "description", "expectedResult" ],
- "additionalProperties" : false,
- "properties" : {
- "verificationId" : {
- "type" : "string"
- },
- "name" : {
- "type" : "string"
- },
- "agreement" : {
- "type" : "string"
- },
- "description" : {
- "oneOf" : [ {
- "type" : "null"
- }, {
- "type" : "string"
- } ]
- },
- "expectedResult" : {
- "type" : "string"
- }
- }
- },
- "record:com.oceanprotocol.core.keeper.models.AssetPrice" : {
- "type" : "object",
- "required" : [ "name", "scheme", "agreement", "description", "quantity", "price" ],
- "additionalProperties" : false,
- "properties" : {
- "name" : {
- "type" : "string"
- },
- "scheme" : {
- "type" : "string"
- },
- "agreement" : {
- "type" : "string"
- },
- "description" : {
- "oneOf" : [ {
- "type" : "null"
- }, {
- "type" : "string"
- } ]
- },
- "quantity" : {
- "type" : "integer",
- "minimum" : -2147483648,
- "maximum" : 2147483647
- },
- "price" : {
- "type" : "number"
- }
- }
- }
-}
diff --git a/target/classes/json/VerificationProof.json b/target/classes/json/VerificationProof.json
deleted file mode 100644
index 1929a36..0000000
--- a/target/classes/json/VerificationProof.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "record:com.oceanprotocol.core.keeper.models.VerificationRequest" : {
- "type" : "object",
- "required" : [ "verificationRequestId", "contractId", "verifierId", "creationDatetime", "proofs" ],
- "additionalProperties" : false,
- "properties" : {
- "verificationRequestId" : {
- "type" : "string"
- },
- "contractId" : {
- "type" : "string"
- },
- "verifierId" : {
- "type" : "string"
- },
- "creationDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "proofs" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.ProofsList"
- }
- }
- }
- },
- "record:com.oceanprotocol.core.keeper.models.ProofsList" : {
- "type" : "object",
- "required" : [ "verificationProofId", "verificationProof", "proofStatus" ],
- "additionalProperties" : false,
- "properties" : {
- "verificationProofId" : {
- "type" : "string"
- },
- "verificationProof" : {
- "type" : "string"
- },
- "proofStatus" : {
- "$ref" : "#/definitions/enum:com.oceanprotocol.core.keeper.models.ProofStatus"
- }
- }
- },
- "enum:com.oceanprotocol.core.keeper.models.ProofStatus" : {
- "enum" : [ "DEFINED", "VERIFIED", "FAILS" ]
- }
-}
diff --git a/target/classes/json/VerificationRequest.json b/target/classes/json/VerificationRequest.json
deleted file mode 100644
index 1ee2d0b..0000000
--- a/target/classes/json/VerificationRequest.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "record:com.oceanprotocol.core.keeper.models.VerificationRequest" : {
- "type" : "object",
- "required" : [ "verificationRequestId", "contractId", "validatorId", "creationDatetime", "proofs" ],
- "additionalProperties" : false,
- "properties" : {
- "verificationRequestId" : {
- "type" : "string"
- },
- "contractId" : {
- "type" : "string"
- },
- "validatorId" : {
- "type" : "string"
- },
- "creationDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "proofs" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/definitions/record:com.oceanprotocol.core.keeper.models.ProofsList"
- }
- }
- }
- },
- "record:com.oceanprotocol.core.keeper.models.ProofsList" : {
- "type" : "object",
- "required" : [ "verificationProofId" ],
- "additionalProperties" : false,
- "properties" : {
- "verificationProofId" : {
- "type" : "string"
- }
- }
- }
-}
diff --git a/target/classes/json/Whitelisting.json b/target/classes/json/Whitelisting.json
deleted file mode 100644
index a96882e..0000000
--- a/target/classes/json/Whitelisting.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "record:com.oceanprotocol.core.keeper.models.Whitelisting" : {
- "type" : "object",
- "required" : [ "actorId", "verifierId", "whitelistingApproval", "creationDatetime", "stake" ],
- "additionalProperties" : false,
- "properties" : {
- "actorId" : {
- "type" : "string"
- },
- "verifierId" : {
- "type" : "string"
- },
- "whitelistingApproval" : {
- "type" : "boolean"
- },
- "creationDatetime" : {
- "type" : "integer",
- "minimum" : -9223372036854775808,
- "maximum" : 9223372036854775807
- },
- "stake" : {
- "type" : "number"
- }
- }
- }
-}
diff --git a/target/classes/yaml/compiled.yaml b/target/classes/yaml/compiled.yaml
deleted file mode 100644
index aaee7d3..0000000
--- a/target/classes/yaml/compiled.yaml
+++ /dev/null
@@ -1,1188 +0,0 @@
-swagger: '2.0'
-schemes:
- - http
- - https
-host: oceanprotocol.com
-basePath: /api/v1/keeper
-info:
- description: |
- # Introduction
- The PK will expose some external API’s to interact with the module. Those
- API’s could be integrated in different ways (RESTful, RPC, Pub/Sub). In
- this section we will describe the RESTful interface as main reference.
- Additional definitions will be added posteriorly.
-
- The PK API will be the interface between the platform consumers and the
- underlying business logic implemented by the Keeper. The capabilities to
- implement are quite different and can be divided in independent domains.
- The service layer will organize the code in independent resources
- implementing the different business domains, encapsulating the complexity
- of those domains.
-
- The implementation of the RESTful API must be HATEOAS compliance. It means
- the requirement is to implement the Richardson Maturity Model Level 3.
-
- The most relevant domains and microservices to be implemented are
-
- * Actors RESTful API
- * Assets RESTful API
- * Curation RESTful API
- * Market RESTful API
- * Verification RESTful API
- * Search RESTful API
- version: 0.0.1
- title: ProtoKeeper Services
-tags:
- - name: actor
- description: Operations about actors
- - name: asset
- description: Operations about assets
- - name: curation
- description: Operations about curation
- - name: market
- description: Market operations
- - name: verification
- description: Operations about verifications
- - name: search
- description: Asset search
-x-tagGroups:
- - name: Actor Management
- tags:
- - actor
- - name: Asset Management
- tags:
- - asset
- - name: Curation Management
- tags:
- - curation
- - name: Market Management
- tags:
- - market
- - name: Verification Management
- tags:
- - verification
- - name: Search interface
- tags:
- - search
-securityDefinitions:
- protokeeper_auth:
- description: |
- Get access to data while protecting your account credentials.
- OAuth2 is also a safer and more secure way to give you access.
- type: oauth2
- authorizationUrl: null
- flow: implicit
- scopes:
- 'write:actors': modify actors
- 'read:actors': read actors
-paths:
- /actors:
- post:
- tags:
- - actor
- summary: Register an actor
- description: |
- As soon as an actor is allowed into the system, the metadata
- describing what that actor is and does is appended to the Actor
- Registry.
- operationId: registerActor
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Registered actor object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Actor'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Actor'
- '/actors/{actorId}':
- get:
- tags:
- - actor
- summary: Get an actor
- description: ''
- operationId: getActorById
- produces:
- - application/xml
- - application/json
- parameters:
- - name: actorId
- in: path
- description: The id of the actor that needs to be fetched.
- required: true
- type: string
- responses:
- '200':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Actor'
- '400':
- description: Invalid actor id supplied
- '404':
- description: Actor not found
- put:
- tags:
- - actor
- summary: Update an actor
- description: ''
- operationId: updateActor
- produces:
- - application/xml
- - application/json
- parameters:
- - name: actorId
- in: path
- description: The id of the actor to be updated.
- required: true
- type: string
- - in: body
- name: body
- description: Updated actor object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Actor'
- responses:
- '200':
- description: Actor was updated successfully
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Actor'
- '400':
- description: Invalid actor supplied
- '404':
- description: Actor not found
- delete:
- tags:
- - actor
- summary: Delete an actor
- description: ''
- operationId: deleteActor
- produces:
- - application/xml
- - application/json
- parameters:
- - name: actorId
- in: path
- description: The id of the actor to be deleted.
- required: true
- type: string
- responses:
- '204':
- description: Actor was deleted successfully
- '400':
- description: Invalid id supplied
- '404':
- description: Actor not found
- /assets:
- post:
- tags:
- - asset
- summary: Register an asset
- description: >
- Registering of an Asset (dataset or service). Metadata is provided,
-
- including the verification proofs. Should return a HTTP 201 if
- everything
-
- goes OK, HTTP 422 if object already exists or HTTP 500 if error.
- operationId: registerAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Registered metadata object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- '/assets/{assetId}':
- get:
- tags:
- - asset
- summary: Get an asset
- description: ''
- operationId: getAssetById
- produces:
- - application/xml
- - application/json
- parameters:
- - name: assetId
- in: path
- description: The id of the asset that needs to be fetched.
- required: true
- type: string
- responses:
- '200':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- '400':
- description: Invalid asset id supplied
- '404':
- description: Asset not found
- put:
- tags:
- - asset
- summary: Update an asset
- description: ''
- operationId: updateAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - name: assetId
- in: path
- description: The id of the asset to be updated.
- required: true
- type: string
- - in: body
- name: body
- description: Updated asset object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- responses:
- '200':
- description: Asset was updated successfully
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- '400':
- description: Invalid asset supplied
- '404':
- description: Asset not found
- delete:
- tags:
- - asset
- summary: Delete an asset
- description: ''
- operationId: deleteAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - name: assetId
- in: path
- description: The id of the asset to be deleted.
- required: true
- type: string
- responses:
- '204':
- description: Asset was deleted successfully
- '400':
- description: Invalid id supplied
- '404':
- description: Asset not found
- '/curation/assets/{assetId}':
- post:
- tags:
- - curation
- summary: Curate an asset
- description: ''
- operationId: curateAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Curation object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Curation'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Curation'
- /market/contracts:
- post:
- tags:
- - market
- summary: Contract definition
- description: Contract definition given by the publisher
- operationId: defineContract
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Contract definition
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- /market/bid:
- post:
- tags:
- - market
- summary: Bid creation
- description: Creation of a Bid.
- operationId: createBid
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Bid object to create
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Bid'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Bid'
- /market/matched:
- post:
- tags:
- - market
- summary: Match
- description: Creation of a Match.
- operationId: createMatch
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Match object to create
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Match'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Match'
- /market/proofs:
- post:
- tags:
- - market
- summary: Verification Proof
- description: Provider gives a proof about the service/asset has been provided.
- operationId: createProof
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Proof object to create
- required: true
- schema:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.VerificationProof
- responses:
- '201':
- description: successful operation
- schema:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.VerificationProof
- '/market/access/{contractId}':
- get:
- tags:
- - market
- summary: Access Control
- description: |
- Given the contractId will check if everything is ok before
- providing access.
- operationId: getAccessByContractId
- produces:
- - application/xml
- - application/json
- parameters:
- - name: contractId
- in: path
- description: The id of the contract for which a resource is being accessed.
- required: true
- type: string
- responses:
- '200':
- description: successful operation
- schema:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.Consumption
- '400':
- description: Invalid contract id supplied
- '404':
- description: Contract not found
- '/market/authorize/{contractId}':
- post:
- tags:
- - market
- summary: Authorization for asset consumption
- description: |
- The publisher authorizes the consumption of an asset by a consumer.
- operationId: registerAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - name: contractId
- in: path
- description: The id of the contract for which authorization is granted.
- required: true
- type: string
- - in: body
- name: body
- description: Contract used for authorization
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- '/market/settlement/{contractId}':
- post:
- tags:
- - market
- summary: Settlement
- description: |
- Once enough proofs are provided, the contract goes into settlement.
- operationId: registerAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - name: contractId
- in: path
- description: The id of the contract being settled.
- required: true
- type: string
- - in: body
- name: body
- description: Contract used for settlement
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- '/market/contracts/{contractId}':
- put:
- tags:
- - market
- summary: Contract signature
- description: The contract is signed by the client.
- operationId: signedContract
- produces:
- - application/xml
- - application/json
- parameters:
- - name: contractId
- in: path
- description: The id of the contract to be signed.
- required: true
- type: string
- - in: body
- name: body
- description: Signed contract object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- responses:
- '200':
- description: Contract was updated successfully
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- '400':
- description: Invalid contract supplied
- '404':
- description: Contract not found
- /verifications/:
- post:
- tags:
- - verification
- summary: Verification challenge
- description: |
- Verification challenge about service provided.
- A pre-appointed verifier and/or the client challenges the service
- to provide proofs that the requested service is delivered according
- to integrity specifications.
- operationId: createVerificationRequest
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Verification request object to create
- required: true
- schema:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.VerificationRequest
- responses:
- '201':
- description: successful operation
- schema:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.VerificationRequest
- /verifications/proofs:
- post:
- tags:
- - verification
- summary: Create Proof validation
- description: |
- The service accepts the challenge, computes the proof
- and stores this on-chain with a reference to the contract.
- operationId: createVerificationRequest
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Verification proof object to create
- required: true
- schema:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.VerificationProof
- responses:
- '201':
- description: successful operation
- schema:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.VerificationProof
- '/verifications/proofs/{proofId}':
- get:
- tags:
- - verification
- summary: Get verification proof
- description: ''
- operationId: getProofById
- produces:
- - application/xml
- - application/json
- parameters:
- - name: proofId
- in: path
- description: The id of the proof that needs to be fetched.
- required: true
- type: string
- responses:
- '200':
- description: successful operation
- schema:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.VerificationProof
- '400':
- description: Invalid proof id supplied
- '404':
- description: Proof not found
- /verifications/whitelisting:
- post:
- tags:
- - verification
- summary: Actor whitelisting
- description: |
- A verifier send a whitelisting request approving or denying to an actor.
- operationId: createVerificationRequest
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Whitelisting request object
- required: true
- schema:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.Whitelisting
- responses:
- '201':
- description: successful operation
- schema:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.Whitelisting
- /search/assets:
- get:
- tags:
- - search
- summary: Search assets
- description: ''
- operationId: searchAssets
- produces:
- - application/xml
- - application/json
- responses:
- '200':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- '404':
- description: Asset not found
-definitions:
- 'record:com.oceanprotocol.core.keeper.models.Actor':
- type: object
- required:
- - actorId
- - name
- - publicKey
- - creationDatetime
- - updateDatetime
- - actorType
- - attributes
- additionalProperties: false
- properties:
- actorId:
- type: string
- name:
- type: string
- publicKey:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- updateDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- actorType:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ActorType'
- attributes:
- type: array
- items:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.ActorAttribute
- 'record:com.oceanprotocol.core.keeper.models.ActorAttribute':
- type: object
- required:
- - name
- - description
- additionalProperties: false
- properties:
- name:
- type: string
- description:
- type: string
- 'enum:com.oceanprotocol.core.keeper.models.ActorType':
- enum:
- - PUBLISHER
- - CONSUMER
- - MARKETPLACE
- - CURATOR
- - KEEPER
- 'record:com.oceanprotocol.core.keeper.models.Metadata':
- type: object
- required:
- - metadataId
- - publisherId
- - name
- - marketplaceId
- - creationDatetime
- - updateDatetime
- - contentType
- - proofType
- - mimeType
- - parameters
- - marketplaceAttributes
- - attributes
- - verificationProofs
- - prices
- additionalProperties: false
- properties:
- metadataId:
- type: string
- publisherId:
- type: string
- name:
- type: string
- marketplaceId:
- oneOf:
- - type: 'null'
- - type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- updateDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- contentType:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ContentType'
- proofType:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ProofType'
- mimeType:
- oneOf:
- - type: 'null'
- - type: string
- parameters:
- type: array
- items:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.MetadataParameters
- marketplaceAttributes:
- type: array
- items:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.MetadataMarketplaceAttributes
- attributes:
- type: array
- items:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.MetadataAttribute
- verificationProofs:
- type: array
- items:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.AssetVerificationProof
- prices:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.AssetPrice'
- 'enum:com.oceanprotocol.core.keeper.models.ContentType':
- enum:
- - ASSET
- - SERVICE
- 'enum:com.oceanprotocol.core.keeper.models.ProofType':
- enum:
- - POC
- - POW
- - POS
- - POR
- - POST
- 'record:com.oceanprotocol.core.keeper.models.MetadataParameters':
- type: object
- required:
- - name
- - value
- additionalProperties: false
- properties:
- name:
- type: string
- value:
- type: string
- 'record:com.oceanprotocol.core.keeper.models.MetadataMarketplaceAttributes':
- type: object
- required:
- - name
- - value
- additionalProperties: false
- properties:
- name:
- type: string
- value:
- type: string
- 'record:com.oceanprotocol.core.keeper.models.MetadataAttribute':
- type: object
- required:
- - name
- - description
- additionalProperties: false
- properties:
- name:
- type: string
- description:
- type: string
- 'record:com.oceanprotocol.core.keeper.models.AssetVerificationProof':
- type: object
- required:
- - verificationId
- - name
- - agreement
- - description
- - expectedResult
- additionalProperties: false
- properties:
- verificationId:
- type: string
- name:
- type: string
- agreement:
- type: string
- description:
- oneOf:
- - type: 'null'
- - type: string
- expectedResult:
- type: string
- 'record:com.oceanprotocol.core.keeper.models.AssetPrice':
- type: object
- required:
- - name
- - scheme
- - agreement
- - description
- - quantity
- - price
- additionalProperties: false
- properties:
- name:
- type: string
- scheme:
- type: string
- agreement:
- type: string
- description:
- oneOf:
- - type: 'null'
- - type: string
- quantity:
- type: integer
- minimum: -2147483648
- maximum: 2147483647
- price:
- type: number
- 'record:com.oceanprotocol.core.keeper.models.Curation':
- type: object
- required:
- - curationId
- - curatorId
- - metadataId
- - creationDatetime
- - rating
- - review
- - stake
- additionalProperties: false
- properties:
- curationId:
- type: string
- curatorId:
- type: string
- metadataId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- rating:
- type: integer
- minimum: -2147483648
- maximum: 2147483647
- review:
- type: string
- stake:
- type: number
- 'record:com.oceanprotocol.core.keeper.models.Bid':
- type: object
- required:
- - clientId
- - metadataId
- - creationDatetime
- - additionalVerificationProofs
- - bid
- additionalProperties: false
- properties:
- clientId:
- type: string
- metadataId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- additionalVerificationProofs:
- type: array
- items:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.BidVerificationProof
- bid:
- type: number
- 'record:com.oceanprotocol.core.keeper.models.BidVerificationProof':
- type: object
- required:
- - verificationId
- - name
- - agreement
- - description
- - expectedResult
- additionalProperties: false
- properties:
- verificationId:
- type: string
- name:
- type: string
- agreement:
- type: string
- description:
- oneOf:
- - type: 'null'
- - type: string
- expectedResult:
- type: string
- 'record:com.oceanprotocol.core.keeper.models.Consumption':
- type: object
- required:
- - contractId
- - creationDatetime
- - accessToken
- additionalProperties: false
- properties:
- contractId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- accessToken:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.AccessToken'
- 'record:com.oceanprotocol.core.keeper.models.AccessToken':
- type: object
- required:
- - token
- - expireDatetime
- - requests
- additionalProperties: false
- properties:
- token:
- type: string
- expireDatetime:
- oneOf:
- - type: 'null'
- - type: integer
- minimum: -2147483648
- maximum: 2147483647
- requests:
- oneOf:
- - type: 'null'
- - type: integer
- minimum: -2147483648
- maximum: 2147483647
- 'record:com.oceanprotocol.core.keeper.models.Contract':
- type: object
- required:
- - contractId
- - matchId
- - providerId
- - clientId
- - metadataId
- - contractState
- - creationDatetime
- - verificationProofs
- - contractSettlement
- - contractResolution
- additionalProperties: false
- properties:
- contractId:
- type: string
- matchId:
- type: string
- providerId:
- type: string
- clientId:
- type: string
- metadataId:
- type: string
- contractState:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ContractState'
- creationDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- verificationProofs:
- type: array
- items:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.ContractVerificationProof
- contractSettlement:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.ContractSettlement
- contractResolution:
- ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.ContractResolution
- 'enum:com.oceanprotocol.core.keeper.models.ContractState':
- enum:
- - DRAFT
- - SIGNED
- - SETTLED
- - CANCELED
- 'record:com.oceanprotocol.core.keeper.models.ContractVerificationProof':
- type: object
- required:
- - verificationId
- - name
- - agreement
- - description
- - expectedResult
- - proofStatus
- additionalProperties: false
- properties:
- verificationId:
- type: string
- name:
- type: string
- agreement:
- type: string
- description:
- oneOf:
- - type: 'null'
- - type: string
- expectedResult:
- type: string
- proofStatus:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ProofStatus'
- 'record:com.oceanprotocol.core.keeper.models.ContractSettlement':
- type: object
- required:
- - warrantiesDescription
- - fee
- additionalProperties: false
- properties:
- warrantiesDescription:
- type: string
- fee:
- type: number
- 'record:com.oceanprotocol.core.keeper.models.ContractResolution':
- type: object
- required:
- - executeCondition
- - abortCondition
- additionalProperties: false
- properties:
- executeCondition:
- type: string
- abortCondition:
- type: string
- 'record:com.oceanprotocol.core.keeper.models.Match':
- type: object
- required:
- - providerId
- - clientId
- - metadataId
- - bidId
- - creationDatetime
- - ask
- - bid
- additionalProperties: false
- properties:
- providerId:
- type: string
- clientId:
- type: string
- metadataId:
- type: string
- bidId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- ask:
- type: number
- bid:
- type: number
- 'record:com.oceanprotocol.core.keeper.models.VerificationProof':
- type: object
- required:
- - verificationRequestId
- - contractId
- - verifierId
- - creationDatetime
- - proofs
- additionalProperties: false
- properties:
- verificationRequestId:
- type: string
- contractId:
- type: string
- verifierId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- proofs:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.ProofsList'
- 'record:com.oceanprotocol.core.keeper.models.ProofsList':
- type: object
- required:
- - verificationProofId
- - verificationProof
- - proofStatus
- additionalProperties: false
- properties:
- verificationProofId:
- type: string
- verificationProof:
- type: string
- proofStatus:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ProofStatus'
- 'enum:com.oceanprotocol.core.keeper.models.ProofStatus':
- enum:
- - DEFINED
- - VERIFIED
- - FAILS
- 'record:com.oceanprotocol.core.keeper.models.VerificationRequest':
- type: object
- required:
- - verificationRequestId
- - contractId
- - validatorId
- - creationDatetime
- - proofs
- additionalProperties: false
- properties:
- verificationRequestId:
- type: string
- contractId:
- type: string
- validatorId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- proofs:
- type: array
- items:
- $ref: >-
- #/definitions/record:com.oceanprotocol.core.keeper.models.ProofsListRequest
- 'record:com.oceanprotocol.core.keeper.models.ProofsListRequest':
- type: object
- required:
- - verificationProofId
- additionalProperties: false
- properties:
- verificationProofId:
- type: string
- 'record:com.oceanprotocol.core.keeper.models.Whitelisting':
- type: object
- required:
- - actorId
- - verifierId
- - whitelistingApproval
- - creationDatetime
- - stake
- additionalProperties: false
- properties:
- actorId:
- type: string
- verifierId:
- type: string
- whitelistingApproval:
- type: boolean
- creationDatetime:
- type: integer
- minimum: -9223372036854776000
- maximum: 9223372036854776000
- stake:
- type: number
- Id:
- type: integer
- format: int64
-
diff --git a/target/classes/yaml/definitions/access-token.yaml b/target/classes/yaml/definitions/access-token.yaml
deleted file mode 100644
index c4cad0d..0000000
--- a/target/classes/yaml/definitions/access-token.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.AccessToken
-# AccessToken
-type: object
-required:
-- token
-- expireDatetime
-- requests
-additionalProperties: false
-properties:
- token:
- type: string
- expireDatetime:
- oneOf:
- - type: 'null'
- - type: integer
- minimum: -2147483648
- maximum: 2147483647
- requests:
- oneOf:
- - type: 'null'
- - type: integer
- minimum: -2147483648
- maximum: 2147483647
diff --git a/target/classes/yaml/definitions/actor-attribute.yaml b/target/classes/yaml/definitions/actor-attribute.yaml
deleted file mode 100644
index 04812de..0000000
--- a/target/classes/yaml/definitions/actor-attribute.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-# ActorAttribute definition
-# record:com.oceanprotocol.core.keeper.models.ActorAttribute
-type: object
-required:
-- name
-- description
-additionalProperties: false
-properties:
- name:
- type: string
- description:
- type: string
diff --git a/target/classes/yaml/definitions/actor-type.yaml b/target/classes/yaml/definitions/actor-type.yaml
deleted file mode 100644
index 209516a..0000000
--- a/target/classes/yaml/definitions/actor-type.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-# ActorType definition
-# enum:com.oceanprotocol.core.keeper.models.ActorType
-enum:
-- PUBLISHER
-- CONSUMER
-- MARKETPLACE
-- CURATOR
-- KEEPER
diff --git a/target/classes/yaml/definitions/actor.yaml b/target/classes/yaml/definitions/actor.yaml
deleted file mode 100644
index ec824fc..0000000
--- a/target/classes/yaml/definitions/actor.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-# Actor model definition
-# record:com.oceanprotocol.core.keeper.models.Actor
-type: object
-required:
-- actorId
-- name
-- publicKey
-- creationDatetime
-- updateDatetime
-- actorType
-- attributes
-additionalProperties: false
-properties:
- actorId:
- type: string
- name:
- type: string
- publicKey:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- updateDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- actorType:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ActorType'
- attributes:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.ActorAttribute'
diff --git a/target/classes/yaml/definitions/asset-price.yaml b/target/classes/yaml/definitions/asset-price.yaml
deleted file mode 100644
index d309b3b..0000000
--- a/target/classes/yaml/definitions/asset-price.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.AssetPrice
-# AssetPrice
-type: object
-required:
-- name
-- scheme
-- agreement
-- description
-- quantity
-- price
-additionalProperties: false
-properties:
- name:
- type: string
- scheme:
- type: string
- agreement:
- type: string
- description:
- oneOf:
- - type: 'null'
- - type: string
- quantity:
- type: integer
- minimum: -2147483648
- maximum: 2147483647
- price:
- type: number
diff --git a/target/classes/yaml/definitions/asset-verification-proof.yaml b/target/classes/yaml/definitions/asset-verification-proof.yaml
deleted file mode 100644
index fd1ee74..0000000
--- a/target/classes/yaml/definitions/asset-verification-proof.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.AssetVerificationProof
-# AssetVerificationProof
-type: object
-required:
-- verificationId
-- name
-- agreement
-- description
-- expectedResult
-additionalProperties: false
-properties:
- verificationId:
- type: string
- name:
- type: string
- agreement:
- type: string
- description:
- oneOf:
- - type: 'null'
- - type: string
- expectedResult:
- type: string
diff --git a/target/classes/yaml/definitions/bid-verification-proof.yaml b/target/classes/yaml/definitions/bid-verification-proof.yaml
deleted file mode 100644
index 09274dd..0000000
--- a/target/classes/yaml/definitions/bid-verification-proof.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.BidVerificationProof
-# BidVerificationProof
-type: object
-required:
-- verificationId
-- name
-- agreement
-- description
-- expectedResult
-additionalProperties: false
-properties:
- verificationId:
- type: string
- name:
- type: string
- agreement:
- type: string
- description:
- oneOf:
- - type: 'null'
- - type: string
- expectedResult:
- type: string
diff --git a/target/classes/yaml/definitions/bid.yaml b/target/classes/yaml/definitions/bid.yaml
deleted file mode 100644
index ace2bab..0000000
--- a/target/classes/yaml/definitions/bid.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.Bid
-# Bid
-type: object
-required:
-- clientId
-- metadataId
-- creationDatetime
-- additionalVerificationProofs
-- bid
-additionalProperties: false
-properties:
- clientId:
- type: string
- metadataId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- additionalVerificationProofs:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.BidVerificationProof'
- bid:
- type: number
diff --git a/target/classes/yaml/definitions/consumption.yaml b/target/classes/yaml/definitions/consumption.yaml
deleted file mode 100644
index f056e37..0000000
--- a/target/classes/yaml/definitions/consumption.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.Consumption
-# Consumption
-type: object
-required:
-- contractId
-- creationDatetime
-- accessToken
-additionalProperties: false
-properties:
- contractId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- accessToken:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.AccessToken'
diff --git a/target/classes/yaml/definitions/content-type.yaml b/target/classes/yaml/definitions/content-type.yaml
deleted file mode 100644
index f62a0f4..0000000
--- a/target/classes/yaml/definitions/content-type.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-# enum:com.oceanprotocol.core.keeper.models.ContentType
-# ContentType
-enum:
-- ASSET
-- SERVICE
diff --git a/target/classes/yaml/definitions/contract-resolution.yaml b/target/classes/yaml/definitions/contract-resolution.yaml
deleted file mode 100644
index c959ca9..0000000
--- a/target/classes/yaml/definitions/contract-resolution.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.ContractResolution
-# ContractResolution
-type: object
-required:
-- executeCondition
-- abortCondition
-additionalProperties: false
-properties:
- executeCondition:
- type: string
- abortCondition:
- type: string
diff --git a/target/classes/yaml/definitions/contract-settlement.yaml b/target/classes/yaml/definitions/contract-settlement.yaml
deleted file mode 100644
index 2c4f5c1..0000000
--- a/target/classes/yaml/definitions/contract-settlement.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.ContractSettlement
-# ContractSettlement
-type: object
-required:
-- warrantiesDescription
-- fee
-additionalProperties: false
-properties:
- warrantiesDescription:
- type: string
- fee:
- type: number
diff --git a/target/classes/yaml/definitions/contract-state.yaml b/target/classes/yaml/definitions/contract-state.yaml
deleted file mode 100644
index d4df4e8..0000000
--- a/target/classes/yaml/definitions/contract-state.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
-# enum:com.oceanprotocol.core.keeper.models.ContractState
-# ContractState
-enum:
-- DRAFT
-- SIGNED
-- SETTLED
-- CANCELED
diff --git a/target/classes/yaml/definitions/contract-verification-proof.yaml b/target/classes/yaml/definitions/contract-verification-proof.yaml
deleted file mode 100644
index fa2b619..0000000
--- a/target/classes/yaml/definitions/contract-verification-proof.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.ContractVerificationProof
-# ContractVerificationProof
-type: object
-required:
-- verificationId
-- name
-- agreement
-- description
-- expectedResult
-- proofStatus
-additionalProperties: false
-properties:
- verificationId:
- type: string
- name:
- type: string
- agreement:
- type: string
- description:
- oneOf:
- - type: 'null'
- - type: string
- expectedResult:
- type: string
- proofStatus:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ProofStatus'
diff --git a/target/classes/yaml/definitions/contract.yaml b/target/classes/yaml/definitions/contract.yaml
deleted file mode 100644
index adfb474..0000000
--- a/target/classes/yaml/definitions/contract.yaml
+++ /dev/null
@@ -1,40 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.Contract
-# Contract
-type: object
-required:
-- contractId
-- matchId
-- providerId
-- clientId
-- metadataId
-- contractState
-- creationDatetime
-- verificationProofs
-- contractSettlement
-- contractResolution
-additionalProperties: false
-properties:
- contractId:
- type: string
- matchId:
- type: string
- providerId:
- type: string
- clientId:
- type: string
- metadataId:
- type: string
- contractState:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ContractState'
- creationDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- verificationProofs:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.ContractVerificationProof'
- contractSettlement:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.ContractSettlement'
- contractResolution:
- ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.ContractResolution'
diff --git a/target/classes/yaml/definitions/curation.yaml b/target/classes/yaml/definitions/curation.yaml
deleted file mode 100644
index cf52674..0000000
--- a/target/classes/yaml/definitions/curation.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-type: object
-required:
-- curationId
-- curatorId
-- metadataId
-- creationDatetime
-- rating
-- review
-- stake
-additionalProperties: false
-properties:
- curationId:
- type: string
- curatorId:
- type: string
- metadataId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- rating:
- type: integer
- minimum: -2147483648
- maximum: 2147483647
- review:
- type: string
- stake:
- type: number
diff --git a/target/classes/yaml/definitions/id.yaml b/target/classes/yaml/definitions/id.yaml
deleted file mode 100644
index 69f359f..0000000
--- a/target/classes/yaml/definitions/id.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-type: integer
-format: int64
diff --git a/target/classes/yaml/definitions/index.yaml b/target/classes/yaml/definitions/index.yaml
deleted file mode 100644
index 4984817..0000000
--- a/target/classes/yaml/definitions/index.yaml
+++ /dev/null
@@ -1,58 +0,0 @@
-record:com.oceanprotocol.core.keeper.models.Actor:
- $ref: ./actor.yaml
-record:com.oceanprotocol.core.keeper.models.ActorAttribute:
- $ref: ./actor-attribute.yaml
-enum:com.oceanprotocol.core.keeper.models.ActorType:
- $ref: ./actor-type.yaml
-record:com.oceanprotocol.core.keeper.models.Metadata:
- $ref: ./metadata.yaml
-enum:com.oceanprotocol.core.keeper.models.ContentType:
- $ref: ./content-type.yaml
-enum:com.oceanprotocol.core.keeper.models.ProofType:
- $ref: ./proof-type.yaml
-record:com.oceanprotocol.core.keeper.models.MetadataParameters:
- $ref: ./metadata-parameters.yaml
-record:com.oceanprotocol.core.keeper.models.MetadataMarketplaceAttributes:
- $ref: ./metadata-marketplace-attributes.yaml
-record:com.oceanprotocol.core.keeper.models.MetadataAttribute:
- $ref: ./metadata-attribute.yaml
-record:com.oceanprotocol.core.keeper.models.AssetVerificationProof:
- $ref: ./asset-verification-proof.yaml
-record:com.oceanprotocol.core.keeper.models.AssetPrice:
- $ref: ./asset-price.yaml
-record:com.oceanprotocol.core.keeper.models.Curation:
- $ref: ./curation.yaml
-record:com.oceanprotocol.core.keeper.models.Bid:
- $ref: ./bid.yaml
-record:com.oceanprotocol.core.keeper.models.BidVerificationProof:
- $ref: ./bid-verification-proof.yaml
-record:com.oceanprotocol.core.keeper.models.Consumption:
- $ref: ./consumption.yaml
-record:com.oceanprotocol.core.keeper.models.AccessToken:
- $ref: ./access-token.yaml
-record:com.oceanprotocol.core.keeper.models.Contract:
- $ref: ./contract.yaml
-enum:com.oceanprotocol.core.keeper.models.ContractState:
- $ref: ./contract-state.yaml
-record:com.oceanprotocol.core.keeper.models.ContractVerificationProof:
- $ref: ./contract-verification-proof.yaml
-record:com.oceanprotocol.core.keeper.models.ContractSettlement:
- $ref: ./contract-settlement.yaml
-record:com.oceanprotocol.core.keeper.models.ContractResolution:
- $ref: ./contract-resolution.yaml
-record:com.oceanprotocol.core.keeper.models.Match:
- $ref: ./match.yaml
-record:com.oceanprotocol.core.keeper.models.VerificationProof:
- $ref: ./verification-proof.yaml
-record:com.oceanprotocol.core.keeper.models.ProofsList:
- $ref: ./proofs-list.yaml
-enum:com.oceanprotocol.core.keeper.models.ProofStatus:
- $ref: ./proof-status.yaml
-record:com.oceanprotocol.core.keeper.models.VerificationRequest:
- $ref: ./verification-request.yaml
-record:com.oceanprotocol.core.keeper.models.ProofsListRequest:
- $ref: ./proofs-list-request.yaml
-record:com.oceanprotocol.core.keeper.models.Whitelisting:
- $ref: ./whitelisting.yaml
-Id:
- $ref: ./id.yaml
diff --git a/target/classes/yaml/definitions/match.yaml b/target/classes/yaml/definitions/match.yaml
deleted file mode 100644
index 1703657..0000000
--- a/target/classes/yaml/definitions/match.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-type: object
-required:
-- providerId
-- clientId
-- metadataId
-- bidId
-- creationDatetime
-- ask
-- bid
-additionalProperties: false
-properties:
- providerId:
- type: string
- clientId:
- type: string
- metadataId:
- type: string
- bidId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- ask:
- type: number
- bid:
- type: number
diff --git a/target/classes/yaml/definitions/metadata-attribute.yaml b/target/classes/yaml/definitions/metadata-attribute.yaml
deleted file mode 100644
index a044c56..0000000
--- a/target/classes/yaml/definitions/metadata-attribute.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.MetadataAttribute
-# MetadataAttribute
-type: object
-required:
-- name
-- description
-additionalProperties: false
-properties:
- name:
- type: string
- description:
- type: string
diff --git a/target/classes/yaml/definitions/metadata-marketplace-attributes.yaml b/target/classes/yaml/definitions/metadata-marketplace-attributes.yaml
deleted file mode 100644
index 3196a50..0000000
--- a/target/classes/yaml/definitions/metadata-marketplace-attributes.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.MetadataMarketplaceAttributes
-# MetadataMarketplaceAttributes
-type: object
-required:
-- name
-- value
-additionalProperties: false
-properties:
- name:
- type: string
- value:
- type: string
diff --git a/target/classes/yaml/definitions/metadata-parameters.yaml b/target/classes/yaml/definitions/metadata-parameters.yaml
deleted file mode 100644
index a8c8e32..0000000
--- a/target/classes/yaml/definitions/metadata-parameters.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.MetadataParameters
-# MetadataParameters
-type: object
-required:
-- name
-- value
-additionalProperties: false
-properties:
- name:
- type: string
- value:
- type: string
diff --git a/target/classes/yaml/definitions/metadata.yaml b/target/classes/yaml/definitions/metadata.yaml
deleted file mode 100644
index d540637..0000000
--- a/target/classes/yaml/definitions/metadata.yaml
+++ /dev/null
@@ -1,66 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.Metadata:
-# Metadata
-type: object
-required:
-- metadataId
-- publisherId
-- name
-- marketplaceId
-- creationDatetime
-- updateDatetime
-- contentType
-- proofType
-- mimeType
-- parameters
-- marketplaceAttributes
-- attributes
-- verificationProofs
-- prices
-additionalProperties: false
-properties:
- metadataId:
- type: string
- publisherId:
- type: string
- name:
- type: string
- marketplaceId:
- oneOf:
- - type: 'null'
- - type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- updateDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- contentType:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ContentType'
- proofType:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ProofType'
- mimeType:
- oneOf:
- - type: 'null'
- - type: string
- parameters:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.MetadataParameters'
- marketplaceAttributes:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.MetadataMarketplaceAttributes'
- attributes:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.MetadataAttribute'
- verificationProofs:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.AssetVerificationProof'
- prices:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.AssetPrice'
diff --git a/target/classes/yaml/definitions/proof-status.yaml b/target/classes/yaml/definitions/proof-status.yaml
deleted file mode 100644
index ccefe07..0000000
--- a/target/classes/yaml/definitions/proof-status.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-# enum:com.oceanprotocol.core.keeper.models.ProofStatus
-# ProofStatus
-enum:
-- DEFINED
-- VERIFIED
-- FAILS
diff --git a/target/classes/yaml/definitions/proof-type.yaml b/target/classes/yaml/definitions/proof-type.yaml
deleted file mode 100644
index 52f7610..0000000
--- a/target/classes/yaml/definitions/proof-type.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-# enum:com.oceanprotocol.core.keeper.models.ProofType
-# ProofType
-enum:
-- POC
-- POW
-- POS
-- POR
-- POST
diff --git a/target/classes/yaml/definitions/proofs-list-request.yaml b/target/classes/yaml/definitions/proofs-list-request.yaml
deleted file mode 100644
index 1c5bd6d..0000000
--- a/target/classes/yaml/definitions/proofs-list-request.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.ProofsListRequest
-# ProofsListRequest
-type: object
-required:
-- verificationProofId
-additionalProperties: false
-properties:
- verificationProofId:
- type: string
diff --git a/target/classes/yaml/definitions/proofs-list.yaml b/target/classes/yaml/definitions/proofs-list.yaml
deleted file mode 100644
index 73d050b..0000000
--- a/target/classes/yaml/definitions/proofs-list.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-type: object
-required:
-- verificationProofId
-- verificationProof
-- proofStatus
-additionalProperties: false
-properties:
- verificationProofId:
- type: string
- verificationProof:
- type: string
- proofStatus:
- $ref: '#/definitions/enum:com.oceanprotocol.core.keeper.models.ProofStatus'
diff --git a/target/classes/yaml/definitions/verification-proof.yaml b/target/classes/yaml/definitions/verification-proof.yaml
deleted file mode 100644
index 620a67f..0000000
--- a/target/classes/yaml/definitions/verification-proof.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-type: object
-required:
-- verificationRequestId
-- contractId
-- verifierId
-- creationDatetime
-- proofs
-additionalProperties: false
-properties:
- verificationRequestId:
- type: string
- contractId:
- type: string
- verifierId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- proofs:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.ProofsList'
diff --git a/target/classes/yaml/definitions/verification-request.yaml b/target/classes/yaml/definitions/verification-request.yaml
deleted file mode 100644
index a6f657b..0000000
--- a/target/classes/yaml/definitions/verification-request.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.VerificationRequest
-# VerificationRequest
-type: object
-required:
-- verificationRequestId
-- contractId
-- validatorId
-- creationDatetime
-- proofs
-additionalProperties: false
-properties:
- verificationRequestId:
- type: string
- contractId:
- type: string
- validatorId:
- type: string
- creationDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- proofs:
- type: array
- items:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.ProofsListRequest'
diff --git a/target/classes/yaml/definitions/whitelisting.yaml b/target/classes/yaml/definitions/whitelisting.yaml
deleted file mode 100644
index 7ae091f..0000000
--- a/target/classes/yaml/definitions/whitelisting.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-# record:com.oceanprotocol.core.keeper.models.Whitelisting
-# Whitelisting
-type: object
-required:
-- actorId
-- verifierId
-- whitelistingApproval
-- creationDatetime
-- stake
-additionalProperties: false
-properties:
- actorId:
- type: string
- verifierId:
- type: string
- whitelistingApproval:
- type: boolean
- creationDatetime:
- type: integer
- minimum: -9223372036854775808
- maximum: 9223372036854775807
- stake:
- type: number
diff --git a/target/classes/yaml/index.yaml b/target/classes/yaml/index.yaml
deleted file mode 100644
index 30fd650..0000000
--- a/target/classes/yaml/index.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-swagger: '2.0'
-schemes:
- - http
- - https
-host: oceanprotocol.com
-basePath: /api/v1/keeper
-info:
- $ref: ./info/index.yaml
-tags:
- - name: actor
- description: Operations about actors
- - name: asset
- description: Operations about assets
- - name: curation
- description: Operations about curation
- - name: market
- description: Market operations
- - name: verification
- description: Operations about verifications
- - name: search
- description: Asset search
-x-tagGroups:
- - name: Actor Management
- tags:
- - actor
- - name: Asset Management
- tags:
- - asset
- - name: Curation Management
- tags:
- - curation
- - name: Market Management
- tags:
- - market
- - name: Verification Management
- tags:
- - verification
- - name: Search interface
- tags:
- - search
-securityDefinitions:
- protokeeper_auth:
- description: |
- Get access to data while protecting your account credentials.
- OAuth2 is also a safer and more secure way to give you access.
- type: oauth2
- authorizationUrl:
- flow: implicit
- scopes:
- 'write:actors': modify actors
- 'read:actors': read actors
-paths:
- $ref: ./paths/index.yaml
-definitions:
- $ref: ./definitions/index.yaml
diff --git a/target/classes/yaml/info/index.yaml b/target/classes/yaml/info/index.yaml
deleted file mode 100644
index 2c0d6af..0000000
--- a/target/classes/yaml/info/index.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-description: |
- # Introduction
- The PK will expose some external API’s to interact with the module. Those
- API’s could be integrated in different ways (RESTful, RPC, Pub/Sub). In
- this section we will describe the RESTful interface as main reference.
- Additional definitions will be added posteriorly.
-
- The PK API will be the interface between the platform consumers and the
- underlying business logic implemented by the Keeper. The capabilities to
- implement are quite different and can be divided in independent domains.
- The service layer will organize the code in independent resources
- implementing the different business domains, encapsulating the complexity
- of those domains.
-
- The implementation of the RESTful API must be HATEOAS compliance. It means
- the requirement is to implement the Richardson Maturity Model Level 3.
-
- The most relevant domains and microservices to be implemented are
-
- * Actors RESTful API
- * Assets RESTful API
- * Curation RESTful API
- * Market RESTful API
- * Verification RESTful API
- * Search RESTful API
-version: 0.0.1
-title: ProtoKeeper Services
diff --git a/target/classes/yaml/paths/actors-actorId.yaml b/target/classes/yaml/paths/actors-actorId.yaml
deleted file mode 100644
index 233cb2d..0000000
--- a/target/classes/yaml/paths/actors-actorId.yaml
+++ /dev/null
@@ -1,80 +0,0 @@
-#'/actors/{actorId}':
-get:
- tags:
- - actor
- summary: Get an actor
- description: ''
- operationId: getActorById
- produces:
- - application/xml
- - application/json
- parameters:
- - name: actorId
- in: path
- description: 'The id of the actor that needs to be fetched.'
- required: true
- type: string
- responses:
- '200':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Actor'
- '400':
- description: Invalid actor id supplied
- '404':
- description: Actor not found
-put:
- tags:
- - actor
- summary: Update an actor
- description: ''
- operationId: updateActor
- produces:
- - application/xml
- - application/json
- parameters:
- - name: actorId
- in: path
- description: The id of the actor to be updated.
- required: true
- type: string
- - in: body
- name: body
- description: Updated actor object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Actor'
- responses:
- '200':
- description: Actor was updated successfully
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Actor'
- '400':
- description: Invalid actor supplied
- '404':
- description: Actor not found
- # XXX does not work
- #'500'
- # description: Internal server error
-delete:
- tags:
- - actor
- summary: Delete an actor
- description: ''
- operationId: deleteActor
- produces:
- - application/xml
- - application/json
- parameters:
- - name: actorId
- in: path
- description: The id of the actor to be deleted.
- required: true
- type: string
- responses:
- '204':
- description: Actor was deleted successfully
- '400':
- description: Invalid id supplied
- '404':
- description: Actor not found
diff --git a/target/classes/yaml/paths/actors.yaml b/target/classes/yaml/paths/actors.yaml
deleted file mode 100644
index 8639516..0000000
--- a/target/classes/yaml/paths/actors.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-#/actors:
-post:
- tags:
- - actor
- summary: Register an actor
- description: |
- As soon as an actor is allowed into the system, the metadata
- describing what that actor is and does is appended to the Actor
- Registry.
- operationId: registerActor
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Registered actor object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Actor'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Actor'
diff --git a/target/classes/yaml/paths/assets-assetId.yaml b/target/classes/yaml/paths/assets-assetId.yaml
deleted file mode 100644
index c88f016..0000000
--- a/target/classes/yaml/paths/assets-assetId.yaml
+++ /dev/null
@@ -1,80 +0,0 @@
-#'/assets/{assetId}':
-get:
- tags:
- - asset
- summary: Get an asset
- description: ''
- operationId: getAssetById
- produces:
- - application/xml
- - application/json
- parameters:
- - name: assetId
- in: path
- description: 'The id of the asset that needs to be fetched.'
- required: true
- type: string
- responses:
- '200':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- '400':
- description: Invalid asset id supplied
- '404':
- description: Asset not found
-put:
- tags:
- - asset
- summary: Update an asset
- description: ''
- operationId: updateAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - name: assetId
- in: path
- description: The id of the asset to be updated.
- required: true
- type: string
- - in: body
- name: body
- description: Updated asset object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- responses:
- '200':
- description: Asset was updated successfully
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- '400':
- description: Invalid asset supplied
- '404':
- description: Asset not found
- # XXX does not work
- #'500'
- # description: Internal server error
-delete:
- tags:
- - asset
- summary: Delete an asset
- description: ''
- operationId: deleteAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - name: assetId
- in: path
- description: The id of the asset to be deleted.
- required: true
- type: string
- responses:
- '204':
- description: Asset was deleted successfully
- '400':
- description: Invalid id supplied
- '404':
- description: Asset not found
diff --git a/target/classes/yaml/paths/assets.yaml b/target/classes/yaml/paths/assets.yaml
deleted file mode 100644
index 2ae10de..0000000
--- a/target/classes/yaml/paths/assets.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-post:
- tags:
- - asset
- summary: Register an asset
- description: |
- Registering of an Asset (dataset or service). Metadata is provided,
- including the verification proofs. Should return a HTTP 201 if everything
- goes OK, HTTP 422 if object already exists or HTTP 500 if error.
-
- operationId: registerAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Registered metadata object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
diff --git a/target/classes/yaml/paths/consumptions.yaml b/target/classes/yaml/paths/consumptions.yaml
deleted file mode 100644
index a1be0a3..0000000
--- a/target/classes/yaml/paths/consumptions.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-post:
- tags:
- - consumption
- summary: Register a consumption
- description: |
- Registering of a Consumption, given a correct access token.
- operationId: registerAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Registered Consumption object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Consumption'
- responses:
- default:
- description: successful operation
diff --git a/target/classes/yaml/paths/contracts.yaml b/target/classes/yaml/paths/contracts.yaml
deleted file mode 100644
index 7df1097..0000000
--- a/target/classes/yaml/paths/contracts.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-post:
- tags:
- - contract
- summary: Register a contract
- description: |
- Registering of a Contract.
- operationId: registerContract
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Registered registerContract object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- responses:
- default:
- description: successful operation
diff --git a/target/classes/yaml/paths/curation.yaml b/target/classes/yaml/paths/curation.yaml
deleted file mode 100644
index 7365c29..0000000
--- a/target/classes/yaml/paths/curation.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-post:
- tags:
- - curation
- summary: Curate an asset
- description: ''
- operationId: curateAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Curation object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Curation'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Curation'
diff --git a/target/classes/yaml/paths/index.yaml b/target/classes/yaml/paths/index.yaml
deleted file mode 100644
index 74bbdb2..0000000
--- a/target/classes/yaml/paths/index.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
-/actors:
- $ref: ./actors.yaml
-
-'/actors/{actorId}':
- $ref: ./actors-actorId.yaml
-
-/assets:
- $ref: ./assets.yaml
-
-'/assets/{assetId}':
- $ref: ./assets-assetId.yaml
-
-'/curation/assets/{assetId}':
- $ref: ./curation.yaml
-
-/market/contracts:
- $ref: ./market-contracts.yaml
-/market/bid:
- $ref: ./market-bids.yaml
-/market/matched:
- $ref: ./market-macthes.yaml
-/market/proofs:
- $ref: ./market-proofs.yaml
-'/market/access/{contractId}':
- $ref: ./market-access.yaml
-'/market/authorize/{contractId}':
- $ref: ./market-authorize.yaml
-'/market/settlement/{contractId}':
- $ref: ./market-settlement.yaml
-'/market/contracts/{contractId}':
- $ref: ./market-contracts-contractId.yaml
-
-/verifications/:
- $ref: ./verifications.yaml
-/verifications/proofs:
- $ref: ./verifications-proofs.yaml
-'/verifications/proofs/{proofId}':
- $ref: ./verifications-proofs-proofId.yaml
-/verifications/whitelisting:
- $ref: ./verifications-whitelisting.yaml
-
-/search/assets:
- $ref: ./search-assets.yaml
diff --git a/target/classes/yaml/paths/market-access.yaml b/target/classes/yaml/paths/market-access.yaml
deleted file mode 100644
index 5fece87..0000000
--- a/target/classes/yaml/paths/market-access.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-get:
- tags:
- - market
- summary: Access Control
- description: |
- Given the contractId will check if everything is ok before
- providing access.
- operationId: getAccessByContractId
- produces:
- - application/xml
- - application/json
- parameters:
- - name: contractId
- in: path
- description: 'The id of the contract for which a resource is being accessed.'
- required: true
- type: string
- responses:
- '200':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Consumption'
- '400':
- description: Invalid contract id supplied
- '404':
- description: Contract not found
diff --git a/target/classes/yaml/paths/market-authorize.yaml b/target/classes/yaml/paths/market-authorize.yaml
deleted file mode 100644
index 881b642..0000000
--- a/target/classes/yaml/paths/market-authorize.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-post:
- tags:
- - market
- summary: Authorization for asset consumption
- description: |
- The publisher authorizes the consumption of an asset by a consumer.
- operationId: registerAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - name: contractId
- in: path
- description: 'The id of the contract for which authorization is granted.'
- required: true
- type: string
- - in: body
- name: body
- description: Contract used for authorization
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
diff --git a/target/classes/yaml/paths/market-bids.yaml b/target/classes/yaml/paths/market-bids.yaml
deleted file mode 100644
index 33541a6..0000000
--- a/target/classes/yaml/paths/market-bids.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-post:
- tags:
- - market
- summary: Bid creation
- description: Creation of a Bid.
- operationId: createBid
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Bid object to create
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Bid'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Bid'
diff --git a/target/classes/yaml/paths/market-contracts-contractId.yaml b/target/classes/yaml/paths/market-contracts-contractId.yaml
deleted file mode 100644
index 0081978..0000000
--- a/target/classes/yaml/paths/market-contracts-contractId.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-put:
- tags:
- - market
- summary: Contract signature
- description: The contract is signed by the client.
- operationId: signedContract
- produces:
- - application/xml
- - application/json
- parameters:
- - name: contractId
- in: path
- description: The id of the contract to be signed.
- required: true
- type: string
- - in: body
- name: body
- description: Signed contract object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- responses:
- '200':
- description: Contract was updated successfully
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- '400':
- description: Invalid contract supplied
- '404':
- description: Contract not found
diff --git a/target/classes/yaml/paths/market-contracts.yaml b/target/classes/yaml/paths/market-contracts.yaml
deleted file mode 100644
index c37ccb2..0000000
--- a/target/classes/yaml/paths/market-contracts.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-post:
- tags:
- - market
- summary: Contract definition
- description: Contract definition given by the publisher
- operationId: defineContract
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Contract definition
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
diff --git a/target/classes/yaml/paths/market-macthes.yaml b/target/classes/yaml/paths/market-macthes.yaml
deleted file mode 100644
index 3544ba8..0000000
--- a/target/classes/yaml/paths/market-macthes.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-post:
- tags:
- - market
- summary: Match
- description: Creation of a Match.
- operationId: createMatch
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Match object to create
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Match'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Match'
diff --git a/target/classes/yaml/paths/market-proofs.yaml b/target/classes/yaml/paths/market-proofs.yaml
deleted file mode 100644
index 2e10535..0000000
--- a/target/classes/yaml/paths/market-proofs.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-post:
- tags:
- - market
- summary: Verification Proof
- description: Provider gives a proof about the service/asset has been provided.
- operationId: createProof
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Proof object to create
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.VerificationProof'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.VerificationProof'
diff --git a/target/classes/yaml/paths/market-settlement.yaml b/target/classes/yaml/paths/market-settlement.yaml
deleted file mode 100644
index efb02d1..0000000
--- a/target/classes/yaml/paths/market-settlement.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-post:
- tags:
- - market
- summary: Settlement
- description: |
- Once enough proofs are provided, the contract goes into settlement.
- operationId: registerAsset
- produces:
- - application/xml
- - application/json
- parameters:
- - name: contractId
- in: path
- description: 'The id of the contract being settled.'
- required: true
- type: string
- - in: body
- name: body
- description: Contract used for settlement
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Contract'
diff --git a/target/classes/yaml/paths/search-assets.yaml b/target/classes/yaml/paths/search-assets.yaml
deleted file mode 100644
index 6da50b5..0000000
--- a/target/classes/yaml/paths/search-assets.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-get:
- tags:
- - search
- summary: Search assets
- description: ''
- operationId: searchAssets
- produces:
- - application/xml
- - application/json
- # TODO Search parameters based on Metadata schema
- #parameters:
- # - name:
- # in: path
- # description: ''
- # required: true
- # type: string
- responses:
- '200':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Metadata'
- '404':
- description: Asset not found
diff --git a/target/classes/yaml/paths/verifications-proofs-proofId.yaml b/target/classes/yaml/paths/verifications-proofs-proofId.yaml
deleted file mode 100644
index 6666862..0000000
--- a/target/classes/yaml/paths/verifications-proofs-proofId.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
-get:
- tags:
- - verification
- summary: Get verification proof
- description: ''
- operationId: getProofById
- produces:
- - application/xml
- - application/json
- parameters:
- - name: proofId
- in: path
- description: 'The id of the proof that needs to be fetched.'
- required: true
- type: string
- responses:
- '200':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.VerificationProof'
- '400':
- description: Invalid proof id supplied
- '404':
- description: Proof not found
diff --git a/target/classes/yaml/paths/verifications-proofs.yaml b/target/classes/yaml/paths/verifications-proofs.yaml
deleted file mode 100644
index 946fed9..0000000
--- a/target/classes/yaml/paths/verifications-proofs.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-post:
- tags:
- - verification
- summary: Create Proof validation
- description: |
- The service accepts the challenge, computes the proof
- and stores this on-chain with a reference to the contract.
- operationId: createVerificationRequest
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Verification proof object to create
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.VerificationProof'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.VerificationProof'
diff --git a/target/classes/yaml/paths/verifications-whitelisting.yaml b/target/classes/yaml/paths/verifications-whitelisting.yaml
deleted file mode 100644
index 95296fc..0000000
--- a/target/classes/yaml/paths/verifications-whitelisting.yaml
+++ /dev/null
@@ -1,22 +0,0 @@
-post:
- tags:
- - verification
- summary: Actor whitelisting
- description: |
- A verifier send a whitelisting request approving or denying to an actor.
- operationId: createVerificationRequest
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Whitelisting request object
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Whitelisting'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.Whitelisting'
diff --git a/target/classes/yaml/paths/verifications.yaml b/target/classes/yaml/paths/verifications.yaml
deleted file mode 100644
index fb66b92..0000000
--- a/target/classes/yaml/paths/verifications.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-post:
- tags:
- - verification
- summary: Verification challenge
- description: |
- Verification challenge about service provided.
- A pre-appointed verifier and/or the client challenges the service
- to provide proofs that the requested service is delivered according
- to integrity specifications.
- operationId: createVerificationRequest
- produces:
- - application/xml
- - application/json
- parameters:
- - in: body
- name: body
- description: Verification request object to create
- required: true
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.VerificationRequest'
- responses:
- '201':
- description: successful operation
- schema:
- $ref: '#/definitions/record:com.oceanprotocol.core.keeper.models.VerificationRequest'
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/BlockDetails.java b/target/generated-sources/io/keyko/monitoring/schemas/BlockDetails.java
deleted file mode 100644
index 8e740c5..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/BlockDetails.java
+++ /dev/null
@@ -1,550 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-
-import org.apache.avro.generic.GenericArray;
-import org.apache.avro.specific.SpecificData;
-import org.apache.avro.util.Utf8;
-import org.apache.avro.message.BinaryMessageEncoder;
-import org.apache.avro.message.BinaryMessageDecoder;
-import org.apache.avro.message.SchemaStore;
-
-@org.apache.avro.specific.AvroGenerated
-public class BlockDetails extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- private static final long serialVersionUID = 6955880457069237337L;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BlockDetails\",\"namespace\":\"io.keyko.monitoring.schemas\",\"fields\":[{\"name\":\"number\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timestamp\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"nodeName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-
- private static SpecificData MODEL$ = new SpecificData();
-
- private static final BinaryMessageEncoder ENCODER =
- new BinaryMessageEncoder(MODEL$, SCHEMA$);
-
- private static final BinaryMessageDecoder DECODER =
- new BinaryMessageDecoder(MODEL$, SCHEMA$);
-
- /**
- * Return the BinaryMessageEncoder instance used by this class.
- * @return the message encoder used by this class
- */
- public static BinaryMessageEncoder getEncoder() {
- return ENCODER;
- }
-
- /**
- * Return the BinaryMessageDecoder instance used by this class.
- * @return the message decoder used by this class
- */
- public static BinaryMessageDecoder getDecoder() {
- return DECODER;
- }
-
- /**
- * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
- * @param resolver a {@link SchemaStore} used to find schemas by fingerprint
- * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
- */
- public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
- return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
- }
-
- /**
- * Serializes this BlockDetails to a ByteBuffer.
- * @return a buffer holding the serialized data for this instance
- * @throws java.io.IOException if this instance could not be serialized
- */
- public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
- return ENCODER.encode(this);
- }
-
- /**
- * Deserializes a BlockDetails from a ByteBuffer.
- * @param b a byte buffer holding serialized data for an instance of this class
- * @return a BlockDetails instance decoded from the given buffer
- * @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
- */
- public static BlockDetails fromByteBuffer(
- java.nio.ByteBuffer b) throws java.io.IOException {
- return DECODER.decode(b);
- }
-
- @Deprecated public java.lang.String number;
- @Deprecated public java.lang.String hash;
- @Deprecated public java.lang.String timestamp;
- @Deprecated public java.lang.String nodeName;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public BlockDetails() {}
-
- /**
- * All-args constructor.
- * @param number The new value for number
- * @param hash The new value for hash
- * @param timestamp The new value for timestamp
- * @param nodeName The new value for nodeName
- */
- public BlockDetails(java.lang.String number, java.lang.String hash, java.lang.String timestamp, java.lang.String nodeName) {
- this.number = number;
- this.hash = hash;
- this.timestamp = timestamp;
- this.nodeName = nodeName;
- }
-
- public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return number;
- case 1: return hash;
- case 2: return timestamp;
- case 3: return nodeName;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: number = (java.lang.String)value$; break;
- case 1: hash = (java.lang.String)value$; break;
- case 2: timestamp = (java.lang.String)value$; break;
- case 3: nodeName = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'number' field.
- * @return The value of the 'number' field.
- */
- public java.lang.String getNumber() {
- return number;
- }
-
-
- /**
- * Sets the value of the 'number' field.
- * @param value the value to set.
- */
- public void setNumber(java.lang.String value) {
- this.number = value;
- }
-
- /**
- * Gets the value of the 'hash' field.
- * @return The value of the 'hash' field.
- */
- public java.lang.String getHash() {
- return hash;
- }
-
-
- /**
- * Sets the value of the 'hash' field.
- * @param value the value to set.
- */
- public void setHash(java.lang.String value) {
- this.hash = value;
- }
-
- /**
- * Gets the value of the 'timestamp' field.
- * @return The value of the 'timestamp' field.
- */
- public java.lang.String getTimestamp() {
- return timestamp;
- }
-
-
- /**
- * Sets the value of the 'timestamp' field.
- * @param value the value to set.
- */
- public void setTimestamp(java.lang.String value) {
- this.timestamp = value;
- }
-
- /**
- * Gets the value of the 'nodeName' field.
- * @return The value of the 'nodeName' field.
- */
- public java.lang.String getNodeName() {
- return nodeName;
- }
-
-
- /**
- * Sets the value of the 'nodeName' field.
- * @param value the value to set.
- */
- public void setNodeName(java.lang.String value) {
- this.nodeName = value;
- }
-
- /**
- * Creates a new BlockDetails RecordBuilder.
- * @return A new BlockDetails RecordBuilder
- */
- public static io.keyko.monitoring.schemas.BlockDetails.Builder newBuilder() {
- return new io.keyko.monitoring.schemas.BlockDetails.Builder();
- }
-
- /**
- * Creates a new BlockDetails RecordBuilder by copying an existing Builder.
- * @param other The existing builder to copy.
- * @return A new BlockDetails RecordBuilder
- */
- public static io.keyko.monitoring.schemas.BlockDetails.Builder newBuilder(io.keyko.monitoring.schemas.BlockDetails.Builder other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.BlockDetails.Builder();
- } else {
- return new io.keyko.monitoring.schemas.BlockDetails.Builder(other);
- }
- }
-
- /**
- * Creates a new BlockDetails RecordBuilder by copying an existing BlockDetails instance.
- * @param other The existing instance to copy.
- * @return A new BlockDetails RecordBuilder
- */
- public static io.keyko.monitoring.schemas.BlockDetails.Builder newBuilder(io.keyko.monitoring.schemas.BlockDetails other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.BlockDetails.Builder();
- } else {
- return new io.keyko.monitoring.schemas.BlockDetails.Builder(other);
- }
- }
-
- /**
- * RecordBuilder for BlockDetails instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String number;
- private java.lang.String hash;
- private java.lang.String timestamp;
- private java.lang.String nodeName;
-
- /** Creates a new Builder */
- private Builder() {
- super(SCHEMA$);
- }
-
- /**
- * Creates a Builder by copying an existing Builder.
- * @param other The existing Builder to copy.
- */
- private Builder(io.keyko.monitoring.schemas.BlockDetails.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.number)) {
- this.number = data().deepCopy(fields()[0].schema(), other.number);
- fieldSetFlags()[0] = other.fieldSetFlags()[0];
- }
- if (isValidValue(fields()[1], other.hash)) {
- this.hash = data().deepCopy(fields()[1].schema(), other.hash);
- fieldSetFlags()[1] = other.fieldSetFlags()[1];
- }
- if (isValidValue(fields()[2], other.timestamp)) {
- this.timestamp = data().deepCopy(fields()[2].schema(), other.timestamp);
- fieldSetFlags()[2] = other.fieldSetFlags()[2];
- }
- if (isValidValue(fields()[3], other.nodeName)) {
- this.nodeName = data().deepCopy(fields()[3].schema(), other.nodeName);
- fieldSetFlags()[3] = other.fieldSetFlags()[3];
- }
- }
-
- /**
- * Creates a Builder by copying an existing BlockDetails instance
- * @param other The existing instance to copy.
- */
- private Builder(io.keyko.monitoring.schemas.BlockDetails other) {
- super(SCHEMA$);
- if (isValidValue(fields()[0], other.number)) {
- this.number = data().deepCopy(fields()[0].schema(), other.number);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.hash)) {
- this.hash = data().deepCopy(fields()[1].schema(), other.hash);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.timestamp)) {
- this.timestamp = data().deepCopy(fields()[2].schema(), other.timestamp);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.nodeName)) {
- this.nodeName = data().deepCopy(fields()[3].schema(), other.nodeName);
- fieldSetFlags()[3] = true;
- }
- }
-
- /**
- * Gets the value of the 'number' field.
- * @return The value.
- */
- public java.lang.String getNumber() {
- return number;
- }
-
-
- /**
- * Sets the value of the 'number' field.
- * @param value The value of 'number'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockDetails.Builder setNumber(java.lang.String value) {
- validate(fields()[0], value);
- this.number = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /**
- * Checks whether the 'number' field has been set.
- * @return True if the 'number' field has been set, false otherwise.
- */
- public boolean hasNumber() {
- return fieldSetFlags()[0];
- }
-
-
- /**
- * Clears the value of the 'number' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockDetails.Builder clearNumber() {
- number = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'hash' field.
- * @return The value.
- */
- public java.lang.String getHash() {
- return hash;
- }
-
-
- /**
- * Sets the value of the 'hash' field.
- * @param value The value of 'hash'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockDetails.Builder setHash(java.lang.String value) {
- validate(fields()[1], value);
- this.hash = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /**
- * Checks whether the 'hash' field has been set.
- * @return True if the 'hash' field has been set, false otherwise.
- */
- public boolean hasHash() {
- return fieldSetFlags()[1];
- }
-
-
- /**
- * Clears the value of the 'hash' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockDetails.Builder clearHash() {
- hash = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'timestamp' field.
- * @return The value.
- */
- public java.lang.String getTimestamp() {
- return timestamp;
- }
-
-
- /**
- * Sets the value of the 'timestamp' field.
- * @param value The value of 'timestamp'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockDetails.Builder setTimestamp(java.lang.String value) {
- validate(fields()[2], value);
- this.timestamp = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /**
- * Checks whether the 'timestamp' field has been set.
- * @return True if the 'timestamp' field has been set, false otherwise.
- */
- public boolean hasTimestamp() {
- return fieldSetFlags()[2];
- }
-
-
- /**
- * Clears the value of the 'timestamp' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockDetails.Builder clearTimestamp() {
- timestamp = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'nodeName' field.
- * @return The value.
- */
- public java.lang.String getNodeName() {
- return nodeName;
- }
-
-
- /**
- * Sets the value of the 'nodeName' field.
- * @param value The value of 'nodeName'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockDetails.Builder setNodeName(java.lang.String value) {
- validate(fields()[3], value);
- this.nodeName = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /**
- * Checks whether the 'nodeName' field has been set.
- * @return True if the 'nodeName' field has been set, false otherwise.
- */
- public boolean hasNodeName() {
- return fieldSetFlags()[3];
- }
-
-
- /**
- * Clears the value of the 'nodeName' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockDetails.Builder clearNodeName() {
- nodeName = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- @Override
- @SuppressWarnings("unchecked")
- public BlockDetails build() {
- try {
- BlockDetails record = new BlockDetails();
- record.number = fieldSetFlags()[0] ? this.number : (java.lang.String) defaultValue(fields()[0]);
- record.hash = fieldSetFlags()[1] ? this.hash : (java.lang.String) defaultValue(fields()[1]);
- record.timestamp = fieldSetFlags()[2] ? this.timestamp : (java.lang.String) defaultValue(fields()[2]);
- record.nodeName = fieldSetFlags()[3] ? this.nodeName : (java.lang.String) defaultValue(fields()[3]);
- return record;
- } catch (org.apache.avro.AvroMissingFieldException e) {
- throw e;
- } catch (java.lang.Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumWriter
- WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
-
- @Override public void writeExternal(java.io.ObjectOutput out)
- throws java.io.IOException {
- WRITER$.write(this, SpecificData.getEncoder(out));
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumReader
- READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
-
- @Override public void readExternal(java.io.ObjectInput in)
- throws java.io.IOException {
- READER$.read(this, SpecificData.getDecoder(in));
- }
-
- @Override protected boolean hasCustomCoders() { return true; }
-
- @Override public void customEncode(org.apache.avro.io.Encoder out)
- throws java.io.IOException
- {
- out.writeString(this.number);
-
- out.writeString(this.hash);
-
- out.writeString(this.timestamp);
-
- out.writeString(this.nodeName);
-
- }
-
- @Override public void customDecode(org.apache.avro.io.ResolvingDecoder in)
- throws java.io.IOException
- {
- org.apache.avro.Schema.Field[] fieldOrder = in.readFieldOrderIfDiff();
- if (fieldOrder == null) {
- this.number = in.readString();
-
- this.hash = in.readString();
-
- this.timestamp = in.readString();
-
- this.nodeName = in.readString();
-
- } else {
- for (int i = 0; i < 4; i++) {
- switch (fieldOrder[i].pos()) {
- case 0:
- this.number = in.readString();
- break;
-
- case 1:
- this.hash = in.readString();
- break;
-
- case 2:
- this.timestamp = in.readString();
- break;
-
- case 3:
- this.nodeName = in.readString();
- break;
-
- default:
- throw new java.io.IOException("Corrupt ResolvingDecoder.");
- }
- }
- }
- }
-}
-
-
-
-
-
-
-
-
-
-
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/BlockEvent.java b/target/generated-sources/io/keyko/monitoring/schemas/BlockEvent.java
deleted file mode 100644
index afe96cc..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/BlockEvent.java
+++ /dev/null
@@ -1,604 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-
-import org.apache.avro.generic.GenericArray;
-import org.apache.avro.specific.SpecificData;
-import org.apache.avro.util.Utf8;
-import org.apache.avro.message.BinaryMessageEncoder;
-import org.apache.avro.message.BinaryMessageDecoder;
-import org.apache.avro.message.SchemaStore;
-
-@org.apache.avro.specific.AvroGenerated
-public class BlockEvent extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- private static final long serialVersionUID = 7285302814443941338L;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BlockEvent\",\"namespace\":\"io.keyko.monitoring.schemas\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"details\",\"type\":{\"type\":\"record\",\"name\":\"BlockDetails\",\"fields\":[{\"name\":\"number\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timestamp\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"nodeName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}},{\"name\":\"retries\",\"type\":\"int\"}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-
- private static SpecificData MODEL$ = new SpecificData();
-
- private static final BinaryMessageEncoder ENCODER =
- new BinaryMessageEncoder(MODEL$, SCHEMA$);
-
- private static final BinaryMessageDecoder DECODER =
- new BinaryMessageDecoder(MODEL$, SCHEMA$);
-
- /**
- * Return the BinaryMessageEncoder instance used by this class.
- * @return the message encoder used by this class
- */
- public static BinaryMessageEncoder getEncoder() {
- return ENCODER;
- }
-
- /**
- * Return the BinaryMessageDecoder instance used by this class.
- * @return the message decoder used by this class
- */
- public static BinaryMessageDecoder getDecoder() {
- return DECODER;
- }
-
- /**
- * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
- * @param resolver a {@link SchemaStore} used to find schemas by fingerprint
- * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
- */
- public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
- return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
- }
-
- /**
- * Serializes this BlockEvent to a ByteBuffer.
- * @return a buffer holding the serialized data for this instance
- * @throws java.io.IOException if this instance could not be serialized
- */
- public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
- return ENCODER.encode(this);
- }
-
- /**
- * Deserializes a BlockEvent from a ByteBuffer.
- * @param b a byte buffer holding serialized data for an instance of this class
- * @return a BlockEvent instance decoded from the given buffer
- * @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
- */
- public static BlockEvent fromByteBuffer(
- java.nio.ByteBuffer b) throws java.io.IOException {
- return DECODER.decode(b);
- }
-
- @Deprecated public java.lang.String id;
- @Deprecated public java.lang.String type;
- @Deprecated public io.keyko.monitoring.schemas.BlockDetails details;
- @Deprecated public int retries;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public BlockEvent() {}
-
- /**
- * All-args constructor.
- * @param id The new value for id
- * @param type The new value for type
- * @param details The new value for details
- * @param retries The new value for retries
- */
- public BlockEvent(java.lang.String id, java.lang.String type, io.keyko.monitoring.schemas.BlockDetails details, java.lang.Integer retries) {
- this.id = id;
- this.type = type;
- this.details = details;
- this.retries = retries;
- }
-
- public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return id;
- case 1: return type;
- case 2: return details;
- case 3: return retries;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: id = (java.lang.String)value$; break;
- case 1: type = (java.lang.String)value$; break;
- case 2: details = (io.keyko.monitoring.schemas.BlockDetails)value$; break;
- case 3: retries = (java.lang.Integer)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'id' field.
- * @return The value of the 'id' field.
- */
- public java.lang.String getId() {
- return id;
- }
-
-
- /**
- * Sets the value of the 'id' field.
- * @param value the value to set.
- */
- public void setId(java.lang.String value) {
- this.id = value;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value of the 'type' field.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value the value to set.
- */
- public void setType(java.lang.String value) {
- this.type = value;
- }
-
- /**
- * Gets the value of the 'details' field.
- * @return The value of the 'details' field.
- */
- public io.keyko.monitoring.schemas.BlockDetails getDetails() {
- return details;
- }
-
-
- /**
- * Sets the value of the 'details' field.
- * @param value the value to set.
- */
- public void setDetails(io.keyko.monitoring.schemas.BlockDetails value) {
- this.details = value;
- }
-
- /**
- * Gets the value of the 'retries' field.
- * @return The value of the 'retries' field.
- */
- public int getRetries() {
- return retries;
- }
-
-
- /**
- * Sets the value of the 'retries' field.
- * @param value the value to set.
- */
- public void setRetries(int value) {
- this.retries = value;
- }
-
- /**
- * Creates a new BlockEvent RecordBuilder.
- * @return A new BlockEvent RecordBuilder
- */
- public static io.keyko.monitoring.schemas.BlockEvent.Builder newBuilder() {
- return new io.keyko.monitoring.schemas.BlockEvent.Builder();
- }
-
- /**
- * Creates a new BlockEvent RecordBuilder by copying an existing Builder.
- * @param other The existing builder to copy.
- * @return A new BlockEvent RecordBuilder
- */
- public static io.keyko.monitoring.schemas.BlockEvent.Builder newBuilder(io.keyko.monitoring.schemas.BlockEvent.Builder other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.BlockEvent.Builder();
- } else {
- return new io.keyko.monitoring.schemas.BlockEvent.Builder(other);
- }
- }
-
- /**
- * Creates a new BlockEvent RecordBuilder by copying an existing BlockEvent instance.
- * @param other The existing instance to copy.
- * @return A new BlockEvent RecordBuilder
- */
- public static io.keyko.monitoring.schemas.BlockEvent.Builder newBuilder(io.keyko.monitoring.schemas.BlockEvent other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.BlockEvent.Builder();
- } else {
- return new io.keyko.monitoring.schemas.BlockEvent.Builder(other);
- }
- }
-
- /**
- * RecordBuilder for BlockEvent instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String id;
- private java.lang.String type;
- private io.keyko.monitoring.schemas.BlockDetails details;
- private io.keyko.monitoring.schemas.BlockDetails.Builder detailsBuilder;
- private int retries;
-
- /** Creates a new Builder */
- private Builder() {
- super(SCHEMA$);
- }
-
- /**
- * Creates a Builder by copying an existing Builder.
- * @param other The existing Builder to copy.
- */
- private Builder(io.keyko.monitoring.schemas.BlockEvent.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.id)) {
- this.id = data().deepCopy(fields()[0].schema(), other.id);
- fieldSetFlags()[0] = other.fieldSetFlags()[0];
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = other.fieldSetFlags()[1];
- }
- if (isValidValue(fields()[2], other.details)) {
- this.details = data().deepCopy(fields()[2].schema(), other.details);
- fieldSetFlags()[2] = other.fieldSetFlags()[2];
- }
- if (other.hasDetailsBuilder()) {
- this.detailsBuilder = io.keyko.monitoring.schemas.BlockDetails.newBuilder(other.getDetailsBuilder());
- }
- if (isValidValue(fields()[3], other.retries)) {
- this.retries = data().deepCopy(fields()[3].schema(), other.retries);
- fieldSetFlags()[3] = other.fieldSetFlags()[3];
- }
- }
-
- /**
- * Creates a Builder by copying an existing BlockEvent instance
- * @param other The existing instance to copy.
- */
- private Builder(io.keyko.monitoring.schemas.BlockEvent other) {
- super(SCHEMA$);
- if (isValidValue(fields()[0], other.id)) {
- this.id = data().deepCopy(fields()[0].schema(), other.id);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.details)) {
- this.details = data().deepCopy(fields()[2].schema(), other.details);
- fieldSetFlags()[2] = true;
- }
- this.detailsBuilder = null;
- if (isValidValue(fields()[3], other.retries)) {
- this.retries = data().deepCopy(fields()[3].schema(), other.retries);
- fieldSetFlags()[3] = true;
- }
- }
-
- /**
- * Gets the value of the 'id' field.
- * @return The value.
- */
- public java.lang.String getId() {
- return id;
- }
-
-
- /**
- * Sets the value of the 'id' field.
- * @param value The value of 'id'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockEvent.Builder setId(java.lang.String value) {
- validate(fields()[0], value);
- this.id = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /**
- * Checks whether the 'id' field has been set.
- * @return True if the 'id' field has been set, false otherwise.
- */
- public boolean hasId() {
- return fieldSetFlags()[0];
- }
-
-
- /**
- * Clears the value of the 'id' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockEvent.Builder clearId() {
- id = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value The value of 'type'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockEvent.Builder setType(java.lang.String value) {
- validate(fields()[1], value);
- this.type = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /**
- * Checks whether the 'type' field has been set.
- * @return True if the 'type' field has been set, false otherwise.
- */
- public boolean hasType() {
- return fieldSetFlags()[1];
- }
-
-
- /**
- * Clears the value of the 'type' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockEvent.Builder clearType() {
- type = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'details' field.
- * @return The value.
- */
- public io.keyko.monitoring.schemas.BlockDetails getDetails() {
- return details;
- }
-
-
- /**
- * Sets the value of the 'details' field.
- * @param value The value of 'details'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockEvent.Builder setDetails(io.keyko.monitoring.schemas.BlockDetails value) {
- validate(fields()[2], value);
- this.detailsBuilder = null;
- this.details = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /**
- * Checks whether the 'details' field has been set.
- * @return True if the 'details' field has been set, false otherwise.
- */
- public boolean hasDetails() {
- return fieldSetFlags()[2];
- }
-
- /**
- * Gets the Builder instance for the 'details' field and creates one if it doesn't exist yet.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockDetails.Builder getDetailsBuilder() {
- if (detailsBuilder == null) {
- if (hasDetails()) {
- setDetailsBuilder(io.keyko.monitoring.schemas.BlockDetails.newBuilder(details));
- } else {
- setDetailsBuilder(io.keyko.monitoring.schemas.BlockDetails.newBuilder());
- }
- }
- return detailsBuilder;
- }
-
- /**
- * Sets the Builder instance for the 'details' field
- * @param value The builder instance that must be set.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockEvent.Builder setDetailsBuilder(io.keyko.monitoring.schemas.BlockDetails.Builder value) {
- clearDetails();
- detailsBuilder = value;
- return this;
- }
-
- /**
- * Checks whether the 'details' field has an active Builder instance
- * @return True if the 'details' field has an active Builder instance
- */
- public boolean hasDetailsBuilder() {
- return detailsBuilder != null;
- }
-
- /**
- * Clears the value of the 'details' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockEvent.Builder clearDetails() {
- details = null;
- detailsBuilder = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'retries' field.
- * @return The value.
- */
- public int getRetries() {
- return retries;
- }
-
-
- /**
- * Sets the value of the 'retries' field.
- * @param value The value of 'retries'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockEvent.Builder setRetries(int value) {
- validate(fields()[3], value);
- this.retries = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /**
- * Checks whether the 'retries' field has been set.
- * @return True if the 'retries' field has been set, false otherwise.
- */
- public boolean hasRetries() {
- return fieldSetFlags()[3];
- }
-
-
- /**
- * Clears the value of the 'retries' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockEvent.Builder clearRetries() {
- fieldSetFlags()[3] = false;
- return this;
- }
-
- @Override
- @SuppressWarnings("unchecked")
- public BlockEvent build() {
- try {
- BlockEvent record = new BlockEvent();
- record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) defaultValue(fields()[0]);
- record.type = fieldSetFlags()[1] ? this.type : (java.lang.String) defaultValue(fields()[1]);
- if (detailsBuilder != null) {
- try {
- record.details = this.detailsBuilder.build();
- } catch (org.apache.avro.AvroMissingFieldException e) {
- e.addParentField(record.getSchema().getField("details"));
- throw e;
- }
- } else {
- record.details = fieldSetFlags()[2] ? this.details : (io.keyko.monitoring.schemas.BlockDetails) defaultValue(fields()[2]);
- }
- record.retries = fieldSetFlags()[3] ? this.retries : (java.lang.Integer) defaultValue(fields()[3]);
- return record;
- } catch (org.apache.avro.AvroMissingFieldException e) {
- throw e;
- } catch (java.lang.Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumWriter
- WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
-
- @Override public void writeExternal(java.io.ObjectOutput out)
- throws java.io.IOException {
- WRITER$.write(this, SpecificData.getEncoder(out));
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumReader
- READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
-
- @Override public void readExternal(java.io.ObjectInput in)
- throws java.io.IOException {
- READER$.read(this, SpecificData.getDecoder(in));
- }
-
- @Override protected boolean hasCustomCoders() { return true; }
-
- @Override public void customEncode(org.apache.avro.io.Encoder out)
- throws java.io.IOException
- {
- out.writeString(this.id);
-
- out.writeString(this.type);
-
- this.details.customEncode(out);
-
- out.writeInt(this.retries);
-
- }
-
- @Override public void customDecode(org.apache.avro.io.ResolvingDecoder in)
- throws java.io.IOException
- {
- org.apache.avro.Schema.Field[] fieldOrder = in.readFieldOrderIfDiff();
- if (fieldOrder == null) {
- this.id = in.readString();
-
- this.type = in.readString();
-
- if (this.details == null) {
- this.details = new io.keyko.monitoring.schemas.BlockDetails();
- }
- this.details.customDecode(in);
-
- this.retries = in.readInt();
-
- } else {
- for (int i = 0; i < 4; i++) {
- switch (fieldOrder[i].pos()) {
- case 0:
- this.id = in.readString();
- break;
-
- case 1:
- this.type = in.readString();
- break;
-
- case 2:
- if (this.details == null) {
- this.details = new io.keyko.monitoring.schemas.BlockDetails();
- }
- this.details.customDecode(in);
- break;
-
- case 3:
- this.retries = in.readInt();
- break;
-
- default:
- throw new java.io.IOException("Corrupt ResolvingDecoder.");
- }
- }
- }
- }
-}
-
-
-
-
-
-
-
-
-
-
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/ContractEvent.java b/target/generated-sources/io/keyko/monitoring/schemas/ContractEvent.java
deleted file mode 100644
index 3899d9a..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/ContractEvent.java
+++ /dev/null
@@ -1,545 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-
-import org.apache.avro.generic.GenericArray;
-import org.apache.avro.specific.SpecificData;
-import org.apache.avro.util.Utf8;
-import org.apache.avro.message.BinaryMessageEncoder;
-import org.apache.avro.message.BinaryMessageDecoder;
-import org.apache.avro.message.SchemaStore;
-
-@org.apache.avro.specific.AvroGenerated
-public class ContractEvent extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- private static final long serialVersionUID = -3492402380681590992L;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"ContractEvent\",\"namespace\":\"io.keyko.monitoring.schemas\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"details\",\"type\":{\"type\":\"record\",\"name\":\"ContractEventDetails\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"filterId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"nodeName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"indexedParameters\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"StringParameter\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"type\":\"record\",\"name\":\"NumberParameter\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"}]}]}},{\"name\":\"nonIndexedParameters\",\"type\":{\"type\":\"array\",\"items\":[\"StringParameter\",\"NumberParameter\"]}},{\"name\":\"transactionHash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"logIndex\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"blockNumber\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"blockHash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"address\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"status\",\"type\":{\"type\":\"enum\",\"name\":\"ContractEventStatus\",\"symbols\":[\"UNCONFIRMED\",\"CONFIRMED\",\"INVALIDATED\"]}},{\"name\":\"eventSpecificationSignature\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"networkName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}},{\"name\":\"retries\",\"type\":\"int\"}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-
- private static SpecificData MODEL$ = new SpecificData();
-
- private static final BinaryMessageEncoder ENCODER =
- new BinaryMessageEncoder(MODEL$, SCHEMA$);
-
- private static final BinaryMessageDecoder DECODER =
- new BinaryMessageDecoder(MODEL$, SCHEMA$);
-
- /**
- * Return the BinaryMessageEncoder instance used by this class.
- * @return the message encoder used by this class
- */
- public static BinaryMessageEncoder getEncoder() {
- return ENCODER;
- }
-
- /**
- * Return the BinaryMessageDecoder instance used by this class.
- * @return the message decoder used by this class
- */
- public static BinaryMessageDecoder getDecoder() {
- return DECODER;
- }
-
- /**
- * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
- * @param resolver a {@link SchemaStore} used to find schemas by fingerprint
- * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
- */
- public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
- return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
- }
-
- /**
- * Serializes this ContractEvent to a ByteBuffer.
- * @return a buffer holding the serialized data for this instance
- * @throws java.io.IOException if this instance could not be serialized
- */
- public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
- return ENCODER.encode(this);
- }
-
- /**
- * Deserializes a ContractEvent from a ByteBuffer.
- * @param b a byte buffer holding serialized data for an instance of this class
- * @return a ContractEvent instance decoded from the given buffer
- * @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
- */
- public static ContractEvent fromByteBuffer(
- java.nio.ByteBuffer b) throws java.io.IOException {
- return DECODER.decode(b);
- }
-
- @Deprecated public java.lang.String id;
- @Deprecated public java.lang.String type;
- @Deprecated public io.keyko.monitoring.schemas.ContractEventDetails details;
- @Deprecated public int retries;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public ContractEvent() {}
-
- /**
- * All-args constructor.
- * @param id The new value for id
- * @param type The new value for type
- * @param details The new value for details
- * @param retries The new value for retries
- */
- public ContractEvent(java.lang.String id, java.lang.String type, io.keyko.monitoring.schemas.ContractEventDetails details, java.lang.Integer retries) {
- this.id = id;
- this.type = type;
- this.details = details;
- this.retries = retries;
- }
-
- public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return id;
- case 1: return type;
- case 2: return details;
- case 3: return retries;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: id = (java.lang.String)value$; break;
- case 1: type = (java.lang.String)value$; break;
- case 2: details = (io.keyko.monitoring.schemas.ContractEventDetails)value$; break;
- case 3: retries = (java.lang.Integer)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'id' field.
- * @return The value of the 'id' field.
- */
- public java.lang.String getId() {
- return id;
- }
-
-
- /**
- * Sets the value of the 'id' field.
- * @param value the value to set.
- */
- public void setId(java.lang.String value) {
- this.id = value;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value of the 'type' field.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value the value to set.
- */
- public void setType(java.lang.String value) {
- this.type = value;
- }
-
- /**
- * Gets the value of the 'details' field.
- * @return The value of the 'details' field.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails getDetails() {
- return details;
- }
-
-
- /**
- * Sets the value of the 'details' field.
- * @param value the value to set.
- */
- public void setDetails(io.keyko.monitoring.schemas.ContractEventDetails value) {
- this.details = value;
- }
-
- /**
- * Gets the value of the 'retries' field.
- * @return The value of the 'retries' field.
- */
- public int getRetries() {
- return retries;
- }
-
-
- /**
- * Sets the value of the 'retries' field.
- * @param value the value to set.
- */
- public void setRetries(int value) {
- this.retries = value;
- }
-
- /**
- * Creates a new ContractEvent RecordBuilder.
- * @return A new ContractEvent RecordBuilder
- */
- public static io.keyko.monitoring.schemas.ContractEvent.Builder newBuilder() {
- return new io.keyko.monitoring.schemas.ContractEvent.Builder();
- }
-
- /**
- * Creates a new ContractEvent RecordBuilder by copying an existing Builder.
- * @param other The existing builder to copy.
- * @return A new ContractEvent RecordBuilder
- */
- public static io.keyko.monitoring.schemas.ContractEvent.Builder newBuilder(io.keyko.monitoring.schemas.ContractEvent.Builder other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.ContractEvent.Builder();
- } else {
- return new io.keyko.monitoring.schemas.ContractEvent.Builder(other);
- }
- }
-
- /**
- * Creates a new ContractEvent RecordBuilder by copying an existing ContractEvent instance.
- * @param other The existing instance to copy.
- * @return A new ContractEvent RecordBuilder
- */
- public static io.keyko.monitoring.schemas.ContractEvent.Builder newBuilder(io.keyko.monitoring.schemas.ContractEvent other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.ContractEvent.Builder();
- } else {
- return new io.keyko.monitoring.schemas.ContractEvent.Builder(other);
- }
- }
-
- /**
- * RecordBuilder for ContractEvent instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String id;
- private java.lang.String type;
- private io.keyko.monitoring.schemas.ContractEventDetails details;
- private io.keyko.monitoring.schemas.ContractEventDetails.Builder detailsBuilder;
- private int retries;
-
- /** Creates a new Builder */
- private Builder() {
- super(SCHEMA$);
- }
-
- /**
- * Creates a Builder by copying an existing Builder.
- * @param other The existing Builder to copy.
- */
- private Builder(io.keyko.monitoring.schemas.ContractEvent.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.id)) {
- this.id = data().deepCopy(fields()[0].schema(), other.id);
- fieldSetFlags()[0] = other.fieldSetFlags()[0];
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = other.fieldSetFlags()[1];
- }
- if (isValidValue(fields()[2], other.details)) {
- this.details = data().deepCopy(fields()[2].schema(), other.details);
- fieldSetFlags()[2] = other.fieldSetFlags()[2];
- }
- if (other.hasDetailsBuilder()) {
- this.detailsBuilder = io.keyko.monitoring.schemas.ContractEventDetails.newBuilder(other.getDetailsBuilder());
- }
- if (isValidValue(fields()[3], other.retries)) {
- this.retries = data().deepCopy(fields()[3].schema(), other.retries);
- fieldSetFlags()[3] = other.fieldSetFlags()[3];
- }
- }
-
- /**
- * Creates a Builder by copying an existing ContractEvent instance
- * @param other The existing instance to copy.
- */
- private Builder(io.keyko.monitoring.schemas.ContractEvent other) {
- super(SCHEMA$);
- if (isValidValue(fields()[0], other.id)) {
- this.id = data().deepCopy(fields()[0].schema(), other.id);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.details)) {
- this.details = data().deepCopy(fields()[2].schema(), other.details);
- fieldSetFlags()[2] = true;
- }
- this.detailsBuilder = null;
- if (isValidValue(fields()[3], other.retries)) {
- this.retries = data().deepCopy(fields()[3].schema(), other.retries);
- fieldSetFlags()[3] = true;
- }
- }
-
- /**
- * Gets the value of the 'id' field.
- * @return The value.
- */
- public java.lang.String getId() {
- return id;
- }
-
-
- /**
- * Sets the value of the 'id' field.
- * @param value The value of 'id'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEvent.Builder setId(java.lang.String value) {
- validate(fields()[0], value);
- this.id = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /**
- * Checks whether the 'id' field has been set.
- * @return True if the 'id' field has been set, false otherwise.
- */
- public boolean hasId() {
- return fieldSetFlags()[0];
- }
-
-
- /**
- * Clears the value of the 'id' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEvent.Builder clearId() {
- id = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value The value of 'type'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEvent.Builder setType(java.lang.String value) {
- validate(fields()[1], value);
- this.type = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /**
- * Checks whether the 'type' field has been set.
- * @return True if the 'type' field has been set, false otherwise.
- */
- public boolean hasType() {
- return fieldSetFlags()[1];
- }
-
-
- /**
- * Clears the value of the 'type' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEvent.Builder clearType() {
- type = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'details' field.
- * @return The value.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails getDetails() {
- return details;
- }
-
-
- /**
- * Sets the value of the 'details' field.
- * @param value The value of 'details'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEvent.Builder setDetails(io.keyko.monitoring.schemas.ContractEventDetails value) {
- validate(fields()[2], value);
- this.detailsBuilder = null;
- this.details = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /**
- * Checks whether the 'details' field has been set.
- * @return True if the 'details' field has been set, false otherwise.
- */
- public boolean hasDetails() {
- return fieldSetFlags()[2];
- }
-
- /**
- * Gets the Builder instance for the 'details' field and creates one if it doesn't exist yet.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder getDetailsBuilder() {
- if (detailsBuilder == null) {
- if (hasDetails()) {
- setDetailsBuilder(io.keyko.monitoring.schemas.ContractEventDetails.newBuilder(details));
- } else {
- setDetailsBuilder(io.keyko.monitoring.schemas.ContractEventDetails.newBuilder());
- }
- }
- return detailsBuilder;
- }
-
- /**
- * Sets the Builder instance for the 'details' field
- * @param value The builder instance that must be set.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEvent.Builder setDetailsBuilder(io.keyko.monitoring.schemas.ContractEventDetails.Builder value) {
- clearDetails();
- detailsBuilder = value;
- return this;
- }
-
- /**
- * Checks whether the 'details' field has an active Builder instance
- * @return True if the 'details' field has an active Builder instance
- */
- public boolean hasDetailsBuilder() {
- return detailsBuilder != null;
- }
-
- /**
- * Clears the value of the 'details' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEvent.Builder clearDetails() {
- details = null;
- detailsBuilder = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'retries' field.
- * @return The value.
- */
- public int getRetries() {
- return retries;
- }
-
-
- /**
- * Sets the value of the 'retries' field.
- * @param value The value of 'retries'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEvent.Builder setRetries(int value) {
- validate(fields()[3], value);
- this.retries = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /**
- * Checks whether the 'retries' field has been set.
- * @return True if the 'retries' field has been set, false otherwise.
- */
- public boolean hasRetries() {
- return fieldSetFlags()[3];
- }
-
-
- /**
- * Clears the value of the 'retries' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEvent.Builder clearRetries() {
- fieldSetFlags()[3] = false;
- return this;
- }
-
- @Override
- @SuppressWarnings("unchecked")
- public ContractEvent build() {
- try {
- ContractEvent record = new ContractEvent();
- record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) defaultValue(fields()[0]);
- record.type = fieldSetFlags()[1] ? this.type : (java.lang.String) defaultValue(fields()[1]);
- if (detailsBuilder != null) {
- try {
- record.details = this.detailsBuilder.build();
- } catch (org.apache.avro.AvroMissingFieldException e) {
- e.addParentField(record.getSchema().getField("details"));
- throw e;
- }
- } else {
- record.details = fieldSetFlags()[2] ? this.details : (io.keyko.monitoring.schemas.ContractEventDetails) defaultValue(fields()[2]);
- }
- record.retries = fieldSetFlags()[3] ? this.retries : (java.lang.Integer) defaultValue(fields()[3]);
- return record;
- } catch (org.apache.avro.AvroMissingFieldException e) {
- throw e;
- } catch (java.lang.Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumWriter
- WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
-
- @Override public void writeExternal(java.io.ObjectOutput out)
- throws java.io.IOException {
- WRITER$.write(this, SpecificData.getEncoder(out));
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumReader
- READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
-
- @Override public void readExternal(java.io.ObjectInput in)
- throws java.io.IOException {
- READER$.read(this, SpecificData.getDecoder(in));
- }
-
-}
-
-
-
-
-
-
-
-
-
-
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/ContractEventDetails.java b/target/generated-sources/io/keyko/monitoring/schemas/ContractEventDetails.java
deleted file mode 100644
index a949dab..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/ContractEventDetails.java
+++ /dev/null
@@ -1,1217 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-
-import org.apache.avro.generic.GenericArray;
-import org.apache.avro.specific.SpecificData;
-import org.apache.avro.util.Utf8;
-import org.apache.avro.message.BinaryMessageEncoder;
-import org.apache.avro.message.BinaryMessageDecoder;
-import org.apache.avro.message.SchemaStore;
-
-@org.apache.avro.specific.AvroGenerated
-public class ContractEventDetails extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- private static final long serialVersionUID = -3202235962030049371L;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"ContractEventDetails\",\"namespace\":\"io.keyko.monitoring.schemas\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"filterId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"nodeName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"indexedParameters\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"StringParameter\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"type\":\"record\",\"name\":\"NumberParameter\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"}]}]}},{\"name\":\"nonIndexedParameters\",\"type\":{\"type\":\"array\",\"items\":[\"StringParameter\",\"NumberParameter\"]}},{\"name\":\"transactionHash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"logIndex\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"blockNumber\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"blockHash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"address\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"status\",\"type\":{\"type\":\"enum\",\"name\":\"ContractEventStatus\",\"symbols\":[\"UNCONFIRMED\",\"CONFIRMED\",\"INVALIDATED\"]}},{\"name\":\"eventSpecificationSignature\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"networkName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-
- private static SpecificData MODEL$ = new SpecificData();
-
- private static final BinaryMessageEncoder ENCODER =
- new BinaryMessageEncoder(MODEL$, SCHEMA$);
-
- private static final BinaryMessageDecoder DECODER =
- new BinaryMessageDecoder(MODEL$, SCHEMA$);
-
- /**
- * Return the BinaryMessageEncoder instance used by this class.
- * @return the message encoder used by this class
- */
- public static BinaryMessageEncoder getEncoder() {
- return ENCODER;
- }
-
- /**
- * Return the BinaryMessageDecoder instance used by this class.
- * @return the message decoder used by this class
- */
- public static BinaryMessageDecoder getDecoder() {
- return DECODER;
- }
-
- /**
- * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
- * @param resolver a {@link SchemaStore} used to find schemas by fingerprint
- * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
- */
- public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
- return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
- }
-
- /**
- * Serializes this ContractEventDetails to a ByteBuffer.
- * @return a buffer holding the serialized data for this instance
- * @throws java.io.IOException if this instance could not be serialized
- */
- public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
- return ENCODER.encode(this);
- }
-
- /**
- * Deserializes a ContractEventDetails from a ByteBuffer.
- * @param b a byte buffer holding serialized data for an instance of this class
- * @return a ContractEventDetails instance decoded from the given buffer
- * @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
- */
- public static ContractEventDetails fromByteBuffer(
- java.nio.ByteBuffer b) throws java.io.IOException {
- return DECODER.decode(b);
- }
-
- @Deprecated public java.lang.String name;
- @Deprecated public java.lang.String filterId;
- @Deprecated public java.lang.String nodeName;
- @Deprecated public java.util.List indexedParameters;
- @Deprecated public java.util.List nonIndexedParameters;
- @Deprecated public java.lang.String transactionHash;
- @Deprecated public java.lang.String logIndex;
- @Deprecated public java.lang.String blockNumber;
- @Deprecated public java.lang.String blockHash;
- @Deprecated public java.lang.String address;
- @Deprecated public io.keyko.monitoring.schemas.ContractEventStatus status;
- @Deprecated public java.lang.String eventSpecificationSignature;
- @Deprecated public java.lang.String networkName;
- @Deprecated public java.lang.String id;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public ContractEventDetails() {}
-
- /**
- * All-args constructor.
- * @param name The new value for name
- * @param filterId The new value for filterId
- * @param nodeName The new value for nodeName
- * @param indexedParameters The new value for indexedParameters
- * @param nonIndexedParameters The new value for nonIndexedParameters
- * @param transactionHash The new value for transactionHash
- * @param logIndex The new value for logIndex
- * @param blockNumber The new value for blockNumber
- * @param blockHash The new value for blockHash
- * @param address The new value for address
- * @param status The new value for status
- * @param eventSpecificationSignature The new value for eventSpecificationSignature
- * @param networkName The new value for networkName
- * @param id The new value for id
- */
- public ContractEventDetails(java.lang.String name, java.lang.String filterId, java.lang.String nodeName, java.util.List indexedParameters, java.util.List nonIndexedParameters, java.lang.String transactionHash, java.lang.String logIndex, java.lang.String blockNumber, java.lang.String blockHash, java.lang.String address, io.keyko.monitoring.schemas.ContractEventStatus status, java.lang.String eventSpecificationSignature, java.lang.String networkName, java.lang.String id) {
- this.name = name;
- this.filterId = filterId;
- this.nodeName = nodeName;
- this.indexedParameters = indexedParameters;
- this.nonIndexedParameters = nonIndexedParameters;
- this.transactionHash = transactionHash;
- this.logIndex = logIndex;
- this.blockNumber = blockNumber;
- this.blockHash = blockHash;
- this.address = address;
- this.status = status;
- this.eventSpecificationSignature = eventSpecificationSignature;
- this.networkName = networkName;
- this.id = id;
- }
-
- public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return name;
- case 1: return filterId;
- case 2: return nodeName;
- case 3: return indexedParameters;
- case 4: return nonIndexedParameters;
- case 5: return transactionHash;
- case 6: return logIndex;
- case 7: return blockNumber;
- case 8: return blockHash;
- case 9: return address;
- case 10: return status;
- case 11: return eventSpecificationSignature;
- case 12: return networkName;
- case 13: return id;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: name = (java.lang.String)value$; break;
- case 1: filterId = (java.lang.String)value$; break;
- case 2: nodeName = (java.lang.String)value$; break;
- case 3: indexedParameters = (java.util.List)value$; break;
- case 4: nonIndexedParameters = (java.util.List)value$; break;
- case 5: transactionHash = (java.lang.String)value$; break;
- case 6: logIndex = (java.lang.String)value$; break;
- case 7: blockNumber = (java.lang.String)value$; break;
- case 8: blockHash = (java.lang.String)value$; break;
- case 9: address = (java.lang.String)value$; break;
- case 10: status = (io.keyko.monitoring.schemas.ContractEventStatus)value$; break;
- case 11: eventSpecificationSignature = (java.lang.String)value$; break;
- case 12: networkName = (java.lang.String)value$; break;
- case 13: id = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'name' field.
- * @return The value of the 'name' field.
- */
- public java.lang.String getName() {
- return name;
- }
-
-
- /**
- * Sets the value of the 'name' field.
- * @param value the value to set.
- */
- public void setName(java.lang.String value) {
- this.name = value;
- }
-
- /**
- * Gets the value of the 'filterId' field.
- * @return The value of the 'filterId' field.
- */
- public java.lang.String getFilterId() {
- return filterId;
- }
-
-
- /**
- * Sets the value of the 'filterId' field.
- * @param value the value to set.
- */
- public void setFilterId(java.lang.String value) {
- this.filterId = value;
- }
-
- /**
- * Gets the value of the 'nodeName' field.
- * @return The value of the 'nodeName' field.
- */
- public java.lang.String getNodeName() {
- return nodeName;
- }
-
-
- /**
- * Sets the value of the 'nodeName' field.
- * @param value the value to set.
- */
- public void setNodeName(java.lang.String value) {
- this.nodeName = value;
- }
-
- /**
- * Gets the value of the 'indexedParameters' field.
- * @return The value of the 'indexedParameters' field.
- */
- public java.util.List getIndexedParameters() {
- return indexedParameters;
- }
-
-
- /**
- * Sets the value of the 'indexedParameters' field.
- * @param value the value to set.
- */
- public void setIndexedParameters(java.util.List value) {
- this.indexedParameters = value;
- }
-
- /**
- * Gets the value of the 'nonIndexedParameters' field.
- * @return The value of the 'nonIndexedParameters' field.
- */
- public java.util.List getNonIndexedParameters() {
- return nonIndexedParameters;
- }
-
-
- /**
- * Sets the value of the 'nonIndexedParameters' field.
- * @param value the value to set.
- */
- public void setNonIndexedParameters(java.util.List value) {
- this.nonIndexedParameters = value;
- }
-
- /**
- * Gets the value of the 'transactionHash' field.
- * @return The value of the 'transactionHash' field.
- */
- public java.lang.String getTransactionHash() {
- return transactionHash;
- }
-
-
- /**
- * Sets the value of the 'transactionHash' field.
- * @param value the value to set.
- */
- public void setTransactionHash(java.lang.String value) {
- this.transactionHash = value;
- }
-
- /**
- * Gets the value of the 'logIndex' field.
- * @return The value of the 'logIndex' field.
- */
- public java.lang.String getLogIndex() {
- return logIndex;
- }
-
-
- /**
- * Sets the value of the 'logIndex' field.
- * @param value the value to set.
- */
- public void setLogIndex(java.lang.String value) {
- this.logIndex = value;
- }
-
- /**
- * Gets the value of the 'blockNumber' field.
- * @return The value of the 'blockNumber' field.
- */
- public java.lang.String getBlockNumber() {
- return blockNumber;
- }
-
-
- /**
- * Sets the value of the 'blockNumber' field.
- * @param value the value to set.
- */
- public void setBlockNumber(java.lang.String value) {
- this.blockNumber = value;
- }
-
- /**
- * Gets the value of the 'blockHash' field.
- * @return The value of the 'blockHash' field.
- */
- public java.lang.String getBlockHash() {
- return blockHash;
- }
-
-
- /**
- * Sets the value of the 'blockHash' field.
- * @param value the value to set.
- */
- public void setBlockHash(java.lang.String value) {
- this.blockHash = value;
- }
-
- /**
- * Gets the value of the 'address' field.
- * @return The value of the 'address' field.
- */
- public java.lang.String getAddress() {
- return address;
- }
-
-
- /**
- * Sets the value of the 'address' field.
- * @param value the value to set.
- */
- public void setAddress(java.lang.String value) {
- this.address = value;
- }
-
- /**
- * Gets the value of the 'status' field.
- * @return The value of the 'status' field.
- */
- public io.keyko.monitoring.schemas.ContractEventStatus getStatus() {
- return status;
- }
-
-
- /**
- * Sets the value of the 'status' field.
- * @param value the value to set.
- */
- public void setStatus(io.keyko.monitoring.schemas.ContractEventStatus value) {
- this.status = value;
- }
-
- /**
- * Gets the value of the 'eventSpecificationSignature' field.
- * @return The value of the 'eventSpecificationSignature' field.
- */
- public java.lang.String getEventSpecificationSignature() {
- return eventSpecificationSignature;
- }
-
-
- /**
- * Sets the value of the 'eventSpecificationSignature' field.
- * @param value the value to set.
- */
- public void setEventSpecificationSignature(java.lang.String value) {
- this.eventSpecificationSignature = value;
- }
-
- /**
- * Gets the value of the 'networkName' field.
- * @return The value of the 'networkName' field.
- */
- public java.lang.String getNetworkName() {
- return networkName;
- }
-
-
- /**
- * Sets the value of the 'networkName' field.
- * @param value the value to set.
- */
- public void setNetworkName(java.lang.String value) {
- this.networkName = value;
- }
-
- /**
- * Gets the value of the 'id' field.
- * @return The value of the 'id' field.
- */
- public java.lang.String getId() {
- return id;
- }
-
-
- /**
- * Sets the value of the 'id' field.
- * @param value the value to set.
- */
- public void setId(java.lang.String value) {
- this.id = value;
- }
-
- /**
- * Creates a new ContractEventDetails RecordBuilder.
- * @return A new ContractEventDetails RecordBuilder
- */
- public static io.keyko.monitoring.schemas.ContractEventDetails.Builder newBuilder() {
- return new io.keyko.monitoring.schemas.ContractEventDetails.Builder();
- }
-
- /**
- * Creates a new ContractEventDetails RecordBuilder by copying an existing Builder.
- * @param other The existing builder to copy.
- * @return A new ContractEventDetails RecordBuilder
- */
- public static io.keyko.monitoring.schemas.ContractEventDetails.Builder newBuilder(io.keyko.monitoring.schemas.ContractEventDetails.Builder other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.ContractEventDetails.Builder();
- } else {
- return new io.keyko.monitoring.schemas.ContractEventDetails.Builder(other);
- }
- }
-
- /**
- * Creates a new ContractEventDetails RecordBuilder by copying an existing ContractEventDetails instance.
- * @param other The existing instance to copy.
- * @return A new ContractEventDetails RecordBuilder
- */
- public static io.keyko.monitoring.schemas.ContractEventDetails.Builder newBuilder(io.keyko.monitoring.schemas.ContractEventDetails other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.ContractEventDetails.Builder();
- } else {
- return new io.keyko.monitoring.schemas.ContractEventDetails.Builder(other);
- }
- }
-
- /**
- * RecordBuilder for ContractEventDetails instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String name;
- private java.lang.String filterId;
- private java.lang.String nodeName;
- private java.util.List indexedParameters;
- private java.util.List nonIndexedParameters;
- private java.lang.String transactionHash;
- private java.lang.String logIndex;
- private java.lang.String blockNumber;
- private java.lang.String blockHash;
- private java.lang.String address;
- private io.keyko.monitoring.schemas.ContractEventStatus status;
- private java.lang.String eventSpecificationSignature;
- private java.lang.String networkName;
- private java.lang.String id;
-
- /** Creates a new Builder */
- private Builder() {
- super(SCHEMA$);
- }
-
- /**
- * Creates a Builder by copying an existing Builder.
- * @param other The existing Builder to copy.
- */
- private Builder(io.keyko.monitoring.schemas.ContractEventDetails.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.name)) {
- this.name = data().deepCopy(fields()[0].schema(), other.name);
- fieldSetFlags()[0] = other.fieldSetFlags()[0];
- }
- if (isValidValue(fields()[1], other.filterId)) {
- this.filterId = data().deepCopy(fields()[1].schema(), other.filterId);
- fieldSetFlags()[1] = other.fieldSetFlags()[1];
- }
- if (isValidValue(fields()[2], other.nodeName)) {
- this.nodeName = data().deepCopy(fields()[2].schema(), other.nodeName);
- fieldSetFlags()[2] = other.fieldSetFlags()[2];
- }
- if (isValidValue(fields()[3], other.indexedParameters)) {
- this.indexedParameters = data().deepCopy(fields()[3].schema(), other.indexedParameters);
- fieldSetFlags()[3] = other.fieldSetFlags()[3];
- }
- if (isValidValue(fields()[4], other.nonIndexedParameters)) {
- this.nonIndexedParameters = data().deepCopy(fields()[4].schema(), other.nonIndexedParameters);
- fieldSetFlags()[4] = other.fieldSetFlags()[4];
- }
- if (isValidValue(fields()[5], other.transactionHash)) {
- this.transactionHash = data().deepCopy(fields()[5].schema(), other.transactionHash);
- fieldSetFlags()[5] = other.fieldSetFlags()[5];
- }
- if (isValidValue(fields()[6], other.logIndex)) {
- this.logIndex = data().deepCopy(fields()[6].schema(), other.logIndex);
- fieldSetFlags()[6] = other.fieldSetFlags()[6];
- }
- if (isValidValue(fields()[7], other.blockNumber)) {
- this.blockNumber = data().deepCopy(fields()[7].schema(), other.blockNumber);
- fieldSetFlags()[7] = other.fieldSetFlags()[7];
- }
- if (isValidValue(fields()[8], other.blockHash)) {
- this.blockHash = data().deepCopy(fields()[8].schema(), other.blockHash);
- fieldSetFlags()[8] = other.fieldSetFlags()[8];
- }
- if (isValidValue(fields()[9], other.address)) {
- this.address = data().deepCopy(fields()[9].schema(), other.address);
- fieldSetFlags()[9] = other.fieldSetFlags()[9];
- }
- if (isValidValue(fields()[10], other.status)) {
- this.status = data().deepCopy(fields()[10].schema(), other.status);
- fieldSetFlags()[10] = other.fieldSetFlags()[10];
- }
- if (isValidValue(fields()[11], other.eventSpecificationSignature)) {
- this.eventSpecificationSignature = data().deepCopy(fields()[11].schema(), other.eventSpecificationSignature);
- fieldSetFlags()[11] = other.fieldSetFlags()[11];
- }
- if (isValidValue(fields()[12], other.networkName)) {
- this.networkName = data().deepCopy(fields()[12].schema(), other.networkName);
- fieldSetFlags()[12] = other.fieldSetFlags()[12];
- }
- if (isValidValue(fields()[13], other.id)) {
- this.id = data().deepCopy(fields()[13].schema(), other.id);
- fieldSetFlags()[13] = other.fieldSetFlags()[13];
- }
- }
-
- /**
- * Creates a Builder by copying an existing ContractEventDetails instance
- * @param other The existing instance to copy.
- */
- private Builder(io.keyko.monitoring.schemas.ContractEventDetails other) {
- super(SCHEMA$);
- if (isValidValue(fields()[0], other.name)) {
- this.name = data().deepCopy(fields()[0].schema(), other.name);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.filterId)) {
- this.filterId = data().deepCopy(fields()[1].schema(), other.filterId);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.nodeName)) {
- this.nodeName = data().deepCopy(fields()[2].schema(), other.nodeName);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.indexedParameters)) {
- this.indexedParameters = data().deepCopy(fields()[3].schema(), other.indexedParameters);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.nonIndexedParameters)) {
- this.nonIndexedParameters = data().deepCopy(fields()[4].schema(), other.nonIndexedParameters);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.transactionHash)) {
- this.transactionHash = data().deepCopy(fields()[5].schema(), other.transactionHash);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.logIndex)) {
- this.logIndex = data().deepCopy(fields()[6].schema(), other.logIndex);
- fieldSetFlags()[6] = true;
- }
- if (isValidValue(fields()[7], other.blockNumber)) {
- this.blockNumber = data().deepCopy(fields()[7].schema(), other.blockNumber);
- fieldSetFlags()[7] = true;
- }
- if (isValidValue(fields()[8], other.blockHash)) {
- this.blockHash = data().deepCopy(fields()[8].schema(), other.blockHash);
- fieldSetFlags()[8] = true;
- }
- if (isValidValue(fields()[9], other.address)) {
- this.address = data().deepCopy(fields()[9].schema(), other.address);
- fieldSetFlags()[9] = true;
- }
- if (isValidValue(fields()[10], other.status)) {
- this.status = data().deepCopy(fields()[10].schema(), other.status);
- fieldSetFlags()[10] = true;
- }
- if (isValidValue(fields()[11], other.eventSpecificationSignature)) {
- this.eventSpecificationSignature = data().deepCopy(fields()[11].schema(), other.eventSpecificationSignature);
- fieldSetFlags()[11] = true;
- }
- if (isValidValue(fields()[12], other.networkName)) {
- this.networkName = data().deepCopy(fields()[12].schema(), other.networkName);
- fieldSetFlags()[12] = true;
- }
- if (isValidValue(fields()[13], other.id)) {
- this.id = data().deepCopy(fields()[13].schema(), other.id);
- fieldSetFlags()[13] = true;
- }
- }
-
- /**
- * Gets the value of the 'name' field.
- * @return The value.
- */
- public java.lang.String getName() {
- return name;
- }
-
-
- /**
- * Sets the value of the 'name' field.
- * @param value The value of 'name'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setName(java.lang.String value) {
- validate(fields()[0], value);
- this.name = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /**
- * Checks whether the 'name' field has been set.
- * @return True if the 'name' field has been set, false otherwise.
- */
- public boolean hasName() {
- return fieldSetFlags()[0];
- }
-
-
- /**
- * Clears the value of the 'name' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearName() {
- name = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'filterId' field.
- * @return The value.
- */
- public java.lang.String getFilterId() {
- return filterId;
- }
-
-
- /**
- * Sets the value of the 'filterId' field.
- * @param value The value of 'filterId'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setFilterId(java.lang.String value) {
- validate(fields()[1], value);
- this.filterId = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /**
- * Checks whether the 'filterId' field has been set.
- * @return True if the 'filterId' field has been set, false otherwise.
- */
- public boolean hasFilterId() {
- return fieldSetFlags()[1];
- }
-
-
- /**
- * Clears the value of the 'filterId' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearFilterId() {
- filterId = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'nodeName' field.
- * @return The value.
- */
- public java.lang.String getNodeName() {
- return nodeName;
- }
-
-
- /**
- * Sets the value of the 'nodeName' field.
- * @param value The value of 'nodeName'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setNodeName(java.lang.String value) {
- validate(fields()[2], value);
- this.nodeName = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /**
- * Checks whether the 'nodeName' field has been set.
- * @return True if the 'nodeName' field has been set, false otherwise.
- */
- public boolean hasNodeName() {
- return fieldSetFlags()[2];
- }
-
-
- /**
- * Clears the value of the 'nodeName' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearNodeName() {
- nodeName = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'indexedParameters' field.
- * @return The value.
- */
- public java.util.List getIndexedParameters() {
- return indexedParameters;
- }
-
-
- /**
- * Sets the value of the 'indexedParameters' field.
- * @param value The value of 'indexedParameters'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setIndexedParameters(java.util.List value) {
- validate(fields()[3], value);
- this.indexedParameters = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /**
- * Checks whether the 'indexedParameters' field has been set.
- * @return True if the 'indexedParameters' field has been set, false otherwise.
- */
- public boolean hasIndexedParameters() {
- return fieldSetFlags()[3];
- }
-
-
- /**
- * Clears the value of the 'indexedParameters' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearIndexedParameters() {
- indexedParameters = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'nonIndexedParameters' field.
- * @return The value.
- */
- public java.util.List getNonIndexedParameters() {
- return nonIndexedParameters;
- }
-
-
- /**
- * Sets the value of the 'nonIndexedParameters' field.
- * @param value The value of 'nonIndexedParameters'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setNonIndexedParameters(java.util.List value) {
- validate(fields()[4], value);
- this.nonIndexedParameters = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /**
- * Checks whether the 'nonIndexedParameters' field has been set.
- * @return True if the 'nonIndexedParameters' field has been set, false otherwise.
- */
- public boolean hasNonIndexedParameters() {
- return fieldSetFlags()[4];
- }
-
-
- /**
- * Clears the value of the 'nonIndexedParameters' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearNonIndexedParameters() {
- nonIndexedParameters = null;
- fieldSetFlags()[4] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'transactionHash' field.
- * @return The value.
- */
- public java.lang.String getTransactionHash() {
- return transactionHash;
- }
-
-
- /**
- * Sets the value of the 'transactionHash' field.
- * @param value The value of 'transactionHash'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setTransactionHash(java.lang.String value) {
- validate(fields()[5], value);
- this.transactionHash = value;
- fieldSetFlags()[5] = true;
- return this;
- }
-
- /**
- * Checks whether the 'transactionHash' field has been set.
- * @return True if the 'transactionHash' field has been set, false otherwise.
- */
- public boolean hasTransactionHash() {
- return fieldSetFlags()[5];
- }
-
-
- /**
- * Clears the value of the 'transactionHash' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearTransactionHash() {
- transactionHash = null;
- fieldSetFlags()[5] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'logIndex' field.
- * @return The value.
- */
- public java.lang.String getLogIndex() {
- return logIndex;
- }
-
-
- /**
- * Sets the value of the 'logIndex' field.
- * @param value The value of 'logIndex'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setLogIndex(java.lang.String value) {
- validate(fields()[6], value);
- this.logIndex = value;
- fieldSetFlags()[6] = true;
- return this;
- }
-
- /**
- * Checks whether the 'logIndex' field has been set.
- * @return True if the 'logIndex' field has been set, false otherwise.
- */
- public boolean hasLogIndex() {
- return fieldSetFlags()[6];
- }
-
-
- /**
- * Clears the value of the 'logIndex' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearLogIndex() {
- logIndex = null;
- fieldSetFlags()[6] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'blockNumber' field.
- * @return The value.
- */
- public java.lang.String getBlockNumber() {
- return blockNumber;
- }
-
-
- /**
- * Sets the value of the 'blockNumber' field.
- * @param value The value of 'blockNumber'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setBlockNumber(java.lang.String value) {
- validate(fields()[7], value);
- this.blockNumber = value;
- fieldSetFlags()[7] = true;
- return this;
- }
-
- /**
- * Checks whether the 'blockNumber' field has been set.
- * @return True if the 'blockNumber' field has been set, false otherwise.
- */
- public boolean hasBlockNumber() {
- return fieldSetFlags()[7];
- }
-
-
- /**
- * Clears the value of the 'blockNumber' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearBlockNumber() {
- blockNumber = null;
- fieldSetFlags()[7] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'blockHash' field.
- * @return The value.
- */
- public java.lang.String getBlockHash() {
- return blockHash;
- }
-
-
- /**
- * Sets the value of the 'blockHash' field.
- * @param value The value of 'blockHash'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setBlockHash(java.lang.String value) {
- validate(fields()[8], value);
- this.blockHash = value;
- fieldSetFlags()[8] = true;
- return this;
- }
-
- /**
- * Checks whether the 'blockHash' field has been set.
- * @return True if the 'blockHash' field has been set, false otherwise.
- */
- public boolean hasBlockHash() {
- return fieldSetFlags()[8];
- }
-
-
- /**
- * Clears the value of the 'blockHash' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearBlockHash() {
- blockHash = null;
- fieldSetFlags()[8] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'address' field.
- * @return The value.
- */
- public java.lang.String getAddress() {
- return address;
- }
-
-
- /**
- * Sets the value of the 'address' field.
- * @param value The value of 'address'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setAddress(java.lang.String value) {
- validate(fields()[9], value);
- this.address = value;
- fieldSetFlags()[9] = true;
- return this;
- }
-
- /**
- * Checks whether the 'address' field has been set.
- * @return True if the 'address' field has been set, false otherwise.
- */
- public boolean hasAddress() {
- return fieldSetFlags()[9];
- }
-
-
- /**
- * Clears the value of the 'address' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearAddress() {
- address = null;
- fieldSetFlags()[9] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'status' field.
- * @return The value.
- */
- public io.keyko.monitoring.schemas.ContractEventStatus getStatus() {
- return status;
- }
-
-
- /**
- * Sets the value of the 'status' field.
- * @param value The value of 'status'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setStatus(io.keyko.monitoring.schemas.ContractEventStatus value) {
- validate(fields()[10], value);
- this.status = value;
- fieldSetFlags()[10] = true;
- return this;
- }
-
- /**
- * Checks whether the 'status' field has been set.
- * @return True if the 'status' field has been set, false otherwise.
- */
- public boolean hasStatus() {
- return fieldSetFlags()[10];
- }
-
-
- /**
- * Clears the value of the 'status' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearStatus() {
- status = null;
- fieldSetFlags()[10] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'eventSpecificationSignature' field.
- * @return The value.
- */
- public java.lang.String getEventSpecificationSignature() {
- return eventSpecificationSignature;
- }
-
-
- /**
- * Sets the value of the 'eventSpecificationSignature' field.
- * @param value The value of 'eventSpecificationSignature'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setEventSpecificationSignature(java.lang.String value) {
- validate(fields()[11], value);
- this.eventSpecificationSignature = value;
- fieldSetFlags()[11] = true;
- return this;
- }
-
- /**
- * Checks whether the 'eventSpecificationSignature' field has been set.
- * @return True if the 'eventSpecificationSignature' field has been set, false otherwise.
- */
- public boolean hasEventSpecificationSignature() {
- return fieldSetFlags()[11];
- }
-
-
- /**
- * Clears the value of the 'eventSpecificationSignature' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearEventSpecificationSignature() {
- eventSpecificationSignature = null;
- fieldSetFlags()[11] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'networkName' field.
- * @return The value.
- */
- public java.lang.String getNetworkName() {
- return networkName;
- }
-
-
- /**
- * Sets the value of the 'networkName' field.
- * @param value The value of 'networkName'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setNetworkName(java.lang.String value) {
- validate(fields()[12], value);
- this.networkName = value;
- fieldSetFlags()[12] = true;
- return this;
- }
-
- /**
- * Checks whether the 'networkName' field has been set.
- * @return True if the 'networkName' field has been set, false otherwise.
- */
- public boolean hasNetworkName() {
- return fieldSetFlags()[12];
- }
-
-
- /**
- * Clears the value of the 'networkName' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearNetworkName() {
- networkName = null;
- fieldSetFlags()[12] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'id' field.
- * @return The value.
- */
- public java.lang.String getId() {
- return id;
- }
-
-
- /**
- * Sets the value of the 'id' field.
- * @param value The value of 'id'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder setId(java.lang.String value) {
- validate(fields()[13], value);
- this.id = value;
- fieldSetFlags()[13] = true;
- return this;
- }
-
- /**
- * Checks whether the 'id' field has been set.
- * @return True if the 'id' field has been set, false otherwise.
- */
- public boolean hasId() {
- return fieldSetFlags()[13];
- }
-
-
- /**
- * Clears the value of the 'id' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder clearId() {
- id = null;
- fieldSetFlags()[13] = false;
- return this;
- }
-
- @Override
- @SuppressWarnings("unchecked")
- public ContractEventDetails build() {
- try {
- ContractEventDetails record = new ContractEventDetails();
- record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]);
- record.filterId = fieldSetFlags()[1] ? this.filterId : (java.lang.String) defaultValue(fields()[1]);
- record.nodeName = fieldSetFlags()[2] ? this.nodeName : (java.lang.String) defaultValue(fields()[2]);
- record.indexedParameters = fieldSetFlags()[3] ? this.indexedParameters : (java.util.List) defaultValue(fields()[3]);
- record.nonIndexedParameters = fieldSetFlags()[4] ? this.nonIndexedParameters : (java.util.List) defaultValue(fields()[4]);
- record.transactionHash = fieldSetFlags()[5] ? this.transactionHash : (java.lang.String) defaultValue(fields()[5]);
- record.logIndex = fieldSetFlags()[6] ? this.logIndex : (java.lang.String) defaultValue(fields()[6]);
- record.blockNumber = fieldSetFlags()[7] ? this.blockNumber : (java.lang.String) defaultValue(fields()[7]);
- record.blockHash = fieldSetFlags()[8] ? this.blockHash : (java.lang.String) defaultValue(fields()[8]);
- record.address = fieldSetFlags()[9] ? this.address : (java.lang.String) defaultValue(fields()[9]);
- record.status = fieldSetFlags()[10] ? this.status : (io.keyko.monitoring.schemas.ContractEventStatus) defaultValue(fields()[10]);
- record.eventSpecificationSignature = fieldSetFlags()[11] ? this.eventSpecificationSignature : (java.lang.String) defaultValue(fields()[11]);
- record.networkName = fieldSetFlags()[12] ? this.networkName : (java.lang.String) defaultValue(fields()[12]);
- record.id = fieldSetFlags()[13] ? this.id : (java.lang.String) defaultValue(fields()[13]);
- return record;
- } catch (org.apache.avro.AvroMissingFieldException e) {
- throw e;
- } catch (java.lang.Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumWriter
- WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
-
- @Override public void writeExternal(java.io.ObjectOutput out)
- throws java.io.IOException {
- WRITER$.write(this, SpecificData.getEncoder(out));
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumReader
- READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
-
- @Override public void readExternal(java.io.ObjectInput in)
- throws java.io.IOException {
- READER$.read(this, SpecificData.getDecoder(in));
- }
-
-}
-
-
-
-
-
-
-
-
-
-
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/ContractEventStatus.java b/target/generated-sources/io/keyko/monitoring/schemas/ContractEventStatus.java
deleted file mode 100644
index 109ea82..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/ContractEventStatus.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-@org.apache.avro.specific.AvroGenerated
-public enum ContractEventStatus implements org.apache.avro.generic.GenericEnumSymbol {
- UNCONFIRMED, CONFIRMED, INVALIDATED ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"ContractEventStatus\",\"namespace\":\"io.keyko.monitoring.schemas\",\"symbols\":[\"UNCONFIRMED\",\"CONFIRMED\",\"INVALIDATED\"]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
-}
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/EventBlock.java b/target/generated-sources/io/keyko/monitoring/schemas/EventBlock.java
deleted file mode 100644
index 1007d62..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/EventBlock.java
+++ /dev/null
@@ -1,666 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-
-import org.apache.avro.generic.GenericArray;
-import org.apache.avro.specific.SpecificData;
-import org.apache.avro.util.Utf8;
-import org.apache.avro.message.BinaryMessageEncoder;
-import org.apache.avro.message.BinaryMessageDecoder;
-import org.apache.avro.message.SchemaStore;
-
-@org.apache.avro.specific.AvroGenerated
-public class EventBlock extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- private static final long serialVersionUID = -2673260571713821605L;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"EventBlock\",\"namespace\":\"io.keyko.monitoring.schemas\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"details\",\"type\":{\"type\":\"record\",\"name\":\"ContractEventDetails\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"filterId\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"nodeName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"indexedParameters\",\"type\":{\"type\":\"array\",\"items\":[{\"type\":\"record\",\"name\":\"StringParameter\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]},{\"type\":\"record\",\"name\":\"NumberParameter\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"}]}]}},{\"name\":\"nonIndexedParameters\",\"type\":{\"type\":\"array\",\"items\":[\"StringParameter\",\"NumberParameter\"]}},{\"name\":\"transactionHash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"logIndex\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"blockNumber\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"blockHash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"address\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"status\",\"type\":{\"type\":\"enum\",\"name\":\"ContractEventStatus\",\"symbols\":[\"UNCONFIRMED\",\"CONFIRMED\",\"INVALIDATED\"]}},{\"name\":\"eventSpecificationSignature\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"networkName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}},{\"name\":\"detailsBlock\",\"type\":{\"type\":\"record\",\"name\":\"BlockDetails\",\"fields\":[{\"name\":\"number\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"timestamp\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"},{\"name\":\"nodeName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}},{\"name\":\"retries\",\"type\":\"int\"}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-
- private static SpecificData MODEL$ = new SpecificData();
-
- private static final BinaryMessageEncoder ENCODER =
- new BinaryMessageEncoder(MODEL$, SCHEMA$);
-
- private static final BinaryMessageDecoder DECODER =
- new BinaryMessageDecoder(MODEL$, SCHEMA$);
-
- /**
- * Return the BinaryMessageEncoder instance used by this class.
- * @return the message encoder used by this class
- */
- public static BinaryMessageEncoder getEncoder() {
- return ENCODER;
- }
-
- /**
- * Return the BinaryMessageDecoder instance used by this class.
- * @return the message decoder used by this class
- */
- public static BinaryMessageDecoder getDecoder() {
- return DECODER;
- }
-
- /**
- * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
- * @param resolver a {@link SchemaStore} used to find schemas by fingerprint
- * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
- */
- public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
- return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
- }
-
- /**
- * Serializes this EventBlock to a ByteBuffer.
- * @return a buffer holding the serialized data for this instance
- * @throws java.io.IOException if this instance could not be serialized
- */
- public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
- return ENCODER.encode(this);
- }
-
- /**
- * Deserializes a EventBlock from a ByteBuffer.
- * @param b a byte buffer holding serialized data for an instance of this class
- * @return a EventBlock instance decoded from the given buffer
- * @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
- */
- public static EventBlock fromByteBuffer(
- java.nio.ByteBuffer b) throws java.io.IOException {
- return DECODER.decode(b);
- }
-
- @Deprecated public java.lang.String id;
- @Deprecated public java.lang.String type;
- @Deprecated public io.keyko.monitoring.schemas.ContractEventDetails details;
- @Deprecated public io.keyko.monitoring.schemas.BlockDetails detailsBlock;
- @Deprecated public int retries;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public EventBlock() {}
-
- /**
- * All-args constructor.
- * @param id The new value for id
- * @param type The new value for type
- * @param details The new value for details
- * @param detailsBlock The new value for detailsBlock
- * @param retries The new value for retries
- */
- public EventBlock(java.lang.String id, java.lang.String type, io.keyko.monitoring.schemas.ContractEventDetails details, io.keyko.monitoring.schemas.BlockDetails detailsBlock, java.lang.Integer retries) {
- this.id = id;
- this.type = type;
- this.details = details;
- this.detailsBlock = detailsBlock;
- this.retries = retries;
- }
-
- public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return id;
- case 1: return type;
- case 2: return details;
- case 3: return detailsBlock;
- case 4: return retries;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: id = (java.lang.String)value$; break;
- case 1: type = (java.lang.String)value$; break;
- case 2: details = (io.keyko.monitoring.schemas.ContractEventDetails)value$; break;
- case 3: detailsBlock = (io.keyko.monitoring.schemas.BlockDetails)value$; break;
- case 4: retries = (java.lang.Integer)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'id' field.
- * @return The value of the 'id' field.
- */
- public java.lang.String getId() {
- return id;
- }
-
-
- /**
- * Sets the value of the 'id' field.
- * @param value the value to set.
- */
- public void setId(java.lang.String value) {
- this.id = value;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value of the 'type' field.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value the value to set.
- */
- public void setType(java.lang.String value) {
- this.type = value;
- }
-
- /**
- * Gets the value of the 'details' field.
- * @return The value of the 'details' field.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails getDetails() {
- return details;
- }
-
-
- /**
- * Sets the value of the 'details' field.
- * @param value the value to set.
- */
- public void setDetails(io.keyko.monitoring.schemas.ContractEventDetails value) {
- this.details = value;
- }
-
- /**
- * Gets the value of the 'detailsBlock' field.
- * @return The value of the 'detailsBlock' field.
- */
- public io.keyko.monitoring.schemas.BlockDetails getDetailsBlock() {
- return detailsBlock;
- }
-
-
- /**
- * Sets the value of the 'detailsBlock' field.
- * @param value the value to set.
- */
- public void setDetailsBlock(io.keyko.monitoring.schemas.BlockDetails value) {
- this.detailsBlock = value;
- }
-
- /**
- * Gets the value of the 'retries' field.
- * @return The value of the 'retries' field.
- */
- public int getRetries() {
- return retries;
- }
-
-
- /**
- * Sets the value of the 'retries' field.
- * @param value the value to set.
- */
- public void setRetries(int value) {
- this.retries = value;
- }
-
- /**
- * Creates a new EventBlock RecordBuilder.
- * @return A new EventBlock RecordBuilder
- */
- public static io.keyko.monitoring.schemas.EventBlock.Builder newBuilder() {
- return new io.keyko.monitoring.schemas.EventBlock.Builder();
- }
-
- /**
- * Creates a new EventBlock RecordBuilder by copying an existing Builder.
- * @param other The existing builder to copy.
- * @return A new EventBlock RecordBuilder
- */
- public static io.keyko.monitoring.schemas.EventBlock.Builder newBuilder(io.keyko.monitoring.schemas.EventBlock.Builder other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.EventBlock.Builder();
- } else {
- return new io.keyko.monitoring.schemas.EventBlock.Builder(other);
- }
- }
-
- /**
- * Creates a new EventBlock RecordBuilder by copying an existing EventBlock instance.
- * @param other The existing instance to copy.
- * @return A new EventBlock RecordBuilder
- */
- public static io.keyko.monitoring.schemas.EventBlock.Builder newBuilder(io.keyko.monitoring.schemas.EventBlock other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.EventBlock.Builder();
- } else {
- return new io.keyko.monitoring.schemas.EventBlock.Builder(other);
- }
- }
-
- /**
- * RecordBuilder for EventBlock instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String id;
- private java.lang.String type;
- private io.keyko.monitoring.schemas.ContractEventDetails details;
- private io.keyko.monitoring.schemas.ContractEventDetails.Builder detailsBuilder;
- private io.keyko.monitoring.schemas.BlockDetails detailsBlock;
- private io.keyko.monitoring.schemas.BlockDetails.Builder detailsBlockBuilder;
- private int retries;
-
- /** Creates a new Builder */
- private Builder() {
- super(SCHEMA$);
- }
-
- /**
- * Creates a Builder by copying an existing Builder.
- * @param other The existing Builder to copy.
- */
- private Builder(io.keyko.monitoring.schemas.EventBlock.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.id)) {
- this.id = data().deepCopy(fields()[0].schema(), other.id);
- fieldSetFlags()[0] = other.fieldSetFlags()[0];
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = other.fieldSetFlags()[1];
- }
- if (isValidValue(fields()[2], other.details)) {
- this.details = data().deepCopy(fields()[2].schema(), other.details);
- fieldSetFlags()[2] = other.fieldSetFlags()[2];
- }
- if (other.hasDetailsBuilder()) {
- this.detailsBuilder = io.keyko.monitoring.schemas.ContractEventDetails.newBuilder(other.getDetailsBuilder());
- }
- if (isValidValue(fields()[3], other.detailsBlock)) {
- this.detailsBlock = data().deepCopy(fields()[3].schema(), other.detailsBlock);
- fieldSetFlags()[3] = other.fieldSetFlags()[3];
- }
- if (other.hasDetailsBlockBuilder()) {
- this.detailsBlockBuilder = io.keyko.monitoring.schemas.BlockDetails.newBuilder(other.getDetailsBlockBuilder());
- }
- if (isValidValue(fields()[4], other.retries)) {
- this.retries = data().deepCopy(fields()[4].schema(), other.retries);
- fieldSetFlags()[4] = other.fieldSetFlags()[4];
- }
- }
-
- /**
- * Creates a Builder by copying an existing EventBlock instance
- * @param other The existing instance to copy.
- */
- private Builder(io.keyko.monitoring.schemas.EventBlock other) {
- super(SCHEMA$);
- if (isValidValue(fields()[0], other.id)) {
- this.id = data().deepCopy(fields()[0].schema(), other.id);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.details)) {
- this.details = data().deepCopy(fields()[2].schema(), other.details);
- fieldSetFlags()[2] = true;
- }
- this.detailsBuilder = null;
- if (isValidValue(fields()[3], other.detailsBlock)) {
- this.detailsBlock = data().deepCopy(fields()[3].schema(), other.detailsBlock);
- fieldSetFlags()[3] = true;
- }
- this.detailsBlockBuilder = null;
- if (isValidValue(fields()[4], other.retries)) {
- this.retries = data().deepCopy(fields()[4].schema(), other.retries);
- fieldSetFlags()[4] = true;
- }
- }
-
- /**
- * Gets the value of the 'id' field.
- * @return The value.
- */
- public java.lang.String getId() {
- return id;
- }
-
-
- /**
- * Sets the value of the 'id' field.
- * @param value The value of 'id'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder setId(java.lang.String value) {
- validate(fields()[0], value);
- this.id = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /**
- * Checks whether the 'id' field has been set.
- * @return True if the 'id' field has been set, false otherwise.
- */
- public boolean hasId() {
- return fieldSetFlags()[0];
- }
-
-
- /**
- * Clears the value of the 'id' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder clearId() {
- id = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value The value of 'type'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder setType(java.lang.String value) {
- validate(fields()[1], value);
- this.type = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /**
- * Checks whether the 'type' field has been set.
- * @return True if the 'type' field has been set, false otherwise.
- */
- public boolean hasType() {
- return fieldSetFlags()[1];
- }
-
-
- /**
- * Clears the value of the 'type' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder clearType() {
- type = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'details' field.
- * @return The value.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails getDetails() {
- return details;
- }
-
-
- /**
- * Sets the value of the 'details' field.
- * @param value The value of 'details'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder setDetails(io.keyko.monitoring.schemas.ContractEventDetails value) {
- validate(fields()[2], value);
- this.detailsBuilder = null;
- this.details = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /**
- * Checks whether the 'details' field has been set.
- * @return True if the 'details' field has been set, false otherwise.
- */
- public boolean hasDetails() {
- return fieldSetFlags()[2];
- }
-
- /**
- * Gets the Builder instance for the 'details' field and creates one if it doesn't exist yet.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.ContractEventDetails.Builder getDetailsBuilder() {
- if (detailsBuilder == null) {
- if (hasDetails()) {
- setDetailsBuilder(io.keyko.monitoring.schemas.ContractEventDetails.newBuilder(details));
- } else {
- setDetailsBuilder(io.keyko.monitoring.schemas.ContractEventDetails.newBuilder());
- }
- }
- return detailsBuilder;
- }
-
- /**
- * Sets the Builder instance for the 'details' field
- * @param value The builder instance that must be set.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder setDetailsBuilder(io.keyko.monitoring.schemas.ContractEventDetails.Builder value) {
- clearDetails();
- detailsBuilder = value;
- return this;
- }
-
- /**
- * Checks whether the 'details' field has an active Builder instance
- * @return True if the 'details' field has an active Builder instance
- */
- public boolean hasDetailsBuilder() {
- return detailsBuilder != null;
- }
-
- /**
- * Clears the value of the 'details' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder clearDetails() {
- details = null;
- detailsBuilder = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'detailsBlock' field.
- * @return The value.
- */
- public io.keyko.monitoring.schemas.BlockDetails getDetailsBlock() {
- return detailsBlock;
- }
-
-
- /**
- * Sets the value of the 'detailsBlock' field.
- * @param value The value of 'detailsBlock'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder setDetailsBlock(io.keyko.monitoring.schemas.BlockDetails value) {
- validate(fields()[3], value);
- this.detailsBlockBuilder = null;
- this.detailsBlock = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /**
- * Checks whether the 'detailsBlock' field has been set.
- * @return True if the 'detailsBlock' field has been set, false otherwise.
- */
- public boolean hasDetailsBlock() {
- return fieldSetFlags()[3];
- }
-
- /**
- * Gets the Builder instance for the 'detailsBlock' field and creates one if it doesn't exist yet.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.BlockDetails.Builder getDetailsBlockBuilder() {
- if (detailsBlockBuilder == null) {
- if (hasDetailsBlock()) {
- setDetailsBlockBuilder(io.keyko.monitoring.schemas.BlockDetails.newBuilder(detailsBlock));
- } else {
- setDetailsBlockBuilder(io.keyko.monitoring.schemas.BlockDetails.newBuilder());
- }
- }
- return detailsBlockBuilder;
- }
-
- /**
- * Sets the Builder instance for the 'detailsBlock' field
- * @param value The builder instance that must be set.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder setDetailsBlockBuilder(io.keyko.monitoring.schemas.BlockDetails.Builder value) {
- clearDetailsBlock();
- detailsBlockBuilder = value;
- return this;
- }
-
- /**
- * Checks whether the 'detailsBlock' field has an active Builder instance
- * @return True if the 'detailsBlock' field has an active Builder instance
- */
- public boolean hasDetailsBlockBuilder() {
- return detailsBlockBuilder != null;
- }
-
- /**
- * Clears the value of the 'detailsBlock' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder clearDetailsBlock() {
- detailsBlock = null;
- detailsBlockBuilder = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'retries' field.
- * @return The value.
- */
- public int getRetries() {
- return retries;
- }
-
-
- /**
- * Sets the value of the 'retries' field.
- * @param value The value of 'retries'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder setRetries(int value) {
- validate(fields()[4], value);
- this.retries = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /**
- * Checks whether the 'retries' field has been set.
- * @return True if the 'retries' field has been set, false otherwise.
- */
- public boolean hasRetries() {
- return fieldSetFlags()[4];
- }
-
-
- /**
- * Clears the value of the 'retries' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.EventBlock.Builder clearRetries() {
- fieldSetFlags()[4] = false;
- return this;
- }
-
- @Override
- @SuppressWarnings("unchecked")
- public EventBlock build() {
- try {
- EventBlock record = new EventBlock();
- record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) defaultValue(fields()[0]);
- record.type = fieldSetFlags()[1] ? this.type : (java.lang.String) defaultValue(fields()[1]);
- if (detailsBuilder != null) {
- try {
- record.details = this.detailsBuilder.build();
- } catch (org.apache.avro.AvroMissingFieldException e) {
- e.addParentField(record.getSchema().getField("details"));
- throw e;
- }
- } else {
- record.details = fieldSetFlags()[2] ? this.details : (io.keyko.monitoring.schemas.ContractEventDetails) defaultValue(fields()[2]);
- }
- if (detailsBlockBuilder != null) {
- try {
- record.detailsBlock = this.detailsBlockBuilder.build();
- } catch (org.apache.avro.AvroMissingFieldException e) {
- e.addParentField(record.getSchema().getField("detailsBlock"));
- throw e;
- }
- } else {
- record.detailsBlock = fieldSetFlags()[3] ? this.detailsBlock : (io.keyko.monitoring.schemas.BlockDetails) defaultValue(fields()[3]);
- }
- record.retries = fieldSetFlags()[4] ? this.retries : (java.lang.Integer) defaultValue(fields()[4]);
- return record;
- } catch (org.apache.avro.AvroMissingFieldException e) {
- throw e;
- } catch (java.lang.Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumWriter
- WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
-
- @Override public void writeExternal(java.io.ObjectOutput out)
- throws java.io.IOException {
- WRITER$.write(this, SpecificData.getEncoder(out));
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumReader
- READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
-
- @Override public void readExternal(java.io.ObjectInput in)
- throws java.io.IOException {
- READER$.read(this, SpecificData.getDecoder(in));
- }
-
-}
-
-
-
-
-
-
-
-
-
-
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/NumberParameter.java b/target/generated-sources/io/keyko/monitoring/schemas/NumberParameter.java
deleted file mode 100644
index 4803def..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/NumberParameter.java
+++ /dev/null
@@ -1,470 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-
-import org.apache.avro.generic.GenericArray;
-import org.apache.avro.specific.SpecificData;
-import org.apache.avro.util.Utf8;
-import org.apache.avro.message.BinaryMessageEncoder;
-import org.apache.avro.message.BinaryMessageDecoder;
-import org.apache.avro.message.SchemaStore;
-
-@org.apache.avro.specific.AvroGenerated
-public class NumberParameter extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- private static final long serialVersionUID = 715459069521122234L;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"NumberParameter\",\"namespace\":\"io.keyko.monitoring.schemas\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"},\"java-class\":\"java.math.BigInteger\"}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-
- private static SpecificData MODEL$ = new SpecificData();
-
- private static final BinaryMessageEncoder ENCODER =
- new BinaryMessageEncoder(MODEL$, SCHEMA$);
-
- private static final BinaryMessageDecoder DECODER =
- new BinaryMessageDecoder(MODEL$, SCHEMA$);
-
- /**
- * Return the BinaryMessageEncoder instance used by this class.
- * @return the message encoder used by this class
- */
- public static BinaryMessageEncoder getEncoder() {
- return ENCODER;
- }
-
- /**
- * Return the BinaryMessageDecoder instance used by this class.
- * @return the message decoder used by this class
- */
- public static BinaryMessageDecoder getDecoder() {
- return DECODER;
- }
-
- /**
- * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
- * @param resolver a {@link SchemaStore} used to find schemas by fingerprint
- * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
- */
- public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
- return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
- }
-
- /**
- * Serializes this NumberParameter to a ByteBuffer.
- * @return a buffer holding the serialized data for this instance
- * @throws java.io.IOException if this instance could not be serialized
- */
- public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
- return ENCODER.encode(this);
- }
-
- /**
- * Deserializes a NumberParameter from a ByteBuffer.
- * @param b a byte buffer holding serialized data for an instance of this class
- * @return a NumberParameter instance decoded from the given buffer
- * @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
- */
- public static NumberParameter fromByteBuffer(
- java.nio.ByteBuffer b) throws java.io.IOException {
- return DECODER.decode(b);
- }
-
- @Deprecated public java.lang.String name;
- @Deprecated public java.lang.String type;
- @Deprecated public java.lang.String value;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public NumberParameter() {}
-
- /**
- * All-args constructor.
- * @param name The new value for name
- * @param type The new value for type
- * @param value The new value for value
- */
- public NumberParameter(java.lang.String name, java.lang.String type, java.lang.String value) {
- this.name = name;
- this.type = type;
- this.value = value;
- }
-
- public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return name;
- case 1: return type;
- case 2: return value;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: name = (java.lang.String)value$; break;
- case 1: type = (java.lang.String)value$; break;
- case 2: value = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'name' field.
- * @return The value of the 'name' field.
- */
- public java.lang.String getName() {
- return name;
- }
-
-
- /**
- * Sets the value of the 'name' field.
- * @param value the value to set.
- */
- public void setName(java.lang.String value) {
- this.name = value;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value of the 'type' field.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value the value to set.
- */
- public void setType(java.lang.String value) {
- this.type = value;
- }
-
- /**
- * Gets the value of the 'value' field.
- * @return The value of the 'value' field.
- */
- public java.lang.String getValue() {
- return value;
- }
-
-
- /**
- * Sets the value of the 'value' field.
- * @param value the value to set.
- */
- public void setValue(java.lang.String value) {
- this.value = value;
- }
-
- /**
- * Creates a new NumberParameter RecordBuilder.
- * @return A new NumberParameter RecordBuilder
- */
- public static io.keyko.monitoring.schemas.NumberParameter.Builder newBuilder() {
- return new io.keyko.monitoring.schemas.NumberParameter.Builder();
- }
-
- /**
- * Creates a new NumberParameter RecordBuilder by copying an existing Builder.
- * @param other The existing builder to copy.
- * @return A new NumberParameter RecordBuilder
- */
- public static io.keyko.monitoring.schemas.NumberParameter.Builder newBuilder(io.keyko.monitoring.schemas.NumberParameter.Builder other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.NumberParameter.Builder();
- } else {
- return new io.keyko.monitoring.schemas.NumberParameter.Builder(other);
- }
- }
-
- /**
- * Creates a new NumberParameter RecordBuilder by copying an existing NumberParameter instance.
- * @param other The existing instance to copy.
- * @return A new NumberParameter RecordBuilder
- */
- public static io.keyko.monitoring.schemas.NumberParameter.Builder newBuilder(io.keyko.monitoring.schemas.NumberParameter other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.NumberParameter.Builder();
- } else {
- return new io.keyko.monitoring.schemas.NumberParameter.Builder(other);
- }
- }
-
- /**
- * RecordBuilder for NumberParameter instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String name;
- private java.lang.String type;
- private java.lang.String value;
-
- /** Creates a new Builder */
- private Builder() {
- super(SCHEMA$);
- }
-
- /**
- * Creates a Builder by copying an existing Builder.
- * @param other The existing Builder to copy.
- */
- private Builder(io.keyko.monitoring.schemas.NumberParameter.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.name)) {
- this.name = data().deepCopy(fields()[0].schema(), other.name);
- fieldSetFlags()[0] = other.fieldSetFlags()[0];
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = other.fieldSetFlags()[1];
- }
- if (isValidValue(fields()[2], other.value)) {
- this.value = data().deepCopy(fields()[2].schema(), other.value);
- fieldSetFlags()[2] = other.fieldSetFlags()[2];
- }
- }
-
- /**
- * Creates a Builder by copying an existing NumberParameter instance
- * @param other The existing instance to copy.
- */
- private Builder(io.keyko.monitoring.schemas.NumberParameter other) {
- super(SCHEMA$);
- if (isValidValue(fields()[0], other.name)) {
- this.name = data().deepCopy(fields()[0].schema(), other.name);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.value)) {
- this.value = data().deepCopy(fields()[2].schema(), other.value);
- fieldSetFlags()[2] = true;
- }
- }
-
- /**
- * Gets the value of the 'name' field.
- * @return The value.
- */
- public java.lang.String getName() {
- return name;
- }
-
-
- /**
- * Sets the value of the 'name' field.
- * @param value The value of 'name'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.NumberParameter.Builder setName(java.lang.String value) {
- validate(fields()[0], value);
- this.name = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /**
- * Checks whether the 'name' field has been set.
- * @return True if the 'name' field has been set, false otherwise.
- */
- public boolean hasName() {
- return fieldSetFlags()[0];
- }
-
-
- /**
- * Clears the value of the 'name' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.NumberParameter.Builder clearName() {
- name = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value The value of 'type'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.NumberParameter.Builder setType(java.lang.String value) {
- validate(fields()[1], value);
- this.type = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /**
- * Checks whether the 'type' field has been set.
- * @return True if the 'type' field has been set, false otherwise.
- */
- public boolean hasType() {
- return fieldSetFlags()[1];
- }
-
-
- /**
- * Clears the value of the 'type' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.NumberParameter.Builder clearType() {
- type = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'value' field.
- * @return The value.
- */
- public java.lang.String getValue() {
- return value;
- }
-
-
- /**
- * Sets the value of the 'value' field.
- * @param value The value of 'value'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.NumberParameter.Builder setValue(java.lang.String value) {
- validate(fields()[2], value);
- this.value = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /**
- * Checks whether the 'value' field has been set.
- * @return True if the 'value' field has been set, false otherwise.
- */
- public boolean hasValue() {
- return fieldSetFlags()[2];
- }
-
-
- /**
- * Clears the value of the 'value' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.NumberParameter.Builder clearValue() {
- value = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- @Override
- @SuppressWarnings("unchecked")
- public NumberParameter build() {
- try {
- NumberParameter record = new NumberParameter();
- record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]);
- record.type = fieldSetFlags()[1] ? this.type : (java.lang.String) defaultValue(fields()[1]);
- record.value = fieldSetFlags()[2] ? this.value : (java.lang.String) defaultValue(fields()[2]);
- return record;
- } catch (org.apache.avro.AvroMissingFieldException e) {
- throw e;
- } catch (java.lang.Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumWriter
- WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
-
- @Override public void writeExternal(java.io.ObjectOutput out)
- throws java.io.IOException {
- WRITER$.write(this, SpecificData.getEncoder(out));
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumReader
- READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
-
- @Override public void readExternal(java.io.ObjectInput in)
- throws java.io.IOException {
- READER$.read(this, SpecificData.getDecoder(in));
- }
-
- @Override protected boolean hasCustomCoders() { return true; }
-
- @Override public void customEncode(org.apache.avro.io.Encoder out)
- throws java.io.IOException
- {
- out.writeString(this.name);
-
- out.writeString(this.type);
-
- out.writeString(this.value);
-
- }
-
- @Override public void customDecode(org.apache.avro.io.ResolvingDecoder in)
- throws java.io.IOException
- {
- org.apache.avro.Schema.Field[] fieldOrder = in.readFieldOrderIfDiff();
- if (fieldOrder == null) {
- this.name = in.readString();
-
- this.type = in.readString();
-
- this.value = in.readString();
-
- } else {
- for (int i = 0; i < 3; i++) {
- switch (fieldOrder[i].pos()) {
- case 0:
- this.name = in.readString();
- break;
-
- case 1:
- this.type = in.readString();
- break;
-
- case 2:
- this.value = in.readString();
- break;
-
- default:
- throw new java.io.IOException("Corrupt ResolvingDecoder.");
- }
- }
- }
- }
-}
-
-
-
-
-
-
-
-
-
-
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/StringParameter.java b/target/generated-sources/io/keyko/monitoring/schemas/StringParameter.java
deleted file mode 100644
index e90900c..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/StringParameter.java
+++ /dev/null
@@ -1,470 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-
-import org.apache.avro.generic.GenericArray;
-import org.apache.avro.specific.SpecificData;
-import org.apache.avro.util.Utf8;
-import org.apache.avro.message.BinaryMessageEncoder;
-import org.apache.avro.message.BinaryMessageDecoder;
-import org.apache.avro.message.SchemaStore;
-
-@org.apache.avro.specific.AvroGenerated
-public class StringParameter extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- private static final long serialVersionUID = 3488942165868781980L;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"StringParameter\",\"namespace\":\"io.keyko.monitoring.schemas\",\"fields\":[{\"name\":\"name\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-
- private static SpecificData MODEL$ = new SpecificData();
-
- private static final BinaryMessageEncoder ENCODER =
- new BinaryMessageEncoder(MODEL$, SCHEMA$);
-
- private static final BinaryMessageDecoder DECODER =
- new BinaryMessageDecoder(MODEL$, SCHEMA$);
-
- /**
- * Return the BinaryMessageEncoder instance used by this class.
- * @return the message encoder used by this class
- */
- public static BinaryMessageEncoder getEncoder() {
- return ENCODER;
- }
-
- /**
- * Return the BinaryMessageDecoder instance used by this class.
- * @return the message decoder used by this class
- */
- public static BinaryMessageDecoder getDecoder() {
- return DECODER;
- }
-
- /**
- * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
- * @param resolver a {@link SchemaStore} used to find schemas by fingerprint
- * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
- */
- public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
- return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
- }
-
- /**
- * Serializes this StringParameter to a ByteBuffer.
- * @return a buffer holding the serialized data for this instance
- * @throws java.io.IOException if this instance could not be serialized
- */
- public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
- return ENCODER.encode(this);
- }
-
- /**
- * Deserializes a StringParameter from a ByteBuffer.
- * @param b a byte buffer holding serialized data for an instance of this class
- * @return a StringParameter instance decoded from the given buffer
- * @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
- */
- public static StringParameter fromByteBuffer(
- java.nio.ByteBuffer b) throws java.io.IOException {
- return DECODER.decode(b);
- }
-
- @Deprecated public java.lang.String name;
- @Deprecated public java.lang.String type;
- @Deprecated public java.lang.String value;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public StringParameter() {}
-
- /**
- * All-args constructor.
- * @param name The new value for name
- * @param type The new value for type
- * @param value The new value for value
- */
- public StringParameter(java.lang.String name, java.lang.String type, java.lang.String value) {
- this.name = name;
- this.type = type;
- this.value = value;
- }
-
- public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return name;
- case 1: return type;
- case 2: return value;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: name = (java.lang.String)value$; break;
- case 1: type = (java.lang.String)value$; break;
- case 2: value = (java.lang.String)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'name' field.
- * @return The value of the 'name' field.
- */
- public java.lang.String getName() {
- return name;
- }
-
-
- /**
- * Sets the value of the 'name' field.
- * @param value the value to set.
- */
- public void setName(java.lang.String value) {
- this.name = value;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value of the 'type' field.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value the value to set.
- */
- public void setType(java.lang.String value) {
- this.type = value;
- }
-
- /**
- * Gets the value of the 'value' field.
- * @return The value of the 'value' field.
- */
- public java.lang.String getValue() {
- return value;
- }
-
-
- /**
- * Sets the value of the 'value' field.
- * @param value the value to set.
- */
- public void setValue(java.lang.String value) {
- this.value = value;
- }
-
- /**
- * Creates a new StringParameter RecordBuilder.
- * @return A new StringParameter RecordBuilder
- */
- public static io.keyko.monitoring.schemas.StringParameter.Builder newBuilder() {
- return new io.keyko.monitoring.schemas.StringParameter.Builder();
- }
-
- /**
- * Creates a new StringParameter RecordBuilder by copying an existing Builder.
- * @param other The existing builder to copy.
- * @return A new StringParameter RecordBuilder
- */
- public static io.keyko.monitoring.schemas.StringParameter.Builder newBuilder(io.keyko.monitoring.schemas.StringParameter.Builder other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.StringParameter.Builder();
- } else {
- return new io.keyko.monitoring.schemas.StringParameter.Builder(other);
- }
- }
-
- /**
- * Creates a new StringParameter RecordBuilder by copying an existing StringParameter instance.
- * @param other The existing instance to copy.
- * @return A new StringParameter RecordBuilder
- */
- public static io.keyko.monitoring.schemas.StringParameter.Builder newBuilder(io.keyko.monitoring.schemas.StringParameter other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.StringParameter.Builder();
- } else {
- return new io.keyko.monitoring.schemas.StringParameter.Builder(other);
- }
- }
-
- /**
- * RecordBuilder for StringParameter instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String name;
- private java.lang.String type;
- private java.lang.String value;
-
- /** Creates a new Builder */
- private Builder() {
- super(SCHEMA$);
- }
-
- /**
- * Creates a Builder by copying an existing Builder.
- * @param other The existing Builder to copy.
- */
- private Builder(io.keyko.monitoring.schemas.StringParameter.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.name)) {
- this.name = data().deepCopy(fields()[0].schema(), other.name);
- fieldSetFlags()[0] = other.fieldSetFlags()[0];
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = other.fieldSetFlags()[1];
- }
- if (isValidValue(fields()[2], other.value)) {
- this.value = data().deepCopy(fields()[2].schema(), other.value);
- fieldSetFlags()[2] = other.fieldSetFlags()[2];
- }
- }
-
- /**
- * Creates a Builder by copying an existing StringParameter instance
- * @param other The existing instance to copy.
- */
- private Builder(io.keyko.monitoring.schemas.StringParameter other) {
- super(SCHEMA$);
- if (isValidValue(fields()[0], other.name)) {
- this.name = data().deepCopy(fields()[0].schema(), other.name);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.value)) {
- this.value = data().deepCopy(fields()[2].schema(), other.value);
- fieldSetFlags()[2] = true;
- }
- }
-
- /**
- * Gets the value of the 'name' field.
- * @return The value.
- */
- public java.lang.String getName() {
- return name;
- }
-
-
- /**
- * Sets the value of the 'name' field.
- * @param value The value of 'name'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.StringParameter.Builder setName(java.lang.String value) {
- validate(fields()[0], value);
- this.name = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /**
- * Checks whether the 'name' field has been set.
- * @return True if the 'name' field has been set, false otherwise.
- */
- public boolean hasName() {
- return fieldSetFlags()[0];
- }
-
-
- /**
- * Clears the value of the 'name' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.StringParameter.Builder clearName() {
- name = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value The value of 'type'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.StringParameter.Builder setType(java.lang.String value) {
- validate(fields()[1], value);
- this.type = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /**
- * Checks whether the 'type' field has been set.
- * @return True if the 'type' field has been set, false otherwise.
- */
- public boolean hasType() {
- return fieldSetFlags()[1];
- }
-
-
- /**
- * Clears the value of the 'type' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.StringParameter.Builder clearType() {
- type = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'value' field.
- * @return The value.
- */
- public java.lang.String getValue() {
- return value;
- }
-
-
- /**
- * Sets the value of the 'value' field.
- * @param value The value of 'value'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.StringParameter.Builder setValue(java.lang.String value) {
- validate(fields()[2], value);
- this.value = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /**
- * Checks whether the 'value' field has been set.
- * @return True if the 'value' field has been set, false otherwise.
- */
- public boolean hasValue() {
- return fieldSetFlags()[2];
- }
-
-
- /**
- * Clears the value of the 'value' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.StringParameter.Builder clearValue() {
- value = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- @Override
- @SuppressWarnings("unchecked")
- public StringParameter build() {
- try {
- StringParameter record = new StringParameter();
- record.name = fieldSetFlags()[0] ? this.name : (java.lang.String) defaultValue(fields()[0]);
- record.type = fieldSetFlags()[1] ? this.type : (java.lang.String) defaultValue(fields()[1]);
- record.value = fieldSetFlags()[2] ? this.value : (java.lang.String) defaultValue(fields()[2]);
- return record;
- } catch (org.apache.avro.AvroMissingFieldException e) {
- throw e;
- } catch (java.lang.Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumWriter
- WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
-
- @Override public void writeExternal(java.io.ObjectOutput out)
- throws java.io.IOException {
- WRITER$.write(this, SpecificData.getEncoder(out));
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumReader
- READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
-
- @Override public void readExternal(java.io.ObjectInput in)
- throws java.io.IOException {
- READER$.read(this, SpecificData.getDecoder(in));
- }
-
- @Override protected boolean hasCustomCoders() { return true; }
-
- @Override public void customEncode(org.apache.avro.io.Encoder out)
- throws java.io.IOException
- {
- out.writeString(this.name);
-
- out.writeString(this.type);
-
- out.writeString(this.value);
-
- }
-
- @Override public void customDecode(org.apache.avro.io.ResolvingDecoder in)
- throws java.io.IOException
- {
- org.apache.avro.Schema.Field[] fieldOrder = in.readFieldOrderIfDiff();
- if (fieldOrder == null) {
- this.name = in.readString();
-
- this.type = in.readString();
-
- this.value = in.readString();
-
- } else {
- for (int i = 0; i < 3; i++) {
- switch (fieldOrder[i].pos()) {
- case 0:
- this.name = in.readString();
- break;
-
- case 1:
- this.type = in.readString();
- break;
-
- case 2:
- this.value = in.readString();
- break;
-
- default:
- throw new java.io.IOException("Corrupt ResolvingDecoder.");
- }
- }
- }
- }
-}
-
-
-
-
-
-
-
-
-
-
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/TransactionDetails.java b/target/generated-sources/io/keyko/monitoring/schemas/TransactionDetails.java
deleted file mode 100644
index 4473c22..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/TransactionDetails.java
+++ /dev/null
@@ -1,1270 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-
-import org.apache.avro.generic.GenericArray;
-import org.apache.avro.specific.SpecificData;
-import org.apache.avro.util.Utf8;
-import org.apache.avro.message.BinaryMessageEncoder;
-import org.apache.avro.message.BinaryMessageDecoder;
-import org.apache.avro.message.SchemaStore;
-
-@org.apache.avro.specific.AvroGenerated
-public class TransactionDetails extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- private static final long serialVersionUID = -349061294898434206L;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"TransactionDetails\",\"namespace\":\"io.keyko.monitoring.schemas\",\"fields\":[{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"nonce\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"blockNumber\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"blockHash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionIndex\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"from\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"to\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"nodeName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"contractAddress\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"input\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"revertReason\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"status\",\"type\":{\"type\":\"enum\",\"name\":\"TransactionStatus\",\"symbols\":[\"UNCONFIRMED\",\"CONFIRMED\",\"INVALIDATED\",\"FAILED\"]}}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-
- private static SpecificData MODEL$ = new SpecificData();
-
- private static final BinaryMessageEncoder ENCODER =
- new BinaryMessageEncoder(MODEL$, SCHEMA$);
-
- private static final BinaryMessageDecoder DECODER =
- new BinaryMessageDecoder(MODEL$, SCHEMA$);
-
- /**
- * Return the BinaryMessageEncoder instance used by this class.
- * @return the message encoder used by this class
- */
- public static BinaryMessageEncoder getEncoder() {
- return ENCODER;
- }
-
- /**
- * Return the BinaryMessageDecoder instance used by this class.
- * @return the message decoder used by this class
- */
- public static BinaryMessageDecoder getDecoder() {
- return DECODER;
- }
-
- /**
- * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
- * @param resolver a {@link SchemaStore} used to find schemas by fingerprint
- * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
- */
- public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
- return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
- }
-
- /**
- * Serializes this TransactionDetails to a ByteBuffer.
- * @return a buffer holding the serialized data for this instance
- * @throws java.io.IOException if this instance could not be serialized
- */
- public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
- return ENCODER.encode(this);
- }
-
- /**
- * Deserializes a TransactionDetails from a ByteBuffer.
- * @param b a byte buffer holding serialized data for an instance of this class
- * @return a TransactionDetails instance decoded from the given buffer
- * @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
- */
- public static TransactionDetails fromByteBuffer(
- java.nio.ByteBuffer b) throws java.io.IOException {
- return DECODER.decode(b);
- }
-
- @Deprecated public java.lang.String hash;
- @Deprecated public java.lang.String nonce;
- @Deprecated public java.lang.String blockNumber;
- @Deprecated public java.lang.String blockHash;
- @Deprecated public java.lang.String transactionIndex;
- @Deprecated public java.lang.String from;
- @Deprecated public java.lang.String to;
- @Deprecated public java.lang.String value;
- @Deprecated public java.lang.String nodeName;
- @Deprecated public java.lang.String contractAddress;
- @Deprecated public java.lang.String input;
- @Deprecated public java.lang.String revertReason;
- @Deprecated public io.keyko.monitoring.schemas.TransactionStatus status;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public TransactionDetails() {}
-
- /**
- * All-args constructor.
- * @param hash The new value for hash
- * @param nonce The new value for nonce
- * @param blockNumber The new value for blockNumber
- * @param blockHash The new value for blockHash
- * @param transactionIndex The new value for transactionIndex
- * @param from The new value for from
- * @param to The new value for to
- * @param value The new value for value
- * @param nodeName The new value for nodeName
- * @param contractAddress The new value for contractAddress
- * @param input The new value for input
- * @param revertReason The new value for revertReason
- * @param status The new value for status
- */
- public TransactionDetails(java.lang.String hash, java.lang.String nonce, java.lang.String blockNumber, java.lang.String blockHash, java.lang.String transactionIndex, java.lang.String from, java.lang.String to, java.lang.String value, java.lang.String nodeName, java.lang.String contractAddress, java.lang.String input, java.lang.String revertReason, io.keyko.monitoring.schemas.TransactionStatus status) {
- this.hash = hash;
- this.nonce = nonce;
- this.blockNumber = blockNumber;
- this.blockHash = blockHash;
- this.transactionIndex = transactionIndex;
- this.from = from;
- this.to = to;
- this.value = value;
- this.nodeName = nodeName;
- this.contractAddress = contractAddress;
- this.input = input;
- this.revertReason = revertReason;
- this.status = status;
- }
-
- public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return hash;
- case 1: return nonce;
- case 2: return blockNumber;
- case 3: return blockHash;
- case 4: return transactionIndex;
- case 5: return from;
- case 6: return to;
- case 7: return value;
- case 8: return nodeName;
- case 9: return contractAddress;
- case 10: return input;
- case 11: return revertReason;
- case 12: return status;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: hash = (java.lang.String)value$; break;
- case 1: nonce = (java.lang.String)value$; break;
- case 2: blockNumber = (java.lang.String)value$; break;
- case 3: blockHash = (java.lang.String)value$; break;
- case 4: transactionIndex = (java.lang.String)value$; break;
- case 5: from = (java.lang.String)value$; break;
- case 6: to = (java.lang.String)value$; break;
- case 7: value = (java.lang.String)value$; break;
- case 8: nodeName = (java.lang.String)value$; break;
- case 9: contractAddress = (java.lang.String)value$; break;
- case 10: input = (java.lang.String)value$; break;
- case 11: revertReason = (java.lang.String)value$; break;
- case 12: status = (io.keyko.monitoring.schemas.TransactionStatus)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'hash' field.
- * @return The value of the 'hash' field.
- */
- public java.lang.String getHash() {
- return hash;
- }
-
-
- /**
- * Sets the value of the 'hash' field.
- * @param value the value to set.
- */
- public void setHash(java.lang.String value) {
- this.hash = value;
- }
-
- /**
- * Gets the value of the 'nonce' field.
- * @return The value of the 'nonce' field.
- */
- public java.lang.String getNonce() {
- return nonce;
- }
-
-
- /**
- * Sets the value of the 'nonce' field.
- * @param value the value to set.
- */
- public void setNonce(java.lang.String value) {
- this.nonce = value;
- }
-
- /**
- * Gets the value of the 'blockNumber' field.
- * @return The value of the 'blockNumber' field.
- */
- public java.lang.String getBlockNumber() {
- return blockNumber;
- }
-
-
- /**
- * Sets the value of the 'blockNumber' field.
- * @param value the value to set.
- */
- public void setBlockNumber(java.lang.String value) {
- this.blockNumber = value;
- }
-
- /**
- * Gets the value of the 'blockHash' field.
- * @return The value of the 'blockHash' field.
- */
- public java.lang.String getBlockHash() {
- return blockHash;
- }
-
-
- /**
- * Sets the value of the 'blockHash' field.
- * @param value the value to set.
- */
- public void setBlockHash(java.lang.String value) {
- this.blockHash = value;
- }
-
- /**
- * Gets the value of the 'transactionIndex' field.
- * @return The value of the 'transactionIndex' field.
- */
- public java.lang.String getTransactionIndex() {
- return transactionIndex;
- }
-
-
- /**
- * Sets the value of the 'transactionIndex' field.
- * @param value the value to set.
- */
- public void setTransactionIndex(java.lang.String value) {
- this.transactionIndex = value;
- }
-
- /**
- * Gets the value of the 'from' field.
- * @return The value of the 'from' field.
- */
- public java.lang.String getFrom() {
- return from;
- }
-
-
- /**
- * Sets the value of the 'from' field.
- * @param value the value to set.
- */
- public void setFrom(java.lang.String value) {
- this.from = value;
- }
-
- /**
- * Gets the value of the 'to' field.
- * @return The value of the 'to' field.
- */
- public java.lang.String getTo() {
- return to;
- }
-
-
- /**
- * Sets the value of the 'to' field.
- * @param value the value to set.
- */
- public void setTo(java.lang.String value) {
- this.to = value;
- }
-
- /**
- * Gets the value of the 'value' field.
- * @return The value of the 'value' field.
- */
- public java.lang.String getValue() {
- return value;
- }
-
-
- /**
- * Sets the value of the 'value' field.
- * @param value the value to set.
- */
- public void setValue(java.lang.String value) {
- this.value = value;
- }
-
- /**
- * Gets the value of the 'nodeName' field.
- * @return The value of the 'nodeName' field.
- */
- public java.lang.String getNodeName() {
- return nodeName;
- }
-
-
- /**
- * Sets the value of the 'nodeName' field.
- * @param value the value to set.
- */
- public void setNodeName(java.lang.String value) {
- this.nodeName = value;
- }
-
- /**
- * Gets the value of the 'contractAddress' field.
- * @return The value of the 'contractAddress' field.
- */
- public java.lang.String getContractAddress() {
- return contractAddress;
- }
-
-
- /**
- * Sets the value of the 'contractAddress' field.
- * @param value the value to set.
- */
- public void setContractAddress(java.lang.String value) {
- this.contractAddress = value;
- }
-
- /**
- * Gets the value of the 'input' field.
- * @return The value of the 'input' field.
- */
- public java.lang.String getInput() {
- return input;
- }
-
-
- /**
- * Sets the value of the 'input' field.
- * @param value the value to set.
- */
- public void setInput(java.lang.String value) {
- this.input = value;
- }
-
- /**
- * Gets the value of the 'revertReason' field.
- * @return The value of the 'revertReason' field.
- */
- public java.lang.String getRevertReason() {
- return revertReason;
- }
-
-
- /**
- * Sets the value of the 'revertReason' field.
- * @param value the value to set.
- */
- public void setRevertReason(java.lang.String value) {
- this.revertReason = value;
- }
-
- /**
- * Gets the value of the 'status' field.
- * @return The value of the 'status' field.
- */
- public io.keyko.monitoring.schemas.TransactionStatus getStatus() {
- return status;
- }
-
-
- /**
- * Sets the value of the 'status' field.
- * @param value the value to set.
- */
- public void setStatus(io.keyko.monitoring.schemas.TransactionStatus value) {
- this.status = value;
- }
-
- /**
- * Creates a new TransactionDetails RecordBuilder.
- * @return A new TransactionDetails RecordBuilder
- */
- public static io.keyko.monitoring.schemas.TransactionDetails.Builder newBuilder() {
- return new io.keyko.monitoring.schemas.TransactionDetails.Builder();
- }
-
- /**
- * Creates a new TransactionDetails RecordBuilder by copying an existing Builder.
- * @param other The existing builder to copy.
- * @return A new TransactionDetails RecordBuilder
- */
- public static io.keyko.monitoring.schemas.TransactionDetails.Builder newBuilder(io.keyko.monitoring.schemas.TransactionDetails.Builder other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.TransactionDetails.Builder();
- } else {
- return new io.keyko.monitoring.schemas.TransactionDetails.Builder(other);
- }
- }
-
- /**
- * Creates a new TransactionDetails RecordBuilder by copying an existing TransactionDetails instance.
- * @param other The existing instance to copy.
- * @return A new TransactionDetails RecordBuilder
- */
- public static io.keyko.monitoring.schemas.TransactionDetails.Builder newBuilder(io.keyko.monitoring.schemas.TransactionDetails other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.TransactionDetails.Builder();
- } else {
- return new io.keyko.monitoring.schemas.TransactionDetails.Builder(other);
- }
- }
-
- /**
- * RecordBuilder for TransactionDetails instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String hash;
- private java.lang.String nonce;
- private java.lang.String blockNumber;
- private java.lang.String blockHash;
- private java.lang.String transactionIndex;
- private java.lang.String from;
- private java.lang.String to;
- private java.lang.String value;
- private java.lang.String nodeName;
- private java.lang.String contractAddress;
- private java.lang.String input;
- private java.lang.String revertReason;
- private io.keyko.monitoring.schemas.TransactionStatus status;
-
- /** Creates a new Builder */
- private Builder() {
- super(SCHEMA$);
- }
-
- /**
- * Creates a Builder by copying an existing Builder.
- * @param other The existing Builder to copy.
- */
- private Builder(io.keyko.monitoring.schemas.TransactionDetails.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.hash)) {
- this.hash = data().deepCopy(fields()[0].schema(), other.hash);
- fieldSetFlags()[0] = other.fieldSetFlags()[0];
- }
- if (isValidValue(fields()[1], other.nonce)) {
- this.nonce = data().deepCopy(fields()[1].schema(), other.nonce);
- fieldSetFlags()[1] = other.fieldSetFlags()[1];
- }
- if (isValidValue(fields()[2], other.blockNumber)) {
- this.blockNumber = data().deepCopy(fields()[2].schema(), other.blockNumber);
- fieldSetFlags()[2] = other.fieldSetFlags()[2];
- }
- if (isValidValue(fields()[3], other.blockHash)) {
- this.blockHash = data().deepCopy(fields()[3].schema(), other.blockHash);
- fieldSetFlags()[3] = other.fieldSetFlags()[3];
- }
- if (isValidValue(fields()[4], other.transactionIndex)) {
- this.transactionIndex = data().deepCopy(fields()[4].schema(), other.transactionIndex);
- fieldSetFlags()[4] = other.fieldSetFlags()[4];
- }
- if (isValidValue(fields()[5], other.from)) {
- this.from = data().deepCopy(fields()[5].schema(), other.from);
- fieldSetFlags()[5] = other.fieldSetFlags()[5];
- }
- if (isValidValue(fields()[6], other.to)) {
- this.to = data().deepCopy(fields()[6].schema(), other.to);
- fieldSetFlags()[6] = other.fieldSetFlags()[6];
- }
- if (isValidValue(fields()[7], other.value)) {
- this.value = data().deepCopy(fields()[7].schema(), other.value);
- fieldSetFlags()[7] = other.fieldSetFlags()[7];
- }
- if (isValidValue(fields()[8], other.nodeName)) {
- this.nodeName = data().deepCopy(fields()[8].schema(), other.nodeName);
- fieldSetFlags()[8] = other.fieldSetFlags()[8];
- }
- if (isValidValue(fields()[9], other.contractAddress)) {
- this.contractAddress = data().deepCopy(fields()[9].schema(), other.contractAddress);
- fieldSetFlags()[9] = other.fieldSetFlags()[9];
- }
- if (isValidValue(fields()[10], other.input)) {
- this.input = data().deepCopy(fields()[10].schema(), other.input);
- fieldSetFlags()[10] = other.fieldSetFlags()[10];
- }
- if (isValidValue(fields()[11], other.revertReason)) {
- this.revertReason = data().deepCopy(fields()[11].schema(), other.revertReason);
- fieldSetFlags()[11] = other.fieldSetFlags()[11];
- }
- if (isValidValue(fields()[12], other.status)) {
- this.status = data().deepCopy(fields()[12].schema(), other.status);
- fieldSetFlags()[12] = other.fieldSetFlags()[12];
- }
- }
-
- /**
- * Creates a Builder by copying an existing TransactionDetails instance
- * @param other The existing instance to copy.
- */
- private Builder(io.keyko.monitoring.schemas.TransactionDetails other) {
- super(SCHEMA$);
- if (isValidValue(fields()[0], other.hash)) {
- this.hash = data().deepCopy(fields()[0].schema(), other.hash);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.nonce)) {
- this.nonce = data().deepCopy(fields()[1].schema(), other.nonce);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.blockNumber)) {
- this.blockNumber = data().deepCopy(fields()[2].schema(), other.blockNumber);
- fieldSetFlags()[2] = true;
- }
- if (isValidValue(fields()[3], other.blockHash)) {
- this.blockHash = data().deepCopy(fields()[3].schema(), other.blockHash);
- fieldSetFlags()[3] = true;
- }
- if (isValidValue(fields()[4], other.transactionIndex)) {
- this.transactionIndex = data().deepCopy(fields()[4].schema(), other.transactionIndex);
- fieldSetFlags()[4] = true;
- }
- if (isValidValue(fields()[5], other.from)) {
- this.from = data().deepCopy(fields()[5].schema(), other.from);
- fieldSetFlags()[5] = true;
- }
- if (isValidValue(fields()[6], other.to)) {
- this.to = data().deepCopy(fields()[6].schema(), other.to);
- fieldSetFlags()[6] = true;
- }
- if (isValidValue(fields()[7], other.value)) {
- this.value = data().deepCopy(fields()[7].schema(), other.value);
- fieldSetFlags()[7] = true;
- }
- if (isValidValue(fields()[8], other.nodeName)) {
- this.nodeName = data().deepCopy(fields()[8].schema(), other.nodeName);
- fieldSetFlags()[8] = true;
- }
- if (isValidValue(fields()[9], other.contractAddress)) {
- this.contractAddress = data().deepCopy(fields()[9].schema(), other.contractAddress);
- fieldSetFlags()[9] = true;
- }
- if (isValidValue(fields()[10], other.input)) {
- this.input = data().deepCopy(fields()[10].schema(), other.input);
- fieldSetFlags()[10] = true;
- }
- if (isValidValue(fields()[11], other.revertReason)) {
- this.revertReason = data().deepCopy(fields()[11].schema(), other.revertReason);
- fieldSetFlags()[11] = true;
- }
- if (isValidValue(fields()[12], other.status)) {
- this.status = data().deepCopy(fields()[12].schema(), other.status);
- fieldSetFlags()[12] = true;
- }
- }
-
- /**
- * Gets the value of the 'hash' field.
- * @return The value.
- */
- public java.lang.String getHash() {
- return hash;
- }
-
-
- /**
- * Sets the value of the 'hash' field.
- * @param value The value of 'hash'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setHash(java.lang.String value) {
- validate(fields()[0], value);
- this.hash = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /**
- * Checks whether the 'hash' field has been set.
- * @return True if the 'hash' field has been set, false otherwise.
- */
- public boolean hasHash() {
- return fieldSetFlags()[0];
- }
-
-
- /**
- * Clears the value of the 'hash' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearHash() {
- hash = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'nonce' field.
- * @return The value.
- */
- public java.lang.String getNonce() {
- return nonce;
- }
-
-
- /**
- * Sets the value of the 'nonce' field.
- * @param value The value of 'nonce'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setNonce(java.lang.String value) {
- validate(fields()[1], value);
- this.nonce = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /**
- * Checks whether the 'nonce' field has been set.
- * @return True if the 'nonce' field has been set, false otherwise.
- */
- public boolean hasNonce() {
- return fieldSetFlags()[1];
- }
-
-
- /**
- * Clears the value of the 'nonce' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearNonce() {
- nonce = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'blockNumber' field.
- * @return The value.
- */
- public java.lang.String getBlockNumber() {
- return blockNumber;
- }
-
-
- /**
- * Sets the value of the 'blockNumber' field.
- * @param value The value of 'blockNumber'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setBlockNumber(java.lang.String value) {
- validate(fields()[2], value);
- this.blockNumber = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /**
- * Checks whether the 'blockNumber' field has been set.
- * @return True if the 'blockNumber' field has been set, false otherwise.
- */
- public boolean hasBlockNumber() {
- return fieldSetFlags()[2];
- }
-
-
- /**
- * Clears the value of the 'blockNumber' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearBlockNumber() {
- blockNumber = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'blockHash' field.
- * @return The value.
- */
- public java.lang.String getBlockHash() {
- return blockHash;
- }
-
-
- /**
- * Sets the value of the 'blockHash' field.
- * @param value The value of 'blockHash'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setBlockHash(java.lang.String value) {
- validate(fields()[3], value);
- this.blockHash = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /**
- * Checks whether the 'blockHash' field has been set.
- * @return True if the 'blockHash' field has been set, false otherwise.
- */
- public boolean hasBlockHash() {
- return fieldSetFlags()[3];
- }
-
-
- /**
- * Clears the value of the 'blockHash' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearBlockHash() {
- blockHash = null;
- fieldSetFlags()[3] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'transactionIndex' field.
- * @return The value.
- */
- public java.lang.String getTransactionIndex() {
- return transactionIndex;
- }
-
-
- /**
- * Sets the value of the 'transactionIndex' field.
- * @param value The value of 'transactionIndex'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setTransactionIndex(java.lang.String value) {
- validate(fields()[4], value);
- this.transactionIndex = value;
- fieldSetFlags()[4] = true;
- return this;
- }
-
- /**
- * Checks whether the 'transactionIndex' field has been set.
- * @return True if the 'transactionIndex' field has been set, false otherwise.
- */
- public boolean hasTransactionIndex() {
- return fieldSetFlags()[4];
- }
-
-
- /**
- * Clears the value of the 'transactionIndex' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearTransactionIndex() {
- transactionIndex = null;
- fieldSetFlags()[4] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'from' field.
- * @return The value.
- */
- public java.lang.String getFrom() {
- return from;
- }
-
-
- /**
- * Sets the value of the 'from' field.
- * @param value The value of 'from'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setFrom(java.lang.String value) {
- validate(fields()[5], value);
- this.from = value;
- fieldSetFlags()[5] = true;
- return this;
- }
-
- /**
- * Checks whether the 'from' field has been set.
- * @return True if the 'from' field has been set, false otherwise.
- */
- public boolean hasFrom() {
- return fieldSetFlags()[5];
- }
-
-
- /**
- * Clears the value of the 'from' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearFrom() {
- from = null;
- fieldSetFlags()[5] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'to' field.
- * @return The value.
- */
- public java.lang.String getTo() {
- return to;
- }
-
-
- /**
- * Sets the value of the 'to' field.
- * @param value The value of 'to'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setTo(java.lang.String value) {
- validate(fields()[6], value);
- this.to = value;
- fieldSetFlags()[6] = true;
- return this;
- }
-
- /**
- * Checks whether the 'to' field has been set.
- * @return True if the 'to' field has been set, false otherwise.
- */
- public boolean hasTo() {
- return fieldSetFlags()[6];
- }
-
-
- /**
- * Clears the value of the 'to' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearTo() {
- to = null;
- fieldSetFlags()[6] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'value' field.
- * @return The value.
- */
- public java.lang.String getValue() {
- return value;
- }
-
-
- /**
- * Sets the value of the 'value' field.
- * @param value The value of 'value'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setValue(java.lang.String value) {
- validate(fields()[7], value);
- this.value = value;
- fieldSetFlags()[7] = true;
- return this;
- }
-
- /**
- * Checks whether the 'value' field has been set.
- * @return True if the 'value' field has been set, false otherwise.
- */
- public boolean hasValue() {
- return fieldSetFlags()[7];
- }
-
-
- /**
- * Clears the value of the 'value' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearValue() {
- value = null;
- fieldSetFlags()[7] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'nodeName' field.
- * @return The value.
- */
- public java.lang.String getNodeName() {
- return nodeName;
- }
-
-
- /**
- * Sets the value of the 'nodeName' field.
- * @param value The value of 'nodeName'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setNodeName(java.lang.String value) {
- validate(fields()[8], value);
- this.nodeName = value;
- fieldSetFlags()[8] = true;
- return this;
- }
-
- /**
- * Checks whether the 'nodeName' field has been set.
- * @return True if the 'nodeName' field has been set, false otherwise.
- */
- public boolean hasNodeName() {
- return fieldSetFlags()[8];
- }
-
-
- /**
- * Clears the value of the 'nodeName' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearNodeName() {
- nodeName = null;
- fieldSetFlags()[8] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'contractAddress' field.
- * @return The value.
- */
- public java.lang.String getContractAddress() {
- return contractAddress;
- }
-
-
- /**
- * Sets the value of the 'contractAddress' field.
- * @param value The value of 'contractAddress'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setContractAddress(java.lang.String value) {
- validate(fields()[9], value);
- this.contractAddress = value;
- fieldSetFlags()[9] = true;
- return this;
- }
-
- /**
- * Checks whether the 'contractAddress' field has been set.
- * @return True if the 'contractAddress' field has been set, false otherwise.
- */
- public boolean hasContractAddress() {
- return fieldSetFlags()[9];
- }
-
-
- /**
- * Clears the value of the 'contractAddress' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearContractAddress() {
- contractAddress = null;
- fieldSetFlags()[9] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'input' field.
- * @return The value.
- */
- public java.lang.String getInput() {
- return input;
- }
-
-
- /**
- * Sets the value of the 'input' field.
- * @param value The value of 'input'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setInput(java.lang.String value) {
- validate(fields()[10], value);
- this.input = value;
- fieldSetFlags()[10] = true;
- return this;
- }
-
- /**
- * Checks whether the 'input' field has been set.
- * @return True if the 'input' field has been set, false otherwise.
- */
- public boolean hasInput() {
- return fieldSetFlags()[10];
- }
-
-
- /**
- * Clears the value of the 'input' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearInput() {
- input = null;
- fieldSetFlags()[10] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'revertReason' field.
- * @return The value.
- */
- public java.lang.String getRevertReason() {
- return revertReason;
- }
-
-
- /**
- * Sets the value of the 'revertReason' field.
- * @param value The value of 'revertReason'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setRevertReason(java.lang.String value) {
- validate(fields()[11], value);
- this.revertReason = value;
- fieldSetFlags()[11] = true;
- return this;
- }
-
- /**
- * Checks whether the 'revertReason' field has been set.
- * @return True if the 'revertReason' field has been set, false otherwise.
- */
- public boolean hasRevertReason() {
- return fieldSetFlags()[11];
- }
-
-
- /**
- * Clears the value of the 'revertReason' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearRevertReason() {
- revertReason = null;
- fieldSetFlags()[11] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'status' field.
- * @return The value.
- */
- public io.keyko.monitoring.schemas.TransactionStatus getStatus() {
- return status;
- }
-
-
- /**
- * Sets the value of the 'status' field.
- * @param value The value of 'status'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder setStatus(io.keyko.monitoring.schemas.TransactionStatus value) {
- validate(fields()[12], value);
- this.status = value;
- fieldSetFlags()[12] = true;
- return this;
- }
-
- /**
- * Checks whether the 'status' field has been set.
- * @return True if the 'status' field has been set, false otherwise.
- */
- public boolean hasStatus() {
- return fieldSetFlags()[12];
- }
-
-
- /**
- * Clears the value of the 'status' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder clearStatus() {
- status = null;
- fieldSetFlags()[12] = false;
- return this;
- }
-
- @Override
- @SuppressWarnings("unchecked")
- public TransactionDetails build() {
- try {
- TransactionDetails record = new TransactionDetails();
- record.hash = fieldSetFlags()[0] ? this.hash : (java.lang.String) defaultValue(fields()[0]);
- record.nonce = fieldSetFlags()[1] ? this.nonce : (java.lang.String) defaultValue(fields()[1]);
- record.blockNumber = fieldSetFlags()[2] ? this.blockNumber : (java.lang.String) defaultValue(fields()[2]);
- record.blockHash = fieldSetFlags()[3] ? this.blockHash : (java.lang.String) defaultValue(fields()[3]);
- record.transactionIndex = fieldSetFlags()[4] ? this.transactionIndex : (java.lang.String) defaultValue(fields()[4]);
- record.from = fieldSetFlags()[5] ? this.from : (java.lang.String) defaultValue(fields()[5]);
- record.to = fieldSetFlags()[6] ? this.to : (java.lang.String) defaultValue(fields()[6]);
- record.value = fieldSetFlags()[7] ? this.value : (java.lang.String) defaultValue(fields()[7]);
- record.nodeName = fieldSetFlags()[8] ? this.nodeName : (java.lang.String) defaultValue(fields()[8]);
- record.contractAddress = fieldSetFlags()[9] ? this.contractAddress : (java.lang.String) defaultValue(fields()[9]);
- record.input = fieldSetFlags()[10] ? this.input : (java.lang.String) defaultValue(fields()[10]);
- record.revertReason = fieldSetFlags()[11] ? this.revertReason : (java.lang.String) defaultValue(fields()[11]);
- record.status = fieldSetFlags()[12] ? this.status : (io.keyko.monitoring.schemas.TransactionStatus) defaultValue(fields()[12]);
- return record;
- } catch (org.apache.avro.AvroMissingFieldException e) {
- throw e;
- } catch (java.lang.Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumWriter
- WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
-
- @Override public void writeExternal(java.io.ObjectOutput out)
- throws java.io.IOException {
- WRITER$.write(this, SpecificData.getEncoder(out));
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumReader
- READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
-
- @Override public void readExternal(java.io.ObjectInput in)
- throws java.io.IOException {
- READER$.read(this, SpecificData.getDecoder(in));
- }
-
- @Override protected boolean hasCustomCoders() { return true; }
-
- @Override public void customEncode(org.apache.avro.io.Encoder out)
- throws java.io.IOException
- {
- out.writeString(this.hash);
-
- out.writeString(this.nonce);
-
- out.writeString(this.blockNumber);
-
- out.writeString(this.blockHash);
-
- out.writeString(this.transactionIndex);
-
- out.writeString(this.from);
-
- out.writeString(this.to);
-
- out.writeString(this.value);
-
- out.writeString(this.nodeName);
-
- out.writeString(this.contractAddress);
-
- out.writeString(this.input);
-
- out.writeString(this.revertReason);
-
- out.writeEnum(this.status.ordinal());
-
- }
-
- @Override public void customDecode(org.apache.avro.io.ResolvingDecoder in)
- throws java.io.IOException
- {
- org.apache.avro.Schema.Field[] fieldOrder = in.readFieldOrderIfDiff();
- if (fieldOrder == null) {
- this.hash = in.readString();
-
- this.nonce = in.readString();
-
- this.blockNumber = in.readString();
-
- this.blockHash = in.readString();
-
- this.transactionIndex = in.readString();
-
- this.from = in.readString();
-
- this.to = in.readString();
-
- this.value = in.readString();
-
- this.nodeName = in.readString();
-
- this.contractAddress = in.readString();
-
- this.input = in.readString();
-
- this.revertReason = in.readString();
-
- this.status = io.keyko.monitoring.schemas.TransactionStatus.values()[in.readEnum()];
-
- } else {
- for (int i = 0; i < 13; i++) {
- switch (fieldOrder[i].pos()) {
- case 0:
- this.hash = in.readString();
- break;
-
- case 1:
- this.nonce = in.readString();
- break;
-
- case 2:
- this.blockNumber = in.readString();
- break;
-
- case 3:
- this.blockHash = in.readString();
- break;
-
- case 4:
- this.transactionIndex = in.readString();
- break;
-
- case 5:
- this.from = in.readString();
- break;
-
- case 6:
- this.to = in.readString();
- break;
-
- case 7:
- this.value = in.readString();
- break;
-
- case 8:
- this.nodeName = in.readString();
- break;
-
- case 9:
- this.contractAddress = in.readString();
- break;
-
- case 10:
- this.input = in.readString();
- break;
-
- case 11:
- this.revertReason = in.readString();
- break;
-
- case 12:
- this.status = io.keyko.monitoring.schemas.TransactionStatus.values()[in.readEnum()];
- break;
-
- default:
- throw new java.io.IOException("Corrupt ResolvingDecoder.");
- }
- }
- }
- }
-}
-
-
-
-
-
-
-
-
-
-
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/TransactionEvent.java b/target/generated-sources/io/keyko/monitoring/schemas/TransactionEvent.java
deleted file mode 100644
index b917e47..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/TransactionEvent.java
+++ /dev/null
@@ -1,604 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-
-import org.apache.avro.generic.GenericArray;
-import org.apache.avro.specific.SpecificData;
-import org.apache.avro.util.Utf8;
-import org.apache.avro.message.BinaryMessageEncoder;
-import org.apache.avro.message.BinaryMessageDecoder;
-import org.apache.avro.message.SchemaStore;
-
-@org.apache.avro.specific.AvroGenerated
-public class TransactionEvent extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
- private static final long serialVersionUID = 220986510352976288L;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"TransactionEvent\",\"namespace\":\"io.keyko.monitoring.schemas\",\"fields\":[{\"name\":\"id\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"type\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"details\",\"type\":{\"type\":\"record\",\"name\":\"TransactionDetails\",\"fields\":[{\"name\":\"hash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"nonce\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"blockNumber\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"blockHash\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"transactionIndex\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"from\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"to\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"value\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"nodeName\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"contractAddress\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"input\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"revertReason\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"status\",\"type\":{\"type\":\"enum\",\"name\":\"TransactionStatus\",\"symbols\":[\"UNCONFIRMED\",\"CONFIRMED\",\"INVALIDATED\",\"FAILED\"]}}]}},{\"name\":\"retries\",\"type\":\"int\"}]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
-
- private static SpecificData MODEL$ = new SpecificData();
-
- private static final BinaryMessageEncoder ENCODER =
- new BinaryMessageEncoder(MODEL$, SCHEMA$);
-
- private static final BinaryMessageDecoder DECODER =
- new BinaryMessageDecoder(MODEL$, SCHEMA$);
-
- /**
- * Return the BinaryMessageEncoder instance used by this class.
- * @return the message encoder used by this class
- */
- public static BinaryMessageEncoder getEncoder() {
- return ENCODER;
- }
-
- /**
- * Return the BinaryMessageDecoder instance used by this class.
- * @return the message decoder used by this class
- */
- public static BinaryMessageDecoder getDecoder() {
- return DECODER;
- }
-
- /**
- * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link SchemaStore}.
- * @param resolver a {@link SchemaStore} used to find schemas by fingerprint
- * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore
- */
- public static BinaryMessageDecoder createDecoder(SchemaStore resolver) {
- return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver);
- }
-
- /**
- * Serializes this TransactionEvent to a ByteBuffer.
- * @return a buffer holding the serialized data for this instance
- * @throws java.io.IOException if this instance could not be serialized
- */
- public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {
- return ENCODER.encode(this);
- }
-
- /**
- * Deserializes a TransactionEvent from a ByteBuffer.
- * @param b a byte buffer holding serialized data for an instance of this class
- * @return a TransactionEvent instance decoded from the given buffer
- * @throws java.io.IOException if the given bytes could not be deserialized into an instance of this class
- */
- public static TransactionEvent fromByteBuffer(
- java.nio.ByteBuffer b) throws java.io.IOException {
- return DECODER.decode(b);
- }
-
- @Deprecated public java.lang.String id;
- @Deprecated public java.lang.String type;
- @Deprecated public io.keyko.monitoring.schemas.TransactionDetails details;
- @Deprecated public int retries;
-
- /**
- * Default constructor. Note that this does not initialize fields
- * to their default values from the schema. If that is desired then
- * one should use newBuilder()
.
- */
- public TransactionEvent() {}
-
- /**
- * All-args constructor.
- * @param id The new value for id
- * @param type The new value for type
- * @param details The new value for details
- * @param retries The new value for retries
- */
- public TransactionEvent(java.lang.String id, java.lang.String type, io.keyko.monitoring.schemas.TransactionDetails details, java.lang.Integer retries) {
- this.id = id;
- this.type = type;
- this.details = details;
- this.retries = retries;
- }
-
- public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
- // Used by DatumWriter. Applications should not call.
- public java.lang.Object get(int field$) {
- switch (field$) {
- case 0: return id;
- case 1: return type;
- case 2: return details;
- case 3: return retries;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- // Used by DatumReader. Applications should not call.
- @SuppressWarnings(value="unchecked")
- public void put(int field$, java.lang.Object value$) {
- switch (field$) {
- case 0: id = (java.lang.String)value$; break;
- case 1: type = (java.lang.String)value$; break;
- case 2: details = (io.keyko.monitoring.schemas.TransactionDetails)value$; break;
- case 3: retries = (java.lang.Integer)value$; break;
- default: throw new org.apache.avro.AvroRuntimeException("Bad index");
- }
- }
-
- /**
- * Gets the value of the 'id' field.
- * @return The value of the 'id' field.
- */
- public java.lang.String getId() {
- return id;
- }
-
-
- /**
- * Sets the value of the 'id' field.
- * @param value the value to set.
- */
- public void setId(java.lang.String value) {
- this.id = value;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value of the 'type' field.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value the value to set.
- */
- public void setType(java.lang.String value) {
- this.type = value;
- }
-
- /**
- * Gets the value of the 'details' field.
- * @return The value of the 'details' field.
- */
- public io.keyko.monitoring.schemas.TransactionDetails getDetails() {
- return details;
- }
-
-
- /**
- * Sets the value of the 'details' field.
- * @param value the value to set.
- */
- public void setDetails(io.keyko.monitoring.schemas.TransactionDetails value) {
- this.details = value;
- }
-
- /**
- * Gets the value of the 'retries' field.
- * @return The value of the 'retries' field.
- */
- public int getRetries() {
- return retries;
- }
-
-
- /**
- * Sets the value of the 'retries' field.
- * @param value the value to set.
- */
- public void setRetries(int value) {
- this.retries = value;
- }
-
- /**
- * Creates a new TransactionEvent RecordBuilder.
- * @return A new TransactionEvent RecordBuilder
- */
- public static io.keyko.monitoring.schemas.TransactionEvent.Builder newBuilder() {
- return new io.keyko.monitoring.schemas.TransactionEvent.Builder();
- }
-
- /**
- * Creates a new TransactionEvent RecordBuilder by copying an existing Builder.
- * @param other The existing builder to copy.
- * @return A new TransactionEvent RecordBuilder
- */
- public static io.keyko.monitoring.schemas.TransactionEvent.Builder newBuilder(io.keyko.monitoring.schemas.TransactionEvent.Builder other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.TransactionEvent.Builder();
- } else {
- return new io.keyko.monitoring.schemas.TransactionEvent.Builder(other);
- }
- }
-
- /**
- * Creates a new TransactionEvent RecordBuilder by copying an existing TransactionEvent instance.
- * @param other The existing instance to copy.
- * @return A new TransactionEvent RecordBuilder
- */
- public static io.keyko.monitoring.schemas.TransactionEvent.Builder newBuilder(io.keyko.monitoring.schemas.TransactionEvent other) {
- if (other == null) {
- return new io.keyko.monitoring.schemas.TransactionEvent.Builder();
- } else {
- return new io.keyko.monitoring.schemas.TransactionEvent.Builder(other);
- }
- }
-
- /**
- * RecordBuilder for TransactionEvent instances.
- */
- public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase
- implements org.apache.avro.data.RecordBuilder {
-
- private java.lang.String id;
- private java.lang.String type;
- private io.keyko.monitoring.schemas.TransactionDetails details;
- private io.keyko.monitoring.schemas.TransactionDetails.Builder detailsBuilder;
- private int retries;
-
- /** Creates a new Builder */
- private Builder() {
- super(SCHEMA$);
- }
-
- /**
- * Creates a Builder by copying an existing Builder.
- * @param other The existing Builder to copy.
- */
- private Builder(io.keyko.monitoring.schemas.TransactionEvent.Builder other) {
- super(other);
- if (isValidValue(fields()[0], other.id)) {
- this.id = data().deepCopy(fields()[0].schema(), other.id);
- fieldSetFlags()[0] = other.fieldSetFlags()[0];
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = other.fieldSetFlags()[1];
- }
- if (isValidValue(fields()[2], other.details)) {
- this.details = data().deepCopy(fields()[2].schema(), other.details);
- fieldSetFlags()[2] = other.fieldSetFlags()[2];
- }
- if (other.hasDetailsBuilder()) {
- this.detailsBuilder = io.keyko.monitoring.schemas.TransactionDetails.newBuilder(other.getDetailsBuilder());
- }
- if (isValidValue(fields()[3], other.retries)) {
- this.retries = data().deepCopy(fields()[3].schema(), other.retries);
- fieldSetFlags()[3] = other.fieldSetFlags()[3];
- }
- }
-
- /**
- * Creates a Builder by copying an existing TransactionEvent instance
- * @param other The existing instance to copy.
- */
- private Builder(io.keyko.monitoring.schemas.TransactionEvent other) {
- super(SCHEMA$);
- if (isValidValue(fields()[0], other.id)) {
- this.id = data().deepCopy(fields()[0].schema(), other.id);
- fieldSetFlags()[0] = true;
- }
- if (isValidValue(fields()[1], other.type)) {
- this.type = data().deepCopy(fields()[1].schema(), other.type);
- fieldSetFlags()[1] = true;
- }
- if (isValidValue(fields()[2], other.details)) {
- this.details = data().deepCopy(fields()[2].schema(), other.details);
- fieldSetFlags()[2] = true;
- }
- this.detailsBuilder = null;
- if (isValidValue(fields()[3], other.retries)) {
- this.retries = data().deepCopy(fields()[3].schema(), other.retries);
- fieldSetFlags()[3] = true;
- }
- }
-
- /**
- * Gets the value of the 'id' field.
- * @return The value.
- */
- public java.lang.String getId() {
- return id;
- }
-
-
- /**
- * Sets the value of the 'id' field.
- * @param value The value of 'id'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionEvent.Builder setId(java.lang.String value) {
- validate(fields()[0], value);
- this.id = value;
- fieldSetFlags()[0] = true;
- return this;
- }
-
- /**
- * Checks whether the 'id' field has been set.
- * @return True if the 'id' field has been set, false otherwise.
- */
- public boolean hasId() {
- return fieldSetFlags()[0];
- }
-
-
- /**
- * Clears the value of the 'id' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionEvent.Builder clearId() {
- id = null;
- fieldSetFlags()[0] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'type' field.
- * @return The value.
- */
- public java.lang.String getType() {
- return type;
- }
-
-
- /**
- * Sets the value of the 'type' field.
- * @param value The value of 'type'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionEvent.Builder setType(java.lang.String value) {
- validate(fields()[1], value);
- this.type = value;
- fieldSetFlags()[1] = true;
- return this;
- }
-
- /**
- * Checks whether the 'type' field has been set.
- * @return True if the 'type' field has been set, false otherwise.
- */
- public boolean hasType() {
- return fieldSetFlags()[1];
- }
-
-
- /**
- * Clears the value of the 'type' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionEvent.Builder clearType() {
- type = null;
- fieldSetFlags()[1] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'details' field.
- * @return The value.
- */
- public io.keyko.monitoring.schemas.TransactionDetails getDetails() {
- return details;
- }
-
-
- /**
- * Sets the value of the 'details' field.
- * @param value The value of 'details'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionEvent.Builder setDetails(io.keyko.monitoring.schemas.TransactionDetails value) {
- validate(fields()[2], value);
- this.detailsBuilder = null;
- this.details = value;
- fieldSetFlags()[2] = true;
- return this;
- }
-
- /**
- * Checks whether the 'details' field has been set.
- * @return True if the 'details' field has been set, false otherwise.
- */
- public boolean hasDetails() {
- return fieldSetFlags()[2];
- }
-
- /**
- * Gets the Builder instance for the 'details' field and creates one if it doesn't exist yet.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionDetails.Builder getDetailsBuilder() {
- if (detailsBuilder == null) {
- if (hasDetails()) {
- setDetailsBuilder(io.keyko.monitoring.schemas.TransactionDetails.newBuilder(details));
- } else {
- setDetailsBuilder(io.keyko.monitoring.schemas.TransactionDetails.newBuilder());
- }
- }
- return detailsBuilder;
- }
-
- /**
- * Sets the Builder instance for the 'details' field
- * @param value The builder instance that must be set.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionEvent.Builder setDetailsBuilder(io.keyko.monitoring.schemas.TransactionDetails.Builder value) {
- clearDetails();
- detailsBuilder = value;
- return this;
- }
-
- /**
- * Checks whether the 'details' field has an active Builder instance
- * @return True if the 'details' field has an active Builder instance
- */
- public boolean hasDetailsBuilder() {
- return detailsBuilder != null;
- }
-
- /**
- * Clears the value of the 'details' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionEvent.Builder clearDetails() {
- details = null;
- detailsBuilder = null;
- fieldSetFlags()[2] = false;
- return this;
- }
-
- /**
- * Gets the value of the 'retries' field.
- * @return The value.
- */
- public int getRetries() {
- return retries;
- }
-
-
- /**
- * Sets the value of the 'retries' field.
- * @param value The value of 'retries'.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionEvent.Builder setRetries(int value) {
- validate(fields()[3], value);
- this.retries = value;
- fieldSetFlags()[3] = true;
- return this;
- }
-
- /**
- * Checks whether the 'retries' field has been set.
- * @return True if the 'retries' field has been set, false otherwise.
- */
- public boolean hasRetries() {
- return fieldSetFlags()[3];
- }
-
-
- /**
- * Clears the value of the 'retries' field.
- * @return This builder.
- */
- public io.keyko.monitoring.schemas.TransactionEvent.Builder clearRetries() {
- fieldSetFlags()[3] = false;
- return this;
- }
-
- @Override
- @SuppressWarnings("unchecked")
- public TransactionEvent build() {
- try {
- TransactionEvent record = new TransactionEvent();
- record.id = fieldSetFlags()[0] ? this.id : (java.lang.String) defaultValue(fields()[0]);
- record.type = fieldSetFlags()[1] ? this.type : (java.lang.String) defaultValue(fields()[1]);
- if (detailsBuilder != null) {
- try {
- record.details = this.detailsBuilder.build();
- } catch (org.apache.avro.AvroMissingFieldException e) {
- e.addParentField(record.getSchema().getField("details"));
- throw e;
- }
- } else {
- record.details = fieldSetFlags()[2] ? this.details : (io.keyko.monitoring.schemas.TransactionDetails) defaultValue(fields()[2]);
- }
- record.retries = fieldSetFlags()[3] ? this.retries : (java.lang.Integer) defaultValue(fields()[3]);
- return record;
- } catch (org.apache.avro.AvroMissingFieldException e) {
- throw e;
- } catch (java.lang.Exception e) {
- throw new org.apache.avro.AvroRuntimeException(e);
- }
- }
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumWriter
- WRITER$ = (org.apache.avro.io.DatumWriter)MODEL$.createDatumWriter(SCHEMA$);
-
- @Override public void writeExternal(java.io.ObjectOutput out)
- throws java.io.IOException {
- WRITER$.write(this, SpecificData.getEncoder(out));
- }
-
- @SuppressWarnings("unchecked")
- private static final org.apache.avro.io.DatumReader
- READER$ = (org.apache.avro.io.DatumReader)MODEL$.createDatumReader(SCHEMA$);
-
- @Override public void readExternal(java.io.ObjectInput in)
- throws java.io.IOException {
- READER$.read(this, SpecificData.getDecoder(in));
- }
-
- @Override protected boolean hasCustomCoders() { return true; }
-
- @Override public void customEncode(org.apache.avro.io.Encoder out)
- throws java.io.IOException
- {
- out.writeString(this.id);
-
- out.writeString(this.type);
-
- this.details.customEncode(out);
-
- out.writeInt(this.retries);
-
- }
-
- @Override public void customDecode(org.apache.avro.io.ResolvingDecoder in)
- throws java.io.IOException
- {
- org.apache.avro.Schema.Field[] fieldOrder = in.readFieldOrderIfDiff();
- if (fieldOrder == null) {
- this.id = in.readString();
-
- this.type = in.readString();
-
- if (this.details == null) {
- this.details = new io.keyko.monitoring.schemas.TransactionDetails();
- }
- this.details.customDecode(in);
-
- this.retries = in.readInt();
-
- } else {
- for (int i = 0; i < 4; i++) {
- switch (fieldOrder[i].pos()) {
- case 0:
- this.id = in.readString();
- break;
-
- case 1:
- this.type = in.readString();
- break;
-
- case 2:
- if (this.details == null) {
- this.details = new io.keyko.monitoring.schemas.TransactionDetails();
- }
- this.details.customDecode(in);
- break;
-
- case 3:
- this.retries = in.readInt();
- break;
-
- default:
- throw new java.io.IOException("Corrupt ResolvingDecoder.");
- }
- }
- }
- }
-}
-
-
-
-
-
-
-
-
-
-
diff --git a/target/generated-sources/io/keyko/monitoring/schemas/TransactionStatus.java b/target/generated-sources/io/keyko/monitoring/schemas/TransactionStatus.java
deleted file mode 100644
index c3632af..0000000
--- a/target/generated-sources/io/keyko/monitoring/schemas/TransactionStatus.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Autogenerated by Avro
- *
- * DO NOT EDIT DIRECTLY
- */
-package io.keyko.monitoring.schemas;
-@org.apache.avro.specific.AvroGenerated
-public enum TransactionStatus implements org.apache.avro.generic.GenericEnumSymbol {
- UNCONFIRMED, CONFIRMED, INVALIDATED, FAILED ;
- public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"TransactionStatus\",\"namespace\":\"io.keyko.monitoring.schemas\",\"symbols\":[\"UNCONFIRMED\",\"CONFIRMED\",\"INVALIDATED\",\"FAILED\"]}");
- public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
- public org.apache.avro.Schema getSchema() { return SCHEMA$; }
-}
diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties
deleted file mode 100644
index e0ad704..0000000
--- a/target/maven-archiver/pom.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-#Created by Apache Maven 3.6.1
-groupId=io.keyko.monitoring
-artifactId=schemas
-version=0.1.0
diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
deleted file mode 100644
index c5aefb2..0000000
--- a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
+++ /dev/null
@@ -1,20 +0,0 @@
-io/keyko/monitoring/schemas/TransactionDetails.class
-io/keyko/monitoring/schemas/ContractEventDetails$Builder.class
-io/keyko/monitoring/schemas/TransactionEvent$Builder.class
-io/keyko/monitoring/schemas/StringParameter.class
-io/keyko/monitoring/schemas/ContractEvent.class
-io/keyko/monitoring/schemas/TransactionEvent.class
-io/keyko/monitoring/schemas/BlockDetails$Builder.class
-io/keyko/monitoring/schemas/TransactionStatus.class
-io/keyko/monitoring/schemas/EventBlock$Builder.class
-io/keyko/monitoring/schemas/NumberParameter.class
-io/keyko/monitoring/schemas/ContractEvent$Builder.class
-io/keyko/monitoring/schemas/BlockEvent$Builder.class
-io/keyko/monitoring/schemas/BlockEvent.class
-io/keyko/monitoring/schemas/NumberParameter$Builder.class
-io/keyko/monitoring/schemas/TransactionDetails$Builder.class
-io/keyko/monitoring/schemas/EventBlock.class
-io/keyko/monitoring/schemas/StringParameter$Builder.class
-io/keyko/monitoring/schemas/BlockDetails.class
-io/keyko/monitoring/schemas/ContractEventDetails.class
-io/keyko/monitoring/schemas/ContractEventStatus.class
diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
deleted file mode 100644
index 4aa3ba1..0000000
--- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
+++ /dev/null
@@ -1,11 +0,0 @@
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/ContractEvent.java
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/BlockEvent.java
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/TransactionStatus.java
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/ContractEventDetails.java
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/StringParameter.java
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/BlockDetails.java
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/TransactionDetails.java
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/TransactionEvent.java
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/ContractEventStatus.java
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/NumberParameter.java
-/home/aitor/Projects/Keyko/web3-monitoring-schemas/target/generated-sources/io/keyko/monitoring/schemas/EventBlock.java